@codeyam/codeyam-cli 0.1.0-bleeding-edge.8afd3ee → 0.1.0-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analyzer-template/.build-info.json +7 -7
- package/analyzer-template/log.txt +3 -3
- package/analyzer-template/packages/ai/src/lib/generateChangesEntityKeyAttributes.ts +107 -51
- package/analyzer-template/packages/ai/src/lib/generateEntityKeyAttributes.ts +183 -36
- package/analyzer-template/packages/analyze/src/lib/FileAnalyzer.ts +0 -34
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/index.ts +0 -2
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.js +2 -3
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.js +2 -3
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/analyzer-template/packages/utils/src/lib/frameworks/getNextRoutePath.ts +2 -6
- package/analyzer-template/project/writeUniversalMocks.ts +2 -6
- package/background/src/lib/virtualized/project/writeUniversalMocks.js +2 -3
- package/background/src/lib/virtualized/project/writeUniversalMocks.js.map +1 -1
- package/codeyam-cli/src/utils/analysisRunner.js +3 -4
- package/codeyam-cli/src/utils/analysisRunner.js.map +1 -1
- package/codeyam-cli/src/utils/backgroundServer.js +5 -25
- package/codeyam-cli/src/utils/backgroundServer.js.map +1 -1
- package/codeyam-cli/src/utils/fileWatcher.js +5 -75
- package/codeyam-cli/src/utils/fileWatcher.js.map +1 -1
- package/codeyam-cli/src/utils/queue/job.js +2 -3
- package/codeyam-cli/src/utils/queue/job.js.map +1 -1
- package/codeyam-cli/src/webserver/app/lib/database.js +0 -13
- package/codeyam-cli/src/webserver/app/lib/database.js.map +1 -1
- package/codeyam-cli/src/webserver/backgroundServer.js +35 -15
- package/codeyam-cli/src/webserver/backgroundServer.js.map +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/EntityTypeIcon-GqWwt5wG.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{InteractivePreview-B0oiPem-.js → InteractivePreview-Dh-FldQK.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/LibraryFunctionPreview-p0fuyqGQ.js +3 -0
- package/codeyam-cli/src/webserver/build/client/assets/{LogViewer-BKKG1s2B.js → LogViewer-Dp6DC845.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{SafeScreenshot-DU_jxCPD.js → SafeScreenshot-xwuhwsZH.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-Bl2IRh55.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{ScenarioViewer-DmjXUj6m.js → ScenarioViewer-M2QuSHKC.js} +2 -2
- package/codeyam-cli/src/webserver/build/client/assets/_index-CAVtep9Q.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-CLmzsLsT.js +10 -0
- package/codeyam-cli/src/webserver/build/client/assets/chart-column-B2I7jQx2.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/circle-alert-GwwOAbhw.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{components-Dj-Ggnl2.js → components-CAx5ONX_.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/createLucideIcon-CgyOwWip.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{dev.empty-BbR3FwNc.js → dev.empty-DGy3zrli.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha._-BHiWkb_W.js → entity._sha._-1Z6D0fLM.js} +7 -7
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.create-scenario-L7M9Vr5z.js → entity._sha_.create-scenario-ChAdTrrU.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.edit._scenarioId-C9w-q7P3.js → entity._sha_.edit._scenarioId-D9L7267w.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entityVersioning-Bk_YB1jM.js → entityVersioning-DO2gCvXv.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entry.client-CdGoUs8A.js → entry.client-C6FRgjPr.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/files-C3-cQjgv.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/git-Dp4EB9nv.js +12 -0
- package/codeyam-cli/src/webserver/build/client/assets/globals-Da3jt49-.css +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/loader-circle-DN7Vr40D.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/manifest-172a4629.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/root-COyVTsPq.js +16 -0
- package/codeyam-cli/src/webserver/build/client/assets/search-CvyP_1Lo.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{settings-NU_ZquhK.js → settings-Hbf8b7J_.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/settings-MZc4XdmE.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/simulations-BMBi0VzO.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{useLastLogLine-Lumm1t01.js → useLastLogLine-BBlyqxij.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/useToast-C_VxoXTh.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/zap-B4gsLUZQ.js +1 -0
- package/codeyam-cli/src/webserver/build/server/assets/{index-DHr4rT4u.js → index-eAULANMV.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-lutv16q5.js +161 -0
- package/codeyam-cli/src/webserver/build/server/index.js +1 -1
- package/codeyam-cli/src/webserver/build-info.json +5 -5
- package/codeyam-cli/templates/codeyam-setup-skill.md +18 -24
- package/package.json +1 -1
- package/packages/ai/src/lib/generateChangesEntityKeyAttributes.js +107 -51
- package/packages/ai/src/lib/generateChangesEntityKeyAttributes.js.map +1 -1
- package/packages/ai/src/lib/generateEntityKeyAttributes.js +183 -36
- package/packages/ai/src/lib/generateEntityKeyAttributes.js.map +1 -1
- package/packages/analyze/src/lib/FileAnalyzer.js +0 -28
- package/packages/analyze/src/lib/FileAnalyzer.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/index.js +0 -2
- package/packages/analyze/src/lib/asts/sourceFiles/index.js.map +1 -1
- package/packages/utils/src/lib/frameworks/getNextRoutePath.js +2 -3
- package/packages/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.ts +0 -238
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getDeclaredEntityNode.ts +0 -25
- package/codeyam-cli/scripts/apply-setup.js +0 -288
- package/codeyam-cli/scripts/apply-setup.js.map +0 -1
- package/codeyam-cli/scripts/extract-setup.js +0 -130
- package/codeyam-cli/scripts/extract-setup.js.map +0 -1
- package/codeyam-cli/scripts/fixtures/cal.com/universal-mocks/packages/prisma/index.js +0 -238
- package/codeyam-cli/scripts/fixtures/cal.com/universal-mocks/packages/prisma/index.js.map +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/EntityTypeIcon-rqv54FUY.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/LibraryFunctionPreview-DqXXjAJ7.js +0 -3
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-5DY-YIxu.js +0 -6
- package/codeyam-cli/src/webserver/build/client/assets/_index-DvSrcxsk.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-CsaMd9mb.js +0 -10
- package/codeyam-cli/src/webserver/build/client/assets/chart-column-VXBS6qOn.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/circle-alert-n5GUC2AS.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/clock-DKqtX8js.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/file-text-B6Er7j5k.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/files-KcDVw1FY.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/git-B9uZ8eSJ.js +0 -12
- package/codeyam-cli/src/webserver/build/client/assets/globals-B0f88RTV.css +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/loader-circle-v3c6DFp4.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-fca08d7e.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/root-Cf8VBqIb.js +0 -16
- package/codeyam-cli/src/webserver/build/client/assets/search-DA14wXpu.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/settings-COJUrwGu.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/simulations-CNaMJ-nR.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/useToast-BRShB17p.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/zap-BvukH0eN.js +0 -1
- package/codeyam-cli/src/webserver/build/client/favicon.svg +0 -13
- package/codeyam-cli/src/webserver/build/server/assets/server-build-Bi1mj14J.js +0 -166
- package/codeyam-cli/src/webserver/public/favicon.svg +0 -13
- package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js +0 -191
- package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js.map +0 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getDeclaredEntityNode.js +0 -16
- package/packages/analyze/src/lib/asts/sourceFiles/getDeclaredEntityNode.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{r as q,b as rt,G as Xt,H as xr,F as yr,I as vr,j as f,L as Ce,u as br,e as wr}from"./components-Dj-Ggnl2.js";import{u as jr}from"./useLastLogLine-Lumm1t01.js";import{u as Cr,C as Nr}from"./useToast-BRShB17p.js";import{L as Sr}from"./LogViewer-BKKG1s2B.js";import{E as Yt}from"./EntityTypeIcon-rqv54FUY.js";import{g as Lr,s as _r}from"./entityVersioning-Bk_YB1jM.js";import{c as Kt}from"./file-text-B6Er7j5k.js";import{Z as kr}from"./zap-BvukH0eN.js";import{C as Dr}from"./circle-alert-n5GUC2AS.js";import{S as er}from"./SafeScreenshot-DU_jxCPD.js";import"./chart-column-VXBS6qOn.js";const Er=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ar=Kt("circle",Er);const Pr=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Or=Kt("plus",Pr);function tr(e,r,i=10){const n=new Map,s=o=>o.entityType==="visual"||o.entityType==="library";for(const o of e)s(o)&&n.set(o.sha,{entity:o,depth:0});const t=new Map;for(const o of r){const c=o.metadata?.importedBy;if(c)for(const l of Object.keys(c))for(const h of Object.keys(c[l])){const{shas:g}=c[l][h];for(const m of g)t.has(o.sha)||t.set(o.sha,new Set),t.get(o.sha).add(m)}}const a=[],d=new Set;for(const o of e)a.push({sha:o.sha,depth:0}),d.add(o.sha);for(;a.length>0;){const{sha:o,depth:c}=a.shift();if(c>=i)continue;const l=t.get(o);if(l)for(const h of l){if(d.has(h))continue;d.add(h);const g=r.find(m=>m.sha===h);if(g){if(s(g)){const m=c+1,x=n.get(h);(!x||m<x.depth)&&n.set(h,{entity:g,depth:m})}a.push({sha:h,depth:c+1})}}}return Array.from(n.values()).sort((o,c)=>o.depth!==c.depth?o.depth-c.depth:o.entity.name.localeCompare(c.entity.name))}function Fe(e){const r=new Map;for(const n of e)r.has(n.name)||r.set(n.name,[]),r.get(n.name).push(n);const i=[];for(const n of r.values())if(n.length===1)i.push(n[0]);else{const s=n.sort((t,a)=>{const d=t.metadata?.editedAt||t.createdAt||"";return(a.metadata?.editedAt||a.createdAt||"").localeCompare(d)});i.push(s[0])}return i}function Mr(e,r){const i=new Map,n=new Set(e.map(s=>s.path));for(const s of e)s.status==="renamed"&&s.oldPath&&n.add(s.oldPath);for(const s of e){const t=r.filter(o=>o.filePath===s.path||s.status==="renamed"&&s.oldPath&&o.filePath===s.oldPath),a=t.filter(o=>n.has(o.filePath)&&o.metadata?.isUncommitted&&!o.metadata?.isSuperseded),d=Fe(a);i.set(s.path,{status:s,entities:t,editedEntities:d})}return i}function Br(e,r,i){const n=new Map;if(!i){for(const t of e)if(t.status==="deleted")n.set(t.path,{status:t,entities:[]});else{const a=r.filter(o=>o.filePath===t.path||t.status==="renamed"&&t.oldPath&&o.filePath===t.oldPath),d=Fe(a);n.set(t.path,{status:t,entities:d})}return n}const s=new Map;for(const t of i.fileComparisons){const a=new Set;for(const d of t.newEntities)a.add(d.name);for(const d of t.modifiedEntities)a.add(d.name);for(const d of t.deletedEntities)a.add(d.name);a.size>0&&s.set(t.filePath,a)}for(const t of e){const a=s.get(t.path);if(t.status==="deleted")n.set(t.path,{status:t,entities:[]});else{const d=a?r.filter(c=>(c.filePath===t.path||t.status==="renamed"&&t.oldPath&&c.filePath===t.oldPath)&&a.has(c.name)):[],o=Fe(d);n.set(t.path,{status:t,entities:o})}}return n}function Tr(e,r){const i=new Map,n=Rr(e,r);for(const s of n){const a=tr([s],r).filter(({depth:d})=>d>0);i.set(s.sha,a)}return i}function Fr(e,r){const i=new Map;for(const n of e){const t=tr([n],r).filter(({depth:a})=>a>0);i.set(n.sha,t)}return i}function Rr(e,r){const i=new Set(e.map(s=>s.path));for(const s of e)s.status==="renamed"&&s.oldPath&&i.add(s.oldPath);const n=r.filter(s=>i.has(s.filePath)&&s.metadata?.isUncommitted&&!s.metadata?.isSuperseded);return Fe(n)}function Ir(e,r,i){const[n,s]=q.useState(()=>new Set(r)),[t,a]=q.useState(()=>new Set(i)),d=q.useRef([]),o=q.useRef([]);return q.useEffect(()=>{(r.length!==d.current.length||r.some((w,b)=>w!==d.current[b]))&&(d.current=r,s(w=>{const b=new Set(w);return r.forEach(p=>{w.has(p)||b.add(p)}),b}))},[r]),q.useEffect(()=>{(i.length!==o.current.length||i.some((w,b)=>w!==o.current[b]))&&(o.current=i,a(w=>{const b=new Set(w);return i.forEach(p=>{w.has(p)||b.add(p)}),b}))},[i]),{expandedUncommitted:n,expandedBranch:t,setExpandedUncommitted:s,setExpandedBranch:a,toggleFile:(x,w,b)=>{b(p=>{const v=new Set(p);return v.has(x)?v.delete(x):v.add(x),v})},expandAllUncommitted:()=>{s(new Set(r))},collapseAllUncommitted:()=>{s(new Set)},expandAllBranch:()=>{a(new Set(i))},collapseAllBranch:()=>{a(new Set)}}}function $r(e,r,i){const[n,s]=q.useState(null),[t,a]=q.useState(null),d=rt();q.useEffect(()=>{d.data?.oldContent!==void 0&&d.data?.newContent!==void 0&&a({oldContent:d.data.oldContent,newContent:d.data.newContent,fileName:d.data.fileName})},[d.data]);const o=h=>{s({type:"file",path:h}),a(null);const g=new FormData;g.append("actionType","getDiff"),g.append("filePath",h),g.append("diffType",i==="branch"?"branch":"uncommitted"),g.append("baseBranch",e),g.append("currentBranch",r||""),d.submit(g,{method:"post"})},c=(h,g)=>{s({type:"entity",path:h,entitySha:g}),a(null);const m=new FormData;m.append("actionType","getDiff"),m.append("filePath",h),m.append("diffType",i==="branch"?"branch":"uncommitted"),m.append("baseBranch",e),m.append("currentBranch",r||""),m.append("entitySha",g),d.submit(m,{method:"post"})},l=()=>{s(null),a(null)};return{diffView:n,diffContent:t,isLoading:d.state==="loading"||d.state==="submitting",handleShowFileDiff:o,handleShowEntityDiff:c,handleCloseDiff:l}}function Vr(e){const r=rt(),{showToast:i}=Cr();q.useEffect(()=>{if(r.state==="idle"&&r.data){const a=r.data;a?.error&&i(`Error: ${a.error}`,"error",6e3)}},[r.state,r.data,i]);const n=a=>{console.log("Generate analysis clicked for entity:",a.sha,a.name);const d=new FormData;d.append("entitySha",a.sha),d.append("filePath",a.filePath||""),r.submit(d,{method:"post",action:"/api/analyze"})},s=a=>{const d=a.filter(l=>l.entityType==="visual"||l.entityType==="library");console.log("Generate analysis for all entities:",d.length);const o=d.map(l=>l.sha).join(","),c=new FormData;c.append("entityShas",o),r.submit(c,{method:"post",action:"/api/analyze"})},t=a=>e?.includes(a)??!1;return{isAnalyzing:r.state!=="idle",handleGenerateSimulation:n,handleGenerateAllSimulations:s,isEntityBeingAnalyzed:t}}var Y={},Je={exports:{}};var yt;function qr(){return yt||(yt=1,(function(e){(function(){var r={}.hasOwnProperty;function i(){for(var t="",a=0;a<arguments.length;a++){var d=arguments[a];d&&(t=s(t,n(d)))}return t}function n(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var d in t)r.call(t,d)&&t[d]&&(a=s(a,d));return a}function s(t,a){return a?t?t+" "+a:t+a:t}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(Je)),Je.exports}var U={},Ze={},Qe={},vt;function ae(){return vt||(vt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){}r.prototype={diff:function(s,t){var a,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=d.callback;typeof d=="function"&&(o=d,d={}),this.options=d;var c=this;function l(S){return o?(setTimeout(function(){o(void 0,S)},0),!0):S}s=this.castInput(s),t=this.castInput(t),s=this.removeEmpty(this.tokenize(s)),t=this.removeEmpty(this.tokenize(t));var h=t.length,g=s.length,m=1,x=h+g;d.maxEditLength&&(x=Math.min(x,d.maxEditLength));var w=(a=d.timeout)!==null&&a!==void 0?a:1/0,b=Date.now()+w,p=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(p[0],t,s,0);if(p[0].oldPos+1>=g&&v+1>=h)return l([{value:this.join(t),count:t.length}]);var L=-1/0,j=1/0;function E(){for(var S=Math.max(L,-m);S<=Math.min(j,m);S+=2){var O=void 0,P=p[S-1],F=p[S+1];P&&(p[S-1]=void 0);var u=!1;if(F){var y=F.oldPos-S;u=F&&0<=y&&y<h}var N=P&&P.oldPos+1<g;if(!u&&!N){p[S]=void 0;continue}if(!N||u&&P.oldPos+1<F.oldPos?O=c.addToPath(F,!0,void 0,0):O=c.addToPath(P,void 0,!0,1),v=c.extractCommon(O,t,s,S),O.oldPos+1>=g&&v+1>=h)return l(i(c,O.lastComponent,t,s,c.useLongestToken));p[S]=O,O.oldPos+1>=g&&(j=Math.min(j,S-1)),v+1>=h&&(L=Math.max(L,S+1))}m++}if(o)(function S(){setTimeout(function(){if(m>x||Date.now()>b)return o();E()||S()},0)})();else for(;m<=x&&Date.now()<=b;){var D=E();if(D)return D}},addToPath:function(s,t,a,d){var o=s.lastComponent;return o&&o.added===t&&o.removed===a?{oldPos:s.oldPos+d,lastComponent:{count:o.count+1,added:t,removed:a,previousComponent:o.previousComponent}}:{oldPos:s.oldPos+d,lastComponent:{count:1,added:t,removed:a,previousComponent:o}}},extractCommon:function(s,t,a,d){for(var o=t.length,c=a.length,l=s.oldPos,h=l-d,g=0;h+1<o&&l+1<c&&this.equals(t[h+1],a[l+1]);)h++,l++,g++;return g&&(s.lastComponent={count:g,previousComponent:s.lastComponent}),s.oldPos=l,h},equals:function(s,t){return this.options.comparator?this.options.comparator(s,t):s===t||this.options.ignoreCase&&s.toLowerCase()===t.toLowerCase()},removeEmpty:function(s){for(var t=[],a=0;a<s.length;a++)s[a]&&t.push(s[a]);return t},castInput:function(s){return s},tokenize:function(s){return s.split("")},join:function(s){return s.join("")}};function i(n,s,t,a,d){for(var o=[],c;s;)o.push(s),c=s.previousComponent,delete s.previousComponent,s=c;o.reverse();for(var l=0,h=o.length,g=0,m=0;l<h;l++){var x=o[l];if(x.removed){if(x.value=n.join(a.slice(m,m+x.count)),m+=x.count,l&&o[l-1].added){var b=o[l-1];o[l-1]=o[l],o[l]=b}}else{if(!x.added&&d){var w=t.slice(g,g+x.count);w=w.map(function(v,L){var j=a[m+L];return j.length>v.length?j:v}),x.value=n.join(w)}else x.value=n.join(t.slice(g,g+x.count));g+=x.count,x.added||(m+=x.count)}}var p=o[h-1];return h>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(o[h-2].value+=p.value,o.pop()),o}})(Qe)),Qe}var fe={},bt;function Gr(){if(bt)return fe;bt=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.diffChars=n,fe.characterDiff=void 0;var e=r(ae());function r(s){return s&&s.__esModule?s:{default:s}}var i=new e.default;fe.characterDiff=i;function n(s,t,a){return i.diff(s,t,a)}return fe}var oe={},ke={},wt;function rr(){if(wt)return ke;wt=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.generateOptions=e;function e(r,i){if(typeof r=="function")i.callback=r;else if(r)for(var n in r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i}return ke}var jt;function Hr(){if(jt)return oe;jt=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.diffWords=a,oe.diffWordsWithSpace=d,oe.wordDiff=void 0;var e=i(ae()),r=rr();function i(o){return o&&o.__esModule?o:{default:o}}var n=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,t=new e.default;oe.wordDiff=t,t.equals=function(o,c){return this.options.ignoreCase&&(o=o.toLowerCase(),c=c.toLowerCase()),o===c||this.options.ignoreWhitespace&&!s.test(o)&&!s.test(c)},t.tokenize=function(o){for(var c=o.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),l=0;l<c.length-1;l++)!c[l+1]&&c[l+2]&&n.test(c[l])&&n.test(c[l+2])&&(c[l]+=c[l+2],c.splice(l+1,2),l--);return c};function a(o,c,l){return l=(0,r.generateOptions)(l,{ignoreWhitespace:!0}),t.diff(o,c,l)}function d(o,c,l){return t.diff(o,c,l)}return oe}var le={},Ct;function nt(){if(Ct)return le;Ct=1,Object.defineProperty(le,"__esModule",{value:!0}),le.diffLines=s,le.diffTrimmedLines=t,le.lineDiff=void 0;var e=i(ae()),r=rr();function i(a){return a&&a.__esModule?a:{default:a}}var n=new e.default;le.lineDiff=n,n.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
|
|
2
|
-
`));var d=[],o=a.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var c=0;c<o.length;c++){var l=o[c];c%2&&!this.options.newlineIsToken?d[d.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),d.push(l))}return d};function s(a,d,o){return n.diff(a,d,o)}function t(a,d,o){var c=(0,r.generateOptions)(o,{ignoreWhitespace:!0});return n.diff(a,d,c)}return le}var ue={},Nt;function Wr(){if(Nt)return ue;Nt=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.diffSentences=n,ue.sentenceDiff=void 0;var e=r(ae());function r(s){return s&&s.__esModule?s:{default:s}}var i=new e.default;ue.sentenceDiff=i,i.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};function n(s,t,a){return i.diff(s,t,a)}return ue}var he={},St;function zr(){if(St)return he;St=1,Object.defineProperty(he,"__esModule",{value:!0}),he.diffCss=n,he.cssDiff=void 0;var e=r(ae());function r(s){return s&&s.__esModule?s:{default:s}}var i=new e.default;he.cssDiff=i,i.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function n(s,t,a){return i.diff(s,t,a)}return he}var ce={},Lt;function Ur(){if(Lt)return ce;Lt=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.diffJson=a,ce.canonicalize=d,ce.jsonDiff=void 0;var e=i(ae()),r=nt();function i(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(l){return typeof l}:n=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},n(o)}var s=Object.prototype.toString,t=new e.default;ce.jsonDiff=t,t.useLongestToken=!0,t.tokenize=r.lineDiff.tokenize,t.castInput=function(o){var c=this.options,l=c.undefinedReplacement,h=c.stringifyReplacer,g=h===void 0?function(m,x){return typeof x>"u"?l:x}:h;return typeof o=="string"?o:JSON.stringify(d(o,null,null,g),g," ")},t.equals=function(o,c){return e.default.prototype.equals.call(t,o.replace(/,([\r\n])/g,"$1"),c.replace(/,([\r\n])/g,"$1"))};function a(o,c,l){return t.diff(o,c,l)}function d(o,c,l,h,g){c=c||[],l=l||[],h&&(o=h(g,o));var m;for(m=0;m<c.length;m+=1)if(c[m]===o)return l[m];var x;if(s.call(o)==="[object Array]"){for(c.push(o),x=new Array(o.length),l.push(x),m=0;m<o.length;m+=1)x[m]=d(o[m],c,l,h,g);return c.pop(),l.pop(),x}if(o&&o.toJSON&&(o=o.toJSON()),n(o)==="object"&&o!==null){c.push(o),x={},l.push(x);var w=[],b;for(b in o)o.hasOwnProperty(b)&&w.push(b);for(w.sort(),m=0;m<w.length;m+=1)b=w[m],x[b]=d(o[b],c,l,h,b);c.pop(),l.pop()}else x=o;return x}return ce}var pe={},_t;function Jr(){if(_t)return pe;_t=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.diffArrays=n,pe.arrayDiff=void 0;var e=r(ae());function r(s){return s&&s.__esModule?s:{default:s}}var i=new e.default;pe.arrayDiff=i,i.tokenize=function(s){return s.slice()},i.join=i.removeEmpty=function(s){return s};function n(s,t,a){return i.diff(s,t,a)}return pe}var ye={},De={},kt;function st(){if(kt)return De;kt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.parsePatch=e;function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.split(/\r\n|[\n\v\f\r\x85]/),s=r.match(/\r\n|[\n\v\f\r\x85]/g)||[],t=[],a=0;function d(){var l={};for(t.push(l);a<n.length;){var h=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(h))break;var g=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(h);g&&(l.index=g[1]),a++}for(o(l),o(l),l.hunks=[];a<n.length;){var m=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(m))break;if(/^@@/.test(m))l.hunks.push(c());else{if(m&&i.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(m));a++}}}function o(l){var h=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(h){var g=h[1]==="---"?"old":"new",m=h[2].split(" ",2),x=m[0].replace(/\\\\/g,"\\");/^".*"$/.test(x)&&(x=x.substr(1,x.length-2)),l[g+"FileName"]=x,l[g+"Header"]=(m[1]||"").trim(),a++}}function c(){var l=a,h=n[a++],g=h.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),m={oldStart:+g[1],oldLines:typeof g[2]>"u"?1:+g[2],newStart:+g[3],newLines:typeof g[4]>"u"?1:+g[4],lines:[],linedelimiters:[]};m.oldLines===0&&(m.oldStart+=1),m.newLines===0&&(m.newStart+=1);for(var x=0,w=0;a<n.length&&!(n[a].indexOf("--- ")===0&&a+2<n.length&&n[a+1].indexOf("+++ ")===0&&n[a+2].indexOf("@@")===0);a++){var b=n[a].length==0&&a!=n.length-1?" ":n[a][0];if(b==="+"||b==="-"||b===" "||b==="\\")m.lines.push(n[a]),m.linedelimiters.push(s[a]||`
|
|
3
|
-
`),b==="+"?x++:b==="-"?w++:b===" "&&(x++,w++);else break}if(!x&&m.newLines===1&&(m.newLines=0),!w&&m.oldLines===1&&(m.oldLines=0),i.strict){if(x!==m.newLines)throw new Error("Added line count did not match for hunk at line "+(l+1));if(w!==m.oldLines)throw new Error("Removed line count did not match for hunk at line "+(l+1))}return m}for(;a<n.length;)d();return t}return De}var Xe={},Dt;function Zr(){return Dt||(Dt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(i,n,s){var t=!0,a=!1,d=!1,o=1;return function c(){if(t&&!d){if(a?o++:t=!1,i+o<=s)return o;d=!0}if(!a)return d||(t=!0),n<=i-o?-o++:(a=!0,c())}}})(Xe)),Xe}var Et;function Qr(){if(Et)return ye;Et=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.applyPatch=n,ye.applyPatches=s;var e=st(),r=i(Zr());function i(t){return t&&t.__esModule?t:{default:t}}function n(t,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof a=="string"&&(a=(0,e.parsePatch)(a)),Array.isArray(a)){if(a.length>1)throw new Error("applyPatch only works with a single input.");a=a[0]}var o=t.split(/\r\n|[\n\v\f\r\x85]/),c=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],l=a.hunks,h=d.compareLine||function($,V,H,J){return V===J},g=0,m=d.fuzzFactor||0,x=0,w=0,b,p;function v($,V){for(var H=0;H<$.lines.length;H++){var J=$.lines[H],K=J.length>0?J[0]:" ",ne=J.length>0?J.substr(1):J;if(K===" "||K==="-"){if(!h(V+1,o[V],K,ne)&&(g++,g>m))return!1;V++}}return!0}for(var L=0;L<l.length;L++){for(var j=l[L],E=o.length-j.oldLines,D=0,S=w+j.oldStart-1,O=(0,r.default)(S,x,E);D!==void 0;D=O())if(v(j,S+D)){j.offset=w+=D;break}if(D===void 0)return!1;x=j.offset+j.oldStart+j.oldLines}for(var P=0,F=0;F<l.length;F++){var u=l[F],y=u.oldStart+u.offset+P-1;P+=u.newLines-u.oldLines;for(var N=0;N<u.lines.length;N++){var C=u.lines[N],_=C.length>0?C[0]:" ",k=C.length>0?C.substr(1):C,A=u.linedelimiters&&u.linedelimiters[N]||`
|
|
4
|
-
`;if(_===" ")y++;else if(_==="-")o.splice(y,1),c.splice(y,1);else if(_==="+")o.splice(y,0,k),c.splice(y,0,A),y++;else if(_==="\\"){var M=u.lines[N-1]?u.lines[N-1][0]:null;M==="+"?b=!0:M==="-"&&(p=!0)}}}if(b)for(;!o[o.length-1];)o.pop(),c.pop();else p&&(o.push(""),c.push(`
|
|
5
|
-
`));for(var B=0;B<o.length-1;B++)o[B]=o[B]+c[B];return o.join("")}function s(t,a){typeof t=="string"&&(t=(0,e.parsePatch)(t));var d=0;function o(){var c=t[d++];if(!c)return a.complete();a.loadFile(c,function(l,h){if(l)return a.complete(l);var g=n(h,c,a);a.patched(c,g,function(m){if(m)return a.complete(m);o()})})}o()}return ye}var ve={},de={},At;function nr(){if(At)return de;At=1,Object.defineProperty(de,"__esModule",{value:!0}),de.structuredPatch=d,de.formatPatch=o,de.createTwoFilesPatch=c,de.createPatch=l;var e=nt();function r(h){return t(h)||s(h)||n(h)||i()}function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,g){if(h){if(typeof h=="string")return a(h,g);var m=Object.prototype.toString.call(h).slice(8,-1);if(m==="Object"&&h.constructor&&(m=h.constructor.name),m==="Map"||m==="Set")return Array.from(h);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return a(h,g)}}function s(h){if(typeof Symbol<"u"&&Symbol.iterator in Object(h))return Array.from(h)}function t(h){if(Array.isArray(h))return a(h)}function a(h,g){(g==null||g>h.length)&&(g=h.length);for(var m=0,x=new Array(g);m<g;m++)x[m]=h[m];return x}function d(h,g,m,x,w,b,p){p||(p={}),typeof p.context>"u"&&(p.context=4);var v=(0,e.diffLines)(m,x,p);if(!v)return;v.push({value:"",lines:[]});function L(y){return y.map(function(N){return" "+N})}for(var j=[],E=0,D=0,S=[],O=1,P=1,F=function(N){var C=v[N],_=C.lines||C.value.replace(/\n$/,"").split(`
|
|
7
|
-
`);if(C.lines=_,C.added||C.removed){var k;if(!E){var A=v[N-1];E=O,D=P,A&&(S=p.context>0?L(A.lines.slice(-p.context)):[],E-=S.length,D-=S.length)}(k=S).push.apply(k,r(_.map(function(ne){return(C.added?"+":"-")+ne}))),C.added?P+=_.length:O+=_.length}else{if(E)if(_.length<=p.context*2&&N<v.length-2){var M;(M=S).push.apply(M,r(L(_)))}else{var B,$=Math.min(_.length,p.context);(B=S).push.apply(B,r(L(_.slice(0,$))));var V={oldStart:E,oldLines:O-E+$,newStart:D,newLines:P-D+$,lines:S};if(N>=v.length-2&&_.length<=p.context){var H=/\n$/.test(m),J=/\n$/.test(x),K=_.length==0&&S.length>V.oldLines;!H&&K&&m.length>0&&S.splice(V.oldLines,0,"\"),(!H&&!K||!J)&&S.push("\")}j.push(V),E=0,D=0,S=[]}O+=_.length,P+=_.length}},u=0;u<v.length;u++)F(u);return{oldFileName:h,newFileName:g,oldHeader:w,newHeader:b,hunks:j}}function o(h){if(Array.isArray(h))return h.map(o).join(`
|
|
8
|
-
`);var g=[];h.oldFileName==h.newFileName&&g.push("Index: "+h.oldFileName),g.push("==================================================================="),g.push("--- "+h.oldFileName+(typeof h.oldHeader>"u"?"":" "+h.oldHeader)),g.push("+++ "+h.newFileName+(typeof h.newHeader>"u"?"":" "+h.newHeader));for(var m=0;m<h.hunks.length;m++){var x=h.hunks[m];x.oldLines===0&&(x.oldStart-=1),x.newLines===0&&(x.newStart-=1),g.push("@@ -"+x.oldStart+","+x.oldLines+" +"+x.newStart+","+x.newLines+" @@"),g.push.apply(g,x.lines)}return g.join(`
|
|
9
|
-
`)+`
|
|
10
|
-
`}function c(h,g,m,x,w,b,p){return o(d(h,g,m,x,w,b,p))}function l(h,g,m,x,w,b){return c(h,h,g,m,x,w,b)}return de}var be={},Pt;function Xr(){if(Pt)return be;Pt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.arrayEqual=e,be.arrayStartsWith=r;function e(i,n){return i.length!==n.length?!1:r(i,n)}function r(i,n){if(n.length>i.length)return!1;for(var s=0;s<n.length;s++)if(n[s]!==i[s])return!1;return!0}return be}var Ot;function Yr(){if(Ot)return ve;Ot=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.calcLineCount=c,ve.merge=l;var e=nr(),r=st(),i=Xr();function n(u){return d(u)||a(u)||t(u)||s()}function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t(u,y){if(u){if(typeof u=="string")return o(u,y);var N=Object.prototype.toString.call(u).slice(8,-1);if(N==="Object"&&u.constructor&&(N=u.constructor.name),N==="Map"||N==="Set")return Array.from(u);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return o(u,y)}}function a(u){if(typeof Symbol<"u"&&Symbol.iterator in Object(u))return Array.from(u)}function d(u){if(Array.isArray(u))return o(u)}function o(u,y){(y==null||y>u.length)&&(y=u.length);for(var N=0,C=new Array(y);N<y;N++)C[N]=u[N];return C}function c(u){var y=F(u.lines),N=y.oldLines,C=y.newLines;N!==void 0?u.oldLines=N:delete u.oldLines,C!==void 0?u.newLines=C:delete u.newLines}function l(u,y,N){u=h(u,N),y=h(y,N);var C={};(u.index||y.index)&&(C.index=u.index||y.index),(u.newFileName||y.newFileName)&&(g(u)?g(y)?(C.oldFileName=m(C,u.oldFileName,y.oldFileName),C.newFileName=m(C,u.newFileName,y.newFileName),C.oldHeader=m(C,u.oldHeader,y.oldHeader),C.newHeader=m(C,u.newHeader,y.newHeader)):(C.oldFileName=u.oldFileName,C.newFileName=u.newFileName,C.oldHeader=u.oldHeader,C.newHeader=u.newHeader):(C.oldFileName=y.oldFileName||u.oldFileName,C.newFileName=y.newFileName||u.newFileName,C.oldHeader=y.oldHeader||u.oldHeader,C.newHeader=y.newHeader||u.newHeader)),C.hunks=[];for(var _=0,k=0,A=0,M=0;_<u.hunks.length||k<y.hunks.length;){var B=u.hunks[_]||{oldStart:1/0},$=y.hunks[k]||{oldStart:1/0};if(x(B,$))C.hunks.push(w(B,A)),_++,M+=B.newLines-B.oldLines;else if(x($,B))C.hunks.push(w($,M)),k++,A+=$.newLines-$.oldLines;else{var V={oldStart:Math.min(B.oldStart,$.oldStart),oldLines:0,newStart:Math.min(B.newStart+A,$.oldStart+M),newLines:0,lines:[]};b(V,B.oldStart,B.lines,$.oldStart,$.lines),k++,_++,C.hunks.push(V)}}return C}function h(u,y){if(typeof u=="string"){if(/^@@/m.test(u)||/^Index:/m.test(u))return(0,r.parsePatch)(u)[0];if(!y)throw new Error("Must provide a base reference or pass in a patch");return(0,e.structuredPatch)(void 0,void 0,y,u)}return u}function g(u){return u.newFileName&&u.newFileName!==u.oldFileName}function m(u,y,N){return y===N?y:(u.conflict=!0,{mine:y,theirs:N})}function x(u,y){return u.oldStart<y.oldStart&&u.oldStart+u.oldLines<y.oldStart}function w(u,y){return{oldStart:u.oldStart,oldLines:u.oldLines,newStart:u.newStart+y,newLines:u.newLines,lines:u.lines}}function b(u,y,N,C,_){var k={offset:y,lines:N,index:0},A={offset:C,lines:_,index:0};for(j(u,k,A),j(u,A,k);k.index<k.lines.length&&A.index<A.lines.length;){var M=k.lines[k.index],B=A.lines[A.index];if((M[0]==="-"||M[0]==="+")&&(B[0]==="-"||B[0]==="+"))p(u,k,A);else if(M[0]==="+"&&B[0]===" "){var $;($=u.lines).push.apply($,n(D(k)))}else if(B[0]==="+"&&M[0]===" "){var V;(V=u.lines).push.apply(V,n(D(A)))}else M[0]==="-"&&B[0]===" "?v(u,k,A):B[0]==="-"&&M[0]===" "?v(u,A,k,!0):M===B?(u.lines.push(M),k.index++,A.index++):L(u,D(k),D(A))}E(u,k),E(u,A),c(u)}function p(u,y,N){var C=D(y),_=D(N);if(O(C)&&O(_)){if((0,i.arrayStartsWith)(C,_)&&P(N,C,C.length-_.length)){var k;(k=u.lines).push.apply(k,n(C));return}else if((0,i.arrayStartsWith)(_,C)&&P(y,_,_.length-C.length)){var A;(A=u.lines).push.apply(A,n(_));return}}else if((0,i.arrayEqual)(C,_)){var M;(M=u.lines).push.apply(M,n(C));return}L(u,C,_)}function v(u,y,N,C){var _=D(y),k=S(N,_);if(k.merged){var A;(A=u.lines).push.apply(A,n(k.merged))}else L(u,C?k:_,C?_:k)}function L(u,y,N){u.conflict=!0,u.lines.push({conflict:!0,mine:y,theirs:N})}function j(u,y,N){for(;y.offset<N.offset&&y.index<y.lines.length;){var C=y.lines[y.index++];u.lines.push(C),y.offset++}}function E(u,y){for(;y.index<y.lines.length;){var N=y.lines[y.index++];u.lines.push(N)}}function D(u){for(var y=[],N=u.lines[u.index][0];u.index<u.lines.length;){var C=u.lines[u.index];if(N==="-"&&C[0]==="+"&&(N="+"),N===C[0])y.push(C),u.index++;else break}return y}function S(u,y){for(var N=[],C=[],_=0,k=!1,A=!1;_<y.length&&u.index<u.lines.length;){var M=u.lines[u.index],B=y[_];if(B[0]==="+")break;if(k=k||M[0]!==" ",C.push(B),_++,M[0]==="+")for(A=!0;M[0]==="+";)N.push(M),M=u.lines[++u.index];B.substr(1)===M.substr(1)?(N.push(M),u.index++):A=!0}if((y[_]||"")[0]==="+"&&k&&(A=!0),A)return N;for(;_<y.length;)C.push(y[_++]);return{merged:C,changes:N}}function O(u){return u.reduce(function(y,N){return y&&N[0]==="-"},!0)}function P(u,y,N){for(var C=0;C<N;C++){var _=y[y.length-N+C].substr(1);if(u.lines[u.index+C]!==" "+_)return!1}return u.index+=N,!0}function F(u){var y=0,N=0;return u.forEach(function(C){if(typeof C!="string"){var _=F(C.mine),k=F(C.theirs);y!==void 0&&(_.oldLines===k.oldLines?y+=_.oldLines:y=void 0),N!==void 0&&(_.newLines===k.newLines?N+=_.newLines:N=void 0)}else N!==void 0&&(C[0]==="+"||C[0]===" ")&&N++,y!==void 0&&(C[0]==="-"||C[0]===" ")&&y++}),{oldLines:y,newLines:N}}return ve}var Ee={},Mt;function Kr(){if(Mt)return Ee;Mt=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.reversePatch=n;function e(s,t){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);t&&(d=d.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),a.push.apply(a,d)}return a}function r(s){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?e(Object(a),!0).forEach(function(d){i(s,d,a[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(a,d))})}return s}function i(s,t,a){return t in s?Object.defineProperty(s,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[t]=a,s}function n(s){return Array.isArray(s)?s.map(n).reverse():r(r({},s),{},{oldFileName:s.newFileName,oldHeader:s.newHeader,newFileName:s.oldFileName,newHeader:s.oldHeader,hunks:s.hunks.map(function(t){return{oldLines:t.newLines,oldStart:t.newStart,newLines:t.oldLines,newStart:t.oldStart,linedelimiters:t.linedelimiters,lines:t.lines.map(function(a){return a.startsWith("-")?"+".concat(a.slice(1)):a.startsWith("+")?"-".concat(a.slice(1)):a})}})})}return Ee}var Ae={},Bt;function en(){if(Bt)return Ae;Bt=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.convertChangesToDMP=e;function e(r){for(var i=[],n,s,t=0;t<r.length;t++)n=r[t],n.added?s=1:n.removed?s=-1:s=0,i.push([s,n.value]);return i}return Ae}var Pe={},Tt;function tn(){if(Tt)return Pe;Tt=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.convertChangesToXML=e;function e(i){for(var n=[],s=0;s<i.length;s++){var t=i[s];t.added?n.push("<ins>"):t.removed&&n.push("<del>"),n.push(r(t.value)),t.added?n.push("</ins>"):t.removed&&n.push("</del>")}return n.join("")}function r(i){var n=i;return n=n.replace(/&/g,"&"),n=n.replace(/</g,"<"),n=n.replace(/>/g,">"),n=n.replace(/"/g,"""),n}return Pe}var Ft;function rn(){return Ft||(Ft=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return i.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return n.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return n.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return s.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return s.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return t.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return a.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return d.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return d.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return o.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return c.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return c.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return l.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(e,"reversePatch",{enumerable:!0,get:function(){return g.reversePatch}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return m.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return m.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return m.createPatch}}),Object.defineProperty(e,"formatPatch",{enumerable:!0,get:function(){return m.formatPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return x.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return w.convertChangesToXML}});var r=b(ae()),i=Gr(),n=Hr(),s=nt(),t=Wr(),a=zr(),d=Ur(),o=Jr(),c=Qr(),l=st(),h=Yr(),g=Kr(),m=nr(),x=en(),w=tn();function b(p){return p&&p.__esModule?p:{default:p}}})(Ze)),Ze}var Rt;function nn(){if(Rt)return U;Rt=1;var e=U&&U.__createBinding||(Object.create?(function(l,h,g,m){m===void 0&&(m=g);var x=Object.getOwnPropertyDescriptor(h,g);(!x||("get"in x?!h.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(l,m,x)}):(function(l,h,g,m){m===void 0&&(m=g),l[m]=h[g]})),r=U&&U.__setModuleDefault||(Object.create?(function(l,h){Object.defineProperty(l,"default",{enumerable:!0,value:h})}):function(l,h){l.default=h}),i=U&&U.__importStar||function(l){if(l&&l.__esModule)return l;var h={};if(l!=null)for(var g in l)g!=="default"&&Object.prototype.hasOwnProperty.call(l,g)&&e(h,l,g);return r(h,l),h};Object.defineProperty(U,"__esModule",{value:!0}),U.computeLineInformation=U.DiffMethod=U.DiffType=void 0;const n=i(rn()),s=n;var t;(function(l){l[l.DEFAULT=0]="DEFAULT",l[l.ADDED=1]="ADDED",l[l.REMOVED=2]="REMOVED",l[l.CHANGED=3]="CHANGED"})(t||(U.DiffType=t={}));var a;(function(l){l.CHARS="diffChars",l.WORDS="diffWords",l.WORDS_WITH_SPACE="diffWordsWithSpace",l.LINES="diffLines",l.TRIMMED_LINES="diffTrimmedLines",l.SENTENCES="diffSentences",l.CSS="diffCss",l.JSON="diffJson"})(a||(U.DiffMethod=a={}));const d=l=>l===""?[]:l.replace(/\n$/,"").split(`
|
|
12
|
-
`),o=(l,h,g=a.CHARS)=>{const m=s[g](l,h),x={left:[],right:[]};return m.forEach(({added:w,removed:b,value:p})=>{const v={};return w&&(v.type=t.ADDED,v.value=p,x.right.push(v)),b&&(v.type=t.REMOVED,v.value=p,x.left.push(v)),!b&&!w&&(v.type=t.DEFAULT,v.value=p,x.right.push(v),x.left.push(v)),v}),x},c=(l,h,g=!1,m=a.CHARS,x=0,w=[])=>{let b=[];typeof l=="string"&&typeof h=="string"?b=n.diffLines(l.trimRight(),h.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):b=n.diffJson(l,h);let p=x,v=x,L=[],j=0;const E=[],D=[],S=(O,P,F,u,y)=>d(O).map((C,_)=>{const k={},A={};if(!(D.includes(`${P}-${_}`)||y&&_!==0)){if(F||u){let M=!0;if(u){v+=1,k.lineNumber=v,k.type=t.REMOVED,k.value=C||" ";const B=b[P+1];if(B&&B.added){const $=d(B.value)[_];if($){const V=S($,P,!0,!1,!0),{value:H,lineNumber:J,type:K}=V[0].right;if(D.push(`${P+1}-${_}`),A.lineNumber=J,k.value===H)M=!1,A.type=0,k.type=0,A.value=H;else if(A.type=K,g)A.value=H;else{const ne=o(C,H,m);A.value=ne.right,k.value=ne.left}}}}else p+=1,A.lineNumber=p,A.type=t.ADDED,A.value=C;M&&!y&&(E.includes(j)||E.push(j))}else v+=1,p+=1,k.lineNumber=v,k.type=t.DEFAULT,k.value=C,A.lineNumber=p,A.type=t.DEFAULT,A.value=C;return(w?.includes(`L-${k.lineNumber}`)||w?.includes(`R-${A.lineNumber}`)&&!E.includes(j))&&E.push(j),y||(j+=1),{right:A,left:k}}}).filter(Boolean);return b.forEach(({added:O,removed:P,value:F},u)=>{L=[...L,...S(F,u,O,P)]}),{lineInformation:L,diffLines:E}};return U.computeLineInformation=c,U}var se={};function sn(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function an(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var on=(function(){function e(i){var n=this;this._insertTag=function(s){var t;n.tags.length===0?n.insertionPoint?t=n.insertionPoint.nextSibling:n.prepend?t=n.container.firstChild:t=n.before:t=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,t),n.tags.push(s)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(an(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var t=sn(s);try{t.insertRule(n,t.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var s;return(s=n.parentNode)==null?void 0:s.removeChild(n)}),this.tags=[],this.ctr=0},e})(),z="-ms-",Re="-moz-",R="-webkit-",sr="comm",it="rule",at="decl",ln="@import",ir="@keyframes",cn="@layer",dn=Math.abs,$e=String.fromCharCode,fn=Object.assign;function un(e,r){return W(e,0)^45?(((r<<2^W(e,0))<<2^W(e,1))<<2^W(e,2))<<2^W(e,3):0}function ar(e){return e.trim()}function hn(e,r){return(e=r.exec(e))?e[0]:e}function I(e,r,i){return e.replace(r,i)}function et(e,r){return e.indexOf(r)}function W(e,r){return e.charCodeAt(r)|0}function Ne(e,r,i){return e.slice(r,i)}function te(e){return e.length}function ot(e){return e.length}function Oe(e,r){return r.push(e),e}function pn(e,r){return e.map(r).join("")}var Ve=1,ge=1,or=0,Z=0,G=0,xe="";function qe(e,r,i,n,s,t,a){return{value:e,root:r,parent:i,type:n,props:s,children:t,line:Ve,column:ge,length:a,return:""}}function we(e,r){return fn(qe("",null,null,"",null,null,0),e,{length:-e.length},r)}function mn(){return G}function gn(){return G=Z>0?W(xe,--Z):0,ge--,G===10&&(ge=1,Ve--),G}function Q(){return G=Z<or?W(xe,Z++):0,ge++,G===10&&(ge=1,Ve++),G}function re(){return W(xe,Z)}function Me(){return Z}function Le(e,r){return Ne(xe,e,r)}function Se(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lr(e){return Ve=ge=1,or=te(xe=e),Z=0,[]}function cr(e){return xe="",e}function Be(e){return ar(Le(Z-1,tt(e===91?e+2:e===40?e+1:e)))}function xn(e){for(;(G=re())&&G<33;)Q();return Se(e)>2||Se(G)>3?"":" "}function yn(e,r){for(;--r&&Q()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return Le(e,Me()+(r<6&&re()==32&&Q()==32))}function tt(e){for(;Q();)switch(G){case e:return Z;case 34:case 39:e!==34&&e!==39&&tt(G);break;case 40:e===41&&tt(e);break;case 92:Q();break}return Z}function vn(e,r){for(;Q()&&e+G!==57;)if(e+G===84&&re()===47)break;return"/*"+Le(r,Z-1)+"*"+$e(e===47?e:Q())}function bn(e){for(;!Se(re());)Q();return Le(e,Z)}function wn(e){return cr(Te("",null,null,null,[""],e=lr(e),0,[0],e))}function Te(e,r,i,n,s,t,a,d,o){for(var c=0,l=0,h=a,g=0,m=0,x=0,w=1,b=1,p=1,v=0,L="",j=s,E=t,D=n,S=L;b;)switch(x=v,v=Q()){case 40:if(x!=108&&W(S,h-1)==58){et(S+=I(Be(v),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:S+=Be(v);break;case 9:case 10:case 13:case 32:S+=xn(x);break;case 92:S+=yn(Me()-1,7);continue;case 47:switch(re()){case 42:case 47:Oe(jn(vn(Q(),Me()),r,i),o);break;default:S+="/"}break;case 123*w:d[c++]=te(S)*p;case 125*w:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+l:p==-1&&(S=I(S,/\f/g,"")),m>0&&te(S)-h&&Oe(m>32?$t(S+";",n,i,h-1):$t(I(S," ","")+";",n,i,h-2),o);break;case 59:S+=";";default:if(Oe(D=It(S,r,i,c,l,s,d,L,j=[],E=[],h),t),v===123)if(l===0)Te(S,r,D,D,j,t,h,d,E);else switch(g===99&&W(S,3)===110?100:g){case 100:case 108:case 109:case 115:Te(e,D,D,n&&Oe(It(e,D,D,0,0,s,d,L,s,j=[],h),E),s,E,h,d,n?j:E);break;default:Te(S,D,D,D,[""],E,0,d,E)}}c=l=m=0,w=p=1,L=S="",h=a;break;case 58:h=1+te(S),m=x;default:if(w<1){if(v==123)--w;else if(v==125&&w++==0&&gn()==125)continue}switch(S+=$e(v),v*w){case 38:p=l>0?1:(S+="\f",-1);break;case 44:d[c++]=(te(S)-1)*p,p=1;break;case 64:re()===45&&(S+=Be(Q())),g=re(),l=h=te(L=S+=bn(Me())),v++;break;case 45:x===45&&te(S)==2&&(w=0)}}return t}function It(e,r,i,n,s,t,a,d,o,c,l){for(var h=s-1,g=s===0?t:[""],m=ot(g),x=0,w=0,b=0;x<n;++x)for(var p=0,v=Ne(e,h+1,h=dn(w=a[x])),L=e;p<m;++p)(L=ar(w>0?g[p]+" "+v:I(v,/&\f/g,g[p])))&&(o[b++]=L);return qe(e,r,i,s===0?it:d,o,c,l)}function jn(e,r,i){return qe(e,r,i,sr,$e(mn()),Ne(e,2,-2),0)}function $t(e,r,i,n){return qe(e,r,i,at,Ne(e,0,n),Ne(e,n+1,-1),n)}function me(e,r){for(var i="",n=ot(e),s=0;s<n;s++)i+=r(e[s],s,e,r)||"";return i}function Cn(e,r,i,n){switch(e.type){case cn:if(e.children.length)break;case ln:case at:return e.return=e.return||e.value;case sr:return"";case ir:return e.return=e.value+"{"+me(e.children,n)+"}";case it:e.value=e.props.join(",")}return te(i=me(e.children,n))?e.return=e.value+"{"+i+"}":""}function Nn(e){var r=ot(e);return function(i,n,s,t){for(var a="",d=0;d<r;d++)a+=e[d](i,n,s,t)||"";return a}}function Sn(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ln(e){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=e(i)),r[i]}}var _n=function(r,i,n){for(var s=0,t=0;s=t,t=re(),s===38&&t===12&&(i[n]=1),!Se(t);)Q();return Le(r,Z)},kn=function(r,i){var n=-1,s=44;do switch(Se(s)){case 0:s===38&&re()===12&&(i[n]=1),r[n]+=_n(Z-1,i,n);break;case 2:r[n]+=Be(s);break;case 4:if(s===44){r[++n]=re()===58?"&\f":"",i[n]=r[n].length;break}default:r[n]+=$e(s)}while(s=Q());return r},Dn=function(r,i){return cr(kn(lr(r),i))},Vt=new WeakMap,En=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,n=r.parent,s=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!Vt.get(n))&&!s){Vt.set(r,!0);for(var t=[],a=Dn(i,t),d=n.props,o=0,c=0;o<a.length;o++)for(var l=0;l<d.length;l++,c++)r.props[c]=t[o]?a[o].replace(/&\f/g,d[l]):d[l]+" "+a[o]}}},An=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}};function dr(e,r){switch(un(e,r)){case 5103:return R+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return R+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return R+e+Re+e+z+e+e;case 6828:case 4268:return R+e+z+e+e;case 6165:return R+e+z+"flex-"+e+e;case 5187:return R+e+I(e,/(\w+).+(:[^]+)/,R+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return R+e+z+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return R+e+z+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return R+e+z+I(e,"shrink","negative")+e;case 5292:return R+e+z+I(e,"basis","preferred-size")+e;case 6060:return R+"box-"+I(e,"-grow","")+R+e+z+I(e,"grow","positive")+e;case 4554:return R+I(e,/([^-])(transform)/g,"$1"+R+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,R+"$1"),/(image-set)/,R+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,R+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+R+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,R+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(e)-1-r>6)switch(W(e,r+1)){case 109:if(W(e,r+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+R+"$2-$3$1"+Re+(W(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~et(e,"stretch")?dr(I(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(W(e,r+1)!==115)break;case 6444:switch(W(e,te(e)-3-(~et(e,"!important")&&10))){case 107:return I(e,":",":"+R)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+R+(W(e,14)===45?"inline-":"")+"box$3$1"+R+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(W(e,r+11)){case 114:return R+e+z+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return R+e+z+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return R+e+z+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return R+e+z+e+e}return e}var Pn=function(r,i,n,s){if(r.length>-1&&!r.return)switch(r.type){case at:r.return=dr(r.value,r.length);break;case ir:return me([we(r,{value:I(r.value,"@","@"+R)})],s);case it:if(r.length)return pn(r.props,function(t){switch(hn(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([we(r,{props:[I(t,/:(read-\w+)/,":"+Re+"$1")]})],s);case"::placeholder":return me([we(r,{props:[I(t,/:(plac\w+)/,":"+R+"input-$1")]}),we(r,{props:[I(t,/:(plac\w+)/,":"+Re+"$1")]}),we(r,{props:[I(t,/:(plac\w+)/,z+"input-$1")]})],s)}return""})}},On=[Pn],Mn=function(r){var i=r.key;if(i==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var b=w.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=r.stylisPlugins||On,t={},a,d=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(w){for(var b=w.getAttribute("data-emotion").split(" "),p=1;p<b.length;p++)t[b[p]]=!0;d.push(w)});var o,c=[En,An];{var l,h=[Cn,Sn(function(w){l.insert(w)})],g=Nn(c.concat(s,h)),m=function(b){return me(wn(b),g)};o=function(b,p,v,L){l=v,m(b?b+"{"+p.styles+"}":p.styles),L&&(x.inserted[p.name]=!0)}}var x={key:i,sheet:new on({key:i,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:t,registered:{},insert:o};return x.sheet.hydrate(d),x};function Bn(e){for(var r=0,i,n=0,s=e.length;s>=4;++n,s-=4)i=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(s){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Tn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fn=/[A-Z]|^ms/g,Rn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fr=function(r){return r.charCodeAt(1)===45},qt=function(r){return r!=null&&typeof r!="boolean"},Ye=Ln(function(e){return fr(e)?e:e.replace(Fn,"-$&").toLowerCase()}),Gt=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(Rn,function(n,s,t){return ie={name:s,styles:t,next:ie},s})}return Tn[r]!==1&&!fr(r)&&typeof i=="number"&&i!==0?i+"px":i};function Ie(e,r,i){if(i==null)return"";var n=i;if(n.__emotion_styles!==void 0)return n;switch(typeof i){case"boolean":return"";case"object":{var s=i;if(s.anim===1)return ie={name:s.name,styles:s.styles,next:ie},s.name;var t=i;if(t.styles!==void 0){var a=t.next;if(a!==void 0)for(;a!==void 0;)ie={name:a.name,styles:a.styles,next:ie},a=a.next;var d=t.styles+";";return d}return In(e,r,i)}}var o=i;if(r==null)return o;var c=r[o];return c!==void 0?c:o}function In(e,r,i){var n="";if(Array.isArray(i))for(var s=0;s<i.length;s++)n+=Ie(e,r,i[s])+";";else for(var t in i){var a=i[t];if(typeof a!="object"){var d=a;r!=null&&r[d]!==void 0?n+=t+"{"+r[d]+"}":qt(d)&&(n+=Ye(t)+":"+Gt(t,d)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var o=0;o<a.length;o++)qt(a[o])&&(n+=Ye(t)+":"+Gt(t,a[o])+";");else{var c=Ie(e,r,a);switch(t){case"animation":case"animationName":{n+=Ye(t)+":"+c+";";break}default:n+=t+"{"+c+"}"}}}return n}var Ht=/label:\s*([^\s;{]+)\s*(;|$)/g,ie;function Ke(e,r,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";ie=void 0;var t=e[0];if(t==null||t.raw===void 0)n=!1,s+=Ie(i,r,t);else{var a=t;s+=a[0]}for(var d=1;d<e.length;d++)if(s+=Ie(i,r,e[d]),n){var o=t;s+=o[d]}Ht.lastIndex=0;for(var c="",l;(l=Ht.exec(s))!==null;)c+="-"+l[1];var h=Bn(s)+c;return{name:h,styles:s,next:ie}}function ur(e,r,i){var n="";return i.split(" ").forEach(function(s){e[s]!==void 0?r.push(e[s]+";"):s&&(n+=s+" ")}),n}var $n=function(r,i,n){var s=r.key+"-"+i.name;r.registered[s]===void 0&&(r.registered[s]=i.styles)},Vn=function(r,i,n){$n(r,i);var s=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var t=i;do r.insert(i===t?"."+s:"",t,r.sheet,!0),t=t.next;while(t!==void 0)}};function Wt(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function zt(e,r,i){var n=[],s=ur(e,n,i);return n.length<2?i:s+r(n)}var qn=function(r){var i=Mn(r);i.sheet.speedy=function(d){this.isSpeedy=d},i.compat=!0;var n=function(){for(var o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];var h=Ke(c,i.registered,void 0);return Vn(i,h),i.key+"-"+h.name},s=function(){for(var o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];var h=Ke(c,i.registered),g="animation-"+h.name;return Wt(i,{name:h.name,styles:"@keyframes "+g+"{"+h.styles+"}"}),g},t=function(){for(var o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];var h=Ke(c,i.registered);Wt(i,h)},a=function(){for(var o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];return zt(i.registered,n,Gn(c))};return{css:n,cx:a,injectGlobal:t,keyframes:s,hydrate:function(o){o.forEach(function(c){i.inserted[c]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:ur.bind(null,i.registered),merge:zt.bind(null,i.registered,n)}},Gn=function e(r){for(var i="",n=0;n<r.length;n++){var s=r[n];if(s!=null){var t=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))t=e(s);else{t="";for(var a in s)s[a]&&a&&(t&&(t+=" "),t+=a)}break}default:t=s}t&&(i&&(i+=" "),i+=t)}}return i};const Hn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Wn=Xt(Hn);var Ut;function zn(){if(Ut)return se;Ut=1;var e=se&&se.__rest||function(n,s){var t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,a=Object.getOwnPropertySymbols(n);d<a.length;d++)s.indexOf(a[d])<0&&Object.prototype.propertyIsEnumerable.call(n,a[d])&&(t[a[d]]=n[a[d]]);return t},r=se&&se.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(se,"__esModule",{value:!0});const i=r(Wn);return se.default=(n,s=!1,t="")=>{const{variables:a={}}=n,d=e(n,["variables"]),o={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},a.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},a.dark||{})},c=s?o.dark:o.light,{css:l,cx:h}=(0,i.default)({key:"react-diff",nonce:t}),g=l({width:"100%",label:"content"}),m=l({[`.${g}`]:{width:"50%"},label:"split-view"}),x=l({width:"100%",background:c.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),w=l({color:c.codeFoldContentColor,label:"code-fold-content"}),b=l({color:c.diffViewerColor,label:"content-text"}),p=l({background:c.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${c.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${c.diffViewerTitleBorderColor}`},[`.${b}`]:{color:c.diffViewerTitleColor}}),v=l({color:c.gutterColor,label:"line-number"}),L=l({background:c.removedBackground,color:c.removedColor,pre:{color:c.removedColor},[`.${v}`]:{color:c.removedGutterColor},label:"diff-removed"}),j=l({background:c.addedBackground,color:c.addedColor,pre:{color:c.addedColor},[`.${v}`]:{color:c.addedGutterColor},label:"diff-added"}),E=l({background:c.changedBackground,[`.${v}`]:{color:c.gutterColor},label:"diff-changed"}),D=l({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),S=l({background:c.wordAddedBackground,label:"word-added"}),O=l({background:c.wordRemovedBackground,label:"word-removed"}),P=l({backgroundColor:c.codeFoldGutterBackground,label:"code-fold-gutter"}),F=l({backgroundColor:c.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),u=l({backgroundColor:c.emptyLineBackground,label:"empty-line"}),y=l({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${j}`]:{pre:{color:c.addedColor}},[`&.${L}`]:{pre:{color:c.removedColor}}}),N=l({background:c.highlightBackground,label:"highlighted-line",[`.${S}, .${O}`]:{backgroundColor:"initial"}}),C=l({label:"highlighted-gutter"}),_=l({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:c.gutterBackground,"&:hover":{cursor:"pointer",background:c.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${j}`]:{background:c.addedGutterBackground},[`&.${L}`]:{background:c.removedGutterBackground},[`&.${C}`]:{background:c.highlightGutterBackground,"&:hover":{background:c.highlightGutterBackground}}}),k=l({"&:hover":{background:c.gutterBackground,cursor:"initial"},label:"empty-gutter"}),A=l({verticalAlign:"baseline",label:"line"}),M={diffContainer:x,diffRemoved:L,diffAdded:j,diffChanged:E,splitView:m,marker:y,highlightedGutter:C,highlightedLine:N,gutter:_,line:A,wordDiff:D,wordAdded:S,wordRemoved:O,codeFoldGutter:P,codeFold:F,emptyGutter:k,emptyLine:u,lineNumber:v,contentText:b,content:g,codeFoldContent:w,titleBlock:p},B=Object.keys(d).reduce(($,V)=>Object.assign(Object.assign({},$),{[V]:l(d[V])}),{});return Object.keys(M).reduce(($,V)=>Object.assign(Object.assign({},$),{[V]:B[V]?h(M[V],B[V]):M[V]}),{})},se}var je={},Jt;function Un(){if(Jt)return je;Jt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.computeHiddenBlocks=void 0;function e(r,i,n){let s=0,t,a={},d=[];return r.forEach((o,c)=>{const l=i.some(h=>h>=c-n&&h<=c+n);!l&&t==null?(t={index:s,startLine:c,endLine:c,lines:1},d.push(t),a[c]=t.index,s++):l?t=void 0:(t.endLine=c,t.lines++,a[c]=t.index)}),{lineBlocks:a,blocks:d}}return je.computeHiddenBlocks=e,je}var Zt=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function Jn(e,r){return!!(e===r||Zt(e)&&Zt(r))}function Zn(e,r){if(e.length!==r.length)return!1;for(var i=0;i<e.length;i++)if(!Jn(e[i],r[i]))return!1;return!0}function Qn(e,r){r===void 0&&(r=Zn);var i=null;function n(){for(var s=[],t=0;t<arguments.length;t++)s[t]=arguments[t];if(i&&i.lastThis===this&&r(s,i.lastArgs))return i.lastResult;var a=e.apply(this,s);return i={lastResult:a,lastArgs:s,lastThis:this},a}return n.clear=function(){i=null},n}const Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Yn=Xt(Xn);var Qt;function Kn(){return Qt||(Qt=1,(function(e){var r=Y&&Y.__createBinding||(Object.create?(function(w,b,p,v){v===void 0&&(v=p);var L=Object.getOwnPropertyDescriptor(b,p);(!L||("get"in L?!b.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return b[p]}}),Object.defineProperty(w,v,L)}):(function(w,b,p,v){v===void 0&&(v=p),w[v]=b[p]})),i=Y&&Y.__setModuleDefault||(Object.create?(function(w,b){Object.defineProperty(w,"default",{enumerable:!0,value:b})}):function(w,b){w.default=b}),n=Y&&Y.__importStar||function(w){if(w&&w.__esModule)return w;var b={};if(w!=null)for(var p in w)p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)&&r(b,w,p);return i(b,w),b},s=Y&&Y.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;const t=xr(),a=n(yr()),d=s(qr()),o=nn();Object.defineProperty(e,"DiffMethod",{enumerable:!0,get:function(){return o.DiffMethod}});const c=s(zn()),l=Un(),h=Yn,g=h.default||h;var m;(function(w){w.LEFT="L",w.RIGHT="R"})(m||(e.LineNumberPrefix=m={}));class x extends a.Component{constructor(b){super(b),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=p=>{const v=this.state.expandedBlocks.slice();v.push(p),this.setState({expandedBlocks:v})},this.computeStyles=g(c.default),this.onLineNumberClickProxy=p=>this.props.onLineNumberClick?v=>this.props.onLineNumberClick(p,v):()=>{},this.renderWordDiff=(p,v)=>p.map((L,j)=>(0,t.jsx)("span",{className:(0,d.default)(this.styles.wordDiff,{[this.styles.wordAdded]:L.type===o.DiffType.ADDED,[this.styles.wordRemoved]:L.type===o.DiffType.REMOVED}),children:v?v(L.value):L.value},j)),this.renderLine=(p,v,L,j,E,D)=>{const S=`${L}-${p}`,O=`${D}-${E}`,P=this.props.highlightLines.includes(S)||this.props.highlightLines.includes(O),F=v===o.DiffType.ADDED,u=v===o.DiffType.REMOVED,y=v===o.DiffType.CHANGED;let N;return Array.isArray(j)?N=this.renderWordDiff(j,this.props.renderContent):this.props.renderContent?N=this.props.renderContent(j):N=j,(0,t.jsxs)(a.Fragment,{children:[!this.props.hideLineNumbers&&(0,t.jsx)("td",{onClick:p&&this.onLineNumberClickProxy(S),className:(0,d.default)(this.styles.gutter,{[this.styles.emptyGutter]:!p,[this.styles.diffAdded]:F,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:y,[this.styles.highlightedGutter]:P}),children:(0,t.jsx)("pre",{className:this.styles.lineNumber,children:p})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,t.jsx)("td",{onClick:E&&this.onLineNumberClickProxy(O),className:(0,d.default)(this.styles.gutter,{[this.styles.emptyGutter]:!E,[this.styles.diffAdded]:F,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:y,[this.styles.highlightedGutter]:P}),children:(0,t.jsx)("pre",{className:this.styles.lineNumber,children:E})}),this.props.renderGutter?this.props.renderGutter({lineNumber:p,type:v,prefix:L,value:j,additionalLineNumber:E,additionalPrefix:D,styles:this.styles}):null,!this.props.hideMarkers&&(0,t.jsx)("td",{className:(0,d.default)(this.styles.marker,{[this.styles.emptyLine]:!N,[this.styles.diffAdded]:F,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:y,[this.styles.highlightedLine]:P}),children:(0,t.jsxs)("pre",{children:[F&&"+",u&&"-"]})}),(0,t.jsx)("td",{className:(0,d.default)(this.styles.content,{[this.styles.emptyLine]:!N,[this.styles.diffAdded]:F,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:y,[this.styles.highlightedLine]:P}),children:(0,t.jsx)("pre",{className:this.styles.contentText,children:N})})]})},this.renderSplitView=({left:p,right:v},L)=>(0,t.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(p.lineNumber,p.type,m.LEFT,p.value),this.renderLine(v.lineNumber,v.type,m.RIGHT,v.value)]},L),this.renderInlineView=({left:p,right:v},L)=>{let j;return p.type===o.DiffType.REMOVED&&v.type===o.DiffType.ADDED?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)("tr",{className:this.styles.line,children:this.renderLine(p.lineNumber,p.type,m.LEFT,p.value,null)}),(0,t.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,v.type,m.RIGHT,v.value,v.lineNumber)})]},L):(p.type===o.DiffType.REMOVED&&(j=this.renderLine(p.lineNumber,p.type,m.LEFT,p.value,null)),p.type===o.DiffType.DEFAULT&&(j=this.renderLine(p.lineNumber,p.type,m.LEFT,p.value,v.lineNumber,m.RIGHT)),v.type===o.DiffType.ADDED&&(j=this.renderLine(null,v.type,m.RIGHT,v.value,v.lineNumber)),(0,t.jsx)("tr",{className:this.styles.line,children:j},L))},this.onBlockClickProxy=p=>()=>this.onBlockExpand(p),this.renderSkippedLineIndicator=(p,v,L,j)=>{const{hideLineNumbers:E,splitView:D}=this.props,S=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(p,L,j):(0,t.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",p," lines ..."]}),O=(0,t.jsx)("td",{children:(0,t.jsx)("a",{onClick:this.onBlockClickProxy(v),tabIndex:0,children:S})}),P=!D&&!E;return(0,t.jsxs)("tr",{className:this.styles.codeFold,children:[!E&&(0,t.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,t.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,t.jsx)("td",{className:(0,d.default)({[this.styles.codeFoldGutter]:P})}),P?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)("td",{}),O]}):(0,t.jsxs)(a.Fragment,{children:[O,this.props.renderGutter?(0,t.jsx)("td",{}):null,(0,t.jsx)("td",{})]}),(0,t.jsx)("td",{}),(0,t.jsx)("td",{})]},`${L}-${j}`)},this.renderDiff=()=>{const{oldValue:p,newValue:v,splitView:L,disableWordDiff:j,compareMethod:E,linesOffset:D}=this.props,{lineInformation:S,diffLines:O}=(0,o.computeLineInformation)(p,v,j,E,D,this.props.alwaysShowLines),P=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:F,blocks:u}=(0,l.computeHiddenBlocks)(S,O,P);return S.map((y,N)=>{if(this.props.showDiffOnly){const _=F[N];if(_!==void 0){const k=u[_].endLine===N;if(!this.state.expandedBlocks.includes(_)&&k)return(0,t.jsx)(a.Fragment,{children:this.renderSkippedLineIndicator(u[_].lines,_,y.left.lineNumber,y.right.lineNumber)},N);if(!this.state.expandedBlocks.includes(_))return null}}return L?this.renderSplitView(y,N):this.renderInlineView(y,N)})},this.render=()=>{const{oldValue:p,newValue:v,useDarkTheme:L,leftTitle:j,rightTitle:E,splitView:D,hideLineNumbers:S,hideMarkers:O,nonce:P}=this.props;if(this.props.compareMethod!==o.DiffMethod.JSON&&(typeof p!="string"||typeof v!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,L,P);const F=this.renderDiff();let u=S?2:3,y=S?2:4;O&&(u-=1,y-=1);const N=this.props.renderGutter?1:0,C=(j||E)&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{colSpan:(D?u:y)+N,className:this.styles.titleBlock,children:(0,t.jsx)("pre",{className:this.styles.contentText,children:j})}),D&&(0,t.jsx)("td",{colSpan:u+N,className:this.styles.titleBlock,children:(0,t.jsx)("pre",{className:this.styles.contentText,children:E})})]});return(0,t.jsx)("table",{className:(0,d.default)(this.styles.diffContainer,{[this.styles.splitView]:D}),children:(0,t.jsxs)("tbody",{children:[C,F]})})},this.state={expandedBlocks:[]}}}x.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:o.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},e.default=x})(Y)),Y}var es=Kn();const ts=vr(es);function rs({diffView:e,diffContent:r,isLoading:i,entities:n,onClose:s}){const[t,a]=q.useState(!1),[d,o]=q.useState(!1);return q.useEffect(()=>{o(!0)},[]),f.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center p-8 z-50",children:f.jsxs("div",{className:"bg-white rounded-xl shadow-2xl max-w-6xl w-full max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"p-6 border-b border-[#e1e1e1] flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-['IBM_Plex_Sans'] text-2xl font-semibold text-[#232323]",children:e.type==="file"?"File Diff":"Entity Diff"}),f.jsx("p",{className:"font-['IBM_Plex_Mono'] text-sm text-[#8e8e8e] mt-1",children:e.path}),e.type==="entity"&&e.entitySha&&f.jsxs("p",{className:"font-['IBM_Plex_Mono'] text-sm text-[#8e8e8e]",children:["Entity:"," ",n.find(c=>c.sha===e.entitySha)?.name||e.entitySha]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("button",{onClick:()=>a(!t),className:"px-3 py-1.5 bg-[#efefef] text-[#3e3e3e] rounded-lg font-['IBM_Plex_Sans'] text-sm font-semibold hover:bg-[#e1e1e1] transition-colors",title:t?"Show changes only":"Show full file",children:t?"Show Changes Only":"Show Full File"}),f.jsx("button",{onClick:s,className:"text-[#8e8e8e] hover:text-[#626262] transition-colors",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),f.jsx("div",{className:"flex-1 overflow-auto",children:i?f.jsx("div",{className:"p-6 text-center",children:f.jsx("div",{className:"text-[#8e8e8e]",children:"Loading diff..."})}):r?f.jsx("div",{className:"diff-viewer-wrapper",children:d&&f.jsx(ts,{oldValue:r.oldContent,newValue:r.newContent,splitView:!0,useDarkTheme:!1,showDiffOnly:!t,extraLinesSurroundingDiff:4,styles:{variables:{light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f6f8fa",gutterBackgroundDark:"#f3f4f6",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1"}},contentText:{fontSize:"12px",lineHeight:"1.5"},line:{padding:"2px 10px",fontSize:"12px","&:hover":{background:"#f8f9fa"}},splitView:{display:"flex",width:"100%"},diffContainer:{width:"50%",overflowX:"auto"}}})}):f.jsx("div",{className:"p-6 text-center",children:f.jsx("div",{className:"text-[#8e8e8e]",children:"No diff available"})})}),f.jsx("div",{className:"p-6 border-t border-[#e1e1e1] flex justify-end gap-3",children:f.jsx("button",{onClick:s,className:"px-4 py-2 bg-[#efefef] text-[#3e3e3e] rounded-lg font-['IBM_Plex_Sans'] font-semibold hover:bg-[#e1e1e1] transition-colors",children:"Close"})})]})})}function ns({activeTab:e,onTabChange:r,uncommittedCount:i,branchCount:n}){return f.jsx("div",{className:"border-b border-gray-200 mb-6",children:f.jsxs("nav",{className:"flex gap-8 items-center",children:[f.jsx("button",{onClick:()=>r("uncommitted"),className:`relative pb-4 px-2 text-sm font-medium transition-colors ${e==="uncommitted"?"text-[#005C75] border-b-2 border-[#005C75]":"text-gray-500 hover:text-gray-700"}`,children:f.jsxs("span",{className:"flex items-center gap-2",children:["Uncommitted Changes",i>0&&f.jsx("span",{className:`inline-flex items-center justify-center px-2 py-0.5 text-xs font-semibold rounded-full ${e==="uncommitted"?"bg-[#e8f1f5] text-[#005C75]":"bg-gray-200 text-gray-700"}`,children:i})]})}),f.jsx("button",{onClick:()=>r("branch"),className:`relative pb-4 px-2 text-sm font-medium transition-colors ${e==="branch"?"text-[#005C75] border-b-2 border-[#005C75]":"text-gray-500 hover:text-gray-700"}`,children:f.jsxs("span",{className:"flex items-center gap-2",children:["Branch Changes",n>0&&f.jsx("span",{className:`inline-flex items-center justify-center px-2 py-0.5 text-xs font-semibold rounded-full ${e==="branch"?"bg-[#e8f1f5] text-[#005C75]":"bg-gray-200 text-gray-700"}`,children:n})]})})]})})}function ss(e,r){const n=r.match(/text-(\w+)-\d+/)?.[1]||"gray",t={green:"#15803d",gray:"#374151",orange:"#b45309",blue:"#1e40af",amber:"#b45309",purple:"#6b21a8"}[n]||"#374151";switch(e){case"✓":return f.jsx(Nr,{size:16,color:t});case"○":return f.jsx(Ar,{size:16,color:t});case"⚠":return f.jsx(Dr,{size:16,color:t});case"●":return f.jsx(kr,{size:16,color:t});case"+":return f.jsx(Or,{size:16,color:t});default:return e}}function is({entity:e,variant:r="full"}){const i=Lr(e),{badge:n}=i,s=ss(n.icon,n.color);return r==="icon-only"?f.jsx("span",{className:`${n.color} text-sm font-bold`,title:n.label,children:s}):r==="compact"?f.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-normal border ${n.color} ${n.bgColor} ${n.borderColor}`,title:n.label,children:f.jsx("span",{children:n.label})}):f.jsx("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-normal border ${n.color} ${n.bgColor} ${n.borderColor}`,children:f.jsx("span",{children:n.label})})}function as({entity:e,filePath:r,impactedEntities:i,isBeingAnalyzed:n,isQueued:s,projectSlug:t,diffType:a,baseBranch:d,currentBranch:o,onGenerateSimulation:c,onShowLogs:l}){const h=e.analyses?.[0],g=h?.scenarios||[],m=h?.status?.scenarios||[];return f.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-white border border-[#e1e1e1] rounded-md transition-all hover:border-[#005c75] hover:shadow-sm",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Ce,{to:`/entity/${e.sha}`,className:"flex items-center gap-3 flex-1 min-w-0 no-underline",children:[f.jsx(Yt,{type:e.entityType}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"font-['IBM_Plex_Sans'] font-medium text-sm text-[#343434] flex items-center gap-2",children:[f.jsx("span",{children:e.name}),e.entityType==="visual"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#8B5CF60D",color:"#8B5CF6"},children:"Visual"}),e.entityType==="library"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#0DBFE90D",color:"#0DBFE9"},children:"Library"}),e.entityType==="other"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#EC48990D",color:"#EC4899"},children:"Other"}),f.jsx(is,{entity:e,variant:"full"})]}),e.description&&f.jsx("div",{className:"font-['IBM_Plex_Sans'] text-xs text-[#8e8e8e] mt-0.5 overflow-hidden text-ellipsis whitespace-nowrap",children:e.description})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[n&&f.jsxs("div",{className:"px-2 py-1 bg-pink-100 rounded text-xs text-pink-700 font-semibold flex items-center gap-1.5",children:[f.jsxs("svg",{className:"animate-spin h-3.5 w-3.5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Analyzing..."]}),!n&&s&&f.jsx("div",{className:"px-2 py-1 bg-purple-50 border border-purple-300 rounded text-xs text-purple-700 font-semibold",children:"⏳ Queued"})]})]}),(e.entityType==="visual"||e.entityType==="library")&&!n&&!s&&f.jsx("button",{onClick:x=>{x.stopPropagation(),c(e)},className:"px-3 py-1.5 bg-[#005c75] text-white rounded-md text-xs font-['IBM_Plex_Sans'] font-medium hover:bg-[#004a5e] transition-colors whitespace-nowrap",title:"Analyze this entity",children:"Analyze"}),n&&t&&f.jsx("button",{onClick:x=>{x.stopPropagation(),l(e.sha)},className:"px-3 py-1.5 bg-[#626262] text-white rounded-md text-xs font-['IBM_Plex_Sans'] font-semibold hover:bg-[#4a4a4a] transition-colors whitespace-nowrap",title:"View analysis logs",children:"📋 Logs"})]}),(e.entityType==="visual"||e.entityType==="library")&&g.length>0&&f.jsx("div",{className:"flex gap-2.5 mt-3 overflow-x-auto pb-1",children:g.map((x,w)=>{const b=x.metadata?.screenshotPaths?.[0],p=m.find(j=>j.name===x.name),v=p?.screenshotStartedAt&&!p?.screenshotFinishedAt,L=!!b;return f.jsx(Ce,{to:x.id?`/entity/${e.sha}/scenarios/${x.id}`:`/entity/${e.sha}`,className:"shrink-0 block no-underline",children:f.jsx("div",{className:"w-36 h-24 rounded-md border border-gray-200 overflow-hidden bg-gray-100 flex items-center justify-center transition-all",onMouseEnter:j=>{j.currentTarget.style.borderColor="#005C75",j.currentTarget.style.boxShadow="0 4px 12px rgba(0, 92, 117, 0.15)"},onMouseLeave:j=>{j.currentTarget.style.borderColor="#d1d5db",j.currentTarget.style.boxShadow="none"},children:L?f.jsx(er,{screenshotPath:b,alt:x.name,className:"max-w-full max-h-full object-contain"}):f.jsx("span",{className:`text-2xl ${v?"animate-pulse":"text-gray-400"}`,children:v?"⋯":"⏹️"})})},w)})})]})}function os({files:e,entityImpactMap:r,expandedFiles:i,isEntityBeingAnalyzed:n,isEntityQueued:s,projectSlug:t,baseBranch:a,currentBranch:d,onToggleFile:o,onShowFileDiff:c,onGenerateSimulation:l,onShowLogs:h}){return f.jsx("div",{children:e.length>0?f.jsx("div",{className:"flex flex-col gap-3",children:e.map(([g,{status:m,editedEntities:x}])=>{const w=i.has(g);return f.jsxs("div",{className:"bg-white border border-gray-200 border-l-4 rounded-lg overflow-hidden",style:{borderLeftColor:"#306AFF"},children:[f.jsx("div",{className:"p-4 cursor-pointer select-none transition-colors hover:bg-gray-50",onClick:()=>o(g),role:"button",tabIndex:0,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),o(g))},children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"text-gray-500 text-xs w-4 shrink-0",children:w?"▼":"▶"}),f.jsxs("svg",{width:"16",height:"20",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0",children:[f.jsxs("g",{clipPath:"url(#clip0_784_10666)",children:[f.jsx("path",{d:"M0 2.55857C0 1.14551 1.14551 0 2.55857 0H8.73194L12 3.3616V13.4414C12 14.8545 10.8545 16 9.44143 16H2.55857C1.14551 16 0 14.8545 0 13.4414V2.55857Z",fill:"#DDDDFE"}),f.jsx("path",{d:"M8.72656 3.3307H11.9906L8.72656 0V3.3307Z",fill:"#306AFF"}),f.jsx("line",{x1:"1.8125",y1:"5.94825",x2:"10.0235",y2:"5.94825",stroke:"#306AFF",strokeWidth:"1.27929"}),f.jsx("line",{x1:"1.8125",y1:"8.82715",x2:"6.01207",y2:"8.82715",stroke:"#306AFF",strokeWidth:"1.27929"}),f.jsx("line",{x1:"1.8125",y1:"11.7061",x2:"10.0235",y2:"11.7061",stroke:"#306AFF",strokeWidth:"1.27929"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_784_10666",children:f.jsx("rect",{width:"12",height:"16",fill:"white"})})})]}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("span",{className:"font-normal text-gray-900 text-sm block truncate",children:g}),f.jsxs("span",{className:"text-xs text-gray-500",children:[x.length," entit",x.length!==1?"ies":"y"]})]})]})}),w&&x.length>0&&f.jsx("div",{className:"border-t border-gray-200 bg-gray-50 p-3 flex flex-col gap-2",children:x.map(b=>f.jsx(as,{entity:b,filePath:g,impactedEntities:r.get(b.sha)||[],isBeingAnalyzed:n(b.sha),isQueued:s(b.sha),projectSlug:t,diffType:"uncommitted",baseBranch:a,currentBranch:d,onGenerateSimulation:l,onShowLogs:h},b.sha))})]},g)})}):f.jsxs("div",{className:"py-12 px-6 text-center",children:[f.jsx("div",{className:"text-6xl mb-4 opacity-50",children:"✓"}),f.jsx("p",{className:"font-['IBM_Plex_Sans'] text-lg font-semibold text-[#3e3e3e] mb-2",children:"No edited entities"}),f.jsxs("p",{className:"font-['IBM_Plex_Sans'] text-sm text-[#8e8e8e]",children:["There are no uncommitted changes.",f.jsx("br",{}),f.jsx("br",{}),"If you edit a file in the project, it will show up here."]})]})})}function ls({status:e}){const i={modified:{label:"M",bgColor:"bg-[#f59e0c]"},added:{label:"A",bgColor:"bg-emerald-500"},deleted:{label:"D",bgColor:"bg-red-500",showWarning:!0},renamed:{label:"R",bgColor:"bg-indigo-500"},untracked:{label:"U",bgColor:"bg-purple-500"}}[e]||{label:"?",bgColor:"bg-gray-500"};return f.jsxs("div",{className:"inline-flex items-center gap-1",children:[f.jsx("span",{className:`inline-flex items-center justify-center w-5 h-5 text-[11px] font-bold text-white rounded ${i.bgColor}`,title:e,children:i.label}),i.showWarning&&f.jsx("span",{className:"inline-flex items-center justify-center w-3 h-3 text-[10px] text-amber-600",title:"Warning: File will be deleted",children:"⚠"})]})}function cs({files:e,currentBranch:r,defaultBranch:i,baseBranch:n,allBranches:s,expandedFiles:t,isEntityBeingAnalyzed:a,isEntityQueued:d,isAnyAnalysisInProgress:o,isAnalyzing:c,lastLogLine:l,projectSlug:h,onToggleFile:g,onBranchChange:m,onGenerateSimulation:x,onShowLogs:w}){return e.length>0&&e.some(([b,{entities:p}])=>p.length>0),f.jsxs("div",{children:[f.jsx("div",{className:"mb-5",children:r===i?f.jsxs("p",{className:"text-sm text-gray-500",children:["Currently on the primary branch"," ",f.jsx("strong",{className:"text-gray-900 font-semibold",children:r})]}):f.jsxs("p",{className:"text-sm text-gray-500",children:["Changes in"," ",f.jsx("strong",{className:"text-gray-900 font-semibold",children:r})," ","compared to"," ",f.jsx("select",{value:n,onChange:b=>m(b.target.value),className:"py-0.5 px-2 bg-white border border-gray-300 rounded-md text-sm font-semibold text-gray-900 cursor-pointer hover:border-indigo-500",children:s.filter(b=>b!==r).map(b=>f.jsx("option",{value:b,children:b},b))})]})}),r===i?f.jsxs("div",{className:"py-12 px-6 text-center bg-blue-50 rounded-lg border border-blue-100",children:[f.jsx("div",{className:"text-6xl mb-4",children:"ℹ️"}),f.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-3",children:"You're on the primary branch"}),f.jsxs("p",{className:"text-sm text-gray-600 mb-2 max-w-md mx-auto",children:["When you switch to a feature branch, this section will show all the changes between your branch and"," ",f.jsx("strong",{className:"font-semibold",children:i}),"."]}),f.jsx("p",{className:"text-sm text-gray-600 max-w-md mx-auto",children:"This helps you understand what will be included in your pull request before you create it."})]}):e.length>0?f.jsx("div",{className:"flex flex-col gap-3",children:e.map(([b,{status:p,entities:v}])=>{const L=t.has(b);return f.jsxs("div",{className:"bg-white border border-gray-200 border-l-4 rounded-lg overflow-hidden",style:{borderLeftColor:"#306AFF"},children:[f.jsx("div",{className:"p-4 cursor-pointer select-none transition-colors hover:bg-gray-50",onClick:()=>g(b),role:"button",tabIndex:0,onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),g(b))},children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"text-gray-500 text-xs w-4 shrink-0",children:L?"▼":"▶"}),f.jsxs("svg",{width:"16",height:"20",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0",children:[f.jsxs("g",{clipPath:"url(#clip0_784_10666)",children:[f.jsx("path",{d:"M0 2.55857C0 1.14551 1.14551 0 2.55857 0H8.73194L12 3.3616V13.4414C12 14.8545 10.8545 16 9.44143 16H2.55857C1.14551 16 0 14.8545 0 13.4414V2.55857Z",fill:"#DDDDFE"}),f.jsx("path",{d:"M8.72656 3.3307H11.9906L8.72656 0V3.3307Z",fill:"#306AFF"}),f.jsx("line",{x1:"1.8125",y1:"5.94825",x2:"10.0235",y2:"5.94825",stroke:"#306AFF",strokeWidth:"1.27929"}),f.jsx("line",{x1:"1.8125",y1:"8.82715",x2:"6.01207",y2:"8.82715",stroke:"#306AFF",strokeWidth:"1.27929"}),f.jsx("line",{x1:"1.8125",y1:"11.7061",x2:"10.0235",y2:"11.7061",stroke:"#306AFF",strokeWidth:"1.27929"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_784_10666",children:f.jsx("rect",{width:"12",height:"16",fill:"white"})})})]}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-normal text-gray-900 text-sm block truncate",children:b}),f.jsx(ls,{status:p.status})]}),f.jsxs("span",{className:"text-xs text-gray-500",children:[v.length," entit",v.length!==1?"ies":"y"]})]})]})}),L&&v.length>0&&f.jsx("div",{className:"border-t border-gray-200 bg-gray-50 p-2 flex flex-col gap-1.5",children:v.map(j=>{const E=a(j.sha),D=d(j.sha),S=E&&l,O=j.analyses?.[0],P=O?.scenarios||[],F=O?.status?.scenarios||[];return f.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-white border border-gray-200 rounded-md transition-all hover:border-blue-600 hover:shadow-sm",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Ce,{to:`/entity/${j.sha}`,className:"flex items-center gap-3 flex-1 min-w-0 no-underline",children:[f.jsx(Yt,{type:j.entityType}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"font-['IBM_Plex_Sans'] font-medium text-sm text-[#343434] flex items-center gap-2",children:[f.jsx("span",{children:j.name}),j.entityType==="visual"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#8B5CF60D",color:"#8B5CF6"},children:"Visual"}),j.entityType==="library"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#0DBFE90D",color:"#0DBFE9"},children:"Library"}),j.entityType==="other"&&f.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#EC48990D",color:"#EC4899"},children:"Other"})]}),j.description&&f.jsx("div",{className:"font-['IBM_Plex_Sans'] text-xs text-[#8e8e8e] mt-0.5 overflow-hidden text-ellipsis whitespace-nowrap",children:j.description})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[E&&f.jsxs("div",{className:"px-2 py-1 bg-pink-100 rounded text-xs text-pink-700 font-semibold flex items-center gap-1.5",children:[f.jsxs("svg",{className:"animate-spin h-3.5 w-3.5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Analyzing..."]}),!E&&D&&f.jsx("div",{className:"px-2 py-1 bg-purple-50 border border-purple-300 rounded text-xs text-purple-700 font-semibold",children:"⏳ Queued"})]})]}),(j.entityType==="visual"||j.entityType==="library")&&f.jsx("button",{onClick:u=>{u.stopPropagation(),x(j)},disabled:c||o||D||E,className:"px-3 py-1.5 bg-[#005c75] text-white rounded-md text-xs font-['IBM_Plex_Sans'] font-medium hover:bg-[#004a5e] transition-colors whitespace-nowrap disabled:bg-gray-400 disabled:cursor-not-allowed",title:D?"Entity is queued for analysis":E?"Entity is being analyzed":o?"Please wait for current analysis to complete":"Analyze this entity",children:E?"Analyzing...":D?"Queued":o?"Waiting...":"Analyze"}),E&&h&&f.jsx("button",{onClick:u=>{u.stopPropagation(),w(j.sha)},className:"px-3 py-1.5 bg-[#626262] text-white rounded-md text-xs font-['IBM_Plex_Sans'] font-medium hover:bg-[#4a4a4a] transition-colors whitespace-nowrap",title:"View analysis logs",children:"📋 Logs"})]}),S&&f.jsxs("div",{className:"flex items-center gap-1.5 text-[13px] font-medium text-blue-600 px-2 py-1 bg-blue-50 rounded",children:[f.jsx("span",{className:"animate-spin",children:"⚙️"}),f.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-xs max-w-full",title:l,children:l})]}),P.length>0&&f.jsx("div",{className:"flex gap-2 flex-wrap",children:P.slice(0,5).map((u,y)=>{const N=u.metadata?.screenshotPaths?.[0],C=F.find(M=>M.name===u.name),_=C?.screenshotStartedAt&&!C?.screenshotFinishedAt,k=!!N,A=_r(j)||j.metadata?.isSuperseded;return k?f.jsx(Ce,{to:`/entity/${j.sha}/scenarios/${u.id}`,className:`relative w-20 h-15 border-2 rounded overflow-hidden bg-gray-50 cursor-pointer transition-all flex items-center justify-center hover:scale-105 hover:shadow-md ${A?"border-amber-500 hover:border-amber-600":"border-gray-200 hover:border-blue-600"}`,children:f.jsx(er,{screenshotPath:N,alt:u.name,title:u.name,className:"max-w-full max-h-full object-contain object-center"})},y):f.jsx(Ce,{to:`/entity/${j.sha}/scenarios/${u.id}`,className:"w-20 h-15 border-2 border-dashed border-gray-300 rounded bg-gray-50 flex items-center justify-center text-2xl",title:`Capturing ${u.name}...`,children:f.jsx("span",{className:_?"animate-spin":"text-gray-400",children:_?"⏳":"⏹️"})},y)})})]},j.sha)})})]},b)})}):f.jsxs("div",{className:"py-12 px-6 text-center",children:[f.jsx("div",{className:"text-6xl mb-4 opacity-50",children:"✓"}),f.jsx("p",{className:"text-lg font-semibold text-gray-700 mb-2",children:"No differences found"}),f.jsxs("p",{className:"text-sm text-gray-500",children:["This branch is up to date with ",n]})]})]})}const js=()=>[{title:"Git - CodeYam"},{name:"description",content:"Git status and impact analysis"}];function Cs(){const{entities:e,gitStatus:r,currentBranch:i,defaultBranch:n,allBranches:s,baseBranch:t,branchDiff:a,currentCommit:d,projectSlug:o,queueState:c}=br(),[l,h]=wr(),[g,m]=q.useState("uncommitted"),[x,w]=q.useState(null),b=l.get("expanded")==="true",p=rt(),v=p.data;q.useEffect(()=>{g==="branch"&&i&&t&&i!==t&&p.state==="idle"&&!v&&p.load(`/api/branch-entity-diff?base=${encodeURIComponent(t)}&compare=${encodeURIComponent(i)}`)},[g,i,t,p,v]);const L=q.useMemo(()=>{const T=Mr(r,e);return Array.from(T.entries()).sort((ee,X)=>ee[0].localeCompare(X[0]))},[r,e]),j=q.useMemo(()=>{const T=Br(a,e,v);return Array.from(T.entries()).sort((ee,X)=>ee[0].localeCompare(X[0]))},[a,e,v]),E=q.useMemo(()=>Tr(r,e),[r,e]);q.useMemo(()=>{const T=j.flatMap(([ee,X])=>X.entities);return Fr(T,e)},[j,e]);const D=q.useMemo(()=>L.map(([T])=>T),[L]),S=q.useMemo(()=>j.map(([T])=>T),[j]),{expandedUncommitted:O,expandedBranch:P,setExpandedUncommitted:F,setExpandedBranch:u,toggleFile:y,expandAllUncommitted:N,collapseAllUncommitted:C,expandAllBranch:_,collapseAllBranch:k}=Ir(b,D,S),{diffView:A,diffContent:M,isLoading:B,handleShowFileDiff:$,handleCloseDiff:V}=$r(t,i,g),H=d?.metadata?.currentRun,J=!!H?.createdAt&&!H?.analysisCompletedAt,{lastLine:K,isCompleted:ne}=jr(o,J),hr=J&&!ne,lt=new Set(H?.currentEntityShas||[]),Ge=new Set(c.jobs.flatMap(T=>T.entityShas||[])),He=new Set(c.currentlyExecuting?.entityShas||[]),{isAnalyzing:We,handleGenerateSimulation:ct,handleGenerateAllSimulations:pr,isEntityBeingAnalyzed:dt}=Vr(H?.currentEntityShas),ft=T=>Ge.has(T)||He.has(T),ut=T=>{T===n?l.delete("compare"):l.set("compare",T),h(l)},mr=()=>{const ee=(g==="uncommitted"?L.flatMap(([X,Ue])=>Ue.editedEntities):j.flatMap(([X,Ue])=>Ue.entities)).filter(X=>!lt.has(X.sha)&&!Ge.has(X.sha)&&!He.has(X.sha));pr(ee)},ht=L.length,pt=j.length,gr=g==="uncommitted"?ht:pt,_e=(g==="uncommitted"?L.flatMap(([T,ee])=>ee.editedEntities):j.flatMap(([T,ee])=>ee.entities)).filter(T=>T.entityType==="visual"||T.entityType==="library"),ze=_e.length>0&&_e.every(T=>lt.has(T.sha)),mt=_e.length>0&&!ze&&_e.every(T=>Ge.has(T.sha)||He.has(T.sha)),gt=We||ze||mt,xt=ze?"Analyzing...":mt?"Queued...":We?"Analyzing...":"Analyze All";return f.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:f.jsxs("div",{className:"px-36 py-12",children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Git Changes"}),f.jsx("div",{className:"flex items-center gap-4 text-sm text-gray-600 mt-2",children:i&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-xs",children:"Branch:"}),s.length>0?f.jsx("select",{value:i,onChange:T=>ut(T.target.value),className:"text-gray-900 font-medium px-2 py-1 border border-gray-300 rounded text-sm hover:border-gray-400 focus:outline-none focus:border-blue-500",style:{paddingRight:"26px",backgroundPosition:"right 6px center",backgroundRepeat:"no-repeat",backgroundSize:"16px",appearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")`},children:s.map(T=>f.jsxs("option",{value:T,children:[T," ",T===n?"(default)":""]},T))}):f.jsx("span",{className:"text-gray-900 font-medium",children:i})]})})]}),f.jsxs("div",{className:"flex items-center justify-between mb-1",children:[f.jsx(ns,{activeTab:g,onTabChange:m,uncommittedCount:ht,branchCount:pt}),gr>0&&f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:g==="uncommitted"?N:_,className:"px-3 py-1.5 text-xs font-['IBM_Plex_Sans'] font-medium text-[#626262] hover:text-cyblack-100 hover:bg-gray-100 rounded transition-colors cursor-pointer",children:"Expand All"}),f.jsx("button",{onClick:g==="uncommitted"?C:k,className:"px-3 py-1.5 text-xs font-['IBM_Plex_Sans'] font-medium text-[#626262] hover:text-cyblack-100 hover:bg-gray-100 rounded transition-colors cursor-pointer",children:"Collapse All"}),f.jsx("button",{onClick:mr,disabled:gt,className:"px-4 py-1.5 bg-[#005c75] text-white rounded text-xs font-['IBM_Plex_Sans'] font-medium hover:bg-[#004a5e] transition-colors cursor-pointer disabled:bg-gray-400 disabled:cursor-not-allowed",title:gt?xt:`Analyze all ${g} entities`,children:xt})]})]}),f.jsxs("div",{className:"overflow-hidden",children:[g==="uncommitted"&&f.jsx(os,{files:L,entityImpactMap:E,expandedFiles:O,isEntityBeingAnalyzed:dt,isEntityQueued:ft,projectSlug:o,baseBranch:t,currentBranch:i,onToggleFile:T=>y(T,O,F),onShowFileDiff:$,onGenerateSimulation:ct,onShowLogs:w}),g==="branch"&&i&&f.jsx(cs,{files:j,currentBranch:i,defaultBranch:n,baseBranch:t,allBranches:s,expandedFiles:P,isEntityBeingAnalyzed:dt,isEntityQueued:ft,isAnyAnalysisInProgress:hr,isAnalyzing:We,lastLogLine:K,projectSlug:o,onToggleFile:T=>y(T,P,u),onBranchChange:ut,onGenerateSimulation:ct,onShowLogs:w})]}),A&&f.jsx(rs,{diffView:A,diffContent:M,isLoading:B,entities:e,onClose:V}),x&&o&&f.jsx(Sr,{projectSlug:o,onClose:()=>w(null)})]})})}export{Cs as default,js as meta};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap";@layer components;@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:"IBM Plex Sans",sans-serif;--font-mono:"IBM Plex Mono",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-900:oklch(37.8% .077 168.94);--color-cyan-100:oklch(95.6% .045 203.388);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-600:oklch(59.2% .249 .584);--color-pink-700:oklch(52.5% .223 3.958);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-xl:36rem;--container-2xl:42rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-cyblack-100:#232323;--color-cygray-30:#e1e1e1;--color-cygray-10:#f9f9f9;--color-primary-100:#3b677b}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{box-sizing:border-box}body{margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.-top-2{top:calc(var(--spacing)*-2)}.top-0{top:calc(var(--spacing)*0)}.top-0\.5{top:calc(var(--spacing)*.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-10{top:calc(var(--spacing)*10)}.top-\[19px\]{top:19px}.top-\[42px\]{top:42px}.right-0{right:calc(var(--spacing)*0)}.right-0\.5{right:calc(var(--spacing)*.5)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-0\.5{bottom:calc(var(--spacing)*.5)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-10{bottom:calc(var(--spacing)*10)}.left-0{left:calc(var(--spacing)*0)}.left-0\.5{left:calc(var(--spacing)*.5)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-\[-35px\]{left:-35px}.left-\[17\.5px\]{left:17.5px}.z-10{z-index:10}.z-50{z-index:50}.z-1000{z-index:1000}.z-9998{z-index:9998}.z-9999{z-index:9999}.z-10000{z-index:10000}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.mx-5{margin-inline:calc(var(--spacing)*5)}.mx-6{margin-inline:calc(var(--spacing)*6)}.mx-auto{margin-inline:auto}.my-8{margin-block:calc(var(--spacing)*8)}.my-auto{margin-block:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-\[4px\]{margin-top:4px}.mr-1{margin-right:calc(var(--spacing)*1)}.mb-0\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.mb-\[6px\]{margin-bottom:6px}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-7{margin-left:calc(var(--spacing)*7)}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-4\/3{aspect-ratio:4/3}.aspect-square{aspect-ratio:1}.h-0\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-15{height:calc(var(--spacing)*15)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-40{height:calc(var(--spacing)*40)}.h-\[11\.5px\]{height:11.5px}.h-\[13\.26px\]{height:13.26px}.h-\[20\.464px\]{height:20.464px}.h-\[22px\]{height:22px}.h-\[23px\]{height:23px}.h-\[25px\]{height:25px}.h-\[26px\]{height:26px}.h-\[29px\]{height:29px}.h-\[38px\]{height:38px}.h-\[42px\]{height:42px}.h-\[54px\]{height:54px}.h-\[67px\]{height:67px}.h-\[90vh\]{height:90vh}.h-\[100px\]{height:100px}.h-\[110px\]{height:110px}.h-\[339\.923px\]{height:339.923px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[100px\]{max-height:100px}.max-h-\[120px\]{max-height:120px}.max-h-\[150px\]{max-height:150px}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-10{min-height:calc(var(--spacing)*10)}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-0\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-32{width:calc(var(--spacing)*32)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-\[11\.5px\]{width:11.5px}.w-\[13\.26px\]{width:13.26px}.w-\[25px\]{width:25px}.w-\[50px\]{width:50px}.w-\[90vw\]{width:90vw}.w-\[125px\]{width:125px}.w-\[148px\]{width:148px}.w-\[165px\]{width:165px}.w-\[175px\]{width:175px}.w-\[183px\]{width:183px}.w-\[187px\]{width:187px}.w-\[220px\]{width:220px}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-\[700px\]{max-width:700px}.max-w-\[800px\]{max-width:800px}.max-w-\[1000px\]{max-width:1000px}.max-w-\[1200px\]{max-width:1200px}.max-w-\[1400px\]{max-width:1400px}.max-w-\[1800px\]{max-width:1800px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[22px\]{min-width:22px}.min-w-\[25px\]{min-width:25px}.min-w-\[60px\]{min-width:60px}.min-w-\[320px\]{min-width:320px}.min-w-\[380px\]{min-width:380px}.min-w-\[400px\]{min-width:400px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\[slideIn_0\.3s_ease-out\]{animation:.3s ease-out slideIn}.animate-\[slideUp_0\.3s_ease-out\]{animation:.3s ease-out slideUp}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[150px_1fr\]{grid-template-columns:150px 1fr}.grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.grid-cols-\[340px_1fr\]{grid-template-columns:340px 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-\[11\.6px\]{gap:11.6px}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-\[5\.155px\]{border-radius:5.155px}.rounded-\[9\.095px\]{border-radius:9.095px}.rounded-\[9px\]{border-radius:9px}.rounded-\[20px\]{border-radius:20px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\[4px\]{border-top-left-radius:4px;border-bottom-left-radius:4px}.rounded-tl-\[8px\]{border-top-left-radius:8px}.rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\[4px\]{border-top-right-radius:4px;border-bottom-right-radius:4px}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.rounded-tr-lg{border-top-right-radius:var(--radius-lg)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-\[8px\]{border-bottom-left-radius:8px}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[\#005C75\],.border-\[\#005c75\]{border-color:#005c75}.border-\[\#90caf9\]{border-color:#90caf9}.border-\[\#333\]{border-color:#333}.border-\[\#555\]{border-color:#555}.border-\[\#c7c7c7\]{border-color:#c7c7c7}.border-\[\#c8f2e3\]{border-color:#c8f2e3}.border-\[\#ce93d8\]{border-color:#ce93d8}.border-\[\#e0e9ec\]{border-color:#e0e9ec}.border-\[\#e1e1e1\]{border-color:#e1e1e1}.border-\[\#efefef\]{border-color:#efefef}.border-\[\#fecaca\]{border-color:#fecaca}.border-\[rgba\(0\,92\,117\,0\.05\)\]{border-color:#005c750d}.border-\[rgba\(0\,92\,117\,0\.25\)\]{border-color:#005c7540}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-500{border-color:var(--color-amber-500)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-blue-800{border-color:var(--color-blue-800)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-orange-300{border-color:var(--color-orange-300)}.border-pink-300{border-color:var(--color-pink-300)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-purple-600{border-color:var(--color-purple-600)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-yellow-300{border-color:var(--color-yellow-300)}.border-t-transparent{border-top-color:#0000}.border-l-amber-500{border-left-color:var(--color-amber-500)}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#3e3e3e\]{background-color:#3e3e3e}.bg-\[\#4caf50\]{background-color:#4caf50}.bg-\[\#005c75\]{background-color:#005c75}.bg-\[\#9c27b0\]{background-color:#9c27b0}.bg-\[\#333\]{background-color:#333}.bg-\[\#00925d\]{background-color:#00925d}.bg-\[\#2196f3\]{background-color:#2196f3}.bg-\[\#252525\]{background-color:#252525}.bg-\[\#343434\]{background-color:#343434}.bg-\[\#626262\]{background-color:#626262}.bg-\[\#c7c7c7\]{background-color:#c7c7c7}.bg-\[\#cbf3fa\]{background-color:#cbf3fa}.bg-\[\#deeafc\]{background-color:#deeafc}.bg-\[\#e0e9ec\]{background-color:#e0e9ec}.bg-\[\#e1e1e1\]{background-color:#e1e1e1}.bg-\[\#e3f2fd\]{background-color:#e3f2fd}.bg-\[\#e5eff1\]{background-color:#e5eff1}.bg-\[\#e8f1f5\]{background-color:#e8f1f5}.bg-\[\#e8f5e9\]{background-color:#e8f5e9}.bg-\[\#ebf0f2\]{background-color:#ebf0f2}.bg-\[\#efefef\]{background-color:#efefef}.bg-\[\#f2fcf9\]{background-color:#f2fcf9}.bg-\[\#f3e5f5\]{background-color:#f3e5f5}.bg-\[\#f3eefe\]{background-color:#f3eefe}.bg-\[\#f6f9fc\]{background-color:#f6f9fc}.bg-\[\#f9f9f9\]{background-color:#f9f9f9}.bg-\[\#f59e0c\]{background-color:#f59e0c}.bg-\[\#fafafa\]{background-color:#fafafa}.bg-\[\#fce8c5\]{background-color:#fce8c5}.bg-\[\#fef2f2\]{background-color:#fef2f2}.bg-\[rgba\(0\,92\,117\,0\.15\)\]{background-color:#005c7526}.bg-\[rgba\(0\,92\,117\,0\.25\)\]{background-color:#005c7540}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-cyan-100{background-color:var(--color-cyan-100)}.bg-cygray-10{background-color:var(--color-cygray-10)}.bg-cygray-30{background-color:var(--color-cygray-30)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-pink-50{background-color:var(--color-pink-50)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-primary-100{background-color:var(--color-primary-100)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-600\/90{background-color:#9810fae6}@supports (color:color-mix(in lab,red,red)){.bg-purple-600\/90{background-color:color-mix(in oklab,var(--color-purple-600)90%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-900{background-color:var(--color-red-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-linear-to-br{--tw-gradient-position:to bottom right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-br{--tw-gradient-position:to bottom right in oklab}}.bg-linear-to-br{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-50{--tw-gradient-from:var(--color-blue-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-500{--tw-gradient-from:var(--color-emerald-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-500{--tw-gradient-from:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-400{--tw-gradient-to:var(--color-blue-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-400{--tw-gradient-to:var(--color-emerald-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-50{--tw-gradient-to:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-500{--tw-gradient-to:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-center{-o-object-position:center;object-position:center}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-\[5\.6px\]{padding:5.6px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-12{padding-inline:calc(var(--spacing)*12)}.px-36{padding-inline:calc(var(--spacing)*36)}.px-\[5px\]{padding-inline:5px}.px-\[7px\]{padding-inline:7px}.px-\[10px\]{padding-inline:10px}.px-\[15px\]{padding-inline:15px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-\[5px\]{padding-block:5px}.py-\[6\.444px\]{padding-block:6.444px}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-3\.5{padding-top:calc(var(--spacing)*3.5)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-24{padding-right:calc(var(--spacing)*24)}.pr-\[90px\]{padding-right:90px}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-2\.5{padding-bottom:calc(var(--spacing)*2.5)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-0{padding-left:calc(var(--spacing)*0)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-12{padding-left:calc(var(--spacing)*12)}.pl-\[10px\]{padding-left:10px}.text-center{text-align:center}.text-left{text-align:left}.font-\[\'IBM_Plex_Mono\'\]{font-family:IBM Plex Mono}.font-\[\'IBM_Plex_Sans\'\]{font-family:IBM Plex Sans}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-\[10\.2px\]{font-size:10.2px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[22px\]{font-size:22px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[40px\]{font-size:40px}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-\[13px\]{--tw-leading:13px;line-height:13px}.leading-\[15px\]{--tw-leading:15px;line-height:15px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-\[26px\]{--tw-leading:26px;line-height:26px}.leading-\[30px\]{--tw-leading:30px;line-height:30px}.leading-\[40px\]{--tw-leading:40px;line-height:40px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words,.wrap-break-word{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#2e7d32\]{color:#2e7d32}.text-\[\#2f80ed\]{color:#2f80ed}.text-\[\#3e3e3e\]{color:#3e3e3e}.text-\[\#005C75\],.text-\[\#005c75\]{color:#005c75}.text-\[\#6a1b9a\]{color:#6a1b9a}.text-\[\#8a8a8a\]{color:#8a8a8a}.text-\[\#8e8e8e\]{color:#8e8e8e}.text-\[\#9b51e0\]{color:#9b51e0}.text-\[\#666\]{color:#666}.text-\[\#00925d\]{color:#00925d}.text-\[\#999\]{color:#999}.text-\[\#1976d2\]{color:#1976d2}.text-\[\#232323\]{color:#232323}.text-\[\#343434\]{color:#343434}.text-\[\#626262\]{color:#626262}.text-\[\#646464\]{color:#646464}.text-\[\#808080\]{color:gray}.text-\[\#ccc\]{color:#ccc}.text-\[\#d4d4d4\]{color:#d4d4d4}.text-\[\#dc2626\]{color:#dc2626}.text-\[\#ef4444\]{color:#ef4444}.text-\[\#efefef\]{color:#efefef}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-cygray-10{color:var(--color-cygray-10)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-900{color:var(--color-emerald-900)}.text-gray-50{color:var(--color-gray-50)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-600{color:var(--color-indigo-600)}.text-orange-600{color:var(--color-orange-600)}.text-orange-700{color:var(--color-orange-700)}.text-pink-600{color:var(--color-pink-600)}.text-pink-700{color:var(--color-pink-700)}.text-primary-100{color:var(--color-primary-100)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-800{color:var(--color-purple-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-red-900{color:var(--color-red-900)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_10px_25px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:0 10px 25px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_20px_60px_rgba\(0\,0\,0\,0\.3\)\]{--tw-shadow:0 20px 60px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media(hover:hover){.group-hover\:text-\[\#005c75\]:is(:where(.group):hover *){color:#005c75}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}}.placeholder\:text-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}.first\:border-t:first-child{border-top-style:var(--tw-border-style);border-top-width:1px}.last\:mb-0:last-child{margin-bottom:calc(var(--spacing)*0)}.last\:rounded-b-lg:last-child{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){.hover\:translate-x-1:hover{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-\[\#005c75\]:hover{border-color:#005c75}.hover\:border-\[\#777\]:hover{border-color:#777}.hover\:border-amber-600:hover{border-color:var(--color-amber-600)}.hover\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\:border-indigo-400:hover{border-color:var(--color-indigo-400)}.hover\:border-indigo-500:hover{border-color:var(--color-indigo-500)}.hover\:bg-\[\#3a3a3a\]:hover{background-color:#3a3a3a}.hover\:bg-\[\#004a5c\]:hover{background-color:#004a5c}.hover\:bg-\[\#004a5e\]:hover{background-color:#004a5e}.hover\:bg-\[\#4a4a4a\]:hover{background-color:#4a4a4a}.hover\:bg-\[\#333\]:hover{background-color:#333}.hover\:bg-\[\#232323\]:hover{background-color:#232323}.hover\:bg-\[\#cbf3fa\]:hover{background-color:#cbf3fa}.hover\:bg-\[\#d0dde1\]:hover{background-color:#d0dde1}.hover\:bg-\[\#d0dfe4\]:hover{background-color:#d0dfe4}.hover\:bg-\[\#d4d4d4\]:hover{background-color:#d4d4d4}.hover\:bg-\[\#d8d8d8\]:hover{background-color:#d8d8d8}.hover\:bg-\[\#e1e1e1\]:hover{background-color:#e1e1e1}.hover\:bg-\[\#edf2f7\]:hover{background-color:#edf2f7}.hover\:bg-black\/10:hover{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/10:hover{background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:bg-purple-700\/95:hover{background-color:#8200daf2}@supports (color:color-mix(in lab,red,red)){.hover\:bg-purple-700\/95:hover{background-color:color-mix(in oklab,var(--color-purple-700)95%,transparent)}}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:text-\[\#004a5e\]:hover{color:#004a5e}.hover\:text-\[\#232323\]:hover{color:#232323}.hover\:text-\[\#626262\]:hover{color:#626262}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-cyblack-100:hover{color:var(--color-cyblack-100)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:text-indigo-700:hover{color:var(--color-indigo-700)}.hover\:text-purple-800:hover{color:var(--color-purple-800)}.hover\:text-red-800:hover{color:var(--color-red-800)}.hover\:text-red-900:hover{color:var(--color-red-900)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-2:focus{border-style:var(--tw-border-style);border-width:2px}.focus\:border-\[\#005c75\]:focus{border-color:#005c75}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-blue-600:focus{border-color:var(--color-blue-600)}.focus\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-\[\#005c75\]:focus{--tw-ring-color:#005c75}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-blue-600:focus{--tw-ring-color:var(--color-blue-600)}.focus\:ring-blue-600\/10:focus{--tw-ring-color:#155dfc1a}@supports (color:color-mix(in lab,red,red)){.focus\:ring-blue-600\/10:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-600)10%,transparent)}}.focus\:ring-gray-300:focus{--tw-ring-color:var(--color-gray-300)}.focus\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\:translate-y-0:disabled{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.disabled\:scale-100:disabled{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\:bg-gray-400:disabled{background-color:var(--color-gray-400)}.disabled\:bg-red-400:disabled{background-color:var(--color-red-400)}.disabled\:text-gray-600:disabled{color:var(--color-gray-600)}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:opacity-75:disabled{opacity:.75}@media(min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:justify-between{justify-content:space-between}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./file-text-B6Er7j5k.js";const e=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],a=c("loader-circle",e);export{a as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.__remixManifest={"entry":{"module":"/assets/entry.client-CdGoUs8A.js","imports":["/assets/components-Dj-Ggnl2.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/root-Cf8VBqIb.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/file-text-B6Er7j5k.js","/assets/settings-COJUrwGu.js","/assets/useToast-BRShB17p.js","/assets/useLastLogLine-Lumm1t01.js","/assets/LogViewer-BKKG1s2B.js","/assets/clock-DKqtX8js.js"],"css":[]},"routes/entity.$sha_.edit.$scenarioId":{"id":"routes/entity.$sha_.edit.$scenarioId","parentId":"root","path":"entity/:sha/edit/:scenarioId","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/entity._sha_.edit._scenarioId-C9w-q7P3.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/InteractivePreview-B0oiPem-.js","/assets/useLastLogLine-Lumm1t01.js"],"css":["/assets/InteractivePreview-CMKNK2uU.css"]},"routes/entity.$sha_.create-scenario":{"id":"routes/entity.$sha_.create-scenario","parentId":"root","path":"entity/:sha/create-scenario","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/entity._sha_.create-scenario-L7M9Vr5z.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/InteractivePreview-B0oiPem-.js","/assets/useLastLogLine-Lumm1t01.js"],"css":["/assets/InteractivePreview-CMKNK2uU.css"]},"routes/api.generate-scenario-data":{"id":"routes/api.generate-scenario-data","parentId":"root","path":"api/generate-scenario-data","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.generate-scenario-data-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.llm-calls.$entitySha":{"id":"routes/api.llm-calls.$entitySha","parentId":"root","path":"api/llm-calls/:entitySha","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.llm-calls._entitySha-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.branch-entity-diff":{"id":"routes/api.branch-entity-diff","parentId":"root","path":"api/branch-entity-diff","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.branch-entity-diff-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.capture-screenshot":{"id":"routes/api.capture-screenshot","parentId":"root","path":"api/capture-screenshot","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.capture-screenshot-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.recapture-scenario":{"id":"routes/api.recapture-scenario","parentId":"root","path":"api/recapture-scenario","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.recapture-scenario-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.logs.$projectSlug":{"id":"routes/api.logs.$projectSlug","parentId":"root","path":"api/logs/:projectSlug","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.logs._projectSlug-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.execute-function":{"id":"routes/api.execute-function","parentId":"root","path":"api/execute-function","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.execute-function-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.interactive-mode":{"id":"routes/api.interactive-mode","parentId":"root","path":"api/interactive-mode","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.interactive-mode-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.delete-scenario":{"id":"routes/api.delete-scenario","parentId":"root","path":"api/delete-scenario","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.delete-scenario-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.process-status":{"id":"routes/api.process-status","parentId":"root","path":"api/process-status","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.process-status-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.save-scenarios":{"id":"routes/api.save-scenarios","parentId":"root","path":"api/save-scenarios","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.save-scenarios-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.kill-process":{"id":"routes/api.kill-process","parentId":"root","path":"api/kill-process","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.kill-process-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.screenshot.$":{"id":"routes/api.screenshot.$","parentId":"root","path":"api/screenshot/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.screenshot._-l0sNRNKZ.js","imports":[],"css":[]},"routes/activity.($tab)":{"id":"routes/activity.($tab)","parentId":"root","path":"activity/:tab?","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/activity.(_tab)-CsaMd9mb.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/settings-COJUrwGu.js","/assets/file-text-B6Er7j5k.js","/assets/LogViewer-BKKG1s2B.js","/assets/useLastLogLine-Lumm1t01.js","/assets/ScenarioPreview-5DY-YIxu.js","/assets/chart-column-VXBS6qOn.js","/assets/circle-alert-n5GUC2AS.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/LibraryFunctionPreview-DqXXjAJ7.js"],"css":[]},"routes/api.debug-setup":{"id":"routes/api.debug-setup","parentId":"root","path":"api/debug-setup","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.debug-setup-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.recapture":{"id":"routes/api.recapture","parentId":"root","path":"api/recapture","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.recapture-l0sNRNKZ.js","imports":[],"css":[]},"routes/entity.$sha.$":{"id":"routes/entity.$sha.$","parentId":"root","path":"entity/:sha/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/entity._sha._-BHiWkb_W.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/useLastLogLine-Lumm1t01.js","/assets/InteractivePreview-B0oiPem-.js","/assets/entityVersioning-Bk_YB1jM.js","/assets/ScenarioPreview-5DY-YIxu.js","/assets/ScenarioViewer-DmjXUj6m.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/EntityTypeIcon-rqv54FUY.js","/assets/LogViewer-BKKG1s2B.js","/assets/loader-circle-v3c6DFp4.js","/assets/LibraryFunctionPreview-DqXXjAJ7.js","/assets/file-text-B6Er7j5k.js","/assets/circle-alert-n5GUC2AS.js","/assets/chart-column-VXBS6qOn.js"],"css":["/assets/InteractivePreview-CMKNK2uU.css"]},"routes/api.analyze":{"id":"routes/api.analyze","parentId":"root","path":"api/analyze","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.analyze-l0sNRNKZ.js","imports":[],"css":[]},"routes/simulations":{"id":"routes/simulations","parentId":"root","path":"simulations","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/simulations-CNaMJ-nR.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/entityVersioning-Bk_YB1jM.js","/assets/EntityTypeIcon-rqv54FUY.js","/assets/search-DA14wXpu.js","/assets/file-text-B6Er7j5k.js","/assets/chart-column-VXBS6qOn.js"],"css":[]},"routes/api.events":{"id":"routes/api.events","parentId":"root","path":"api/events","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.events-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.memory":{"id":"routes/api.memory","parentId":"root","path":"api/memory","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.memory-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.queue":{"id":"routes/api.queue","parentId":"root","path":"api/queue","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api.queue-l0sNRNKZ.js","imports":[],"css":[]},"routes/dev.empty":{"id":"routes/dev.empty","parentId":"root","path":"dev/empty","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/dev.empty-BbR3FwNc.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/ScenarioViewer-DmjXUj6m.js","/assets/InteractivePreview-B0oiPem-.js","/assets/LogViewer-BKKG1s2B.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/useLastLogLine-Lumm1t01.js"],"css":["/assets/InteractivePreview-CMKNK2uU.css"]},"routes/settings":{"id":"routes/settings","parentId":"root","path":"settings","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/settings-NU_ZquhK.js","imports":["/assets/components-Dj-Ggnl2.js"],"css":[]},"routes/static.$":{"id":"routes/static.$","parentId":"root","path":"static/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/static._-l0sNRNKZ.js","imports":[],"css":[]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_index-DvSrcxsk.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/useLastLogLine-Lumm1t01.js","/assets/useToast-BRShB17p.js","/assets/LogViewer-BKKG1s2B.js","/assets/EntityTypeIcon-rqv54FUY.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/file-text-B6Er7j5k.js","/assets/settings-COJUrwGu.js","/assets/zap-BvukH0eN.js","/assets/loader-circle-v3c6DFp4.js","/assets/chart-column-VXBS6qOn.js"],"css":[]},"routes/files":{"id":"routes/files","parentId":"root","path":"files","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/files-KcDVw1FY.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/EntityTypeIcon-rqv54FUY.js","/assets/entityVersioning-Bk_YB1jM.js","/assets/LibraryFunctionPreview-DqXXjAJ7.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/loader-circle-v3c6DFp4.js","/assets/clock-DKqtX8js.js","/assets/search-DA14wXpu.js","/assets/file-text-B6Er7j5k.js","/assets/chart-column-VXBS6qOn.js"],"css":[]},"routes/git":{"id":"routes/git","parentId":"root","path":"git","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/git-B9uZ8eSJ.js","imports":["/assets/components-Dj-Ggnl2.js","/assets/useLastLogLine-Lumm1t01.js","/assets/useToast-BRShB17p.js","/assets/LogViewer-BKKG1s2B.js","/assets/EntityTypeIcon-rqv54FUY.js","/assets/entityVersioning-Bk_YB1jM.js","/assets/file-text-B6Er7j5k.js","/assets/zap-BvukH0eN.js","/assets/circle-alert-n5GUC2AS.js","/assets/SafeScreenshot-DU_jxCPD.js","/assets/chart-column-VXBS6qOn.js"],"css":[]}},"url":"/assets/manifest-fca08d7e.js","version":"fca08d7e"};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{y as X,z as V,A as Z,B as U,r as o,_ as ee,j as e,a as te,L as S,M as se,C as ne,S as ie,D as ae,u as re,d as oe,O as le}from"./components-Dj-Ggnl2.js";import{c as L,F}from"./file-text-B6Er7j5k.js";import{S as _}from"./settings-COJUrwGu.js";import{C as R,T as ce,u as de}from"./useToast-BRShB17p.js";import{u as me}from"./useLastLogLine-Lumm1t01.js";import{L as xe}from"./LogViewer-BKKG1s2B.js";import{C as W}from"./clock-DKqtX8js.js";let G="positions";function he({getKey:t,...r}){let{isSpaMode:l}=X(),m=V(),i=Z();U({getKey:t,storageKey:G});let a=o.useMemo(()=>{if(!t)return null;let s=t(m,i);return s!==m.key?s:null},[]);if(l)return null;let c=((s,f)=>{if(!window.history.state||!window.history.state.key){let x=Math.random().toString(32).slice(2);window.history.replaceState({key:x},"")}try{let h=JSON.parse(sessionStorage.getItem(s)||"{}")[f||window.history.state.key];typeof h=="number"&&window.scrollTo(0,h)}catch(x){console.error(x),sessionStorage.removeItem(s)}}).toString();return o.createElement("script",ee({},r,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${JSON.stringify(G)}, ${JSON.stringify(a)})`}}))}function ue({id:t,selected:r,onClick:l,icon:m,name:i}){const[a,c]=o.useState(!1);o.useEffect(()=>{c(!0)},[]);const s=o.useCallback(()=>{l?.(t)},[l,t]);return e.jsxs("button",{className:`
|
|
2
|
-
w-full aspect-square p-3 cursor-pointer focus:outline-none
|
|
3
|
-
flex flex-col items-center justify-center gap-1 text-[#626262]
|
|
4
|
-
hover:bg-[#d8d8d8] text-xs font-ibmPlexSans uppercase
|
|
5
|
-
`,onClick:s,children:[e.jsx("div",{className:`${r?"bg-primary-100 text-cygray-10":""} w-10 h-10 rounded-lg flex items-center justify-center`,children:a&&m}),e.jsx("span",{className:`${r?"text-primary-100":""} whitespace-nowrap`,children:i})]})}const pe="/assets/cy-logo-cli-C1gnJVOL.svg";const fe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],B=L("activity",fe);const ge=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],ye=L("component",ge);const je=[["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"}]],ve=L("file",je);const ke=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Y=L("git-commit-horizontal",ke);const be=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],we=L("house",be);const Ne=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Ce=L("panels-top-left",Ne);function Ae(){const t=V(),r=te(),[l,m]=o.useState(),i={width:"24px",height:"24px",strokeWidth:1.5},a=[{id:"dashboard",icon:e.jsx(we,{style:i}),link:"/",name:"Dashboard"},{id:"git",icon:e.jsx(Y,{style:i}),link:"/git",name:"Git"},{id:"simulations",icon:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:i,children:[e.jsx("path",{d:"M9 12.75V15.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 15.75H12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.75 12.7498L11.325 8.17483C11.6067 7.89873 11.9858 7.7447 12.3803 7.7461C12.7747 7.74751 13.1528 7.90423 13.4325 8.18233L16.5 11.2498",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 8.25C6.82843 8.25 7.5 7.57843 7.5 6.75C7.5 5.92157 6.82843 5.25 6 5.25C5.17157 5.25 4.5 5.92157 4.5 6.75C4.5 7.57843 5.17157 8.25 6 8.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15 2.25H3C2.17157 2.25 1.5 2.92157 1.5 3.75V11.25C1.5 12.0784 2.17157 12.75 3 12.75H15C15.8284 12.75 16.5 12.0784 16.5 11.25V3.75C16.5 2.92157 15.8284 2.25 15 2.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),link:"/simulations",name:"Simulations"},{id:"files",icon:e.jsx(ve,{style:i}),link:"/files",name:"Files"},{id:"activity",icon:e.jsx(B,{style:i}),link:"/activity",name:"Activity"},{id:"settings",icon:e.jsx(_,{style:i}),link:"/settings",name:"Settings"},{id:"commits",icon:e.jsx(Y,{style:i}),link:"/commits",name:"Commits",hidden:!0},{id:"pages",icon:e.jsx(Ce,{style:i}),link:"/pages",name:"Pages",hidden:!0},{id:"components",icon:e.jsx(ye,{style:i}),link:"/components",name:"Components",hidden:!0}],c=o.useCallback(s=>{const f=a.find(x=>x.id===s);f?.link&&r(f.link),m(x=>x===s?void 0:s)},[a,r]);return o.useEffect(()=>{const s={dashboard:["/","/home"],git:["git"],commits:["commits"],simulations:["simulations"],activity:["activity"],files:["files"],settings:["settings"],pages:["pages"],components:["components"]};for(const[f,x]of Object.entries(s))if(x.some(h=>h==="/"?t.pathname==="/":t.pathname.includes(h))){m(f);return}m(void 0)},[t]),e.jsx("div",{id:"sidebar",className:"relative w-full h-screen bg-cygray-30 flex flex-col justify-between py-3",children:e.jsxs("div",{className:"w-full h-full flex flex-col items-center",children:[e.jsx("div",{children:e.jsx(S,{to:"/",className:"flex items-center justify-center h-20",children:e.jsx("img",{src:pe,alt:"CodeYam",className:"h-8"})})}),a.filter(s=>!s.hidden).map(s=>e.jsx(ue,{id:s.id,selected:s.id===l,onClick:c,icon:s.icon,name:s.name},`sidebar-button-${s.id}`))]})})}function Se({toast:t,onClose:r}){o.useEffect(()=>{const i=t.duration||5e3;if(i>0){const a=setTimeout(()=>{r(t.id)},i);return()=>clearTimeout(a)}},[t.id,t.duration,r]);const l={success:"✅",error:"❌",info:"ℹ️",warning:"⚠️"},m={success:"bg-emerald-50 border-emerald-200 text-emerald-900",error:"bg-red-50 border-red-200 text-red-900",info:"bg-blue-50 border-blue-200 text-blue-900",warning:"bg-amber-50 border-amber-200 text-amber-900"};return e.jsxs("div",{className:`flex items-center gap-3 px-4 py-3 rounded-lg border-2 shadow-lg min-w-[320px] max-w-[500px] animate-[slideIn_0.3s_ease-out] ${m[t.type]}`,children:[e.jsx("span",{className:"text-2xl",children:l[t.type]}),e.jsx("p",{className:"flex-1 text-sm font-medium m-0",children:t.message}),e.jsx("button",{onClick:()=>r(t.id),className:"text-gray-500 hover:text-gray-700 text-xl leading-none bg-transparent border-none cursor-pointer p-0 w-6 h-6 flex items-center justify-center rounded transition-colors hover:bg-black/10",children:"×"})]})}function Le({toasts:t,onClose:r}){return t.length===0?null:e.jsxs("div",{className:"fixed top-4 right-4 z-10000 flex flex-col gap-2",children:[e.jsx("style",{children:`
|
|
6
|
-
@keyframes slideIn {
|
|
7
|
-
from {
|
|
8
|
-
transform: translateX(400px);
|
|
9
|
-
opacity: 0;
|
|
10
|
-
}
|
|
11
|
-
to {
|
|
12
|
-
transform: translateX(0);
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`}),t.map(l=>e.jsx(Se,{toast:l,onClose:r},l.id))]})}function Te({currentRun:t,projectSlug:r,currentEntities:l=[],isAnalysisStarting:m=!1,queuedJobCount:i=0,queueJobs:a=[],currentlyExecuting:c=null,historicalRuns:s=[]}){const[f,x]=o.useState(!1),[h,j]=o.useState(!1),[w,N]=o.useState(!1),[v,p]=o.useState(null),C=!!c||a.length>0,D=!!c,k=c?.entities||l,T=!!t?.analysisCompletedAt;t?.readyToBeCaptured,t?.capturesCompleted;const M=t?.currentEntityShas&&t.currentEntityShas.length>0,A=C,{lastLine:q,isCompleted:J}=me(r,A),g=D||A&&!J&&!C,$=(()=>{if(A)return!1;const u=Date.now()-30*1e3;if(t?.createdAt&&M){const d=t.analysisCompletedAt||t.createdAt;if(new Date(d).getTime()>u)return!0}if(s.length>0){const d=s[0],y=d.analysisCompletedAt||d.archivedAt||d.createdAt;if(y&&new Date(y).getTime()>u)return!0}return!1})(),E=(()=>{const u=Date.now()-1440*60*1e3;if(t?.createdAt&&M){const d=t.analysisCompletedAt||t.createdAt;if(new Date(d).getTime()>u)return!0}if(s.length>0){const d=s[0],y=d.analysisCompletedAt||d.archivedAt||d.createdAt;if(y&&new Date(y).getTime()>u)return!0}return!1})(),z=m||g||i>0||$;o.useEffect(()=>{const n=c?.id||null;z?n!==v&&(j(!0),N(!1),v!==null&&p(null)):(v!==null&&p(null),!E&&h&&!w&&j(!1))},[z,E,h,w,v,c?.id]);const K=()=>c?`Analyzing${a.length>0?` (+${a.length} queued)`:""}`:a.length>0?`${a.length} job${a.length>1?"s":""} queued`:g?T?"Capture in Progress":"Analysis in Progress":$?"Recently completed":"Idle",I=()=>g?"settings":i>0?"clock":$?"check":"activity",Q=g;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`fixed bottom-4 right-4 z-9998 bg-white rounded-lg shadow-lg border-2 transition-all duration-200 border-gray-300 ${h?"min-w-[400px] max-w-[600px]":"w-auto"}`,style:z?{borderColor:"#005C75"}:{},children:[!h&&e.jsxs("div",{onClick:()=>{j(!0),N(!0),p(null)},className:"flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-gray-50 transition-colors rounded-lg",title:"Click to expand",children:[e.jsx("span",{className:`${Q?"animate-spin":""}`,children:I()==="activity"?e.jsx(B,{style:{width:"20px",height:"20px",strokeWidth:1.5}}):I()==="check"?e.jsx(R,{size:20,style:{color:"#10B981",strokeWidth:1.5}}):I()==="settings"?e.jsx(_,{size:20,style:{strokeWidth:1.5}}):e.jsx(W,{size:20,style:{strokeWidth:1.5}})}),e.jsxs("span",{className:"text-sm font-medium text-gray-700",children:["Activity: ",K()]})]}),h&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between items-center p-3 w-full",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:()=>{j(!1),p(c?.id||null)},className:"p-1.5 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors shadow-sm flex items-center justify-center",title:"Collapse","aria-label":"Collapse notification",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("div",{className:`${g?"animate-spin":""}`,children:g?e.jsx(_,{size:24,style:{strokeWidth:1.5}}):$?e.jsx(R,{size:24,style:{color:"#10B981",strokeWidth:1.5}}):e.jsx(B,{style:{width:"24px",height:"24px",strokeWidth:1.5}})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("h3",{className:"text-sm font-bold text-gray-900 mb-1",children:g?T?"Capture in Progress":"Analysis in Progress":$?"Analysis Complete":"Activity"})})]}),e.jsx("div",{children:e.jsx("button",{onClick:()=>x(!0),className:"px-3 py-1.5 text-white rounded-md text-xs font-semibold transition-colors whitespace-nowrap",style:{backgroundColor:"#005C75"},onMouseEnter:n=>n.currentTarget.style.backgroundColor="#004560",onMouseLeave:n=>n.currentTarget.style.backgroundColor="#005C75",title:"View full analysis logs",children:"View Logs"})})]}),e.jsxs("div",{className:"px-4 pb-4 border-t border-gray-200 pt-3",children:[!z&&!E&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"No recent analysis activity. Start an analysis to see progress here."}),e.jsxs("div",{className:"text-xs text-gray-500 space-y-1",children:[e.jsx("div",{children:'• Click "Analyze" on any entity in the Git or Files view'}),e.jsxs("div",{children:["• Or run"," ",e.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"codeyam analyze"})," ","from the command line"]})]})]}),g&&T&&(t?.readyToBeCaptured??0)>0&&e.jsxs("div",{className:"mb-3 border rounded-md p-2",style:{backgroundColor:"#E8F4F8",borderColor:"#B3D9E8"},children:[e.jsx("p",{className:"text-xs font-semibold mb-1",style:{color:"#003D52"},children:"Capture Progress:"}),e.jsxs("p",{className:"text-xs",style:{color:"#005C75"},children:[t?.capturesCompleted??0," of"," ",t?.readyToBeCaptured??0," entities captured"]})]}),g&&k.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsxs("p",{className:"text-xs font-semibold text-gray-700 mb-2",children:[c?"Analyzing":T?"Capturing":"Analyzing"," ",k.length===1?"Entity":"Entities",":"]}),e.jsx("div",{className:"space-y-1 max-h-[200px] overflow-y-auto",children:k.map(n=>e.jsxs(S,{to:`/entity/${n.sha}`,className:"flex items-center gap-1.5 text-xs font-medium truncate hover:underline",style:{color:"#005C75"},title:`${n.name} - ${n.filePath}`,children:[e.jsx(F,{size:14,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[n.name,e.jsxs("span",{className:"text-gray-500 ml-1",children:["(",n.filePath,")"]})]})]},n.sha))})]}),g&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-xs font-semibold text-gray-700 mb-1",children:"Current Step:"}),e.jsx("p",{className:"text-xs font-mono text-gray-600 break-words",children:q||"Starting analysis..."})]}),a.length>0&&c&&e.jsxs("div",{className:"mb-3",children:[e.jsxs("p",{className:"text-xs font-semibold text-gray-700 mb-2",children:["Queued (",a.length,"):"]}),e.jsx("div",{className:"space-y-2 max-h-[150px] overflow-y-auto",children:a.map(n=>e.jsxs("div",{className:"space-y-1",children:[n.entities.length>0?n.entities.slice(0,2).map(u=>e.jsxs(S,{to:`/entity/${u.sha}`,className:"flex items-center gap-1.5 text-xs font-medium truncate hover:underline",style:{color:"#005C75"},title:`${u.name} - ${u.filePath}`,children:[e.jsx(W,{size:14,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[u.name,e.jsxs("span",{className:"text-gray-500 ml-1",children:["(",u.filePath,")"]})]})]},u.sha)):e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-600 truncate",children:[e.jsx(W,{size:14,style:{strokeWidth:1.5,flexShrink:0}}),n.entities.length," ",n.entities.length===1?"entity":"entities"]}),n.entities.length>2&&e.jsxs("div",{className:"text-xs text-gray-500 italic pl-4",children:["+",n.entities.length-2," more"]})]},n.id))})]}),E&&s.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-xs font-semibold text-gray-700 mb-2",children:"Recently Completed:"}),e.jsx("div",{className:"space-y-2",children:s.slice(0,3).map((n,u)=>{const d=n.entities||[];d.length||n.currentEntityShas?.length||n.entityCount;const y=n.analysisCompletedAt||n.archivedAt||n.createdAt||"",P=(()=>{if(!y)return"";const b=Date.now()-new Date(y).getTime(),H=Math.floor(b/6e4),O=Math.floor(b/36e5);return O>0?`${O}h ago`:H>0?`${H}m ago`:"just now"})();return e.jsx("div",{className:"text-xs bg-gray-50 rounded-md p-2",children:e.jsxs("div",{className:"flex justify-between items-start mb-1",children:[e.jsx("div",{children:d.length>0&&e.jsxs("div",{className:"text-gray-600 text-[10px] space-y-0.5",children:[d.slice(0,3).map(b=>e.jsxs("div",{className:"flex items-center gap-1 truncate",children:[e.jsxs(S,{to:`/entity/${b.sha}`,className:"flex items-center gap-1 hover:underline truncate",style:{color:"#005C75"},children:[e.jsx(F,{size:12,style:{strokeWidth:1.5,flexShrink:0}}),e.jsx("span",{className:"truncate",children:b.name})]}),e.jsxs("span",{className:"text-gray-500 ml-1",children:["(",b.filePath,")"]})]},b.sha)),d.length>3&&e.jsxs("div",{className:"text-gray-500",children:["+",d.length-3," more"]})]})}),e.jsx("div",{className:"text-gray-500 text-[10px]",children:P})]})},u)})})]}),e.jsx("div",{className:"mt-3 pt-3 border-t border-gray-200",children:e.jsx(S,{to:"/activity",className:"text-xs font-medium hover:underline",style:{color:"#005C75"},children:"View All Activity →"})})]})]})]}),f&&r&&e.jsx(xe,{projectSlug:r,onClose:()=>x(!1)})]})}const Me="/assets/globals-B0f88RTV.css";function $e({text:t,subtext:r,linkText:l,linkTo:m}){const[i,a]=o.useState(!1);return i?null:e.jsx("div",{className:"bg-blue-100 border rounded border-blue-800 shadow-sm mx-6 mt-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("svg",{className:"w-5 h-5 text-yellow-600",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:t}),e.jsx("p",{className:"text-xs text-blue-700 mt-0.5",children:r})]}),e.jsx(S,{to:m,className:"shrink-0 px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded hover:bg-blue-700 transition-colors",children:l})]}),e.jsx("button",{type:"button",onClick:()=>a(!0),className:"shrink-0 ml-4 p-1 rounded text-blue-600 hover:text-blue-800 hover:bg-blue-100 transition-colors","aria-label":"Dismiss banner",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M6 18L18 6M6 6l12 12"})})})]})})}const Ve=()=>[{rel:"stylesheet",href:Me},{rel:"icon",href:"/favicon.svg",type:"image/svg+xml"},{rel:"alternate icon",href:"/cy-logo-cli.svg"}];function ze(){const{currentRun:t,projectSlug:r,currentEntities:l,availableAPIKeys:m,queuedJobCount:i,queueJobs:a,currentlyExecuting:c,historicalRuns:s}=re(),{toasts:f,closeToast:x}=de(),h=oe(),j=o.useRef(h),w=V();o.useEffect(()=>{j.current=h},[h]);const N=w.pathname.startsWith("/entity/")&&w.pathname.includes("/edit/")||w.pathname.startsWith("/dev/");return o.useEffect(()=>{const v=new EventSource("/api/events");let p=null,C=0;const D=2e3;return v.addEventListener("message",k=>{if(JSON.parse(k.data).type==="db-change"){const M=Date.now(),A=M-C;A<D?(p&&clearTimeout(p),p=setTimeout(()=>{j.current.revalidate(),C=Date.now(),p=null},D-A)):(j.current.revalidate(),C=M)}}),v.addEventListener("error",k=>{console.error("SSE connection error:",k)}),()=>{p&&clearTimeout(p),v.close()}},[]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`min-h-screen ${N?"":"grid"} bg-cygray-10`,style:N?void 0:{gridTemplateColumns:"96px minmax(900px, 1fr)"},children:[!N&&e.jsx(Ae,{}),e.jsxs("div",{className:"max-h-screen overflow-auto bg-white",children:[m.length===0&&e.jsx($e,{text:"No AI API keys configured. Please provide an AI API key at your earliest convenience.",subtext:"An API key is required for stable, frequent use of CodeYam",linkText:"Configure API Keys",linkTo:"/settings"}),e.jsx(le,{})]})]}),e.jsx(Le,{toasts:f,onClose:x}),e.jsx(Te,{currentRun:t,projectSlug:r,currentEntities:l,isAnalysisStarting:!1,queuedJobCount:i,queueJobs:a,currentlyExecuting:c,historicalRuns:s})]})}function He(){return e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),e.jsx(se,{}),e.jsx(ne,{})]}),e.jsxs("body",{children:[e.jsx(ce,{children:e.jsx(ze,{})}),e.jsx(he,{}),e.jsx(ie,{}),e.jsx(ae,{})]})]})}export{He as default,Ve as links};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./file-text-B6Er7j5k.js";const o=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],r=c("chevron-down",o);const e=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=c("search",e);export{r as C,s as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./file-text-B6Er7j5k.js";const e=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],o=c("settings",e);export{o as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,u as P,r as n,L as w,a as E,b as $}from"./components-Dj-Ggnl2.js";import{S as A}from"./SafeScreenshot-DU_jxCPD.js";import{g as M}from"./entityVersioning-Bk_YB1jM.js";import{I as F,E as D}from"./EntityTypeIcon-rqv54FUY.js";import{C as U,S as _}from"./search-DA14wXpu.js";import{c as C}from"./file-text-B6Er7j5k.js";import"./chart-column-VXBS6qOn.js";const R=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],O=C("chevron-left",R);const V=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],k=C("chevron-right",V);const B=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],K=C("x",B);function Q({entity:t,variant:o="default"}){const l=M(t),{badge:h,hasOutdatedSimulations:r}=l;return o==="compact"?r?e.jsx("div",{className:"bg-yellow-50 px-2 py-1 rounded text-[10px] font-medium text-yellow-700",children:"Out of date"}):e.jsxs("div",{className:"flex items-center gap-1.5 bg-green-50 px-2 py-1 rounded text-[10px] font-medium text-green-700",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500"}),"Up to date"]}):e.jsxs("div",{className:`flex items-center gap-2 px-[15px] py-0 h-[26px] ${h.bgColor} rounded`,children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${r?"bg-amber-500":"bg-green-500"}`}),e.jsx("span",{className:`text-xs font-semibold ${h.color}`,children:r?"Out of date":"Up to date"})]})}const se=()=>[{title:"Simulations - CodeYam"},{name:"description",content:"A visual gallery of your recently captured component screenshots"}];function ae(){const o=P().entities,[l,h]=n.useState(""),[r,p]=n.useState("visual"),[i,c]=n.useState(null),m=n.useMemo(()=>{const s=[];return o.forEach(a=>{const d=a.analyses?.[0];if(d?.scenarios){const x=d.scenarios.filter(g=>g.metadata?.screenshotPaths?.[0]).map(g=>({scenarioName:g.name,scenarioDescription:g.description||"",screenshotPath:g.metadata?.screenshotPaths?.[0]||"",scenarioId:g.id}));x.length>0&&s.push({entity:a,screenshots:x,createdAt:d.createdAt||""})}}),s.sort((a,d)=>new Date(d.createdAt).getTime()-new Date(a.createdAt).getTime()),s},[o]),y=n.useMemo(()=>o.filter(s=>!s.analyses?.[0]?.scenarios?.some(x=>x.metadata?.screenshotPaths?.[0])),[o]),f=n.useMemo(()=>m.filter(({entity:s})=>{const a=!l||s.name.toLowerCase().includes(l.toLowerCase()),d=r==="all"||s.entityType===r;return a&&d}),[m,l,r]),S=n.useMemo(()=>y.filter(s=>{const a=!l||s.name.toLowerCase().includes(l.toLowerCase()),d=r==="all"||s.entityType===r;return a&&d}),[y,l,r]),u=n.useMemo(()=>{const s=[];return f.forEach(({entity:a,screenshots:d})=>{d.forEach(x=>{s.push({entitySha:a.sha,entityName:a.name,scenarioId:x.scenarioId||"",scenarioName:x.scenarioName,scenarioDescription:x.scenarioDescription,screenshotPath:x.screenshotPath})})}),s},[f]),I=n.useCallback(s=>{h(s.target.value)},[]),L=n.useCallback(s=>{p(s.target.value)},[]),z=n.useCallback((s,a)=>{const d=u.findIndex(x=>x.entitySha===s&&x.scenarioId===a);d!==-1&&c(d)},[u]),b=n.useCallback(()=>{c(null)},[]),v=n.useCallback(()=>{c(s=>s===null||s===0?u.length-1:s-1)},[u.length]),j=n.useCallback(()=>{c(s=>s===null?0:(s+1)%u.length)},[u.length]);n.useEffect(()=>{if(i===null)return;const s=a=>{a.key==="Escape"?b():a.key==="ArrowLeft"?v():a.key==="ArrowRight"&&j()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[i,b,v,j]);const N=m.length>0,T=i!==null?u[i]:null;return e.jsxs("div",{className:"bg-[#f9f9f9] min-h-screen overflow-y-auto",children:[e.jsxs("div",{className:"px-36 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 m-0",children:"Simulations"}),e.jsx("p",{className:"text-sm text-gray-600 mt-2",children:"All recently captured simulations."})]}),!N&&e.jsxs("div",{className:"rounded-lg px-5 py-6 mb-6 flex items-center gap-4",style:{backgroundColor:"#F0F5F8"},children:[e.jsx("div",{className:"w-9 h-9 rounded flex items-center justify-center shrink-0",style:{backgroundColor:"#005C75"},children:e.jsx(F,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm m-0 mb-1",style:{color:"#005C75"},children:"This page will display a visual gallery of your recently captured component screenshots."}),e.jsx("p",{className:"text-sm font-semibold m-0",style:{color:"#005C75"},children:"Start by analyzing your first component below."})]})]}),e.jsxs("div",{className:"bg-white border-b border-gray-200 rounded-t-lg px-5 py-4 mb-6",children:[e.jsx("div",{className:"text-[10px] text-gray-500 mb-2 uppercase",children:"Filters"}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none bg-gray-50 border border-gray-200 rounded px-3 py-2 pr-8 text-sm cursor-pointer focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] hover:border-gray-300 transition-colors",value:r,onChange:L,children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"visual",children:"Visual"}),e.jsx("option",{value:"library",children:"Library"})]}),e.jsx(U,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(_,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Search component",className:"w-full bg-gray-50 border border-gray-200 rounded pl-9 pr-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] transition-colors",value:l,onChange:I})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[N&&(f.length===0?e.jsx("div",{className:"bg-white border border-gray-200 rounded-b-lg p-8 text-center text-gray-500",children:"No simulations match your filters."}):e.jsxs(e.Fragment,{children:[f.map(({entity:s,screenshots:a})=>e.jsx(q,{entity:s,screenshots:a,onScreenshotClick:z},s.sha)),e.jsx("div",{className:"bg-white border-x border-b border-gray-200 rounded-b-lg px-5 py-4 text-center",children:e.jsx(w,{to:"/files?entityType=visual",className:"text-sm text-[#005c75] hover:text-[#004a5e] hover:underline",children:"Find more entities to simulate →"})})]})),!N&&(S.length===0?e.jsx("div",{className:"bg-white border border-gray-200 rounded-b-lg p-8 text-center text-gray-500",children:"No components found matching your filters."}):S.map(s=>e.jsx(X,{entity:s},s.sha)))]})]}),T&&e.jsx(W,{screenshot:T,currentIndex:i,totalCount:u.length,onClose:b,onPrevious:v,onNext:j})]})}function W({screenshot:t,currentIndex:o,totalCount:l,onClose:h,onPrevious:r,onNext:p}){const i=E(),[c,m]=n.useState(!1),y=()=>{i(`/entity/${t.entitySha}/scenarios/${t.scenarioId}?from=simulations`)};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",onClick:h,children:e.jsxs("div",{className:"relative flex flex-col w-[90vw] h-[90vh] max-w-[1400px] bg-white rounded-lg overflow-hidden",onClick:f=>f.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"text-sm text-gray-500",children:[o+1," of ",l]}),e.jsx("span",{className:"text-gray-300",children:"|"}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.entityName})]}),e.jsx("button",{onClick:h,className:"p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-200 rounded-full transition-colors cursor-pointer",children:e.jsx(K,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"relative flex-1 flex items-center justify-center p-6 bg-gray-100 overflow-hidden",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[e.jsx("button",{onClick:r,className:`absolute left-4 z-10 p-3 bg-white/90 hover:bg-white rounded-full shadow-lg transition-all cursor-pointer ${c?"opacity-100":"opacity-0"}`,children:e.jsx(O,{className:"w-6 h-6 text-gray-700"})}),e.jsx("div",{className:"flex items-center justify-center w-full h-full cursor-pointer",onClick:y,children:e.jsx(A,{screenshotPath:t.screenshotPath,alt:t.scenarioName,className:"max-w-full max-h-full object-contain rounded-lg shadow-lg"})}),e.jsx("button",{onClick:p,className:`absolute right-4 z-10 p-3 bg-white/90 hover:bg-white rounded-full shadow-lg transition-all cursor-pointer ${c?"opacity-100":"opacity-0"}`,children:e.jsx(k,{className:"w-6 h-6 text-gray-700"})})]}),e.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 bg-white cursor-pointer hover:bg-gray-50 transition-colors shrink-0",onClick:y,children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-[#005c75] hover:text-[#004a5e] m-0 mb-1",children:t.scenarioName}),e.jsx("p",{className:"text-sm text-gray-600 m-0 line-clamp-2 min-h-10",children:t.scenarioDescription||" "})]}),e.jsxs("div",{className:"shrink-0 flex items-center gap-1 text-sm text-[#005c75]",children:[e.jsx("span",{children:"View details"}),e.jsx(k,{className:"w-4 h-4"})]})]}),e.jsx("p",{className:"text-xs text-gray-400 mt-2 m-0",children:"Click to view this scenario in the entity page"})]})]})})}function q({entity:t,screenshots:o,onScreenshotClick:l}){const h=E();t.entityType;const r=o.length||(t.analyses?.[0]?.scenarios?.length??0),p=i=>{h(`/entity/${t.sha}/scenarios/${i}?from=simulations`)};return e.jsx("div",{className:"bg-white border-x border-b border-gray-200 first:border-t last:rounded-b-lg hover:bg-gray-100 transition-colors",children:e.jsxs("div",{className:"px-5 py-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(w,{to:`/entity/${t.sha}`,className:"flex items-center gap-2 no-underline",children:[e.jsx(D,{type:t.entityType}),e.jsxs("span",{className:"text-xs font-medium text-gray-800",children:[t.name," (",r,")"]})]}),e.jsx(Q,{entity:t,variant:"compact"})]}),e.jsx("div",{className:"flex gap-2.5 mt-3 overflow-x-auto pb-1",children:o.length>0?o.map(i=>e.jsx("button",{onClick:()=>p(i.scenarioId||""),className:"shrink-0 block cursor-pointer bg-transparent border-none p-0",children:e.jsx("div",{className:"w-36 h-24 rounded-md border border-gray-200 overflow-hidden bg-gray-100 flex items-center justify-center transition-all",style:{"--hover-border":"#005C75"},onMouseEnter:c=>{c.currentTarget.style.borderColor="#005C75",c.currentTarget.style.boxShadow="0 4px 12px rgba(0, 92, 117, 0.15)"},onMouseLeave:c=>{c.currentTarget.style.borderColor="#d1d5db",c.currentTarget.style.boxShadow="none"},children:e.jsx(A,{screenshotPath:i.screenshotPath,alt:i.scenarioName,className:"max-w-full max-h-full object-contain"})})},i.scenarioId)):e.jsx("div",{className:"text-xs text-gray-400 py-4",children:"No screenshots available"})})]})})}function X({entity:t}){const o=$(),[l,h]=n.useState(!1);t.entityType;const r=()=>{h(!0),o.submit({entitySha:t.sha,filePath:t.filePath||""},{method:"post",action:"/api/analyze"})};n.useEffect(()=>{o.state==="idle"&&l&&h(!1)},[o.state,l]);const p=i=>{if(!i)return"";const c=new Date(i),m=new Date;return c.toDateString()===m.toDateString()?`Today, ${c.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).toLowerCase()}`:c.toLocaleDateString("en-US",{month:"short",day:"numeric"})};return e.jsx("div",{className:"bg-white border-x border-b border-gray-200 first:border-t last:rounded-b-lg hover:bg-gray-100 transition-colors cursor-pointer",onClick:r,children:e.jsxs("div",{className:"px-5 py-4 flex items-center",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(D,{type:t.entityType}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-0.5",children:[e.jsx(w,{to:`/entity/${t.sha}`,className:"text-sm font-medium text-gray-900 no-underline",children:t.name}),e.jsx("span",{className:"text-[10px] font-semibold px-1 py-0.5 rounded",style:{color:t.entityType==="visual"?"#7c3aed":t.entityType==="library"?"#0DBFE9":t.entityType==="type"?"#dc2626":t.entityType==="data"?"#2563eb":t.entityType==="index"?"#ea580c":t.entityType==="functionCall"?"#7c3aed":t.entityType==="class"?"#059669":t.entityType==="method"?"#0891b2":"#6b7280",backgroundColor:t.entityType==="visual"?"#f3e8ff":t.entityType==="library"?"#cffafe":t.entityType==="type"?"#fee2e2":t.entityType==="data"?"#dbeafe":t.entityType==="index"?"#ffedd5":t.entityType==="functionCall"?"#f3e8ff":t.entityType==="class"?"#d1fae5":t.entityType==="method"?"#cffafe":"#f3f4f6"},children:t.entityType?t.entityType.toUpperCase():"UNKNOWN"})]}),e.jsx("div",{className:"text-xs text-gray-400 truncate",children:t.filePath})]})]}),e.jsx("div",{className:"w-32 flex justify-center",children:e.jsx("span",{className:"text-[10px] text-gray-500 bg-gray-100 px-2 py-1 rounded",children:"Not analyzed"})}),e.jsx("div",{className:"w-32 text-center text-[10px] text-gray-500",children:p(t.createdAt)}),e.jsx("div",{className:"w-24 flex justify-end",children:e.jsx("button",{onClick:r,disabled:l||o.state!=="idle",className:"bg-[#e0e9ec] text-[#005c75] px-4 py-1.5 rounded text-xs font-medium hover:bg-[#d0dde1] transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Analyzing...":"Analyze"})})]})})}export{ae as default,se as meta};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m}from"./file-text-B6Er7j5k.js";import{r as t,j as x}from"./components-Dj-Ggnl2.js";const T=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],k=m("circle-check",T),r=t.createContext(void 0);function p({children:o}){const[n,c]=t.useState([]),i=t.useCallback((s,e="info",a=5e3)=>{const d={id:`toast-${Date.now()}-${Math.random()}`,message:s,type:e,duration:a};c(l=>[...l,d])},[]),u=t.useCallback(s=>{c(e=>e.filter(a=>a.id!==s))},[]);return x.jsx(r.Provider,{value:{toasts:n,showToast:i,closeToast:u},children:o})}function v(){const o=t.useContext(r);if(!o)throw new Error("useToast must be used within a ToastProvider");return o}export{k as C,p as T,v as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./file-text-B6Er7j5k.js";const o=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],e=a("zap",o);export{e as Z};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<!-- Green background -->
|
|
3
|
-
<rect width="40" height="40" rx="8" fill="#90EE90"/>
|
|
4
|
-
<!-- Yellow/Lime accent bar on right -->
|
|
5
|
-
<rect x="28" y="0" width="12" height="40" rx="8" fill="#CDDC39"/>
|
|
6
|
-
<!-- Code brackets in dark color -->
|
|
7
|
-
<g transform="translate(8, 10)">
|
|
8
|
-
<!-- Left bracket < -->
|
|
9
|
-
<path d="M4 2L2 6L4 10" stroke="#232323" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
10
|
-
<!-- Right bracket > -->
|
|
11
|
-
<path d="M14 2L16 6L14 10" stroke="#232323" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
12
|
-
</g>
|
|
13
|
-
</svg>
|