import{S as be,i as ge,s as pe,E as B,_ as H,$ as W,m as S,h as g,n as v,a0 as Re,b as A,J as T,O as _e,a1 as se,D as le,F as he,q as j,r as F,u as X,G as we,ao as Gt,e as ie,a as x,k as L,aq as jt,ap as Ft,c as $,l as R,I as re,H as m,K as J,L as ye,M as Te,N as Se,g as O,v as ce,d as z,f as de,P as Ze,ab as Mt,C as Dt,R as Ae,T as Qt,j as It,x as ze,y as ae,z as ve,A as oe,B as ue,Q as Ie,w as Ge,ai as Ut,p as Pe,ac as Yt,ad as Ht,W as Wt,aa as Kt,a6 as Ct,a8 as Ot,X as Jt,Y as Xt}from"./index.01827105.js";import{E as Zt,C as xt,f as $t,i as rt,h as el,g as tl,p as ll,j as il,r as N,O as q,e as te,k as Me,b as ee,T as rl,w as nl,A as sl,q as al,a as Pt,B as ol}from"./taskMonitoringStore.f29f8009.js";import{w as We}from"./index.2213faf5.js";function nt(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function ul(l){let e,t,i,r,n=l[1]&&nt(l),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let a=0;a{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class cl extends be{constructor(e){super(),ge(this,e,fl,ul,pe,{size:0,title:1})}}const dl=cl;function st(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function ml(l){let e,t,i,r,n=l[1]&&st(l),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let a=0;a{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class _l extends be{constructor(e){super(),ge(this,e,hl,ml,pe,{size:0,title:1})}}const bl=_l,gl=l=>({}),at=l=>({});function pl(l){let e,t,i;var r=l[1];function n(s){return{props:{"aria-label":s[10],title:s[10],class:"bx--overflow-menu__icon "+s[9]}}}return r&&(e=ze(r,n(l))),{c(){e&&ae(e.$$.fragment),t=ie()},l(s){e&&ve(e.$$.fragment,s),t=ie()},m(s,o){e&&oe(e,s,o),A(s,t,o),i=!0},p(s,o){const a={};if(o[0]&1024&&(a["aria-label"]=s[10]),o[0]&1024&&(a.title=s[10]),o[0]&512&&(a.class="bx--overflow-menu__icon "+s[9]),o[0]&2&&r!==(r=s[1])){if(e){ce();const u=e;z(u.$$.fragment,1,0,()=>{ue(u,1)}),de()}r?(e=ze(r,n(s)),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}else r&&e.$set(a)},i(s){i||(e&&O(e.$$.fragment,s),i=!0)},o(s){e&&z(e.$$.fragment,s),i=!1},d(s){s&&g(t),e&&ue(e,s)}}}function ot(l){let e,t;const i=l[24].default,r=we(i,l,l[23],null);return{c(){e=L("ul"),r&&r.c(),this.h()},l(n){e=R(n,"UL",{role:!0,tabindex:!0,"aria-label":!0,"data-floating-menu-direction":!0,class:!0});var s=S(e);r&&r.l(s),s.forEach(g),this.h()},h(){v(e,"role","menu"),v(e,"tabindex","-1"),v(e,"aria-label",l[13]),v(e,"data-floating-menu-direction",l[5]),v(e,"class",l[8]),m(e,"bx--overflow-menu-options",!0),m(e,"bx--overflow-menu--flip",l[7]),m(e,"bx--overflow-menu-options--open",l[0]),m(e,"bx--overflow-menu-options--light",l[6]),m(e,"bx--overflow-menu-options--sm",l[4]==="sm"),m(e,"bx--overflow-menu-options--xl",l[4]==="xl"),m(e,"bx--breadcrumb-menu-options",!!l[14])},m(n,s){A(n,e,s),r&&r.m(e,null),l[31](e),t=!0},p(n,s){r&&r.p&&(!t||s[0]&8388608)&&ye(r,i,n,n[23],t?Se(i,n[23],s,null):Te(n[23]),null),(!t||s[0]&8192)&&v(e,"aria-label",n[13]),(!t||s[0]&32)&&v(e,"data-floating-menu-direction",n[5]),(!t||s[0]&256)&&v(e,"class",n[8]),(!t||s[0]&256)&&m(e,"bx--overflow-menu-options",!0),(!t||s[0]&384)&&m(e,"bx--overflow-menu--flip",n[7]),(!t||s[0]&257)&&m(e,"bx--overflow-menu-options--open",n[0]),(!t||s[0]&320)&&m(e,"bx--overflow-menu-options--light",n[6]),(!t||s[0]&272)&&m(e,"bx--overflow-menu-options--sm",n[4]==="sm"),(!t||s[0]&272)&&m(e,"bx--overflow-menu-options--xl",n[4]==="xl"),(!t||s[0]&16640)&&m(e,"bx--breadcrumb-menu-options",!!n[14])},i(n){t||(O(r,n),t=!0)},o(n){z(r,n),t=!1},d(n){n&&g(e),r&&r.d(n),l[31](null)}}}function vl(l){let e,t,i,r,n,s,o,a;const u=l[24].menu,c=we(u,l,l[23],at),f=c||pl(l);let h=l[0]&&ot(l),d=[{type:"button"},{"aria-haspopup":""},{"aria-expanded":l[0]},{"aria-label":l[13]},{id:l[11]},l[19]],b={};for(let _=0;_{h=null}),de()),re(r,b=_e(d,[{type:"button"},{"aria-haspopup":""},(!s||k[0]&1)&&{"aria-expanded":_[0]},(!s||k[0]&8192)&&{"aria-label":_[13]},(!s||k[0]&2048)&&{id:_[11]},k[0]&524288&&_[19]])),m(r,"bx--overflow-menu",!0),m(r,"bx--overflow-menu--open",_[0]),m(r,"bx--overflow-menu--light",_[6]),m(r,"bx--overflow-menu--sm",_[4]==="sm"),m(r,"bx--overflow-menu--xl",_[4]==="xl")},i(_){s||(O(f,_),O(h),s=!0)},o(_){z(f,_),z(h),s=!1},d(_){g(t),_&&e.d(),_&&g(i),_&&g(r),f&&f.d(_),h&&h.d(),l[32](null),o=!1,Ze(a)}}}function kl(l,e,t){let i,r;const n=["size","direction","open","light","flipped","menuOptionsClass","icon","iconClass","iconDescription","id","buttonRef","menuRef"];let s=le(e,n),o,a,u,{$$slots:c={},$$scope:f}=e,{size:h=void 0}=e,{direction:d="bottom"}=e,{open:b=!1}=e,{light:_=!1}=e,{flipped:k=!1}=e,{menuOptionsClass:w=void 0}=e,{icon:p=dl}=e,{iconClass:M=void 0}=e,{iconDescription:D="Open and close list of options"}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{buttonRef:P=null}=e,{menuRef:V=null}=e;const me=Mt("BreadcrumbItem"),U=Dt(),G=We([]);Ae(l,G,y=>t(22,a=y));const ke=We(void 0);Ae(l,ke,y=>t(37,u=y));const Z=We(void 0),Ee=We(-1);Ae(l,Ee,y=>t(21,o=y));let C,Q=!0;Qt("OverflowMenu",{focusedId:Z,add:({id:y,text:Y,primaryFocus:Ve,disabled:Bt})=>{G.update(xe=>(Ve&&Ee.set(xe.length),[...xe,{id:y,text:Y,primaryFocus:Ve,disabled:Bt,index:xe.length}]))},update:y=>{ke.set(y)},change:y=>{let Y=o+y;Y<0?Y=a.length-1:Y>=a.length&&(Y=0);let Ve=a[Y].disabled;for(;Ve;)Y=Y+y,Y<0?Y=a.length-1:Y>=a.length&&(Y=0),Ve=a[Y].disabled;Ee.set(Y)}}),It(()=>{if(u){const{index:y,text:Y}=a.filter(Ve=>Ve.id===u)[0];U("close",{index:y,text:Y}),t(0,b=!1)}if(b){const{width:y,height:Y}=P.getBoundingClientRect();t(20,C=y),!Q&&o<0&&V.focus(),k&&(t(3,V.style.left="auto",V),t(3,V.style.right=0,V)),d==="top"?(t(3,V.style.top="auto",V),t(3,V.style.bottom=Y+"px",V)):d==="bottom"&&t(3,V.style.top=Y+"px",V),me&&(t(3,V.style.top=Y+10+"px",V),t(3,V.style.left="-11px",V))}b||(G.set([]),ke.set(void 0),Ee.set(0)),Q=!1});function fe(y){Ie.call(this,l,y)}function I(y){Ie.call(this,l,y)}function Be(y){Ie.call(this,l,y)}function Qe(y){Ie.call(this,l,y)}function Ue(y){Ie.call(this,l,y)}const Ye=({target:y})=>{P&&P.contains(y)||V&&!V.contains(y)&&t(0,b=!1)};function Oe(y){Ge[y?"unshift":"push"](()=>{V=y,t(3,V)})}function He(y){Ge[y?"unshift":"push"](()=>{P=y,t(2,P)})}const zt=({target:y})=>{V&&V.contains(y)||(t(0,b=!b),b||U("close"))},Nt=y=>{b&&(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp"].includes(y.key)?y.preventDefault():y.key==="Escape"&&(y.stopPropagation(),U("close"),t(0,b=!1),P.focus()))},qt=y=>{b&&(P.contains(y.relatedTarget)||(U("close"),t(0,b=!1)))};return l.$$set=y=>{t(39,e=B(B({},e),he(y))),t(19,s=le(e,n)),"size"in y&&t(4,h=y.size),"direction"in y&&t(5,d=y.direction),"open"in y&&t(0,b=y.open),"light"in y&&t(6,_=y.light),"flipped"in y&&t(7,k=y.flipped),"menuOptionsClass"in y&&t(8,w=y.menuOptionsClass),"icon"in y&&t(1,p=y.icon),"iconClass"in y&&t(9,M=y.iconClass),"iconDescription"in y&&t(10,D=y.iconDescription),"id"in y&&t(11,E=y.id),"buttonRef"in y&&t(2,P=y.buttonRef),"menuRef"in y&&t(3,V=y.menuRef),"$$scope"in y&&t(23,f=y.$$scope)},l.$$.update=()=>{t(13,i=e["aria-label"]||"menu"),l.$$.dirty[0]&6291456&&a[o]&&Z.set(a[o].id),l.$$.dirty[0]&1050624&&t(12,r=``)},me&&t(1,p=bl),e=he(e),[b,p,P,V,h,d,_,k,w,M,D,E,r,i,me,U,G,ke,Ee,s,C,o,a,f,c,fe,I,Be,Qe,Ue,Ye,Oe,He,zt,Nt,qt]}class El extends be{constructor(e){super(),ge(this,e,kl,vl,pe,{size:4,direction:5,open:0,light:6,flipped:7,menuOptionsClass:8,icon:1,iconClass:9,iconDescription:10,id:11,buttonRef:2,menuRef:3},null,[-1,-1])}}const wl=El;function yl(l){let e,t,i,r;const n=l[16].default,s=we(n,l,l[15],null),o=s||Sl(l);let a=[l[7]],u={};for(let c=0;c{s[h]=null}),de(),i=s[t],i?i.p(c,f):(i=s[t]=n[t](c),i.c()),O(i,1),i.m(e,null)),re(e,u=_e(a,[{role:"none"},(!r||f&64)&&{id:c[6]},f&2048&&c[11]])),m(e,"bx--overflow-menu-options__option",!0),m(e,"bx--overflow-menu--divider",c[4]),m(e,"bx--overflow-menu-options__option--danger",c[5]),m(e,"bx--overflow-menu-options__option--disabled",c[3])},i(c){r||(O(i),r=!0)},o(c){z(i),r=!1},d(c){c&&g(e),s[t].d()}}}function Il(l,e,t){let i;const r=["text","href","primaryFocus","disabled","hasDivider","danger","requireTitle","id","ref"];let n=le(e,r),s,{$$slots:o={},$$scope:a}=e;const u=Ut(o);let{text:c="Provide text"}=e,{href:f=""}=e,{primaryFocus:h=!1}=e,{disabled:d=!1}=e,{hasDivider:b=!1}=e,{danger:_=!1}=e,{requireTitle:k=!0}=e,{id:w="ccs-"+Math.random().toString(36)}=e,{ref:p=null}=e;const{focusedId:M,add:D,update:E,change:P}=Mt("OverflowMenu");Ae(l,M,I=>t(14,s=I)),D({id:w,text:c,primaryFocus:h,disabled:d}),It(()=>{p&&h&&p.focus()});function V(I){Ie.call(this,l,I)}function me(I){Ie.call(this,l,I)}function U(I){Ie.call(this,l,I)}function G(I){Ie.call(this,l,I)}function ke(I){Ge[I?"unshift":"push"](()=>{p=I,t(0,p)})}const Z=()=>{E(w)},Ee=({key:I})=>{I==="ArrowDown"?P(1):I==="ArrowUp"&&P(-1)};function C(I){Ge[I?"unshift":"push"](()=>{p=I,t(0,p)})}const Q=()=>{E(w)},fe=({key:I})=>{I==="ArrowDown"?P(1):I==="ArrowUp"&&P(-1)};return l.$$set=I=>{e=B(B({},e),he(I)),t(11,n=le(e,r)),"text"in I&&t(1,c=I.text),"href"in I&&t(2,f=I.href),"primaryFocus"in I&&t(12,h=I.primaryFocus),"disabled"in I&&t(3,d=I.disabled),"hasDivider"in I&&t(4,b=I.hasDivider),"danger"in I&&t(5,_=I.danger),"requireTitle"in I&&t(13,k=I.requireTitle),"id"in I&&t(6,w=I.id),"ref"in I&&t(0,p=I.ref),"$$scope"in I&&t(15,a=I.$$scope)},l.$$.update=()=>{l.$$.dirty&16448&&t(12,h=s===w),l.$$.dirty&8206&&t(7,i={role:"menuitem",tabindex:"-1",class:"bx--overflow-menu-options__btn",disabled:f?void 0:d,href:f||void 0,title:k?u.default?void 0:c:void 0})},[p,c,f,d,b,_,w,i,M,E,P,n,h,k,s,a,o,V,me,U,G,ke,Z,Ee,C,Q,fe]}class Cl extends be{constructor(e){super(),ge(this,e,Il,Dl,pe,{text:1,href:2,primaryFocus:12,disabled:3,hasDivider:4,danger:5,requireTitle:13,id:6,ref:0})}}const Ol=Cl;function Pl(l){let e,t,i,r,n,s,o,a,u,c=l[0]&&ut(l),f=[{"aria-atomic":"true"},{"aria-labelledby":l[4]},{"aria-live":u=l[1]?"assertive":"off"},l[6]],h={};for(let d=0;d{e=B(B({},e),he(f)),t(6,n=le(e,r)),"small"in f&&t(0,s=f.small),"active"in f&&t(1,o=f.active),"withOverlay"in f&&t(2,a=f.withOverlay),"description"in f&&t(3,u=f.description),"id"in f&&t(4,c=f.id)},l.$$.update=()=>{l.$$.dirty&1&&t(5,i=s?"42":"44")},[s,o,a,u,c,i,n]}class Rl extends be{constructor(e){super(),ge(this,e,Ll,Vl,pe,{small:0,active:1,withOverlay:2,description:3,id:4})}}const zl=Rl;function Nl(l){let e,t,i,r,n,s;const o=l[11].default,a=we(o,l,l[10],null);let u=[l[9],{style:i=l[9].style+"; "+(l[6]&&"position: relative")}],c={};for(let f=0;f{o&&(_.contains(p.target)||(b("click:outside",{target:p.target}),a&&t(0,o=!1)))};function w(p){Ge[p?"unshift":"push"](()=>{_=p,t(7,_)})}return l.$$set=p=>{e=B(B({},e),he(p)),t(9,r=le(e,i)),"open"in p&&t(0,o=p.open),"closeOnOutsideClick"in p&&t(1,a=p.closeOnOutsideClick),"caret"in p&&t(2,u=p.caret),"align"in p&&t(3,c=p.align),"light"in p&&t(4,f=p.light),"highContrast"in p&&t(5,h=p.highContrast),"relative"in p&&t(6,d=p.relative),"$$scope"in p&&t(10,s=p.$$scope)},[o,a,u,c,f,h,d,_,b,r,s,n,k,w]}class Bl extends be{constructor(e){super(),ge(this,e,ql,Nl,pe,{open:0,closeOnOutsideClick:1,caret:2,align:3,light:4,highContrast:5,relative:6})}}const Gl=Bl,jl=l=>({}),ct=l=>({});function Fl(l){let e;return{c(){e=j(l[4])},l(t){e=F(t,l[4])},m(t,i){A(t,e,i)},p(t,i){i&16&&X(e,t[4])},d(t){t&&g(e)}}}function dt(l){let e,t,i;var r=l[10][l[2]];function n(s){return{props:{class:"bx--progress-bar__status-icon"}}}return r&&(e=ze(r,n())),{c(){e&&ae(e.$$.fragment),t=ie()},l(s){e&&ve(e.$$.fragment,s),t=ie()},m(s,o){e&&oe(e,s,o),A(s,t,o),i=!0},p(s,o){if(o&4&&r!==(r=s[10][s[2]])){if(e){ce();const a=e;z(a.$$.fragment,1,0,()=>{ue(a,1)}),de()}r?(e=ze(r,n()),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}},i(s){i||(e&&O(e.$$.fragment,s),i=!0)},o(s){e&&z(e.$$.fragment,s),i=!1},d(s){s&&g(t),e&&ue(e,s)}}}function mt(l){let e,t;return{c(){e=L("div"),t=j(l[6]),this.h()},l(i){e=R(i,"DIV",{id:!0});var r=S(e);t=F(r,l[6]),r.forEach(g),this.h()},h(){v(e,"id",l[11]),m(e,"bx--progress-bar__helper-text",!0)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&64&&X(t,i[6])},d(i){i&&g(e)}}}function Ql(l){let e,t,i,r,n,s,o,a,u,c,f,h,d;const b=l[15].labelText,_=we(b,l,l[14],ct),k=_||Fl(l);let w=(l[2]==="error"||l[2]==="finished")&&dt(l),p=l[6]&&mt(l),M=[l[12]],D={};for(let E=0;E{w=null}),de()),(!d||P&128)&&v(t,"for",E[7]),(!d||P&32)&&m(t,"bx--visually-hidden",E[5]),P&261&&Pe(s,"transform",E[2]==="active"&&`scaleX(${E[8]/E[0]})`),(!d||P&128)&&v(n,"id",E[7]),(!d||P&4&&o!==(o=E[2]==="active"))&&v(n,"aria-busy",o),(!d||P&512&&a!==(a=E[9]?void 0:0))&&v(n,"aria-valuemin",a),(!d||P&513&&u!==(u=E[9]?void 0:E[0]))&&v(n,"aria-valuemax",u),(!d||P&768&&c!==(c=E[9]?void 0:E[8]))&&v(n,"aria-valuenow",c),(!d||P&64&&f!==(f=E[6]?E[11]:null))&&v(n,"aria-describedby",f),E[6]?p?p.p(E,P):(p=mt(E),p.c(),p.m(e,null)):p&&(p.d(1),p=null),re(e,D=_e(M,[P&4096&&E[12]])),m(e,"bx--progress-bar",!0),m(e,"bx--progress-bar--indeterminate",E[9]),m(e,"bx--progress-bar--big",E[3]==="md"),m(e,"bx--progress-bar--small",E[3]==="sm"),m(e,"bx--progress-bar--inline",E[1]==="inline"),m(e,"bx--progress-bar--indented",E[1]==="indented"),m(e,"bx--progress-bar--error",E[2]==="error"),m(e,"bx--progress-bar--finished",E[2]==="finished")},i(E){d||(O(k,E),O(w),d=!0)},o(E){z(k,E),z(w),d=!1},d(E){E&&g(e),k&&k.d(E),w&&w.d(),p&&p.d()}}}function Ul(l,e,t){let i;const r=["value","max","kind","status","size","labelText","hideLabel","helperText","id"];let n=le(e,r),{$$slots:s={},$$scope:o}=e,{value:a=void 0}=e,{max:u=100}=e,{kind:c="default"}=e,{status:f="active"}=e,{size:h="md"}=e,{labelText:d=""}=e,{hideLabel:b=!1}=e,{helperText:_=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e;const w={error:Zt,finished:xt};let p="ccs-"+Math.random().toString(36),M;return l.$$set=D=>{e=B(B({},e),he(D)),t(12,n=le(e,r)),"value"in D&&t(13,a=D.value),"max"in D&&t(0,u=D.max),"kind"in D&&t(1,c=D.kind),"status"in D&&t(2,f=D.status),"size"in D&&t(3,h=D.size),"labelText"in D&&t(4,d=D.labelText),"hideLabel"in D&&t(5,b=D.hideLabel),"helperText"in D&&t(6,_=D.helperText),"id"in D&&t(7,k=D.id),"$$scope"in D&&t(14,o=D.$$scope)},l.$$.update=()=>{l.$$.dirty&8196&&t(9,i=a===void 0&&f==="active"),l.$$.dirty&8197&&(f==="error"||a<0?t(8,M=0):a>u?t(8,M=u):t(8,M=a))},[u,c,f,h,d,b,_,k,M,i,w,p,n,a,o,s]}class Yl extends be{constructor(e){super(),ge(this,e,Ul,Ql,pe,{value:13,max:0,kind:1,status:2,size:3,labelText:4,hideLabel:5,helperText:6,id:7})}}const Hl=Yl;class Wl extends $t{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:rt()},t)}getOptimisticResult(e){return e.behavior=rt(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var i,r,n,s,o,a;const{state:u}=e,c=super.createResult(e,t),{isFetching:f,isRefetching:h}=c,d=f&&((i=u.fetchMeta)==null||(r=i.fetchMore)==null?void 0:r.direction)==="forward",b=f&&((n=u.fetchMeta)==null||(s=n.fetchMore)==null?void 0:s.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:el(t,(o=u.data)==null?void 0:o.pages),hasPreviousPage:tl(t,(a=u.data)==null?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:b,isRefetching:h&&!d&&!b}}}function Kl(l,e,t){const i=ll(l,e,t);return il(i,Wl)}class Ce{static getConcepts(){return N(q,{method:"GET",url:"/api/v1/concepts/"})}static getConcept(e,t,i){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},query:{draft:i},errors:{422:"Validation Error"}})}static editConcept(e,t,i){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteConcept(e,t){return N(q,{method:"DELETE",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static getConceptColumnInfos(e,t){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/column_infos",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static createConcept(e){return N(q,{method:"POST",url:"/api/v1/concepts/create",body:e,mediaType:"application/json",errors:{422:"Validation Error"}})}static mergeConceptDraft(e,t,i){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/merge_draft",path:{namespace:e,concept_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getConceptModels(e,t){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static getConceptModel(e,t,i){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}",path:{namespace:e,concept_name:t,embedding_name:i},errors:{422:"Validation Error"}})}static score(e,t,i,r){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}/score",path:{namespace:e,concept_name:t,embedding_name:i},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static generateExamples(e){return N(q,{method:"GET",url:"/api/v1/concepts/generate_examples",query:{description:e},errors:{422:"Validation Error"}})}}class tt{static getSources(){return N(q,{method:"GET",url:"/api/v1/data_loaders/"})}static getSourceSchema(e){return N(q,{method:"GET",url:"/api/v1/data_loaders/{source_name}",path:{source_name:e},errors:{422:"Validation Error"}})}static load(e,t){return N(q,{method:"POST",url:"/api/v1/data_loaders/{source_name}/load",path:{source_name:e},body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}}class ne{static getDatasets(){return N(q,{method:"GET",url:"/api/v1/datasets/"})}static getManifest(e,t){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static deleteDataset(e,t){return N(q,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static computeSignal(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/compute_signal",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteSignal(e,t,i){return N(q,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}/delete_signal",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getStats(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/stats",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsDownload(e,t,i){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_download",path:{namespace:e,dataset_name:t},query:{url_safe_options:i},errors:{422:"Validation Error"}})}static selectRows(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsSchema(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_schema",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectGroups(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_groups",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getMedia(e,t,i,r){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/media",path:{namespace:e,dataset_name:t},query:{item_id:i,leaf_path:r},errors:{422:"Validation Error"}})}static getSettings(e,t){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static updateSettings(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}}class Jl{static login(e){return N(q,{method:"GET",url:"/google/login",query:{origin_url:e},errors:{422:"Validation Error"}})}static auth(){return N(q,{method:"GET",url:"/google/auth"})}static logout(){return N(q,{method:"GET",url:"/google/logout"})}}const Xe="*",Oi="__rowid__",Le="__value__",Pi={text:["string","string_span"],text_embedding:["embedding"],image:["binary"]};function Ai(l){return Xl(l)||Zl(l)}function Xl(l){return["float16","float32","float64"].indexOf(l??"")>=0}function Zl(l){return["int8","int16","int32","int64","uint8","uint16","uint32","uint64"].indexOf(l)>=0}function Vi(l){return typeof l=="string"?l:l.map(e=>e.includes(".")?`"${e}"`:e).join(".")}function xl(l){return l.repeated_field?xl(l.repeated_field):l.dtype&&!["embedding","binary"].includes(l.dtype)}function Li(l){return l.dtype&&!["embedding","binary"].includes(l.dtype)}function Ne(l){var t;return Array.isArray(l)?l:((t=l.match(/(?:"[^"]*"|[^.])+(?:\.+$)?/g))==null?void 0:t.map(i=>i.replace(/"/g,"")))||[]}function $l(l,e){if(!l||!e||(l=Ne(l),e=Ne(e),l.length!==e.length))return!1;for(let t=0;tt.path.length>0)}function Bi(l){return l==null?[]:qe(l).filter(e=>e.dtype!=null)}function Gi(l,e){return e==null?[]:(e?qe(e):[]).filter(i=>i.dtype==l)}function Je(l){let e;if(Array.isArray(l))e=[...l,...l.flatMap(Je)];else{const{[Le]:t,[je]:i,[Fe]:r,...n}=l,s=Object.values(n||{});e=[];for(const o of s)if(Array.isArray(o)){e=[...e,o];for(const a of o)e=[...e,a,...Je(a)]}else e=[...e,o,...Je(o)]}return e}function ji(l,e){return qe(l).find(i=>lt(i.path,e))}function Fi(l,e){return Je(l).filter(i=>lt(e,Vt.path(i)))}function ht(l,e,t=!1){return ti(e)&&(t=!0),e===l?t:e.fields!=null?Object.values(e.fields).some(i=>ht(l,i,t)):e.repeated_field!=null?ht(l,e.repeated_field,t):!1}function ti(l){return l.signal!=null}const Vt={path:l=>{if(!l)return;const e=l[je];if(e==null)throw Error(`Item does not have a path defined: ${JSON.stringify(l)}`);return e},value:(l,e)=>l?l[Le]:null,field:l=>{if(l)return l[Fe]},dtype:l=>{const e=Vt.field(l);return e==null?void 0:e.dtype}};function $e(l,e){const{fields:t,repeated_field:i,...r}=l,n={...r,path:[]};if(t!=null){n.fields={};for(const[s,o]of Object.entries(t)){const a=$e(o,[...e,s]);a.path=[...e,s],n.fields[s]=a}}if(i!=null){const s=$e(i,[...e,Xe]);s.path=[...e,Xe],n.repeated_field=s}return n}function et(l,e,t){const i=e.find(n=>lt(n.path,t));let r={};if(Array.isArray(l))return r=l.map((n,s)=>et(n,e,[...t,s.toString()])),r[Le]=null,r[je]=t,r[Fe]=i,r;if(l!=null&&typeof l=="object"){const{[Le]:n,...s}=l;r=Object.entries(s).reduce((o,[a,u])=>(o[a]=et(u,e,[...t,a]),o),{}),r[Le]=n}else r[Le]=l;return r[je]=t,r[Fe]=i,r}function _t(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function li(l){let e,t,i=l[1]&&_t(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],n={};for(let s=0;s{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class ri extends be{constructor(e){super(),ge(this,e,ii,li,pe,{size:0,title:1})}}const K="datasets",Lt="settings",bt=20,Qi=te(ne.getDatasets,K),Ui=te(ne.getManifest,K,{}),Yi=te(ne.getManifest,K,{select:l=>it(l.dataset_manifest.data_schema)}),Hi=te(function(e,t){return e&&t?ne.getManifest(e,t):Promise.resolve(null)},K,{select:l=>l?it(l.dataset_manifest.data_schema):null}),Wi=te(tt.getSources,K),Ki=te(tt.getSourceSchema,K,{select:l=>l}),Ji=Me(tt.load),Xi=Me(ne.computeSignal,{onSuccess:l=>{ee.invalidateQueries([rl]),nl(l.task_id,()=>{ee.invalidateQueries([K,"getManifest"]),ee.invalidateQueries([K,"selectRowsSchema"]),ee.invalidateQueries([K,"selectRows"])})}}),Zi=Me(ne.deleteDataset,{onSuccess:()=>{ee.invalidateQueries([K])}}),xi=Me(ne.deleteSignal,{onSuccess:()=>{ee.invalidateQueries([K,"getManifest"]),ee.invalidateQueries([K,"selectRowsSchema"]),ee.invalidateQueries([K,"selectRows"])}}),$i=te(ne.getStats,K),er=te(function(e,t,i){const r=i.map(n=>ne.getStats(e,t,{leaf_path:n}));return Promise.all(r)},K),tr=te(async function(e,t,i,r){const n=await ne.selectRows(e,t,i);return{rows:r==null?n.rows:n.rows.map(s=>At(s,r)),total_num_rows:n.total_num_rows}},K),lr=te(ne.selectRowsSchema,K,{select:l=>({schema:it(l.data_schema),...l})}),ir=te(ne.selectGroups,K),rr=(l,e,t,i)=>Kl({queryKey:[K,"selectRows",l,e,t],queryFn:({pageParam:r=0})=>ne.selectRows(l,e,{...t,limit:t.limit||bt,offset:r*(t.limit||bt)}),select:r=>({...r,pages:r.pages.map(n=>({rows:n.rows.map(s=>At(s,i)),total_num_rows:n.total_num_rows}))}),getNextPageParam:(r,n)=>n.length,enabled:!!i}),nr=te(ne.getSettings,Lt),sr=Me(ne.updateSettings,{onSuccess:()=>{ee.invalidateQueries([Lt])}}),De="concepts",ar=te(Ce.getConcept,De),or=te(Ce.getConcepts,De),ur=te(Ce.getConceptModels,De),fr=Me(Ce.getConceptModel,{onSuccess:()=>{ee.invalidateQueries([De])}}),cr=Me(Ce.createConcept,{onSuccess:()=>{ee.invalidateQueries([De])}}),dr=Me(Ce.editConcept,{onSuccess:()=>{ee.invalidateQueries([De]),ee.invalidateQueries([K,"selectRows"])}}),mr=Me(Ce.deleteConcept,{onSuccess:()=>ee.invalidateQueries([De])}),hr=te(Ce.score,De),_r=te(Ce.getConceptColumnInfos,De),ni=Me(Jl.logout,{onSuccess:()=>{ee.invalidateQueries([sl]),ee.invalidateQueries([De]),ee.invalidateQueries([K])}});function gt(l){let e,t,i,r,n,s=`${l[2]}px`,o=`${Math.max(l[5]/2+Ke,Math.min(l[1],l[6]-l[5]/2-Ke))}px`,a;const u=[ai,si],c=[];function f(h,d){return h[0]?0:h[3]?1:-1}return~(i=f(l))&&(r=c[i]=u[i](l)),{c(){e=L("div"),t=L("div"),r&&r.c(),this.h()},l(h){e=R(h,"DIV",{role:!0,class:!0});var d=S(e);t=R(d,"DIV",{class:!0});var b=S(t);r&&r.l(b),b.forEach(g),d.forEach(g),this.h()},h(){v(t,"class","min-w-xl text-container svelte-80e402"),v(e,"role","tooltip"),v(e,"class","hover-tooltip absolute mt-2 -translate-x-1/2 break-words border border-gray-300 bg-white p-2 shadow-md svelte-80e402"),Yt(()=>l[7].call(e)),Pe(e,"top",s),Pe(e,"left",o)},m(h,d){A(h,e,d),T(e,t),~i&&c[i].m(t,null),n=Ht(e,l[7].bind(e)),a=!0},p(h,d){let b=i;i=f(h),i===b?~i&&c[i].p(h,d):(r&&(ce(),z(c[b],1,1,()=>{c[b]=null}),de()),~i?(r=c[i],r?r.p(h,d):(r=c[i]=u[i](h),r.c()),O(r,1),r.m(t,null)):r=null),d&4&&s!==(s=`${h[2]}px`)&&Pe(e,"top",s),d&34&&o!==(o=`${Math.max(h[5]/2+Ke,Math.min(h[1],h[6]-h[5]/2-Ke))}px`)&&Pe(e,"left",o)},i(h){a||(O(r),a=!0)},o(h){z(r),a=!1},d(h){h&&g(e),~i&&c[i].d(),n()}}}function si(l){let e,t,i;const r=[l[4]];var n=l[3];function s(o){let a={};for(let u=0;u{ue(c,1)}),de()}n?(e=ze(n,s()),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}else n&&e.$set(u)},i(o){i||(e&&O(e.$$.fragment,o),i=!0)},o(o){e&&z(e.$$.fragment,o),i=!1},d(o){o&&g(t),e&&ue(e,o)}}}function ai(l){let e,t;return{c(){e=L("span"),t=j(l[0]),this.h()},l(i){e=R(i,"SPAN",{class:!0});var r=S(e);t=F(r,l[0]),r.forEach(g),this.h()},h(){v(e,"class","whitespace-pre-wrap")},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&1&&X(t,i[0])},i:se,o:se,d(i){i&&g(e)}}}function oi(l){let e,t,i=l[0]!=""&>(l);return{c(){i&&i.c(),e=ie()},l(r){i&&i.l(r),e=ie()},m(r,n){i&&i.m(r,n),A(r,e,n),t=!0},p(r,[n]){r[0]!=""?i?(i.p(r,n),n&1&&O(i,1)):(i=gt(r),i.c(),O(i,1),i.m(e.parentNode,e)):i&&(ce(),z(i,1,1,()=>{i=null}),de())},i(r){t||(O(i),t=!0)},o(r){z(i),t=!1},d(r){i&&i.d(r),r&&g(e)}}}const Ke=10;function ui(l,e,t){let{text:i}=e,{x:r}=e,{y:n}=e,{component:s}=e,{props:o}=e;const a=window.innerWidth;let u=0;function c(){u=this.clientWidth,t(5,u)}return l.$$set=f=>{"text"in f&&t(0,i=f.text),"x"in f&&t(1,r=f.x),"y"in f&&t(2,n=f.y),"component"in f&&t(3,s=f.component),"props"in f&&t(4,o=f.props)},[i,r,n,s,o,u,a,c]}class fi extends be{constructor(e){super(),ge(this,e,ui,oi,pe,{text:0,x:1,y:2,component:3,props:4})}}function Rt(l,{text:e,component:t,props:i}){if(t==null&&e==null)return;let r,n=e,s=t,o=i;function a(){if(r!=null)return;const c=l.getBoundingClientRect();r=new fi({props:{text:n,component:s,props:o,x:c.left+c.width/2,y:c.bottom},target:document.body})}function u(){r==null||r.$destroy(),r=void 0}return l.addEventListener("mouseover",a),l.addEventListener("mouseleave",u),l.addEventListener("click",u),{update({text:c,component:f,props:h}){n=c,s=f,o=h,r==null||r.$set({tooltipText:c})},destroy(){u(),l.removeEventListener("mouseover",a),l.removeEventListener("mouseleave",u),l.removeEventListener("click",u)}}}function pt(l,e,t){const i=l.slice();i[13]=e[t][0],i[14]=e[t][1];const r=i[14].step_progress==null?void 0:i[14].step_progress;return i[15]=r,i}function vt(l){let e,t,i,r,n,s,o,a,u,c,f,h,d;const b=[mi,di,ci],_=[];function k(p,M){return p[5].length?0:p[4].length?1:2}r=k(l),n=_[r]=b[r](l);let w=l[5].length===1&&kt(l);return a=new Gl({props:{align:"bottom-right",caret:!0,closeOnOutsideClick:!0,open:l[1],$$slots:{default:[hi]},$$scope:{ctx:l}}}),a.$on("click:outside",l[11]),{c(){e=L("div"),t=L("button"),i=L("div"),n.c(),s=x(),w&&w.c(),o=x(),ae(a.$$.fragment),this.h()},l(p){e=R(p,"DIV",{});var M=S(e);t=R(M,"BUTTON",{class:!0});var D=S(t);i=R(D,"DIV",{class:!0});var E=S(i);n.l(E),E.forEach(g),s=$(D),w&&w.l(D),o=$(D),ve(a.$$.fragment,D),D.forEach(g),M.forEach(g),this.h()},h(){v(i,"class","relative z-10 flex gap-x-2"),t.disabled=u=!l[2],v(t,"class","task-button relative h-8 rounded border p-2 transition"),m(t,"opacity-40",!l[2]),m(t,"bg-white",!l[5].length),m(t,"bg-blue-200",l[5].length),m(t,"border-blue-400",l[5].length)},m(p,M){A(p,e,M),T(e,t),T(t,i),_[r].m(i,null),T(t,s),w&&w.m(t,null),T(t,o),oe(a,t,null),f=!0,h||(d=[J(t,"click",Kt(l[12])),Ct(c=Rt.call(null,e,{text:l[2]?"":"User does not have access to run tasks."}))],h=!0)},p(p,M){let D=r;r=k(p),r===D?_[r].p(p,M):(ce(),z(_[D],1,1,()=>{_[D]=null}),de(),n=_[r],n?n.p(p,M):(n=_[r]=b[r](p),n.c()),O(n,1),n.m(i,null)),p[5].length===1?w?w.p(p,M):(w=kt(p),w.c(),w.m(t,o)):w&&(w.d(1),w=null);const E={};M&2&&(E.open=p[1]),M&262145&&(E.$$scope={dirty:M,ctx:p}),a.$set(E),(!f||M&4&&u!==(u=!p[2]))&&(t.disabled=u),(!f||M&4)&&m(t,"opacity-40",!p[2]),(!f||M&32)&&m(t,"bg-white",!p[5].length),(!f||M&32)&&m(t,"bg-blue-200",p[5].length),(!f||M&32)&&m(t,"border-blue-400",p[5].length),c&&Ot(c.update)&&M&4&&c.update.call(null,{text:p[2]?"":"User does not have access to run tasks."})},i(p){f||(O(n),O(a.$$.fragment,p),f=!0)},o(p){z(n),z(a.$$.fragment,p),f=!1},d(p){p&&g(e),_[r].d(),w&&w.d(),ue(a),h=!1,Ze(d)}}}function ci(l){let e,t,i;return t=new ri({}),{c(){e=j("Tasks "),ae(t.$$.fragment)},l(r){e=F(r,"Tasks "),ve(t.$$.fragment,r)},m(r,n){A(r,e,n),oe(t,r,n),i=!0},p:se,i(r){i||(O(t.$$.fragment,r),i=!0)},o(r){z(t.$$.fragment,r),i=!1},d(r){r&&g(e),ue(t,r)}}}function di(l){let e=l[4].length+"",t,i,r=l[4].length>1?"s":"",n;return{c(){t=j(e),i=j(" failed task"),n=j(r)},l(s){t=F(s,e),i=F(s," failed task"),n=F(s,r)},m(s,o){A(s,t,o),A(s,i,o),A(s,n,o)},p(s,o){o&16&&e!==(e=s[4].length+"")&&X(t,e),o&16&&r!==(r=s[4].length>1?"s":"")&&X(n,r)},i:se,o:se,d(s){s&&g(t),s&&g(i),s&&g(n)}}}function mi(l){let e=l[5].length+"",t,i,r=l[5].length>1?"s":"",n,s,o,a;return o=new zl({props:{withOverlay:!1,small:!0}}),{c(){t=j(e),i=j(" running task"),n=j(r),s=j("... "),ae(o.$$.fragment)},l(u){t=F(u,e),i=F(u," running task"),n=F(u,r),s=F(u,"... "),ve(o.$$.fragment,u)},m(u,c){A(u,t,c),A(u,i,c),A(u,n,c),A(u,s,c),oe(o,u,c),a=!0},p(u,c){(!a||c&32)&&e!==(e=u[5].length+"")&&X(t,e),(!a||c&32)&&r!==(r=u[5].length>1?"s":"")&&X(n,r)},i(u){a||(O(o.$$.fragment,u),a=!0)},o(u){z(o.$$.fragment,u),a=!1},d(u){u&&g(t),u&&g(i),u&&g(n),u&&g(s),ue(o,u)}}}function kt(l){let e,t=`${l[3]*100}%`;return{c(){e=L("div"),this.h()},l(i){e=R(i,"DIV",{class:!0}),S(e).forEach(g),this.h()},h(){v(e,"class","absolute left-0 top-0 z-0 h-full bg-blue-400 transition"),Pe(e,"width",t)},m(i,r){A(i,e,r)},p(i,r){r&8&&t!==(t=`${i[3]*100}%`)&&Pe(e,"width",t)},d(i){i&&g(e)}}}function Et(l,e){let t,i,r,n=e[14].name+"",s,o,a,u,c,f;return u=new Hl({props:{labelText:e[14].message||"",helperText:e[14].status!="completed"?e[14].details:"",value:e[14].status==="completed"?1:e[15],max:1,size:"sm",status:e[7][e[14].status]}}),{key:l,first:null,c(){t=L("div"),i=L("div"),r=L("div"),s=j(n),o=x(),a=L("div"),ae(u.$$.fragment),c=x(),this.h()},l(h){t=R(h,"DIV",{class:!0});var d=S(t);i=R(d,"DIV",{class:!0});var b=S(i);r=R(b,"DIV",{class:!0});var _=S(r);s=F(_,n),_.forEach(g),b.forEach(g),o=$(d),a=R(d,"DIV",{class:!0});var k=S(a);ve(u.$$.fragment,k),k.forEach(g),c=$(d),d.forEach(g),this.h()},h(){v(r,"class","mr-2"),v(i,"class","text-s flex flex-row"),v(a,"class","progress-container mt-3"),v(t,"class","relative border-b-2 border-slate-200 p-4 text-left last:border-b-0"),this.first=t},m(h,d){A(h,t,d),T(t,i),T(i,r),T(r,s),T(t,o),T(t,a),oe(u,a,null),T(t,c),f=!0},p(h,d){e=h,(!f||d&1)&&n!==(n=e[14].name+"")&&X(s,n);const b={};d&1&&(b.labelText=e[14].message||""),d&1&&(b.helperText=e[14].status!="completed"?e[14].details:""),d&1&&(b.value=e[14].status==="completed"?1:e[15]),d&1&&(b.status=e[7][e[14].status]),u.$set(b)},i(h){f||(O(u.$$.fragment,h),f=!0)},o(h){z(u.$$.fragment,h),f=!1},d(h){h&&g(t),ue(u)}}}function hi(l){let e,t=[],i=new Map,r,n=l[0];const s=o=>o[13];for(let o=0;o{i=null}),de())},i(r){t||(O(i),t=!0)},o(r){z(i),t=!1},d(r){i&&i.d(r),r&&g(e)}}}function bi(l,e,t){let i,r,n,s,o,a,u;const c=al();Ae(l,c,k=>t(10,u=k));let f=!1;const h={pending:"active",completed:"finished",error:"error"},d=Pt();Ae(l,d,k=>t(9,a=k));const b=()=>{f&&t(1,f=!1)},_=()=>t(1,f=!f);return l.$$.update=()=>{var k,w,p,M;l.$$.dirty&1024&&t(0,i=Object.entries(((k=u.data)==null?void 0:k.tasks)||{}).sort(([,D],[,E])=>Date.parse(E.start_timestamp)-Date.parse(D.start_timestamp))),l.$$.dirty&1&&t(5,r=i.filter(([,D])=>D.status==="pending")),l.$$.dirty&1&&t(4,n=i.filter(([,D])=>D.status==="error")),l.$$.dirty&1024&&t(3,s=((w=u.data)==null?void 0:w.progress)||0),l.$$.dirty&512&&t(2,o=((p=a.data)==null?void 0:p.access.dataset.compute_signals)||((M=a.data)==null?void 0:M.access.create_dataset))},[i,f,o,s,n,r,c,h,d,a,u,b,_]}class gi extends be{constructor(e){super(),ge(this,e,bi,_i,pe,{})}}const pi=l=>({}),wt=l=>({}),vi=l=>({}),yt=l=>({}),ki=l=>({}),Tt=l=>({});function St(l){let e,t,i,r;const n=[wi,Ei],s=[];function o(a,u){var c;return((c=a[1].data)==null?void 0:c.user)!=null?0:1}return e=o(l),t=s[e]=n[e](l),{c(){t.c(),i=ie()},l(a){t.l(a),i=ie()},m(a,u){s[e].m(a,u),A(a,i,u),r=!0},p(a,u){let c=e;e=o(a),e===c?s[e].p(a,u):(ce(),z(s[c],1,1,()=>{s[c]=null}),de(),t=s[e],t?t.p(a,u):(t=s[e]=n[e](a),t.c()),O(t,1),t.m(i.parentNode,i))},i(a){r||(O(t),r=!0)},o(a){z(t),r=!1},d(a){s[e].d(a),a&&g(i)}}}function Ei(l){let e,t;return e=new ol({props:{size:"small",href:l[3],target:l[6],$$slots:{default:[yi]},$$scope:{ctx:l}}}),{c(){ae(e.$$.fragment)},l(i){ve(e.$$.fragment,i)},m(i,r){oe(e,i,r),t=!0},p(i,r){const n={};r&256&&(n.$$scope={dirty:r,ctx:i}),e.$set(n)},i(i){t||(O(e.$$.fragment,i),t=!0)},o(i){z(e.$$.fragment,i),t=!1},d(i){ue(e,i)}}}function wi(l){var h;let e,t,i=((h=l[1].data)==null?void 0:h.user.given_name)+"",r,n,s,o,a,u,c,f;return a=new wl({props:{flipped:!0,$$slots:{default:[Ti]},$$scope:{ctx:l}}}),{c(){e=L("div"),t=L("div"),r=j(i),s=x(),o=L("div"),ae(a.$$.fragment),this.h()},l(d){e=R(d,"DIV",{class:!0});var b=S(e);t=R(b,"DIV",{class:!0});var _=S(t);r=F(_,i),_.forEach(g),s=$(b),o=R(b,"DIV",{});var k=S(o);ve(a.$$.fragment,k),k.forEach(g),b.forEach(g),this.h()},h(){v(t,"class","ml-2 mr-1 flex"),v(e,"class","flex h-9 flex-row items-center rounded border border-neutral-200")},m(d,b){var _,k;A(d,e,b),T(e,t),T(t,r),T(e,s),T(e,o),oe(a,o,null),u=!0,c||(f=Ct(n=Rt.call(null,t,{text:`Logged into Google as ${(_=l[1].data)==null?void 0:_.user.name} with email ${(k=l[1].data)==null?void 0:k.user.email}`})),c=!0)},p(d,b){var k,w,p;(!u||b&2)&&i!==(i=((k=d[1].data)==null?void 0:k.user.given_name)+"")&&X(r,i),n&&Ot(n.update)&&b&2&&n.update.call(null,{text:`Logged into Google as ${(w=d[1].data)==null?void 0:w.user.name} with email ${(p=d[1].data)==null?void 0:p.user.email}`});const _={};b&256&&(_.$$scope={dirty:b,ctx:d}),a.$set(_)},i(d){u||(O(a.$$.fragment,d),u=!0)},o(d){z(a.$$.fragment,d),u=!1},d(d){d&&g(e),ue(a),c=!1,f()}}}function yi(l){let e;return{c(){e=j("Login")},l(t){e=F(t,"Login")},m(t,i){A(t,e,i)},d(t){t&&g(e)}}}function Ti(l){let e,t;return e=new Ol({props:{class:"optionOne",text:"Logout"}}),e.$on("click",l[5]),{c(){ae(e.$$.fragment)},l(i){ve(e.$$.fragment,i)},m(i,r){oe(e,i,r),t=!0},p:se,i(i){t||(O(e.$$.fragment,i),t=!0)},o(i){z(e.$$.fragment,i),t=!1},d(i){ue(e,i)}}}function Si(l){var Ee;let e,t,i,r,n,s,o,a,u,c,f,h,d,b,_,k,w,p,M;const D=l[7]["header-subtext"],E=we(D,l,l[8],Tt),P=l[7]["header-center"],V=we(P,l,l[8],yt),me=l[7]["header-right"],U=we(me,l,l[8],wt);_=new gi({});let G=((Ee=l[1].data)==null?void 0:Ee.auth_enabled)&&St(l);const ke=l[7].default,Z=we(ke,l,l[8],null);return{c(){e=L("div"),t=L("div"),i=L("div"),r=L("a"),n=j("Lilac "),s=L("span"),o=j(l[0]),a=x(),u=L("div"),E&&E.c(),c=x(),f=L("div"),V&&V.c(),h=x(),d=L("div"),U&&U.c(),b=x(),ae(_.$$.fragment),k=x(),G&&G.c(),w=x(),p=L("div"),Z&&Z.c(),this.h()},l(C){e=R(C,"DIV",{class:!0});var Q=S(e);t=R(Q,"DIV",{class:!0});var fe=S(t);i=R(fe,"DIV",{class:!0});var I=S(i);r=R(I,"A",{class:!0,href:!0});var Be=S(r);n=F(Be,"Lilac "),s=R(Be,"SPAN",{});var Qe=S(s);o=F(Qe,l[0]),Qe.forEach(g),Be.forEach(g),a=$(I),u=R(I,"DIV",{class:!0});var Ue=S(u);E&&E.l(Ue),Ue.forEach(g),I.forEach(g),c=$(fe),f=R(fe,"DIV",{class:!0});var Ye=S(f);V&&V.l(Ye),Ye.forEach(g),h=$(fe),d=R(fe,"DIV",{class:!0});var Oe=S(d);U&&U.l(Oe),b=$(Oe),ve(_.$$.fragment,Oe),k=$(Oe),G&&G.l(Oe),Oe.forEach(g),fe.forEach(g),w=$(Q),p=R(Q,"DIV",{class:!0});var He=S(p);Z&&Z.l(He),He.forEach(g),Q.forEach(g),this.h()},h(){v(r,"class","text-xl normal-case"),v(r,"href","/"),v(u,"class","mt-1 pl-4"),v(i,"class","mr-4 flex flex-row items-center"),v(f,"class","flex-grow flex-row items-center justify-center"),v(d,"class","flex flex-row items-center gap-x-2"),v(t,"class","flex flex-row items-center justify-between justify-items-center gap-x-12 border-b border-gray-200 px-4 py-2"),v(p,"class","flex h-full w-full overflow-hidden"),v(e,"class","flex h-full w-full flex-col")},m(C,Q){A(C,e,Q),T(e,t),T(t,i),T(i,r),T(r,n),T(r,s),T(s,o),T(i,a),T(i,u),E&&E.m(u,null),T(t,c),T(t,f),V&&V.m(f,null),T(t,h),T(t,d),U&&U.m(d,null),T(d,b),oe(_,d,null),T(d,k),G&&G.m(d,null),T(e,w),T(e,p),Z&&Z.m(p,null),M=!0},p(C,[Q]){var fe;(!M||Q&1)&&X(o,C[0]),E&&E.p&&(!M||Q&256)&&ye(E,D,C,C[8],M?Se(D,C[8],Q,ki):Te(C[8]),Tt),V&&V.p&&(!M||Q&256)&&ye(V,P,C,C[8],M?Se(P,C[8],Q,vi):Te(C[8]),yt),U&&U.p&&(!M||Q&256)&&ye(U,me,C,C[8],M?Se(me,C[8],Q,pi):Te(C[8]),wt),(fe=C[1].data)!=null&&fe.auth_enabled?G?(G.p(C,Q),Q&2&&O(G,1)):(G=St(C),G.c(),O(G,1),G.m(d,null)):G&&(ce(),z(G,1,1,()=>{G=null}),de()),Z&&Z.p&&(!M||Q&256)&&ye(Z,ke,C,C[8],M?Se(ke,C[8],Q,null):Te(C[8]),null)},i(C){M||(O(E,C),O(V,C),O(U,C),O(_.$$.fragment,C),O(G),O(Z,C),M=!0)},o(C){z(E,C),z(V,C),z(U,C),z(_.$$.fragment,C),z(G),z(Z,C),M=!1},d(C){C&&g(e),E&&E.d(C),V&&V.d(C),U&&U.d(C),ue(_),G&&G.d(),Z&&Z.d(C)}}}function Mi(l,e,t){let i,r,{$$slots:n={},$$scope:s}=e,{title:o}=e;const a=Pt();Ae(l,a,_=>t(1,r=_));const u=location.origin,c=`${u}/google/login?origin_url=${u}`,f=ni();Ae(l,f,_=>t(9,i=_));function h(){i.mutate([])}const b=window.self!==window.top?"_blank":"";return l.$$set=_=>{"title"in _&&t(0,o=_.title),"$$scope"in _&&t(8,s=_.$$scope)},[o,r,a,c,f,h,b,n,s]}class br extends be{constructor(e){super(),ge(this,e,Mi,Si,pe,{title:0})}}export{At as $,ir as A,Xe as B,ri as C,ji as D,sr as E,tr as F,Gi as G,er as H,lr as I,Qi as J,Zi as K,Vt as L,zl as M,cr as N,wl as O,br as P,dr as Q,Ce as R,qi as S,Pi as T,Oi as U,Le as V,lt as W,Ai as X,ei as Y,hr as Z,it as _,ar as a,Hi as a0,fr as a1,ur as a2,_r as a3,Wi as a4,Ji as a5,Ki as a6,Ne as b,qe as c,mr as d,$l as e,Ni as f,Ri as g,Rt as h,zi as i,Fi as j,ti as k,Je as l,Ui as m,Yi as n,rr as o,Bi as p,or as q,Xi as r,Vi as s,nr as t,xi as u,ht as v,xl as w,Li as x,Ol as y,$i as z};