From bf2432e087b5398d5dc59d61e47473dd204373b8 Mon Sep 17 00:00:00 2001 From: "Temporal Data (cicd)" Date: Fri, 11 Mar 2022 14:40:26 +0000 Subject: [PATCH] Update UI submodule --- ...94f3.js => _workflows-loading-3836208a.js} | 2 +- ...-3d3380f9.js => query-service-a89500ff.js} | 2 +- .../ui/_app/chunks/route-for-api-46069891.js | 1 + .../ui/_app/chunks/route-for-api-90d9e1db.js | 1 - ...ow-c83ee16c.js => workers-row-7bc8cde3.js} | 2 +- ...e3f99a8.js => workflow-status-15cd5fff.js} | 2 +- server/generated/ui/_app/manifest.json | 84 +++++++++---------- .../ui/_app/pages/__layout.svelte-20502bfc.js | 3 + .../ui/_app/pages/__layout.svelte-c5ead779.js | 3 - ...e-cb227b69.js => index.svelte-7fc9829b.js} | 2 +- ...cc5c6a0.js => __layout.svelte-7bd05343.js} | 2 +- ...e97ea88.js => __layout.svelte-c19d5911.js} | 2 +- .../_run_/history/__layout.svelte-b4f83521.js | 1 - .../_run_/history/__layout.svelte-cf5e5c96.js | 1 + ...e-cc41dc7b.js => query.svelte-41e056ab.js} | 2 +- ...1c37.js => stack-trace.svelte-6bd31952.js} | 2 +- ...75189f37.js => workers.svelte-5e42ce9c.js} | 2 +- ...e-6a7d91a6.js => index.svelte-3c571672.js} | 2 +- .../{start-39eaac60.js => start-aa505e82.js} | 2 +- server/generated/ui/_app/version.json | 2 +- server/generated/ui/index.html | 4 +- ui | 2 +- 22 files changed, 63 insertions(+), 63 deletions(-) rename server/generated/ui/_app/chunks/{_workflows-loading-ad4694f3.js => _workflows-loading-3836208a.js} (99%) rename server/generated/ui/_app/chunks/{query-service-3d3380f9.js => query-service-a89500ff.js} (95%) create mode 100644 server/generated/ui/_app/chunks/route-for-api-46069891.js delete mode 100644 server/generated/ui/_app/chunks/route-for-api-90d9e1db.js rename server/generated/ui/_app/chunks/{workers-row-c83ee16c.js => workers-row-7bc8cde3.js} (98%) rename server/generated/ui/_app/chunks/{workflow-status-3e3f99a8.js => workflow-status-15cd5fff.js} (98%) create mode 100644 server/generated/ui/_app/pages/__layout.svelte-20502bfc.js delete mode 100644 server/generated/ui/_app/pages/__layout.svelte-c5ead779.js rename server/generated/ui/_app/pages/namespaces/_namespace_/archival/{index.svelte-cb227b69.js => index.svelte-7fc9829b.js} (96%) rename server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/{__layout.svelte-0cc5c6a0.js => __layout.svelte-7bd05343.js} (95%) rename server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{__layout.svelte-7e97ea88.js => __layout.svelte-c19d5911.js} (97%) delete mode 100644 server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js create mode 100644 server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js rename server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{query.svelte-cc41dc7b.js => query.svelte-41e056ab.js} (96%) rename server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{stack-trace.svelte-5c7b1c37.js => stack-trace.svelte-6bd31952.js} (93%) rename server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{workers.svelte-75189f37.js => workers.svelte-5e42ce9c.js} (95%) rename server/generated/ui/_app/pages/namespaces/_namespace_/workflows/{index.svelte-6a7d91a6.js => index.svelte-3c571672.js} (97%) rename server/generated/ui/_app/{start-39eaac60.js => start-aa505e82.js} (95%) diff --git a/server/generated/ui/_app/chunks/_workflows-loading-ad4694f3.js b/server/generated/ui/_app/chunks/_workflows-loading-3836208a.js similarity index 99% rename from server/generated/ui/_app/chunks/_workflows-loading-ad4694f3.js rename to server/generated/ui/_app/chunks/_workflows-loading-3836208a.js index d0d019b461..26ea58248b 100644 --- a/server/generated/ui/_app/chunks/_workflows-loading-ad4694f3.js +++ b/server/generated/ui/_app/chunks/_workflows-loading-3836208a.js @@ -1 +1 @@ -import{S as se,i as ne,s as oe,K as Se,e as $,t as S,k as y,c as g,a as w,h as F,d as f,m as V,b as _,g as P,L as c,M as ye,N as Fe,O as Ve,q as D,o as C,w as L,x as R,y as B,j as ae,B as U,I as fe,P as Ce,ap as We,aq as he,W as me,ar as Pe,n as de,p as _e,as as Ee,F as Ae,G as Ne,H as qe,T as M,l as ce,J as Ie}from"./vendor-b58bb848.js";import{f as ie}from"./format-date-47255ab2.js";import{n as Oe}from"./namespace-0cacc6ef.js";import{W as Le,d as ve}from"./workflow-status-3e3f99a8.js";import{r as Re}from"./route-for-11851a4f.js";import{p as Te}from"./stores-71c7b9ff.js";import{g as De}from"./navigation-093db9e2.js";import{S as Be,O as re}from"./select-5b8ec3d3.js";import{u as Ue,F as $e}from"./filter-select-724bff2f.js";function je(o){let e,a,t,l,i,s,r,n,u,h,p,b,m,E,d,v,j,H,N,q,J,K,O,Q;const G=o[1].default,W=Se(G,o,o[0],null);return{c(){e=$("section"),a=$("div"),t=$("div"),l=$("div"),i=S("Status"),s=y(),r=$("div"),n=S("Workflow ID"),u=y(),h=$("div"),p=S("Type"),b=y(),m=$("div"),E=S("Started"),d=y(),v=$("div"),j=S("End"),H=y(),N=$("div"),q=$("div"),J=S("Summary"),K=y(),O=$("div"),W&&W.c(),this.h()},l(I){e=g(I,"SECTION",{class:!0});var k=w(e);a=g(k,"DIV",{class:!0});var T=w(a);t=g(T,"DIV",{class:!0});var A=w(t);l=g(A,"DIV",{class:!0});var z=w(l);i=F(z,"Status"),z.forEach(f),s=V(A),r=g(A,"DIV",{class:!0});var X=w(r);n=F(X,"Workflow ID"),X.forEach(f),u=V(A),h=g(A,"DIV",{class:!0});var Y=w(h);p=F(Y,"Type"),Y.forEach(f),b=V(A),m=g(A,"DIV",{class:!0});var Z=w(m);E=F(Z,"Started"),Z.forEach(f),d=V(A),v=g(A,"DIV",{class:!0});var x=w(v);j=F(x,"End"),x.forEach(f),A.forEach(f),T.forEach(f),H=V(k),N=g(k,"DIV",{class:!0});var ee=w(N);q=g(ee,"DIV",{class:!0});var te=w(q);J=F(te,"Summary"),te.forEach(f),ee.forEach(f),K=V(k),O=g(k,"DIV",{class:!0});var le=w(O);W&&W.l(le),le.forEach(f),k.forEach(f),this.h()},h(){_(l,"class","table-header rounded-tl-lg svelte-11xf5ac"),_(r,"class","table-header svelte-11xf5ac"),_(h,"class","table-header svelte-11xf5ac"),_(m,"class","table-header svelte-11xf5ac"),_(v,"class","table-header rounded-tr-lg svelte-11xf5ac"),_(t,"class","md:table-row hidden"),_(a,"class","md:table-header-group bg-gray-100 rounded-t-lg"),_(q,"class","bg-gray-100 p-2 border-b rounded-t-lg"),_(N,"class","md:hidden"),_(O,"class","overflow-y-auto md:table-row-group"),_(e,"class","workflow-table svelte-11xf5ac")},m(I,k){P(I,e,k),c(e,a),c(a,t),c(t,l),c(l,i),c(t,s),c(t,r),c(r,n),c(t,u),c(t,h),c(h,p),c(t,b),c(t,m),c(m,E),c(t,d),c(t,v),c(v,j),c(e,H),c(e,N),c(N,q),c(q,J),c(e,K),c(e,O),W&&W.m(O,null),Q=!0},p(I,[k]){W&&W.p&&(!Q||k&1)&&ye(W,G,I,I[0],Q?Ve(G,I[0],k,null):Fe(I[0]),null)},i(I){Q||(D(W,I),Q=!0)},o(I){C(W,I),Q=!1},d(I){I&&f(e),W&&W.d(I)}}}function Qe(o,e,a){let{$$slots:t={},$$scope:l}=e;return o.$$set=i=>{"$$scope"in i&&a(0,l=i.$$scope)},[l,t]}class bt extends se{constructor(e){super();ne(this,e,Qe,je,oe,{})}}function He(o){let e,a,t,l,i,s,r=o[0].id+"",n,u,h,p,b=o[0].name+"",m,E,d,v,j=ie(o[0].startTime,o[1])+"",H,N,q,J,K,O,Q,G=ie(o[0].endTime,o[1])+"",W,I;return l=new Le({props:{status:o[0].status}}),{c(){e=$("a"),a=$("div"),t=$("div"),L(l.$$.fragment),i=y(),s=$("div"),n=S(r),u=y(),h=$("div"),p=$("h3"),m=S(b),E=y(),d=$("div"),v=$("p"),H=S(j),N=y(),q=$("span"),J=S("-"),K=y(),O=$("div"),Q=$("p"),W=S(G),this.h()},l(k){e=g(k,"A",{"sveltekit:noscroll":!0,href:!0,class:!0});var T=w(e);a=g(T,"DIV",{class:!0});var A=w(a);t=g(A,"DIV",{});var z=w(t);R(l.$$.fragment,z),z.forEach(f),A.forEach(f),i=V(T),s=g(T,"DIV",{class:!0});var X=w(s);n=F(X,r),X.forEach(f),u=V(T),h=g(T,"DIV",{class:!0});var Y=w(h);p=g(Y,"H3",{});var Z=w(p);m=F(Z,b),Z.forEach(f),Y.forEach(f),E=V(T),d=g(T,"DIV",{class:!0});var x=w(d);v=g(x,"P",{});var ee=w(v);H=F(ee,j),ee.forEach(f),x.forEach(f),N=V(T),q=g(T,"SPAN",{class:!0});var te=w(q);J=F(te,"-"),te.forEach(f),K=V(T),O=g(T,"DIV",{class:!0});var le=w(O);Q=g(le,"P",{});var pe=w(Q);W=F(pe,G),pe.forEach(f),le.forEach(f),T.forEach(f),this.h()},h(){_(a,"class","cell svelte-1m1b3uv"),_(s,"class","cell links font-medium md:font-normal svelte-1m1b3uv"),_(h,"class","cell links svelte-1m1b3uv"),_(d,"class","inline-block cell svelte-1m1b3uv"),_(q,"class","md:hidden"),_(O,"class","inline-block cell svelte-1m1b3uv"),_(e,"sveltekit:noscroll",""),_(e,"href",o[2]),_(e,"class","row text-sm md:text-base block md:table-row border-b-2 items-center svelte-1m1b3uv")},m(k,T){P(k,e,T),c(e,a),c(a,t),B(l,t,null),c(e,i),c(e,s),c(s,n),c(e,u),c(e,h),c(h,p),c(p,m),c(e,E),c(e,d),c(d,v),c(v,H),c(e,N),c(e,q),c(q,J),c(e,K),c(e,O),c(O,Q),c(Q,W),I=!0},p(k,[T]){const A={};T&1&&(A.status=k[0].status),l.$set(A),(!I||T&1)&&r!==(r=k[0].id+"")&&ae(n,r),(!I||T&1)&&b!==(b=k[0].name+"")&&ae(m,b),(!I||T&3)&&j!==(j=ie(k[0].startTime,k[1])+"")&&ae(H,j),(!I||T&3)&&G!==(G=ie(k[0].endTime,k[1])+"")&&ae(W,G),(!I||T&4)&&_(e,"href",k[2])},i(k){I||(D(l.$$.fragment,k),I=!0)},o(k){C(l.$$.fragment,k),I=!1},d(k){k&&f(e),U(l)}}}function Ge(o,e,a){let t,l;fe(o,Oe,r=>a(3,l=r));let{workflow:i}=e,{timeFormat:s}=e;return o.$$set=r=>{"workflow"in r&&a(0,i=r.workflow),"timeFormat"in r&&a(1,s=r.timeFormat)},o.$$.update=()=>{o.$$.dirty&9&&a(2,t=Re("workflow",{namespace:l,workflowId:i.id,runId:i.runId}))},[i,s,t,l]}class wt extends se{constructor(e){super();ne(this,e,Ge,He,oe,{workflow:0,timeFormat:1})}}function Je(o){let e,a,t,l,i,s,r,n,u,h,p;return s=new Ce({props:{icon:We,scale:.9,color:"gray",class:"flex items-center"}}),{c(){e=$("div"),a=$("label"),t=S(o[0]),l=y(),i=$("span"),L(s.$$.fragment),r=y(),n=$("input"),this.h()},l(b){e=g(b,"DIV",{class:!0});var m=w(e);a=g(m,"LABEL",{for:!0,class:!0});var E=w(a);t=F(E,o[0]),E.forEach(f),l=V(m),i=g(m,"SPAN",{class:!0});var d=w(i);R(s.$$.fragment,d),d.forEach(f),r=V(m),n=g(m,"INPUT",{class:!0,placeholder:!0,id:!0}),m.forEach(f),this.h()},h(){_(a,"for",o[2]),_(a,"class","hidden"),_(i,"class","svelte-fxm0nn"),_(n,"class","block w-full"),_(n,"placeholder",o[0]),_(n,"id",o[2]),_(e,"class","input-container svelte-fxm0nn")},m(b,m){P(b,e,m),c(e,a),c(a,t),c(e,l),c(e,i),B(s,i,null),c(e,r),c(e,n),he(n,o[1]),u=!0,h||(p=me(n,"input",o[6]),h=!0)},p(b,[m]){(!u||m&1)&&ae(t,b[0]),(!u||m&1)&&_(n,"placeholder",b[0]),m&2&&n.value!==b[1]&&he(n,b[1])},i(b){u||(D(s.$$.fragment,b),u=!0)},o(b){C(s.$$.fragment,b),u=!1},d(b){b&&f(e),U(s),h=!1,p()}}}function Ke(o,e,a){let t;fe(o,Te,p=>a(5,t=p));let{parameter:l}=e,{name:i}=e,{value:s}=e,r=l&&t.url.searchParams.get(l)||s;const n=`${l||i}-filter`,u=Pe(Ue,300);function h(){r=this.value,a(1,r)}return o.$$set=p=>{"parameter"in p&&a(3,l=p.parameter),"name"in p&&a(0,i=p.name),"value"in p&&a(4,s=p.value)},o.$$.update=()=>{o.$$.dirty&42&&u({parameter:l,value:r,query:t.url.searchParams,path:t.url.pathname,goto:De})},[i,r,n,l,s,t,h]}class ue extends se{constructor(e){super();ne(this,e,Ke,Je,oe,{parameter:3,name:0,value:4})}}function ge(o,e,a){const t=o.slice();return t[6]=e[a][0],t[7]=e[a][1],t}function be(o,e,a){const t=o.slice();return t[7]=e[a],t}function Me(o){let e,a,t,l,i;return{c(){e=$("a"),a=S("Advanced Search"),this.h()},l(s){e=g(s,"A",{href:!0,class:!0});var r=w(e);a=F(r,"Advanced Search"),r.forEach(f),this.h()},h(){_(e,"href",t=o[2].url.pathname+"?query=''"),_(e,"class","text-blue-700")},m(s,r){P(s,e,r),c(e,a),l||(i=me(e,"click",Ee(o[4]("advanced"))),l=!0)},p(s,r){r&4&&t!==(t=s[2].url.pathname+"?query=''")&&_(e,"href",t)},d(s){s&&f(e),l=!1,i()}}}function ze(o){let e,a,t,l,i;return{c(){e=$("a"),a=S("Basic Search"),this.h()},l(s){e=g(s,"A",{href:!0,class:!0});var r=w(e);a=F(r,"Basic Search"),r.forEach(f),this.h()},h(){_(e,"href",t=o[2].url.pathname),_(e,"class","text-blue-700")},m(s,r){P(s,e,r),c(e,a),l||(i=me(e,"click",Ee(o[4]("basic"))),l=!0)},p(s,r){r&4&&t!==(t=s[2].url.pathname)&&_(e,"href",t)},d(s){s&&f(e),l=!1,i()}}}function Xe(o){let e,a,t,l,i,s,r,n,u,h,p,b;a=new ue({props:{parameter:"workflow-id",name:"Workflow ID",value:ot}}),l=new ue({props:{parameter:"workflow-type",name:"Workflow Type",value:it}}),s=new $e({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[xe]},$$scope:{ctx:o}}}),n=new $e({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[tt]},$$scope:{ctx:o}}});function m(d){o[5](d)}let E={id:"filter-by-relative-time",$$slots:{default:[st]},$$scope:{ctx:o}};return o[0]!==void 0&&(E.value=o[0]),h=new Be({props:E}),Ae.push(()=>Ne(h,"value",m)),{c(){e=$("div"),L(a.$$.fragment),t=y(),L(l.$$.fragment),i=y(),L(s.$$.fragment),r=y(),L(n.$$.fragment),u=y(),L(h.$$.fragment),this.h()},l(d){e=g(d,"DIV",{class:!0});var v=w(e);R(a.$$.fragment,v),t=V(v),R(l.$$.fragment,v),i=V(v),R(s.$$.fragment,v),r=V(v),R(n.$$.fragment,v),u=V(v),R(h.$$.fragment,v),v.forEach(f),this.h()},h(){_(e,"class","grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 gap-4")},m(d,v){P(d,e,v),B(a,e,null),c(e,t),B(l,e,null),c(e,i),B(s,e,null),c(e,r),B(n,e,null),c(e,u),B(h,e,null),b=!0},p(d,v){const j={};v&4096&&(j.$$scope={dirty:v,ctx:d}),s.$set(j);const H={};v&4096&&(H.$$scope={dirty:v,ctx:d}),n.$set(H);const N={};v&4096&&(N.$$scope={dirty:v,ctx:d}),!p&&v&1&&(p=!0,N.value=d[0],qe(()=>p=!1)),h.$set(N)},i(d){b||(D(a.$$.fragment,d),D(l.$$.fragment,d),D(s.$$.fragment,d),D(n.$$.fragment,d),D(h.$$.fragment,d),b=!0)},o(d){C(a.$$.fragment,d),C(l.$$.fragment,d),C(s.$$.fragment,d),C(n.$$.fragment,d),C(h.$$.fragment,d),b=!1},d(d){d&&f(e),U(a),U(l),U(s),U(n),U(h)}}}function Ye(o){let e,a;return e=new ue({props:{parameter:"query",name:"Query",value:""}}),{c(){L(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,l){B(e,t,l),a=!0},p:M,i(t){a||(D(e.$$.fragment,t),a=!0)},o(t){C(e.$$.fragment,t),a=!1},d(t){U(e,t)}}}function Ze(o){let e=o[7]+"",a;return{c(){a=S(e)},l(t){a=F(t,e)},m(t,l){P(t,a,l)},p:M,d(t){t&&f(a)}}}function we(o){let e,a;return e=new re({props:{value:o[7],$$slots:{default:[Ze]},$$scope:{ctx:o}}}),{c(){L(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,l){B(e,t,l),a=!0},p(t,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){a||(D(e.$$.fragment,t),a=!0)},o(t){C(e.$$.fragment,t),a=!1},d(t){U(e,t)}}}function xe(o){let e,a,t=ve,l=[];for(let s=0;sC(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sC(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{p[d]=null}),_e(),i=p[l],i?i.p(m,E):(i=p[l]=h[l](m),i.c()),D(i,1),i.m(e,null))},i(m){s||(D(i),s=!0)},o(m){C(i),s=!1},d(m){m&&f(e),u.d(),p[l].d()}}}let ot="",it="";function ct(o,e,a){let t;fe(o,Te,u=>a(2,t=u));let{timeFormat:l="UTC"}=e;const i={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let s=t.url.searchParams.has("query");const r=u=>h=>{const p=h.target;a(1,s=u==="advanced"),s||t.url.searchParams.delete("query"),De(p.href)};function n(u){l=u,a(0,l)}return o.$$set=u=>{"timeFormat"in u&&a(0,l=u.timeFormat)},[l,s,t,i,r,n]}class kt extends se{constructor(e){super();ne(this,e,ct,nt,oe,{timeFormat:0})}}function ut(o){let e,a,t;return{c(){e=$("tr"),a=$("td"),t=S("Loading"),this.h()},l(l){e=g(l,"TR",{});var i=w(e);a=g(i,"TD",{colspan:!0,class:!0});var s=w(a);t=F(s,"Loading"),s.forEach(f),i.forEach(f),this.h()},h(){_(a,"colspan","5"),_(a,"class","m-auto p-12 text-center font-extralight text-2xl")},m(l,i){P(l,e,i),c(e,a),c(a,t)},p:M,i:M,o:M,d(l){l&&f(e)}}}class Et extends se{constructor(e){super();ne(this,e,null,ut,oe,{})}}export{kt as W,Et as a,bt as b,wt as c}; +import{S as se,i as ne,s as oe,K as Se,e as $,t as S,k as y,c as g,a as w,h as F,d as f,m as V,b as _,g as P,L as c,M as ye,N as Fe,O as Ve,q as D,o as C,w as L,x as R,y as B,j as ae,B as U,I as fe,P as Ce,ap as We,aq as he,W as me,ar as Pe,n as de,p as _e,as as Ee,F as Ae,G as Ne,H as qe,T as M,l as ce,J as Ie}from"./vendor-b58bb848.js";import{f as ie}from"./format-date-47255ab2.js";import{n as Oe}from"./namespace-0cacc6ef.js";import{W as Le,d as ve}from"./workflow-status-15cd5fff.js";import{r as Re}from"./route-for-11851a4f.js";import{p as Te}from"./stores-71c7b9ff.js";import{g as De}from"./navigation-093db9e2.js";import{S as Be,O as re}from"./select-5b8ec3d3.js";import{u as Ue,F as $e}from"./filter-select-724bff2f.js";function je(o){let e,a,t,l,i,s,r,n,u,h,p,b,m,E,d,v,j,H,N,q,J,K,O,Q;const G=o[1].default,W=Se(G,o,o[0],null);return{c(){e=$("section"),a=$("div"),t=$("div"),l=$("div"),i=S("Status"),s=y(),r=$("div"),n=S("Workflow ID"),u=y(),h=$("div"),p=S("Type"),b=y(),m=$("div"),E=S("Started"),d=y(),v=$("div"),j=S("End"),H=y(),N=$("div"),q=$("div"),J=S("Summary"),K=y(),O=$("div"),W&&W.c(),this.h()},l(I){e=g(I,"SECTION",{class:!0});var k=w(e);a=g(k,"DIV",{class:!0});var T=w(a);t=g(T,"DIV",{class:!0});var A=w(t);l=g(A,"DIV",{class:!0});var z=w(l);i=F(z,"Status"),z.forEach(f),s=V(A),r=g(A,"DIV",{class:!0});var X=w(r);n=F(X,"Workflow ID"),X.forEach(f),u=V(A),h=g(A,"DIV",{class:!0});var Y=w(h);p=F(Y,"Type"),Y.forEach(f),b=V(A),m=g(A,"DIV",{class:!0});var Z=w(m);E=F(Z,"Started"),Z.forEach(f),d=V(A),v=g(A,"DIV",{class:!0});var x=w(v);j=F(x,"End"),x.forEach(f),A.forEach(f),T.forEach(f),H=V(k),N=g(k,"DIV",{class:!0});var ee=w(N);q=g(ee,"DIV",{class:!0});var te=w(q);J=F(te,"Summary"),te.forEach(f),ee.forEach(f),K=V(k),O=g(k,"DIV",{class:!0});var le=w(O);W&&W.l(le),le.forEach(f),k.forEach(f),this.h()},h(){_(l,"class","table-header rounded-tl-lg svelte-11xf5ac"),_(r,"class","table-header svelte-11xf5ac"),_(h,"class","table-header svelte-11xf5ac"),_(m,"class","table-header svelte-11xf5ac"),_(v,"class","table-header rounded-tr-lg svelte-11xf5ac"),_(t,"class","md:table-row hidden"),_(a,"class","md:table-header-group bg-gray-100 rounded-t-lg"),_(q,"class","bg-gray-100 p-2 border-b rounded-t-lg"),_(N,"class","md:hidden"),_(O,"class","overflow-y-auto md:table-row-group"),_(e,"class","workflow-table svelte-11xf5ac")},m(I,k){P(I,e,k),c(e,a),c(a,t),c(t,l),c(l,i),c(t,s),c(t,r),c(r,n),c(t,u),c(t,h),c(h,p),c(t,b),c(t,m),c(m,E),c(t,d),c(t,v),c(v,j),c(e,H),c(e,N),c(N,q),c(q,J),c(e,K),c(e,O),W&&W.m(O,null),Q=!0},p(I,[k]){W&&W.p&&(!Q||k&1)&&ye(W,G,I,I[0],Q?Ve(G,I[0],k,null):Fe(I[0]),null)},i(I){Q||(D(W,I),Q=!0)},o(I){C(W,I),Q=!1},d(I){I&&f(e),W&&W.d(I)}}}function Qe(o,e,a){let{$$slots:t={},$$scope:l}=e;return o.$$set=i=>{"$$scope"in i&&a(0,l=i.$$scope)},[l,t]}class bt extends se{constructor(e){super();ne(this,e,Qe,je,oe,{})}}function He(o){let e,a,t,l,i,s,r=o[0].id+"",n,u,h,p,b=o[0].name+"",m,E,d,v,j=ie(o[0].startTime,o[1])+"",H,N,q,J,K,O,Q,G=ie(o[0].endTime,o[1])+"",W,I;return l=new Le({props:{status:o[0].status}}),{c(){e=$("a"),a=$("div"),t=$("div"),L(l.$$.fragment),i=y(),s=$("div"),n=S(r),u=y(),h=$("div"),p=$("h3"),m=S(b),E=y(),d=$("div"),v=$("p"),H=S(j),N=y(),q=$("span"),J=S("-"),K=y(),O=$("div"),Q=$("p"),W=S(G),this.h()},l(k){e=g(k,"A",{"sveltekit:noscroll":!0,href:!0,class:!0});var T=w(e);a=g(T,"DIV",{class:!0});var A=w(a);t=g(A,"DIV",{});var z=w(t);R(l.$$.fragment,z),z.forEach(f),A.forEach(f),i=V(T),s=g(T,"DIV",{class:!0});var X=w(s);n=F(X,r),X.forEach(f),u=V(T),h=g(T,"DIV",{class:!0});var Y=w(h);p=g(Y,"H3",{});var Z=w(p);m=F(Z,b),Z.forEach(f),Y.forEach(f),E=V(T),d=g(T,"DIV",{class:!0});var x=w(d);v=g(x,"P",{});var ee=w(v);H=F(ee,j),ee.forEach(f),x.forEach(f),N=V(T),q=g(T,"SPAN",{class:!0});var te=w(q);J=F(te,"-"),te.forEach(f),K=V(T),O=g(T,"DIV",{class:!0});var le=w(O);Q=g(le,"P",{});var pe=w(Q);W=F(pe,G),pe.forEach(f),le.forEach(f),T.forEach(f),this.h()},h(){_(a,"class","cell svelte-1m1b3uv"),_(s,"class","cell links font-medium md:font-normal svelte-1m1b3uv"),_(h,"class","cell links svelte-1m1b3uv"),_(d,"class","inline-block cell svelte-1m1b3uv"),_(q,"class","md:hidden"),_(O,"class","inline-block cell svelte-1m1b3uv"),_(e,"sveltekit:noscroll",""),_(e,"href",o[2]),_(e,"class","row text-sm md:text-base block md:table-row border-b-2 items-center svelte-1m1b3uv")},m(k,T){P(k,e,T),c(e,a),c(a,t),B(l,t,null),c(e,i),c(e,s),c(s,n),c(e,u),c(e,h),c(h,p),c(p,m),c(e,E),c(e,d),c(d,v),c(v,H),c(e,N),c(e,q),c(q,J),c(e,K),c(e,O),c(O,Q),c(Q,W),I=!0},p(k,[T]){const A={};T&1&&(A.status=k[0].status),l.$set(A),(!I||T&1)&&r!==(r=k[0].id+"")&&ae(n,r),(!I||T&1)&&b!==(b=k[0].name+"")&&ae(m,b),(!I||T&3)&&j!==(j=ie(k[0].startTime,k[1])+"")&&ae(H,j),(!I||T&3)&&G!==(G=ie(k[0].endTime,k[1])+"")&&ae(W,G),(!I||T&4)&&_(e,"href",k[2])},i(k){I||(D(l.$$.fragment,k),I=!0)},o(k){C(l.$$.fragment,k),I=!1},d(k){k&&f(e),U(l)}}}function Ge(o,e,a){let t,l;fe(o,Oe,r=>a(3,l=r));let{workflow:i}=e,{timeFormat:s}=e;return o.$$set=r=>{"workflow"in r&&a(0,i=r.workflow),"timeFormat"in r&&a(1,s=r.timeFormat)},o.$$.update=()=>{o.$$.dirty&9&&a(2,t=Re("workflow",{namespace:l,workflowId:i.id,runId:i.runId}))},[i,s,t,l]}class wt extends se{constructor(e){super();ne(this,e,Ge,He,oe,{workflow:0,timeFormat:1})}}function Je(o){let e,a,t,l,i,s,r,n,u,h,p;return s=new Ce({props:{icon:We,scale:.9,color:"gray",class:"flex items-center"}}),{c(){e=$("div"),a=$("label"),t=S(o[0]),l=y(),i=$("span"),L(s.$$.fragment),r=y(),n=$("input"),this.h()},l(b){e=g(b,"DIV",{class:!0});var m=w(e);a=g(m,"LABEL",{for:!0,class:!0});var E=w(a);t=F(E,o[0]),E.forEach(f),l=V(m),i=g(m,"SPAN",{class:!0});var d=w(i);R(s.$$.fragment,d),d.forEach(f),r=V(m),n=g(m,"INPUT",{class:!0,placeholder:!0,id:!0}),m.forEach(f),this.h()},h(){_(a,"for",o[2]),_(a,"class","hidden"),_(i,"class","svelte-fxm0nn"),_(n,"class","block w-full"),_(n,"placeholder",o[0]),_(n,"id",o[2]),_(e,"class","input-container svelte-fxm0nn")},m(b,m){P(b,e,m),c(e,a),c(a,t),c(e,l),c(e,i),B(s,i,null),c(e,r),c(e,n),he(n,o[1]),u=!0,h||(p=me(n,"input",o[6]),h=!0)},p(b,[m]){(!u||m&1)&&ae(t,b[0]),(!u||m&1)&&_(n,"placeholder",b[0]),m&2&&n.value!==b[1]&&he(n,b[1])},i(b){u||(D(s.$$.fragment,b),u=!0)},o(b){C(s.$$.fragment,b),u=!1},d(b){b&&f(e),U(s),h=!1,p()}}}function Ke(o,e,a){let t;fe(o,Te,p=>a(5,t=p));let{parameter:l}=e,{name:i}=e,{value:s}=e,r=l&&t.url.searchParams.get(l)||s;const n=`${l||i}-filter`,u=Pe(Ue,300);function h(){r=this.value,a(1,r)}return o.$$set=p=>{"parameter"in p&&a(3,l=p.parameter),"name"in p&&a(0,i=p.name),"value"in p&&a(4,s=p.value)},o.$$.update=()=>{o.$$.dirty&42&&u({parameter:l,value:r,query:t.url.searchParams,path:t.url.pathname,goto:De})},[i,r,n,l,s,t,h]}class ue extends se{constructor(e){super();ne(this,e,Ke,Je,oe,{parameter:3,name:0,value:4})}}function ge(o,e,a){const t=o.slice();return t[6]=e[a][0],t[7]=e[a][1],t}function be(o,e,a){const t=o.slice();return t[7]=e[a],t}function Me(o){let e,a,t,l,i;return{c(){e=$("a"),a=S("Advanced Search"),this.h()},l(s){e=g(s,"A",{href:!0,class:!0});var r=w(e);a=F(r,"Advanced Search"),r.forEach(f),this.h()},h(){_(e,"href",t=o[2].url.pathname+"?query=''"),_(e,"class","text-blue-700")},m(s,r){P(s,e,r),c(e,a),l||(i=me(e,"click",Ee(o[4]("advanced"))),l=!0)},p(s,r){r&4&&t!==(t=s[2].url.pathname+"?query=''")&&_(e,"href",t)},d(s){s&&f(e),l=!1,i()}}}function ze(o){let e,a,t,l,i;return{c(){e=$("a"),a=S("Basic Search"),this.h()},l(s){e=g(s,"A",{href:!0,class:!0});var r=w(e);a=F(r,"Basic Search"),r.forEach(f),this.h()},h(){_(e,"href",t=o[2].url.pathname),_(e,"class","text-blue-700")},m(s,r){P(s,e,r),c(e,a),l||(i=me(e,"click",Ee(o[4]("basic"))),l=!0)},p(s,r){r&4&&t!==(t=s[2].url.pathname)&&_(e,"href",t)},d(s){s&&f(e),l=!1,i()}}}function Xe(o){let e,a,t,l,i,s,r,n,u,h,p,b;a=new ue({props:{parameter:"workflow-id",name:"Workflow ID",value:ot}}),l=new ue({props:{parameter:"workflow-type",name:"Workflow Type",value:it}}),s=new $e({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[xe]},$$scope:{ctx:o}}}),n=new $e({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[tt]},$$scope:{ctx:o}}});function m(d){o[5](d)}let E={id:"filter-by-relative-time",$$slots:{default:[st]},$$scope:{ctx:o}};return o[0]!==void 0&&(E.value=o[0]),h=new Be({props:E}),Ae.push(()=>Ne(h,"value",m)),{c(){e=$("div"),L(a.$$.fragment),t=y(),L(l.$$.fragment),i=y(),L(s.$$.fragment),r=y(),L(n.$$.fragment),u=y(),L(h.$$.fragment),this.h()},l(d){e=g(d,"DIV",{class:!0});var v=w(e);R(a.$$.fragment,v),t=V(v),R(l.$$.fragment,v),i=V(v),R(s.$$.fragment,v),r=V(v),R(n.$$.fragment,v),u=V(v),R(h.$$.fragment,v),v.forEach(f),this.h()},h(){_(e,"class","grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 gap-4")},m(d,v){P(d,e,v),B(a,e,null),c(e,t),B(l,e,null),c(e,i),B(s,e,null),c(e,r),B(n,e,null),c(e,u),B(h,e,null),b=!0},p(d,v){const j={};v&4096&&(j.$$scope={dirty:v,ctx:d}),s.$set(j);const H={};v&4096&&(H.$$scope={dirty:v,ctx:d}),n.$set(H);const N={};v&4096&&(N.$$scope={dirty:v,ctx:d}),!p&&v&1&&(p=!0,N.value=d[0],qe(()=>p=!1)),h.$set(N)},i(d){b||(D(a.$$.fragment,d),D(l.$$.fragment,d),D(s.$$.fragment,d),D(n.$$.fragment,d),D(h.$$.fragment,d),b=!0)},o(d){C(a.$$.fragment,d),C(l.$$.fragment,d),C(s.$$.fragment,d),C(n.$$.fragment,d),C(h.$$.fragment,d),b=!1},d(d){d&&f(e),U(a),U(l),U(s),U(n),U(h)}}}function Ye(o){let e,a;return e=new ue({props:{parameter:"query",name:"Query",value:""}}),{c(){L(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,l){B(e,t,l),a=!0},p:M,i(t){a||(D(e.$$.fragment,t),a=!0)},o(t){C(e.$$.fragment,t),a=!1},d(t){U(e,t)}}}function Ze(o){let e=o[7]+"",a;return{c(){a=S(e)},l(t){a=F(t,e)},m(t,l){P(t,a,l)},p:M,d(t){t&&f(a)}}}function we(o){let e,a;return e=new re({props:{value:o[7],$$slots:{default:[Ze]},$$scope:{ctx:o}}}),{c(){L(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,l){B(e,t,l),a=!0},p(t,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){a||(D(e.$$.fragment,t),a=!0)},o(t){C(e.$$.fragment,t),a=!1},d(t){U(e,t)}}}function xe(o){let e,a,t=ve,l=[];for(let s=0;sC(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sC(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{p[d]=null}),_e(),i=p[l],i?i.p(m,E):(i=p[l]=h[l](m),i.c()),D(i,1),i.m(e,null))},i(m){s||(D(i),s=!0)},o(m){C(i),s=!1},d(m){m&&f(e),u.d(),p[l].d()}}}let ot="",it="";function ct(o,e,a){let t;fe(o,Te,u=>a(2,t=u));let{timeFormat:l="UTC"}=e;const i={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let s=t.url.searchParams.has("query");const r=u=>h=>{const p=h.target;a(1,s=u==="advanced"),s||t.url.searchParams.delete("query"),De(p.href)};function n(u){l=u,a(0,l)}return o.$$set=u=>{"timeFormat"in u&&a(0,l=u.timeFormat)},[l,s,t,i,r,n]}class kt extends se{constructor(e){super();ne(this,e,ct,nt,oe,{timeFormat:0})}}function ut(o){let e,a,t;return{c(){e=$("tr"),a=$("td"),t=S("Loading"),this.h()},l(l){e=g(l,"TR",{});var i=w(e);a=g(i,"TD",{colspan:!0,class:!0});var s=w(a);t=F(s,"Loading"),s.forEach(f),i.forEach(f),this.h()},h(){_(a,"colspan","5"),_(a,"class","m-auto p-12 text-center font-extralight text-2xl")},m(l,i){P(l,e,i),c(e,a),c(a,t)},p:M,i:M,o:M,d(l){l&&f(e)}}}class Et extends se{constructor(e){super();ne(this,e,null,ut,oe,{})}}export{kt as W,Et as a,bt as b,wt as c}; diff --git a/server/generated/ui/_app/chunks/query-service-3d3380f9.js b/server/generated/ui/_app/chunks/query-service-a89500ff.js similarity index 95% rename from server/generated/ui/_app/chunks/query-service-3d3380f9.js rename to server/generated/ui/_app/chunks/query-service-a89500ff.js index 4d998be5f4..126d5a35b5 100644 --- a/server/generated/ui/_app/chunks/query-service-3d3380f9.js +++ b/server/generated/ui/_app/chunks/query-service-a89500ff.js @@ -1 +1 @@ -var d=Object.defineProperty,p=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var u=(t,r,e)=>r in t?d(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,s=(t,r)=>{for(var e in r||(r={}))m.call(r,e)&&u(t,e,r[e]);if(c)for(var e of c(r))I.call(r,e)&&u(t,e,r[e]);return t},i=(t,r)=>p(t,f(r));import{r as O,a as _,i as g}from"./route-for-api-90d9e1db.js";const h=t=>{const r=t.indexOf("["),e=t.indexOf("]");return t.slice(r+1,e).split(" ").filter(a=>a!=="__stack_trace")},l=async(t,r)=>(r=await r,{namespace:t,executionId:r.id,runId:r.runId});async function y({workflow:t,namespace:r,queryType:e},a=fetch,n){t=await t;const o=await l(r,t);return await O(_("query",o),{options:{method:"POST",body:JSON.stringify({execution:{workflowId:t.id,runId:t.runId},query:{queryType:e}})},request:a,onError:n})}async function Q(t,r=fetch){return new Promise(e=>{y(i(s({},t),{queryType:"@@temporal-internal__list"}),r,({body:a})=>{g(a)&&e(h(a.message))})})}async function q(t,r=fetch){return y(t,r).then(e=>{const{queryResult:a}=e!=null?e:{queryResult:{payloads:[]}},n=window.atob(a.payloads[0].data);return JSON.parse(n)})}async function S(t,r=fetch){return q(i(s({},t),{queryType:"__stack_trace"}),r)}export{Q as a,q as b,S as g}; +var d=Object.defineProperty,p=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var u=(t,r,e)=>r in t?d(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,s=(t,r)=>{for(var e in r||(r={}))m.call(r,e)&&u(t,e,r[e]);if(c)for(var e of c(r))I.call(r,e)&&u(t,e,r[e]);return t},i=(t,r)=>p(t,f(r));import{r as O,a as _,i as g}from"./route-for-api-46069891.js";const h=t=>{const r=t.indexOf("["),e=t.indexOf("]");return t.slice(r+1,e).split(" ").filter(a=>a!=="__stack_trace")},l=async(t,r)=>(r=await r,{namespace:t,executionId:r.id,runId:r.runId});async function y({workflow:t,namespace:r,queryType:e},a=fetch,n){t=await t;const o=await l(r,t);return await O(_("query",o),{options:{method:"POST",body:JSON.stringify({execution:{workflowId:t.id,runId:t.runId},query:{queryType:e}})},request:a,onError:n})}async function Q(t,r=fetch){return new Promise(e=>{y(i(s({},t),{queryType:"@@temporal-internal__list"}),r,({body:a})=>{g(a)&&e(h(a.message))})})}async function q(t,r=fetch){return y(t,r).then(e=>{const{queryResult:a}=e!=null?e:{queryResult:{payloads:[]}},n=window.atob(a.payloads[0].data);return JSON.parse(n)})}async function S(t,r=fetch){return q(i(s({},t),{queryType:"__stack_trace"}),r)}export{Q as a,q as b,S as g}; diff --git a/server/generated/ui/_app/chunks/route-for-api-46069891.js b/server/generated/ui/_app/chunks/route-for-api-46069891.js new file mode 100644 index 0000000000..46c416650f --- /dev/null +++ b/server/generated/ui/_app/chunks/route-for-api-46069891.js @@ -0,0 +1 @@ +var A=Object.defineProperty;var T=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var _=(o,n,c)=>n in o?A(o,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[n]=c,l=(o,n)=>{for(var c in n||(n={}))S.call(n,c)&&_(o,c,n[c]);if(T)for(var c of T(n))y.call(n,c)&&_(o,c,n[c]);return o};import{D as e}from"./vendor-b58bb848.js";import{n as E}from"./notifications-c07f99ce.js";import{i as $}from"./is-network-error-ac7c8caf.js";const g=e(null),O=o=>{if(v(o)){E.add("error",`${o.statusCode} ${o.statusText}`);return}if($(o))throw E.add("error",`${o.statusCode} ${o.statusText}`),g.set(o),o;typeof o=="string"&&E.add("error",o),o instanceof Error&&E.add("error",o.message)},v=o=>$(o)?o.statusCode===403||o.statusCode===401:!1,U=o=>typeof o=="function",q=(o,n)=>{const c=n instanceof URLSearchParams;return n&&!c&&(n=new URLSearchParams(n)),n?`${o}?${n}`:o},W=o=>o.message!==void 0&&typeof o.message=="string",C=async(o,n={},c=10)=>{const{params:u={},request:i=fetch,token:t,shouldRetry:k=!1,onError:d,retryInterval:P=5e3}=n;let{options:w}=n;const h=t?{next_page_token:t}:{},V=new URLSearchParams(l(l({},u),h)),x=q(o,V);try{w=D(w);const s=await i(x,w),f=await s.json(),{status:L,statusText:R}=s;if(!s.ok)if(d&&U(d))d({status:L,statusText:R,body:f});else throw{statusCode:s.status,statusText:s.statusText,response:s};return f}catch(s){if(O(s),k&&c>0)return new Promise(f=>{setTimeout(()=>{f(C(o,n,c-1))},P)})}},D=o=>{const n=l({credentials:"include"},o);return n.headers=F(o==null?void 0:o.headers),n},F=o=>{o||(o={});const n="_csrf=",c="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(n));i&&!o[c]&&(i=i.trim().slice(n.length),o[c]=i)}catch(u){console.error(u)}return o};let I="";I.endsWith("/")&&(I=I.slice(0,-1));const N=o=>o.split("/").map(n=>encodeURIComponent(n)).join("/"),K=o=>(o.startsWith("/")&&(o=o.slice(1)),`${I}/api/v1/${N(o)}`);function G(o,n){const c={cluster:"/cluster",settings:"/settings",user:"/me",namespaces:"/namespaces","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/workflows/archived`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/terminate`,events:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/events`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/query`};return K(c[o])}export{G as a,U as b,O as h,W as i,g as n,C as r}; diff --git a/server/generated/ui/_app/chunks/route-for-api-90d9e1db.js b/server/generated/ui/_app/chunks/route-for-api-90d9e1db.js deleted file mode 100644 index 6b6e5b6d7f..0000000000 --- a/server/generated/ui/_app/chunks/route-for-api-90d9e1db.js +++ /dev/null @@ -1 +0,0 @@ -var S=Object.defineProperty;var T=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var _=(o,n,c)=>n in o?S(o,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[n]=c,l=(o,n)=>{for(var c in n||(n={}))y.call(n,c)&&_(o,c,n[c]);if(T)for(var c of T(n))A.call(n,c)&&_(o,c,n[c]);return o};import{D as e}from"./vendor-b58bb848.js";import{n as d}from"./notifications-c07f99ce.js";import{i as $}from"./is-network-error-ac7c8caf.js";const g=e(null),v=o=>{if(O(o)){d.add("error",`${o.statusCode} ${o.statusText}`);return}if($(o))throw d.add("error",`${o.statusCode} ${o.statusText}`),g.set(o),o;typeof o=="string"&&d.add("error",o),o instanceof Error&&d.add("error",o.message)},O=o=>$(o)?o.statusCode===403||o.statusCode===401:!1,q=o=>typeof o=="function",C=(o,n)=>{const c=n instanceof URLSearchParams;return n&&!c&&(n=new URLSearchParams(n)),n?`${o}?${n}`:o},W=o=>o.message!==void 0&&typeof o.message=="string",U=async(o,n={},c=10)=>{const{params:u={},request:i=fetch,token:t,shouldRetry:k=!1,onError:E,retryInterval:P=5e3}=n;let{options:I}=n;const h=t?{next_page_token:t}:{},V=new URLSearchParams(l(l({},u),h)),x=C(o,V);try{I=F(I);const s=await i(x,I),f=await s.json(),{status:L,statusText:R}=s;if(!s.ok)if(E&&q(E))E({status:L,statusText:R,body:f});else throw{statusCode:s.status,statusText:s.statusText,response:s};return f}catch(s){if(v(s),k&&c>0)return new Promise(f=>{setTimeout(()=>{f(U(o,n,c-1))},P)})}},F=o=>{const n=l({credentials:"include"},o);return n.headers=N(o==null?void 0:o.headers),n},N=o=>{o||(o={});const n="_csrf=",c="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(n));i&&!o[c]&&(i=i.trim().slice(n.length),o[c]=i)}catch(u){console.error(u)}return o};let w="";w.endsWith("/")&&(w=w.slice(0,-1));const D=o=>o.split("/").map(n=>encodeURIComponent(n)).join("/"),K=o=>(o.startsWith("/")&&(o=o.slice(1)),`${w}/api/v1/${D(o)}`);function H(o,n){const c={cluster:"/cluster",settings:"/settings",user:"/me",namespaces:"/namespaces","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/workflows/archived`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/terminate`,events:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/events`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.executionId}/executions/${n==null?void 0:n.runId}/query`};return K(c[o])}export{H as a,q as b,v as h,W as i,g as n,U as r}; diff --git a/server/generated/ui/_app/chunks/workers-row-c83ee16c.js b/server/generated/ui/_app/chunks/workers-row-7bc8cde3.js similarity index 98% rename from server/generated/ui/_app/chunks/workers-row-c83ee16c.js rename to server/generated/ui/_app/chunks/workers-row-7bc8cde3.js index 0adc289e5f..8cd952e707 100644 --- a/server/generated/ui/_app/chunks/workers-row-c83ee16c.js +++ b/server/generated/ui/_app/chunks/workers-row-7bc8cde3.js @@ -1 +1 @@ -import{r as ee,a as te}from"./route-for-api-90d9e1db.js";import{S as ne,i as oe,s as ce,K as _e,e as T,t as H,k as P,c as b,a as g,h as S,d as v,m as C,b as I,g as ie,L as a,M as de,N as pe,O as me,q as A,o as Q,j as se,n as le,p as ae,P as R,aP as ue,w as Y,x as N,y as j,T as B,B as M,aE as fe}from"./vendor-b58bb848.js";import{f as re}from"./format-date-47255ab2.js";async function Ae(r,e=fetch){const s=await ee(te("task-queue",r),{request:e,params:{taskQueueType:"1"}}),t=await ee(te("task-queue",r),{request:e,params:{taskQueueType:"2"}});t.pollers.forEach(i=>{i.taskQueueTypes=["ACTIVITY"]}),s.pollers.forEach(i=>{i.taskQueueTypes=["WORKFLOW"]});const l=i=>(_,k)=>{const $=_[k.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return _[k.identity]={lastAccessTime:!$.lastAccessTime||$.lastAccessTimes.pollers.some(_=>{if(i.identity===_.identity)return i.taskQueueTypes=[..._.taskQueueTypes,...i.taskQueueTypes],i})),t.pollers.reduce(l("ACTIVITY"),s.pollers.reduce(l("WORKFLOW"),{})),{pollers:t.pollers,taskQueueStatus:t.taskQueueStatus}}function ve(r){let e,s,t,l,i,_,k,$,w,D,x,h,V,m,p;const O=r[1].default,u=_e(O,r,r[0],null);return{c(){e=T("section"),s=T("div"),t=T("div"),l=H("ID"),i=P(),_=T("div"),k=H("Last Accessed"),$=P(),w=T("div"),D=H("Workflow Table Handler"),x=P(),h=T("div"),V=H("Activity Handler"),m=P(),u&&u.c(),this.h()},l(d){e=b(d,"SECTION",{class:!0});var o=g(e);s=b(o,"DIV",{class:!0});var f=g(s);t=b(f,"DIV",{class:!0});var E=g(t);l=S(E,"ID"),E.forEach(v),i=C(f),_=b(f,"DIV",{class:!0});var q=g(_);k=S(q,"Last Accessed"),q.forEach(v),$=C(f),w=b(f,"DIV",{class:!0});var y=g(w);D=S(y,"Workflow Table Handler"),y.forEach(v),x=C(f),h=b(f,"DIV",{class:!0});var K=g(h);V=S(K,"Activity Handler"),K.forEach(v),f.forEach(v),m=C(o),u&&u.l(o),o.forEach(v),this.h()},h(){I(t,"class","w-3/12 text-left"),I(_,"class","w-3/12 text-left"),I(w,"class","w-3/12 text-left"),I(h,"class","w-2/12 text-left"),I(s,"class","bg-gray-200 flex flex-row p-2"),I(e,"class","flex flex-col border-2 border-gray-300 w-full rounded-lg")},m(d,o){ie(d,e,o),a(e,s),a(s,t),a(t,l),a(s,i),a(s,_),a(_,k),a(s,$),a(s,w),a(w,D),a(s,x),a(s,h),a(h,V),a(e,m),u&&u.m(e,null),p=!0},p(d,[o]){u&&u.p&&(!p||o&1)&&de(u,O,d,d[0],p?me(O,d[0],o,null):pe(d[0]),null)},i(d){p||(A(u,d),p=!0)},o(d){Q(u,d),p=!1},d(d){d&&v(e),u&&u.d(d)}}}function ke(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=i=>{"$$scope"in i&&s(0,l=i.$$scope)},[l,t]}class Qe extends ne{constructor(e){super();oe(this,e,ke,ve,ce,{})}}function $e(r){let e,s;return e=new R({props:{icon:ue,color:"black"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function he(r){let e,s;return e=new R({props:{icon:fe,color:"blue"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Te(r){let e,s;return e=new R({props:{icon:ue,color:"black"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function be(r){let e,s;return e=new R({props:{icon:fe,color:"blue"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function ge(r){let e,s,t=r[0].identity+"",l,i,_,k,$,w=re(r[0].lastAccessTime)+"",D,x,h,V,m,p,O,u,d,o,f,E;const q=[he,$e],y=[];function K(c,n){return n&1&&(V=null),V==null&&(V=!!c[0].taskQueueTypes.includes("WORKFLOW")),V?0:1}m=K(r,-1),p=y[m]=q[m](r);const z=[be,Te],W=[];function G(c,n){return n&1&&(d=null),d==null&&(d=!!c[0].taskQueueTypes.includes("ACTIVITY")),d?0:1}return o=G(r,-1),f=W[o]=z[o](r),{c(){e=T("article"),s=T("div"),l=H(t),i=P(),_=T("div"),k=T("h3"),$=T("p"),D=H(w),x=P(),h=T("div"),p.c(),O=P(),u=T("div"),f.c(),this.h()},l(c){e=b(c,"ARTICLE",{class:!0});var n=g(e);s=b(n,"DIV",{class:!0});var L=g(s);l=S(L,t),L.forEach(v),i=C(n),_=b(n,"DIV",{class:!0});var F=g(_);k=b(F,"H3",{});var J=g(k);$=b(J,"P",{});var U=g($);D=S(U,w),U.forEach(v),J.forEach(v),F.forEach(v),x=C(n),h=b(n,"DIV",{class:!0});var X=g(h);p.l(X),X.forEach(v),O=C(n),u=b(n,"DIV",{class:!0});var Z=g(u);f.l(Z),Z.forEach(v),n.forEach(v),this.h()},h(){I(s,"class","links w-3/12 text-left"),I(_,"class","links w-3/12 text-left"),I(h,"class","w-3/12 text-left"),I(u,"class","w-3/12 text-left"),I(e,"class","w-full h-full flex flex-row border-b-2 last:border-b-0 no-underline p-2")},m(c,n){ie(c,e,n),a(e,s),a(s,l),a(e,i),a(e,_),a(_,k),a(k,$),a($,D),a(e,x),a(e,h),y[m].m(h,null),a(e,O),a(e,u),W[o].m(u,null),E=!0},p(c,[n]){(!E||n&1)&&t!==(t=c[0].identity+"")&&se(l,t),(!E||n&1)&&w!==(w=re(c[0].lastAccessTime)+"")&&se(D,w);let L=m;m=K(c,n),m===L?y[m].p(c,n):(le(),Q(y[L],1,1,()=>{y[L]=null}),ae(),p=y[m],p?p.p(c,n):(p=y[m]=q[m](c),p.c()),A(p,1),p.m(h,null));let F=o;o=G(c,n),o===F?W[o].p(c,n):(le(),Q(W[F],1,1,()=>{W[F]=null}),ae(),f=W[o],f?f.p(c,n):(f=W[o]=z[o](c),f.c()),A(f,1),f.m(u,null))},i(c){E||(A(p),A(f),E=!0)},o(c){Q(p),Q(f),E=!1},d(c){c&&v(e),y[m].d(),W[o].d()}}}function we(r,e,s){let{poller:t}=e;return r.$$set=l=>{"poller"in l&&s(0,t=l.poller)},[t]}class De extends ne{constructor(e){super();oe(this,e,we,ge,ce,{poller:0})}}export{Qe as W,De as a,Ae as g}; +import{r as ee,a as te}from"./route-for-api-46069891.js";import{S as ne,i as oe,s as ce,K as _e,e as T,t as H,k as P,c as b,a as g,h as S,d as v,m as C,b as I,g as ie,L as a,M as de,N as pe,O as me,q as A,o as Q,j as se,n as le,p as ae,P as R,aP as ue,w as Y,x as N,y as j,T as B,B as M,aE as fe}from"./vendor-b58bb848.js";import{f as re}from"./format-date-47255ab2.js";async function Ae(r,e=fetch){const s=await ee(te("task-queue",r),{request:e,params:{taskQueueType:"1"}}),t=await ee(te("task-queue",r),{request:e,params:{taskQueueType:"2"}});t.pollers.forEach(i=>{i.taskQueueTypes=["ACTIVITY"]}),s.pollers.forEach(i=>{i.taskQueueTypes=["WORKFLOW"]});const l=i=>(_,k)=>{const $=_[k.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return _[k.identity]={lastAccessTime:!$.lastAccessTime||$.lastAccessTimes.pollers.some(_=>{if(i.identity===_.identity)return i.taskQueueTypes=[..._.taskQueueTypes,...i.taskQueueTypes],i})),t.pollers.reduce(l("ACTIVITY"),s.pollers.reduce(l("WORKFLOW"),{})),{pollers:t.pollers,taskQueueStatus:t.taskQueueStatus}}function ve(r){let e,s,t,l,i,_,k,$,w,D,x,h,V,m,p;const O=r[1].default,u=_e(O,r,r[0],null);return{c(){e=T("section"),s=T("div"),t=T("div"),l=H("ID"),i=P(),_=T("div"),k=H("Last Accessed"),$=P(),w=T("div"),D=H("Workflow Table Handler"),x=P(),h=T("div"),V=H("Activity Handler"),m=P(),u&&u.c(),this.h()},l(d){e=b(d,"SECTION",{class:!0});var o=g(e);s=b(o,"DIV",{class:!0});var f=g(s);t=b(f,"DIV",{class:!0});var E=g(t);l=S(E,"ID"),E.forEach(v),i=C(f),_=b(f,"DIV",{class:!0});var q=g(_);k=S(q,"Last Accessed"),q.forEach(v),$=C(f),w=b(f,"DIV",{class:!0});var y=g(w);D=S(y,"Workflow Table Handler"),y.forEach(v),x=C(f),h=b(f,"DIV",{class:!0});var K=g(h);V=S(K,"Activity Handler"),K.forEach(v),f.forEach(v),m=C(o),u&&u.l(o),o.forEach(v),this.h()},h(){I(t,"class","w-3/12 text-left"),I(_,"class","w-3/12 text-left"),I(w,"class","w-3/12 text-left"),I(h,"class","w-2/12 text-left"),I(s,"class","bg-gray-200 flex flex-row p-2"),I(e,"class","flex flex-col border-2 border-gray-300 w-full rounded-lg")},m(d,o){ie(d,e,o),a(e,s),a(s,t),a(t,l),a(s,i),a(s,_),a(_,k),a(s,$),a(s,w),a(w,D),a(s,x),a(s,h),a(h,V),a(e,m),u&&u.m(e,null),p=!0},p(d,[o]){u&&u.p&&(!p||o&1)&&de(u,O,d,d[0],p?me(O,d[0],o,null):pe(d[0]),null)},i(d){p||(A(u,d),p=!0)},o(d){Q(u,d),p=!1},d(d){d&&v(e),u&&u.d(d)}}}function ke(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=i=>{"$$scope"in i&&s(0,l=i.$$scope)},[l,t]}class Qe extends ne{constructor(e){super();oe(this,e,ke,ve,ce,{})}}function $e(r){let e,s;return e=new R({props:{icon:ue,color:"black"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function he(r){let e,s;return e=new R({props:{icon:fe,color:"blue"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Te(r){let e,s;return e=new R({props:{icon:ue,color:"black"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function be(r){let e,s;return e=new R({props:{icon:fe,color:"blue"}}),{c(){Y(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p:B,i(t){s||(A(e.$$.fragment,t),s=!0)},o(t){Q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function ge(r){let e,s,t=r[0].identity+"",l,i,_,k,$,w=re(r[0].lastAccessTime)+"",D,x,h,V,m,p,O,u,d,o,f,E;const q=[he,$e],y=[];function K(c,n){return n&1&&(V=null),V==null&&(V=!!c[0].taskQueueTypes.includes("WORKFLOW")),V?0:1}m=K(r,-1),p=y[m]=q[m](r);const z=[be,Te],W=[];function G(c,n){return n&1&&(d=null),d==null&&(d=!!c[0].taskQueueTypes.includes("ACTIVITY")),d?0:1}return o=G(r,-1),f=W[o]=z[o](r),{c(){e=T("article"),s=T("div"),l=H(t),i=P(),_=T("div"),k=T("h3"),$=T("p"),D=H(w),x=P(),h=T("div"),p.c(),O=P(),u=T("div"),f.c(),this.h()},l(c){e=b(c,"ARTICLE",{class:!0});var n=g(e);s=b(n,"DIV",{class:!0});var L=g(s);l=S(L,t),L.forEach(v),i=C(n),_=b(n,"DIV",{class:!0});var F=g(_);k=b(F,"H3",{});var J=g(k);$=b(J,"P",{});var U=g($);D=S(U,w),U.forEach(v),J.forEach(v),F.forEach(v),x=C(n),h=b(n,"DIV",{class:!0});var X=g(h);p.l(X),X.forEach(v),O=C(n),u=b(n,"DIV",{class:!0});var Z=g(u);f.l(Z),Z.forEach(v),n.forEach(v),this.h()},h(){I(s,"class","links w-3/12 text-left"),I(_,"class","links w-3/12 text-left"),I(h,"class","w-3/12 text-left"),I(u,"class","w-3/12 text-left"),I(e,"class","w-full h-full flex flex-row border-b-2 last:border-b-0 no-underline p-2")},m(c,n){ie(c,e,n),a(e,s),a(s,l),a(e,i),a(e,_),a(_,k),a(k,$),a($,D),a(e,x),a(e,h),y[m].m(h,null),a(e,O),a(e,u),W[o].m(u,null),E=!0},p(c,[n]){(!E||n&1)&&t!==(t=c[0].identity+"")&&se(l,t),(!E||n&1)&&w!==(w=re(c[0].lastAccessTime)+"")&&se(D,w);let L=m;m=K(c,n),m===L?y[m].p(c,n):(le(),Q(y[L],1,1,()=>{y[L]=null}),ae(),p=y[m],p?p.p(c,n):(p=y[m]=q[m](c),p.c()),A(p,1),p.m(h,null));let F=o;o=G(c,n),o===F?W[o].p(c,n):(le(),Q(W[F],1,1,()=>{W[F]=null}),ae(),f=W[o],f?f.p(c,n):(f=W[o]=z[o](c),f.c()),A(f,1),f.m(u,null))},i(c){E||(A(p),A(f),E=!0)},o(c){Q(p),Q(f),E=!1},d(c){c&&v(e),y[m].d(),W[o].d()}}}function we(r,e,s){let{poller:t}=e;return r.$$set=l=>{"poller"in l&&s(0,t=l.poller)},[t]}class De extends ne{constructor(e){super();oe(this,e,we,ge,ce,{poller:0})}}export{Qe as W,De as a,Ae as g}; diff --git a/server/generated/ui/_app/chunks/workflow-status-3e3f99a8.js b/server/generated/ui/_app/chunks/workflow-status-15cd5fff.js similarity index 98% rename from server/generated/ui/_app/chunks/workflow-status-3e3f99a8.js rename to server/generated/ui/_app/chunks/workflow-status-15cd5fff.js index f9702470b6..9435e16343 100644 --- a/server/generated/ui/_app/chunks/workflow-status-3e3f99a8.js +++ b/server/generated/ui/_app/chunks/workflow-status-15cd5fff.js @@ -1 +1 @@ -var C=Object.defineProperty,q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var w=(t,e,n)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y=(t,e)=>{for(var n in e||(e={}))b.call(e,n)&&w(t,n,e[n]);if(m)for(var n of m(e))D.call(e,n)&&w(t,n,e[n]);return t},h=(t,e)=>q(t,W(e));import{r as T,a as _}from"./route-for-api-90d9e1db.js";import{am as E,an as K,ao as F,S as N,i as P,s as $,e as j,t as O,c as Q,a as R,h as L,d as k,b as x,a6 as p,g as v,L as B,j as V,T as g}from"./vendor-b58bb848.js";const z=(t=[])=>t.map(e=>{const n=`pending-${e.activityId}`;return h(y({},e),{id:n})}),I=t=>{var f,d;const e=t.workflowExecutionInfo.type.name,n=t.workflowExecutionInfo.execution.workflowId,s=t.workflowExecutionInfo.execution.runId,r=String(t.workflowExecutionInfo.startTime),o=String(t.workflowExecutionInfo.closeTime),i=t.workflowExecutionInfo.status,a=t.workflowExecutionInfo.historyLength,u=`/workflows/${n}/${s}`,l=(d=(f=t==null?void 0:t.executionConfig)==null?void 0:f.taskQueue)==null?void 0:d.name,c=z(t.pendingActivities);return{name:e,id:n,runId:s,startTime:r,endTime:o,status:i,historyEvents:a,url:u,taskQueue:l,pendingActivities:c}},G=t=>(t.executions||[]).map(e=>I({workflowExecutionInfo:e})),S=["years","months","weeks","days","hours","minutes","seconds"],dt=["10 minutes","60 minutes","3 hours","24 hours","3 days","7 days","30 days","90 days"],A=new RegExp(`(\\d+)\\s(${S.join("|")})`),H=t=>{if(typeof t!="string")return!1;for(const e of S)if(e===t)return!0;return!1},J=t=>{if(t===null||typeof t!="object")return!1;for(const e of Object.keys(t))if(!H(e))return!1;return!0},M=t=>{if(t===null||typeof t!="string")return!1;const e=t.match(A);if(!e)return!1;const[,n,s]=e;return!!n&&!!s},U=t=>{const[,e,n]=t.match(A);return{[n]:parseInt(e,10)}},X=t=>{const e=typeof t=="string"?U(t):t;return E(K(new Date,e))},Y=()=>E(F(new Date,{hours:24})),Z={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},tt=["workflowId","workflowType","timeRange","executionStatus","closeTime"],et=t=>!(t===null||t===void 0||typeof t=="string"&&t==="undefined"),nt=t=>{if(typeof t!="string")return!1;for(const e of tt)if(e===t)return!0;return!1},ot=(t,e)=>{const n=Z[t];return J(e)||M(e)?`${n} BETWEEN "${X(e)}" AND "${Y()}"`:`${n}="${e}"`},rt=t=>Object.entries(t).map(([e,n])=>{if(nt(e)&&et(n))return ot(e,n)}).filter(Boolean),st=t=>rt(t).join(" and "),it=async(t,e,n=fetch,s=!1)=>{var c;const r=e.query||st(e),o=s?"workflows.archived":"workflows";let i,a;e.query&&(i=f=>{a=f.body.message});const{executions:u,nextPageToken:l}=(c=await T(_(o,{namespace:t}),{params:{query:r},onError:i,request:n}))!=null?c:{executions:[],nextPageToken:""};return{workflows:G({executions:u}),nextPageToken:String(l),error:a}},mt=async(t,e,n=fetch)=>it(t,e,n,!0);async function wt(t,e=fetch){return T(_("workflow",t),{request:e}).then(I)}function at(t){let e,n,s;return{c(){e=j("span"),n=O(t[0]),this.h()},l(r){e=Q(r,"SPAN",{class:!0});var o=R(e);n=L(o,t[0]),o.forEach(k),this.h()},h(){x(e,"class",s=p(`${t[1]} rounded-md text-center px-2 text-sm`)+" svelte-xqpq4y")},m(r,o){v(r,e,o),B(e,n)},p(r,[o]){o&1&&V(n,r[0]),o&2&&s!==(s=p(`${r[1]} rounded-md text-center px-2 text-sm`)+" svelte-xqpq4y")&&x(e,"class",s)},i:g,o:g,d(r){r&&k(e)}}}function ut(t,e,n){let s,r,{status:o}=e;const i={Running:"Running",TimedOut:"Timed Out",Completed:"Completed",Failed:"Failed",ContinuedAsNew:"Continued as New",Canceled:"Canceled",Terminated:"Terminated"},a={Running:"blue",TimedOut:"red",Completed:"green",Failed:"red",ContinuedAsNew:"indigo",Canceled:"yellow",Terminated:"pink"};return t.$$set=u=>{"status"in u&&n(2,o=u.status)},t.$$.update=()=>{t.$$.dirty&4&&n(1,s=a[o]),t.$$.dirty&4&&n(0,r=i[o])},[r,s,o]}class yt extends N{constructor(e){super();P(this,e,ut,at,$,{status:2})}}export{yt as W,wt as a,mt as b,dt as d,it as f}; +var C=Object.defineProperty,q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var w=(t,e,n)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y=(t,e)=>{for(var n in e||(e={}))b.call(e,n)&&w(t,n,e[n]);if(m)for(var n of m(e))D.call(e,n)&&w(t,n,e[n]);return t},h=(t,e)=>q(t,W(e));import{r as T,a as _}from"./route-for-api-46069891.js";import{am as E,an as K,ao as F,S as N,i as P,s as $,e as j,t as O,c as Q,a as R,h as L,d as k,b as x,a6 as p,g as v,L as B,j as V,T as g}from"./vendor-b58bb848.js";const z=(t=[])=>t.map(e=>{const n=`pending-${e.activityId}`;return h(y({},e),{id:n})}),I=t=>{var f,d;const e=t.workflowExecutionInfo.type.name,n=t.workflowExecutionInfo.execution.workflowId,s=t.workflowExecutionInfo.execution.runId,r=String(t.workflowExecutionInfo.startTime),o=String(t.workflowExecutionInfo.closeTime),i=t.workflowExecutionInfo.status,a=t.workflowExecutionInfo.historyLength,u=`/workflows/${n}/${s}`,l=(d=(f=t==null?void 0:t.executionConfig)==null?void 0:f.taskQueue)==null?void 0:d.name,c=z(t.pendingActivities);return{name:e,id:n,runId:s,startTime:r,endTime:o,status:i,historyEvents:a,url:u,taskQueue:l,pendingActivities:c}},G=t=>(t.executions||[]).map(e=>I({workflowExecutionInfo:e})),S=["years","months","weeks","days","hours","minutes","seconds"],dt=["10 minutes","60 minutes","3 hours","24 hours","3 days","7 days","30 days","90 days"],A=new RegExp(`(\\d+)\\s(${S.join("|")})`),H=t=>{if(typeof t!="string")return!1;for(const e of S)if(e===t)return!0;return!1},J=t=>{if(t===null||typeof t!="object")return!1;for(const e of Object.keys(t))if(!H(e))return!1;return!0},M=t=>{if(t===null||typeof t!="string")return!1;const e=t.match(A);if(!e)return!1;const[,n,s]=e;return!!n&&!!s},U=t=>{const[,e,n]=t.match(A);return{[n]:parseInt(e,10)}},X=t=>{const e=typeof t=="string"?U(t):t;return E(K(new Date,e))},Y=()=>E(F(new Date,{hours:24})),Z={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},tt=["workflowId","workflowType","timeRange","executionStatus","closeTime"],et=t=>!(t===null||t===void 0||typeof t=="string"&&t==="undefined"),nt=t=>{if(typeof t!="string")return!1;for(const e of tt)if(e===t)return!0;return!1},ot=(t,e)=>{const n=Z[t];return J(e)||M(e)?`${n} BETWEEN "${X(e)}" AND "${Y()}"`:`${n}="${e}"`},rt=t=>Object.entries(t).map(([e,n])=>{if(nt(e)&&et(n))return ot(e,n)}).filter(Boolean),st=t=>rt(t).join(" and "),it=async(t,e,n=fetch,s=!1)=>{var c;const r=e.query||st(e),o=s?"workflows.archived":"workflows";let i,a;e.query&&(i=f=>{a=f.body.message});const{executions:u,nextPageToken:l}=(c=await T(_(o,{namespace:t}),{params:{query:r},onError:i,request:n}))!=null?c:{executions:[],nextPageToken:""};return{workflows:G({executions:u}),nextPageToken:String(l),error:a}},mt=async(t,e,n=fetch)=>it(t,e,n,!0);async function wt(t,e=fetch){return T(_("workflow",t),{request:e}).then(I)}function at(t){let e,n,s;return{c(){e=j("span"),n=O(t[0]),this.h()},l(r){e=Q(r,"SPAN",{class:!0});var o=R(e);n=L(o,t[0]),o.forEach(k),this.h()},h(){x(e,"class",s=p(`${t[1]} rounded-md text-center px-2 text-sm`)+" svelte-xqpq4y")},m(r,o){v(r,e,o),B(e,n)},p(r,[o]){o&1&&V(n,r[0]),o&2&&s!==(s=p(`${r[1]} rounded-md text-center px-2 text-sm`)+" svelte-xqpq4y")&&x(e,"class",s)},i:g,o:g,d(r){r&&k(e)}}}function ut(t,e,n){let s,r,{status:o}=e;const i={Running:"Running",TimedOut:"Timed Out",Completed:"Completed",Failed:"Failed",ContinuedAsNew:"Continued as New",Canceled:"Canceled",Terminated:"Terminated"},a={Running:"blue",TimedOut:"red",Completed:"green",Failed:"red",ContinuedAsNew:"indigo",Canceled:"yellow",Terminated:"pink"};return t.$$set=u=>{"status"in u&&n(2,o=u.status)},t.$$.update=()=>{t.$$.dirty&4&&n(1,s=a[o]),t.$$.dirty&4&&n(0,r=i[o])},[r,s,o]}class yt extends N{constructor(e){super();P(this,e,ut,at,$,{status:2})}}export{yt as W,wt as a,mt as b,dt as d,it as f}; diff --git a/server/generated/ui/_app/manifest.json b/server/generated/ui/_app/manifest.json index c9132c649b..5834d946ab 100644 --- a/server/generated/ui/_app/manifest.json +++ b/server/generated/ui/_app/manifest.json @@ -1,6 +1,6 @@ { ".svelte-kit/runtime/client/start.js": { - "file": "start-39eaac60.js", + "file": "start-aa505e82.js", "src": ".svelte-kit/runtime/client/start.js", "isEntry": true, "imports": [ @@ -38,13 +38,13 @@ ] }, "src/routes/__layout.svelte": { - "file": "pages/__layout.svelte-c5ead779.js", + "file": "pages/__layout.svelte-20502bfc.js", "src": "src/routes/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_namespace-0cacc6ef.js", "_select-5b8ec3d3.js", @@ -124,17 +124,17 @@ ] }, "src/routes/namespaces/[namespace]/workflows/index.svelte": { - "file": "pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js", + "file": "pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js", "src": "src/routes/namespaces/[namespace]/workflows/index.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_workflow-status-3e3f99a8.js", - "__workflows-loading-ad4694f3.js", + "_workflow-status-15cd5fff.js", + "__workflows-loading-3836208a.js", "_empty-state-a54f1d18.js", "_pagination-ac5deabd.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js", "_format-date-47255ab2.js", @@ -152,16 +152,16 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/__layout.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_workflow-status-3e3f99a8.js", + "_workflow-status-15cd5fff.js", "_navigation-093db9e2.js", "_route-for-11851a4f.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_button-131351bb.js", "_stores-71c7b9ff.js", @@ -182,29 +182,29 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_query-service-3d3380f9.js", + "_query-service-a89500ff.js", "_code-block-a24f68a3.js", "_button-131351bb.js", "_empty-state-a54f1d18.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js" ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/history/__layout.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/history/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_data-converter-config-851e08df.js", "_is-event-type-6f6767d3.js", "_route-for-11851a4f.js", @@ -359,32 +359,32 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/workers.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/workers.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_workers-row-c83ee16c.js", + "_workers-row-7bc8cde3.js", "_empty-state-a54f1d18.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js", "_format-date-47255ab2.js" ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/query.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/query.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_query-service-3d3380f9.js", + "_query-service-a89500ff.js", "_code-block-a24f68a3.js", "_filter-select-724bff2f.js", "_select-5b8ec3d3.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js", "_navigation-093db9e2.js", @@ -394,17 +394,17 @@ ] }, "src/routes/namespaces/[namespace]/archival/index.svelte": { - "file": "pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js", + "file": "pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js", "src": "src/routes/namespaces/[namespace]/archival/index.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_workflow-status-3e3f99a8.js", - "__workflows-loading-ad4694f3.js", + "_workflow-status-15cd5fff.js", + "__workflows-loading-3836208a.js", "_empty-state-a54f1d18.js", "_code-block-a24f68a3.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js", "_format-date-47255ab2.js", @@ -419,15 +419,15 @@ ] }, "src/routes/namespaces/[namespace]/workers/[queue]/__layout.svelte": { - "file": "pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js", + "file": "pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js", "src": "src/routes/namespaces/[namespace]/workers/[queue]/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_vendor-b58bb848.js", - "_workers-row-c83ee16c.js", + "_workers-row-7bc8cde3.js", "_empty-state-a54f1d18.js", - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_notifications-c07f99ce.js", "_is-network-error-ac7c8caf.js", "_format-date-47255ab2.js" @@ -457,8 +457,8 @@ "_vendor-b58bb848.js" ] }, - "_route-for-api-90d9e1db.js": { - "file": "chunks/route-for-api-90d9e1db.js", + "_route-for-api-46069891.js": { + "file": "chunks/route-for-api-46069891.js", "imports": [ "_vendor-b58bb848.js", "_notifications-c07f99ce.js", @@ -523,23 +523,23 @@ "_route-for-11851a4f.js": { "file": "chunks/route-for-11851a4f.js" }, - "_workflow-status-3e3f99a8.js": { - "file": "chunks/workflow-status-3e3f99a8.js", + "_workflow-status-15cd5fff.js": { + "file": "chunks/workflow-status-15cd5fff.js", "imports": [ - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_vendor-b58bb848.js" ], "css": [ "assets/workflow-status-c8a5c750.css" ] }, - "__workflows-loading-ad4694f3.js": { - "file": "chunks/_workflows-loading-ad4694f3.js", + "__workflows-loading-3836208a.js": { + "file": "chunks/_workflows-loading-3836208a.js", "imports": [ "_vendor-b58bb848.js", "_format-date-47255ab2.js", "_namespace-0cacc6ef.js", - "_workflow-status-3e3f99a8.js", + "_workflow-status-15cd5fff.js", "_route-for-11851a4f.js", "_stores-71c7b9ff.js", "_navigation-093db9e2.js", @@ -595,10 +595,10 @@ "assets/button-7e73ad23.css" ] }, - "_query-service-3d3380f9.js": { - "file": "chunks/query-service-3d3380f9.js", + "_query-service-a89500ff.js": { + "file": "chunks/query-service-a89500ff.js", "imports": [ - "_route-for-api-90d9e1db.js" + "_route-for-api-46069891.js" ] }, "_code-block-a24f68a3.js": { @@ -638,10 +638,10 @@ "_code-block-a24f68a3.js" ] }, - "_workers-row-c83ee16c.js": { - "file": "chunks/workers-row-c83ee16c.js", + "_workers-row-7bc8cde3.js": { + "file": "chunks/workers-row-7bc8cde3.js", "imports": [ - "_route-for-api-90d9e1db.js", + "_route-for-api-46069891.js", "_vendor-b58bb848.js", "_format-date-47255ab2.js" ] diff --git a/server/generated/ui/_app/pages/__layout.svelte-20502bfc.js b/server/generated/ui/_app/pages/__layout.svelte-20502bfc.js new file mode 100644 index 0000000000..060bf8f1f8 --- /dev/null +++ b/server/generated/ui/_app/pages/__layout.svelte-20502bfc.js @@ -0,0 +1,3 @@ +import{D as Pe,S as H,i as K,s as W,F as Fe,G as Ge,e as v,w as D,c as b,a as y,x as L,d as f,b as m,g as N,y as S,H as ze,q as g,o as k,B as C,I as j,l as q,n as Z,p as x,J as He,t as F,h as G,j as ee,K as le,k as U,m as M,L as p,M as se,N as oe,O as ae,P as X,Q as me,R as de,T as z,U as ve,V as fe,W as ce,X as Ke,Y as We,Z as Qe,_ as Ye,$ as Je,a0 as Xe,a1 as Ze,a2 as xe,a3 as et,a4 as tt,a5 as rt,a6 as be,a7 as ke,a8 as we,a9 as nt,aa as lt,r as st}from"../chunks/vendor-b58bb848.js";import{r as ie,a as ue,n as re}from"../chunks/route-for-api-46069891.js";import{n as ne}from"../chunks/notifications-c07f99ce.js";import{n as Ve}from"../chunks/namespace-0cacc6ef.js";import{S as ot,O as Oe}from"../chunks/select-5b8ec3d3.js";import{g as _e}from"../chunks/navigation-093db9e2.js";import{g as at}from"../chunks/get-context-1ac24eef.js";import{d as ct,l as it,p as ut}from"../chunks/data-converter-config-851e08df.js";import{p as Ue}from"../chunks/stores-71c7b9ff.js";import{E as ft}from"../chunks/error-a678593b.js";import"../chunks/is-network-error-ac7c8caf.js";import"../chunks/singletons-a6a7384f.js";function Me(){return"local"}const ye=["local","cloud"],_t=l=>()=>{const e=Me(),t=`Valid options: ${ye.join(", ")}.`;if(!ye.includes(e))throw new Error(`Invalid VITE_TEMPORAL_UI_BUILD_TARGET. You provided: ${e}. ${t}`);return l()},pe=_t(()=>Me()==="cloud"),mt=async(l=fetch)=>await ie(ue("cluster"),{request:l}),Re=Pe({}),dt=async()=>{if(pe())return Promise.resolve();const l=await mt();Re.set(l)},pt=async(l=fetch)=>{const e=await ie(ue("user"),{request:l});return{name:e==null?void 0:e.Name,email:e==null?void 0:e.Email,picture:e==null?void 0:e.Picture}},qe=Pe(null),ht=async()=>{const l=await pt();qe.set(l)},$t=async(l=fetch)=>{var t,r;const e=await ie(ue("settings"),{request:l});return{auth:{enabled:!!((t=e==null?void 0:e.Auth)==null?void 0:t.Enabled),options:(r=e==null?void 0:e.Auth)==null?void 0:r.Options},defaultNamespace:(e==null?void 0:e.DefaultNamespace)||"default"}};function Ee(l,e,t){const r=l.slice();return r[6]=e[t],r}function gt(l){let e,t,r=l[1],n=[];for(let o=0;ok(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oGe(t,"value",s)),t.$on("change",l[2]),{c(){e=v("div"),D(t.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=y(e);L(t.$$.fragment,a),a.forEach(f),this.h()},h(){m(e,"class","w-full")},m(c,a){N(c,e,a),S(t,e,null),n=!0},p(c,[a]){const i={};a&515&&(i.$$scope={dirty:a,ctx:c}),!r&&a&1&&(r=!0,i.value=c[0],ze(()=>r=!1)),t.$set(i)},i(c){n||(g(t.$$.fragment,c),n=!0)},o(c){k(t.$$.fragment,c),n=!1},d(c){c&&f(e),C(t)}}}function Et(l,e,t){let r,n,s;j(l,Ve,i=>t(4,s=i));var o;function c(){_e("/namespaces/"+n)}function a(i){n=i,t(0,n),t(4,s)}return l.$$.update=()=>{l.$$.dirty&8&&t(1,r=(t(3,o=at("namespaces"))!==null&&o!==void 0?o:[]).map(i=>{var u,_;return(_=(u=i==null?void 0:i.namespaceInfo)===null||u===void 0?void 0:u.name)!==null&&_!==void 0?_:void 0}).filter(i=>i)),l.$$.dirty&16&&t(0,n=s)},[n,r,c,o,s,a]}class It extends H{constructor(e){super();K(this,e,Et,yt,W,{})}}function Nt(l){let e,t,r,n,s,o,c;const a=l[2].default,i=le(a,l,l[1],null);return{c(){e=v("div"),i&&i.c(),t=U(),r=v("div"),n=v("div"),s=v("span"),o=F(l[0]),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=y(e);i&&i.l(_),t=M(_),r=b(_,"DIV",{class:!0});var d=y(r);n=b(d,"DIV",{class:!0});var w=y(n);s=b(w,"SPAN",{class:!0});var $=y(s);o=G($,l[0]),$.forEach(f),w.forEach(f),d.forEach(f),_.forEach(f),this.h()},h(){m(s,"class","text-gray-100"),m(n,"class","bg-gray-800 inline-block px-2 py-2 rounded-lg"),m(r,"class","tooltip svelte-za0ex9"),m(e,"class","wrapper relative inline-block svelte-za0ex9")},m(u,_){N(u,e,_),i&&i.m(e,null),p(e,t),p(e,r),p(r,n),p(n,s),p(s,o),c=!0},p(u,[_]){i&&i.p&&(!c||_&2)&&se(i,a,u,u[1],c?ae(a,u[1],_,null):oe(u[1]),null),(!c||_&1)&&ee(o,u[0])},i(u){c||(g(i,u),c=!0)},o(u){k(i,u),c=!1},d(u){u&&f(e),i&&i.d(u)}}}function At(l,e,t){let{$$slots:r={},$$scope:n}=e,{text:s=""}=e;return l.$$set=o=>{"text"in o&&t(0,s=o.text),"$$scope"in o&&t(1,n=o.$$scope)},[s,n,r]}class he extends H{constructor(e){super();K(this,e,At,Nt,W,{text:0})}}function Ne(l){let e,t,r,n;const s=[Lt,Dt,Tt],o=[];function c(a,i){return a[1]==="notRequested"?0:a[1]==="error"?1:a[1]==="success"?2:-1}return~(e=c(l))&&(t=o[e]=s[e](l)),{c(){t&&t.c(),r=q()},l(a){t&&t.l(a),r=q()},m(a,i){~e&&o[e].m(a,i),N(a,r,i),n=!0},p(a,i){let u=e;e=c(a),e===u?~e&&o[e].p(a,i):(t&&(Z(),k(o[u],1,1,()=>{o[u]=null}),x()),~e?(t=o[e],t?t.p(a,i):(t=o[e]=s[e](a),t.c()),g(t,1),t.m(r.parentNode,r)):t=null)},i(a){n||(g(t),n=!0)},o(a){k(t),n=!1},d(a){~e&&o[e].d(a),a&&f(r)}}}function Tt(l){let e,t;return e=new he({props:{text:"Data converter succesfully converted content",$$slots:{default:[St]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function Dt(l){let e,t;return e=new he({props:{text:"Data converter couldn't connect to the remote converter",$$slots:{default:[Ct]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function Lt(l){let e,t;return e=new he({props:{text:"Data converter is configured",$$slots:{default:[Bt]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function St(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-blue-200 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-blue-200 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=U(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Ct(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-red-400 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-red-400 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=U(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Bt(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-blue-200 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-blue-200 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=U(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Pt(l){let e,t,r=l[0]&&Ne(l);return{c(){r&&r.c(),e=q()},l(n){r&&r.l(n),e=q()},m(n,s){r&&r.m(n,s),N(n,e,s),t=!0},p(n,[s]){n[0]?r?(r.p(n,s),s&1&&g(r,1)):(r=Ne(n),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(Z(),k(r,1,1,()=>{r=null}),x())},i(n){t||(g(r),t=!0)},o(n){k(r),t=!1},d(n){r&&r.d(n),n&&f(e)}}}function Vt(l,e,t){let r,n;return j(l,ct,s=>t(0,r=s)),j(l,it,s=>t(1,n=s)),[r,n]}class Ot extends H{constructor(e){super();K(this,e,Vt,Pt,W,{})}}const Ae=l=>{const e=l==null?void 0:l.indexOf("?");return e>-1?l.slice(0,e):l},Ut=(l,e,t=!1)=>{const r=Ae(l).split("/"),n=Ae(e).split("/");if(t&&r.length!==n.length)return!1;for(let s=0;st(2,n=a));let{$$slots:s={},$$scope:o}=e,{href:c}=e;return l.$$set=a=>{"href"in a&&t(0,c=a.href),"$$scope"in a&&t(3,o=a.$$scope)},l.$$.update=()=>{l.$$.dirty&5&&t(1,r=Ut(c,n.url.pathname))},[c,r,n,o,s]}class Te extends H{constructor(e){super();K(this,e,Rt,Mt,W,{href:0})}}function qt(l){let e;return{c(){e=F("Workflows")},l(t){e=G(t,"Workflows")},m(t,r){N(t,e,r)},d(t){t&&f(e)}}}function jt(l){let e;return{c(){e=F("Archival")},l(t){e=G(t,"Archival")},m(t,r){N(t,e,r)},d(t){t&&f(e)}}}function De(l){let e;function t(s,o){var c;return((c=s[3])==null?void 0:c.email)?Gt:Ft}let r=t(l),n=r(l);return{c(){n.c(),e=q()},l(s){n.l(s),e=q()},m(s,o){n.m(s,o),N(s,e,o)},p(s,o){r===(r=t(s))&&n?n.p(s,o):(n.d(1),n=r(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){n.d(s),s&&f(e)}}}function Ft(l){let e,t,r,n;return{c(){e=v("button"),t=F("Login"),this.h()},l(s){e=b(s,"BUTTON",{class:!0});var o=y(e);t=G(o,"Login"),o.forEach(f),this.h()},h(){m(e,"class","header-button svelte-1wxl72y")},m(s,o){N(s,e,o),p(e,t),r||(n=ce(e,"click",l[7]),r=!0)},p:z,d(s){s&&f(e),r=!1,n()}}}function Gt(l){let e,t,r,n,s,o;return{c(){e=v("button"),t=F(`Logout + `),r=v("img"),this.h()},l(c){e=b(c,"BUTTON",{class:!0});var a=y(e);t=G(a,`Logout + `),r=b(a,"IMG",{src:!0,alt:!0,class:!0}),a.forEach(f),this.h()},h(){fe(r.src,n=l[3].picture)||m(r,"src",n),m(r,"alt","User Avatar"),m(r,"class","rounded-full h-6 w-6 ml-2.5"),m(e,"class","header-button min-w-min svelte-1wxl72y")},m(c,a){N(c,e,a),p(e,t),p(e,r),s||(o=ce(e,"click",l[6]),s=!0)},p(c,a){a&8&&!fe(r.src,n=c[3].picture)&&m(r,"src",n)},d(c){c&&f(e),s=!1,o()}}}function zt(l){let e,t,r,n,s,o,c,a,i,u,_,d,w,$,T,h,I,R,A,P,V;c=new It({}),u=new Te({props:{href:`/namespaces/${l[2]}/workflows`,$$slots:{default:[qt]},$$scope:{ctx:l}}}),d=new Te({props:{href:`/namespaces/${l[2]}/archival`,$$slots:{default:[jt]},$$scope:{ctx:l}}}),h=new Ot({});let B=l[0].auth.enabled&&De(l);return{c(){e=v("header"),t=v("div"),r=v("a"),n=v("img"),o=U(),D(c.$$.fragment),a=U(),i=v("div"),D(u.$$.fragment),_=U(),D(d.$$.fragment),w=U(),$=v("div"),T=v("div"),D(h.$$.fragment),I=U(),R=v("a"),A=F("Report Bug/Give Feedback"),P=U(),B&&B.c(),this.h()},l(E){e=b(E,"HEADER",{class:!0});var O=y(e);t=b(O,"DIV",{class:!0});var Q=y(t);r=b(Q,"A",{href:!0,class:!0});var Y=y(r);n=b(Y,"IMG",{src:!0,alt:!0,class:!0}),Y.forEach(f),o=M(Q),L(c.$$.fragment,Q),Q.forEach(f),a=M(O),i=b(O,"DIV",{class:!0});var te=y(i);L(u.$$.fragment,te),_=M(te),L(d.$$.fragment,te),te.forEach(f),w=M(O),$=b(O,"DIV",{class:!0});var J=y($);T=b(J,"DIV",{class:!0});var $e=y(T);L(h.$$.fragment,$e),$e.forEach(f),I=M(J),R=b(J,"A",{class:!0,href:!0});var ge=y(R);A=G(ge,"Report Bug/Give Feedback"),ge.forEach(f),P=M(J),B&&B.l(J),J.forEach(f),O.forEach(f),this.h()},h(){fe(n.src,s="/logo.svg")||m(n,"src",s),m(n,"alt","Temporal Logo"),m(n,"class","max-h-10"),m(r,"href","/"),m(r,"class","block"),m(t,"class","flex gap-4 col-span-3"),m(i,"class","flex gap-4 col-span-4"),m(T,"class","text-right"),m(R,"class","header-button svelte-1wxl72y"),m(R,"href","https://github.com/temporalio/ui/issues/new/choose"),m($,"class","flex justify-end gap-4 col-span-5 col-end-13 items-center"),m(e,"class","grid grid-rows-1 grid-cols-12 px-10 items-center bg-gray-900 shadow-lg gap-6")},m(E,O){N(E,e,O),p(e,t),p(t,r),p(r,n),p(t,o),S(c,t,null),p(e,a),p(e,i),S(u,i,null),p(i,_),S(d,i,null),p(e,w),p(e,$),p($,T),S(h,T,null),p($,I),p($,R),p(R,A),p($,P),B&&B.m($,null),V=!0},p(E,[O]){const Q={};O&4&&(Q.href=`/namespaces/${E[2]}/workflows`),O&256&&(Q.$$scope={dirty:O,ctx:E}),u.$set(Q);const Y={};O&4&&(Y.href=`/namespaces/${E[2]}/archival`),O&256&&(Y.$$scope={dirty:O,ctx:E}),d.$set(Y),E[0].auth.enabled?B?B.p(E,O):(B=De(E),B.c(),B.m($,null)):B&&(B.d(1),B=null)},i(E){V||(g(c.$$.fragment,E),g(u.$$.fragment,E),g(d.$$.fragment,E),g(h.$$.fragment,E),V=!0)},o(E){k(c.$$.fragment,E),k(u.$$.fragment,E),k(d.$$.fragment,E),k(h.$$.fragment,E),V=!1},d(E){E&&f(e),C(c),C(u),C(d),C(h),B&&B.d()}}}function Ht(l,e,t){let r,n,s,o;j(l,Ue,_=>t(5,n=_)),j(l,Ve,_=>t(2,s=_)),j(l,qe,_=>t(3,o=_));var c;let a="";const i=()=>_e("/auth/logout"),u=()=>_e(a);return l.$$.update=()=>{if(l.$$.dirty&32&&t(0,r=n.stuff.settings),l.$$.dirty&49){const _=(t(4,c=r.auth.options)!==null&&c!==void 0?c:[]).filter(d=>!!n.url.searchParams.get(d)).map(d=>`&${d}=${n.url.searchParams.get(d)}`).join("");t(1,a="/auth/sso?"+encodeURI(_))}},[r,a,s,o,c,n,i,u]}class Kt extends H{constructor(e){super();K(this,e,Ht,zt,W,{})}}function Le(l,e,t){const r=l.slice();return r[4]=e[t],r}function Se(l,e){let t,r,n=e[4].message+"",s,o,c,a,i,u,_=z,d,w,$;function T(){return e[3](e[4])}return{key:l,first:null,c(){t=v("article"),r=v("p"),s=F(n),o=U(),this.h()},l(h){t=b(h,"ARTICLE",{class:!0});var I=y(t);r=b(I,"P",{});var R=y(r);s=G(R,n),R.forEach(f),o=M(I),I.forEach(f),this.h()},h(){m(t,"class",c="px-8 py-6 mb-4 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"),this.first=t},m(h,I){N(h,t,I),p(t,r),p(r,s),p(t,o),d=!0,w||($=ce(t,"click",T),w=!0)},p(h,I){e=h,(!d||I&1)&&n!==(n=e[4].message+"")&&ee(s,n),(!d||I&1&&c!==(c="px-8 py-6 mb-4 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"))&&m(t,"class",c)},r(){u=t.getBoundingClientRect()},f(){Ke(t),_(),We(t,u)},a(){_(),_=Qe(t,u,et,{})},i(h){d||(Ye(()=>{i&&i.end(1),a=Je(t,e[2],{key:e[4].id}),a.start()}),d=!0)},o(h){a&&a.invalidate(),i=Xe(t,e[1],{key:e[4].id}),d=!1},d(h){h&&f(t),h&&i&&i.end(),w=!1,$()}}}function Wt(l){let e,t=[],r=new Map,n,s=l[0];const o=c=>c[4].id;for(let c=0;ct(0,r=c));const[n,s]=xe({duration:c=>Math.sqrt(c*100),fallback(c){const a=getComputedStyle(c),i=a.transform==="none"?"":a.transform;return{duration:600,easing:rt,css:u=>`transform: ${i} scale(${u}); opacity: ${u}`}}});return[r,n,s,c=>ne.dismiss(c.id)]}class Yt extends H{constructor(e){super();K(this,e,Qt,Wt,W,{})}}const je=ut("closedBannerId",null),Jt=l=>{je.set(l)};function Ce(l){let e,t,r,n,s,o,c,a,i,u;return{c(){e=v("section"),t=v("a"),r=F(l[3]),s=U(),o=v("button"),c=F("\u2715"),this.h()},l(_){e=b(_,"SECTION",{class:!0});var d=y(e);t=b(d,"A",{href:!0,target:!0});var w=y(t);r=G(w,l[3]),w.forEach(f),s=M(d),o=b(d,"BUTTON",{class:!0});var $=y(o);c=G($,"\u2715"),$.forEach(f),d.forEach(f),this.h()},h(){m(t,"href",n="https://github.com/temporalio/temporal/releases/tag/v"+l[2].versionInfo.current.version),m(t,"target","_blank"),m(o,"class","absolute top-0 right-0 mr-5 text-black-600"),m(e,"class",a=be(`block leading-10 text-center ${l[0]}`)+" svelte-1xgik0j")},m(_,d){N(_,e,d),p(e,t),p(t,r),p(e,s),p(e,o),p(o,c),i||(u=ce(o,"click",l[12]),i=!0)},p(_,d){d&8&&ee(r,_[3]),d&4&&n!==(n="https://github.com/temporalio/temporal/releases/tag/v"+_[2].versionInfo.current.version)&&m(t,"href",n),d&1&&a!==(a=be(`block leading-10 text-center ${_[0]}`)+" svelte-1xgik0j")&&m(e,"class",a)},d(_){_&&f(e),i=!1,u()}}}function Xt(l){let e,t=l[4]&&Ce(l);return{c(){t&&t.c(),e=q()},l(r){t&&t.l(r),e=q()},m(r,n){t&&t.m(r,n),N(r,e,n)},p(r,[n]){r[4]?t?t.p(r,n):(t=Ce(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:z,o:z,d(r){t&&t.d(r),r&&f(e)}}}function Zt(l,e,t){let r,n,s,o,c,a,i,u;j(l,je,I=>t(11,i=I)),j(l,Re,I=>t(2,u=I));var _,d,w,$;const T={High:"high",Medium:"medium",Low:"low"},h=()=>Jt(n.version);return l.$$.update=()=>{l.$$.dirty&36&&t(10,r=t(5,_=u==null?void 0:u.versionInfo)===null||_===void 0?void 0:_.recommended),l.$$.dirty&68&&t(1,n=t(6,d=u==null?void 0:u.versionInfo)===null||d===void 0?void 0:d.current),l.$$.dirty&388&&t(9,s=t(8,$=t(7,w=u==null?void 0:u.versionInfo)===null||w===void 0?void 0:w.alerts)===null||$===void 0?void 0:$[0]),l.$$.dirty&512&&t(0,o=s?T[s.severity]:T.Low),l.$$.dirty&2050&&t(4,c=(n==null?void 0:n.version)&&n.version!=i),l.$$.dirty&1537&&t(3,a=o==T.Low?`\u{1F4E5} v${r==null?void 0:r.version} version is available`:`\u{1F4E5} ${s==null?void 0:s.message}`)},[o,n,u,a,c,_,d,w,$,s,r,i,h]}class xt extends H{constructor(e){super();K(this,e,Zt,Xt,W,{})}}function er(l){let e;const t=l[8].default,r=le(t,l,l[7],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,s){r&&r.m(n,s),e=!0},p(n,s){r&&r.p&&(!e||s&128)&&se(r,t,n,n[7],e?ae(t,n[7],s,null):oe(n[7]),null)},i(n){e||(g(r,n),e=!0)},o(n){k(r,n),e=!1},d(n){r&&r.d(n)}}}function tr(l){let e,t;return e=new ft({props:{error:l[2]}}),e.$on("clearError",l[3]),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.error=r[2]),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function rr(l){let e,t,r,n;const s=[tr,er],o=[];function c(a,i){return a[1]&&a[2]?0:1}return e=c(l),t=o[e]=s[e](l),{c(){t.c(),r=q()},l(a){t.l(a),r=q()},m(a,i){o[e].m(a,i),N(a,r,i),n=!0},p(a,[i]){let u=e;e=c(a),e===u?o[e].p(a,i):(Z(),k(o[u],1,1,()=>{o[u]=null}),x(),t=o[e],t?t.p(a,i):(t=o[e]=s[e](a),t.c()),g(t,1),t.m(r.parentNode,r))},i(a){n||(g(t),n=!0)},o(a){k(t),n=!1},d(a){o[e].d(a),a&&f(r)}}}function nr(l,e,t){let r,n,s=z,o=()=>(s(),s=ke(d,h=>t(6,n=h)),d),c,a=z,i=()=>(a(),a=ke($,h=>t(2,c=h)),$);j(l,re,h=>t(5,r=h)),l.$$.on_destroy.push(()=>s()),l.$$.on_destroy.push(()=>a());let{$$slots:u={},$$scope:_}=e,{error:d=null}=e;o();let{onError:w=null}=e,$;function T(){we(d,n=null,n),t(4,w=null),i(t(1,$=null)),we(re,r=null,r)}return l.$$set=h=>{"error"in h&&o(t(0,d=h.error)),"onError"in h&&t(4,w=h.onError),"$$scope"in h&&t(7,_=h.$$scope)},l.$$.update=()=>{l.$$.dirty&115&&(d&&n&&i(t(1,$=d)),re&&r&&i(t(1,$=re)),w&&$&&w($))},[d,$,c,T,w,r,n,_,u]}class lr extends H{constructor(e){super();K(this,e,nr,rr,W,{error:0,onError:4})}}const sr=nt(lr);function or(l){let e;const t=l[1].default,r=le(t,l,l[2],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,s){r&&r.m(n,s),e=!0},p(n,s){r&&r.p&&(!e||s&4)&&se(r,t,n,n[2],e?ae(t,n[2],s,null):oe(n[2]),null)},i(n){e||(g(r,n),e=!0)},o(n){k(r,n),e=!1},d(n){r&&r.d(n)}}}function ar(l){let e,t,r,n,s,o,c,a,i,u,_,d,w,$,T,h,I,R;return i=new Yt({}),_=new xt({}),w=new Kt({}),I=new sr({props:{onError:ir,$$slots:{default:[or]},$$scope:{ctx:l}}}),{c(){e=v("link"),t=v("link"),r=v("meta"),n=v("meta"),s=v("meta"),o=v("meta"),c=U(),a=v("main"),D(i.$$.fragment),u=U(),D(_.$$.fragment),d=U(),D(w.$$.fragment),$=U(),T=v("section"),h=v("div"),D(I.$$.fragment),this.h()},l(A){const P=lt('[data-svelte="svelte-15ltrtv"]',document.head);e=b(P,"LINK",{rel:!0,href:!0}),t=b(P,"LINK",{rel:!0,href:!0}),r=b(P,"META",{property:!0,content:!0}),n=b(P,"META",{property:!0,content:!0}),s=b(P,"META",{property:!0,content:!0}),o=b(P,"META",{property:!0,content:!0}),P.forEach(f),c=M(A),a=b(A,"MAIN",{class:!0});var V=y(a);L(i.$$.fragment,V),u=M(V),L(_.$$.fragment,V),d=M(V),L(w.$$.fragment,V),$=M(V),T=b(V,"SECTION",{id:!0,class:!0});var B=y(T);h=b(B,"DIV",{class:!0});var E=y(h);L(I.$$.fragment,E),E.forEach(f),B.forEach(f),V.forEach(f),this.h()},h(){document.title="Temporal",m(e,"rel","manifest"),m(e,"href","/site.webmanifest"),m(t,"rel","apple-touch-icon"),m(t,"href","/apple-touch-icon.png"),m(r,"property","og:title"),m(r,"content","Temporal"),m(n,"property","og:type"),m(n,"content","website"),m(s,"property","og:url"),m(s,"content","https://temporal.io"),m(o,"property","og:image"),m(o,"content","/banner.png"),m(h,"class","flex flex-col h-full gap-4"),m(T,"id","content"),m(T,"class","h-full mx-10 mb-10 mt-8"),m(a,"class","flex flex-col h-screen")},m(A,P){p(document.head,e),p(document.head,t),p(document.head,r),p(document.head,n),p(document.head,s),p(document.head,o),N(A,c,P),N(A,a,P),S(i,a,null),p(a,u),S(_,a,null),p(a,d),S(w,a,null),p(a,$),p(a,T),p(T,h),S(I,h,null),R=!0},p(A,[P]){const V={};P&4&&(V.$$scope={dirty:P,ctx:A}),I.$set(V)},i(A){R||(g(i.$$.fragment,A),g(_.$$.fragment,A),g(w.$$.fragment,A),g(I.$$.fragment,A),R=!0)},o(A){k(i.$$.fragment,A),k(_.$$.fragment,A),k(w.$$.fragment,A),k(I.$$.fragment,A),R=!1},d(A){f(e),f(t),f(r),f(n),f(s),f(o),A&&f(c),A&&f(a),C(i),C(_),C(w),C(I)}}}const Be={namespaces:[]};async function cr(){if(pe())return Promise.resolve(Be);const l=await ie(ue("namespaces"),{request:fetch,onError:()=>ne.add("error","Unable to fetch namespaces")});return l!=null?l:Promise.resolve(Be)}const yr=async function({}){const l=await $t(),{namespaces:e}=await cr();return ht(),dt().catch(()=>ne.add("error","Unable to fetch cluster info")),{props:{namespaces:e},stuff:{namespaces:e,settings:l}}},ir=()=>{};function ur(l,e,t){let{$$slots:r={},$$scope:n}=e,{namespaces:s}=e;return st("namespaces",s),l.$$set=o=>{"namespaces"in o&&t(0,s=o.namespaces),"$$scope"in o&&t(2,n=o.$$scope)},[s,r,n]}class Er extends H{constructor(e){super();K(this,e,ur,ar,W,{namespaces:0})}}export{Er as default,yr as load}; diff --git a/server/generated/ui/_app/pages/__layout.svelte-c5ead779.js b/server/generated/ui/_app/pages/__layout.svelte-c5ead779.js deleted file mode 100644 index 2d7620818c..0000000000 --- a/server/generated/ui/_app/pages/__layout.svelte-c5ead779.js +++ /dev/null @@ -1,3 +0,0 @@ -import{D as Pe,S as H,i as K,s as W,F as Fe,G as Ge,e as v,w as D,c as b,a as y,x as L,d as f,b as m,g as N,y as S,H as ze,q as g,o as k,B as C,I as j,l as q,n as Z,p as x,J as He,t as F,h as G,j as ee,K as le,k as V,m as M,L as p,M as se,N as oe,O as ae,P as X,Q as me,R as de,T as z,U as ve,V as fe,W as ce,X as Ke,Y as We,Z as Qe,_ as Ye,$ as Je,a0 as Xe,a1 as Ze,a2 as xe,a3 as et,a4 as tt,a5 as rt,a6 as be,a7 as ke,a8 as we,a9 as nt,aa as lt,r as st}from"../chunks/vendor-b58bb848.js";import{r as ie,a as ue,n as re}from"../chunks/route-for-api-90d9e1db.js";import{n as ne}from"../chunks/notifications-c07f99ce.js";import{n as Oe}from"../chunks/namespace-0cacc6ef.js";import{S as ot,O as Ue}from"../chunks/select-5b8ec3d3.js";import{g as _e}from"../chunks/navigation-093db9e2.js";import{g as at}from"../chunks/get-context-1ac24eef.js";import{d as ct,l as it,p as ut}from"../chunks/data-converter-config-851e08df.js";import{p as Ve}from"../chunks/stores-71c7b9ff.js";import{E as ft}from"../chunks/error-a678593b.js";import"../chunks/is-network-error-ac7c8caf.js";import"../chunks/singletons-a6a7384f.js";const _t=async(l=fetch)=>await ie(ue("cluster"),{request:l}),ye=["local","cloud"],mt=l=>()=>{const e=Me(),t=`Valid options: ${ye.join(", ")}.`;if(!ye.includes(e))throw new Error(`Invalid TEMPORAL_UI_BUILD_TARGET. You provided: ${e}. ${t}`);return l()},Me=()=>"local",pe=mt(()=>Me()==="cloud"),Re=Pe({}),dt=async()=>{if(pe)return Promise.resolve();const l=await _t();Re.set(l)},pt=async(l=fetch)=>{const e=await ie(ue("user"),{request:l});return{name:e==null?void 0:e.Name,email:e==null?void 0:e.Email,picture:e==null?void 0:e.Picture}},qe=Pe(null),ht=async()=>{const l=await pt();qe.set(l)},$t=async(l=fetch)=>{var t,r;const e=await ie(ue("settings"),{request:l});return{auth:{enabled:!!((t=e==null?void 0:e.Auth)==null?void 0:t.Enabled),options:(r=e==null?void 0:e.Auth)==null?void 0:r.Options},defaultNamespace:(e==null?void 0:e.DefaultNamespace)||"default"}};function Ee(l,e,t){const r=l.slice();return r[6]=e[t],r}function gt(l){let e,t,r=l[1],n=[];for(let o=0;ok(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oGe(t,"value",s)),t.$on("change",l[2]),{c(){e=v("div"),D(t.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=y(e);L(t.$$.fragment,a),a.forEach(f),this.h()},h(){m(e,"class","w-full")},m(c,a){N(c,e,a),S(t,e,null),n=!0},p(c,[a]){const i={};a&515&&(i.$$scope={dirty:a,ctx:c}),!r&&a&1&&(r=!0,i.value=c[0],ze(()=>r=!1)),t.$set(i)},i(c){n||(g(t.$$.fragment,c),n=!0)},o(c){k(t.$$.fragment,c),n=!1},d(c){c&&f(e),C(t)}}}function Et(l,e,t){let r,n,s;j(l,Oe,i=>t(4,s=i));var o;function c(){_e("/namespaces/"+n)}function a(i){n=i,t(0,n),t(4,s)}return l.$$.update=()=>{l.$$.dirty&8&&t(1,r=(t(3,o=at("namespaces"))!==null&&o!==void 0?o:[]).map(i=>{var u,_;return(_=(u=i==null?void 0:i.namespaceInfo)===null||u===void 0?void 0:u.name)!==null&&_!==void 0?_:void 0}).filter(i=>i)),l.$$.dirty&16&&t(0,n=s)},[n,r,c,o,s,a]}class It extends H{constructor(e){super();K(this,e,Et,yt,W,{})}}function Nt(l){let e,t,r,n,s,o,c;const a=l[2].default,i=le(a,l,l[1],null);return{c(){e=v("div"),i&&i.c(),t=V(),r=v("div"),n=v("div"),s=v("span"),o=F(l[0]),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=y(e);i&&i.l(_),t=M(_),r=b(_,"DIV",{class:!0});var d=y(r);n=b(d,"DIV",{class:!0});var w=y(n);s=b(w,"SPAN",{class:!0});var $=y(s);o=G($,l[0]),$.forEach(f),w.forEach(f),d.forEach(f),_.forEach(f),this.h()},h(){m(s,"class","text-gray-100"),m(n,"class","bg-gray-800 inline-block px-2 py-2 rounded-lg"),m(r,"class","tooltip svelte-za0ex9"),m(e,"class","wrapper relative inline-block svelte-za0ex9")},m(u,_){N(u,e,_),i&&i.m(e,null),p(e,t),p(e,r),p(r,n),p(n,s),p(s,o),c=!0},p(u,[_]){i&&i.p&&(!c||_&2)&&se(i,a,u,u[1],c?ae(a,u[1],_,null):oe(u[1]),null),(!c||_&1)&&ee(o,u[0])},i(u){c||(g(i,u),c=!0)},o(u){k(i,u),c=!1},d(u){u&&f(e),i&&i.d(u)}}}function At(l,e,t){let{$$slots:r={},$$scope:n}=e,{text:s=""}=e;return l.$$set=o=>{"text"in o&&t(0,s=o.text),"$$scope"in o&&t(1,n=o.$$scope)},[s,n,r]}class he extends H{constructor(e){super();K(this,e,At,Nt,W,{text:0})}}function Ne(l){let e,t,r,n;const s=[Lt,Dt,Tt],o=[];function c(a,i){return a[1]==="notRequested"?0:a[1]==="error"?1:a[1]==="success"?2:-1}return~(e=c(l))&&(t=o[e]=s[e](l)),{c(){t&&t.c(),r=q()},l(a){t&&t.l(a),r=q()},m(a,i){~e&&o[e].m(a,i),N(a,r,i),n=!0},p(a,i){let u=e;e=c(a),e===u?~e&&o[e].p(a,i):(t&&(Z(),k(o[u],1,1,()=>{o[u]=null}),x()),~e?(t=o[e],t?t.p(a,i):(t=o[e]=s[e](a),t.c()),g(t,1),t.m(r.parentNode,r)):t=null)},i(a){n||(g(t),n=!0)},o(a){k(t),n=!1},d(a){~e&&o[e].d(a),a&&f(r)}}}function Tt(l){let e,t;return e=new he({props:{text:"Data converter succesfully converted content",$$slots:{default:[St]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function Dt(l){let e,t;return e=new he({props:{text:"Data converter couldn't connect to the remote converter",$$slots:{default:[Ct]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function Lt(l){let e,t;return e=new he({props:{text:"Data converter is configured",$$slots:{default:[Bt]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.$$scope={dirty:n,ctx:r}),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function St(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-blue-200 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-blue-200 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=V(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Ct(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-red-400 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-red-400 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=V(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Bt(l){let e,t,r,n,s;return t=new X({props:{icon:me,scale:1,class:"text-blue-200 block w-full h-full"}}),n=new X({props:{icon:de,scale:1,class:"text-blue-200 block w-full h-full"}}),{c(){e=v("div"),D(t.$$.fragment),r=V(),D(n.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=y(e);L(t.$$.fragment,c),r=M(c),L(n.$$.fragment,c),c.forEach(f),this.h()},h(){m(e,"class","flex")},m(o,c){N(o,e,c),S(t,e,null),p(e,r),S(n,e,null),s=!0},p:z,i(o){s||(g(t.$$.fragment,o),g(n.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),k(n.$$.fragment,o),s=!1},d(o){o&&f(e),C(t),C(n)}}}function Pt(l){let e,t,r=l[0]&&Ne(l);return{c(){r&&r.c(),e=q()},l(n){r&&r.l(n),e=q()},m(n,s){r&&r.m(n,s),N(n,e,s),t=!0},p(n,[s]){n[0]?r?(r.p(n,s),s&1&&g(r,1)):(r=Ne(n),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(Z(),k(r,1,1,()=>{r=null}),x())},i(n){t||(g(r),t=!0)},o(n){k(r),t=!1},d(n){r&&r.d(n),n&&f(e)}}}function Ot(l,e,t){let r,n;return j(l,ct,s=>t(0,r=s)),j(l,it,s=>t(1,n=s)),[r,n]}class Ut extends H{constructor(e){super();K(this,e,Ot,Pt,W,{})}}const Ae=l=>{const e=l==null?void 0:l.indexOf("?");return e>-1?l.slice(0,e):l},Vt=(l,e,t=!1)=>{const r=Ae(l).split("/"),n=Ae(e).split("/");if(t&&r.length!==n.length)return!1;for(let s=0;st(2,n=a));let{$$slots:s={},$$scope:o}=e,{href:c}=e;return l.$$set=a=>{"href"in a&&t(0,c=a.href),"$$scope"in a&&t(3,o=a.$$scope)},l.$$.update=()=>{l.$$.dirty&5&&t(1,r=Vt(c,n.url.pathname))},[c,r,n,o,s]}class Te extends H{constructor(e){super();K(this,e,Rt,Mt,W,{href:0})}}function qt(l){let e;return{c(){e=F("Workflows")},l(t){e=G(t,"Workflows")},m(t,r){N(t,e,r)},d(t){t&&f(e)}}}function jt(l){let e;return{c(){e=F("Archival")},l(t){e=G(t,"Archival")},m(t,r){N(t,e,r)},d(t){t&&f(e)}}}function De(l){let e;function t(s,o){var c;return((c=s[3])==null?void 0:c.email)?Gt:Ft}let r=t(l),n=r(l);return{c(){n.c(),e=q()},l(s){n.l(s),e=q()},m(s,o){n.m(s,o),N(s,e,o)},p(s,o){r===(r=t(s))&&n?n.p(s,o):(n.d(1),n=r(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){n.d(s),s&&f(e)}}}function Ft(l){let e,t,r,n;return{c(){e=v("button"),t=F("Login"),this.h()},l(s){e=b(s,"BUTTON",{class:!0});var o=y(e);t=G(o,"Login"),o.forEach(f),this.h()},h(){m(e,"class","header-button svelte-1wxl72y")},m(s,o){N(s,e,o),p(e,t),r||(n=ce(e,"click",l[7]),r=!0)},p:z,d(s){s&&f(e),r=!1,n()}}}function Gt(l){let e,t,r,n,s,o;return{c(){e=v("button"),t=F(`Logout - `),r=v("img"),this.h()},l(c){e=b(c,"BUTTON",{class:!0});var a=y(e);t=G(a,`Logout - `),r=b(a,"IMG",{src:!0,alt:!0,class:!0}),a.forEach(f),this.h()},h(){fe(r.src,n=l[3].picture)||m(r,"src",n),m(r,"alt","User Avatar"),m(r,"class","rounded-full h-6 w-6 ml-2.5"),m(e,"class","header-button min-w-min svelte-1wxl72y")},m(c,a){N(c,e,a),p(e,t),p(e,r),s||(o=ce(e,"click",l[6]),s=!0)},p(c,a){a&8&&!fe(r.src,n=c[3].picture)&&m(r,"src",n)},d(c){c&&f(e),s=!1,o()}}}function zt(l){let e,t,r,n,s,o,c,a,i,u,_,d,w,$,T,h,I,R,A,P,O;c=new It({}),u=new Te({props:{href:`/namespaces/${l[2]}/workflows`,$$slots:{default:[qt]},$$scope:{ctx:l}}}),d=new Te({props:{href:`/namespaces/${l[2]}/archival`,$$slots:{default:[jt]},$$scope:{ctx:l}}}),h=new Ut({});let B=l[0].auth.enabled&&De(l);return{c(){e=v("header"),t=v("div"),r=v("a"),n=v("img"),o=V(),D(c.$$.fragment),a=V(),i=v("div"),D(u.$$.fragment),_=V(),D(d.$$.fragment),w=V(),$=v("div"),T=v("div"),D(h.$$.fragment),I=V(),R=v("a"),A=F("Report Bug/Give Feedback"),P=V(),B&&B.c(),this.h()},l(E){e=b(E,"HEADER",{class:!0});var U=y(e);t=b(U,"DIV",{class:!0});var Q=y(t);r=b(Q,"A",{href:!0,class:!0});var Y=y(r);n=b(Y,"IMG",{src:!0,alt:!0,class:!0}),Y.forEach(f),o=M(Q),L(c.$$.fragment,Q),Q.forEach(f),a=M(U),i=b(U,"DIV",{class:!0});var te=y(i);L(u.$$.fragment,te),_=M(te),L(d.$$.fragment,te),te.forEach(f),w=M(U),$=b(U,"DIV",{class:!0});var J=y($);T=b(J,"DIV",{class:!0});var $e=y(T);L(h.$$.fragment,$e),$e.forEach(f),I=M(J),R=b(J,"A",{class:!0,href:!0});var ge=y(R);A=G(ge,"Report Bug/Give Feedback"),ge.forEach(f),P=M(J),B&&B.l(J),J.forEach(f),U.forEach(f),this.h()},h(){fe(n.src,s="/logo.svg")||m(n,"src",s),m(n,"alt","Temporal Logo"),m(n,"class","max-h-10"),m(r,"href","/"),m(r,"class","block"),m(t,"class","flex gap-4 col-span-3"),m(i,"class","flex gap-4 col-span-4"),m(T,"class","text-right"),m(R,"class","header-button svelte-1wxl72y"),m(R,"href","https://github.com/temporalio/ui/issues/new/choose"),m($,"class","flex justify-end gap-4 col-span-5 col-end-13 items-center"),m(e,"class","grid grid-rows-1 grid-cols-12 px-10 items-center bg-gray-900 shadow-lg gap-6")},m(E,U){N(E,e,U),p(e,t),p(t,r),p(r,n),p(t,o),S(c,t,null),p(e,a),p(e,i),S(u,i,null),p(i,_),S(d,i,null),p(e,w),p(e,$),p($,T),S(h,T,null),p($,I),p($,R),p(R,A),p($,P),B&&B.m($,null),O=!0},p(E,[U]){const Q={};U&4&&(Q.href=`/namespaces/${E[2]}/workflows`),U&256&&(Q.$$scope={dirty:U,ctx:E}),u.$set(Q);const Y={};U&4&&(Y.href=`/namespaces/${E[2]}/archival`),U&256&&(Y.$$scope={dirty:U,ctx:E}),d.$set(Y),E[0].auth.enabled?B?B.p(E,U):(B=De(E),B.c(),B.m($,null)):B&&(B.d(1),B=null)},i(E){O||(g(c.$$.fragment,E),g(u.$$.fragment,E),g(d.$$.fragment,E),g(h.$$.fragment,E),O=!0)},o(E){k(c.$$.fragment,E),k(u.$$.fragment,E),k(d.$$.fragment,E),k(h.$$.fragment,E),O=!1},d(E){E&&f(e),C(c),C(u),C(d),C(h),B&&B.d()}}}function Ht(l,e,t){let r,n,s,o;j(l,Ve,_=>t(5,n=_)),j(l,Oe,_=>t(2,s=_)),j(l,qe,_=>t(3,o=_));var c;let a="";const i=()=>_e("/auth/logout"),u=()=>_e(a);return l.$$.update=()=>{if(l.$$.dirty&32&&t(0,r=n.stuff.settings),l.$$.dirty&49){const _=(t(4,c=r.auth.options)!==null&&c!==void 0?c:[]).filter(d=>!!n.url.searchParams.get(d)).map(d=>`&${d}=${n.url.searchParams.get(d)}`).join("");t(1,a="/auth/sso?"+encodeURI(_))}},[r,a,s,o,c,n,i,u]}class Kt extends H{constructor(e){super();K(this,e,Ht,zt,W,{})}}function Le(l,e,t){const r=l.slice();return r[4]=e[t],r}function Se(l,e){let t,r,n=e[4].message+"",s,o,c,a,i,u,_=z,d,w,$;function T(){return e[3](e[4])}return{key:l,first:null,c(){t=v("article"),r=v("p"),s=F(n),o=V(),this.h()},l(h){t=b(h,"ARTICLE",{class:!0});var I=y(t);r=b(I,"P",{});var R=y(r);s=G(R,n),R.forEach(f),o=M(I),I.forEach(f),this.h()},h(){m(t,"class",c="px-8 py-6 mb-4 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"),this.first=t},m(h,I){N(h,t,I),p(t,r),p(r,s),p(t,o),d=!0,w||($=ce(t,"click",T),w=!0)},p(h,I){e=h,(!d||I&1)&&n!==(n=e[4].message+"")&&ee(s,n),(!d||I&1&&c!==(c="px-8 py-6 mb-4 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"))&&m(t,"class",c)},r(){u=t.getBoundingClientRect()},f(){Ke(t),_(),We(t,u)},a(){_(),_=Qe(t,u,et,{})},i(h){d||(Ye(()=>{i&&i.end(1),a=Je(t,e[2],{key:e[4].id}),a.start()}),d=!0)},o(h){a&&a.invalidate(),i=Xe(t,e[1],{key:e[4].id}),d=!1},d(h){h&&f(t),h&&i&&i.end(),w=!1,$()}}}function Wt(l){let e,t=[],r=new Map,n,s=l[0];const o=c=>c[4].id;for(let c=0;ct(0,r=c));const[n,s]=xe({duration:c=>Math.sqrt(c*100),fallback(c){const a=getComputedStyle(c),i=a.transform==="none"?"":a.transform;return{duration:600,easing:rt,css:u=>`transform: ${i} scale(${u}); opacity: ${u}`}}});return[r,n,s,c=>ne.dismiss(c.id)]}class Yt extends H{constructor(e){super();K(this,e,Qt,Wt,W,{})}}const je=ut("closedBannerId",null),Jt=l=>{je.set(l)};function Ce(l){let e,t,r,n,s,o,c,a,i,u;return{c(){e=v("section"),t=v("a"),r=F(l[3]),s=V(),o=v("button"),c=F("\u2715"),this.h()},l(_){e=b(_,"SECTION",{class:!0});var d=y(e);t=b(d,"A",{href:!0,target:!0});var w=y(t);r=G(w,l[3]),w.forEach(f),s=M(d),o=b(d,"BUTTON",{class:!0});var $=y(o);c=G($,"\u2715"),$.forEach(f),d.forEach(f),this.h()},h(){m(t,"href",n="https://github.com/temporalio/temporal/releases/tag/v"+l[2].versionInfo.current.version),m(t,"target","_blank"),m(o,"class","absolute top-0 right-0 mr-5 text-black-600"),m(e,"class",a=be(`block leading-10 text-center ${l[0]}`)+" svelte-1xgik0j")},m(_,d){N(_,e,d),p(e,t),p(t,r),p(e,s),p(e,o),p(o,c),i||(u=ce(o,"click",l[12]),i=!0)},p(_,d){d&8&&ee(r,_[3]),d&4&&n!==(n="https://github.com/temporalio/temporal/releases/tag/v"+_[2].versionInfo.current.version)&&m(t,"href",n),d&1&&a!==(a=be(`block leading-10 text-center ${_[0]}`)+" svelte-1xgik0j")&&m(e,"class",a)},d(_){_&&f(e),i=!1,u()}}}function Xt(l){let e,t=l[4]&&Ce(l);return{c(){t&&t.c(),e=q()},l(r){t&&t.l(r),e=q()},m(r,n){t&&t.m(r,n),N(r,e,n)},p(r,[n]){r[4]?t?t.p(r,n):(t=Ce(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:z,o:z,d(r){t&&t.d(r),r&&f(e)}}}function Zt(l,e,t){let r,n,s,o,c,a,i,u;j(l,je,I=>t(11,i=I)),j(l,Re,I=>t(2,u=I));var _,d,w,$;const T={High:"high",Medium:"medium",Low:"low"},h=()=>Jt(n.version);return l.$$.update=()=>{l.$$.dirty&36&&t(10,r=t(5,_=u==null?void 0:u.versionInfo)===null||_===void 0?void 0:_.recommended),l.$$.dirty&68&&t(1,n=t(6,d=u==null?void 0:u.versionInfo)===null||d===void 0?void 0:d.current),l.$$.dirty&388&&t(9,s=t(8,$=t(7,w=u==null?void 0:u.versionInfo)===null||w===void 0?void 0:w.alerts)===null||$===void 0?void 0:$[0]),l.$$.dirty&512&&t(0,o=s?T[s.severity]:T.Low),l.$$.dirty&2050&&t(4,c=(n==null?void 0:n.version)&&n.version!=i),l.$$.dirty&1537&&t(3,a=o==T.Low?`\u{1F4E5} v${r==null?void 0:r.version} version is available`:`\u{1F4E5} ${s==null?void 0:s.message}`)},[o,n,u,a,c,_,d,w,$,s,r,i,h]}class xt extends H{constructor(e){super();K(this,e,Zt,Xt,W,{})}}function er(l){let e;const t=l[8].default,r=le(t,l,l[7],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,s){r&&r.m(n,s),e=!0},p(n,s){r&&r.p&&(!e||s&128)&&se(r,t,n,n[7],e?ae(t,n[7],s,null):oe(n[7]),null)},i(n){e||(g(r,n),e=!0)},o(n){k(r,n),e=!1},d(n){r&&r.d(n)}}}function tr(l){let e,t;return e=new ft({props:{error:l[2]}}),e.$on("clearError",l[3]),{c(){D(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,n){S(e,r,n),t=!0},p(r,n){const s={};n&4&&(s.error=r[2]),e.$set(s)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){C(e,r)}}}function rr(l){let e,t,r,n;const s=[tr,er],o=[];function c(a,i){return a[1]&&a[2]?0:1}return e=c(l),t=o[e]=s[e](l),{c(){t.c(),r=q()},l(a){t.l(a),r=q()},m(a,i){o[e].m(a,i),N(a,r,i),n=!0},p(a,[i]){let u=e;e=c(a),e===u?o[e].p(a,i):(Z(),k(o[u],1,1,()=>{o[u]=null}),x(),t=o[e],t?t.p(a,i):(t=o[e]=s[e](a),t.c()),g(t,1),t.m(r.parentNode,r))},i(a){n||(g(t),n=!0)},o(a){k(t),n=!1},d(a){o[e].d(a),a&&f(r)}}}function nr(l,e,t){let r,n,s=z,o=()=>(s(),s=ke(d,h=>t(6,n=h)),d),c,a=z,i=()=>(a(),a=ke($,h=>t(2,c=h)),$);j(l,re,h=>t(5,r=h)),l.$$.on_destroy.push(()=>s()),l.$$.on_destroy.push(()=>a());let{$$slots:u={},$$scope:_}=e,{error:d=null}=e;o();let{onError:w=null}=e,$;function T(){we(d,n=null,n),t(4,w=null),i(t(1,$=null)),we(re,r=null,r)}return l.$$set=h=>{"error"in h&&o(t(0,d=h.error)),"onError"in h&&t(4,w=h.onError),"$$scope"in h&&t(7,_=h.$$scope)},l.$$.update=()=>{l.$$.dirty&115&&(d&&n&&i(t(1,$=d)),re&&r&&i(t(1,$=re)),w&&$&&w($))},[d,$,c,T,w,r,n,_,u]}class lr extends H{constructor(e){super();K(this,e,nr,rr,W,{error:0,onError:4})}}const sr=nt(lr);function or(l){let e;const t=l[1].default,r=le(t,l,l[2],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,s){r&&r.m(n,s),e=!0},p(n,s){r&&r.p&&(!e||s&4)&&se(r,t,n,n[2],e?ae(t,n[2],s,null):oe(n[2]),null)},i(n){e||(g(r,n),e=!0)},o(n){k(r,n),e=!1},d(n){r&&r.d(n)}}}function ar(l){let e,t,r,n,s,o,c,a,i,u,_,d,w,$,T,h,I,R;return i=new Yt({}),_=new xt({}),w=new Kt({}),I=new sr({props:{onError:ir,$$slots:{default:[or]},$$scope:{ctx:l}}}),{c(){e=v("link"),t=v("link"),r=v("meta"),n=v("meta"),s=v("meta"),o=v("meta"),c=V(),a=v("main"),D(i.$$.fragment),u=V(),D(_.$$.fragment),d=V(),D(w.$$.fragment),$=V(),T=v("section"),h=v("div"),D(I.$$.fragment),this.h()},l(A){const P=lt('[data-svelte="svelte-15ltrtv"]',document.head);e=b(P,"LINK",{rel:!0,href:!0}),t=b(P,"LINK",{rel:!0,href:!0}),r=b(P,"META",{property:!0,content:!0}),n=b(P,"META",{property:!0,content:!0}),s=b(P,"META",{property:!0,content:!0}),o=b(P,"META",{property:!0,content:!0}),P.forEach(f),c=M(A),a=b(A,"MAIN",{class:!0});var O=y(a);L(i.$$.fragment,O),u=M(O),L(_.$$.fragment,O),d=M(O),L(w.$$.fragment,O),$=M(O),T=b(O,"SECTION",{id:!0,class:!0});var B=y(T);h=b(B,"DIV",{class:!0});var E=y(h);L(I.$$.fragment,E),E.forEach(f),B.forEach(f),O.forEach(f),this.h()},h(){document.title="Temporal",m(e,"rel","manifest"),m(e,"href","/site.webmanifest"),m(t,"rel","apple-touch-icon"),m(t,"href","/apple-touch-icon.png"),m(r,"property","og:title"),m(r,"content","Temporal"),m(n,"property","og:type"),m(n,"content","website"),m(s,"property","og:url"),m(s,"content","https://temporal.io"),m(o,"property","og:image"),m(o,"content","/banner.png"),m(h,"class","flex flex-col h-full gap-4"),m(T,"id","content"),m(T,"class","h-full mx-10 mb-10 mt-8"),m(a,"class","flex flex-col h-screen")},m(A,P){p(document.head,e),p(document.head,t),p(document.head,r),p(document.head,n),p(document.head,s),p(document.head,o),N(A,c,P),N(A,a,P),S(i,a,null),p(a,u),S(_,a,null),p(a,d),S(w,a,null),p(a,$),p(a,T),p(T,h),S(I,h,null),R=!0},p(A,[P]){const O={};P&4&&(O.$$scope={dirty:P,ctx:A}),I.$set(O)},i(A){R||(g(i.$$.fragment,A),g(_.$$.fragment,A),g(w.$$.fragment,A),g(I.$$.fragment,A),R=!0)},o(A){k(i.$$.fragment,A),k(_.$$.fragment,A),k(w.$$.fragment,A),k(I.$$.fragment,A),R=!1},d(A){f(e),f(t),f(r),f(n),f(s),f(o),A&&f(c),A&&f(a),C(i),C(_),C(w),C(I)}}}const Be={namespaces:[]};async function cr(){if(pe)return Promise.resolve(Be);const l=await ie(ue("namespaces"),{request:fetch,onError:()=>ne.add("error","Unable to fetch namespaces")});return l!=null?l:Promise.resolve(Be)}const yr=async function({}){const l=await $t(),{namespaces:e}=await cr();return ht(),dt().catch(()=>ne.add("error","Unable to fetch cluster info")),{props:{namespaces:e},stuff:{namespaces:e,settings:l}}},ir=()=>{};function ur(l,e,t){let{$$slots:r={},$$scope:n}=e,{namespaces:s}=e;return st("namespaces",s),l.$$set=o=>{"namespaces"in o&&t(0,s=o.namespaces),"$$scope"in o&&t(2,n=o.$$scope)},[s,r,n]}class Er extends H{constructor(e){super();K(this,e,ur,ar,W,{namespaces:0})}}export{Er as default,yr as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js similarity index 96% rename from server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js index 1b49ffe59a..aa699d7e07 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js @@ -1 +1 @@ -import{S as K,i as M,s as O,l as I,g as v,o as $,p as q,q as w,d,n as L,e as N,t as T,k as W,w as y,c as C,a as H,h as P,m as D,x as E,L as S,y as A,B as F,b as R,F as X,G as Y,ak as G,H as Z,al as x,T as g,aQ as ee}from"../../../../chunks/vendor-b58bb848.js";import{b as z}from"../../../../chunks/workflow-status-3e3f99a8.js";import{W as te,a as le,b as ae,c as re}from"../../../../chunks/_workflows-loading-ad4694f3.js";import{E as ie}from"../../../../chunks/empty-state-a54f1d18.js";import{C as J}from"../../../../chunks/code-block-a24f68a3.js";import"../../../../chunks/route-for-api-90d9e1db.js";import"../../../../chunks/notifications-c07f99ce.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/format-date-47255ab2.js";import"../../../../chunks/namespace-0cacc6ef.js";import"../../../../chunks/stores-71c7b9ff.js";import"../../../../chunks/route-for-11851a4f.js";import"../../../../chunks/navigation-093db9e2.js";import"../../../../chunks/singletons-a6a7384f.js";import"../../../../chunks/select-5b8ec3d3.js";import"../../../../chunks/filter-select-724bff2f.js";import"../../../../chunks/append-query-parameters-b8619cc0.js";function Q(o){o[8]=o[9].workflows}function oe(o){let e,l,t,a,n,r,f,i,m,k,b,p,s,_;f=new J({props:{content:"tctl --namespace default namespace update --has enabled",language:"text"}});let u=!o[1]&&U();return{c(){e=N("h2"),l=T("This namespace is currently not enabled for archival."),t=W(),a=N("p"),n=T("Run this command to enable Archival for Event Histories:"),r=W(),y(f.$$.fragment),i=W(),u&&u.c(),m=W(),k=N("p"),b=T("For more details please check out "),p=N("a"),s=T("Archival Docs"),this.h()},l(c){e=C(c,"H2",{class:!0});var h=H(e);l=P(h,"This namespace is currently not enabled for archival."),h.forEach(d),t=D(c),a=C(c,"P",{});var j=H(a);n=P(j,"Run this command to enable Archival for Event Histories:"),j.forEach(d),r=D(c),E(f.$$.fragment,c),i=D(c),u&&u.l(c),m=D(c),k=C(c,"P",{});var V=H(k);b=P(V,"For more details please check out "),p=C(V,"A",{class:!0,href:!0});var B=H(p);s=P(B,"Archival Docs"),B.forEach(d),V.forEach(d),this.h()},h(){R(e,"class","text-2xl"),R(p,"class","text-blue-700 underline"),R(p,"href","https://docs.temporal.io/docs/server/archive-data/")},m(c,h){v(c,e,h),S(e,l),v(c,t,h),v(c,a,h),S(a,n),v(c,r,h),A(f,c,h),v(c,i,h),u&&u.m(c,h),v(c,m,h),v(c,k,h),S(k,b),S(k,p),S(p,s),_=!0},p(c,h){c[1]?u&&(L(),$(u,1,1,()=>{u=null}),q()):u?h&2&&w(u,1):(u=U(),u.c(),w(u,1),u.m(m.parentNode,m))},i(c){_||(w(f.$$.fragment,c),w(u),_=!0)},o(c){$(f.$$.fragment,c),$(u),_=!1},d(c){c&&d(e),c&&d(t),c&&d(a),c&&d(r),F(f,c),c&&d(i),u&&u.d(c),c&&d(m),c&&d(k)}}}function ne(o){let e,l,t,a,n,r,f,i,m;function k(s){o[7](s)}let b={};o[2]!==void 0&&(b.timeFormat=o[2]),a=new te({props:b}),X.push(()=>Y(a,"timeFormat",k));let p={ctx:o,current:null,token:null,hasCatch:!1,pending:pe,then:ce,catch:se,value:9,blocks:[,,,]};return G(i=o[3],p),{c(){e=N("h2"),l=T("Archived Workflows"),t=W(),y(a.$$.fragment),r=W(),f=I(),p.block.c(),this.h()},l(s){e=C(s,"H2",{class:!0});var _=H(e);l=P(_,"Archived Workflows"),_.forEach(d),t=D(s),E(a.$$.fragment,s),r=D(s),f=I(),p.block.l(s),this.h()},h(){R(e,"class","text-2xl")},m(s,_){v(s,e,_),S(e,l),v(s,t,_),A(a,s,_),v(s,r,_),v(s,f,_),p.block.m(s,p.anchor=_),p.mount=()=>f.parentNode,p.anchor=f,m=!0},p(s,_){o=s;const u={};!n&&_&4&&(n=!0,u.timeFormat=o[2],Z(()=>n=!1)),a.$set(u),p.ctx=o,_&8&&i!==(i=o[3])&&G(i,p)||x(p,o,_)},i(s){m||(w(a.$$.fragment,s),w(p.block),m=!0)},o(s){$(a.$$.fragment,s);for(let _=0;_<3;_+=1){const u=p.blocks[_];$(u)}m=!1},d(s){s&&d(e),s&&d(t),F(a,s),s&&d(r),s&&d(f),p.block.d(s),p.token=null,p=null}}}function U(o){let e,l,t,a,n;return a=new J({props:{content:"tctl --namespace default namespace update -vas enabled",language:"text"}}),{c(){e=N("p"),l=T("To enable Visibility Archival:"),t=W(),y(a.$$.fragment)},l(r){e=C(r,"P",{});var f=H(e);l=P(f,"To enable Visibility Archival:"),f.forEach(d),t=D(r),E(a.$$.fragment,r)},m(r,f){v(r,e,f),S(e,l),v(r,t,f),A(a,r,f),n=!0},i(r){n||(w(a.$$.fragment,r),n=!0)},o(r){$(a.$$.fragment,r),n=!1},d(r){r&&d(e),r&&d(t),F(a,r)}}}function se(o){return{c:g,l:g,m:g,p:g,i:g,o:g,d:g}}function ce(o){Q(o);let e,l,t,a;const n=[me,fe],r=[];function f(i,m){return i[8].length?0:1}return e=f(o),l=r[e]=n[e](o),{c(){l.c(),t=I()},l(i){l.l(i),t=I()},m(i,m){r[e].m(i,m),v(i,t,m),a=!0},p(i,m){Q(i);let k=e;e=f(i),e===k?r[e].p(i,m):(L(),$(r[k],1,1,()=>{r[k]=null}),q(),l=r[e],l?l.p(i,m):(l=r[e]=n[e](i),l.c()),w(l,1),l.m(t.parentNode,t))},i(i){a||(w(l),a=!0)},o(i){$(l),a=!1},d(i){r[e].d(i),i&&d(t)}}}function fe(o){let e,l;return e=new ie({props:{title:"No Workflows Found",content:"If you have filters applied, try adjusting them."}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p:g,i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function me(o){let e,l;return e=new ae({props:{$$slots:{default:[_e]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&2060&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function ue(o){let e,l;return e=new re({props:{workflow:o[10],timeFormat:o[2]}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&1024&&(n.workflow=t[10]),a&4&&(n.timeFormat=t[2]),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function _e(o){let e,l;return e=new ee({props:{items:o[8],$$slots:{default:[ue,({item:t})=>({10:t}),({item:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&8&&(n.items=t[8]),a&3076&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function pe(o){let e,l;return e=new le({}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p:g,i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function be(o){let e,l,t,a;const n=[ne,oe],r=[];function f(i,m){return i[0]?0:1}return e=f(o),l=r[e]=n[e](o),{c(){l.c(),t=I()},l(i){l.l(i),t=I()},m(i,m){r[e].m(i,m),v(i,t,m),a=!0},p(i,[m]){let k=e;e=f(i),e===k?r[e].p(i,m):(L(),$(r[k],1,1,()=>{r[k]=null}),q(),l=r[e],l?l.p(i,m):(l=r[e]=n[e](i),l.c()),w(l,1),l.m(t.parentNode,t))},i(i){a||(w(l),a=!0)},o(i){$(l),a=!1},d(i){r[e].d(i),i&&d(t)}}}const Pe=async function({params:o,url:e,stuff:l}){var t,a;const{searchParams:n}=e;n.has("time-range")||n.set("time-range","24 hours");const r=o.namespace,f=n.get("workflow-id"),i=n.get("workflow-type"),m=n.get("time-range"),k=n.get("status"),b={workflowId:f,workflowType:i,closeTime:m,executionStatus:k},s=l.namespaces.find(h=>h.namespaceInfo.name===r),_=((t=s==null?void 0:s.config)===null||t===void 0?void 0:t.historyArchivalState)==="Enabled",u=((a=s==null?void 0:s.config)===null||a===void 0?void 0:a.visibilityArchivalState)==="Enabled";return{props:{initialData:_?await z(r,b,fetch):Promise.resolve(null),namespace:r,parameters:b,archivalEnabled:_,visibilityArchivalEnabled:u}}};function ke(o,e,l){let{namespace:t}=e,{initialData:a}=e,{parameters:n}=e,{archivalEnabled:r=!1}=e,{visibilityArchivalEnabled:f=!1}=e,i="UTC",m=a;function k(b){i=b,l(2,i)}return o.$$set=b=>{"namespace"in b&&l(4,t=b.namespace),"initialData"in b&&l(5,a=b.initialData),"parameters"in b&&l(6,n=b.parameters),"archivalEnabled"in b&&l(0,r=b.archivalEnabled),"visibilityArchivalEnabled"in b&&l(1,f=b.visibilityArchivalEnabled)},o.$$.update=()=>{o.$$.dirty&81&&r&&l(3,m=z(t,n))},[r,f,i,m,t,a,n,k]}class Ie extends K{constructor(e){super();M(this,e,ke,be,O,{namespace:4,initialData:5,parameters:6,archivalEnabled:0,visibilityArchivalEnabled:1})}}export{Ie as default,Pe as load}; +import{S as K,i as M,s as O,l as I,g as v,o as $,p as q,q as w,d,n as L,e as N,t as T,k as W,w as y,c as C,a as H,h as P,m as D,x as E,L as S,y as A,B as F,b as R,F as X,G as Y,ak as G,H as Z,al as x,T as g,aQ as ee}from"../../../../chunks/vendor-b58bb848.js";import{b as z}from"../../../../chunks/workflow-status-15cd5fff.js";import{W as te,a as le,b as ae,c as re}from"../../../../chunks/_workflows-loading-3836208a.js";import{E as ie}from"../../../../chunks/empty-state-a54f1d18.js";import{C as J}from"../../../../chunks/code-block-a24f68a3.js";import"../../../../chunks/route-for-api-46069891.js";import"../../../../chunks/notifications-c07f99ce.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/format-date-47255ab2.js";import"../../../../chunks/namespace-0cacc6ef.js";import"../../../../chunks/stores-71c7b9ff.js";import"../../../../chunks/route-for-11851a4f.js";import"../../../../chunks/navigation-093db9e2.js";import"../../../../chunks/singletons-a6a7384f.js";import"../../../../chunks/select-5b8ec3d3.js";import"../../../../chunks/filter-select-724bff2f.js";import"../../../../chunks/append-query-parameters-b8619cc0.js";function Q(o){o[8]=o[9].workflows}function oe(o){let e,l,t,a,n,r,f,i,m,k,b,p,s,_;f=new J({props:{content:"tctl --namespace default namespace update --has enabled",language:"text"}});let u=!o[1]&&U();return{c(){e=N("h2"),l=T("This namespace is currently not enabled for archival."),t=W(),a=N("p"),n=T("Run this command to enable Archival for Event Histories:"),r=W(),y(f.$$.fragment),i=W(),u&&u.c(),m=W(),k=N("p"),b=T("For more details please check out "),p=N("a"),s=T("Archival Docs"),this.h()},l(c){e=C(c,"H2",{class:!0});var h=H(e);l=P(h,"This namespace is currently not enabled for archival."),h.forEach(d),t=D(c),a=C(c,"P",{});var j=H(a);n=P(j,"Run this command to enable Archival for Event Histories:"),j.forEach(d),r=D(c),E(f.$$.fragment,c),i=D(c),u&&u.l(c),m=D(c),k=C(c,"P",{});var V=H(k);b=P(V,"For more details please check out "),p=C(V,"A",{class:!0,href:!0});var B=H(p);s=P(B,"Archival Docs"),B.forEach(d),V.forEach(d),this.h()},h(){R(e,"class","text-2xl"),R(p,"class","text-blue-700 underline"),R(p,"href","https://docs.temporal.io/docs/server/archive-data/")},m(c,h){v(c,e,h),S(e,l),v(c,t,h),v(c,a,h),S(a,n),v(c,r,h),A(f,c,h),v(c,i,h),u&&u.m(c,h),v(c,m,h),v(c,k,h),S(k,b),S(k,p),S(p,s),_=!0},p(c,h){c[1]?u&&(L(),$(u,1,1,()=>{u=null}),q()):u?h&2&&w(u,1):(u=U(),u.c(),w(u,1),u.m(m.parentNode,m))},i(c){_||(w(f.$$.fragment,c),w(u),_=!0)},o(c){$(f.$$.fragment,c),$(u),_=!1},d(c){c&&d(e),c&&d(t),c&&d(a),c&&d(r),F(f,c),c&&d(i),u&&u.d(c),c&&d(m),c&&d(k)}}}function ne(o){let e,l,t,a,n,r,f,i,m;function k(s){o[7](s)}let b={};o[2]!==void 0&&(b.timeFormat=o[2]),a=new te({props:b}),X.push(()=>Y(a,"timeFormat",k));let p={ctx:o,current:null,token:null,hasCatch:!1,pending:pe,then:ce,catch:se,value:9,blocks:[,,,]};return G(i=o[3],p),{c(){e=N("h2"),l=T("Archived Workflows"),t=W(),y(a.$$.fragment),r=W(),f=I(),p.block.c(),this.h()},l(s){e=C(s,"H2",{class:!0});var _=H(e);l=P(_,"Archived Workflows"),_.forEach(d),t=D(s),E(a.$$.fragment,s),r=D(s),f=I(),p.block.l(s),this.h()},h(){R(e,"class","text-2xl")},m(s,_){v(s,e,_),S(e,l),v(s,t,_),A(a,s,_),v(s,r,_),v(s,f,_),p.block.m(s,p.anchor=_),p.mount=()=>f.parentNode,p.anchor=f,m=!0},p(s,_){o=s;const u={};!n&&_&4&&(n=!0,u.timeFormat=o[2],Z(()=>n=!1)),a.$set(u),p.ctx=o,_&8&&i!==(i=o[3])&&G(i,p)||x(p,o,_)},i(s){m||(w(a.$$.fragment,s),w(p.block),m=!0)},o(s){$(a.$$.fragment,s);for(let _=0;_<3;_+=1){const u=p.blocks[_];$(u)}m=!1},d(s){s&&d(e),s&&d(t),F(a,s),s&&d(r),s&&d(f),p.block.d(s),p.token=null,p=null}}}function U(o){let e,l,t,a,n;return a=new J({props:{content:"tctl --namespace default namespace update -vas enabled",language:"text"}}),{c(){e=N("p"),l=T("To enable Visibility Archival:"),t=W(),y(a.$$.fragment)},l(r){e=C(r,"P",{});var f=H(e);l=P(f,"To enable Visibility Archival:"),f.forEach(d),t=D(r),E(a.$$.fragment,r)},m(r,f){v(r,e,f),S(e,l),v(r,t,f),A(a,r,f),n=!0},i(r){n||(w(a.$$.fragment,r),n=!0)},o(r){$(a.$$.fragment,r),n=!1},d(r){r&&d(e),r&&d(t),F(a,r)}}}function se(o){return{c:g,l:g,m:g,p:g,i:g,o:g,d:g}}function ce(o){Q(o);let e,l,t,a;const n=[me,fe],r=[];function f(i,m){return i[8].length?0:1}return e=f(o),l=r[e]=n[e](o),{c(){l.c(),t=I()},l(i){l.l(i),t=I()},m(i,m){r[e].m(i,m),v(i,t,m),a=!0},p(i,m){Q(i);let k=e;e=f(i),e===k?r[e].p(i,m):(L(),$(r[k],1,1,()=>{r[k]=null}),q(),l=r[e],l?l.p(i,m):(l=r[e]=n[e](i),l.c()),w(l,1),l.m(t.parentNode,t))},i(i){a||(w(l),a=!0)},o(i){$(l),a=!1},d(i){r[e].d(i),i&&d(t)}}}function fe(o){let e,l;return e=new ie({props:{title:"No Workflows Found",content:"If you have filters applied, try adjusting them."}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p:g,i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function me(o){let e,l;return e=new ae({props:{$$slots:{default:[_e]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&2060&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function ue(o){let e,l;return e=new re({props:{workflow:o[10],timeFormat:o[2]}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&1024&&(n.workflow=t[10]),a&4&&(n.timeFormat=t[2]),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function _e(o){let e,l;return e=new ee({props:{items:o[8],$$slots:{default:[ue,({item:t})=>({10:t}),({item:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p(t,a){const n={};a&8&&(n.items=t[8]),a&3076&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function pe(o){let e,l;return e=new le({}),{c(){y(e.$$.fragment)},l(t){E(e.$$.fragment,t)},m(t,a){A(e,t,a),l=!0},p:g,i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function be(o){let e,l,t,a;const n=[ne,oe],r=[];function f(i,m){return i[0]?0:1}return e=f(o),l=r[e]=n[e](o),{c(){l.c(),t=I()},l(i){l.l(i),t=I()},m(i,m){r[e].m(i,m),v(i,t,m),a=!0},p(i,[m]){let k=e;e=f(i),e===k?r[e].p(i,m):(L(),$(r[k],1,1,()=>{r[k]=null}),q(),l=r[e],l?l.p(i,m):(l=r[e]=n[e](i),l.c()),w(l,1),l.m(t.parentNode,t))},i(i){a||(w(l),a=!0)},o(i){$(l),a=!1},d(i){r[e].d(i),i&&d(t)}}}const Pe=async function({params:o,url:e,stuff:l}){var t,a;const{searchParams:n}=e;n.has("time-range")||n.set("time-range","24 hours");const r=o.namespace,f=n.get("workflow-id"),i=n.get("workflow-type"),m=n.get("time-range"),k=n.get("status"),b={workflowId:f,workflowType:i,closeTime:m,executionStatus:k},s=l.namespaces.find(h=>h.namespaceInfo.name===r),_=((t=s==null?void 0:s.config)===null||t===void 0?void 0:t.historyArchivalState)==="Enabled",u=((a=s==null?void 0:s.config)===null||a===void 0?void 0:a.visibilityArchivalState)==="Enabled";return{props:{initialData:_?await z(r,b,fetch):Promise.resolve(null),namespace:r,parameters:b,archivalEnabled:_,visibilityArchivalEnabled:u}}};function ke(o,e,l){let{namespace:t}=e,{initialData:a}=e,{parameters:n}=e,{archivalEnabled:r=!1}=e,{visibilityArchivalEnabled:f=!1}=e,i="UTC",m=a;function k(b){i=b,l(2,i)}return o.$$set=b=>{"namespace"in b&&l(4,t=b.namespace),"initialData"in b&&l(5,a=b.initialData),"parameters"in b&&l(6,n=b.parameters),"archivalEnabled"in b&&l(0,r=b.archivalEnabled),"visibilityArchivalEnabled"in b&&l(1,f=b.visibilityArchivalEnabled)},o.$$.update=()=>{o.$$.dirty&81&&r&&l(3,m=z(t,n))},[r,f,i,m,t,a,n,k]}class Ie extends K{constructor(e){super();M(this,e,ke,be,O,{namespace:4,initialData:5,parameters:6,archivalEnabled:0,visibilityArchivalEnabled:1})}}export{Ie as default,Pe as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js similarity index 95% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js index c545aa5f83..f9b5c7aedb 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js @@ -1 +1 @@ -import{S as F,i as H,s as I,w as g,x as d,y as k,q as m,o as _,B as w,T as J,e as b,t as L,k as B,c as x,a as y,h as O,d as h,m as C,b as P,g as N,L as $,p as W,J as j,n as E}from"../../../../../chunks/vendor-b58bb848.js";import{g as z,W as A,a as D}from"../../../../../chunks/workers-row-c83ee16c.js";import{E as G}from"../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../chunks/route-for-api-90d9e1db.js";import"../../../../../chunks/notifications-c07f99ce.js";import"../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../chunks/format-date-47255ab2.js";function v(i,e,l){const t=i.slice();return t[1]=e[l],t}function q(i){let e,l;return e=new G({props:{title:"No Workers Found"}}),{c(){g(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,r){k(e,t,r),l=!0},p:J,i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function K(i){let e,l,t;return e=new D({props:{poller:i[1]}}),{c(){g(e.$$.fragment),l=B()},l(r){d(e.$$.fragment,r),l=C(r)},m(r,u){k(e,r,u),N(r,l,u),t=!0},p(r,u){const f={};u&1&&(f.poller=r[1]),e.$set(f)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){w(e,r),r&&h(l)}}}function S(i){let e,l;return e=new A({props:{$$slots:{default:[K]},$$scope:{ctx:i}}}),{c(){g(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,r){k(e,t,r),l=!0},p(t,r){const u={};r&17&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function M(i){let e,l,t,r,u,f=i[0].pollers,o=[];for(let n=0;n_(o[n],1,1,()=>{o[n]=null});let c=null;return f.length||(c=q()),{c(){e=b("section"),l=b("h1"),t=L("Workers"),r=B();for(let n=0;n{c=null}),W()):(c=q(),c.c(),m(c,1),c.m(e,null))}},i(n){if(!u){for(let a=0;a({props:{pollers:r}}))};function Q(i,e,l){let{pollers:t}=e;return i.$$set=r=>{"pollers"in r&&l(0,t=r.pollers)},[t]}class re extends F{constructor(e){super();H(this,e,Q,M,I,{pollers:0})}}export{re as default,te as load}; +import{S as F,i as H,s as I,w as g,x as d,y as k,q as m,o as _,B as w,T as J,e as b,t as L,k as B,c as x,a as y,h as O,d as h,m as C,b as P,g as N,L as $,p as W,J as j,n as E}from"../../../../../chunks/vendor-b58bb848.js";import{g as z,W as A,a as D}from"../../../../../chunks/workers-row-7bc8cde3.js";import{E as G}from"../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../chunks/route-for-api-46069891.js";import"../../../../../chunks/notifications-c07f99ce.js";import"../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../chunks/format-date-47255ab2.js";function v(i,e,l){const t=i.slice();return t[1]=e[l],t}function q(i){let e,l;return e=new G({props:{title:"No Workers Found"}}),{c(){g(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,r){k(e,t,r),l=!0},p:J,i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function K(i){let e,l,t;return e=new D({props:{poller:i[1]}}),{c(){g(e.$$.fragment),l=B()},l(r){d(e.$$.fragment,r),l=C(r)},m(r,u){k(e,r,u),N(r,l,u),t=!0},p(r,u){const f={};u&1&&(f.poller=r[1]),e.$set(f)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){w(e,r),r&&h(l)}}}function S(i){let e,l;return e=new A({props:{$$slots:{default:[K]},$$scope:{ctx:i}}}),{c(){g(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,r){k(e,t,r),l=!0},p(t,r){const u={};r&17&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function M(i){let e,l,t,r,u,f=i[0].pollers,o=[];for(let n=0;n_(o[n],1,1,()=>{o[n]=null});let c=null;return f.length||(c=q()),{c(){e=b("section"),l=b("h1"),t=L("Workers"),r=B();for(let n=0;n{c=null}),W()):(c=q(),c.c(),m(c,1),c.m(e,null))}},i(n){if(!u){for(let a=0;a({props:{pollers:r}}))};function Q(i,e,l){let{pollers:t}=e;return i.$$set=r=>{"pollers"in r&&l(0,t=r.pollers)},[t]}class re extends F{constructor(e){super();H(this,e,Q,M,I,{pollers:0})}}export{re as default,te as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js similarity index 97% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js index 52605e1e9b..6b1500cbfc 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js @@ -1 +1 @@ -import{S as G,i as X,s as Y,w as A,x as y,y as S,q as $,o as I,B as N,l as de,g as T,n as ve,p as Ie,d as m,t as P,h as W,e as _,c as d,a as k,b as p,U as ke,T as me,I as $e,j as V,k as b,m as v,L as u,P as Ee,aA as Ae,f as ye,K as Se,M as Ne,N as Te,O as Pe}from"../../../../../../chunks/vendor-b58bb848.js";import{W as We,a as De}from"../../../../../../chunks/workflow-status-3e3f99a8.js";import{g as Fe}from"../../../../../../chunks/navigation-093db9e2.js";import{r as z}from"../../../../../../chunks/route-for-11851a4f.js";import{r as Re,a as qe,h as He}from"../../../../../../chunks/route-for-api-90d9e1db.js";import{n as Be}from"../../../../../../chunks/notifications-c07f99ce.js";import{B as Me}from"../../../../../../chunks/button-131351bb.js";import{p as be}from"../../../../../../chunks/stores-71c7b9ff.js";import"../../../../../../chunks/singletons-a6a7384f.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";async function Oe({workflow:r,namespace:e,reason:a}){return await Re(qe("workflow.terminate",{namespace:e,executionId:r.id,runId:r.runId}),{options:{method:"POST",body:JSON.stringify({reason:a})},shouldRetry:!1})}function ge(r){let e,a;return e=new Me({props:{destroy:!0,$$slots:{default:[je]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){A(e.$$.fragment)},l(s){y(e.$$.fragment,s)},m(s,t){S(e,s,t),a=!0},p(s,t){const n={};t&64&&(n.$$scope={dirty:t,ctx:s}),e.$set(n)},i(s){a||($(e.$$.fragment,s),a=!0)},o(s){I(e.$$.fragment,s),a=!1},d(s){N(e,s)}}}function je(r){let e;return{c(){e=P("Terminate")},l(a){e=W(a,"Terminate")},m(a,s){T(a,e,s)},d(a){a&&m(e)}}}function Ce(r){let e=r[1](r[0]),a,s,t=e&&ge(r);return{c(){t&&t.c(),a=de()},l(n){t&&t.l(n),a=de()},m(n,o){t&&t.m(n,o),T(n,a,o),s=!0},p(n,[o]){o&1&&(e=n[1](n[0])),e?t?(t.p(n,o),o&1&&$(t,1)):(t=ge(n),t.c(),$(t,1),t.m(a.parentNode,a)):t&&(ve(),I(t,1,1,()=>{t=null}),Ie())},i(n){s||($(t),s=!0)},o(n){I(t),s=!1},d(n){t&&t.d(n),n&&m(a)}}}function Le(r,e,a){let{workflow:s}=e,{namespace:t}=e,n="";const o=i=>String(i.status)==="Running",l=()=>{n="",Be.add("success","Workflow Terminated"),Fe(z("workflow",{namespace:t,workflowId:s.id,runId:s.runId}))},f=()=>{Oe({workflow:s,namespace:t,reason:n}).then(l).catch(He)};return r.$$set=i=>{"workflow"in i&&a(0,s=i.workflow),"namespace"in i&&a(3,t=i.namespace)},[s,o,f,t]}class Ve extends G{constructor(e){super();X(this,e,Le,Ce,Y,{workflow:0,namespace:3})}}function Je(r){let e;return{c(){e=P(r[1])},l(a){e=W(a,r[1])},m(a,s){T(a,e,s)},p(a,s){s&2&&V(e,a[1])},d(a){a&&m(e)}}}function Ke(r){let e,a,s,t;return{c(){e=P(r[1]),a=b(),s=_("span"),t=P(r[2]),this.h()},l(n){e=W(n,r[1]),a=v(n),s=d(n,"SPAN",{class:!0});var o=k(s);t=W(o,r[2]),o.forEach(m),this.h()},h(){p(s,"class","px-2 text-blue-700 bg-blue-100 rounded-sm")},m(n,o){T(n,e,o),T(n,a,o),T(n,s,o),u(s,t)},p(n,o){o&2&&V(e,n[1]),o&4&&V(t,n[2])},d(n){n&&m(e),n&&m(a),n&&m(s)}}}function Qe(r){let e;function a(n,o){return n[2]?Ke:Je}let s=a(r),t=s(r);return{c(){e=_("a"),t.c(),this.h()},l(n){e=d(n,"A",{class:!0,href:!0});var o=k(e);t.l(o),o.forEach(m),this.h()},h(){p(e,"class","block svelte-tavydt"),p(e,"href",r[0]),ke(e,"active",r[3])},m(n,o){T(n,e,o),t.m(e,null)},p(n,[o]){s===(s=a(n))&&t?t.p(n,o):(t.d(1),t=s(n),t&&(t.c(),t.m(e,null))),o&1&&p(e,"href",n[0]),o&8&&ke(e,"active",n[3])},i:me,o:me,d(n){n&&m(e),t.d()}}}function Ue(r,e,a){let s,t;$e(r,be,f=>a(4,t=f));let{href:n}=e,{label:o}=e,{amount:l=null}=e;return r.$$set=f=>{"href"in f&&a(0,n=f.href),"label"in f&&a(1,o=f.label),"amount"in f&&a(2,l=f.amount)},r.$$.update=()=>{r.$$.dirty&17&&a(3,s=t.url.pathname.includes(n))},[n,o,l,s,t]}class ae extends G{constructor(e){super();X(this,e,Ue,Qe,Y,{href:0,label:1,amount:2})}}function ze(r){let e,a,s,t,n,o,l,f,i;return a=new ae({props:{label:"History",href:z("workflow.events",{namespace:r[0],workflowId:r[1],runId:r[2]}),amount:r[3]}}),t=new ae({props:{label:"Workers",href:z("workers",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),o=new ae({props:{label:"Stack Trace",href:z("workflow.stack-trace",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),f=new ae({props:{label:"Query",href:z("workflow.query",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),{c(){e=_("nav"),A(a.$$.fragment),s=b(),A(t.$$.fragment),n=b(),A(o.$$.fragment),l=b(),A(f.$$.fragment),this.h()},l(w){e=d(w,"NAV",{class:!0});var g=k(e);y(a.$$.fragment,g),s=v(g),y(t.$$.fragment,g),n=v(g),y(o.$$.fragment,g),l=v(g),y(f.$$.fragment,g),g.forEach(m),this.h()},h(){p(e,"class","flex gap-6")},m(w,g){T(w,e,g),S(a,e,null),u(e,s),S(t,e,null),u(e,n),S(o,e,null),u(e,l),S(f,e,null),i=!0},p:me,i(w){i||($(a.$$.fragment,w),$(t.$$.fragment,w),$(o.$$.fragment,w),$(f.$$.fragment,w),i=!0)},o(w){I(a.$$.fragment,w),I(t.$$.fragment,w),I(o.$$.fragment,w),I(f.$$.fragment,w),i=!1},d(w){w&&m(e),N(a),N(t),N(o),N(f)}}}function Ge(r,e,a){let s;$e(r,be,i=>a(5,s=i));let{workflow:t}=e;const{namespace:n,workflow:o,run:l}=s.params,f=t==null?void 0:t.historyEvents;return r.$$set=i=>{"workflow"in i&&a(4,t=i.workflow)},[n,o,l,f,t]}class Xe extends G{constructor(e){super();X(this,e,Ge,ze,Y,{workflow:4})}}function Ye(r){var ce;let e,a,s,t,n,o,l,f,i=r[1].name+"",w,g,D,ne,F,re,R,J,se,oe,j,K=r[1].id+"",Z,le,q,Q,fe,ue,C,U=r[1].runId+"",x,ie,H,B;return t=new Ee({props:{icon:Ae}}),D=new We({props:{status:(ce=r[1])==null?void 0:ce.status}}),F=new Ve({props:{workflow:r[1],namespace:r[0]}}),H=new Xe({props:{workflow:r[1]}}),{c(){e=_("header"),a=_("main"),s=_("a"),A(t.$$.fragment),o=b(),l=_("div"),f=_("h1"),w=P(i),g=b(),A(D.$$.fragment),ne=b(),A(F.$$.fragment),re=b(),R=_("p"),J=_("span"),se=P("Workflow ID"),oe=b(),j=_("span"),Z=P(K),le=b(),q=_("p"),Q=_("span"),fe=P("Run ID"),ue=b(),C=_("span"),x=P(U),ie=b(),A(H.$$.fragment),this.h()},l(c){e=d(c,"HEADER",{class:!0});var h=k(e);a=d(h,"MAIN",{class:!0});var E=k(a);s=d(E,"A",{href:!0,class:!0,style:!0});var L=k(s);y(t.$$.fragment,L),L.forEach(m),o=v(E),l=d(E,"DIV",{class:!0});var M=k(l);f=d(M,"H1",{class:!0});var O=k(f);w=W(O,i),g=v(O),y(D.$$.fragment,O),O.forEach(m),ne=v(M),y(F.$$.fragment,M),M.forEach(m),re=v(E),R=d(E,"P",{class:!0});var ee=k(R);J=d(ee,"SPAN",{});var we=k(J);se=W(we,"Workflow ID"),we.forEach(m),oe=v(ee),j=d(ee,"SPAN",{class:!0});var pe=k(j);Z=W(pe,K),pe.forEach(m),ee.forEach(m),le=v(E),q=d(E,"P",{class:!0});var te=k(q);Q=d(te,"SPAN",{});var he=k(Q);fe=W(he,"Run ID"),he.forEach(m),ue=v(te),C=d(te,"SPAN",{class:!0});var _e=k(C);x=W(_e,U),_e.forEach(m),te.forEach(m),E.forEach(m),ie=v(h),y(H.$$.fragment,h),h.forEach(m),this.h()},h(){p(s,"href",n="/namespaces/"+r[0]+"/workflows"),p(s,"class","absolute top-2 back-to-workflows"),ye(s,"left","-1.5rem"),p(f,"class","text-2xl"),p(l,"class","flex justify-between items-center"),p(j,"class","font-medium"),p(R,"class","text-md"),p(C,"class","font-medium"),p(q,"class","text-md"),p(a,"class","flex flex-col gap-1 relative"),p(e,"class","flex flex-col gap-4")},m(c,h){T(c,e,h),u(e,a),u(a,s),S(t,s,null),u(a,o),u(a,l),u(l,f),u(f,w),u(f,g),S(D,f,null),u(l,ne),S(F,l,null),u(a,re),u(a,R),u(R,J),u(J,se),u(R,oe),u(R,j),u(j,Z),u(a,le),u(a,q),u(q,Q),u(Q,fe),u(q,ue),u(q,C),u(C,x),u(e,ie),S(H,e,null),B=!0},p(c,[h]){var O;(!B||h&1&&n!==(n="/namespaces/"+c[0]+"/workflows"))&&p(s,"href",n),(!B||h&2)&&i!==(i=c[1].name+"")&&V(w,i);const E={};h&2&&(E.status=(O=c[1])==null?void 0:O.status),D.$set(E);const L={};h&2&&(L.workflow=c[1]),h&1&&(L.namespace=c[0]),F.$set(L),(!B||h&2)&&K!==(K=c[1].id+"")&&V(Z,K),(!B||h&2)&&U!==(U=c[1].runId+"")&&V(x,U);const M={};h&2&&(M.workflow=c[1]),H.$set(M)},i(c){B||($(t.$$.fragment,c),$(D.$$.fragment,c),$(F.$$.fragment,c),$(H.$$.fragment,c),B=!0)},o(c){I(t.$$.fragment,c),I(D.$$.fragment,c),I(F.$$.fragment,c),I(H.$$.fragment,c),B=!1},d(c){c&&m(e),N(t),N(D),N(F),N(H)}}}function Ze(r,e,a){let{namespace:s}=e,{workflow:t}=e;return r.$$set=n=>{"namespace"in n&&a(0,s=n.namespace),"workflow"in n&&a(1,t=n.workflow)},[s,t]}class xe extends G{constructor(e){super();X(this,e,Ze,Ye,Y,{namespace:0,workflow:1})}}function et(r){let e,a,s,t;a=new xe({props:{namespace:r[1],workflow:r[0]}});const n=r[3].default,o=Se(n,r,r[2],null);return{c(){e=_("main"),A(a.$$.fragment),s=b(),o&&o.c(),this.h()},l(l){e=d(l,"MAIN",{class:!0});var f=k(e);y(a.$$.fragment,f),s=v(f),o&&o.l(f),f.forEach(m),this.h()},h(){p(e,"class","flex flex-col gap-6 h-full")},m(l,f){T(l,e,f),S(a,e,null),u(e,s),o&&o.m(e,null),t=!0},p(l,[f]){const i={};f&2&&(i.namespace=l[1]),f&1&&(i.workflow=l[0]),a.$set(i),o&&o.p&&(!t||f&4)&&Ne(o,n,l,l[2],t?Pe(n,l[2],f,null):Te(l[2]),null)},i(l){t||($(a.$$.fragment,l),$(o,l),t=!0)},o(l){I(a.$$.fragment,l),I(o,l),t=!1},d(l){l&&m(e),N(a),o&&o.d(l)}}}const ct=async function({params:r}){const{workflow:e,run:a,namespace:s}=r,n=await De({namespace:s,executionId:e,runId:a},fetch);return{props:{workflow:n,namespace:s},stuff:{workflow:n}}};function tt(r,e,a){let{$$slots:s={},$$scope:t}=e,{workflow:n}=e,{namespace:o}=e;return r.$$set=l=>{"workflow"in l&&a(0,n=l.workflow),"namespace"in l&&a(1,o=l.namespace),"$$scope"in l&&a(2,t=l.$$scope)},[n,o,t,s]}class wt extends G{constructor(e){super();X(this,e,tt,et,Y,{workflow:0,namespace:1})}}export{wt as default,ct as load}; +import{S as G,i as X,s as Y,w as A,x as y,y as S,q as $,o as I,B as N,l as de,g as T,n as ve,p as Ie,d as m,t as P,h as W,e as _,c as d,a as k,b as p,U as ke,T as me,I as $e,j as V,k as b,m as v,L as u,P as Ee,aA as Ae,f as ye,K as Se,M as Ne,N as Te,O as Pe}from"../../../../../../chunks/vendor-b58bb848.js";import{W as We,a as De}from"../../../../../../chunks/workflow-status-15cd5fff.js";import{g as Fe}from"../../../../../../chunks/navigation-093db9e2.js";import{r as z}from"../../../../../../chunks/route-for-11851a4f.js";import{r as Re,a as qe,h as He}from"../../../../../../chunks/route-for-api-46069891.js";import{n as Be}from"../../../../../../chunks/notifications-c07f99ce.js";import{B as Me}from"../../../../../../chunks/button-131351bb.js";import{p as be}from"../../../../../../chunks/stores-71c7b9ff.js";import"../../../../../../chunks/singletons-a6a7384f.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";async function Oe({workflow:r,namespace:e,reason:a}){return await Re(qe("workflow.terminate",{namespace:e,executionId:r.id,runId:r.runId}),{options:{method:"POST",body:JSON.stringify({reason:a})},shouldRetry:!1})}function ge(r){let e,a;return e=new Me({props:{destroy:!0,$$slots:{default:[je]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){A(e.$$.fragment)},l(s){y(e.$$.fragment,s)},m(s,t){S(e,s,t),a=!0},p(s,t){const n={};t&64&&(n.$$scope={dirty:t,ctx:s}),e.$set(n)},i(s){a||($(e.$$.fragment,s),a=!0)},o(s){I(e.$$.fragment,s),a=!1},d(s){N(e,s)}}}function je(r){let e;return{c(){e=P("Terminate")},l(a){e=W(a,"Terminate")},m(a,s){T(a,e,s)},d(a){a&&m(e)}}}function Ce(r){let e=r[1](r[0]),a,s,t=e&&ge(r);return{c(){t&&t.c(),a=de()},l(n){t&&t.l(n),a=de()},m(n,o){t&&t.m(n,o),T(n,a,o),s=!0},p(n,[o]){o&1&&(e=n[1](n[0])),e?t?(t.p(n,o),o&1&&$(t,1)):(t=ge(n),t.c(),$(t,1),t.m(a.parentNode,a)):t&&(ve(),I(t,1,1,()=>{t=null}),Ie())},i(n){s||($(t),s=!0)},o(n){I(t),s=!1},d(n){t&&t.d(n),n&&m(a)}}}function Le(r,e,a){let{workflow:s}=e,{namespace:t}=e,n="";const o=i=>String(i.status)==="Running",l=()=>{n="",Be.add("success","Workflow Terminated"),Fe(z("workflow",{namespace:t,workflowId:s.id,runId:s.runId}))},f=()=>{Oe({workflow:s,namespace:t,reason:n}).then(l).catch(He)};return r.$$set=i=>{"workflow"in i&&a(0,s=i.workflow),"namespace"in i&&a(3,t=i.namespace)},[s,o,f,t]}class Ve extends G{constructor(e){super();X(this,e,Le,Ce,Y,{workflow:0,namespace:3})}}function Je(r){let e;return{c(){e=P(r[1])},l(a){e=W(a,r[1])},m(a,s){T(a,e,s)},p(a,s){s&2&&V(e,a[1])},d(a){a&&m(e)}}}function Ke(r){let e,a,s,t;return{c(){e=P(r[1]),a=b(),s=_("span"),t=P(r[2]),this.h()},l(n){e=W(n,r[1]),a=v(n),s=d(n,"SPAN",{class:!0});var o=k(s);t=W(o,r[2]),o.forEach(m),this.h()},h(){p(s,"class","px-2 text-blue-700 bg-blue-100 rounded-sm")},m(n,o){T(n,e,o),T(n,a,o),T(n,s,o),u(s,t)},p(n,o){o&2&&V(e,n[1]),o&4&&V(t,n[2])},d(n){n&&m(e),n&&m(a),n&&m(s)}}}function Qe(r){let e;function a(n,o){return n[2]?Ke:Je}let s=a(r),t=s(r);return{c(){e=_("a"),t.c(),this.h()},l(n){e=d(n,"A",{class:!0,href:!0});var o=k(e);t.l(o),o.forEach(m),this.h()},h(){p(e,"class","block svelte-tavydt"),p(e,"href",r[0]),ke(e,"active",r[3])},m(n,o){T(n,e,o),t.m(e,null)},p(n,[o]){s===(s=a(n))&&t?t.p(n,o):(t.d(1),t=s(n),t&&(t.c(),t.m(e,null))),o&1&&p(e,"href",n[0]),o&8&&ke(e,"active",n[3])},i:me,o:me,d(n){n&&m(e),t.d()}}}function Ue(r,e,a){let s,t;$e(r,be,f=>a(4,t=f));let{href:n}=e,{label:o}=e,{amount:l=null}=e;return r.$$set=f=>{"href"in f&&a(0,n=f.href),"label"in f&&a(1,o=f.label),"amount"in f&&a(2,l=f.amount)},r.$$.update=()=>{r.$$.dirty&17&&a(3,s=t.url.pathname.includes(n))},[n,o,l,s,t]}class ae extends G{constructor(e){super();X(this,e,Ue,Qe,Y,{href:0,label:1,amount:2})}}function ze(r){let e,a,s,t,n,o,l,f,i;return a=new ae({props:{label:"History",href:z("workflow.events",{namespace:r[0],workflowId:r[1],runId:r[2]}),amount:r[3]}}),t=new ae({props:{label:"Workers",href:z("workers",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),o=new ae({props:{label:"Stack Trace",href:z("workflow.stack-trace",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),f=new ae({props:{label:"Query",href:z("workflow.query",{namespace:r[0],workflowId:r[1],runId:r[2]})}}),{c(){e=_("nav"),A(a.$$.fragment),s=b(),A(t.$$.fragment),n=b(),A(o.$$.fragment),l=b(),A(f.$$.fragment),this.h()},l(w){e=d(w,"NAV",{class:!0});var g=k(e);y(a.$$.fragment,g),s=v(g),y(t.$$.fragment,g),n=v(g),y(o.$$.fragment,g),l=v(g),y(f.$$.fragment,g),g.forEach(m),this.h()},h(){p(e,"class","flex gap-6")},m(w,g){T(w,e,g),S(a,e,null),u(e,s),S(t,e,null),u(e,n),S(o,e,null),u(e,l),S(f,e,null),i=!0},p:me,i(w){i||($(a.$$.fragment,w),$(t.$$.fragment,w),$(o.$$.fragment,w),$(f.$$.fragment,w),i=!0)},o(w){I(a.$$.fragment,w),I(t.$$.fragment,w),I(o.$$.fragment,w),I(f.$$.fragment,w),i=!1},d(w){w&&m(e),N(a),N(t),N(o),N(f)}}}function Ge(r,e,a){let s;$e(r,be,i=>a(5,s=i));let{workflow:t}=e;const{namespace:n,workflow:o,run:l}=s.params,f=t==null?void 0:t.historyEvents;return r.$$set=i=>{"workflow"in i&&a(4,t=i.workflow)},[n,o,l,f,t]}class Xe extends G{constructor(e){super();X(this,e,Ge,ze,Y,{workflow:4})}}function Ye(r){var ce;let e,a,s,t,n,o,l,f,i=r[1].name+"",w,g,D,ne,F,re,R,J,se,oe,j,K=r[1].id+"",Z,le,q,Q,fe,ue,C,U=r[1].runId+"",x,ie,H,B;return t=new Ee({props:{icon:Ae}}),D=new We({props:{status:(ce=r[1])==null?void 0:ce.status}}),F=new Ve({props:{workflow:r[1],namespace:r[0]}}),H=new Xe({props:{workflow:r[1]}}),{c(){e=_("header"),a=_("main"),s=_("a"),A(t.$$.fragment),o=b(),l=_("div"),f=_("h1"),w=P(i),g=b(),A(D.$$.fragment),ne=b(),A(F.$$.fragment),re=b(),R=_("p"),J=_("span"),se=P("Workflow ID"),oe=b(),j=_("span"),Z=P(K),le=b(),q=_("p"),Q=_("span"),fe=P("Run ID"),ue=b(),C=_("span"),x=P(U),ie=b(),A(H.$$.fragment),this.h()},l(c){e=d(c,"HEADER",{class:!0});var h=k(e);a=d(h,"MAIN",{class:!0});var E=k(a);s=d(E,"A",{href:!0,class:!0,style:!0});var L=k(s);y(t.$$.fragment,L),L.forEach(m),o=v(E),l=d(E,"DIV",{class:!0});var M=k(l);f=d(M,"H1",{class:!0});var O=k(f);w=W(O,i),g=v(O),y(D.$$.fragment,O),O.forEach(m),ne=v(M),y(F.$$.fragment,M),M.forEach(m),re=v(E),R=d(E,"P",{class:!0});var ee=k(R);J=d(ee,"SPAN",{});var we=k(J);se=W(we,"Workflow ID"),we.forEach(m),oe=v(ee),j=d(ee,"SPAN",{class:!0});var pe=k(j);Z=W(pe,K),pe.forEach(m),ee.forEach(m),le=v(E),q=d(E,"P",{class:!0});var te=k(q);Q=d(te,"SPAN",{});var he=k(Q);fe=W(he,"Run ID"),he.forEach(m),ue=v(te),C=d(te,"SPAN",{class:!0});var _e=k(C);x=W(_e,U),_e.forEach(m),te.forEach(m),E.forEach(m),ie=v(h),y(H.$$.fragment,h),h.forEach(m),this.h()},h(){p(s,"href",n="/namespaces/"+r[0]+"/workflows"),p(s,"class","absolute top-2 back-to-workflows"),ye(s,"left","-1.5rem"),p(f,"class","text-2xl"),p(l,"class","flex justify-between items-center"),p(j,"class","font-medium"),p(R,"class","text-md"),p(C,"class","font-medium"),p(q,"class","text-md"),p(a,"class","flex flex-col gap-1 relative"),p(e,"class","flex flex-col gap-4")},m(c,h){T(c,e,h),u(e,a),u(a,s),S(t,s,null),u(a,o),u(a,l),u(l,f),u(f,w),u(f,g),S(D,f,null),u(l,ne),S(F,l,null),u(a,re),u(a,R),u(R,J),u(J,se),u(R,oe),u(R,j),u(j,Z),u(a,le),u(a,q),u(q,Q),u(Q,fe),u(q,ue),u(q,C),u(C,x),u(e,ie),S(H,e,null),B=!0},p(c,[h]){var O;(!B||h&1&&n!==(n="/namespaces/"+c[0]+"/workflows"))&&p(s,"href",n),(!B||h&2)&&i!==(i=c[1].name+"")&&V(w,i);const E={};h&2&&(E.status=(O=c[1])==null?void 0:O.status),D.$set(E);const L={};h&2&&(L.workflow=c[1]),h&1&&(L.namespace=c[0]),F.$set(L),(!B||h&2)&&K!==(K=c[1].id+"")&&V(Z,K),(!B||h&2)&&U!==(U=c[1].runId+"")&&V(x,U);const M={};h&2&&(M.workflow=c[1]),H.$set(M)},i(c){B||($(t.$$.fragment,c),$(D.$$.fragment,c),$(F.$$.fragment,c),$(H.$$.fragment,c),B=!0)},o(c){I(t.$$.fragment,c),I(D.$$.fragment,c),I(F.$$.fragment,c),I(H.$$.fragment,c),B=!1},d(c){c&&m(e),N(t),N(D),N(F),N(H)}}}function Ze(r,e,a){let{namespace:s}=e,{workflow:t}=e;return r.$$set=n=>{"namespace"in n&&a(0,s=n.namespace),"workflow"in n&&a(1,t=n.workflow)},[s,t]}class xe extends G{constructor(e){super();X(this,e,Ze,Ye,Y,{namespace:0,workflow:1})}}function et(r){let e,a,s,t;a=new xe({props:{namespace:r[1],workflow:r[0]}});const n=r[3].default,o=Se(n,r,r[2],null);return{c(){e=_("main"),A(a.$$.fragment),s=b(),o&&o.c(),this.h()},l(l){e=d(l,"MAIN",{class:!0});var f=k(e);y(a.$$.fragment,f),s=v(f),o&&o.l(f),f.forEach(m),this.h()},h(){p(e,"class","flex flex-col gap-6 h-full")},m(l,f){T(l,e,f),S(a,e,null),u(e,s),o&&o.m(e,null),t=!0},p(l,[f]){const i={};f&2&&(i.namespace=l[1]),f&1&&(i.workflow=l[0]),a.$set(i),o&&o.p&&(!t||f&4)&&Ne(o,n,l,l[2],t?Pe(n,l[2],f,null):Te(l[2]),null)},i(l){t||($(a.$$.fragment,l),$(o,l),t=!0)},o(l){I(a.$$.fragment,l),I(o,l),t=!1},d(l){l&&m(e),N(a),o&&o.d(l)}}}const ct=async function({params:r}){const{workflow:e,run:a,namespace:s}=r,n=await De({namespace:s,executionId:e,runId:a},fetch);return{props:{workflow:n,namespace:s},stuff:{workflow:n}}};function tt(r,e,a){let{$$slots:s={},$$scope:t}=e,{workflow:n}=e,{namespace:o}=e;return r.$$set=l=>{"workflow"in l&&a(0,n=l.workflow),"namespace"in l&&a(1,o=l.namespace),"$$scope"in l&&a(2,t=l.$$scope)},[n,o,t,s]}class wt extends G{constructor(e){super();X(this,e,tt,et,Y,{workflow:0,namespace:1})}}export{wt as default,ct as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js deleted file mode 100644 index 5a5fb69508..0000000000 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js +++ /dev/null @@ -1 +0,0 @@ -var $e=Object.defineProperty,we=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var Y=(n,e,t)=>e in n?$e(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,H=(n,e)=>{for(var t in e||(e={}))Z.call(e,t)&&Y(n,t,e[t]);if(G)for(var t of G(e))A.call(e,t)&&Y(n,t,e[t]);return n},x=(n,e)=>we(n,ve(e));var ee=(n,e)=>{var t={};for(var s in n)Z.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&G)for(var s of G(n))e.indexOf(s)<0&&A.call(n,s)&&(t[s]=n[s]);return t};import{aH as ke,aI as be,S as M,i as V,s as B,P as ye,e as j,w as I,c as P,a as C,x as O,d as g,b,U as T,g as N,y as S,W as Ee,q as $,o as w,B as R,I as le,ah as Ie,aJ as Oe,T as _,K as ce,M as fe,N as ie,O as ue,r as Se,ak as te,al as Re,t as me,k as J,h as pe,m as q,L as E,aK as je,aL as Pe,aM as Ce}from"../../../../../../../chunks/vendor-b58bb848.js";import{h as Ne,b as U,r as de,a as ge}from"../../../../../../../chunks/route-for-api-90d9e1db.js";import{s as z,d as Je,a as qe}from"../../../../../../../chunks/data-converter-config-851e08df.js";import{f as De}from"../../../../../../../chunks/is-event-type-6f6767d3.js";import{r as F}from"../../../../../../../chunks/route-for-11851a4f.js";import{p as he}from"../../../../../../../chunks/stores-71c7b9ff.js";import{a as ne}from"../../../../../../../chunks/append-query-parameters-b8619cc0.js";import{g as Te}from"../../../../../../../chunks/get-context-1ac24eef.js";import{C as se}from"../../../../../../../chunks/code-block-a24f68a3.js";import"../../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../../chunks/is-network-error-ac7c8caf.js";const _e=(n={},e={})=>{const t=H({},n);for(const s of Object.keys(e)){const r=t[s];Array.isArray(r)?t[s]=t[s].concat(e[s]):typeof r=="object"&&!Array.isArray(r)?t[s]=_e(t[s],e[s]):t[s]=e[s]}return t},X=async(n,{onStart:e,onUpdate:t,onComplete:s,onError:r=Ne,token:a,previousProps:c}={})=>{!c&&U(e)&&e();try{const o=await n(a),{nextPageToken:l}=o,m=ee(o,["nextPageToken"]),u=_e(c,m);return U(t)&&t(u,m),l?X(n,{onStart:e,onUpdate:t,onComplete:s,token:l,previousProps:u}):(U(s)&&s(u),u)}catch(f){r(f)}},Fe=(n,e)=>{if(!n)return{hasWebsocket:!1,websocket:null,closeSocket:function(){return null}};try{L=new be(`ws://localhost:${n}/`,H({packMessage:t=>JSON.stringify(t),unpackMessage:t=>JSON.parse(t),attachRequestId:(t,s)=>Object.assign({requestId:s},t),extractRequestId:t=>t&&t.requestId},e)),L.onError(()=>{console.log("oh snap")})}catch{z()}return L.open(),{hasWebsocket:!0,websocket:L,closeSocket:function(){return L.close()}}};let L=null;var ae;const He=(ae=ke(Je))!=null?ae:null,Le=Fe(He);async function We(n,e){if(!e.isOpened)try{await e.open()}catch{z()}return e.isOpened?e.sendRequest({payload:JSON.stringify(n)}).then(s=>{qe();try{return JSON.parse(s.content)}catch{return s.content}}).catch(()=>{z()}):Promise.resolve(n)}const re=window.atob;function W(n){const e=re(String(n.metadata.encoding));switch(n.metadata.encodingDecoded=e,e){case"json/plain":case"json/protobuf":try{return JSON.parse(re(String(n.data)))}catch{}}return n}const Me=async(n,e)=>{var r,a,c,o,f,l,m,u,v,k,y,d;const t=n,s=(o=(c=(r=t==null?void 0:t.input)==null?void 0:r.payloads)!=null?c:(a=t==null?void 0:t.result)==null?void 0:a.payloads)!=null?o:null;if(s){let i;const p=e!=null?e:Le;(e==null?void 0:e.hasWebsocket)?i=await Promise.all((s!=null?s:[]).map(async D=>await We(D,p.websocket))):i=s.map(W),((f=t==null?void 0:t.input)==null?void 0:f.payloads)&&(t.input.payloads=i),((l=t==null?void 0:t.result)==null?void 0:l.payloads)&&(t.result.payloads=i)}if((m=t==null?void 0:t.searchAttributes)==null?void 0:m.indexedFields){const i=(u=t==null?void 0:t.searchAttributes)==null?void 0:u.indexedFields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if((v=t==null?void 0:t.memo)==null?void 0:v.fields){const i=(k=t==null?void 0:t.memo)==null?void 0:k.fields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if((y=t==null?void 0:t.header)==null?void 0:y.fields){const i=(d=t==null?void 0:t.header)==null?void 0:d.fields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if(t==null?void 0:t.queryResult){const i=t==null?void 0:t.queryResult;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}return t};async function Ve(n){const{key:e,attributes:t}=De(n),s=await Me(t);return H({type:e},s)}const Be=async n=>Promise.all(n.history.events.map(async e=>x(H({},e),{id:String(e.eventId),eventType:e.eventType,attributes:await Ve(e)}))),Ke=async({namespace:n,executionId:e,runId:t,onStart:s,onUpdate:r,onComplete:a},c=fetch)=>await X(async f=>de(ge("events",{namespace:n,executionId:e,runId:t}),{token:f,request:c}),{onStart:s,onUpdate:r,onComplete:a}).then(Be),Ge=async({namespace:n,executionId:e,runId:t,onStart:s,onUpdate:r,onComplete:a},c=fetch)=>(await X(async f=>de(ge("events",{namespace:n,executionId:e,runId:t}),{token:f,request:c}),{onStart:s,onUpdate:r,onComplete:a})).history.events;function Qe(n){let e,t,s,r,a,c;return t=new ye({props:{icon:n[0],scale:n[2]}}),{c(){e=j("a"),I(t.$$.fragment),this.h()},l(o){e=P(o,"A",{class:!0,href:!0});var f=C(e);O(t.$$.fragment,f),f.forEach(g),this.h()},h(){b(e,"class","border-2 py-2 px-4 hover:text-white hover:bg-gray-600 flex items-center justify-center svelte-1orl6nd"),b(e,"href",s=ne(n[3],n[4].url.searchParams)),T(e,"rounded-lg",!n[1]),T(e,"active",n[4].url.pathname.includes(n[3])),T(e,"group",n[1])},m(o,f){N(o,e,f),S(t,e,null),r=!0,a||(c=Ee(e,"click",n[5]),a=!0)},p(o,[f]){const l={};f&1&&(l.icon=o[0]),f&4&&(l.scale=o[2]),t.$set(l),(!r||f&24&&s!==(s=ne(o[3],o[4].url.searchParams)))&&b(e,"href",s),f&2&&T(e,"rounded-lg",!o[1]),f&24&&T(e,"active",o[4].url.pathname.includes(o[3])),f&2&&T(e,"group",o[1])},i(o){r||($(t.$$.fragment,o),r=!0)},o(o){w(t.$$.fragment,o),r=!1},d(o){o&&g(e),R(t),a=!1,c()}}}function Ue(n,e,t){let s;le(n,he,l=>t(4,s=l));let{icon:r}=e,{group:a=Te("group")}=e,{scale:c=1}=e,{href:o="#"}=e;function f(l){Ie.call(this,n,l)}return n.$$set=l=>{"icon"in l&&t(0,r=l.icon),"group"in l&&t(1,a=l.group),"scale"in l&&t(2,c=l.scale),"href"in l&&t(3,o=l.href)},[r,a,c,o,s,f]}class Q extends M{constructor(e){super();V(this,e,Ue,Qe,B,{icon:0,group:1,scale:2,href:3})}}function ze(n){let e,t;return e=new Q({props:{icon:Oe}}),e.$on("click",n[0]),{c(){I(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,r){S(e,s,r),t=!0},p:_,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){w(e.$$.fragment,s),t=!1},d(s){R(e,s)}}}function Xe(n,e,t){let s;le(n,he,f=>t(1,s=f));const{workflow:r,run:a,namespace:c}=s.params;return[async()=>{const f=await Ge({namespace:c,executionId:r,runId:a}),l=JSON.stringify(f,null,2);m(l,`${a}/events.json`,"text/plain");function m(u,v,k){const y=document.createElement("a"),d=new Blob([u],{type:k});y.href=URL.createObjectURL(d),y.download=v,y.click()}}]}class Ye extends M{constructor(e){super();V(this,e,Xe,ze,B,{})}}function Ze(n){let e,t;const s=n[1].default,r=ce(s,n,n[0],null);return{c(){e=j("div"),r&&r.c(),this.h()},l(a){e=P(a,"DIV",{class:!0});var c=C(e);r&&r.l(c),c.forEach(g),this.h()},h(){b(e,"class","flex")},m(a,c){N(a,e,c),r&&r.m(e,null),t=!0},p(a,[c]){r&&r.p&&(!t||c&1)&&fe(r,s,a,a[0],t?ue(s,a[0],c,null):ie(a[0]),null)},i(a){t||($(r,a),t=!0)},o(a){w(r,a),t=!1},d(a){a&&g(e),r&&r.d(a)}}}function Ae(n,e,t){let{$$slots:s={},$$scope:r}=e;return Se("group",!0),n.$$set=a=>{"$$scope"in a&&t(0,r=a.$$scope)},[r,s]}class xe extends M{constructor(e){super();V(this,e,Ae,Ze,B,{})}}const et=async n=>{var a,c,o,f,l,m;n=await n;let e,t;const s=n==null?void 0:n.find(u=>!!u.workflowExecutionStartedEventAttributes),r=n==null?void 0:n.find(u=>!!u.workflowExecutionCompletedEventAttributes);return s&&(e=JSON.stringify((o=(c=(a=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:a.input)==null?void 0:c.payloads)!=null?o:"")),r&&(t=JSON.stringify((m=(l=(f=r==null?void 0:r.workflowExecutionCompletedEventAttributes)==null?void 0:f.result)==null?void 0:l.payloads)!=null?m:"")),{input:e,result:t}};function oe(n){n[2]=n[4].input,n[3]=n[4].result}function tt(n){return{c:_,l:_,m:_,p:_,i:_,o:_,d:_}}function nt(n){oe(n);let e,t,s,r,a,c,o,f;return a=new se({props:{heading:"Input",content:n[2],framed:!0}}),o=new se({props:{heading:"Result",content:n[3],framed:!0}}),{c(){e=j("h3"),t=me("Input & Results"),s=J(),r=j("div"),I(a.$$.fragment),c=J(),I(o.$$.fragment),this.h()},l(l){e=P(l,"H3",{class:!0});var m=C(e);t=pe(m,"Input & Results"),m.forEach(g),s=q(l),r=P(l,"DIV",{class:!0});var u=C(r);O(a.$$.fragment,u),c=q(u),O(o.$$.fragment,u),u.forEach(g),this.h()},h(){b(e,"class","text-lg font-medium"),b(r,"class","flex gap-4")},m(l,m){N(l,e,m),E(e,t),N(l,s,m),N(l,r,m),S(a,r,null),E(r,c),S(o,r,null),f=!0},p(l,m){oe(l);const u={};m&1&&(u.content=l[2]),a.$set(u);const v={};m&1&&(v.content=l[3]),o.$set(v)},i(l){f||($(a.$$.fragment,l),$(o.$$.fragment,l),f=!0)},o(l){w(a.$$.fragment,l),w(o.$$.fragment,l),f=!1},d(l){l&&g(e),l&&g(s),l&&g(r),R(a),R(o)}}}function st(n){return{c:_,l:_,m:_,p:_,i:_,o:_,d:_}}function rt(n){let e,t,s,r={ctx:n,current:null,token:null,hasCatch:!1,pending:st,then:nt,catch:tt,value:4,blocks:[,,,]};return te(t=n[0],r),{c(){e=j("section"),r.block.c(),this.h()},l(a){e=P(a,"SECTION",{class:!0});var c=C(e);r.block.l(c),c.forEach(g),this.h()},h(){b(e,"class","flex flex-col gap-4")},m(a,c){N(a,e,c),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,s=!0},p(a,[c]){n=a,r.ctx=n,c&1&&t!==(t=n[0])&&te(t,r)||Re(r,n,c)},i(a){s||($(r.block),s=!0)},o(a){for(let c=0;c<3;c+=1){const o=r.blocks[c];w(o)}s=!1},d(a){a&&g(e),r.block.d(),r.token=null,r=null}}}function ot(n,e,t){let s,{events:r}=e;return n.$$set=a=>{"events"in a&&t(1,r=a.events)},n.$$.update=()=>{n.$$.dirty&2&&t(0,s=et(r))},[s,r]}class at extends M{constructor(e){super();V(this,e,ot,rt,B,{events:1})}}function lt(n){let e,t,s,r,a,c;return e=new Q({props:{icon:je,href:F("workflow.events.full",n[0])}}),s=new Q({props:{icon:Pe,href:F("workflow.events.compact",n[0])}}),a=new Q({props:{icon:Ce,href:F("workflow.events.json",n[0])}}),{c(){I(e.$$.fragment),t=J(),I(s.$$.fragment),r=J(),I(a.$$.fragment)},l(o){O(e.$$.fragment,o),t=q(o),O(s.$$.fragment,o),r=q(o),O(a.$$.fragment,o)},m(o,f){S(e,o,f),N(o,t,f),S(s,o,f),N(o,r,f),S(a,o,f),c=!0},p(o,f){const l={};f&1&&(l.href=F("workflow.events.full",o[0])),e.$set(l);const m={};f&1&&(m.href=F("workflow.events.compact",o[0])),s.$set(m);const u={};f&1&&(u.href=F("workflow.events.json",o[0])),a.$set(u)},i(o){c||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),c=!0)},o(o){w(e.$$.fragment,o),w(s.$$.fragment,o),w(a.$$.fragment,o),c=!1},d(o){R(e,o),o&&g(t),R(s,o),o&&g(r),R(a,o)}}}function ct(n){let e,t,s,r,a,c,o,f,l,m,u,v,k;t=new at({props:{events:n[1]}}),l=new xe({props:{$$slots:{default:[lt]},$$scope:{ctx:n}}}),u=new Ye({});const y=n[2].default,d=ce(y,n,n[3],null);return{c(){e=j("section"),I(t.$$.fragment),s=J(),r=j("nav"),a=j("h3"),c=me("Event History"),o=J(),f=j("div"),I(l.$$.fragment),m=J(),I(u.$$.fragment),v=J(),d&&d.c(),this.h()},l(i){e=P(i,"SECTION",{class:!0});var p=C(e);O(t.$$.fragment,p),s=q(p),r=P(p,"NAV",{class:!0});var h=C(r);a=P(h,"H3",{class:!0});var D=C(a);c=pe(D,"Event History"),D.forEach(g),o=q(h),f=P(h,"DIV",{class:!0});var K=C(f);O(l.$$.fragment,K),m=q(K),O(u.$$.fragment,K),K.forEach(g),h.forEach(g),v=q(p),d&&d.l(p),p.forEach(g),this.h()},h(){b(a,"class","text-lg font-medium"),b(f,"class","flex gap-4"),b(r,"class","flex gap-4 justify-between items-end"),b(e,"class","flex flex-col gap-4")},m(i,p){N(i,e,p),S(t,e,null),E(e,s),E(e,r),E(r,a),E(a,c),E(r,o),E(r,f),S(l,f,null),E(f,m),S(u,f,null),E(e,v),d&&d.m(e,null),k=!0},p(i,[p]){const h={};p&2&&(h.events=i[1]),t.$set(h);const D={};p&9&&(D.$$scope={dirty:p,ctx:i}),l.$set(D),d&&d.p&&(!k||p&8)&&fe(d,y,i,i[3],k?ue(y,i[3],p,null):ie(i[3]),null)},i(i){k||($(t.$$.fragment,i),$(l.$$.fragment,i),$(u.$$.fragment,i),$(d,i),k=!0)},o(i){w(t.$$.fragment,i),w(l.$$.fragment,i),w(u.$$.fragment,i),w(d,i),k=!1},d(i){i&&g(e),R(t),R(l),R(u),d&&d.d(i)}}}const bt=async function({params:n}){const{workflow:e,run:t,namespace:s}=n,a=await Ke({namespace:s,executionId:e,runId:t});return{props:{workflow:{workflowId:e,runId:t,namespace:s},events:a},stuff:{events:a}}};function ft(n,e,t){let{$$slots:s={},$$scope:r}=e,{workflow:a}=e,{events:c}=e;return n.$$set=o=>{"workflow"in o&&t(0,a=o.workflow),"events"in o&&t(1,c=o.events),"$$scope"in o&&t(3,r=o.$$scope)},[a,c,s,r]}class yt extends M{constructor(e){super();V(this,e,ft,ct,B,{workflow:0,events:1})}}export{yt as default,bt as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js new file mode 100644 index 0000000000..1e41a40882 --- /dev/null +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js @@ -0,0 +1 @@ +var $e=Object.defineProperty,we=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var Y=(n,e,t)=>e in n?$e(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,H=(n,e)=>{for(var t in e||(e={}))Z.call(e,t)&&Y(n,t,e[t]);if(G)for(var t of G(e))A.call(e,t)&&Y(n,t,e[t]);return n},x=(n,e)=>we(n,ve(e));var ee=(n,e)=>{var t={};for(var s in n)Z.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&G)for(var s of G(n))e.indexOf(s)<0&&A.call(n,s)&&(t[s]=n[s]);return t};import{aH as ke,aI as be,S as M,i as V,s as B,P as Ee,e as j,w as I,c as P,a as C,x as O,d,b,U as T,g as N,y as S,W as ye,q as $,o as w,B as R,I as le,ah as Ie,aJ as Oe,T as _,K as ce,M as fe,N as ie,O as ue,r as Se,ak as te,al as Re,t as me,k as J,h as pe,m as q,L as y,aK as je,aL as Pe,aM as Ce}from"../../../../../../../chunks/vendor-b58bb848.js";import{h as Ne,b as U,r as ge,a as de}from"../../../../../../../chunks/route-for-api-46069891.js";import{s as z,d as Je,a as qe}from"../../../../../../../chunks/data-converter-config-851e08df.js";import{f as De}from"../../../../../../../chunks/is-event-type-6f6767d3.js";import{r as F}from"../../../../../../../chunks/route-for-11851a4f.js";import{p as he}from"../../../../../../../chunks/stores-71c7b9ff.js";import{a as ne}from"../../../../../../../chunks/append-query-parameters-b8619cc0.js";import{g as Te}from"../../../../../../../chunks/get-context-1ac24eef.js";import{C as se}from"../../../../../../../chunks/code-block-a24f68a3.js";import"../../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../../chunks/is-network-error-ac7c8caf.js";const _e=(n={},e={})=>{const t=H({},n);for(const s of Object.keys(e)){const r=t[s];Array.isArray(r)?t[s]=t[s].concat(e[s]):typeof r=="object"&&!Array.isArray(r)?t[s]=_e(t[s],e[s]):t[s]=e[s]}return t},X=async(n,{onStart:e,onUpdate:t,onComplete:s,onError:r=Ne,token:a,previousProps:c}={})=>{!c&&U(e)&&e();try{const o=await n(a),{nextPageToken:l}=o,m=ee(o,["nextPageToken"]),u=_e(c,m);return U(t)&&t(u,m),l?X(n,{onStart:e,onUpdate:t,onComplete:s,token:l,previousProps:u}):(U(s)&&s(u),u)}catch(f){r(f)}},Fe=(n,e)=>{if(!n)return{hasWebsocket:!1,websocket:null,closeSocket:function(){return null}};try{L=new be(`ws://localhost:${n}/`,H({packMessage:t=>JSON.stringify(t),unpackMessage:t=>JSON.parse(t),attachRequestId:(t,s)=>Object.assign({requestId:s},t),extractRequestId:t=>t&&t.requestId},e)),L.onError(()=>{console.log("oh snap")})}catch{z()}return L.open(),{hasWebsocket:!0,websocket:L,closeSocket:function(){return L.close()}}};let L=null;var ae;const He=(ae=ke(Je))!=null?ae:null,Le=Fe(He);async function We(n,e){if(!e.isOpened)try{await e.open()}catch{z()}return e.isOpened?e.sendRequest({payload:JSON.stringify(n)}).then(s=>{qe();try{return JSON.parse(s.content)}catch{return s.content}}).catch(()=>{z()}):Promise.resolve(n)}const re=window.atob;function W(n){var t,s;const e=re(String((s=(t=n==null?void 0:n.metadata)==null?void 0:t.encoding)!=null?s:""));switch(n.metadata.encodingDecoded=e,e){case"json/plain":case"json/protobuf":try{return JSON.parse(re(String(n.data)))}catch{}}return n}const Me=async(n,e)=>{var r,a,c,o,f,l,m,u,v,k,E,g;const t=n,s=(o=(c=(r=t==null?void 0:t.input)==null?void 0:r.payloads)!=null?c:(a=t==null?void 0:t.result)==null?void 0:a.payloads)!=null?o:null;if(s){let i;const p=e!=null?e:Le;(e==null?void 0:e.hasWebsocket)?i=await Promise.all((s!=null?s:[]).map(async D=>await We(D,p.websocket))):i=s.map(W),((f=t==null?void 0:t.input)==null?void 0:f.payloads)&&(t.input.payloads=i),((l=t==null?void 0:t.result)==null?void 0:l.payloads)&&(t.result.payloads=i)}if((m=t==null?void 0:t.searchAttributes)==null?void 0:m.indexedFields){const i=(u=t==null?void 0:t.searchAttributes)==null?void 0:u.indexedFields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if((v=t==null?void 0:t.memo)==null?void 0:v.fields){const i=(k=t==null?void 0:t.memo)==null?void 0:k.fields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if((E=t==null?void 0:t.header)==null?void 0:E.fields){const i=(g=t==null?void 0:t.header)==null?void 0:g.fields;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}if(t==null?void 0:t.queryResult){const i=t==null?void 0:t.queryResult;Object.entries(i).forEach(([p,h])=>{i[p]=W(h)})}return t};async function Ve(n){const{key:e,attributes:t}=De(n),s=await Me(t);return H({type:e},s)}const Be=async n=>Promise.all(n.history.events.map(async e=>x(H({},e),{id:String(e.eventId),eventType:e.eventType,attributes:await Ve(e)}))),Ke=async({namespace:n,executionId:e,runId:t,onStart:s,onUpdate:r,onComplete:a},c=fetch)=>await X(async f=>ge(de("events",{namespace:n,executionId:e,runId:t}),{token:f,request:c}),{onStart:s,onUpdate:r,onComplete:a}).then(Be),Ge=async({namespace:n,executionId:e,runId:t,onStart:s,onUpdate:r,onComplete:a},c=fetch)=>(await X(async f=>ge(de("events",{namespace:n,executionId:e,runId:t}),{token:f,request:c}),{onStart:s,onUpdate:r,onComplete:a})).history.events;function Qe(n){let e,t,s,r,a,c;return t=new Ee({props:{icon:n[0],scale:n[2]}}),{c(){e=j("a"),I(t.$$.fragment),this.h()},l(o){e=P(o,"A",{class:!0,href:!0});var f=C(e);O(t.$$.fragment,f),f.forEach(d),this.h()},h(){b(e,"class","border-2 py-2 px-4 hover:text-white hover:bg-gray-600 flex items-center justify-center svelte-1orl6nd"),b(e,"href",s=ne(n[3],n[4].url.searchParams)),T(e,"rounded-lg",!n[1]),T(e,"active",n[4].url.pathname.includes(n[3])),T(e,"group",n[1])},m(o,f){N(o,e,f),S(t,e,null),r=!0,a||(c=ye(e,"click",n[5]),a=!0)},p(o,[f]){const l={};f&1&&(l.icon=o[0]),f&4&&(l.scale=o[2]),t.$set(l),(!r||f&24&&s!==(s=ne(o[3],o[4].url.searchParams)))&&b(e,"href",s),f&2&&T(e,"rounded-lg",!o[1]),f&24&&T(e,"active",o[4].url.pathname.includes(o[3])),f&2&&T(e,"group",o[1])},i(o){r||($(t.$$.fragment,o),r=!0)},o(o){w(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t),a=!1,c()}}}function Ue(n,e,t){let s;le(n,he,l=>t(4,s=l));let{icon:r}=e,{group:a=Te("group")}=e,{scale:c=1}=e,{href:o="#"}=e;function f(l){Ie.call(this,n,l)}return n.$$set=l=>{"icon"in l&&t(0,r=l.icon),"group"in l&&t(1,a=l.group),"scale"in l&&t(2,c=l.scale),"href"in l&&t(3,o=l.href)},[r,a,c,o,s,f]}class Q extends M{constructor(e){super();V(this,e,Ue,Qe,B,{icon:0,group:1,scale:2,href:3})}}function ze(n){let e,t;return e=new Q({props:{icon:Oe}}),e.$on("click",n[0]),{c(){I(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,r){S(e,s,r),t=!0},p:_,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){w(e.$$.fragment,s),t=!1},d(s){R(e,s)}}}function Xe(n,e,t){let s;le(n,he,f=>t(1,s=f));const{workflow:r,run:a,namespace:c}=s.params;return[async()=>{const f=await Ge({namespace:c,executionId:r,runId:a}),l=JSON.stringify(f,null,2);m(l,`${a}/events.json`,"text/plain");function m(u,v,k){const E=document.createElement("a"),g=new Blob([u],{type:k});E.href=URL.createObjectURL(g),E.download=v,E.click()}}]}class Ye extends M{constructor(e){super();V(this,e,Xe,ze,B,{})}}function Ze(n){let e,t;const s=n[1].default,r=ce(s,n,n[0],null);return{c(){e=j("div"),r&&r.c(),this.h()},l(a){e=P(a,"DIV",{class:!0});var c=C(e);r&&r.l(c),c.forEach(d),this.h()},h(){b(e,"class","flex")},m(a,c){N(a,e,c),r&&r.m(e,null),t=!0},p(a,[c]){r&&r.p&&(!t||c&1)&&fe(r,s,a,a[0],t?ue(s,a[0],c,null):ie(a[0]),null)},i(a){t||($(r,a),t=!0)},o(a){w(r,a),t=!1},d(a){a&&d(e),r&&r.d(a)}}}function Ae(n,e,t){let{$$slots:s={},$$scope:r}=e;return Se("group",!0),n.$$set=a=>{"$$scope"in a&&t(0,r=a.$$scope)},[r,s]}class xe extends M{constructor(e){super();V(this,e,Ae,Ze,B,{})}}const et=async n=>{var a,c,o,f,l,m;n=await n;let e,t;const s=n==null?void 0:n.find(u=>!!u.workflowExecutionStartedEventAttributes),r=n==null?void 0:n.find(u=>!!u.workflowExecutionCompletedEventAttributes);return s&&(e=JSON.stringify((o=(c=(a=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:a.input)==null?void 0:c.payloads)!=null?o:"")),r&&(t=JSON.stringify((m=(l=(f=r==null?void 0:r.workflowExecutionCompletedEventAttributes)==null?void 0:f.result)==null?void 0:l.payloads)!=null?m:"")),{input:e,result:t}};function oe(n){n[2]=n[4].input,n[3]=n[4].result}function tt(n){return{c:_,l:_,m:_,p:_,i:_,o:_,d:_}}function nt(n){oe(n);let e,t,s,r,a,c,o,f;return a=new se({props:{heading:"Input",content:n[2],framed:!0}}),o=new se({props:{heading:"Result",content:n[3],framed:!0}}),{c(){e=j("h3"),t=me("Input & Results"),s=J(),r=j("div"),I(a.$$.fragment),c=J(),I(o.$$.fragment),this.h()},l(l){e=P(l,"H3",{class:!0});var m=C(e);t=pe(m,"Input & Results"),m.forEach(d),s=q(l),r=P(l,"DIV",{class:!0});var u=C(r);O(a.$$.fragment,u),c=q(u),O(o.$$.fragment,u),u.forEach(d),this.h()},h(){b(e,"class","text-lg font-medium"),b(r,"class","flex gap-4")},m(l,m){N(l,e,m),y(e,t),N(l,s,m),N(l,r,m),S(a,r,null),y(r,c),S(o,r,null),f=!0},p(l,m){oe(l);const u={};m&1&&(u.content=l[2]),a.$set(u);const v={};m&1&&(v.content=l[3]),o.$set(v)},i(l){f||($(a.$$.fragment,l),$(o.$$.fragment,l),f=!0)},o(l){w(a.$$.fragment,l),w(o.$$.fragment,l),f=!1},d(l){l&&d(e),l&&d(s),l&&d(r),R(a),R(o)}}}function st(n){return{c:_,l:_,m:_,p:_,i:_,o:_,d:_}}function rt(n){let e,t,s,r={ctx:n,current:null,token:null,hasCatch:!1,pending:st,then:nt,catch:tt,value:4,blocks:[,,,]};return te(t=n[0],r),{c(){e=j("section"),r.block.c(),this.h()},l(a){e=P(a,"SECTION",{class:!0});var c=C(e);r.block.l(c),c.forEach(d),this.h()},h(){b(e,"class","flex flex-col gap-4")},m(a,c){N(a,e,c),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,s=!0},p(a,[c]){n=a,r.ctx=n,c&1&&t!==(t=n[0])&&te(t,r)||Re(r,n,c)},i(a){s||($(r.block),s=!0)},o(a){for(let c=0;c<3;c+=1){const o=r.blocks[c];w(o)}s=!1},d(a){a&&d(e),r.block.d(),r.token=null,r=null}}}function ot(n,e,t){let s,{events:r}=e;return n.$$set=a=>{"events"in a&&t(1,r=a.events)},n.$$.update=()=>{n.$$.dirty&2&&t(0,s=et(r))},[s,r]}class at extends M{constructor(e){super();V(this,e,ot,rt,B,{events:1})}}function lt(n){let e,t,s,r,a,c;return e=new Q({props:{icon:je,href:F("workflow.events.full",n[0])}}),s=new Q({props:{icon:Pe,href:F("workflow.events.compact",n[0])}}),a=new Q({props:{icon:Ce,href:F("workflow.events.json",n[0])}}),{c(){I(e.$$.fragment),t=J(),I(s.$$.fragment),r=J(),I(a.$$.fragment)},l(o){O(e.$$.fragment,o),t=q(o),O(s.$$.fragment,o),r=q(o),O(a.$$.fragment,o)},m(o,f){S(e,o,f),N(o,t,f),S(s,o,f),N(o,r,f),S(a,o,f),c=!0},p(o,f){const l={};f&1&&(l.href=F("workflow.events.full",o[0])),e.$set(l);const m={};f&1&&(m.href=F("workflow.events.compact",o[0])),s.$set(m);const u={};f&1&&(u.href=F("workflow.events.json",o[0])),a.$set(u)},i(o){c||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),c=!0)},o(o){w(e.$$.fragment,o),w(s.$$.fragment,o),w(a.$$.fragment,o),c=!1},d(o){R(e,o),o&&d(t),R(s,o),o&&d(r),R(a,o)}}}function ct(n){let e,t,s,r,a,c,o,f,l,m,u,v,k;t=new at({props:{events:n[1]}}),l=new xe({props:{$$slots:{default:[lt]},$$scope:{ctx:n}}}),u=new Ye({});const E=n[2].default,g=ce(E,n,n[3],null);return{c(){e=j("section"),I(t.$$.fragment),s=J(),r=j("nav"),a=j("h3"),c=me("Event History"),o=J(),f=j("div"),I(l.$$.fragment),m=J(),I(u.$$.fragment),v=J(),g&&g.c(),this.h()},l(i){e=P(i,"SECTION",{class:!0});var p=C(e);O(t.$$.fragment,p),s=q(p),r=P(p,"NAV",{class:!0});var h=C(r);a=P(h,"H3",{class:!0});var D=C(a);c=pe(D,"Event History"),D.forEach(d),o=q(h),f=P(h,"DIV",{class:!0});var K=C(f);O(l.$$.fragment,K),m=q(K),O(u.$$.fragment,K),K.forEach(d),h.forEach(d),v=q(p),g&&g.l(p),p.forEach(d),this.h()},h(){b(a,"class","text-lg font-medium"),b(f,"class","flex gap-4"),b(r,"class","flex gap-4 justify-between items-end"),b(e,"class","flex flex-col gap-4")},m(i,p){N(i,e,p),S(t,e,null),y(e,s),y(e,r),y(r,a),y(a,c),y(r,o),y(r,f),S(l,f,null),y(f,m),S(u,f,null),y(e,v),g&&g.m(e,null),k=!0},p(i,[p]){const h={};p&2&&(h.events=i[1]),t.$set(h);const D={};p&9&&(D.$$scope={dirty:p,ctx:i}),l.$set(D),g&&g.p&&(!k||p&8)&&fe(g,E,i,i[3],k?ue(E,i[3],p,null):ie(i[3]),null)},i(i){k||($(t.$$.fragment,i),$(l.$$.fragment,i),$(u.$$.fragment,i),$(g,i),k=!0)},o(i){w(t.$$.fragment,i),w(l.$$.fragment,i),w(u.$$.fragment,i),w(g,i),k=!1},d(i){i&&d(e),R(t),R(l),R(u),g&&g.d(i)}}}const bt=async function({params:n}){const{workflow:e,run:t,namespace:s}=n,a=await Ke({namespace:s,executionId:e,runId:t});return{props:{workflow:{workflowId:e,runId:t,namespace:s},events:a},stuff:{events:a}}};function ft(n,e,t){let{$$slots:s={},$$scope:r}=e,{workflow:a}=e,{events:c}=e;return n.$$set=o=>{"workflow"in o&&t(0,a=o.workflow),"events"in o&&t(1,c=o.events),"$$scope"in o&&t(3,r=o.$$scope)},[a,c,s,r]}class Et extends M{constructor(e){super();V(this,e,ft,ct,B,{workflow:0,events:1})}}export{Et as default,bt as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js similarity index 96% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js index 7a1c89e8bb..b8ec0025ff 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js @@ -1 +1 @@ -import{S as E,i as I,s as Q,e as y,w as $,k as O,c as h,a as d,x as q,d as f,m as S,b as k,g as w,L as g,y as v,q as m,o as _,B as T,l as b,n as x,p as B,J as D,t as F,h as N,j as V}from"../../../../../../chunks/vendor-b58bb848.js";import{a as j,b as J}from"../../../../../../chunks/query-service-3d3380f9.js";import{C as L}from"../../../../../../chunks/code-block-a24f68a3.js";import{F as P}from"../../../../../../chunks/filter-select-724bff2f.js";import{O as z}from"../../../../../../chunks/select-5b8ec3d3.js";import"../../../../../../chunks/route-for-api-90d9e1db.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../../chunks/navigation-093db9e2.js";import"../../../../../../chunks/singletons-a6a7384f.js";import"../../../../../../chunks/stores-71c7b9ff.js";import"../../../../../../chunks/append-query-parameters-b8619cc0.js";function R(l,n,o){const e=l.slice();return e[3]=n[o],e}function A(l){let n=l[3]+"",o;return{c(){o=F(n)},l(e){o=N(e,n)},m(e,r){w(e,o,r)},p(e,r){r&1&&n!==(n=e[3]+"")&&V(o,n)},d(e){e&&f(o)}}}function C(l){let n,o;return n=new z({props:{value:l[3],$$slots:{default:[A]},$$scope:{ctx:l}}}),{c(){$(n.$$.fragment)},l(e){q(n.$$.fragment,e)},m(e,r){v(n,e,r),o=!0},p(e,r){const c={};r&1&&(c.value=e[3]),r&65&&(c.$$scope={dirty:r,ctx:e}),n.$set(c)},i(e){o||(m(n.$$.fragment,e),o=!0)},o(e){_(n.$$.fragment,e),o=!1},d(e){T(n,e)}}}function G(l){let n,o,e=l[0],r=[];for(let t=0;t_(r[t],1,1,()=>{r[t]=null});return{c(){for(let t=0;t{"queryTypes"in t&&o(0,e=t.queryTypes),"queryType"in t&&o(1,r=t.queryType),"queryResult"in t&&o(2,c=t.queryResult)},[e,r,c]}class le extends E{constructor(n){super();I(this,n,K,H,Q,{queryTypes:0,queryType:1,queryResult:2})}}export{le as default,ae as load}; +import{S as E,i as I,s as Q,e as y,w as $,k as O,c as h,a as d,x as q,d as f,m as S,b as k,g as w,L as g,y as v,q as m,o as _,B as T,l as b,n as x,p as B,J as D,t as F,h as N,j as V}from"../../../../../../chunks/vendor-b58bb848.js";import{a as j,b as J}from"../../../../../../chunks/query-service-a89500ff.js";import{C as L}from"../../../../../../chunks/code-block-a24f68a3.js";import{F as P}from"../../../../../../chunks/filter-select-724bff2f.js";import{O as z}from"../../../../../../chunks/select-5b8ec3d3.js";import"../../../../../../chunks/route-for-api-46069891.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../../chunks/navigation-093db9e2.js";import"../../../../../../chunks/singletons-a6a7384f.js";import"../../../../../../chunks/stores-71c7b9ff.js";import"../../../../../../chunks/append-query-parameters-b8619cc0.js";function R(l,n,o){const e=l.slice();return e[3]=n[o],e}function A(l){let n=l[3]+"",o;return{c(){o=F(n)},l(e){o=N(e,n)},m(e,r){w(e,o,r)},p(e,r){r&1&&n!==(n=e[3]+"")&&V(o,n)},d(e){e&&f(o)}}}function C(l){let n,o;return n=new z({props:{value:l[3],$$slots:{default:[A]},$$scope:{ctx:l}}}),{c(){$(n.$$.fragment)},l(e){q(n.$$.fragment,e)},m(e,r){v(n,e,r),o=!0},p(e,r){const c={};r&1&&(c.value=e[3]),r&65&&(c.$$scope={dirty:r,ctx:e}),n.$set(c)},i(e){o||(m(n.$$.fragment,e),o=!0)},o(e){_(n.$$.fragment,e),o=!1},d(e){T(n,e)}}}function G(l){let n,o,e=l[0],r=[];for(let t=0;t_(r[t],1,1,()=>{r[t]=null});return{c(){for(let t=0;t{"queryTypes"in t&&o(0,e=t.queryTypes),"queryType"in t&&o(1,r=t.queryType),"queryResult"in t&&o(2,c=t.queryResult)},[e,r,c]}class le extends E{constructor(n){super();I(this,n,K,H,Q,{queryTypes:0,queryType:1,queryResult:2})}}export{le as default,ae as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js similarity index 93% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js index d8a117e969..afac63da4c 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js @@ -1 +1 @@ -import{S as F,i as O,s as P,e as S,c as $,a as v,d as k,g as b,o as g,p as W,q as w,n as z,w as y,x as D,y as L,T as m,B as R,aC as A,ak as B,k as I,t as E,l as N,m as q,h as C,b as V,L as T,j as G,al as H}from"../../../../../../chunks/vendor-b58bb848.js";import{g as j}from"../../../../../../chunks/query-service-3d3380f9.js";import{C as J}from"../../../../../../chunks/code-block-a24f68a3.js";import{B as K}from"../../../../../../chunks/button-131351bb.js";import{E as M}from"../../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../../chunks/route-for-api-90d9e1db.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";function Q(c){let e,t;return e=new M({props:{title:"No Stack Traces Found"}}),{c(){y(e.$$.fragment)},l(a){D(e.$$.fragment,a)},m(a,n){L(e,a,n),t=!0},p:m,i(a){t||(w(e.$$.fragment,a),t=!0)},o(a){g(e.$$.fragment,a),t=!1},d(a){R(e,a)}}}function U(c){let e,t,a,n,r,_=c[2].toLocaleTimeString()+"",i,p,o,f,h;t=new K({props:{icon:A,loading:c[3],$$slots:{default:[X]},$$scope:{ctx:c}}}),t.$on("click",c[4]);let u={ctx:c,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:6,blocks:[,,,]};return B(f=c[0],u),{c(){e=S("div"),y(t.$$.fragment),a=I(),n=S("p"),r=E("Stack Trace at "),i=E(_),p=I(),o=N(),u.block.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var l=v(e);D(t.$$.fragment,l),a=q(l),n=$(l,"P",{});var d=v(n);r=C(d,"Stack Trace at "),i=C(d,_),d.forEach(k),l.forEach(k),p=q(s),o=N(),u.block.l(s),this.h()},h(){V(e,"class","flex items-center gap-4")},m(s,l){b(s,e,l),L(t,e,null),T(e,a),T(e,n),T(n,r),T(n,i),b(s,p,l),b(s,o,l),u.block.m(s,u.anchor=l),u.mount=()=>o.parentNode,u.anchor=o,h=!0},p(s,l){c=s;const d={};l&8&&(d.loading=c[3]),l&128&&(d.$$scope={dirty:l,ctx:c}),t.$set(d),(!h||l&4)&&_!==(_=c[2].toLocaleTimeString()+"")&&G(i,_),u.ctx=c,l&1&&f!==(f=c[0])&&B(f,u)||H(u,c,l)},i(s){h||(w(t.$$.fragment,s),w(u.block),h=!0)},o(s){g(t.$$.fragment,s);for(let l=0;l<3;l+=1){const d=u.blocks[l];g(d)}h=!1},d(s){s&&k(e),R(t),s&&k(p),s&&k(o),u.block.d(s),u.token=null,u=null}}}function X(c){let e;return{c(){e=E("Refresh")},l(t){e=C(t,"Refresh")},m(t,a){b(t,e,a)},d(t){t&&k(e)}}}function Y(c){return{c:m,l:m,m,p:m,i:m,o:m,d:m}}function Z(c){let e,t,a;return t=new J({props:{content:c[6],language:"text"}}),{c(){e=S("div"),y(t.$$.fragment),this.h()},l(n){e=$(n,"DIV",{class:!0});var r=v(e);D(t.$$.fragment,r),r.forEach(k),this.h()},h(){V(e,"class","flex items-start h-full")},m(n,r){b(n,e,r),L(t,e,null),a=!0},p(n,r){const _={};r&1&&(_.content=n[6]),t.$set(_)},i(n){a||(w(t.$$.fragment,n),a=!0)},o(n){g(t.$$.fragment,n),a=!1},d(n){n&&k(e),R(t)}}}function x(c){return{c:m,l:m,m,p:m,i:m,o:m,d:m}}function ee(c){let e,t,a,n,r;const _=[U,Q],i=[];function p(o,f){return f&2&&(t=null),t==null&&(t=String(o[1].status)==="Running"),t?0:1}return a=p(c,-1),n=i[a]=_[a](c),{c(){e=S("section"),n.c()},l(o){e=$(o,"SECTION",{});var f=v(e);n.l(f),f.forEach(k)},m(o,f){b(o,e,f),i[a].m(e,null),r=!0},p(o,[f]){let h=a;a=p(o,f),a===h?i[a].p(o,f):(z(),g(i[h],1,1,()=>{i[h]=null}),W(),n=i[a],n?n.p(o,f):(n=i[a]=_[a](o),n.c()),w(n,1),n.m(e,null))},i(o){r||(w(n),r=!0)},o(o){g(n),r=!1},d(o){o&&k(e),i[a].d()}}}const fe=async function({params:c,stuff:e}){const{namespace:t}=c,{workflow:a}=e,n=await j({workflow:a,namespace:t});return{props:{workflow:a,namespace:t,stackTrace:n}}};function te(c,e,t){let{namespace:a}=e,{stackTrace:n}=e,{workflow:r}=e,_=new Date,i=!1;const p=async()=>{t(3,i=!0),t(0,n=await j({workflow:r,namespace:a})),t(3,i=!1),t(2,_=new Date)};return c.$$set=o=>{"namespace"in o&&t(5,a=o.namespace),"stackTrace"in o&&t(0,n=o.stackTrace),"workflow"in o&&t(1,r=o.workflow)},[n,r,_,i,p,a]}class ue extends F{constructor(e){super();O(this,e,te,ee,P,{namespace:5,stackTrace:0,workflow:1})}}export{ue as default,fe as load}; +import{S as F,i as O,s as P,e as S,c as $,a as v,d as k,g as b,o as g,p as W,q as w,n as z,w as y,x as D,y as L,T as m,B as R,aC as A,ak as B,k as I,t as E,l as N,m as q,h as C,b as V,L as T,j as G,al as H}from"../../../../../../chunks/vendor-b58bb848.js";import{g as j}from"../../../../../../chunks/query-service-a89500ff.js";import{C as J}from"../../../../../../chunks/code-block-a24f68a3.js";import{B as K}from"../../../../../../chunks/button-131351bb.js";import{E as M}from"../../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../../chunks/route-for-api-46069891.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";function Q(c){let e,t;return e=new M({props:{title:"No Stack Traces Found"}}),{c(){y(e.$$.fragment)},l(a){D(e.$$.fragment,a)},m(a,n){L(e,a,n),t=!0},p:m,i(a){t||(w(e.$$.fragment,a),t=!0)},o(a){g(e.$$.fragment,a),t=!1},d(a){R(e,a)}}}function U(c){let e,t,a,n,r,_=c[2].toLocaleTimeString()+"",i,p,o,f,h;t=new K({props:{icon:A,loading:c[3],$$slots:{default:[X]},$$scope:{ctx:c}}}),t.$on("click",c[4]);let u={ctx:c,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:6,blocks:[,,,]};return B(f=c[0],u),{c(){e=S("div"),y(t.$$.fragment),a=I(),n=S("p"),r=E("Stack Trace at "),i=E(_),p=I(),o=N(),u.block.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var l=v(e);D(t.$$.fragment,l),a=q(l),n=$(l,"P",{});var d=v(n);r=C(d,"Stack Trace at "),i=C(d,_),d.forEach(k),l.forEach(k),p=q(s),o=N(),u.block.l(s),this.h()},h(){V(e,"class","flex items-center gap-4")},m(s,l){b(s,e,l),L(t,e,null),T(e,a),T(e,n),T(n,r),T(n,i),b(s,p,l),b(s,o,l),u.block.m(s,u.anchor=l),u.mount=()=>o.parentNode,u.anchor=o,h=!0},p(s,l){c=s;const d={};l&8&&(d.loading=c[3]),l&128&&(d.$$scope={dirty:l,ctx:c}),t.$set(d),(!h||l&4)&&_!==(_=c[2].toLocaleTimeString()+"")&&G(i,_),u.ctx=c,l&1&&f!==(f=c[0])&&B(f,u)||H(u,c,l)},i(s){h||(w(t.$$.fragment,s),w(u.block),h=!0)},o(s){g(t.$$.fragment,s);for(let l=0;l<3;l+=1){const d=u.blocks[l];g(d)}h=!1},d(s){s&&k(e),R(t),s&&k(p),s&&k(o),u.block.d(s),u.token=null,u=null}}}function X(c){let e;return{c(){e=E("Refresh")},l(t){e=C(t,"Refresh")},m(t,a){b(t,e,a)},d(t){t&&k(e)}}}function Y(c){return{c:m,l:m,m,p:m,i:m,o:m,d:m}}function Z(c){let e,t,a;return t=new J({props:{content:c[6],language:"text"}}),{c(){e=S("div"),y(t.$$.fragment),this.h()},l(n){e=$(n,"DIV",{class:!0});var r=v(e);D(t.$$.fragment,r),r.forEach(k),this.h()},h(){V(e,"class","flex items-start h-full")},m(n,r){b(n,e,r),L(t,e,null),a=!0},p(n,r){const _={};r&1&&(_.content=n[6]),t.$set(_)},i(n){a||(w(t.$$.fragment,n),a=!0)},o(n){g(t.$$.fragment,n),a=!1},d(n){n&&k(e),R(t)}}}function x(c){return{c:m,l:m,m,p:m,i:m,o:m,d:m}}function ee(c){let e,t,a,n,r;const _=[U,Q],i=[];function p(o,f){return f&2&&(t=null),t==null&&(t=String(o[1].status)==="Running"),t?0:1}return a=p(c,-1),n=i[a]=_[a](c),{c(){e=S("section"),n.c()},l(o){e=$(o,"SECTION",{});var f=v(e);n.l(f),f.forEach(k)},m(o,f){b(o,e,f),i[a].m(e,null),r=!0},p(o,[f]){let h=a;a=p(o,f),a===h?i[a].p(o,f):(z(),g(i[h],1,1,()=>{i[h]=null}),W(),n=i[a],n?n.p(o,f):(n=i[a]=_[a](o),n.c()),w(n,1),n.m(e,null))},i(o){r||(w(n),r=!0)},o(o){g(n),r=!1},d(o){o&&k(e),i[a].d()}}}const fe=async function({params:c,stuff:e}){const{namespace:t}=c,{workflow:a}=e,n=await j({workflow:a,namespace:t});return{props:{workflow:a,namespace:t,stackTrace:n}}};function te(c,e,t){let{namespace:a}=e,{stackTrace:n}=e,{workflow:r}=e,_=new Date,i=!1;const p=async()=>{t(3,i=!0),t(0,n=await j({workflow:r,namespace:a})),t(3,i=!1),t(2,_=new Date)};return c.$$set=o=>{"namespace"in o&&t(5,a=o.namespace),"stackTrace"in o&&t(0,n=o.stackTrace),"workflow"in o&&t(1,r=o.workflow)},[n,r,_,i,p,a]}class ue extends F{constructor(e){super();O(this,e,te,ee,P,{namespace:5,stackTrace:0,workflow:1})}}export{ue as default,fe as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js similarity index 95% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js index b4be10a1af..45716eb368 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js @@ -1 +1 @@ -import{S as I,i as J,s as L,w as $,x as w,y as d,q as _,o as h,B as b,T as O,e as Q,t as x,k as N,c as E,a as W,h as y,d as k,m as j,b as T,g as F,L as g,j as P,p as q,J as z,n as v}from"../../../../../../chunks/vendor-b58bb848.js";import{g as A,W as D,a as G}from"../../../../../../chunks/workers-row-c83ee16c.js";import{E as K}from"../../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../../chunks/route-for-api-90d9e1db.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../../chunks/format-date-47255ab2.js";function S(i,e,s){const t=i.slice();return t[2]=e[s],t}function B(i){let e,s;return e=new K({props:{title:"No Workers Found"}}),{c(){$(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,r){d(e,t,r),s=!0},p:O,i(t){s||(_(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){b(e,t)}}}function M(i){let e,s,t;return e=new G({props:{poller:i[2]}}),{c(){$(e.$$.fragment),s=N()},l(r){w(e.$$.fragment,r),s=j(r)},m(r,u){d(e,r,u),F(r,s,u),t=!0},p(r,u){const m={};u&1&&(m.poller=r[2]),e.$set(m)},i(r){t||(_(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){b(e,r),r&&k(s)}}}function C(i){let e,s;return e=new D({props:{$$slots:{default:[M]},$$scope:{ctx:i}}}),{c(){$(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,r){d(e,t,r),s=!0},p(t,r){const u={};r&33&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){s||(_(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){b(e,t)}}}function R(i){let e,s,t,r,u,m,f=i[0].pollers,o=[];for(let l=0;lh(o[l],1,1,()=>{o[l]=null});let c=null;return f.length||(c=B()),{c(){e=Q("section"),s=Q("h3"),t=x("Task Queue: "),r=x(i[1]),u=N();for(let l=0;l{c=null}),q()):(c=B(),c.c(),_(c,1),c.m(e,null))}},i(l){if(!m){for(let a=0;a{"workers"in u&&s(0,t=u.workers),"taskQueue"in u&&s(1,r=u.taskQueue)},[t,r]}class le extends I{constructor(e){super();J(this,e,U,R,L,{workers:0,taskQueue:1})}}export{le as default,se as load}; +import{S as I,i as J,s as L,w as $,x as w,y as d,q as _,o as h,B as b,T as O,e as Q,t as x,k as N,c as E,a as W,h as y,d as k,m as j,b as T,g as F,L as g,j as P,p as q,J as z,n as v}from"../../../../../../chunks/vendor-b58bb848.js";import{g as A,W as D,a as G}from"../../../../../../chunks/workers-row-7bc8cde3.js";import{E as K}from"../../../../../../chunks/empty-state-a54f1d18.js";import"../../../../../../chunks/route-for-api-46069891.js";import"../../../../../../chunks/notifications-c07f99ce.js";import"../../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../../chunks/format-date-47255ab2.js";function S(i,e,s){const t=i.slice();return t[2]=e[s],t}function B(i){let e,s;return e=new K({props:{title:"No Workers Found"}}),{c(){$(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,r){d(e,t,r),s=!0},p:O,i(t){s||(_(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){b(e,t)}}}function M(i){let e,s,t;return e=new G({props:{poller:i[2]}}),{c(){$(e.$$.fragment),s=N()},l(r){w(e.$$.fragment,r),s=j(r)},m(r,u){d(e,r,u),F(r,s,u),t=!0},p(r,u){const m={};u&1&&(m.poller=r[2]),e.$set(m)},i(r){t||(_(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){b(e,r),r&&k(s)}}}function C(i){let e,s;return e=new D({props:{$$slots:{default:[M]},$$scope:{ctx:i}}}),{c(){$(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,r){d(e,t,r),s=!0},p(t,r){const u={};r&33&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){s||(_(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){b(e,t)}}}function R(i){let e,s,t,r,u,m,f=i[0].pollers,o=[];for(let l=0;lh(o[l],1,1,()=>{o[l]=null});let c=null;return f.length||(c=B()),{c(){e=Q("section"),s=Q("h3"),t=x("Task Queue: "),r=x(i[1]),u=N();for(let l=0;l{c=null}),q()):(c=B(),c.c(),_(c,1),c.m(e,null))}},i(l){if(!m){for(let a=0;a{"workers"in u&&s(0,t=u.workers),"taskQueue"in u&&s(1,r=u.taskQueue)},[t,r]}class le extends I{constructor(e){super();J(this,e,U,R,L,{workers:0,taskQueue:1})}}export{le as default,se as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js similarity index 97% rename from server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js index e20fb18bc2..d471b843d2 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js @@ -1,4 +1,4 @@ -import{S as I,i as T,s as H,K as U,e as M,c as D,a as G,d as $,b as P,a6 as A,g as w,M as V,N as z,O as Q,q as _,o as p,F as X,G as Y,ak as q,t as J,w as d,k as B,l as v,h as K,x as k,m as N,L as Z,y as b,H as x,al as ee,B as y,T as h,n as L,p as O,J as te}from"../../../../chunks/vendor-b58bb848.js";import{f as re}from"../../../../chunks/workflow-status-3e3f99a8.js";import{W as oe,a as ae,b as se,c as le}from"../../../../chunks/_workflows-loading-ad4694f3.js";import{E as ne}from"../../../../chunks/empty-state-a54f1d18.js";import{P as ie}from"../../../../chunks/pagination-ac5deabd.js";import"../../../../chunks/route-for-api-90d9e1db.js";import"../../../../chunks/notifications-c07f99ce.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/format-date-47255ab2.js";import"../../../../chunks/namespace-0cacc6ef.js";import"../../../../chunks/stores-71c7b9ff.js";import"../../../../chunks/route-for-11851a4f.js";import"../../../../chunks/navigation-093db9e2.js";import"../../../../chunks/singletons-a6a7384f.js";import"../../../../chunks/select-5b8ec3d3.js";import"../../../../chunks/filter-select-724bff2f.js";import"../../../../chunks/append-query-parameters-b8619cc0.js";function fe(l){let e,r,t;const o=l[2].default,n=U(o,l,l[1],null);return{c(){e=M("div"),n&&n.c(),this.h()},l(a){e=D(a,"DIV",{class:!0});var i=G(e);n&&n.l(i),i.forEach($),this.h()},h(){P(e,"class",r=A(`${l[0]} +import{S as I,i as T,s as H,K as U,e as M,c as D,a as G,d as $,b as P,a6 as A,g as w,M as V,N as z,O as Q,q as _,o as p,F as X,G as Y,ak as q,t as J,w as d,k as B,l as v,h as K,x as k,m as N,L as Z,y as b,H as x,al as ee,B as y,T as h,n as L,p as O,J as te}from"../../../../chunks/vendor-b58bb848.js";import{f as re}from"../../../../chunks/workflow-status-15cd5fff.js";import{W as oe,a as ae,b as se,c as le}from"../../../../chunks/_workflows-loading-3836208a.js";import{E as ne}from"../../../../chunks/empty-state-a54f1d18.js";import{P as ie}from"../../../../chunks/pagination-ac5deabd.js";import"../../../../chunks/route-for-api-46069891.js";import"../../../../chunks/notifications-c07f99ce.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/format-date-47255ab2.js";import"../../../../chunks/namespace-0cacc6ef.js";import"../../../../chunks/stores-71c7b9ff.js";import"../../../../chunks/route-for-11851a4f.js";import"../../../../chunks/navigation-093db9e2.js";import"../../../../chunks/singletons-a6a7384f.js";import"../../../../chunks/select-5b8ec3d3.js";import"../../../../chunks/filter-select-724bff2f.js";import"../../../../chunks/append-query-parameters-b8619cc0.js";function fe(l){let e,r,t;const o=l[2].default,n=U(o,l,l[1],null);return{c(){e=M("div"),n&&n.c(),this.h()},l(a){e=D(a,"DIV",{class:!0});var i=G(e);n&&n.l(i),i.forEach($),this.h()},h(){P(e,"class",r=A(`${l[0]} rounded-sm text-center inline-block diff --git a/server/generated/ui/_app/start-39eaac60.js b/server/generated/ui/_app/start-aa505e82.js similarity index 95% rename from server/generated/ui/_app/start-39eaac60.js rename to server/generated/ui/_app/start-aa505e82.js index 15e79d409c..41198f1748 100644 --- a/server/generated/ui/_app/start-39eaac60.js +++ b/server/generated/ui/_app/start-aa505e82.js @@ -1 +1 @@ -var pe=Object.defineProperty,me=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var te=(n,e,s)=>e in n?pe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s,S=(n,e)=>{for(var s in e||(e={}))se.call(e,s)&&te(n,s,e[s]);if(Y)for(var s of Y(e))re.call(e,s)&&te(n,s,e[s]);return n},G=(n,e)=>me(n,ge(e));var ne=(n,e)=>{var s={};for(var o in n)se.call(n,o)&&e.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&Y)for(var o of Y(n))e.indexOf(o)<0&&re.call(n,o)&&(s[o]=n[o]);return s};import{S as we,i as $e,s as be,e as ve,c as ke,a as ye,d as R,b as F,f as z,g as L,t as Ee,h as Re,j as Le,k as Ae,l as m,m as Oe,n as A,o as g,p as O,q as w,r as Pe,u as Ie,v as H,w as k,x as V,y,z as D,A as N,B as E,C as U,D as M,E as ie}from"./chunks/vendor-b58bb848.js";import{i as Te}from"./chunks/singletons-a6a7384f.js";function Se(n){let e,s,o;const a=[n[1]||{}];var i=n[0][0];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ve(n){let e,s,o;const a=[n[1]||{}];var i=n[0][0];function c(t){let r={$$slots:{default:[Xe]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function De(n){let e,s,o;const a=[n[2]||{}];var i=n[0][1];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ne(n){let e,s,o;const a=[n[2]||{}];var i=n[0][1];function c(t){let r={$$slots:{default:[Fe]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ue(n){let e,s,o;const a=[n[3]||{}];var i=n[0][2];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ce(n){let e,s,o;const a=[n[3]||{}];var i=n[0][2];function c(t){let r={$$slots:{default:[Me]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function je(n){let e,s,o;const a=[n[4]||{}];var i=n[0][3];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function qe(n){let e,s,o;const a=[n[4]||{}];var i=n[0][3];function c(t){let r={$$slots:{default:[Ge]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function ze(n){let e,s,o;const a=[n[5]||{}];var i=n[0][4];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Je(n){let e,s,o;const a=[n[5]||{}];var i=n[0][4];function c(t){let r={$$slots:{default:[Ye]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ke(n){let e,s,o;const a=[n[6]||{}];var i=n[0][5];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Be(n){let e,s,o;const a=[n[6]||{}];var i=n[0][5];function c(t){let r={$$slots:{default:[We]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function We(n){let e,s,o;const a=[n[7]||{}];var i=n[0][6];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ye(n){let e,s,o,a;const i=[Be,Ke],c=[];function t(r,l){return r[0][6]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Ge(n){let e,s,o,a;const i=[Je,ze],c=[];function t(r,l){return r[0][5]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Me(n){let e,s,o,a;const i=[qe,je],c=[];function t(r,l){return r[0][4]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Fe(n){let e,s,o,a;const i=[Ce,Ue],c=[];function t(r,l){return r[0][3]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Xe(n){let e,s,o,a;const i=[Ne,De],c=[];function t(r,l){return r[0][2]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function oe(n){let e,s=n[9]&&ae(n);return{c(){e=ve("div"),s&&s.c(),this.h()},l(o){e=ke(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var a=ye(e);s&&s.l(a),a.forEach(R),this.h()},h(){F(e,"id","svelte-announcer"),F(e,"aria-live","assertive"),F(e,"aria-atomic","true"),z(e,"position","absolute"),z(e,"left","0"),z(e,"top","0"),z(e,"clip","rect(0 0 0 0)"),z(e,"clip-path","inset(50%)"),z(e,"overflow","hidden"),z(e,"white-space","nowrap"),z(e,"width","1px"),z(e,"height","1px")},m(o,a){L(o,e,a),s&&s.m(e,null)},p(o,a){o[9]?s?s.p(o,a):(s=ae(o),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(o){o&&R(e),s&&s.d()}}}function ae(n){let e;return{c(){e=Ee(n[10])},l(s){e=Re(s,n[10])},m(s,o){L(s,e,o)},p(s,o){o&1024&&Le(e,s[10])},d(s){s&&R(e)}}}function He(n){let e,s,o,a,i;const c=[Ve,Se],t=[];function r(f,d){return f[0][1]?0:1}e=r(n),s=t[e]=c[e](n);let l=n[8]&&oe(n);return{c(){s.c(),o=Ae(),l&&l.c(),a=m()},l(f){s.l(f),o=Oe(f),l&&l.l(f),a=m()},m(f,d){t[e].m(f,d),L(f,o,d),l&&l.m(f,d),L(f,a,d),i=!0},p(f,[d]){let p=e;e=r(f),e===p?t[e].p(f,d):(A(),g(t[p],1,1,()=>{t[p]=null}),O(),s=t[e],s?s.p(f,d):(s=t[e]=c[e](f),s.c()),w(s,1),s.m(o.parentNode,o)),f[8]?l?l.p(f,d):(l=oe(f),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},i(f){i||(w(s),i=!0)},o(f){g(s),i=!1},d(f){t[e].d(f),f&&R(o),l&&l.d(f),f&&R(a)}}}function Qe(n,e,s){let{stores:o}=e,{page:a}=e,{components:i}=e,{props_0:c=null}=e,{props_1:t=null}=e,{props_2:r=null}=e,{props_3:l=null}=e,{props_4:f=null}=e,{props_5:d=null}=e,{props_6:p=null}=e;Pe("__svelte__",o),Ie(o.page.notify);let h=!1,b=!1,C=null;return H(()=>{const $=o.page.subscribe(()=>{h&&(s(9,b=!0),s(10,C=document.title||"untitled page"))});return s(8,h=!0),$}),n.$$set=$=>{"stores"in $&&s(11,o=$.stores),"page"in $&&s(12,a=$.page),"components"in $&&s(0,i=$.components),"props_0"in $&&s(1,c=$.props_0),"props_1"in $&&s(2,t=$.props_1),"props_2"in $&&s(3,r=$.props_2),"props_3"in $&&s(4,l=$.props_3),"props_4"in $&&s(5,f=$.props_4),"props_5"in $&&s(6,d=$.props_5),"props_6"in $&&s(7,p=$.props_6)},n.$$.update=()=>{n.$$.dirty&6144&&o.page.set(a)},[i,c,t,r,l,f,d,p,h,b,C,o,a]}class Ze extends we{constructor(e){super();$e(this,e,Qe,He,be,{stores:11,page:12,components:0,props_0:1,props_1:2,props_2:3,props_3:4,props_4:5,props_5:6,props_6:7})}}const xe="modulepreload",le={},et="/_app/",v=function(e,s){return!s||s.length===0?e():Promise.all(s.map(o=>{if(o=`${et}${o}`,o in le)return;le[o]=!0;const a=o.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${i}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":xe,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((t,r)=>{c.addEventListener("load",t),c.addEventListener("error",r)})})).then(()=>e())},u=[()=>v(()=>import("./pages/__layout.svelte-c5ead779.js"),["pages/__layout.svelte-c5ead779.js","assets/pages/__layout.svelte-91c16ed1.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/get-context-1ac24eef.js","chunks/data-converter-config-851e08df.js","chunks/error-a678593b.js","assets/error-c8fecd8f.css"]),()=>v(()=>import("./pages/__error.svelte-e33a2959.js"),["pages/__error.svelte-e33a2959.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/error-a678593b.js","assets/error-c8fecd8f.css","chunks/stores-71c7b9ff.js","chunks/is-network-error-ac7c8caf.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js"]),()=>v(()=>import("./pages/index.svelte-4ef90097.js"),["pages/index.svelte-4ef90097.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/data-converter/_port_.svelte-9fb32a52.js"),["pages/data-converter/_port_.svelte-9fb32a52.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/notifications-c07f99ce.js","chunks/data-converter-config-851e08df.js"]),()=>v(()=>import("./pages/namespaces/index.svelte-442fb3cd.js"),["pages/namespaces/index.svelte-442fb3cd.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/index.svelte-a4ce75e3.js"),["pages/namespaces/_namespace_/index.svelte-a4ce75e3.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js"),["pages/namespaces/_namespace_/workflows/index.svelte-6a7d91a6.js","assets/pages/namespaces/_namespace_/workflows/index.svelte-6c1e8cc5.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-3e3f99a8.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/_workflows-loading-ad4694f3.js","assets/_workflows-loading-cdc4f63d.css","chunks/format-date-47255ab2.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/filter-select-724bff2f.js","chunks/append-query-parameters-b8619cc0.js","chunks/empty-state-a54f1d18.js","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-7e97ea88.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-fc48ff67.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-3e3f99a8.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/route-for-11851a4f.js","chunks/button-131351bb.js","assets/button-7e73ad23.css","chunks/stores-71c7b9ff.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/index.svelte-81112681.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/index.svelte-81112681.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5c7b1c37.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/query-service-3d3380f9.js","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css","chunks/button-131351bb.js","assets/button-7e73ad23.css","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-b4f83521.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-4c5bf35f.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/data-converter-config-851e08df.js","chunks/is-event-type-6f6767d3.js","chunks/route-for-11851a4f.js","chunks/stores-71c7b9ff.js","chunks/append-query-parameters-b8619cc0.js","chunks/get-context-1ac24eef.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/index.svelte-b2396148.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/index.svelte-b2396148.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/__layout.svelte-a5f49c84.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/__layout.svelte-a5f49c84.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/is-event-type-6f6767d3.js","chunks/event-table-9f78322a.js","assets/event-table-9b0ac71f.css","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css","chunks/stores-71c7b9ff.js","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/format-camel-case-8b7e013d.js","chunks/route-for-11851a4f.js","chunks/format-date-47255ab2.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/index.svelte-ba42b8c6.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/index.svelte-ba42b8c6.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-65667a77.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-65667a77.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-c8f515ec.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-11851a4f.js","chunks/stores-71c7b9ff.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/index.svelte-b26f9f2f.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/index.svelte-b26f9f2f.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/events/_id_.svelte-c8ad5f14.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/events/_id_.svelte-c8ad5f14.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/__layout.svelte-ab14eab3.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/__layout.svelte-ab14eab3.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-table-9f78322a.js","assets/event-table-9b0ac71f.css","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css","chunks/stores-71c7b9ff.js","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/format-camel-case-8b7e013d.js","chunks/route-for-11851a4f.js","chunks/format-date-47255ab2.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/index.svelte-cf6aee40.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/index.svelte-cf6aee40.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/pending-_id_.svelte-5fcff061.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/pending-_id_.svelte-5fcff061.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/stores-71c7b9ff.js","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/event-_id_.svelte-905e6036.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/event-_id_.svelte-905e6036.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/json.svelte-5f2d2af0.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/json.svelte-5f2d2af0.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-75189f37.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workers-row-c83ee16c.js","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/format-date-47255ab2.js","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-cc41dc7b.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/query-service-3d3380f9.js","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js"),["pages/namespaces/_namespace_/archival/index.svelte-cb227b69.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-3e3f99a8.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/_workflows-loading-ad4694f3.js","assets/_workflows-loading-cdc4f63d.css","chunks/format-date-47255ab2.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/filter-select-724bff2f.js","chunks/append-query-parameters-b8619cc0.js","chunks/empty-state-a54f1d18.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js"),["pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-0cc5c6a0.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workers-row-c83ee16c.js","chunks/route-for-api-90d9e1db.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/format-date-47255ab2.js","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workers/_queue_/index.svelte-d209f4e2.js"),["pages/namespaces/_namespace_/workers/_queue_/index.svelte-d209f4e2.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"])],_=decodeURIComponent,tt=[[/^\/$/,[u[0],u[2]],[u[1]]],[/^\/data-converter\/([^/]+?)\/?$/,[u[0],u[3]],[u[1]],n=>({port:_(n[1])})],[/^\/namespaces\/?$/,[u[0],u[4]],[u[1]]],[/^\/namespaces\/([^/]+?)\/?$/,[u[0],u[5]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workflows\/?$/,[u[0],u[6]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/?$/,[u[0],u[7],u[8]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/stack-trace\/?$/,[u[0],u[7],u[9]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/?$/,[u[0],u[7],u[10],u[11]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/?$/,[u[0],u[7],u[10],u[12],u[13]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/activity-([^/]+?)\/?$/,[u[0],u[7],u[10],u[12],u[14],u[15]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),eventId:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/activity-([^/]+?)\/events\/([^/]+?)\/?$/,[u[0],u[7],u[10],u[12],u[14],u[16]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),eventId:_(n[4]),id:_(n[5])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/?$/,[u[0],u[7],u[10],u[17],u[18]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/pending-([^/]+?)\/?$/,[u[0],u[7],u[10],u[17],u[19]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),id:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/event-([^/]+?)\/?$/,[u[0],u[7],u[10],u[17],u[20]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),id:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/json\/?$/,[u[0],u[7],u[10],u[21]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/workers\/?$/,[u[0],u[7],u[22]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/query\/?$/,[u[0],u[7],u[23]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/archival\/?$/,[u[0],u[24]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workers\/([^/]+?)\/?$/,[u[0],u[25],u[26]],[u[1]],n=>({namespace:_(n[1]),queue:_(n[2])})]],st=[u[0](),u[1]()];function rt(n){let e=n.baseURI;if(!e){const s=n.getElementsByTagName("base");e=s.length?s[0].href:n.URL}return e}let Q="";function nt(n){Q=n.base,n.assets}function it(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&/\/[^./]+$/.test(n)?n+"/":n}const de="sveltekit:scroll";let K={};try{K=JSON.parse(sessionStorage[de])}catch{}function X(n){K[n]=Z()}function Z(){return{x:pageXOffset,y:pageYOffset}}function ce(n){return n.composedPath().find(s=>s instanceof Node&&s.nodeName.toUpperCase()==="A")}function fe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}class ot{constructor({base:e,routes:s,trailing_slash:o,renderer:a}){var c,t;this.base=e,this.routes=s,this.trailing_slash=o,this.navigating=0,this.renderer=a,a.router=this,this.enabled=!0,this.initialized=!1,this.current_history_index=(t=(c=history.state)==null?void 0:c["sveltekit:index"])!=null?t:0,this.current_history_index===0&&history.replaceState(G(S({},history.state),{"sveltekit:index":0}),"",location.href);const i=K[this.current_history_index];i&&scrollTo(i.x,i.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",a=>{let i=!1;const c={from:this.renderer.current.url,to:null,cancel:()=>i=!0};this.callbacks.before_navigate.forEach(t=>t(c)),i?(a.preventDefault(),a.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){X(this.current_history_index);try{sessionStorage[de]=JSON.stringify(K)}catch{}}});const e=a=>{const i=ce(a);i&&i.href&&i.hasAttribute("sveltekit:prefetch")&&this.prefetch(fe(i))};let s;const o=a=>{clearTimeout(s),s=setTimeout(()=>{var i;(i=a.target)==null||i.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",e),addEventListener("mousemove",o),addEventListener("sveltekit:trigger_prefetch",e),addEventListener("click",a=>{if(!this.enabled||a.button||a.which!==1||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.defaultPrevented)return;const i=ce(a);if(!i||!i.href)return;const c=i instanceof SVGAElement,t=fe(i);if(t.toString()===location.href){location.hash||a.preventDefault();return}if(!c&&t.origin==="null")return;const l=(i.getAttribute("rel")||"").split(/\s+/);if(i.hasAttribute("download")||l&&l.includes("external")||(c?i.target.baseVal:i.target))return;const[f,d]=t.href.split("#");if(d!==void 0&&f===location.href.split("#")[0]){this.hash_navigating=!0,X(this.current_history_index),this.renderer.update_page_store(new URL(t.href));return}this._navigate({url:t,scroll:i.hasAttribute("sveltekit:noscroll")?Z():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>a.preventDefault(),blocked:()=>a.preventDefault()})}),addEventListener("popstate",a=>{if(a.state&&this.enabled){if(a.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:K[a.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=a.state["sveltekit:index"]},blocked:()=>{const i=this.current_history_index-a.state["sveltekit:index"];history.go(i)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(G(S({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(e){return e.origin===location.origin&&e.pathname.startsWith(this.base)}parse(e){if(this.owns(e)){const s=decodeURI(e.pathname.slice(this.base.length)||"/");return{id:e.pathname+e.search,routes:this.routes.filter(([o])=>o.test(s)),url:e,path:s,initial:!this.initialized}}}async goto(e,{noscroll:s=!1,replaceState:o=!1,keepfocus:a=!1,state:i={}}={},c){const t=new URL(e,rt(document));return this.enabled?this._navigate({url:t,scroll:s?Z():null,keepfocus:a,chain:c,details:{state:i,replaceState:o},accepted:()=>{},blocked:()=>{}}):(location.href=t.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(e){const s=this.parse(e);if(!s)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(s)}after_navigate(e){H(()=>(this.callbacks.after_navigate.push(e),()=>{const s=this.callbacks.after_navigate.indexOf(e);this.callbacks.after_navigate.splice(s,1)}))}before_navigate(e){H(()=>(this.callbacks.before_navigate.push(e),()=>{const s=this.callbacks.before_navigate.indexOf(e);this.callbacks.before_navigate.splice(s,1)}))}async _navigate({url:e,scroll:s,keepfocus:o,chain:a,details:i,accepted:c,blocked:t}){const r=this.renderer.current.url;let l=!1;const f={from:r,to:e,cancel:()=>l=!0};if(this.callbacks.before_navigate.forEach(b=>b(f)),l){t();return}const d=this.parse(e);if(!d)return location.href=e.href,new Promise(()=>{});X(this.current_history_index),c(),this.navigating++;const p=it(e.pathname,this.trailing_slash);d.url=new URL(e.origin+p+e.search+e.hash);const h=this.navigating_token={};if(await this.renderer.handle_navigation(d,a,!1,{scroll:s,keepfocus:o}),this.navigating--,this.navigating_token===h){if(!this.navigating){const b={from:r,to:e};this.callbacks.after_navigate.forEach(C=>C(b))}if(i){const b=i.replaceState?0:1;i.state["sveltekit:index"]=this.current_history_index+=b,history[i.replaceState?"replaceState":"pushState"](i.state,"",d.url)}}}}function ue(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function at(n){let e=5381,s=n.length;if(typeof n=="string")for(;s;)e=e*33^n.charCodeAt(--s);else for(;s;)e=e*33^n[--s];return(e>>>0).toString(36)}function _e(n){const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const s=n.status;if(!n.error&&e)return{status:s||500,error:new Error};const o=typeof n.error=="string"?new Error(n.error):n.error;return o instanceof Error?!s||s<400||s>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:o}):{status:s,error:o}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof o}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function he(n){const e=M(n);let s=!0;function o(){s=!0,e.update(c=>c)}function a(c){s=!1,e.set(c)}function i(c){let t;return e.subscribe(r=>{(t===void 0||s&&r!==t)&&c(t=r)})}return{notify:o,set:a,subscribe:i}}function lt(){const{set:n,subscribe:e}=M(!1),s="1646964997048";let o;async function a(){clearTimeout(o);const c=await fetch(`${Q}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(c.ok){const{version:t}=await c.json(),r=t!==s;return r&&(n(!0),clearTimeout(o)),r}else throw new Error(`Version check failed: ${c.status}`)}return{subscribe:e,check:a}}function ct(n,e){let o=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(o+=`[sveltekit\\:data-body="${at(e.body)}"]`);const a=document.querySelector(o);if(a&&a.textContent){const i=JSON.parse(a.textContent),{body:c}=i,t=ne(i,["body"]);return Promise.resolve(new Response(c,t))}return fetch(n,e)}class ft{constructor({Root:e,fallback:s,target:o,session:a}){this.Root=e,this.fallback=s,this.router,this.target=o,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:he({}),page:he({}),navigating:M(null),session:M(a),updated:lt()},this.$session=null,this.root=null;let i=!1;this.stores.session.subscribe(async c=>{if(this.$session=c,!i||!this.router)return;this.session_id+=1;const t=this.router.parse(new URL(location.href));t&&this.update(t,[],!0)}),i=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:e,error:s,nodes:o,params:a}){const i=new URL(location.href),c=[];let t={},r,l;try{for(let f=0;f10||s.includes(e.url.pathname))c=await this._load_error({status:500,error:new Error("Redirect loop"),url:e.url});else{this.router?this.router.goto(new URL(c.redirect,e.url).href,{},[...s,e.url.pathname]):location.href=new URL(c.redirect,location.href).href;return}else if(((l=(r=c.props)==null?void 0:r.page)==null?void 0:l.status)>=400&&await this.stores.updated.check()){location.href=e.url.href;return}if(this.updating=!0,this.started?(this.current=c.state,this.root.$set(c.props),this.stores.navigating.set(null)):this._init(c),a){const{scroll:d,keepfocus:p}=a;if(!p){const h=document.documentElement,b=h.getAttribute("tabindex");(f=getSelection())==null||f.removeAllRanges(),h.tabIndex=-1,h.focus(),b!==null?h.setAttribute("tabindex",b):h.removeAttribute("tabindex")}if(await ie(),this.autoscroll){const h=e.url.hash&&document.getElementById(e.url.hash.slice(1));d?scrollTo(d.x,d.y):h?h.scrollIntoView():scrollTo(0,0)}}else await ie();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,c.props.page&&(this.page=c.props.page),!this.router)return;const t=c.state.branch[c.state.branch.length-1];t&&t.module.router===!1?this.router.disable():this.router.enable()}load(e){return this.loading.promise=this._get_navigation_result(e,!1),this.loading.id=e.id,this.loading.promise}invalidate(e){return this.invalid.add(e),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const s=this.router&&this.router.parse(new URL(location.href));s&&await this.update(s,[],!0),this.invalidating=null})),this.invalidating}update_page_store(e){this.stores.page.set(G(S({},this.page),{url:e})),this.stores.page.notify()}_init(e){this.current=e.state;const s=document.querySelector("style[data-svelte]");if(s&&s.remove(),this.page=e.props.page,this.root=new this.Root({target:this.target,props:S({stores:this.stores},e.props),hydrate:!0}),this.started=!0,this.router){const o={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(a=>a(o))}}async _get_navigation_result(e,s){if(this.loading.id===e.id&&this.loading.promise)return this.loading.promise;for(let o=0;or()),i+=1;else break}const c=await this._load({route:a,info:e},s);if(c)return c}if(e.initial)return await this._load_error({status:404,error:new Error(`Not found: ${e.url.pathname}`),url:e.url})}async _get_navigation_result_from_branch({url:e,params:s,stuff:o,branch:a,status:i,error:c}){const t=a.filter(Boolean),r=t.find(p=>p.loaded&&p.loaded.redirect),l={redirect:r&&r.loaded?r.loaded.redirect:void 0,state:{url:e,params:s,branch:a,session_id:this.session_id},props:{components:t.map(p=>p.module.default)}};for(let p=0;p{Object.defineProperty(l.props.page,h,{get:()=>{throw new Error(`$page.${h} has been replaced by $page.url.${b}`)}})};p("origin","origin"),p("path","pathname"),p("query","searchParams")}const f=t[t.length-1],d=f.loaded&&f.loaded.maxage;if(d){const p=e.pathname+e.search;let h=!1;const b=()=>{this.cache.get(p)===l&&this.cache.delete(p),$(),clearTimeout(C)},C=setTimeout(b,d*1e3),$=this.stores.session.subscribe(()=>{h&&b()});h=!0,this.cache.set(p,l)}return l}async _load_node({status:e,error:s,module:o,url:a,params:i,stuff:c,props:t}){const r={module:o,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:c};t&&r.uses.dependencies.add(a.href);const l={};for(const d in i)Object.defineProperty(l,d,{get(){return r.uses.params.add(d),i[d]},enumerable:!0});const f=this.$session;if(o.load){const{started:d}=this,p={params:l,props:t||{},get url(){return r.uses.url=!0,a},get session(){return r.uses.session=!0,f},get stuff(){return r.uses.stuff=!0,S({},c)},fetch(b,C){const $=typeof b=="string"?b:b.url,{href:q}=new URL($,a);return r.uses.dependencies.add(q),d?fetch(b,C):ct(b,C)}};s&&(p.status=e,p.error=s);const h=await o.load.call(null,p);if(!h)throw new Error("load function must return a value");r.loaded=_e(h),r.loaded.stuff&&(r.stuff=r.loaded.stuff)}else t&&(r.loaded=_e({props:t}));return r}async _load({route:e,info:{url:s,path:o}},a){const i=s.pathname+s.search;if(!a){const P=this.cache.get(i);if(P)return P}const[c,t,r,l,f]=e,d=l?l(c.exec(o)):{},p=this.current.url&&{url:i!==this.current.url.pathname+this.current.url.search,params:Object.keys(d).filter(P=>this.current.params[P]!==d[P]),session:this.session_id!==this.current.session_id};let h=[],b={},C=!1,$=200,q;t.forEach(P=>P());e:for(let P=0;Pj.uses.params.has(J))||p.session&&j.uses.session||Array.from(j.uses.dependencies).some(J=>this.invalid.has(J))||C&&j.uses.stuff){let J={};const x=f&&P===t.length-1;if(x){const W=await fetch(`${s.pathname}${s.pathname.endsWith("/")?"":"/"}__data.json${s.search}`,{headers:{"x-sveltekit-load":"true"}});if(W.ok){const ee=W.headers.get("x-sveltekit-location");if(ee)return{redirect:ee,props:{},state:this.current};J=await W.json()}else $=W.status,q=new Error("Failed to load data")}if(q||(I=await this._load_node({module:T,url:s,params:d,props:J,stuff:b})),I&&(x&&(I.uses.url=!0),I.loaded)){if(I.loaded.fallthrough)return;if(I.loaded.error&&($=I.loaded.status,q=I.loaded.error),I.loaded.redirect)return{redirect:I.loaded.redirect,props:{},state:this.current};I.loaded.stuff&&(C=!0)}}else I=j}catch(T){$=500,q=ue(T)}if(q){for(;P--;)if(r[P]){let T,j,B=P;for(;!(j=h[B]);)B-=1;try{if(T=await this._load_node({status:$,error:q,module:await r[P](),url:s,params:d,stuff:j.stuff}),T&&T.loaded&&T.loaded.error)continue;T&&T.loaded&&T.loaded.stuff&&(b=S(S({},b),T.loaded.stuff)),h=h.slice(0,B+1).concat(T);break e}catch{continue}}return await this._load_error({status:$,error:q,url:s})}else I&&I.loaded&&I.loaded.stuff&&(b=S(S({},b),I.loaded.stuff)),h.push(I)}return await this._get_navigation_result_from_branch({url:s,params:d,stuff:b,branch:h,status:$,error:q})}async _load_error({status:e,error:s,url:o}){var l,f;const a={},i=await this._load_node({module:await this.fallback[0],url:o,params:a,stuff:{}}),c=await this._load_node({status:e,error:s,module:await this.fallback[1],url:o,params:a,stuff:i&&i.loaded&&i.loaded.stuff||{}}),t=[i,c],r=S(S({},(l=i==null?void 0:i.loaded)==null?void 0:l.stuff),(f=c==null?void 0:c.loaded)==null?void 0:f.stuff);return await this._get_navigation_result_from_branch({url:o,params:a,stuff:r,branch:t,status:e,error:s})}}async function dt({paths:n,target:e,session:s,route:o,spa:a,trailing_slash:i,hydrate:c}){const t=new ft({Root:Ze,fallback:st,target:e,session:s}),r=o?new ot({base:n.base,routes:tt,trailing_slash:i,renderer:t}):null;Te({router:r,renderer:t}),nt(n),c&&await t.start(c),r&&(a&&r.goto(location.href,{replaceState:!0},[]),r.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{dt as start}; +var pe=Object.defineProperty,me=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var te=(n,e,s)=>e in n?pe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s,S=(n,e)=>{for(var s in e||(e={}))se.call(e,s)&&te(n,s,e[s]);if(Y)for(var s of Y(e))re.call(e,s)&&te(n,s,e[s]);return n},G=(n,e)=>me(n,ge(e));var ne=(n,e)=>{var s={};for(var o in n)se.call(n,o)&&e.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&Y)for(var o of Y(n))e.indexOf(o)<0&&re.call(n,o)&&(s[o]=n[o]);return s};import{S as we,i as $e,s as be,e as ve,c as ke,a as ye,d as R,b as F,f as z,g as L,t as Ee,h as Re,j as Le,k as Ae,l as m,m as Oe,n as A,o as g,p as O,q as w,r as Pe,u as Ie,v as H,w as k,x as V,y,z as D,A as N,B as E,C as U,D as M,E as ie}from"./chunks/vendor-b58bb848.js";import{i as Te}from"./chunks/singletons-a6a7384f.js";function Se(n){let e,s,o;const a=[n[1]||{}];var i=n[0][0];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ve(n){let e,s,o;const a=[n[1]||{}];var i=n[0][0];function c(t){let r={$$slots:{default:[Xe]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function De(n){let e,s,o;const a=[n[2]||{}];var i=n[0][1];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ne(n){let e,s,o;const a=[n[2]||{}];var i=n[0][1];function c(t){let r={$$slots:{default:[Fe]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ue(n){let e,s,o;const a=[n[3]||{}];var i=n[0][2];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ce(n){let e,s,o;const a=[n[3]||{}];var i=n[0][2];function c(t){let r={$$slots:{default:[Me]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function je(n){let e,s,o;const a=[n[4]||{}];var i=n[0][3];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function qe(n){let e,s,o;const a=[n[4]||{}];var i=n[0][3];function c(t){let r={$$slots:{default:[Ge]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function ze(n){let e,s,o;const a=[n[5]||{}];var i=n[0][4];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Je(n){let e,s,o;const a=[n[5]||{}];var i=n[0][4];function c(t){let r={$$slots:{default:[Ye]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ke(n){let e,s,o;const a=[n[6]||{}];var i=n[0][5];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Be(n){let e,s,o;const a=[n[6]||{}];var i=n[0][5];function c(t){let r={$$slots:{default:[We]},$$scope:{ctx:t}};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c(t)),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function We(n){let e,s,o;const a=[n[7]||{}];var i=n[0][6];function c(t){let r={};for(let l=0;l{E(f,1)}),O()}i?(e=new i(c()),k(e.$$.fragment),w(e.$$.fragment,1),y(e,s.parentNode,s)):e=null}else i&&e.$set(l)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&g(e.$$.fragment,t),o=!1},d(t){t&&R(s),e&&E(e,t)}}}function Ye(n){let e,s,o,a;const i=[Be,Ke],c=[];function t(r,l){return r[0][6]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Ge(n){let e,s,o,a;const i=[Je,ze],c=[];function t(r,l){return r[0][5]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Me(n){let e,s,o,a;const i=[qe,je],c=[];function t(r,l){return r[0][4]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Fe(n){let e,s,o,a;const i=[Ce,Ue],c=[];function t(r,l){return r[0][3]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function Xe(n){let e,s,o,a;const i=[Ne,De],c=[];function t(r,l){return r[0][2]?0:1}return e=t(n),s=c[e]=i[e](n),{c(){s.c(),o=m()},l(r){s.l(r),o=m()},m(r,l){c[e].m(r,l),L(r,o,l),a=!0},p(r,l){let f=e;e=t(r),e===f?c[e].p(r,l):(A(),g(c[f],1,1,()=>{c[f]=null}),O(),s=c[e],s?s.p(r,l):(s=c[e]=i[e](r),s.c()),w(s,1),s.m(o.parentNode,o))},i(r){a||(w(s),a=!0)},o(r){g(s),a=!1},d(r){c[e].d(r),r&&R(o)}}}function oe(n){let e,s=n[9]&&ae(n);return{c(){e=ve("div"),s&&s.c(),this.h()},l(o){e=ke(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var a=ye(e);s&&s.l(a),a.forEach(R),this.h()},h(){F(e,"id","svelte-announcer"),F(e,"aria-live","assertive"),F(e,"aria-atomic","true"),z(e,"position","absolute"),z(e,"left","0"),z(e,"top","0"),z(e,"clip","rect(0 0 0 0)"),z(e,"clip-path","inset(50%)"),z(e,"overflow","hidden"),z(e,"white-space","nowrap"),z(e,"width","1px"),z(e,"height","1px")},m(o,a){L(o,e,a),s&&s.m(e,null)},p(o,a){o[9]?s?s.p(o,a):(s=ae(o),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(o){o&&R(e),s&&s.d()}}}function ae(n){let e;return{c(){e=Ee(n[10])},l(s){e=Re(s,n[10])},m(s,o){L(s,e,o)},p(s,o){o&1024&&Le(e,s[10])},d(s){s&&R(e)}}}function He(n){let e,s,o,a,i;const c=[Ve,Se],t=[];function r(f,d){return f[0][1]?0:1}e=r(n),s=t[e]=c[e](n);let l=n[8]&&oe(n);return{c(){s.c(),o=Ae(),l&&l.c(),a=m()},l(f){s.l(f),o=Oe(f),l&&l.l(f),a=m()},m(f,d){t[e].m(f,d),L(f,o,d),l&&l.m(f,d),L(f,a,d),i=!0},p(f,[d]){let p=e;e=r(f),e===p?t[e].p(f,d):(A(),g(t[p],1,1,()=>{t[p]=null}),O(),s=t[e],s?s.p(f,d):(s=t[e]=c[e](f),s.c()),w(s,1),s.m(o.parentNode,o)),f[8]?l?l.p(f,d):(l=oe(f),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},i(f){i||(w(s),i=!0)},o(f){g(s),i=!1},d(f){t[e].d(f),f&&R(o),l&&l.d(f),f&&R(a)}}}function Qe(n,e,s){let{stores:o}=e,{page:a}=e,{components:i}=e,{props_0:c=null}=e,{props_1:t=null}=e,{props_2:r=null}=e,{props_3:l=null}=e,{props_4:f=null}=e,{props_5:d=null}=e,{props_6:p=null}=e;Pe("__svelte__",o),Ie(o.page.notify);let h=!1,b=!1,C=null;return H(()=>{const $=o.page.subscribe(()=>{h&&(s(9,b=!0),s(10,C=document.title||"untitled page"))});return s(8,h=!0),$}),n.$$set=$=>{"stores"in $&&s(11,o=$.stores),"page"in $&&s(12,a=$.page),"components"in $&&s(0,i=$.components),"props_0"in $&&s(1,c=$.props_0),"props_1"in $&&s(2,t=$.props_1),"props_2"in $&&s(3,r=$.props_2),"props_3"in $&&s(4,l=$.props_3),"props_4"in $&&s(5,f=$.props_4),"props_5"in $&&s(6,d=$.props_5),"props_6"in $&&s(7,p=$.props_6)},n.$$.update=()=>{n.$$.dirty&6144&&o.page.set(a)},[i,c,t,r,l,f,d,p,h,b,C,o,a]}class Ze extends we{constructor(e){super();$e(this,e,Qe,He,be,{stores:11,page:12,components:0,props_0:1,props_1:2,props_2:3,props_3:4,props_4:5,props_5:6,props_6:7})}}const xe="modulepreload",le={},et="/_app/",v=function(e,s){return!s||s.length===0?e():Promise.all(s.map(o=>{if(o=`${et}${o}`,o in le)return;le[o]=!0;const a=o.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${i}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":xe,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((t,r)=>{c.addEventListener("load",t),c.addEventListener("error",r)})})).then(()=>e())},u=[()=>v(()=>import("./pages/__layout.svelte-20502bfc.js"),["pages/__layout.svelte-20502bfc.js","assets/pages/__layout.svelte-91c16ed1.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/get-context-1ac24eef.js","chunks/data-converter-config-851e08df.js","chunks/error-a678593b.js","assets/error-c8fecd8f.css"]),()=>v(()=>import("./pages/__error.svelte-e33a2959.js"),["pages/__error.svelte-e33a2959.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/error-a678593b.js","assets/error-c8fecd8f.css","chunks/stores-71c7b9ff.js","chunks/is-network-error-ac7c8caf.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js"]),()=>v(()=>import("./pages/index.svelte-4ef90097.js"),["pages/index.svelte-4ef90097.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/data-converter/_port_.svelte-9fb32a52.js"),["pages/data-converter/_port_.svelte-9fb32a52.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/notifications-c07f99ce.js","chunks/data-converter-config-851e08df.js"]),()=>v(()=>import("./pages/namespaces/index.svelte-442fb3cd.js"),["pages/namespaces/index.svelte-442fb3cd.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/index.svelte-a4ce75e3.js"),["pages/namespaces/_namespace_/index.svelte-a4ce75e3.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js"),["pages/namespaces/_namespace_/workflows/index.svelte-3c571672.js","assets/pages/namespaces/_namespace_/workflows/index.svelte-6c1e8cc5.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-15cd5fff.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/_workflows-loading-3836208a.js","assets/_workflows-loading-cdc4f63d.css","chunks/format-date-47255ab2.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/filter-select-724bff2f.js","chunks/append-query-parameters-b8619cc0.js","chunks/empty-state-a54f1d18.js","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-c19d5911.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout.svelte-fc48ff67.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-15cd5fff.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/route-for-11851a4f.js","chunks/button-131351bb.js","assets/button-7e73ad23.css","chunks/stores-71c7b9ff.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/index.svelte-81112681.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/index.svelte-81112681.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-6bd31952.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/query-service-a89500ff.js","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css","chunks/button-131351bb.js","assets/button-7e73ad23.css","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-cf5e5c96.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/__layout.svelte-4c5bf35f.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/data-converter-config-851e08df.js","chunks/is-event-type-6f6767d3.js","chunks/route-for-11851a4f.js","chunks/stores-71c7b9ff.js","chunks/append-query-parameters-b8619cc0.js","chunks/get-context-1ac24eef.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/index.svelte-b2396148.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/index.svelte-b2396148.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/__layout.svelte-a5f49c84.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/__layout.svelte-a5f49c84.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/is-event-type-6f6767d3.js","chunks/event-table-9f78322a.js","assets/event-table-9b0ac71f.css","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css","chunks/stores-71c7b9ff.js","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/format-camel-case-8b7e013d.js","chunks/route-for-11851a4f.js","chunks/format-date-47255ab2.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/index.svelte-ba42b8c6.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/index.svelte-ba42b8c6.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-65667a77.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-65667a77.js","assets/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/__layout.svelte-c8f515ec.css","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-11851a4f.js","chunks/stores-71c7b9ff.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/index.svelte-b26f9f2f.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/index.svelte-b26f9f2f.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/route-for-11851a4f.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/events/_id_.svelte-c8ad5f14.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/activity-_eventId_/events/_id_.svelte-c8ad5f14.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/__layout.svelte-ab14eab3.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/__layout.svelte-ab14eab3.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-table-9f78322a.js","assets/event-table-9b0ac71f.css","chunks/pagination-ac5deabd.js","assets/pagination-30a5bfe0.css","chunks/stores-71c7b9ff.js","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/format-camel-case-8b7e013d.js","chunks/route-for-11851a4f.js","chunks/format-date-47255ab2.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/index.svelte-cf6aee40.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/index.svelte-cf6aee40.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/pending-_id_.svelte-5fcff061.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/pending-_id_.svelte-5fcff061.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/stores-71c7b9ff.js","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/event-_id_.svelte-905e6036.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/full/event-_id_.svelte-905e6036.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/event-details-b3c87581.js","chunks/format-camel-case-8b7e013d.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/json.svelte-5f2d2af0.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/json.svelte-5f2d2af0.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/workers.svelte-5e42ce9c.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workers-row-7bc8cde3.js","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/format-date-47255ab2.js","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js"),["pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-41e056ab.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/query-service-a89500ff.js","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css","chunks/filter-select-724bff2f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/stores-71c7b9ff.js","chunks/append-query-parameters-b8619cc0.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js"),["pages/namespaces/_namespace_/archival/index.svelte-7fc9829b.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workflow-status-15cd5fff.js","assets/workflow-status-c8a5c750.css","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/_workflows-loading-3836208a.js","assets/_workflows-loading-cdc4f63d.css","chunks/format-date-47255ab2.js","chunks/namespace-0cacc6ef.js","chunks/stores-71c7b9ff.js","chunks/route-for-11851a4f.js","chunks/navigation-093db9e2.js","chunks/singletons-a6a7384f.js","chunks/select-5b8ec3d3.js","assets/select-b58c3957.css","chunks/filter-select-724bff2f.js","chunks/append-query-parameters-b8619cc0.js","chunks/empty-state-a54f1d18.js","chunks/code-block-a24f68a3.js","assets/code-block-d395b8a8.css"]),()=>v(()=>import("./pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js"),["pages/namespaces/_namespace_/workers/_queue_/__layout.svelte-7bd05343.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css","chunks/workers-row-7bc8cde3.js","chunks/route-for-api-46069891.js","chunks/notifications-c07f99ce.js","chunks/is-network-error-ac7c8caf.js","chunks/format-date-47255ab2.js","chunks/empty-state-a54f1d18.js"]),()=>v(()=>import("./pages/namespaces/_namespace_/workers/_queue_/index.svelte-d209f4e2.js"),["pages/namespaces/_namespace_/workers/_queue_/index.svelte-d209f4e2.js","chunks/vendor-b58bb848.js","assets/vendor-c7230052.css"])],_=decodeURIComponent,tt=[[/^\/$/,[u[0],u[2]],[u[1]]],[/^\/data-converter\/([^/]+?)\/?$/,[u[0],u[3]],[u[1]],n=>({port:_(n[1])})],[/^\/namespaces\/?$/,[u[0],u[4]],[u[1]]],[/^\/namespaces\/([^/]+?)\/?$/,[u[0],u[5]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workflows\/?$/,[u[0],u[6]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/?$/,[u[0],u[7],u[8]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/stack-trace\/?$/,[u[0],u[7],u[9]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/?$/,[u[0],u[7],u[10],u[11]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/?$/,[u[0],u[7],u[10],u[12],u[13]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/activity-([^/]+?)\/?$/,[u[0],u[7],u[10],u[12],u[14],u[15]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),eventId:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/compact\/activity-([^/]+?)\/events\/([^/]+?)\/?$/,[u[0],u[7],u[10],u[12],u[14],u[16]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),eventId:_(n[4]),id:_(n[5])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/?$/,[u[0],u[7],u[10],u[17],u[18]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/pending-([^/]+?)\/?$/,[u[0],u[7],u[10],u[17],u[19]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),id:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/full\/event-([^/]+?)\/?$/,[u[0],u[7],u[10],u[17],u[20]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3]),id:_(n[4])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/history\/json\/?$/,[u[0],u[7],u[10],u[21]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/workers\/?$/,[u[0],u[7],u[22]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/workflows\/([^/]+?)\/([^/]+?)\/query\/?$/,[u[0],u[7],u[23]],[u[1]],n=>({namespace:_(n[1]),workflow:_(n[2]),run:_(n[3])})],[/^\/namespaces\/([^/]+?)\/archival\/?$/,[u[0],u[24]],[u[1]],n=>({namespace:_(n[1])})],[/^\/namespaces\/([^/]+?)\/workers\/([^/]+?)\/?$/,[u[0],u[25],u[26]],[u[1]],n=>({namespace:_(n[1]),queue:_(n[2])})]],st=[u[0](),u[1]()];function rt(n){let e=n.baseURI;if(!e){const s=n.getElementsByTagName("base");e=s.length?s[0].href:n.URL}return e}let Q="";function nt(n){Q=n.base,n.assets}function it(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&/\/[^./]+$/.test(n)?n+"/":n}const de="sveltekit:scroll";let K={};try{K=JSON.parse(sessionStorage[de])}catch{}function X(n){K[n]=Z()}function Z(){return{x:pageXOffset,y:pageYOffset}}function ce(n){return n.composedPath().find(s=>s instanceof Node&&s.nodeName.toUpperCase()==="A")}function fe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}class ot{constructor({base:e,routes:s,trailing_slash:o,renderer:a}){var c,t;this.base=e,this.routes=s,this.trailing_slash=o,this.navigating=0,this.renderer=a,a.router=this,this.enabled=!0,this.initialized=!1,this.current_history_index=(t=(c=history.state)==null?void 0:c["sveltekit:index"])!=null?t:0,this.current_history_index===0&&history.replaceState(G(S({},history.state),{"sveltekit:index":0}),"",location.href);const i=K[this.current_history_index];i&&scrollTo(i.x,i.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",a=>{let i=!1;const c={from:this.renderer.current.url,to:null,cancel:()=>i=!0};this.callbacks.before_navigate.forEach(t=>t(c)),i?(a.preventDefault(),a.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){X(this.current_history_index);try{sessionStorage[de]=JSON.stringify(K)}catch{}}});const e=a=>{const i=ce(a);i&&i.href&&i.hasAttribute("sveltekit:prefetch")&&this.prefetch(fe(i))};let s;const o=a=>{clearTimeout(s),s=setTimeout(()=>{var i;(i=a.target)==null||i.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",e),addEventListener("mousemove",o),addEventListener("sveltekit:trigger_prefetch",e),addEventListener("click",a=>{if(!this.enabled||a.button||a.which!==1||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.defaultPrevented)return;const i=ce(a);if(!i||!i.href)return;const c=i instanceof SVGAElement,t=fe(i);if(t.toString()===location.href){location.hash||a.preventDefault();return}if(!c&&t.origin==="null")return;const l=(i.getAttribute("rel")||"").split(/\s+/);if(i.hasAttribute("download")||l&&l.includes("external")||(c?i.target.baseVal:i.target))return;const[f,d]=t.href.split("#");if(d!==void 0&&f===location.href.split("#")[0]){this.hash_navigating=!0,X(this.current_history_index),this.renderer.update_page_store(new URL(t.href));return}this._navigate({url:t,scroll:i.hasAttribute("sveltekit:noscroll")?Z():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>a.preventDefault(),blocked:()=>a.preventDefault()})}),addEventListener("popstate",a=>{if(a.state&&this.enabled){if(a.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:K[a.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=a.state["sveltekit:index"]},blocked:()=>{const i=this.current_history_index-a.state["sveltekit:index"];history.go(i)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(G(S({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(e){return e.origin===location.origin&&e.pathname.startsWith(this.base)}parse(e){if(this.owns(e)){const s=decodeURI(e.pathname.slice(this.base.length)||"/");return{id:e.pathname+e.search,routes:this.routes.filter(([o])=>o.test(s)),url:e,path:s,initial:!this.initialized}}}async goto(e,{noscroll:s=!1,replaceState:o=!1,keepfocus:a=!1,state:i={}}={},c){const t=new URL(e,rt(document));return this.enabled?this._navigate({url:t,scroll:s?Z():null,keepfocus:a,chain:c,details:{state:i,replaceState:o},accepted:()=>{},blocked:()=>{}}):(location.href=t.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(e){const s=this.parse(e);if(!s)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(s)}after_navigate(e){H(()=>(this.callbacks.after_navigate.push(e),()=>{const s=this.callbacks.after_navigate.indexOf(e);this.callbacks.after_navigate.splice(s,1)}))}before_navigate(e){H(()=>(this.callbacks.before_navigate.push(e),()=>{const s=this.callbacks.before_navigate.indexOf(e);this.callbacks.before_navigate.splice(s,1)}))}async _navigate({url:e,scroll:s,keepfocus:o,chain:a,details:i,accepted:c,blocked:t}){const r=this.renderer.current.url;let l=!1;const f={from:r,to:e,cancel:()=>l=!0};if(this.callbacks.before_navigate.forEach(b=>b(f)),l){t();return}const d=this.parse(e);if(!d)return location.href=e.href,new Promise(()=>{});X(this.current_history_index),c(),this.navigating++;const p=it(e.pathname,this.trailing_slash);d.url=new URL(e.origin+p+e.search+e.hash);const h=this.navigating_token={};if(await this.renderer.handle_navigation(d,a,!1,{scroll:s,keepfocus:o}),this.navigating--,this.navigating_token===h){if(!this.navigating){const b={from:r,to:e};this.callbacks.after_navigate.forEach(C=>C(b))}if(i){const b=i.replaceState?0:1;i.state["sveltekit:index"]=this.current_history_index+=b,history[i.replaceState?"replaceState":"pushState"](i.state,"",d.url)}}}}function ue(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function at(n){let e=5381,s=n.length;if(typeof n=="string")for(;s;)e=e*33^n.charCodeAt(--s);else for(;s;)e=e*33^n[--s];return(e>>>0).toString(36)}function _e(n){const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const s=n.status;if(!n.error&&e)return{status:s||500,error:new Error};const o=typeof n.error=="string"?new Error(n.error):n.error;return o instanceof Error?!s||s<400||s>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:o}):{status:s,error:o}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof o}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function he(n){const e=M(n);let s=!0;function o(){s=!0,e.update(c=>c)}function a(c){s=!1,e.set(c)}function i(c){let t;return e.subscribe(r=>{(t===void 0||s&&r!==t)&&c(t=r)})}return{notify:o,set:a,subscribe:i}}function lt(){const{set:n,subscribe:e}=M(!1),s="1647009573116";let o;async function a(){clearTimeout(o);const c=await fetch(`${Q}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(c.ok){const{version:t}=await c.json(),r=t!==s;return r&&(n(!0),clearTimeout(o)),r}else throw new Error(`Version check failed: ${c.status}`)}return{subscribe:e,check:a}}function ct(n,e){let o=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(o+=`[sveltekit\\:data-body="${at(e.body)}"]`);const a=document.querySelector(o);if(a&&a.textContent){const i=JSON.parse(a.textContent),{body:c}=i,t=ne(i,["body"]);return Promise.resolve(new Response(c,t))}return fetch(n,e)}class ft{constructor({Root:e,fallback:s,target:o,session:a}){this.Root=e,this.fallback=s,this.router,this.target=o,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:he({}),page:he({}),navigating:M(null),session:M(a),updated:lt()},this.$session=null,this.root=null;let i=!1;this.stores.session.subscribe(async c=>{if(this.$session=c,!i||!this.router)return;this.session_id+=1;const t=this.router.parse(new URL(location.href));t&&this.update(t,[],!0)}),i=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:e,error:s,nodes:o,params:a}){const i=new URL(location.href),c=[];let t={},r,l;try{for(let f=0;f10||s.includes(e.url.pathname))c=await this._load_error({status:500,error:new Error("Redirect loop"),url:e.url});else{this.router?this.router.goto(new URL(c.redirect,e.url).href,{},[...s,e.url.pathname]):location.href=new URL(c.redirect,location.href).href;return}else if(((l=(r=c.props)==null?void 0:r.page)==null?void 0:l.status)>=400&&await this.stores.updated.check()){location.href=e.url.href;return}if(this.updating=!0,this.started?(this.current=c.state,this.root.$set(c.props),this.stores.navigating.set(null)):this._init(c),a){const{scroll:d,keepfocus:p}=a;if(!p){const h=document.documentElement,b=h.getAttribute("tabindex");(f=getSelection())==null||f.removeAllRanges(),h.tabIndex=-1,h.focus(),b!==null?h.setAttribute("tabindex",b):h.removeAttribute("tabindex")}if(await ie(),this.autoscroll){const h=e.url.hash&&document.getElementById(e.url.hash.slice(1));d?scrollTo(d.x,d.y):h?h.scrollIntoView():scrollTo(0,0)}}else await ie();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,c.props.page&&(this.page=c.props.page),!this.router)return;const t=c.state.branch[c.state.branch.length-1];t&&t.module.router===!1?this.router.disable():this.router.enable()}load(e){return this.loading.promise=this._get_navigation_result(e,!1),this.loading.id=e.id,this.loading.promise}invalidate(e){return this.invalid.add(e),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const s=this.router&&this.router.parse(new URL(location.href));s&&await this.update(s,[],!0),this.invalidating=null})),this.invalidating}update_page_store(e){this.stores.page.set(G(S({},this.page),{url:e})),this.stores.page.notify()}_init(e){this.current=e.state;const s=document.querySelector("style[data-svelte]");if(s&&s.remove(),this.page=e.props.page,this.root=new this.Root({target:this.target,props:S({stores:this.stores},e.props),hydrate:!0}),this.started=!0,this.router){const o={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(a=>a(o))}}async _get_navigation_result(e,s){if(this.loading.id===e.id&&this.loading.promise)return this.loading.promise;for(let o=0;or()),i+=1;else break}const c=await this._load({route:a,info:e},s);if(c)return c}if(e.initial)return await this._load_error({status:404,error:new Error(`Not found: ${e.url.pathname}`),url:e.url})}async _get_navigation_result_from_branch({url:e,params:s,stuff:o,branch:a,status:i,error:c}){const t=a.filter(Boolean),r=t.find(p=>p.loaded&&p.loaded.redirect),l={redirect:r&&r.loaded?r.loaded.redirect:void 0,state:{url:e,params:s,branch:a,session_id:this.session_id},props:{components:t.map(p=>p.module.default)}};for(let p=0;p{Object.defineProperty(l.props.page,h,{get:()=>{throw new Error(`$page.${h} has been replaced by $page.url.${b}`)}})};p("origin","origin"),p("path","pathname"),p("query","searchParams")}const f=t[t.length-1],d=f.loaded&&f.loaded.maxage;if(d){const p=e.pathname+e.search;let h=!1;const b=()=>{this.cache.get(p)===l&&this.cache.delete(p),$(),clearTimeout(C)},C=setTimeout(b,d*1e3),$=this.stores.session.subscribe(()=>{h&&b()});h=!0,this.cache.set(p,l)}return l}async _load_node({status:e,error:s,module:o,url:a,params:i,stuff:c,props:t}){const r={module:o,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:c};t&&r.uses.dependencies.add(a.href);const l={};for(const d in i)Object.defineProperty(l,d,{get(){return r.uses.params.add(d),i[d]},enumerable:!0});const f=this.$session;if(o.load){const{started:d}=this,p={params:l,props:t||{},get url(){return r.uses.url=!0,a},get session(){return r.uses.session=!0,f},get stuff(){return r.uses.stuff=!0,S({},c)},fetch(b,C){const $=typeof b=="string"?b:b.url,{href:q}=new URL($,a);return r.uses.dependencies.add(q),d?fetch(b,C):ct(b,C)}};s&&(p.status=e,p.error=s);const h=await o.load.call(null,p);if(!h)throw new Error("load function must return a value");r.loaded=_e(h),r.loaded.stuff&&(r.stuff=r.loaded.stuff)}else t&&(r.loaded=_e({props:t}));return r}async _load({route:e,info:{url:s,path:o}},a){const i=s.pathname+s.search;if(!a){const P=this.cache.get(i);if(P)return P}const[c,t,r,l,f]=e,d=l?l(c.exec(o)):{},p=this.current.url&&{url:i!==this.current.url.pathname+this.current.url.search,params:Object.keys(d).filter(P=>this.current.params[P]!==d[P]),session:this.session_id!==this.current.session_id};let h=[],b={},C=!1,$=200,q;t.forEach(P=>P());e:for(let P=0;Pj.uses.params.has(J))||p.session&&j.uses.session||Array.from(j.uses.dependencies).some(J=>this.invalid.has(J))||C&&j.uses.stuff){let J={};const x=f&&P===t.length-1;if(x){const W=await fetch(`${s.pathname}${s.pathname.endsWith("/")?"":"/"}__data.json${s.search}`,{headers:{"x-sveltekit-load":"true"}});if(W.ok){const ee=W.headers.get("x-sveltekit-location");if(ee)return{redirect:ee,props:{},state:this.current};J=await W.json()}else $=W.status,q=new Error("Failed to load data")}if(q||(I=await this._load_node({module:T,url:s,params:d,props:J,stuff:b})),I&&(x&&(I.uses.url=!0),I.loaded)){if(I.loaded.fallthrough)return;if(I.loaded.error&&($=I.loaded.status,q=I.loaded.error),I.loaded.redirect)return{redirect:I.loaded.redirect,props:{},state:this.current};I.loaded.stuff&&(C=!0)}}else I=j}catch(T){$=500,q=ue(T)}if(q){for(;P--;)if(r[P]){let T,j,B=P;for(;!(j=h[B]);)B-=1;try{if(T=await this._load_node({status:$,error:q,module:await r[P](),url:s,params:d,stuff:j.stuff}),T&&T.loaded&&T.loaded.error)continue;T&&T.loaded&&T.loaded.stuff&&(b=S(S({},b),T.loaded.stuff)),h=h.slice(0,B+1).concat(T);break e}catch{continue}}return await this._load_error({status:$,error:q,url:s})}else I&&I.loaded&&I.loaded.stuff&&(b=S(S({},b),I.loaded.stuff)),h.push(I)}return await this._get_navigation_result_from_branch({url:s,params:d,stuff:b,branch:h,status:$,error:q})}async _load_error({status:e,error:s,url:o}){var l,f;const a={},i=await this._load_node({module:await this.fallback[0],url:o,params:a,stuff:{}}),c=await this._load_node({status:e,error:s,module:await this.fallback[1],url:o,params:a,stuff:i&&i.loaded&&i.loaded.stuff||{}}),t=[i,c],r=S(S({},(l=i==null?void 0:i.loaded)==null?void 0:l.stuff),(f=c==null?void 0:c.loaded)==null?void 0:f.stuff);return await this._get_navigation_result_from_branch({url:o,params:a,stuff:r,branch:t,status:e,error:s})}}async function dt({paths:n,target:e,session:s,route:o,spa:a,trailing_slash:i,hydrate:c}){const t=new ft({Root:Ze,fallback:st,target:e,session:s}),r=o?new ot({base:n.base,routes:tt,trailing_slash:i,renderer:t}):null;Te({router:r,renderer:t}),nt(n),c&&await t.start(c),r&&(a&&r.goto(location.href,{replaceState:!0},[]),r.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{dt as start}; diff --git a/server/generated/ui/_app/version.json b/server/generated/ui/_app/version.json index 306cc7a98f..2d9bccd300 100644 --- a/server/generated/ui/_app/version.json +++ b/server/generated/ui/_app/version.json @@ -1 +1 @@ -{"version":"1646964997048"} \ No newline at end of file +{"version":"1647009573116"} \ No newline at end of file diff --git a/server/generated/ui/index.html b/server/generated/ui/index.html index 9b05244e3a..23ce072b95 100644 --- a/server/generated/ui/index.html +++ b/server/generated/ui/index.html @@ -9,14 +9,14 @@ - +