@spaceandtimelabs/dapp-mi-space-time 0.1.7-263 → 0.1.7-264

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{jw as o,k as e,r as t}from"./vendor-charts-a0e04cd5.js";import{u as n,O as s,E as d,a as p}from"./index-a58871fd.js";import"./vendor-editor-7b15e8f0.js";import"./vendor-three-925330d2.js";const x=r=>{const a=o(),{height:i}=n();return e.jsx(t.Suspense,{fallback:s,children:e.jsx(d,{pageHeight:i,children:a?e.jsx(s,{}):e.jsx(p,{...r,hideSchemaSidebar:!1})})})};export{x as default};
1
+ import{jw as o,k as e,r as t}from"./vendor-charts-ea315f2b.js";import{u as n,O as s,E as d,a as p}from"./index-64cd0125.js";import"./vendor-editor-8d2b746e.js";import"./vendor-three-69d08b24.js";const x=r=>{const a=o(),{height:i}=n();return e.jsx(t.Suspense,{fallback:s,children:e.jsx(d,{pageHeight:i,children:a?e.jsx(s,{}):e.jsx(p,{...r,hideSchemaSidebar:!1})})})};export{x as default};
@@ -1,4 +1,4 @@
1
- import{h9 as zt,mr as Br,r as E,a9 as St,k as f,an as Tt,b4 as x,cN as vn,ms as Fr,cK as rn,mt as Kr,mu as Wr,b6 as dt,d1 as bt,du as on,am as ht,kB as Dn,b_ as an,cq as It,mv as Ur,mw as Vr,mx as zr,dd as Y,dy as sr,aa as ir,b$ as Ve,dA as $r,cg as Gr,lO as Xr,a_ as Jr,df as Zr,g as sn,a as cr,my as qr,R as g,mz as I,mA as be,mB as Ce,mC as $t,mD as De,mE as eo,mF as $,mG as wn,mH as to,mI as Ct,mJ as Z,mK as Ye,mL as Pe,mM as Gt,mN as Ae,mO as no,mP as ro,mQ as ie,mR as ce,mS as Le,mT as Xt,mU as he,mV as Ge,mW as Xe,z as oo,mX as ft,mY as Jt,mZ as cn,m_ as Rt,m$ as ao,n0 as kn,n1 as Sn,n2 as so,n3 as io,n4 as pr,n5 as bn,n6 as it,n7 as ct,n8 as co,n9 as po,na as lr,nb as ur,nc as lo,nd as uo,ne as ho,nf as fo,ng as mo,nh as go,ni as Je,nj as yo,nk as vo,nl as mt,nm as gt,nn as yt,no as Cn,np as _n,nq as Do,F as wo,nr as ko,be as dr,bc as So,dq as pt,dW as bo,ns as Co,dP as _o,as as Eo,d_ as xo,m1 as H,au as rt,bH as Fe,ec as En,dv as xn,bI as Yt,m2 as No,ds as Nn,e7 as Mo,e8 as ot,ad as Ke,nt as Pt,aX as Oo,nu as To,dr as jt,dp as Lt,e9 as Io,nv as Ro,nw as Yo}from"./vendor-charts-a0e04cd5.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Mn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Jo,O as Zo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-a58871fd.js";import"./vendor-editor-7b15e8f0.js";import"./vendor-three-925330d2.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),N=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Mn(),[]),E.useEffect(()=>{var M,J,ye,Be,yn;if((M=_==null?void 0:_.content)!=null&&M.length){const jr=(J=_==null?void 0:_.content)==null?void 0:J.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=M=>i(M),_e=(M,J)=>{if(M==="systemHeartbeat"||M==="CPUSkew")return;const ye=J==="ASC"?"DESC":"ASC";Mn(),s(M,ye)},fe=M=>{ae.push("/queries/new?tabID=1"),Dn(M)},Ee=M=>{k(M),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:M})=>rn(M),xe=({runtime:M})=>Kr(M),Ne=({responseSize:M=0})=>Wr(M),Me=({cpuskew:M="59%"})=>f.jsx(Ao,{children:M}),ge=({systemHeartbeat:M="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:M})]}),ue=M=>f.jsx("span",{className:"text",children:M.queryType?M.queryType:"-"}),de=M=>f.jsx("span",{className:"text",children:M!=null&&M.usage?M.usage:"-"}),C=M=>f.jsxs(fn,{onClick:()=>Ee(M),className:"queryText",children:[f.jsx("span",{className:"text",children:M.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=M=>f.jsx(oe,{onClick:()=>{fe(M)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Mt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Mt();const qe=()=>{D(M=>M+1)},Ot=()=>{D(M=>M-1)},et=()=>{D(0)},tt=()=>{D(N-1)},y=()=>{var Be;let M,J,ye;switch(b){case 1:b===1&&(M="Usage and Data Volume Variation over time",J=It.column_chart,ye=zr);break;default:M="Usage and Runtime Trends Over Time",J=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:M}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:J===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:J})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:N,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:M=>ne(M),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Ne},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Me},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),N=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),N.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:N,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),N=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Ne=()=>{j(!1),q({}),We("")},Me=C=>f.jsxs(f.Fragment,{children:[f.jsx(Jr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Zr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!N&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Me,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:N,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(N?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Ne,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
1
+ import{h9 as zt,mr as Br,r as E,a9 as St,k as f,an as Tt,b4 as x,cN as vn,ms as Fr,cK as rn,mt as Kr,mu as Wr,b6 as dt,d1 as bt,du as on,am as ht,kB as Dn,b_ as an,cq as It,mv as Ur,mw as Vr,mx as zr,dd as Y,dy as sr,aa as ir,b$ as Ve,dA as $r,cg as Gr,lO as Xr,a_ as Jr,df as Zr,g as sn,a as cr,my as qr,R as g,mz as I,mA as be,mB as Ce,mC as $t,mD as De,mE as eo,mF as $,mG as wn,mH as to,mI as Ct,mJ as Z,mK as Ye,mL as Pe,mM as Gt,mN as Ae,mO as no,mP as ro,mQ as ie,mR as ce,mS as Le,mT as Xt,mU as he,mV as Ge,mW as Xe,z as oo,mX as ft,mY as Jt,mZ as cn,m_ as Rt,m$ as ao,n0 as kn,n1 as Sn,n2 as so,n3 as io,n4 as pr,n5 as bn,n6 as it,n7 as ct,n8 as co,n9 as po,na as lr,nb as ur,nc as lo,nd as uo,ne as ho,nf as fo,ng as mo,nh as go,ni as Je,nj as yo,nk as vo,nl as mt,nm as gt,nn as yt,no as Cn,np as _n,nq as Do,F as wo,nr as ko,be as dr,bc as So,dq as pt,dW as bo,ns as Co,dP as _o,as as Eo,d_ as xo,m1 as H,au as rt,bH as Fe,ec as En,dv as xn,bI as Yt,m2 as No,ds as Nn,e7 as Mo,e8 as ot,ad as Ke,nt as Pt,aX as Oo,nu as To,dr as jt,dp as Lt,e9 as Io,nv as Ro,nw as Yo}from"./vendor-charts-ea315f2b.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Mn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Jo,O as Zo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-64cd0125.js";import"./vendor-editor-8d2b746e.js";import"./vendor-three-69d08b24.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),N=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Mn(),[]),E.useEffect(()=>{var M,J,ye,Be,yn;if((M=_==null?void 0:_.content)!=null&&M.length){const jr=(J=_==null?void 0:_.content)==null?void 0:J.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=M=>i(M),_e=(M,J)=>{if(M==="systemHeartbeat"||M==="CPUSkew")return;const ye=J==="ASC"?"DESC":"ASC";Mn(),s(M,ye)},fe=M=>{ae.push("/queries/new?tabID=1"),Dn(M)},Ee=M=>{k(M),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:M})=>rn(M),xe=({runtime:M})=>Kr(M),Ne=({responseSize:M=0})=>Wr(M),Me=({cpuskew:M="59%"})=>f.jsx(Ao,{children:M}),ge=({systemHeartbeat:M="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:M})]}),ue=M=>f.jsx("span",{className:"text",children:M.queryType?M.queryType:"-"}),de=M=>f.jsx("span",{className:"text",children:M!=null&&M.usage?M.usage:"-"}),C=M=>f.jsxs(fn,{onClick:()=>Ee(M),className:"queryText",children:[f.jsx("span",{className:"text",children:M.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=M=>f.jsx(oe,{onClick:()=>{fe(M)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Mt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Mt();const qe=()=>{D(M=>M+1)},Ot=()=>{D(M=>M-1)},et=()=>{D(0)},tt=()=>{D(N-1)},y=()=>{var Be;let M,J,ye;switch(b){case 1:b===1&&(M="Usage and Data Volume Variation over time",J=It.column_chart,ye=zr);break;default:M="Usage and Runtime Trends Over Time",J=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:M}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:J===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:J})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:N,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:M=>ne(M),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Ne},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Me},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),N=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),N.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:N,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),N=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Ne=()=>{j(!1),q({}),We("")},Me=C=>f.jsxs(f.Fragment,{children:[f.jsx(Jr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Zr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!N&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Me,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:N,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(N?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Ne,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -0,0 +1 @@
1
+ import{k as r,r as t}from"./vendor-charts-ea315f2b.js";import{O as o,Q as a}from"./index-64cd0125.js";import"./vendor-editor-8d2b746e.js";import"./vendor-three-69d08b24.js";function m(){return r.jsx(t.Suspense,{fallback:o,children:r.jsx(a,{})})}export{m as default};
@@ -1 +1 @@
1
- import{nE as m,B as R,nF as h,nG as V,a6 as B}from"./vendor-charts-a0e04cd5.js";const o=m({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),N={state:o,subscribe(e){return h(o,()=>e(o))},push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e))},reset(e){o.view=e,o.history=[e]},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e)},goBack(){if(o.history.length>1){o.history.pop();const[e]=o.history.slice(-1);o.view=e}},setData(e){o.data=e}},a={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},isTelegram(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},formatNativeUrl(e,t,s){if(a.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!a.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;if(n.startsWith("https://t.me")){const i=R.from(t).toString("base64").replace(/[=]/g,"");n.endsWith("/")&&(n=n.slice(0,-1)),this.setWalletConnectDeepLink(n,s);const c=new URL(n);return c.searchParams.set("startapp",i),c.toString()}n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){const s=this.isTelegram()?"_blank":t;window.open(e,s,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a.WCM_VERSION,"2.7.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=N.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},H=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r=m({enabled:H,userSessionId:"",events:[],connectedWalletId:void 0}),K={state:r,subscribe(e){return h(r.events,()=>e(V(r.events[r.events.length-1])))},initialize(){r.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){r.connectedWalletId=e},click(e){if(r.enabled){const t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},track(e){if(r.enabled){const t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},view(e){if(r.enabled){const t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}}},u=m({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),d={state:u,subscribe(e){return h(u,()=>e(u))},setChains(e){u.chains=e},setWalletConnectUri(e){u.walletConnectUri=e},setIsCustomDesktop(e){u.isCustomDesktop=e},setIsCustomMobile(e){u.isCustomMobile=e},setIsDataLoaded(e){u.isDataLoaded=e},setIsUiLoaded(e){u.isUiLoaded=e},setIsAuth(e){u.isAuth=e}},w=m({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),C={state:w,subscribe(e){return h(w,()=>e(w))},setConfig(e){var t,s;K.initialize(),d.setChains(e.chains),d.setIsAuth(!!e.enableAuthMode),d.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),d.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),a.setModalVersionInStorage(),Object.assign(w,e)}};var z=Object.defineProperty,M=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,U=(e,t,s)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,J=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&U(e,s,t[s]);if(M)for(var s of M(t))F.call(t,s)&&U(e,s,t[s]);return e};const L="https://explorer-api.walletconnect.com",O="wcm",A="js-2.7.0";async function W(e,t){const s=J({sdkType:O,sdkVersion:A},t),n=new URL(e,L);return n.searchParams.append("projectId",C.state.projectId),Object.entries(s).forEach(([i,c])=>{c&&n.searchParams.append(i,String(c))}),(await fetch(n)).json()}const f={async getDesktopListings(e){return W("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return W("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return W("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return W("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${L}/w3m/v1/getWalletImage/${e}?projectId=${C.state.projectId}&sdkType=${O}&sdkVersion=${A}`},getAssetImageUrl(e){return`${L}/w3m/v1/getAssetImage/${e}?projectId=${C.state.projectId}&sdkType=${O}&sdkVersion=${A}`}};var G=Object.defineProperty,D=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,S=(e,t,s)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,X=(e,t)=>{for(var s in t||(t={}))Y.call(t,s)&&S(e,s,t[s]);if(D)for(var s of D(t))Q.call(t,s)&&S(e,s,t[s]);return e};const T=a.isMobile(),p=m({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),ae={state:p,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=C.state;if(e==="NONE"||t==="ALL"&&!e)return p.recomendedWallets;if(a.isArray(e)){const n={recommendedIds:e.join(",")},{listings:l}=await f.getAllListings(n),i=Object.values(l);i.sort((c,v)=>{const y=e.indexOf(c.id),_=e.indexOf(v.id);return y-_}),p.recomendedWallets=i}else{const{chains:s,isAuth:n}=d.state,l=s==null?void 0:s.join(","),i=a.isArray(t),c={page:1,sdks:n?"auth_v1":void 0,entries:a.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:i?t.join(","):void 0},{listings:v}=T?await f.getMobileListings(c):await f.getDesktopListings(c);p.recomendedWallets=Object.values(v)}return p.recomendedWallets},async getWallets(e){const t=X({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=C.state,{recomendedWallets:l}=p;if(n==="ALL")return p.wallets;l.length?t.excludedIds=l.map(x=>x.id).join(","):a.isArray(s)&&(t.excludedIds=s.join(",")),a.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),d.state.isAuth&&(t.sdks="auth_v1");const{page:i,search:c}=e,{listings:v,total:y}=T?await f.getMobileListings(t):await f.getDesktopListings(t),_=Object.values(v),P=c?"search":"wallets";return p[P]={listings:[...p[P].listings,..._],total:y,page:i??1},{listings:_,total:y}},getWalletImageUrl(e){return f.getWalletImageUrl(e)},getAssetImageUrl(e){return f.getAssetImageUrl(e)},resetSearch(){p.search={listings:[],total:0,page:1}}},I=m({open:!1}),E={state:I,subscribe(e){return h(I,()=>e(I))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=d.state;if(a.removeWalletConnectDeepLink(),d.setWalletConnectUri(e==null?void 0:e.uri),d.setChains(e==null?void 0:e.chains),N.reset("ConnectWallet"),s&&n)I.open=!0,t();else{const l=setInterval(()=>{const i=d.state;i.isUiLoaded&&i.isDataLoaded&&(clearInterval(l),I.open=!0,t())},200)}})},close(){I.open=!1}};var Z=Object.defineProperty,$=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,j=(e,t,s)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,se=(e,t)=>{for(var s in t||(t={}))ee.call(t,s)&&j(e,s,t[s]);if($)for(var s of $(t))te.call(t,s)&&j(e,s,t[s]);return e};function ne(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const b=m({themeMode:ne()?"dark":"light"}),k={state:b,subscribe(e){return h(b,()=>e(b))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(b.themeMode=t),s&&(b.themeVariables=se({},s))}},g=m({open:!1,message:"",variant:"success"}),ie={state:g,subscribe(e){return h(g,()=>e(g))},openToast(e,t){g.open=!0,g.message=e,g.variant=t},closeToast(){g.open=!1}};class oe{constructor(t){this.openModal=E.open,this.closeModal=E.close,this.subscribeModal=E.subscribe,this.setTheme=k.setThemeConfig,k.setThemeConfig(t),C.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await B(()=>import("./index-ed989424.js"),["assets/index-ed989424.js","assets/vendor-charts-a0e04cd5.js"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),d.setIsUiLoaded(!0)}}}const le=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:oe},Symbol.toStringTag,{value:"Module"}));export{a as C,ae as E,E as M,d as O,N as R,k as T,ie as a,K as b,C as c,le as i};
1
+ import{nE as m,B as R,nF as h,nG as V,a6 as B}from"./vendor-charts-ea315f2b.js";const o=m({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),N={state:o,subscribe(e){return h(o,()=>e(o))},push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e))},reset(e){o.view=e,o.history=[e]},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e)},goBack(){if(o.history.length>1){o.history.pop();const[e]=o.history.slice(-1);o.view=e}},setData(e){o.data=e}},a={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},isTelegram(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},formatNativeUrl(e,t,s){if(a.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!a.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;if(n.startsWith("https://t.me")){const i=R.from(t).toString("base64").replace(/[=]/g,"");n.endsWith("/")&&(n=n.slice(0,-1)),this.setWalletConnectDeepLink(n,s);const c=new URL(n);return c.searchParams.set("startapp",i),c.toString()}n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){const s=this.isTelegram()?"_blank":t;window.open(e,s,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a.WCM_VERSION,"2.7.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=N.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},H=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r=m({enabled:H,userSessionId:"",events:[],connectedWalletId:void 0}),K={state:r,subscribe(e){return h(r.events,()=>e(V(r.events[r.events.length-1])))},initialize(){r.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){r.connectedWalletId=e},click(e){if(r.enabled){const t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},track(e){if(r.enabled){const t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},view(e){if(r.enabled){const t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}}},u=m({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),d={state:u,subscribe(e){return h(u,()=>e(u))},setChains(e){u.chains=e},setWalletConnectUri(e){u.walletConnectUri=e},setIsCustomDesktop(e){u.isCustomDesktop=e},setIsCustomMobile(e){u.isCustomMobile=e},setIsDataLoaded(e){u.isDataLoaded=e},setIsUiLoaded(e){u.isUiLoaded=e},setIsAuth(e){u.isAuth=e}},w=m({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),C={state:w,subscribe(e){return h(w,()=>e(w))},setConfig(e){var t,s;K.initialize(),d.setChains(e.chains),d.setIsAuth(!!e.enableAuthMode),d.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),d.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),a.setModalVersionInStorage(),Object.assign(w,e)}};var z=Object.defineProperty,M=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,U=(e,t,s)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,J=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&U(e,s,t[s]);if(M)for(var s of M(t))F.call(t,s)&&U(e,s,t[s]);return e};const L="https://explorer-api.walletconnect.com",O="wcm",A="js-2.7.0";async function W(e,t){const s=J({sdkType:O,sdkVersion:A},t),n=new URL(e,L);return n.searchParams.append("projectId",C.state.projectId),Object.entries(s).forEach(([i,c])=>{c&&n.searchParams.append(i,String(c))}),(await fetch(n)).json()}const f={async getDesktopListings(e){return W("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return W("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return W("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return W("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${L}/w3m/v1/getWalletImage/${e}?projectId=${C.state.projectId}&sdkType=${O}&sdkVersion=${A}`},getAssetImageUrl(e){return`${L}/w3m/v1/getAssetImage/${e}?projectId=${C.state.projectId}&sdkType=${O}&sdkVersion=${A}`}};var G=Object.defineProperty,D=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,S=(e,t,s)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,X=(e,t)=>{for(var s in t||(t={}))Y.call(t,s)&&S(e,s,t[s]);if(D)for(var s of D(t))Q.call(t,s)&&S(e,s,t[s]);return e};const T=a.isMobile(),p=m({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),ae={state:p,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=C.state;if(e==="NONE"||t==="ALL"&&!e)return p.recomendedWallets;if(a.isArray(e)){const n={recommendedIds:e.join(",")},{listings:l}=await f.getAllListings(n),i=Object.values(l);i.sort((c,v)=>{const y=e.indexOf(c.id),_=e.indexOf(v.id);return y-_}),p.recomendedWallets=i}else{const{chains:s,isAuth:n}=d.state,l=s==null?void 0:s.join(","),i=a.isArray(t),c={page:1,sdks:n?"auth_v1":void 0,entries:a.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:i?t.join(","):void 0},{listings:v}=T?await f.getMobileListings(c):await f.getDesktopListings(c);p.recomendedWallets=Object.values(v)}return p.recomendedWallets},async getWallets(e){const t=X({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=C.state,{recomendedWallets:l}=p;if(n==="ALL")return p.wallets;l.length?t.excludedIds=l.map(x=>x.id).join(","):a.isArray(s)&&(t.excludedIds=s.join(",")),a.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),d.state.isAuth&&(t.sdks="auth_v1");const{page:i,search:c}=e,{listings:v,total:y}=T?await f.getMobileListings(t):await f.getDesktopListings(t),_=Object.values(v),P=c?"search":"wallets";return p[P]={listings:[...p[P].listings,..._],total:y,page:i??1},{listings:_,total:y}},getWalletImageUrl(e){return f.getWalletImageUrl(e)},getAssetImageUrl(e){return f.getAssetImageUrl(e)},resetSearch(){p.search={listings:[],total:0,page:1}}},I=m({open:!1}),E={state:I,subscribe(e){return h(I,()=>e(I))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=d.state;if(a.removeWalletConnectDeepLink(),d.setWalletConnectUri(e==null?void 0:e.uri),d.setChains(e==null?void 0:e.chains),N.reset("ConnectWallet"),s&&n)I.open=!0,t();else{const l=setInterval(()=>{const i=d.state;i.isUiLoaded&&i.isDataLoaded&&(clearInterval(l),I.open=!0,t())},200)}})},close(){I.open=!1}};var Z=Object.defineProperty,$=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,j=(e,t,s)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,se=(e,t)=>{for(var s in t||(t={}))ee.call(t,s)&&j(e,s,t[s]);if($)for(var s of $(t))te.call(t,s)&&j(e,s,t[s]);return e};function ne(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const b=m({themeMode:ne()?"dark":"light"}),k={state:b,subscribe(e){return h(b,()=>e(b))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(b.themeMode=t),s&&(b.themeVariables=se({},s))}},g=m({open:!1,message:"",variant:"success"}),ie={state:g,subscribe(e){return h(g,()=>e(g))},openToast(e,t){g.open=!0,g.message=e,g.variant=t},closeToast(){g.open=!1}};class oe{constructor(t){this.openModal=E.open,this.closeModal=E.close,this.subscribeModal=E.subscribe,this.setTheme=k.setThemeConfig,k.setThemeConfig(t),C.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await B(()=>import("./index-379fd1d5.js"),["assets/index-379fd1d5.js","assets/vendor-charts-ea315f2b.js"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),d.setIsUiLoaded(!0)}}}const le=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:oe},Symbol.toStringTag,{value:"Module"}));export{a as C,ae as E,E as M,d as O,N as R,k as T,ie as a,K as b,C as c,le as i};
@@ -1,4 +1,4 @@
1
- import{T as pe,M as ke,R as E,E as D,C as h,a as F,b as Uo,O as H,c as re}from"./index-5c707073.js";import{nH as Ho}from"./vendor-charts-a0e04cd5.js";/**
1
+ import{T as pe,M as ke,R as E,E as D,C as h,a as F,b as Uo,O as H,c as re}from"./index-2ba25c44.js";import{nH as Ho}from"./vendor-charts-ea315f2b.js";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import{a9 as V,r as n,k as e,hU as N,F as E,an as b,jk as P,ci as v,cj as O,c9 as S,cb as p,b4 as l,ck as C,nx as I,ny as D,nz as k,nA as F,nB as L,nC as q,hk as A,hV as M,nD as B}from"./vendor-charts-a0e04cd5.js";import{a3 as _,a4 as W,u as U,O as $}from"./index-a58871fd.js";import"./vendor-editor-7b15e8f0.js";import"./vendor-three-925330d2.js";const G=[{id:"kafka_stream",type:"custom",title:"New kafka Stream",subtitle:"Indexed data",positionX:0,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"Ethereum_transactions",type:"custom",title:"Ethereum Transactions",subtitle:"Indexed data",positionX:420,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"create_new_table",type:"custom",title:"Create a New Table",subtitle:"Indexed data",positionX:1260,positionY:0,sourcePosition:"right",targetPosition:"left"}],H=[{id:"e1-1",source:1,target:2},{id:"e1-2",source:2,target:3},{id:"e1-3",source:3,target:4},{id:"e1-4",source:4,target:5}],j={nodesDataSearch:G,edgesDataSearchUnused:H},x=[{prompt:"Write sql query",promptId:6,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6",isFirst:!0},{prompt:"Explore tables from uniswap",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Load streams from kafka",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Explore blockchain data tables available",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Write a slack api integration in python",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Show ethereum schema",promptId:1,actionType:1,View:"open ethereum data model view",viewRoute:"/pipeline/model?promptId=1&selectedChain=ethereum&view=data-sets",isFirst:!0},{prompt:"Show binance schema",promptId:2,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=2&selectedChain=binance&view=data-sets"},{prompt:"View avalanche schema",promptId:3,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=3&selectedChain=avalanche&view=data-sets"},{prompt:"Explore binance schema",promptId:4,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=4&selectedChain=binance&view=data-sets"},{prompt:"Explore Table Transaction from ethereum Schema",promptId:5,actionType:1,View:"open etherium data model view with transaction table and its connected table",viewRoute:"/pipeline/model?promptId=5&selectedChain=ethereum&table=TRANSACTION&view=data-sets"},{prompt:"Run a query",promptId:7,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6"},{prompt:"Explore a query",promptId:8,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=8"},{prompt:"Create table",promptId:14,actionType:2,View:"Open query editor view with DDL",viewRoute:"/pipeline/model?promptId=14"},{prompt:"Show data model",promptId:9,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=9",isFirst:!0},{prompt:"View data model",promptId:10,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=10"},{prompt:"Explore data model",promptId:15,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=15"},{prompt:"Python Script 1",promptId:11,actionType:4,View:"Open python script 1",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 2",promptId:12,actionType:4,View:"Open python script 2",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 3",promptId:13,actionType:4,View:"Open python script 3",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Write a python script",promptId:14,actionType:4,View:"Open python script",viewRoute:"/pipeline/model?promptId=14",isFirst:!0}],z=()=>{const a=V(),r=n.useRef(!0),[d,i]=n.useState([]),[u,c]=n.useState("");n.useEffect(()=>()=>{r.current=!1},[]);const w=t=>{let s=[];t?x==null||x.forEach(o=>{var m,h,T,f;((h=(m=o==null?void 0:o.prompt)==null?void 0:m.toLowerCase())!=null&&h.includes(t==null?void 0:t.toLowerCase())||(f=t==null?void 0:t.toLowerCase())!=null&&f.includes((T=o.prompt)==null?void 0:T.toLowerCase()))&&s.push({title:o.prompt,value:o.prompt,data:o})}):s=x.filter(o=>o.isFirst).map(o=>({title:o.prompt,value:o.prompt,data:o})),i([...s])},g=t=>{r.current&&(c(t),w(t))},R=t=>{var s,o,m,h;r.current&&c(t==null?void 0:t.value),(((s=t==null?void 0:t.data)==null?void 0:s.promptId)===14||((o=t==null?void 0:t.data)==null?void 0:o.promptId)===6)&&(((m=t==null?void 0:t.data)==null?void 0:m.promptId)===6&&N("Execute_Query",!1),a.push((h=t==null?void 0:t.data)==null?void 0:h.viewRoute))};return e.jsx(_,{options:d,handleChange:g,onSelectValue:R,value:u,onFocus:()=>{w(u)},onBlur:()=>{setTimeout(()=>{r.current&&i([])},300)}})},X=E.div`
1
+ import{a9 as V,r as n,k as e,hU as N,F as E,an as b,jk as P,ci as v,cj as O,c9 as S,cb as p,b4 as l,ck as C,nx as I,ny as D,nz as k,nA as F,nB as L,nC as q,hk as A,hV as M,nD as B}from"./vendor-charts-ea315f2b.js";import{a3 as _,a4 as W,u as U,O as $}from"./index-64cd0125.js";import"./vendor-editor-8d2b746e.js";import"./vendor-three-69d08b24.js";const G=[{id:"kafka_stream",type:"custom",title:"New kafka Stream",subtitle:"Indexed data",positionX:0,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"Ethereum_transactions",type:"custom",title:"Ethereum Transactions",subtitle:"Indexed data",positionX:420,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"create_new_table",type:"custom",title:"Create a New Table",subtitle:"Indexed data",positionX:1260,positionY:0,sourcePosition:"right",targetPosition:"left"}],H=[{id:"e1-1",source:1,target:2},{id:"e1-2",source:2,target:3},{id:"e1-3",source:3,target:4},{id:"e1-4",source:4,target:5}],j={nodesDataSearch:G,edgesDataSearchUnused:H},x=[{prompt:"Write sql query",promptId:6,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6",isFirst:!0},{prompt:"Explore tables from uniswap",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Load streams from kafka",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Explore blockchain data tables available",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Write a slack api integration in python",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Show ethereum schema",promptId:1,actionType:1,View:"open ethereum data model view",viewRoute:"/pipeline/model?promptId=1&selectedChain=ethereum&view=data-sets",isFirst:!0},{prompt:"Show binance schema",promptId:2,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=2&selectedChain=binance&view=data-sets"},{prompt:"View avalanche schema",promptId:3,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=3&selectedChain=avalanche&view=data-sets"},{prompt:"Explore binance schema",promptId:4,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=4&selectedChain=binance&view=data-sets"},{prompt:"Explore Table Transaction from ethereum Schema",promptId:5,actionType:1,View:"open etherium data model view with transaction table and its connected table",viewRoute:"/pipeline/model?promptId=5&selectedChain=ethereum&table=TRANSACTION&view=data-sets"},{prompt:"Run a query",promptId:7,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6"},{prompt:"Explore a query",promptId:8,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=8"},{prompt:"Create table",promptId:14,actionType:2,View:"Open query editor view with DDL",viewRoute:"/pipeline/model?promptId=14"},{prompt:"Show data model",promptId:9,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=9",isFirst:!0},{prompt:"View data model",promptId:10,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=10"},{prompt:"Explore data model",promptId:15,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=15"},{prompt:"Python Script 1",promptId:11,actionType:4,View:"Open python script 1",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 2",promptId:12,actionType:4,View:"Open python script 2",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 3",promptId:13,actionType:4,View:"Open python script 3",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Write a python script",promptId:14,actionType:4,View:"Open python script",viewRoute:"/pipeline/model?promptId=14",isFirst:!0}],z=()=>{const a=V(),r=n.useRef(!0),[d,i]=n.useState([]),[u,c]=n.useState("");n.useEffect(()=>()=>{r.current=!1},[]);const w=t=>{let s=[];t?x==null||x.forEach(o=>{var m,h,T,f;((h=(m=o==null?void 0:o.prompt)==null?void 0:m.toLowerCase())!=null&&h.includes(t==null?void 0:t.toLowerCase())||(f=t==null?void 0:t.toLowerCase())!=null&&f.includes((T=o.prompt)==null?void 0:T.toLowerCase()))&&s.push({title:o.prompt,value:o.prompt,data:o})}):s=x.filter(o=>o.isFirst).map(o=>({title:o.prompt,value:o.prompt,data:o})),i([...s])},g=t=>{r.current&&(c(t),w(t))},R=t=>{var s,o,m,h;r.current&&c(t==null?void 0:t.value),(((s=t==null?void 0:t.data)==null?void 0:s.promptId)===14||((o=t==null?void 0:t.data)==null?void 0:o.promptId)===6)&&(((m=t==null?void 0:t.data)==null?void 0:m.promptId)===6&&N("Execute_Query",!1),a.push((h=t==null?void 0:t.data)==null?void 0:h.viewRoute))};return e.jsx(_,{options:d,handleChange:g,onSelectValue:R,value:u,onFocus:()=>{w(u)},onBlur:()=>{setTimeout(()=>{r.current&&i([])},300)}})},X=E.div`
2
2
  margin-top: 50px;
3
3
  .commonTitleStyle {
4
4
  font-size: ${a=>a.theme.custom.heading.h2};
@@ -1,4 +1,4 @@
1
- import{P as lr,R as Ne,b as rp,d as Ps,r as P,e as Hjt,f as epi,g as Nd,h as R$r,i as tpi,B as On,c as Sv,j as Ml,k as M,_ as bl,m as P$r,n as qKe,q as zze,t as fK,u as rpi,v as npi,w as gmt,x as mwr,y as api,$ as ipi,z as Os,a as np,A as Nf,T as Oa,L as j$r,C as I$r,D as td,E as mK,F as xt,W as N$r,G as L$r,H as AW,I as fse,J as O$r,K as lA,M as UV,N as vt,O as Gjt,Q as Bu,S as opi,U as spi,V as z$r,X as lpi,Y as YKe,Z as mse,a0 as upi,a1 as Vjt,a2 as H$r,a3 as Wjt,a4 as G$r,a5 as aSt,a6 as SY,a7 as U2,a8 as Nb,a9 as ni,aa as Rk,ab as nh,ac as gwr,ad as Tn,ae as cpi,af as FF,ag as BF,ah as V$r,ai as uae,aj as xwr,ak as dpi,al as ppi,am as Qh,an as pi,ao as ywr,ap as C3,aq as Eg,ar as ts,as as _u,at as hpi,au as Hr,av as vwr,aw as uo,ax as Hze,ay as Ujt,az as W$r,aA as fpi,aB as TF,aC as U$r,aD as iSt,aE as K$r,aF as Kjt,aG as mpi,aH as gpi,aI as q$r,aJ as xAe,aK as xpi,aL as oSt,aM as ypi,aN as gK,aO as Y$r,aP as X$r,aQ as vpi,aR as dI,aS as pI,aT as hI,aU as As,aV as bs,aW as Api,aX as jS,aY as Gl,aZ as Awr,a_ as Dn,a$ as bpi,b0 as J$r,b1 as Q$r,b2 as Z$r,b3 as Dpi,b4 as pe,b5 as wpi,b6 as gse,b7 as kpi,b8 as qjt,b9 as Lf,ba as _$r,bb as Cpi,bc as Au,bd as Al,be as la,bf as Mv,bg as RF,bh as nl,bi as Epi,bj as Spi,bk as Mpi,bl as Vw,bm as eC,bn as Yjt,bo as Fpi,bp as Xjt,bq as Bpi,br as Tpi,bs as Rpi,bt as yre,bu as q0e,bv as Ppi,bw as XKe,bx as PF,by as xK,bz as jpi,bA as _d,bB as mr,bC as $$r,bD as Ipi,bE as Npi,bF as Lpi,bG as Opi,bH as Nr,bI as Lo,bJ as een,bK as k5,bL as zpi,bM as Jjt,p as IS,bN as Hpi,bO as JKe,bP as Q4,bQ as KV,bR as vre,bS as jF,bT as Gpi,bU as QKe,bV as ZKe,bW as Bx,bX as _Ke,bY as Vpi,bZ as bwr,b_ as Zh,b$ as yn,c0 as Wpi,c1 as kL,c2 as Qjt,c3 as Upi,c4 as ten,c5 as Kpi,c6 as Zjt,c7 as xse,c8 as _jt,c9 as Mf,ca as qpi,cb as Ju,cc as Ypi,cd as Xpi,ce as Jpi,cf as fI,cg as lk,ch as Qpi,ci as yK,cj as yse,ck as vse,cl as Zpi,cm as oy,cn as _pi,co as ren,cp as $Ke,cq as qs,cr as nen,cs as yAe,ct as $pi,cu as V8,cv as $f,cw as PE,cx as kD,cy as W8,cz as cv,cA as CD,cB as ehi,cC as Y0e,cD as Dwr,cE as Ase,cF as oH,cG as ki,cH as aen,cI as $jt,cJ as bse,cK as sN,cL as thi,cM as rhi,cN as eqe,cO as vK,cP as lN,cQ as uN,cR as Ya,cS as tqe,cT as k0,cU as nhi,cV as C5,cW as ien,cX as Dse,cY as Lb,cZ as wse,c_ as kse,c$ as ahi,d0 as po,d1 as F2,d2 as uk,d3 as wwr,d4 as sSt,d5 as oen,d6 as e7t,d7 as qV,d8 as kwr,d9 as ihi,da as MY,db as sen,dc as ohi,dd as ha,de as shi,df as CL,dg as lSt,dh as len,di as uen,dj as FY,dk as Gze,dl as uSt,dm as cen,dn as t7t,dp as _1,dq as ap,dr as Lg,ds as Sg,dt as lhi,du as ef,dv as aU,dw as uhi,dx as chi,dy as AK,dz as xmt,dA as r7t,dB as dhi,dC as ll,dD as BY,dE as phi,dF as hhi,dG as fhi,dH as mhi,dI as den,dJ as ghi,dK as bK,dL as xhi,dM as rqe,dN as nqe,dO as YM,dP as yhi,dQ as cae,dR as Hv,dS as n7t,dT as B2,dU as a7t,dV as i7t,dW as o7t,dX as vhi,dY as Ahi,dZ as bhi,d_ as Vze,d$ as sH,e0 as _6,e1 as Dhi,e2 as whi,e3 as vT,e4 as ite,e5 as Wze,e6 as Uze,e7 as sy,e8 as Wl,e9 as aqe,ea as s7t,eb as pen,ec as XM,ed as cSt,ee as EL,ef as l7t,eg as NS,eh as u7t,ei as iqe,ej as c7t,ek as d7t,el as SL,em as hen,en as p7t,eo as h7t,ep as khi,eq as Chi,er as bw,es as K2,et as fen,eu as Cwr,ev as men,ew as f7t,ex as Ehi,ey as TY,ez as gen,eA as Kze,eB as xen,eC as Mw,eD as J1,eE as Shi,eF as Mhi,eG as yen,eH as m7t,eI as g7t,eJ as ven,eK as dSt,eL as Aen,eM as Fhi,eN as ben,eO as Den,eP as wen,eQ as oqe,eR as ken,eS as x7t,eT as Bhi,eU as RY,eV as Cse,eW as Thi,eX as Are,eY as Rhi,eZ as Phi,e_ as mI,e$ as y7t,f0 as gI,f1 as xI,f2 as jhi,f3 as dae,f4 as Cen,f5 as Een,f6 as PY,f7 as Ese,f8 as Sen,f9 as Ihi,fa as Men,fb as Zv,fc as Dl,fd as Ewr,fe as Nhi,ff as pSt,fg as Lhi,fh as Ohi,fi as zhi,fj as Fen,fk as Hhi,fl as Ghi,fm as hSt,fn as sqe,fo as v7t,fp as Ben,fq as Sse,fr as Vhi,fs as Whi,ft as Ten,fu as Uhi,fv as X0e,fw as Khi,fx as J0e,fy as qhi,fz as Yhi,fA as IF,fB as Xhi,fC as Jhi,fD as Qhi,fE as Zhi,fF as _hi,fG as A7t,fH as Ren,fI as $hi,fJ as efi,fK as ymt,fL as tfi,fM as rfi,fN as nfi,fO as vmt,fP as afi,fQ as b7t,fR as Ss,fS as D7t,fT as ifi,fU as cN,fV as qze,fW as Amt,fX as Swr,fY as ofi,fZ as sfi,f_ as lfi,f$ as ufi,g0 as cfi,g1 as dfi,g2 as pfi,g3 as hfi,g4 as ffi,g5 as ML,g6 as yI,g7 as w7t,g8 as Yze,g9 as Xze,ga as bre,gb as mfi,gc as Pen,gd as jen,ge as Ien,gf as fSt,gg as lH,gh as Jze,gi as k7t,gj as bmt,gk as pae,gl as gfi,gm as xfi,gn as yfi,go as vfi,gp as Afi,gq as bfi,gr as Dfi,gs as wfi,gt as kfi,gu as Nen,gv as Cfi,gw as Efi,gx as FL,gy as Sfi,gz as uH,gA as Mfi,gB as Ffi,gC as Len,gD as mSt,gE as gSt,gF as Bfi,gG as Dmt,gH as Tfi,gI as Rfi,gJ as lqe,gK as Pfi,gL as jfi,gM as Ifi,gN as Nfi,gO as Lfi,gP as Oen,gQ as Dre,gR as vAe,gS as zen,gT as Hen,gU as Ofi,gV as Gen,gW as zfi,gX as uqe,gY as Mse,gZ as Ob,g_ as Hfi,g$ as Ven,h0 as Gfi,h1 as Wen,h2 as Vfi,h3 as Wfi,h4 as Ufi,h5 as Kfi,h6 as cqe,h7 as qfi,h8 as Yfi,h9 as xSt,ha as Mwr,hb as Uen,hc as Xfi,hd as Jfi,he as Qfi,hf as Zfi,hg as _fi,hh as $fi,hi as Fwr,hj as e0i,hk as Fv,hl as Ken,hm as t0i,hn as r0i,ho as n0i,hp as a0i,hq as qen,hr as C7t,hs as Yen,ht as i0i,hu as o0i,hv as Xen,hw as jY,hx as Jen,hy as E7t,hz as Q0e,hA as s0i,hB as l0i,hC as AAe,hD as ySt,hE as u0i,hF as c0i,hG as Bwr,hH as d0i,hI as p0i,hJ as h0i,hK as f0i,hL as wre,hM as m0i,hN as Qen,hO as g0i,hP as x0i,hQ as y0i,hR as v0i,hS as A0i,hT as b0i,hU as Twr,hV as D0i,hW as w0i,hX as k0i,hY as C0i,hZ as E0i,h_ as S0i,h$ as dqe,i0 as rd,i1 as Zen,i2 as M0i,i3 as _en,i4 as DK,i5 as F0i,i6 as C1,i7 as B0i,i8 as Rwr,i9 as S7t,ia as $en,ib as etn,ic as ttn,id as T0i,ie as R0i,ig as P0i,ih as j0i,ii as I0i,ij as N0i,ik as ED,il as wmt,im as L0i,io as Pwr,ip as O0i,iq as z0i,ir as M7t,is as H0i,it as rtn,iu as G0i,iv as V0i,iw as W0i,ix as jwr,iy as U0i,iz as Z4,iA as kmt,iB as K0i,iC as ntn,iD as atn,iE as q0i,iF as qc,iG as itn,iH as Y0i,iI as X0i,iJ as J0i,iK as Iwr,iL as Q0i,iM as Qze,iN as Z0i,iO as Nwr,iP as Lwr,iQ as _0i,iR as F7t,iS as $0i,iT as e1i,iU as t1i,iV as otn,iW as stn,iX as r1i,iY as n1i,iZ as bAe,i_ as a1i,i$ as ltn,j0 as utn,j1 as i1i,j2 as o1i,j3 as B_,j4 as s1i,j5 as l1i,j6 as u1i,j7 as c1i,j8 as d1i,j9 as p1i,ja as h1i,jb as f1i,jc as m1i,jd as g1i,je as x1i,jf as LS,jg as OS,jh as y1i,ji as v1i,jj as A1i,jk as B7t,jl as b1i,jm as D1i,jn as w1i,jo as ctn,jp as k1i,jq as dtn,jr as Di,js as Ms,jt as C1i,ju as E1i,jv as ptn,jw as htn,jx as S1i,jy as T7t,jz as ftn,jA as M1i,jB as pqe,jC as mtn,jD as gtn,jE as F1i,jF as B1i,jG as xtn,jH as ytn,jI as T1i,jJ as R1i,jK as P1i,jL as Owr,jM as Cmt,jN as vSt,jO as R7t,jP as Zze,jQ as zwr,jR as cH,jS as Hwr,jT as j1i,jU as Gwr,jV as I1i,jW as N1i,jX as L1i,jY as vtn,jZ as ASt,j_ as P7t,j$ as wK,k0 as j7t,k1 as Atn,k2 as O1i,k3 as z1i,k4 as I7t,k5 as N7t,k6 as Vwr,k7 as H1i,k8 as G1i,k9 as V1i,ka as btn,kb as W1i,kc as U1i,kd as K1i,ke as q1i,kf as Wwr,kg as $p,kh as Y1i,ki as X1i,kj as J1i,kk as Q1i,kl as Z1i,km as Dtn,kn as Emt,ko as wtn,kp as bSt,kq as Smt,kr as _1i,ks as $1i,kt as hqe,ku as emi,kv as ktn,kw as tmi,kx as rmi,ky as h2,kz as nmi,kA as ote,kB as Ctn,kC as ami,kD as Etn,kE as imi,kF as Stn,kG as Mtn,kH as Ftn,kI as Btn,kJ as Uwr,kK as Kwr,kL as omi,kM as smi,kN as fqe,kO as lmi,kP as umi,kQ as Ttn,kR as Fse,kS as DSt,kT as cmi,kU as Rtn,kV as dmi,kW as pmi,kX as hmi,kY as L7t,kZ as fmi,k_ as mmi,k$ as Ptn,l0 as jtn,l1 as T_,l2 as R_,l3 as gmi,l4 as qwr,l5 as xmi,l6 as Itn,l7 as O7t,l8 as Ntn,l9 as ymi,la as vmi,lb as Ami,lc as bmi,ld as Dmi,le as Ltn,lf as z7t,lg as BL,lh as wmi,li as Otn,lj as kmi,lk as Cmi,ll as Emi,lm as Smi,ln as Mmi,lo as Fmi,lp as Bmi,lq as Mmt,lr as Tmi,ls as ztn,lt as Rmi,lu as Pmi,lv as jmi,lw as Imi,lx as hae,ly as Htn,lz as Gtn,lA as Nmi,lB as Vtn,lC as H7t,lD as Lmi,lE as _ze,lF as Ywr,lG as kre,lH as r9,lI as Cp,lJ as ste,lK as $E,lL as Wtn,lM as $ze,lN as Utn,lO as Omi,lP as zmi,lQ as eHe,lR as Hmi,lS as Xwr,lT as Gmi,lU as Vmi,lV as Wmi,lW as Umi,lX as Kmi,lY as Z0e,lZ as Ktn,l_ as qmi,l$ as gx,m0 as Ymi,m1 as Cre,m2 as Xmi,m3 as Jmi,m4 as Qmi,m5 as Zmi,m6 as _mi,m7 as $mi,m8 as egi,m9 as tgi,ma as rgi,mb as ngi,mc as agi,md as zS,me as igi,mf as ogi,mg as sgi,mh as lgi,mi as ugi,mj as cgi,mk as dgi,ml as pgi,mm as hgi,mn as fgi,mo as mgi,mp as ggi,mq as xgi}from"./vendor-charts-a0e04cd5.js";import{_ as IY}from"./vendor-editor-7b15e8f0.js";import{c as ygi,d as vgi,w as Agi,u as bgi,a as Dgi,G as Jwr,E as wgi,H as qtn,C as kgi,M as Cgi}from"./vendor-three-925330d2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();function Qwr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zwr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qwr(Object(r),!0).forEach(function(n){Ytn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qwr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DAe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?DAe=function(t){return typeof t}:DAe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DAe(e)}function Ytn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xtn(e,t){return Egi(e)||Sgi(e,t)||Mgi(e,t)||Fgi()}function Egi(e){if(Array.isArray(e))return e}function Sgi(e,t){var r=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(r!=null){var n=[],a=!0,o=!1,s,l;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function Mgi(e,t){if(e){if(typeof e=="string")return _wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _wr(e,t)}}function _wr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fgi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{P as lr,R as Ne,b as rp,d as Ps,r as P,e as Hjt,f as epi,g as Nd,h as R$r,i as tpi,B as On,c as Sv,j as Ml,k as M,_ as bl,m as P$r,n as qKe,q as zze,t as fK,u as rpi,v as npi,w as gmt,x as mwr,y as api,$ as ipi,z as Os,a as np,A as Nf,T as Oa,L as j$r,C as I$r,D as td,E as mK,F as xt,W as N$r,G as L$r,H as AW,I as fse,J as O$r,K as lA,M as UV,N as vt,O as Gjt,Q as Bu,S as opi,U as spi,V as z$r,X as lpi,Y as YKe,Z as mse,a0 as upi,a1 as Vjt,a2 as H$r,a3 as Wjt,a4 as G$r,a5 as aSt,a6 as SY,a7 as U2,a8 as Nb,a9 as ni,aa as Rk,ab as nh,ac as gwr,ad as Tn,ae as cpi,af as FF,ag as BF,ah as V$r,ai as uae,aj as xwr,ak as dpi,al as ppi,am as Qh,an as pi,ao as ywr,ap as C3,aq as Eg,ar as ts,as as _u,at as hpi,au as Hr,av as vwr,aw as uo,ax as Hze,ay as Ujt,az as W$r,aA as fpi,aB as TF,aC as U$r,aD as iSt,aE as K$r,aF as Kjt,aG as mpi,aH as gpi,aI as q$r,aJ as xAe,aK as xpi,aL as oSt,aM as ypi,aN as gK,aO as Y$r,aP as X$r,aQ as vpi,aR as dI,aS as pI,aT as hI,aU as As,aV as bs,aW as Api,aX as jS,aY as Gl,aZ as Awr,a_ as Dn,a$ as bpi,b0 as J$r,b1 as Q$r,b2 as Z$r,b3 as Dpi,b4 as pe,b5 as wpi,b6 as gse,b7 as kpi,b8 as qjt,b9 as Lf,ba as _$r,bb as Cpi,bc as Au,bd as Al,be as la,bf as Mv,bg as RF,bh as nl,bi as Epi,bj as Spi,bk as Mpi,bl as Vw,bm as eC,bn as Yjt,bo as Fpi,bp as Xjt,bq as Bpi,br as Tpi,bs as Rpi,bt as yre,bu as q0e,bv as Ppi,bw as XKe,bx as PF,by as xK,bz as jpi,bA as _d,bB as mr,bC as $$r,bD as Ipi,bE as Npi,bF as Lpi,bG as Opi,bH as Nr,bI as Lo,bJ as een,bK as k5,bL as zpi,bM as Jjt,p as IS,bN as Hpi,bO as JKe,bP as Q4,bQ as KV,bR as vre,bS as jF,bT as Gpi,bU as QKe,bV as ZKe,bW as Bx,bX as _Ke,bY as Vpi,bZ as bwr,b_ as Zh,b$ as yn,c0 as Wpi,c1 as kL,c2 as Qjt,c3 as Upi,c4 as ten,c5 as Kpi,c6 as Zjt,c7 as xse,c8 as _jt,c9 as Mf,ca as qpi,cb as Ju,cc as Ypi,cd as Xpi,ce as Jpi,cf as fI,cg as lk,ch as Qpi,ci as yK,cj as yse,ck as vse,cl as Zpi,cm as oy,cn as _pi,co as ren,cp as $Ke,cq as qs,cr as nen,cs as yAe,ct as $pi,cu as V8,cv as $f,cw as PE,cx as kD,cy as W8,cz as cv,cA as CD,cB as ehi,cC as Y0e,cD as Dwr,cE as Ase,cF as oH,cG as ki,cH as aen,cI as $jt,cJ as bse,cK as sN,cL as thi,cM as rhi,cN as eqe,cO as vK,cP as lN,cQ as uN,cR as Ya,cS as tqe,cT as k0,cU as nhi,cV as C5,cW as ien,cX as Dse,cY as Lb,cZ as wse,c_ as kse,c$ as ahi,d0 as po,d1 as F2,d2 as uk,d3 as wwr,d4 as sSt,d5 as oen,d6 as e7t,d7 as qV,d8 as kwr,d9 as ihi,da as MY,db as sen,dc as ohi,dd as ha,de as shi,df as CL,dg as lSt,dh as len,di as uen,dj as FY,dk as Gze,dl as uSt,dm as cen,dn as t7t,dp as _1,dq as ap,dr as Lg,ds as Sg,dt as lhi,du as ef,dv as aU,dw as uhi,dx as chi,dy as AK,dz as xmt,dA as r7t,dB as dhi,dC as ll,dD as BY,dE as phi,dF as hhi,dG as fhi,dH as mhi,dI as den,dJ as ghi,dK as bK,dL as xhi,dM as rqe,dN as nqe,dO as YM,dP as yhi,dQ as cae,dR as Hv,dS as n7t,dT as B2,dU as a7t,dV as i7t,dW as o7t,dX as vhi,dY as Ahi,dZ as bhi,d_ as Vze,d$ as sH,e0 as _6,e1 as Dhi,e2 as whi,e3 as vT,e4 as ite,e5 as Wze,e6 as Uze,e7 as sy,e8 as Wl,e9 as aqe,ea as s7t,eb as pen,ec as XM,ed as cSt,ee as EL,ef as l7t,eg as NS,eh as u7t,ei as iqe,ej as c7t,ek as d7t,el as SL,em as hen,en as p7t,eo as h7t,ep as khi,eq as Chi,er as bw,es as K2,et as fen,eu as Cwr,ev as men,ew as f7t,ex as Ehi,ey as TY,ez as gen,eA as Kze,eB as xen,eC as Mw,eD as J1,eE as Shi,eF as Mhi,eG as yen,eH as m7t,eI as g7t,eJ as ven,eK as dSt,eL as Aen,eM as Fhi,eN as ben,eO as Den,eP as wen,eQ as oqe,eR as ken,eS as x7t,eT as Bhi,eU as RY,eV as Cse,eW as Thi,eX as Are,eY as Rhi,eZ as Phi,e_ as mI,e$ as y7t,f0 as gI,f1 as xI,f2 as jhi,f3 as dae,f4 as Cen,f5 as Een,f6 as PY,f7 as Ese,f8 as Sen,f9 as Ihi,fa as Men,fb as Zv,fc as Dl,fd as Ewr,fe as Nhi,ff as pSt,fg as Lhi,fh as Ohi,fi as zhi,fj as Fen,fk as Hhi,fl as Ghi,fm as hSt,fn as sqe,fo as v7t,fp as Ben,fq as Sse,fr as Vhi,fs as Whi,ft as Ten,fu as Uhi,fv as X0e,fw as Khi,fx as J0e,fy as qhi,fz as Yhi,fA as IF,fB as Xhi,fC as Jhi,fD as Qhi,fE as Zhi,fF as _hi,fG as A7t,fH as Ren,fI as $hi,fJ as efi,fK as ymt,fL as tfi,fM as rfi,fN as nfi,fO as vmt,fP as afi,fQ as b7t,fR as Ss,fS as D7t,fT as ifi,fU as cN,fV as qze,fW as Amt,fX as Swr,fY as ofi,fZ as sfi,f_ as lfi,f$ as ufi,g0 as cfi,g1 as dfi,g2 as pfi,g3 as hfi,g4 as ffi,g5 as ML,g6 as yI,g7 as w7t,g8 as Yze,g9 as Xze,ga as bre,gb as mfi,gc as Pen,gd as jen,ge as Ien,gf as fSt,gg as lH,gh as Jze,gi as k7t,gj as bmt,gk as pae,gl as gfi,gm as xfi,gn as yfi,go as vfi,gp as Afi,gq as bfi,gr as Dfi,gs as wfi,gt as kfi,gu as Nen,gv as Cfi,gw as Efi,gx as FL,gy as Sfi,gz as uH,gA as Mfi,gB as Ffi,gC as Len,gD as mSt,gE as gSt,gF as Bfi,gG as Dmt,gH as Tfi,gI as Rfi,gJ as lqe,gK as Pfi,gL as jfi,gM as Ifi,gN as Nfi,gO as Lfi,gP as Oen,gQ as Dre,gR as vAe,gS as zen,gT as Hen,gU as Ofi,gV as Gen,gW as zfi,gX as uqe,gY as Mse,gZ as Ob,g_ as Hfi,g$ as Ven,h0 as Gfi,h1 as Wen,h2 as Vfi,h3 as Wfi,h4 as Ufi,h5 as Kfi,h6 as cqe,h7 as qfi,h8 as Yfi,h9 as xSt,ha as Mwr,hb as Uen,hc as Xfi,hd as Jfi,he as Qfi,hf as Zfi,hg as _fi,hh as $fi,hi as Fwr,hj as e0i,hk as Fv,hl as Ken,hm as t0i,hn as r0i,ho as n0i,hp as a0i,hq as qen,hr as C7t,hs as Yen,ht as i0i,hu as o0i,hv as Xen,hw as jY,hx as Jen,hy as E7t,hz as Q0e,hA as s0i,hB as l0i,hC as AAe,hD as ySt,hE as u0i,hF as c0i,hG as Bwr,hH as d0i,hI as p0i,hJ as h0i,hK as f0i,hL as wre,hM as m0i,hN as Qen,hO as g0i,hP as x0i,hQ as y0i,hR as v0i,hS as A0i,hT as b0i,hU as Twr,hV as D0i,hW as w0i,hX as k0i,hY as C0i,hZ as E0i,h_ as S0i,h$ as dqe,i0 as rd,i1 as Zen,i2 as M0i,i3 as _en,i4 as DK,i5 as F0i,i6 as C1,i7 as B0i,i8 as Rwr,i9 as S7t,ia as $en,ib as etn,ic as ttn,id as T0i,ie as R0i,ig as P0i,ih as j0i,ii as I0i,ij as N0i,ik as ED,il as wmt,im as L0i,io as Pwr,ip as O0i,iq as z0i,ir as M7t,is as H0i,it as rtn,iu as G0i,iv as V0i,iw as W0i,ix as jwr,iy as U0i,iz as Z4,iA as kmt,iB as K0i,iC as ntn,iD as atn,iE as q0i,iF as qc,iG as itn,iH as Y0i,iI as X0i,iJ as J0i,iK as Iwr,iL as Q0i,iM as Qze,iN as Z0i,iO as Nwr,iP as Lwr,iQ as _0i,iR as F7t,iS as $0i,iT as e1i,iU as t1i,iV as otn,iW as stn,iX as r1i,iY as n1i,iZ as bAe,i_ as a1i,i$ as ltn,j0 as utn,j1 as i1i,j2 as o1i,j3 as B_,j4 as s1i,j5 as l1i,j6 as u1i,j7 as c1i,j8 as d1i,j9 as p1i,ja as h1i,jb as f1i,jc as m1i,jd as g1i,je as x1i,jf as LS,jg as OS,jh as y1i,ji as v1i,jj as A1i,jk as B7t,jl as b1i,jm as D1i,jn as w1i,jo as ctn,jp as k1i,jq as dtn,jr as Di,js as Ms,jt as C1i,ju as E1i,jv as ptn,jw as htn,jx as S1i,jy as T7t,jz as ftn,jA as M1i,jB as pqe,jC as mtn,jD as gtn,jE as F1i,jF as B1i,jG as xtn,jH as ytn,jI as T1i,jJ as R1i,jK as P1i,jL as Owr,jM as Cmt,jN as vSt,jO as R7t,jP as Zze,jQ as zwr,jR as cH,jS as Hwr,jT as j1i,jU as Gwr,jV as I1i,jW as N1i,jX as L1i,jY as vtn,jZ as ASt,j_ as P7t,j$ as wK,k0 as j7t,k1 as Atn,k2 as O1i,k3 as z1i,k4 as I7t,k5 as N7t,k6 as Vwr,k7 as H1i,k8 as G1i,k9 as V1i,ka as btn,kb as W1i,kc as U1i,kd as K1i,ke as q1i,kf as Wwr,kg as $p,kh as Y1i,ki as X1i,kj as J1i,kk as Q1i,kl as Z1i,km as Dtn,kn as Emt,ko as wtn,kp as bSt,kq as Smt,kr as _1i,ks as $1i,kt as hqe,ku as emi,kv as ktn,kw as tmi,kx as rmi,ky as h2,kz as nmi,kA as ote,kB as Ctn,kC as ami,kD as Etn,kE as imi,kF as Stn,kG as Mtn,kH as Ftn,kI as Btn,kJ as Uwr,kK as Kwr,kL as omi,kM as smi,kN as fqe,kO as lmi,kP as umi,kQ as Ttn,kR as Fse,kS as DSt,kT as cmi,kU as Rtn,kV as dmi,kW as pmi,kX as hmi,kY as L7t,kZ as fmi,k_ as mmi,k$ as Ptn,l0 as jtn,l1 as T_,l2 as R_,l3 as gmi,l4 as qwr,l5 as xmi,l6 as Itn,l7 as O7t,l8 as Ntn,l9 as ymi,la as vmi,lb as Ami,lc as bmi,ld as Dmi,le as Ltn,lf as z7t,lg as BL,lh as wmi,li as Otn,lj as kmi,lk as Cmi,ll as Emi,lm as Smi,ln as Mmi,lo as Fmi,lp as Bmi,lq as Mmt,lr as Tmi,ls as ztn,lt as Rmi,lu as Pmi,lv as jmi,lw as Imi,lx as hae,ly as Htn,lz as Gtn,lA as Nmi,lB as Vtn,lC as H7t,lD as Lmi,lE as _ze,lF as Ywr,lG as kre,lH as r9,lI as Cp,lJ as ste,lK as $E,lL as Wtn,lM as $ze,lN as Utn,lO as Omi,lP as zmi,lQ as eHe,lR as Hmi,lS as Xwr,lT as Gmi,lU as Vmi,lV as Wmi,lW as Umi,lX as Kmi,lY as Z0e,lZ as Ktn,l_ as qmi,l$ as gx,m0 as Ymi,m1 as Cre,m2 as Xmi,m3 as Jmi,m4 as Qmi,m5 as Zmi,m6 as _mi,m7 as $mi,m8 as egi,m9 as tgi,ma as rgi,mb as ngi,mc as agi,md as zS,me as igi,mf as ogi,mg as sgi,mh as lgi,mi as ugi,mj as cgi,mk as dgi,ml as pgi,mm as hgi,mn as fgi,mo as mgi,mp as ggi,mq as xgi}from"./vendor-charts-ea315f2b.js";import{_ as IY}from"./vendor-editor-8d2b746e.js";import{c as ygi,d as vgi,w as Agi,u as bgi,a as Dgi,G as Jwr,E as wgi,H as qtn,C as kgi,M as Cgi}from"./vendor-three-69d08b24.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();function Qwr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zwr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qwr(Object(r),!0).forEach(function(n){Ytn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qwr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DAe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?DAe=function(t){return typeof t}:DAe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DAe(e)}function Ytn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xtn(e,t){return Egi(e)||Sgi(e,t)||Mgi(e,t)||Fgi()}function Egi(e){if(Array.isArray(e))return e}function Sgi(e,t){var r=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(r!=null){var n=[],a=!0,o=!1,s,l;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function Mgi(e,t){if(e){if(typeof e=="string")return _wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _wr(e,t)}}function _wr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fgi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ex=function(t,r,n){var a=!!n,o=Ne.useRef(n);Ne.useEffect(function(){o.current=n},[n]),Ne.useEffect(function(){if(!a||!t)return function(){};var s=function(){o.current&&o.current.apply(o,arguments)};return t.on(r,s),function(){t.off(r,s)}},[a,r,t,o])},wSt=function(t){var r=Ne.useRef(t);return Ne.useEffect(function(){r.current=t},[t]),r.current},kK=function(t){return t!==null&&DAe(t)==="object"},Bgi=function(t){return kK(t)&&typeof t.then=="function"},Tgi=function(t){return kK(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},$wr="[object Object]",Rgi=function e(t,r){if(!kK(t)||!kK(r))return t===r;var n=Array.isArray(t),a=Array.isArray(r);if(n!==a)return!1;var o=Object.prototype.toString.call(t)===$wr,s=Object.prototype.toString.call(r)===$wr;if(o!==s)return!1;if(!o&&!n)return t===r;var l=Object.keys(t),u=Object.keys(r);if(l.length!==u.length)return!1;for(var c={},d=0;d<l.length;d+=1)c[l[d]]=!0;for(var p=0;p<u.length;p+=1)c[u[p]]=!0;var h=Object.keys(c);if(h.length!==l.length)return!1;var f=t,g=r,y=function(A){return e(f[A],g[A])};return h.every(y)},Jtn=function(t,r,n){return kK(t)?Object.keys(t).reduce(function(a,o){var s=!kK(r)||!Rgi(t[o],r[o]);return n.includes(o)?(s&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),a):s?Zwr(Zwr({},a||{}),{},Ytn({},o,t[o])):a},null):null},Qtn="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ekr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qtn;if(t===null||Tgi(t))return t;throw new Error(r)},Pgi=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qtn;if(Bgi(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(a){return ekr(a,r)})};var n=ekr(t,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},jgi=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"2.8.1"}),t.registerAppInfo({name:"react-stripe-js",version:"2.8.1",url:"https://stripe.com/docs/stripe-js/react"}))},mqe=Ne.createContext(null);mqe.displayName="ElementsContext";var Ztn=function(t,r){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return t},_tn=function(t){var r=t.stripe,n=t.options,a=t.children,o=Ne.useMemo(function(){return Pgi(r)},[r]),s=Ne.useState(function(){return{stripe:o.tag==="sync"?o.stripe:null,elements:o.tag==="sync"?o.stripe.elements(n):null}}),l=Xtn(s,2),u=l[0],c=l[1];Ne.useEffect(function(){var h=!0,f=function(y){c(function(v){return v.stripe?v:{stripe:y,elements:y.elements(n)}})};return o.tag==="async"&&!u.stripe?o.stripePromise.then(function(g){g&&h&&f(g)}):o.tag==="sync"&&!u.stripe&&f(o.stripe),function(){h=!1}},[o,u,n]);var d=wSt(r);Ne.useEffect(function(){d!==null&&d!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[d,r]);var p=wSt(n);return Ne.useEffect(function(){if(u.elements){var h=Jtn(n,p,["clientSecret","fonts"]);h&&u.elements.update(h)}},[n,p,u.elements]),Ne.useEffect(function(){jgi(u.stripe)},[u.stripe]),Ne.createElement(mqe.Provider,{value:u},a)};_tn.propTypes={stripe:lr.any,options:lr.object};var Igi=function(t){var r=Ne.useContext(mqe);return Ztn(r,t)},$tn=function(){var t=Igi("calls useElements()"),r=t.elements;return r};lr.func.isRequired;var ern=Ne.createContext(null);ern.displayName="CustomCheckoutSdkContext";var Ngi=function(t,r){if(!t)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return t},Lgi=Ne.createContext(null);Lgi.displayName="CustomCheckoutContext";lr.any,lr.shape({clientSecret:lr.string.isRequired,elementsOptions:lr.object}).isRequired;var kSt=function(t){var r=Ne.useContext(ern),n=Ne.useContext(mqe);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CustomCheckoutProvider> and <Elements> providers."));return r?Ngi(r,t):Ztn(n,t)},Ogi=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Hp=function(t,r){var n="".concat(Ogi(t),"Element"),a=function(u){var c=u.id,d=u.className,p=u.options,h=p===void 0?{}:p,f=u.onBlur,g=u.onFocus,y=u.onReady,v=u.onChange,A=u.onEscape,b=u.onClick,E=u.onLoadError,S=u.onLoaderStart,F=u.onNetworksChange,T=u.onConfirm,R=u.onCancel,I=u.onShippingAddressChange,L=u.onShippingRateChange,j=kSt("mounts <".concat(n,">")),H="elements"in j?j.elements:null,z="customCheckoutSdk"in j?j.customCheckoutSdk:null,O=Ne.useState(null),V=Xtn(O,2),U=V[0],q=V[1],J=Ne.useRef(null),X=Ne.useRef(null);ex(U,"blur",f),ex(U,"focus",g),ex(U,"escape",A),ex(U,"click",b),ex(U,"loaderror",E),ex(U,"loaderstart",S),ex(U,"networkschange",F),ex(U,"confirm",T),ex(U,"cancel",R),ex(U,"shippingaddresschange",I),ex(U,"shippingratechange",L),ex(U,"change",v);var Q;y&&(t==="expressCheckout"?Q=y:Q=function(){y(U)}),ex(U,"ready",Q),Ne.useLayoutEffect(function(){if(J.current===null&&X.current!==null&&(H||z)){var re=null;z?re=z.createElement(t,h):H&&(re=H.create(t,h)),J.current=re,q(re),re&&re.mount(X.current)}},[H,z,h]);var Y=wSt(h);return Ne.useEffect(function(){if(J.current){var re=Jtn(h,Y,["paymentRequest"]);re&&"update"in J.current&&J.current.update(re)}},[h,Y]),Ne.useLayoutEffect(function(){return function(){if(J.current&&typeof J.current.destroy=="function")try{J.current.destroy(),J.current=null}catch{}}},[]),Ne.createElement("div",{id:c,className:d,ref:X})},o=function(u){kSt("mounts <".concat(n,">"));var c=u.id,d=u.className;return Ne.createElement("div",{id:c,className:d})},s=r?o:a;return s.propTypes={id:lr.string,className:lr.string,onChange:lr.func,onBlur:lr.func,onFocus:lr.func,onReady:lr.func,onEscape:lr.func,onClick:lr.func,onLoadError:lr.func,onLoaderStart:lr.func,onNetworksChange:lr.func,onConfirm:lr.func,onCancel:lr.func,onShippingAddressChange:lr.func,onShippingRateChange:lr.func,options:lr.object},s.displayName=n,s.__elementType=t,s},Gp=typeof window>"u",zgi=Ne.createContext(null);zgi.displayName="EmbeddedCheckoutProviderContext";var trn=function(){var t=kSt("calls useStripe()"),r=t.stripe;return r};Hp("auBankAccount",Gp);Hp("card",Gp);var tHe=Hp("cardNumber",Gp),rrn=Hp("cardExpiry",Gp),nrn=Hp("cardCvc",Gp);Hp("fpxBank",Gp);Hp("iban",Gp);Hp("idealBank",Gp);Hp("p24Bank",Gp);Hp("epsBank",Gp);Hp("payment",Gp);Hp("expressCheckout",Gp);Hp("currencySelector",Gp);Hp("paymentRequestButton",Gp);Hp("linkAuthentication",Gp);Hp("address",Gp);Hp("shippingAddress",Gp);Hp("paymentMethodMessaging",Gp);Hp("affirmMessage",Gp);Hp("afterpayClearpayMessage",Gp);var arn="https://js.stripe.com/v3",Hgi=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,tkr="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Ggi=function(){for(var t=document.querySelectorAll('script[src^="'.concat(arn,'"]')),r=0;r<t.length;r++){var n=t[r];if(Hgi.test(n.src))return n}return null},Vgi=function(t){var r=t&&!t.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(arn).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},Wgi=function(t,r){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:r})},_0e=null,Ugi=function(t){return _0e!==null||(_0e=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&t&&console.warn(tkr),window.Stripe){r(window.Stripe);return}try{var a=Ggi();a&&t?console.warn(tkr):a||(a=Vgi(t)),a.addEventListener("load",function(){window.Stripe?r(window.Stripe):n(new Error("Stripe.js not available"))}),a.addEventListener("error",function(){n(new Error("Failed to load Stripe.js"))})}catch(o){n(o);return}})),_0e},Kgi=function(t,r,n){if(t===null)return null;var a=t.apply(void 0,r);return Wgi(a,n),a},irn=Promise.resolve().then(function(){return Ugi(null)}),orn=!1;irn.catch(function(e){orn||console.warn(e)});var qgi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];orn=!0;var a=Date.now();return irn.then(function(o){return Kgi(o,r,a)})};const srn=Object.prototype.toString;function lrn(e){switch(srn.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return U3(e,Error)}}function NY(e,t){return srn.call(e)===`[object ${t}]`}function G7t(e){return NY(e,"ErrorEvent")}function rkr(e){return NY(e,"DOMError")}function Ygi(e){return NY(e,"DOMException")}function ck(e){return NY(e,"String")}function V7t(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function W7t(e){return e===null||V7t(e)||typeof e!="object"&&typeof e!="function"}function CK(e){return NY(e,"Object")}function gqe(e){return typeof Event<"u"&&U3(e,Event)}function Xgi(e){return typeof Element<"u"&&U3(e,Element)}function Jgi(e){return NY(e,"RegExp")}function xqe(e){return!!(e&&e.then&&typeof e.then=="function")}function Qgi(e){return CK(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function urn(e){return typeof e=="number"&&e!==e}function U3(e,t){try{return e instanceof t}catch{return!1}}function crn(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function iU(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function nkr(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;n<e.length;n++){const a=e[n];try{crn(a)?r.push("[VueViewModel]"):r.push(String(a))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Zgi(e,t,r=!1){return ck(e)?Jgi(t)?t.test(e):ck(t)?r?e===t:e.includes(t):!1:!1}function LY(e,t=[],r=!1){return t.some(n=>Zgi(e,n,r))}function _gi(e,t,r=250,n,a,o,s){if(!o.exception||!o.exception.values||!s||!U3(s.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=$gi(CSt(e,t,a,s.originalException,n,o.exception.values,l,0),r))}function CSt(e,t,r,n,a,o,s,l){if(o.length>=r+1)return o;let u=[...o];if(U3(n[a],Error)){akr(s,l);const c=e(t,n[a]),d=u.length;ikr(c,a,d,l),u=CSt(e,t,r,n[a],a,[c,...u],c,d)}return Array.isArray(n.errors)&&n.errors.forEach((c,d)=>{if(U3(c,Error)){akr(s,l);const p=e(t,c),h=u.length;ikr(p,`errors[${d}]`,h,l),u=CSt(e,t,r,c,a,[p,...u],p,h)}}),u}function akr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function ikr(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function $gi(e,t){return e.map(r=>(r.value&&(r.value=iU(r.value,t)),r))}function $0e(e){return e&&e.Math==Math?e:void 0}const Zs=typeof globalThis=="object"&&$0e(globalThis)||typeof window=="object"&&$0e(window)||typeof self=="object"&&$0e(self)||typeof rp=="object"&&$0e(rp)||function(){return this}()||{};function U7t(){return Zs}function drn(e,t,r){const n=r||Zs,a=n.__SENTRY__=n.__SENTRY__||{};return a[e]||(a[e]=t())}const oU=U7t(),exi=80;function NF(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,a=[];let o=0,s=0;const l=" > ",u=l.length;let c;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||exi;for(;r&&o++<n&&(c=txi(r,d),!(c==="html"||o>1&&s+a.length*u+c.length>=p));)a.push(c),s+=c.length,r=r.parentNode;return a.reverse().join(l)}catch{return"<unknown>"}}function txi(e,t){const r=e,n=[];let a,o,s,l,u;if(!r||!r.tagName)return"";if(oU.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());const c=t&&t.length?t.filter(p=>r.getAttribute(p)).map(p=>[p,r.getAttribute(p)]):null;if(c&&c.length)c.forEach(p=>{n.push(`[${p[0]}="${p[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),a=r.className,a&&ck(a))for(o=a.split(/\s+/),u=0;u<o.length;u++)n.push(`.${o[u]}`);const d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)s=d[u],l=r.getAttribute(s),l&&n.push(`[${s}="${l}"]`);return n.join("")}function rxi(){try{return oU.document.location.href}catch{return""}}function nxi(e){return oU.document&&oU.document.querySelector?oU.document.querySelector(e):null}function prn(e){if(!oU.HTMLElement)return null;let t=e;const r=5;for(let n=0;n<r;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const OY=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,axi="Sentry Logger ",ESt=["debug","info","warn","error","log","assert","trace"],rHe={};function dN(e){if(!("console"in Zs))return e();const t=Zs.console,r={},n=Object.keys(rHe);n.forEach(a=>{const o=rHe[a];r[a]=t[a],t[a]=o});try{return e()}finally{n.forEach(a=>{t[a]=r[a]})}}function ixi(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return OY?ESt.forEach(r=>{t[r]=(...n)=>{e&&dN(()=>{Zs.console[r](`${axi}[${r}]:`,...n)})}}):ESt.forEach(r=>{t[r]=()=>{}}),t}const en=ixi(),oxi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function sxi(e){return e==="http"||e==="https"}function zY(e,t=!1){const{host:r,path:n,pass:a,port:o,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&a?`:${a}`:""}@${r}${o?`:${o}`:""}/${n&&`${n}/`}${s}`}function lxi(e){const t=oxi.exec(e);if(!t){dN(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[r,n,a="",o,s="",l]=t.slice(1);let u="",c=l;const d=c.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),c=d.pop()),c){const p=c.match(/^\d+/);p&&(c=p[0])}return hrn({host:o,pass:a,path:u,projectId:c,port:s,protocol:r,publicKey:n})}function hrn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function uxi(e){if(!OY)return!0;const{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(en.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?sxi(n)?t&&isNaN(parseInt(t,10))?(en.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(en.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(en.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function cxi(e){const t=typeof e=="string"?lxi(e):hrn(e);if(!(!t||!uxi(t)))return t}class Fw extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}function Uh(e,t,r){if(!(t in e))return;const n=e[t],a=r(n);typeof a=="function"&&frn(a,n),e[t]=a}function pN(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{OY&&en.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function frn(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,pN(e,"__sentry_original__",t)}catch{}}function K7t(e){return e.__sentry_original__}function dxi(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function mrn(e){if(lrn(e))return{message:e.message,name:e.name,stack:e.stack,...skr(e)};if(gqe(e)){const t={type:e.type,target:okr(e.target),currentTarget:okr(e.currentTarget),...skr(e)};return typeof CustomEvent<"u"&&U3(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function okr(e){try{return Xgi(e)?NF(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function skr(e){if(typeof e=="object"&&e!==null){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function pxi(e,t=40){const r=Object.keys(mrn(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return iU(r[0],t);for(let n=r.length;n>0;n--){const a=r.slice(0,n).join(", ");if(!(a.length>t))return n===r.length?a:iU(a,t)}return""}function am(e){return SSt(e,new Map)}function SSt(e,t){if(hxi(e)){const r=t.get(e);if(r!==void 0)return r;const n={};t.set(e,n);for(const a of Object.keys(e))typeof e[a]<"u"&&(n[a]=SSt(e[a],t));return n}if(Array.isArray(e)){const r=t.get(e);if(r!==void 0)return r;const n=[];return t.set(e,n),e.forEach(a=>{n.push(SSt(a,t))}),n}return e}function hxi(e){if(!CK(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const grn=50,lkr=/\(error: (.*)\)/,ukr=/captureMessage|captureException/;function xrn(...e){const t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{const a=[],o=r.split(`
3
3
  `);for(let s=n;s<o.length;s++){const l=o[s];if(l.length>1024)continue;const u=lkr.test(l)?l.replace(lkr,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const d=c(u);if(d){a.push(d);break}}if(a.length>=grn)break}}return mxi(a)}}function fxi(e){return Array.isArray(e)?xrn(...e):e}function mxi(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ukr.test(t[t.length-1].function||"")&&(t.pop(),ukr.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,grn).map(r=>({...r,filename:r.filename||t[t.length-1].filename,function:r.function||"?"}))}const Fmt="<anonymous>";function K3(e){try{return!e||typeof e!="function"?Fmt:e.name||Fmt}catch{return Fmt}}const wAe={},ckr={};function TL(e,t){wAe[e]=wAe[e]||[],wAe[e].push(t)}function RL(e,t){ckr[e]||(t(),ckr[e]=!0)}function q2(e,t){const r=e&&wAe[e];if(r)for(const n of r)try{n(t)}catch(a){OY&&en.error(`Error while triggering instrumentation handler.
4
4
  Type: ${e}
@@ -45302,4 +45302,4 @@ ${r}
45302
45302
  `,pKu=()=>{const{height:e,headerHeight:t}=Is(),r=e-t||500;return M.jsx(dKu,{height:r,children:M.jsx("main",{className:"mainContent",children:M.jsxs("div",{className:"container",children:[M.jsx("h1",{children:"Dreamspace Terms of Service"}),M.jsx("p",{className:"last-updated",children:M.jsx("strong",{children:"Last Updated: July 7, 2025"})}),M.jsxs("section",{children:[M.jsx("p",{children:'Welcome to Dreamspace, developed and operated by MakeInfinite Labs ("Dreamspace," "we," "us," or "our"). By accessing or using our website, development tools, smart contract services, or any related content, software, or APIs (collectively, the "Platform"), you agree to comply with and be bound by these Terms of Service (the "Terms") and our Privacy Policy.'}),M.jsxs("p",{children:["Please read these Terms carefully before using the Platform."," ",M.jsx("strong",{children:"If you do not agree to these Terms, you may not access or use the Platform."})]})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"Acceptance of Terms"}),M.jsx("p",{children:"By using Dreamspace, you confirm that you:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"Have read, understood, and agreed to these Terms."}),M.jsx("li",{children:"Agree to our Privacy Policy."}),M.jsx("li",{children:"Will comply with all applicable laws and regulations."}),M.jsx("li",{children:"Are at least 18 years old and legally able to enter into a binding contract."})]}),M.jsx("p",{children:'If you are using the Platform on behalf of an organization, you represent that you have authority to bind that organization, and all references to "you" or "your" apply to both you as an individual and the organization you represent.'}),M.jsx("p",{children:"SECTION 15 CONTAINS A WAIVER OF ANY RIGHT TO PARTICIPATE IN A CLASS ACTION AS WELL AS A MANDATORY ARBITRATION CLAUSE THAT GOVERNS RESOLUTION OF CERTAIN DISPUTES AND WAIVES YOUR RIGHT TO SUE IN COURT OR HAVE A TRIAL BY JURY."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"1. License to Use the Platform"}),M.jsx("p",{children:"Subject to these Terms, Dreamspace grants you a limited, personal, non-exclusive, non-transferable, revocable license to access and use our Platform for lawful purposes, including smart contract development and deployment, as permitted by your subscription plan. This license is revocable at our discretion."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"2. Eligibility and Compliance"}),M.jsx("h3",{children:"2.1 General Requirements"}),M.jsx("p",{children:"You represent and warrant that:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"You are at least 18 years old;"}),M.jsx("li",{children:"You are not located in, or a citizen or resident of, any jurisdiction subject to comprehensive U.S. or international sanctions;"}),M.jsx("li",{children:"You are not listed on any U.S. or foreign government sanctions list (e.g., OFAC SDN List, EU Consolidated List);"}),M.jsx("li",{children:"You are not owned or controlled by any sanctioned individual or entity;"}),M.jsx("li",{children:"You have not previously been suspended or banned from using the Platform."})]}),M.jsx("h3",{children:"2.2 Restricted Territories"}),M.jsx("p",{children:"You may not use the Platform if you are in a jurisdiction where such use is prohibited by law or sanctions. We may implement technical restrictions (e.g., geoblocking, IP filtering) to enforce this. You agree not to bypass or attempt to bypass such restrictions."}),M.jsx("h3",{children:"2.3 Use on Behalf of Organizations"}),M.jsx("p",{children:"If you use the Platform on behalf of a legal entity, you confirm that you have authority to bind that entity to these Terms and that both you and the entity are jointly responsible for compliance."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"3. Account Registration and Wallet Integration"}),M.jsx("p",{children:"You may be required to connect a third-party wallet (e.g., MetaMask) to authenticate and access certain Platform features. Wallets are used for both identity and transaction signing. You are solely responsible for managing your wallet credentials and maintaining security. You understand that Dreamspace does not control or store your private keys and cannot recover lost wallet access."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"4. Intellectual Property Rights and Licensing"}),M.jsx("h3",{children:"4.1 Dreamspace IP"}),M.jsx("p",{children:"All rights, title, and interest in and to the Platform - including its architecture, design, codebase, algorithms, user interface, branding (including the Dreamspace name, logos, and domain names), documentation, and other original materials - are and will remain the exclusive property of MakeInfinite Labs and its licensors. These Terms do not grant you any rights or licenses in Dreamspace's intellectual property, except for the limited rights necessary to use the Platform in accordance with these Terms."}),M.jsx("h3",{children:"4.2 User Output and Licensing"}),M.jsx("p",{children:"Dreamspace does not claim ownership of the code, smart contracts, applications, or other outputs that you generate using the Platform. However, by using Dreamspace, you acknowledge and agree that:"}),M.jsxs("ul",{children:[M.jsxs("li",{children:["Any content created or generated within a miniapp project, including uploaded files, generated code, and chat messages that contribute to output, is automatically made public and is licensed under the",M.jsxs("a",{href:"https://www.apache.org/licenses/LICENSE-2.0",target:"_blank",rel:"noopener noreferrer",children:[" ","Apache 2.0 License"]}),"."]}),M.jsx("li",{children:"A LICENSE file applying the Apache 2.0 terms is programmatically included in every miniapp project."}),M.jsx("li",{children:"You are free to use, modify, distribute, and commercialize your output - subject to the terms of that license."})]}),M.jsx("p",{children:"You remain responsible for ensuring your output complies with applicable laws and does not infringe third-party rights."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"5. User Content and Responsibility"}),M.jsx("p",{children:'You may upload or submit content to the Platform, including source code, images, fonts, video, text prompts, metadata, or other digital assets ("User Content"). You represent and warrant that:'}),M.jsxs("ul",{children:[M.jsx("li",{children:"You have all rights, licenses, and permissions necessary to upload and use such content;"}),M.jsx("li",{children:"Your content does not violate any law, infringe any third-party rights, or contain unlawful, abusive, defamatory, obscene, or otherwise objectionable material."})]}),M.jsx("p",{children:"You retain ownership of your uploaded content, but acknowledge that any content included in a miniapp project will be made publicly accessible and licensed under Apache 2.0 by default."}),M.jsx("p",{children:"Dreamspace does not monitor content but reserves the right to remove or restrict access to any content that violates these Terms or applicable law."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"6. Public Content Visibility"}),M.jsxs("p",{children:["All miniapp projects, including uploaded assets (e.g., code, images) and chat interactions, are",M.jsx("strong",{children:" publicly accessible by design"}),". While Dreamspace does not actively publish this content, users with access to a project repository may view its full history. Do not upload confidential or sensitive information."]})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"7. Smart Contracts and User-Deployed Code"}),M.jsx("p",{children:'You are solely responsible for the development, deployment, and legality of any smart contract or decentralized application ("dApp") you build using Dreamspace. Dreamspace provides tools to assist with smart contract generation and deployment but does not deploy contracts, take custody of assets, or participate in any resulting transactions.'}),M.jsx("p",{children:"You acknowledge that:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"Smart contracts and dApps created via Dreamspace are solely your property;"}),M.jsx("li",{children:"You bear full responsibility for ensuring that smart contracts and dApps comply with all applicable laws and regulations across jurisdictions;"}),M.jsx("li",{children:"You are solely responsible for auditing and testing any code you generate or import;"}),M.jsx("li",{children:"Dreamspace is not responsible for your use or misuse of blockchain applications, smart contracts, or associated content;"}),M.jsx("li",{children:"You are responsible for any blockchain fees, gas costs, or related charges incurred;"})]}),M.jsx("p",{children:"Dreamspace does not offer legal, financial, or regulatory advice."}),M.jsx("p",{children:"Dreamspace does not act as a 'publisher' or 'issuer' of any smart contracts or tokens created using the Platform."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"8. Prohibited Uses"}),M.jsx("p",{children:"You agree not to misuse the Platform or use it in any manner that violates these Terms, applicable law, or the rights of others. Without limitation, you agree not to:"}),M.jsx("h3",{children:"Use the Platform in violation of any applicable laws or regulations, including but not limited to:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"Economic sanctions, export control laws, or anti-money laundering (AML) obligations;"}),M.jsx("li",{children:"Securities, financial services, or consumer protection laws;"})]}),M.jsxs("ul",{className:"prohibited-list",children:[M.jsxs("li",{children:["Use the Platform to develop or deploy smart contracts that facilitate:",M.jsxs("ul",{children:[M.jsx("li",{children:"Fraud, financial scams, market manipulation, or unlawful token issuance;"}),M.jsx("li",{children:"Unregistered securities offerings or unlicensed financial services;"}),M.jsx("li",{children:"Money laundering, terrorist financing, or other illicit financial activity"})]})]}),M.jsx("li",{children:"Upload or deploy code that includes viruses, worms, Trojan horses, corrupted files, or other malicious software;"}),M.jsx("li",{children:"Attempt to probe, scan, penetrate, or test the vulnerability of the Platform, or circumvent any security or authentication measures;"}),M.jsx("li",{children:"Use the Platform to interfere with or disrupt networks, systems, or other users;"}),M.jsx("li",{children:"Access or attempt to access accounts, wallets, systems, or data without proper authorization;"}),M.jsx("li",{children:"Bypass, circumvent, or attempt to disable any technical restrictions, rate limits, or access controls."}),M.jsx("li",{children:"Upload, store, or transmit content that infringes or misappropriates any intellectual property or proprietary rights;"}),M.jsx("li",{children:"Submit or deploy content that is unlawful, abusive, harassing, defamatory, hateful, violent, obscene, or otherwise offensive;"}),M.jsx("li",{children:"Upload or deploy content that promotes discrimination, hate speech, or incites violence;"}),M.jsx("li",{children:"Misrepresent your identity, affiliation, or authorization to use the Platform;"}),M.jsx("li",{children:"Create or use multiple accounts to evade limitations, blocks, or suspensions;"}),M.jsx("li",{children:"Access or use the Platform if you are located in, or a citizen or resident of, a country or territory subject to comprehensive U.S. or international sanctions;"}),M.jsx("li",{children:"Use the Platform on behalf of a sanctioned individual or entity."})]}),M.jsx("p",{children:M.jsx("strong",{children:"Dreamspace reserves the right to investigate and take appropriate action — including immediate suspension, termination, or legal action — in response to any suspected violation of this section."})})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"9. Services and Pricing"}),M.jsx("p",{children:"Access to certain features of the Platform may require a paid subscription. Details regarding available plans, features, pricing, and billing cycles are published on our website and may be updated from time to time."}),M.jsxs("ul",{children:[M.jsxs("li",{children:[M.jsx("strong",{children:"Recurring Billing"}),": All paid subscriptions are billed on a recurring monthly basis unless explicitly canceled by the user prior to renewal."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"Pricing Changes"}),": Dreamspace reserves the right to modify subscription tiers, features, or pricing at any time. Changes will be effective upon notice, which may be provided through the Platform, by email, or by other reasonable means."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"No Proration"}),": Adjustments to plan tiers (upgrades or downgrades) will take effect in the following billing cycle unless otherwise stated. No partial refunds or credits will be issued for unused time within a billing cycle."]})]})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"10. Payment and Refund Policy"}),M.jsxs("ul",{children:[M.jsxs("li",{children:[M.jsx("strong",{children:"Final Sale"}),": All subscription fees and associated charges are final and non-refundable, except in cases of verified billing errors (e.g., duplicate charges or unauthorized transactions)."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"Digital Nature"}),": Because access to Dreamspace services and tools begins immediately upon purchase, we do not offer refunds for any reason other than billing errors."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"Payment Authorization"}),": By subscribing, you authorize Dreamspace (or its third-party payment processor) to charge your designated payment method on a recurring basis."]})]}),M.jsx("h3",{children:"Cancellation Policy"}),M.jsxs("ul",{children:[M.jsxs("li",{children:[M.jsx("strong",{children:"User-Initiated Cancellation"}),": You may cancel your subscription at any time via your account settings. Cancellation will take effect at the end of your current billing period."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"No Refund for Cancellation"}),": Canceling your subscription does not entitle you to a refund or credit for any portion of the billing period already elapsed."]}),M.jsxs("li",{children:[M.jsx("strong",{children:"Expiration of Credits"}),": Any unused credits or allocations associated with a subscription plan will expire at the conclusion of the billing period and will not carry over."]})]})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"11. Disclaimer of Warranties"}),M.jsx("p",{className:"uppercase",children:'THE PLATFORM, INCLUDING BUT NOT LIMITED TO ALL CONTENT, FEATURES, TOOLS, TEMPLATES, SMART CONTRACT GENERATORS, AI-GENERATED OUTPUT, AND DEPLOYMENT FUNCTIONALITY, IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY.'}),M.jsx("p",{className:"uppercase",children:"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DREAMSPACE AND ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT;"}),M.jsx("li",{children:"WARRANTIES REGARDING THE ACCURACY, SECURITY, OR RELIABILITY OF CODE, SMART CONTRACTS, OR DEPLOYED OUTPUT;"}),M.jsx("li",{children:"WARRANTIES THAT THE PLATFORM OR GENERATED OUTPUT IS ERROR-FREE, SECURE, FREE OF MALWARE OR VULNERABILITIES, OR THAT DEPLOYMENTS WILL FUNCTION AS INTENDED;"}),M.jsx("li",{children:"WARRANTIES THAT ANY SMART CONTRACT, APPLICATION, OR DEPLOYED MATERIALS WILL BE COMPLIANT WITH ANY LAWS, REGULATIONS, OR INDUSTRY STANDARDS IN ANY JURISDICTION."})]}),M.jsx("p",{className:"uppercase",children:"YOU ACKNOWLEDGE THAT YOU ARE SOLELY RESPONSIBLE FOR REVIEWING, AUDITING, TESTING, AND VALIDATING ANY CODE OR SMART CONTRACTS GENERATED - INCLUDING THOSE GENERATED BY AI - DEPLOYED THROUGH THE PLATFORM. DREAMSPACE DOES NOT PROVIDE LEGAL, FINANCIAL, TAX, OR SECURITY AUDIT SERVICES. USE OF ANY GENERATED CODE IS AT YOUR OWN RISK"})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"12. Limitation of Liability"}),M.jsx("p",{className:"uppercase",children:"TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, IN NO EVENT SHALL DREAMSPACE, MAKEINFINITE LABS, OR THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, AGENTS, AFFILIATES, SERVICE PROVIDERS, OR LICENSORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, LOSS OF DATA, SECURITY BREACHES, SMART CONTRACT FAILURES, BLOCKCHAIN FEES OR GAS COSTS, DEPLOYMENT ERRORS, OR BUSINESS INTERRUPTION, ARISING OUT OF OR RELATED TO YOUR USE OF OR INABILITY TO USE THE PLATFORM - EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES."}),M.jsx("p",{className:"uppercase",children:"WITHOUT LIMITING THE FOREGOING, IN NO EVENT SHALL DREAMSPACE'S TOTAL CUMULATIVE LIABILITY TO YOU FOR ALL CLAIMS ARISING OUT OF OR RELATED TO THESE TERMS OR THE PLATFORM EXCEED THE GREATER OF (I) THE FEES PAID BY YOU TO DREAMSPACE IN THE TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE EVENT GIVING RISE TO THE CLAIM."}),M.jsx("p",{className:"uppercase",children:"THE LIMITATIONS OF THIS SECTION SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"13. Blockchain-Specific Risks"}),M.jsx("p",{className:"uppercase",children:"YOU UNDERSTAND AND ACKNOWLEDGE THAT DEPLOYMENTS TO PUBLIC BLOCKCHAINS ARE INHERENTLY RISKY AND IRREVERSIBLE. SMART CONTRACTS, ONCE DEPLOYED, MAY CONTAIN SECURITY FLAWS, VULNERABILITIES, OR ECONOMIC EXPLOITS THAT CANNOT BE UNDONE OR PATCHED."}),M.jsx("p",{className:"uppercase",children:"DREAMSPACE DOES NOT CONTROL THE OPERATION OF ANY BLOCKCHAIN NETWORK, NOR DOES IT GUARANTEE THE FUNCTIONALITY OR SUCCESS OF ANY SMART CONTRACT, TOKEN, OR APPLICATION DEPLOYED THROUGH THE PLATFORM. YOU BEAR FULL RESPONSIBILITY FOR ANY LOSSES INCURRED DUE TO CODE ERRORS, GAS FEES, TRANSACTION DELAYS, FORKS, NETWORK FAILURES, OR THIRD-PARTY ATTACKS."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"14. Indemnification"}),M.jsx("p",{children:`To the maximum extent permitted by applicable law, you agree to fully indemnify, defend, and hold harmless Dreamspace, MakeInfinite Labs, and their respective affiliates, officers, directors, employees, contractors, agents, licensors, service providers, successors, and assigns (collectively, the "Indemnified Parties") from and against any and all actual or alleged claims, demands, actions, proceedings, investigations, damages, losses, liabilities, judgments, settlements, costs, and expenses (including reasonable attorneys' fees and court costs) arising out of or related to:`}),M.jsxs("ul",{children:[M.jsx("li",{children:"Your use of or access to the Platform, including any applications, smart contracts, or other code created, generated, imported, uploaded, or deployed through it;"}),M.jsx("li",{children:"Any actual or alleged violation by you of these Terms or any applicable law, regulation, or third-party rights (including intellectual property, data protection, financial, or blockchain-related laws);"}),M.jsx("li",{children:"Any content, data, code, or smart contract you provide, deploy, or distribute using the Platform;"}),M.jsx("li",{children:"Any economic loss, legal exposure, or reputational damage caused by your deployed contracts, applications, tokens, or interactions with blockchain protocols or third parties;"}),M.jsx("li",{children:"Any unauthorized or malicious use of the Platform or related services via your account or credentials, whether or not authorized by you."})]}),M.jsx("p",{children:"Dreamspace reserves the right, at its sole discretion and expense, to assume the exclusive defense and control of any matter otherwise subject to indemnification by you. You agree to cooperate fully in the defense of any such claim and not to settle any claim without Dreamspace's prior written consent. Your indemnification obligations will survive termination or expiration of these Terms and your use of the Platform"})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"15. Dispute Resolution and Arbitration"}),M.jsx("p",{children:"Please read this section carefully. It requires binding arbitration of most disputes and limits the ways in which relief may be sought. You may opt out of arbitration as explained below. This section prohibits class or representative actions or arbitrations."}),M.jsx("h3",{children:"15.1 No Representative Actions"}),M.jsx("p",{children:"You and Dreamspace agree that any dispute, claim, or controversy arising out of or relating to these Terms or the Platform will be resolved solely on an individual basis. Neither party shall bring or participate in any class, collective, consolidated, or representative proceeding or arbitration."}),M.jsx("h3",{children:"15.2 Arbitration of Disputes"}),M.jsx("p",{children:"Except for (a) small claims disputes, or (b) claims in which Dreamspace seeks injunctive or other equitable relief for the alleged unlawful use of intellectual property, unauthorized access to or misuse of the Platform, unauthorized deployment of smart contracts, violation of security protocols, or any other conduct that threatens the integrity, availability, or lawful operation of the Platform, you and Dreamspace waive the right to a jury trial and to resolve disputes in court. All other claims are subject to binding arbitration as described below."}),M.jsxs("p",{children:["Before initiating arbitration, both parties agree to attempt informal resolution. You must send a written notice of your claim to"," ",M.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})," that includes:"]}),M.jsxs("ul",{children:[M.jsx("li",{children:"Your name and contact information,"}),M.jsx("li",{children:"A clear description of your claim, and"}),M.jsx("li",{children:"The relief you are seeking."})]}),M.jsx("p",{children:"If the dispute is not resolved within thirty (30) days of receiving the notice, either party may initiate binding arbitration administered by JAMS or, under the limited circumstances set forth above, in court:"}),M.jsxs("ul",{children:[M.jsxs("li",{children:["For U.S. residents: under JAMS Consumer Arbitration Rules (See JAMS Consumer Rules,",M.jsxs("a",{href:"https://www.jamsadr.com/consumer-minimum-standards/",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/consumer-minimum-standards/"]}),")"]}),M.jsx("li",{children:"For non-U.S. residents: under JAMS International Arbitration Rules (or equivalent rules as applicable)."})]}),M.jsx("p",{children:"Location of arbitration:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"U.S. residents: In your county of residence or remotely, by mutual agreement."}),M.jsx("li",{children:"Non-U.S. residents: Remotely via videoconference or in a mutually agreed jurisdiction."})]}),M.jsxs("p",{children:["The arbitration will be conducted in English before a single arbitrator. The JAMS rules are incorporated by reference and available at:",M.jsxs("a",{href:"https://www.jamsadr.com/rules-download",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/rules-download"]}),". You either acknowledge and agree that you have read and understood the JAMS Rules or waive your opportunity to read the JAMS Rules and waive any claim that the JAMS Rules are unfair or should not apply for any reason."]}),M.jsx("h3",{children:"15.3 Arbitration Fees"}),M.jsxs("ul",{children:[M.jsx("li",{children:"For claims initiated by you, you agree to pay the first $250 of the filing fee; Dreamspace will cover the remainder."}),M.jsx("li",{children:"For claims initiated by Dreamspace, we will pay all arbitration fees."}),M.jsx("li",{children:"Each party is responsible for its own attorneys' fees and costs unless the arbitrator determines otherwise."})]}),M.jsx("h3",{children:"15.4 Batch Arbitration"}),M.jsx("p",{children:"If 100 or more similar arbitration claims are filed against Dreamspace within a 30-day period by or with the assistance of the same firm(s) or organization(s), claims will be grouped into batches of up to 100 claims and processed together. Each batch will:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"Be assigned one arbitrator,"}),M.jsx("li",{children:"Follow a consolidated procedural calendar, and"}),M.jsx("li",{children:"Result in a single decision and award."})]}),M.jsx("p",{children:"This is not a class arbitration. Disputes about batching will be resolved by a neutral administrative arbitrator appointed by JAMS, whose fees will be paid by Dreamspace."}),M.jsx("h3",{children:"15.5 FAA and Governing Law"}),M.jsx("p",{children:`You and Dreamspace agree that these Terms affect interstate commerce and that the enforceability of this Section 15 will be substantively and procedurally governed by the Federal Arbitration Act, 9 U.S.C. § 1, et seq. (the "FAA"), to the maximum extent permitted by applicable law. As specified by the FAA, these Terms and the JAMS Rules, the arbitrator will have exclusive authority to make all procedural and substantive decisions regarding any dispute and to grant any remedy that would otherwise be available in court, including the power to determine the question of arbitrability. The arbitrator may conduct only an individual arbitration and may not consolidate more than one individual's claims, preside over any type of class or representative proceeding or preside over any proceeding involving more than one individual.`}),M.jsx("h3",{children:"15.6 Confidentiality"}),M.jsx("p",{children:"All arbitration proceedings, documents, and awards shall remain confidential unless required by law or necessary to enforce an arbitration award. The arbitrator may impose further confidentiality measures as needed."}),M.jsx("h3",{children:"15.7 Time Limitation"}),M.jsx("p",{children:"Any claim under these Terms must be filed within one (1) year of when the claim arose, or it will be permanently barred."}),M.jsx("h3",{children:"15.8 Opt-Out of Arbitration"}),M.jsxs("p",{children:["You may opt out of arbitration within thirty (30) days of first accepting these Terms by emailing",M.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with your full name, physical address, and a clear statement that you are opting out. If you opt out, Section 16 (Governing Law and Jurisdiction) will apply to dispute resolution."]}),M.jsx("h3",{children:"15.9 Severability"}),M.jsx("p",{children:"If any portion of this Section 15 is found to be unenforceable or unlawful for any reason:"}),M.jsxs("ul",{children:[M.jsx("li",{children:"(a) the unenforceable provision shall be severed from these Terms;"}),M.jsx("li",{children:"(b) such severance shall not affect the remainder of Section 15 or the enforceability of individual arbitration for any remaining claims; and"}),M.jsx("li",{children:"(c) to the extent any claims must proceed on a class, collective, or representative basis, those claims shall be litigated in a court of competent jurisdiction and not in arbitration. The parties agree that litigation of such claims shall be stayed pending the outcome of any related individual arbitration."})]}),M.jsx("p",{children:"Furthermore, if any part of this Section 15 is found to prohibit an individual claim for public injunctive relief, that provision shall have no effect to the extent such relief is legally required to be available outside of arbitration. The remainder of this Section shall remain in full force and effect."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"16. Governing Law and Jurisdiction"}),M.jsx("p",{children:"These Terms and any dispute arising out of or related to them will be governed by and construed in accordance with the laws of the State of Delaware, without regard to its conflict of law principles."}),M.jsx("p",{children:"Subject to Section 15 (Arbitration), you agree that any legal proceeding not resolved through arbitration must be brought exclusively in the state or federal courts located in Orange County, California, or New Castle County, Delaware, and you consent to the personal jurisdiction of those courts."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"17. Changes to Terms"}),M.jsx("p",{children:"We reserve the right, at our sole discretion, to modify, amend, or replace these Terms at any time. Unless otherwise stated, updated Terms become effective upon posting."}),M.jsx("p",{children:"Your continued use of the Platform after the effective date of any changes constitutes your acceptance of the revised Terms. If you do not agree to the updated Terms, you must stop using the Platform immediately. It is your responsibility to review these Terms periodically for changes."})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"18. Contact"}),M.jsx("p",{children:"For inquiries related to these Terms, contact:"}),M.jsxs("p",{children:[M.jsx("strong",{children:"Email:"})," ",M.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})]})]}),M.jsxs("section",{children:[M.jsx("h2",{children:"19. DMCA Notice and Copyright Policy"}),M.jsxs("p",{children:["Dreamspace respects intellectual property rights and complies with the Digital Millennium Copyright Act (DMCA). To report any copyright infringement, contact",M.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with:"]}),M.jsxs("ul",{children:[M.jsx("li",{children:"Your contact information."}),M.jsx("li",{children:"Identification of the copyrighted work."}),M.jsx("li",{children:"Identification of allegedly infringing material."}),M.jsx("li",{children:"A good-faith statement of infringement."}),M.jsx("li",{children:"A statement of accuracy under penalty of perjury."})]}),M.jsxs("p",{className:"copyright",children:["© ",new Date().getFullYear()," MakeInfinite Labs"]})]})]})})})},{MI_API_BASE_URL:hKu,MI_BASE_WS_URL:fKu,API_URL:mKu,MI_API_PROXY_BASE_URL:gKu,GW_PROXY_API_URL_FOR_MI:xKu}=nl(),yKu=e=>{const{onAuthButtonClick:t,isLoggedIn:r,loggedInUserId:n,onLogout:a,userDetail:o,subscriptionData:s,children:l,navigate:u}=e,c=ni(),d=_u(),p=Zmi(WBn),h={API_BASE_URL:hKu,WS_BASE_URL:fKu,GW_BASE_URL:mKu,GW_PROXY_URL:xKu,PROXY_API_BASE_URL:gKu},f=Hr.merge({},Nr,p);return M.jsx(_mi,{theme:f,children:M.jsxs($mi,{theme:f,children:[M.jsx(p5i,{}),M.jsx(Yq,{children:M.jsxs(cxn,{config:h,children:[M.jsxs(vt,{sx:{display:"flex",flexDirection:"row",width:"100%"},children:[M.jsx(vt,{sx:{width:"calc(100% - 54px)",overflowX:"auto"},children:l}),M.jsx(vt,{sx:{position:"fixed",top:0,bottom:0,right:0,overflow:"hidden",zIndex:1200},children:M.jsx(r6s,{onAuthButtonClick:t,navigate:u,onNavClick:g=>{g===mr.dataStudio?c.push(yn.newQuery()):c.push(g)},isLoggedIn:r,onLogout:g=>{a(g,()=>{d.pathname===mr.landingPage?window.location.reload():c.push(mr.landingPage)})},loggedInUserId:n,subscriptionData:s,userDetail:o})})]}),M.jsx(n6s,{})]})})]})})},vKu=({onClose:e})=>M.jsx(Vc,{visible:!0,isHeader:!1,maxWidth:"xs",className:"missingEmailDialogue",children:M.jsxs(RZe,{children:[M.jsx("h4",{className:"title",children:pe.VERIFY_EMAIL_PROMPT}),M.jsxs("ul",{children:[M.jsx("li",{children:M.jsx("span",{children:pe.VERIFY_EMAIL_INFO_01})}),M.jsx("li",{children:M.jsx("span",{children:pe.VERIFY_EMAIL_INFO_02})})]}),M.jsx("div",{className:"btnGroup",children:M.jsx(yr,{variant:"contained",onClick:e,style:{backgroundColor:"rgba(94, 53, 177, 0.8)",color:"#ffffff"},children:pe.VERIFY_EMAIL_CONFIRMATION})})]})}),AKu=()=>{const e=P.useRef(null),t=la(a=>a.isLoggedIn),r=la(a=>a.userId),{syncStore:n}=rd();P.useEffect(()=>{var o;if(console.log("loading initial application data",{isLoggedIn:t}),(o=e.current)==null||o.abort(),e.current=null,!t){Promise.allSettled([ASt({})]);return}const a=new AbortController;return e.current=a,Promise.allSettled([egi(),F7t(),tgi(r??""),rgi(),ngi(),ASt({}),agi({}),n()]),()=>a.abort()},[t])},bKu=["0XDESIGNER","AVAIL","AVAILTEAM","AVAX","BASE","BASETEAM","BONDEX","BUILD","CALDERA","CHAINLINK","EARLY","EMILY","NESA","POOL","PORT3","SOPHIA","SUI","SXTCOMMUNITY","VIBECODER","ZKSYNC"],eka=P.createContext(void 0),{ENABLE_JOIN_CODES:T$r}=nl(),DKu=localStorage.getItem("alphaJoinCode"),wKu=({children:e})=>{const[t,r]=P.useState(!!DKu||!T$r),n=a=>!T$r||bKu.includes(a.toUpperCase())?(r(!0),localStorage.setItem("alphaJoinCode",a),!0):!1;return M.jsx(eka.Provider,{value:{isValid:t,validate:n},children:e})},kKu=()=>{const e=P.useContext(eka);if(!e)throw new Error("useAlphaCode must be used within an AlphaCodeProvider");return e},CKu="/assets/panel-bg-c4c3f71d.svg",EKu=zS("div")(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2e3,pointerEvents:"auto"})),SKu=zS(Nf)(()=>({display:"flex",flexDirection:"column",backgroundColor:"rgba(255, 255, 255, 0.11)",backdropFilter:"blur(20px)",borderRadius:"12px",border:"1px solid rgba(99, 53, 112)",backgroundImage:`
45303
45303
  linear-gradient(rgba(0, 0, 0.4, 0.5),
45304
45304
  rgba(0, 0, 0.4, 0.5)), url(${CKu})
45305
- `,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),MKu=zS(vt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));zS(vt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const FKu=zS("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),BKu=zS(vt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),TKu=zS("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),RKu=zS("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),PKu=zS(td)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),jKu=()=>{const{isValid:e,validate:t}=kKu(),[r,n]=P.useState(""),[a,o]=P.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?M.jsx(M.Fragment,{}):Os.createPortal(M.jsx(M.Fragment,{children:M.jsx(EKu,{sx:{zIndex:2e3},children:M.jsxs(SKu,{sx:{zIndex:2e3},children:[M.jsx(MKu,{children:M.jsx(FKu,{children:"Welcome to Dreamspace"})}),M.jsxs(BKu,{sx:{position:"relative",color:"white"},children:[M.jsx(Oa,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),M.jsx(Oa,{sx:{margin:"5px 10px"},children:"You know what to do."}),M.jsx(TKu,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),M.jsx(RKu,{type:"text",name:"alpha code input",value:r,onChange:l=>n(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),a&&M.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),M.jsx(PKu,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},IKu=()=>{const e=E7t(),t=otn(),[r,n]=P.useState((e==null?void 0:e.length)>0||t),[a,o]=P.useState(!1);return M.jsxs(K0,{className:"biscuitsBlock",children:[M.jsxs("div",{className:"cardHead",children:[r||a?M.jsx("div",{}):pe.SAVE_BISCUIT,M.jsxs("div",{className:"headRight",children:[!a&&M.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>n(!r),disabled:!(e!=null&&e.length)&&!t,children:r?pe.CREATE_BISCUIT:pe.SHOW_BISCUIT}),M.jsx(Dn,{label:"Additional Information",children:M.jsx(nn,{onClick:()=>o(s=>!s),children:a?M.jsx(el,{}):M.jsx(oy,{})})})]})]}),M.jsx(Dl,{in:a,timeout:"auto",unmountOnExit:!0,children:M.jsx("div",{className:"infoText",children:M.jsx("p",{style:{fontSize:"14px",color:"#999"},children:stn.shortText})})}),M.jsx(Dl,{in:!a&&!r,timeout:"auto",unmountOnExit:!0,children:M.jsx(CDa,{})}),M.jsx(Dl,{in:!a&&r,timeout:"auto",unmountOnExit:!0,children:M.jsx(EDa,{setShowBiscuit:n,loading:t,biscuitContent:e})})]})},NKu=({visible:e,onClose:t})=>la(n=>n.isLoggedIn)?M.jsx(Vc,{title:pe.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:M.jsxs(pi,{container:!0,spacing:2,children:[M.jsx(pi,{item:!0,xs:12,children:M.jsx(Oa,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:pe.PERMISSIONS_BISCUITS_DESC})}),M.jsx(pi,{item:!0,xs:12,children:M.jsx(IKu,{})})]})}):(ll(!0),null),{ENV:gAe,GA_MEASUREMENT_ID:LKu,ENABLE_MY_ACCOUNTS_V2:OKu,ENABLE_JOIN_CODES:zKu}=nl();igi.initialize(LKu);const rSt=Ne.lazy(()=>SY(()=>import("./QueryEditorWrapper-e0796d12.js"),["assets/QueryEditorWrapper-e0796d12.js","assets/vendor-charts-a0e04cd5.js","assets/vendor-editor-7b15e8f0.js","assets/vendor-three-925330d2.js"])),HKu=Ne.lazy(()=>SY(()=>import("./ErdWrapper-793629db.js"),["assets/ErdWrapper-793629db.js","assets/vendor-charts-a0e04cd5.js","assets/vendor-editor-7b15e8f0.js","assets/vendor-three-925330d2.js"])),nSt=Ne.lazy(()=>SY(()=>import("./Queries-49b839b5.js"),["assets/Queries-49b839b5.js","assets/vendor-charts-a0e04cd5.js","assets/vendor-editor-7b15e8f0.js","assets/vendor-three-925330d2.js","assets/Queries-9ad18f9b.css"])),GKu=Ne.lazy(()=>SY(()=>import("./index-5bfe88a9.js"),["assets/index-5bfe88a9.js","assets/vendor-charts-a0e04cd5.js","assets/vendor-editor-7b15e8f0.js","assets/vendor-three-925330d2.js"])),VKu=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];jki.register({request:(e,t)=>{const r=e.toString();if(VKu.some(a=>r.includes(a)))return[e,t];const n={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(n.headers={"Content-Type":"application/json"},[e,n]):[e,n]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function WKu(){AKu();const e=ni(),{config:t}=AZe(),r=eC(),{subscriptionDetails:n}=rd(),a=ogi(),o=la(I=>I.isLoggedIn),s=la(I=>I.userId),l=sgi(),{search:u}=window&&window.location,c=new URLSearchParams(u);if(P.useLayoutEffect(()=>{const I=c.get("utm_campaign")||"";lgi({utmCampaign:I})},[]),!t)return null;const d=ugi(),p=S7t(),h=()=>zKu?!localStorage.getItem("alphaJoinCode"):!1,f=M7t(),[g,y]=P.useState({open:!1,userId:"",key:""}),[v,A]=P.useState(!1),[b]=P.useState(null),E=P.useCallback((I,L=!1)=>{switch(I){case"INDEX_CONTRACT":e.push(yn.getDataFromChain(""));break;case"DATA_STUDIO":default:L?window.open(yn.newQuery(),"_blank"):e.push(yn.newQuery());break}},[e]);P.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const S=Vw(I=>I.setUserEmail),F=Vw(I=>I.setIsEmailVerified),T=Vw(I=>I.showVerifyEmailDialog),R=Vw(I=>I.setShowVerifyEmailDialog);return P.useEffect(()=>{(async()=>{var j,H;const L=await Au.getEmail();L.status===200&&(S(((j=L==null?void 0:L.data)==null?void 0:j.emailAddress)??null),F(((H=L==null?void 0:L.data)==null?void 0:H.emailVerified)??!1))})()},[o]),M.jsx(Yq,{children:M.jsxs(wKu,{children:[M.jsxs(yKu,{onAuthButtonClick:()=>ll(!0),navigate:E,isLoggedIn:o,loggedInUserId:s??"",onLogout:(I=!0,L)=>{try{dqe(),cgi(),ll(!1),yre(),sessionStorage.removeItem("sessionId")}finally{Gl.logout()}I&&L()},subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[d&&M.jsx("div",{className:"fixedLoader",children:M.jsx(qi,{})}),M.jsxs(ctn,{children:[M.jsx(qc,{exact:!0,path:mr.landingPage,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(KBs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>ll(!0),onStartCreatingClick:()=>Mv.startCreatingClick(),onBlankProjectClick:()=>Mv.blankProjectClick()})})}),M.jsx(qc,{exact:!0,path:mr.explore,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(gBs,{})})}),M.jsx(qc,{exact:!0,path:mr.dataStudio,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(itn,{to:yn.newQuery()})})}),M.jsx(qc,{exact:!0,path:mr.myApps,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(UTs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>ll(!0)})})}),M.jsx(qc,{exact:!0,path:`${mr.myApps}/:projectId`,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(rBs,{navigate:E,subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})})}),M.jsx(qc,{exact:!0,path:mr.googleCloud,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(lUu,{})]})}),M.jsx(qc,{exact:!0,path:mr.awsMarketplace,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nWu,{})]})}),M.jsx(qc,{exact:!0,path:mr.azureLogin,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Fkl,{})]})}),M.jsx(qc,{exact:!0,path:mr.twitterCallback,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(Bkl,{})})}),M.jsx(qc,{exact:!0,path:mr.newQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(qc,{exact:!0,path:mr.erd,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(HKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.savedQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(qc,{exact:!0,path:mr.publicQuerySlug,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(ox,{exact:!0,path:mr.newChart,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(qHr,{})]})}),M.jsx(ox,{exact:!0,path:mr.updateChart,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(qHr,{})})}),M.jsx(ox,{exact:!0,path:mr.charts,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Ixl,{})]})}),M.jsx(qc,{exact:!0,path:mr.dashboards,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Hkl,{})]})}),M.jsx(ox,{exact:!0,path:mr.myQueries,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.myQueries})]})}),M.jsx(ox,{exact:!0,path:mr.queryHistory,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.queryHistory})]})}),M.jsx(qc,{exact:!0,path:mr.myOrgQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.myOrgQuery})]})}),M.jsx(ox,{exact:!0,path:mr.newDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(QGr,{})]})}),M.jsx(qc,{exact:!0,path:mr.viewDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZGr,{})]})}),M.jsx(qc,{exact:!0,path:mr.publicDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZGr,{isPublic:!0})]})}),M.jsx(ox,{exact:!0,path:mr.updateDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(QGr,{})]})}),gAe==="dev"&&M.jsx(ox,{exact:!0,path:mr.pipelineView,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),gAe==="dev"?M.jsx(GKu,{}):M.jsx(qVr,{})]})}),gAe==="dev"&&M.jsx(ox,{exact:!0,path:mr.pipelineModel,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),gAe==="dev"?M.jsx(Ckl,{}):M.jsx(qVr,{})]})}),M.jsx(ox,{exact:!0,path:mr.sendData,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(eWu,{})]})}),M.jsx(ox,{exact:!0,path:mr.getDataFromChain,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(mHu,{})]})}),OKu==="true"&&M.jsx(ox,{path:`${mr.settings}/:subPath*`,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(GLu,{})]})}),M.jsx(ox,{exact:!0,path:mr.views,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZUu,{})]})}),M.jsx(qc,{exact:!0,path:mr.emailVerification,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.resetPassword,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(uKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.terms,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(pKu,{})]})}),M.jsx(qc,{render:I=>M.jsx(Yq,{...I,children:M.jsx(pce,{errorPageType:"404"})})})]}),l&&M.jsx(NKu,{visible:l,onClose:()=>Xjt(!1)}),!h()&&f&&M.jsx(Z6s,{open:f,setShowLoginDrawer:ll,isSubmit:v,setIsSubmit:A,redirectOnSuccess:b,setIsJoinCodeRequired:y}),a&&M.jsx(cKu,{onClose:()=>dgi(!1)}),o&&T&&M.jsx(vKu,{onClose:()=>R(!1)})]}),M.jsx(jKu,{}),M.jsx(pgi,{}),(p==null?void 0:p.type)==="error"&&(p!=null&&p.title)?M.jsx(Kkl,{}):M.jsx(Ykl,{})]})})}async function UKu(e){const t=!!e.match("ignite"),{data:r,error:n}=await Au.get(e,void 0,t);if(n)throw n;return r}const{GOOGLE_CLIENT_ID:KKu,STRIPE_CLIENT_ID:qKu,SENTRY_DSN:YKu,CLARITY_PROJECT_ID:XKu}=nl();hgi.init(XKu);kki({dsn:YKu,integrations:[new Rqe,new Cki],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const JKu=qgi(`${qKu}`);window.localforage=fgi;mgi();rd.getState().syncStore();Os.render(M.jsx(_tn,{stripe:JKu,children:M.jsx(ggi,{value:{fetcher:UKu},children:M.jsx(Ski,{clientId:KKu,children:M.jsx(xgi,{children:M.jsx(WKu,{})})})})}),document.getElementById("root"));export{WGu as $,aZu as A,yr as B,fZu as C,eZu as D,$Qu as E,tZu as F,iKt as G,mZu as H,nn as I,pZu as J,jxl as K,nu as L,Kia as M,$n as N,qi as O,aB as P,UVu as Q,ym as R,iUt as S,n1 as T,l5 as U,Am as V,HU as W,el as X,qq as Y,fb as Z,zia as _,QGu as a,f$r as a0,lZu as a1,cZu as a2,_bl as a3,_Os as a4,iZu as b,rZu as c,nZu as d,gwa as e,oZu as f,Oaa as g,aZe as h,gZu as i,Swa as j,sZu as k,Vc as l,Eaa as m,kn as n,iA as o,dZu as p,GGu as q,uZu as r,hZu as s,zGu as t,Is as u,HGu as v,SQu as w,vm as x,o_t as y,s_t as z};
45305
+ `,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),MKu=zS(vt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));zS(vt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const FKu=zS("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),BKu=zS(vt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),TKu=zS("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),RKu=zS("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),PKu=zS(td)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),jKu=()=>{const{isValid:e,validate:t}=kKu(),[r,n]=P.useState(""),[a,o]=P.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?M.jsx(M.Fragment,{}):Os.createPortal(M.jsx(M.Fragment,{children:M.jsx(EKu,{sx:{zIndex:2e3},children:M.jsxs(SKu,{sx:{zIndex:2e3},children:[M.jsx(MKu,{children:M.jsx(FKu,{children:"Welcome to Dreamspace"})}),M.jsxs(BKu,{sx:{position:"relative",color:"white"},children:[M.jsx(Oa,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),M.jsx(Oa,{sx:{margin:"5px 10px"},children:"You know what to do."}),M.jsx(TKu,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),M.jsx(RKu,{type:"text",name:"alpha code input",value:r,onChange:l=>n(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),a&&M.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),M.jsx(PKu,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},IKu=()=>{const e=E7t(),t=otn(),[r,n]=P.useState((e==null?void 0:e.length)>0||t),[a,o]=P.useState(!1);return M.jsxs(K0,{className:"biscuitsBlock",children:[M.jsxs("div",{className:"cardHead",children:[r||a?M.jsx("div",{}):pe.SAVE_BISCUIT,M.jsxs("div",{className:"headRight",children:[!a&&M.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>n(!r),disabled:!(e!=null&&e.length)&&!t,children:r?pe.CREATE_BISCUIT:pe.SHOW_BISCUIT}),M.jsx(Dn,{label:"Additional Information",children:M.jsx(nn,{onClick:()=>o(s=>!s),children:a?M.jsx(el,{}):M.jsx(oy,{})})})]})]}),M.jsx(Dl,{in:a,timeout:"auto",unmountOnExit:!0,children:M.jsx("div",{className:"infoText",children:M.jsx("p",{style:{fontSize:"14px",color:"#999"},children:stn.shortText})})}),M.jsx(Dl,{in:!a&&!r,timeout:"auto",unmountOnExit:!0,children:M.jsx(CDa,{})}),M.jsx(Dl,{in:!a&&r,timeout:"auto",unmountOnExit:!0,children:M.jsx(EDa,{setShowBiscuit:n,loading:t,biscuitContent:e})})]})},NKu=({visible:e,onClose:t})=>la(n=>n.isLoggedIn)?M.jsx(Vc,{title:pe.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:M.jsxs(pi,{container:!0,spacing:2,children:[M.jsx(pi,{item:!0,xs:12,children:M.jsx(Oa,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:pe.PERMISSIONS_BISCUITS_DESC})}),M.jsx(pi,{item:!0,xs:12,children:M.jsx(IKu,{})})]})}):(ll(!0),null),{ENV:gAe,GA_MEASUREMENT_ID:LKu,ENABLE_MY_ACCOUNTS_V2:OKu,ENABLE_JOIN_CODES:zKu}=nl();igi.initialize(LKu);const rSt=Ne.lazy(()=>SY(()=>import("./QueryEditorWrapper-743b5fe7.js"),["assets/QueryEditorWrapper-743b5fe7.js","assets/vendor-charts-ea315f2b.js","assets/vendor-editor-8d2b746e.js","assets/vendor-three-69d08b24.js"])),HKu=Ne.lazy(()=>SY(()=>import("./ErdWrapper-939a4a6d.js"),["assets/ErdWrapper-939a4a6d.js","assets/vendor-charts-ea315f2b.js","assets/vendor-editor-8d2b746e.js","assets/vendor-three-69d08b24.js"])),nSt=Ne.lazy(()=>SY(()=>import("./Queries-c16aa323.js"),["assets/Queries-c16aa323.js","assets/vendor-charts-ea315f2b.js","assets/vendor-editor-8d2b746e.js","assets/vendor-three-69d08b24.js","assets/Queries-9ad18f9b.css"])),GKu=Ne.lazy(()=>SY(()=>import("./index-4471842e.js"),["assets/index-4471842e.js","assets/vendor-charts-ea315f2b.js","assets/vendor-editor-8d2b746e.js","assets/vendor-three-69d08b24.js"])),VKu=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];jki.register({request:(e,t)=>{const r=e.toString();if(VKu.some(a=>r.includes(a)))return[e,t];const n={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(n.headers={"Content-Type":"application/json"},[e,n]):[e,n]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function WKu(){AKu();const e=ni(),{config:t}=AZe(),r=eC(),{subscriptionDetails:n}=rd(),a=ogi(),o=la(I=>I.isLoggedIn),s=la(I=>I.userId),l=sgi(),{search:u}=window&&window.location,c=new URLSearchParams(u);if(P.useLayoutEffect(()=>{const I=c.get("utm_campaign")||"";lgi({utmCampaign:I})},[]),!t)return null;const d=ugi(),p=S7t(),h=()=>zKu?!localStorage.getItem("alphaJoinCode"):!1,f=M7t(),[g,y]=P.useState({open:!1,userId:"",key:""}),[v,A]=P.useState(!1),[b]=P.useState(null),E=P.useCallback((I,L=!1)=>{switch(I){case"INDEX_CONTRACT":e.push(yn.getDataFromChain(""));break;case"DATA_STUDIO":default:L?window.open(yn.newQuery(),"_blank"):e.push(yn.newQuery());break}},[e]);P.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const S=Vw(I=>I.setUserEmail),F=Vw(I=>I.setIsEmailVerified),T=Vw(I=>I.showVerifyEmailDialog),R=Vw(I=>I.setShowVerifyEmailDialog);return P.useEffect(()=>{(async()=>{var j,H;const L=await Au.getEmail();L.status===200&&(S(((j=L==null?void 0:L.data)==null?void 0:j.emailAddress)??null),F(((H=L==null?void 0:L.data)==null?void 0:H.emailVerified)??!1))})()},[o]),M.jsx(Yq,{children:M.jsxs(wKu,{children:[M.jsxs(yKu,{onAuthButtonClick:()=>ll(!0),navigate:E,isLoggedIn:o,loggedInUserId:s??"",onLogout:(I=!0,L)=>{try{dqe(),cgi(),ll(!1),yre(),sessionStorage.removeItem("sessionId")}finally{Gl.logout()}I&&L()},subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[d&&M.jsx("div",{className:"fixedLoader",children:M.jsx(qi,{})}),M.jsxs(ctn,{children:[M.jsx(qc,{exact:!0,path:mr.landingPage,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(KBs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>ll(!0),onStartCreatingClick:()=>Mv.startCreatingClick(),onBlankProjectClick:()=>Mv.blankProjectClick()})})}),M.jsx(qc,{exact:!0,path:mr.explore,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(gBs,{})})}),M.jsx(qc,{exact:!0,path:mr.dataStudio,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(itn,{to:yn.newQuery()})})}),M.jsx(qc,{exact:!0,path:mr.myApps,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(UTs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>ll(!0)})})}),M.jsx(qc,{exact:!0,path:`${mr.myApps}/:projectId`,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(rBs,{navigate:E,subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})})}),M.jsx(qc,{exact:!0,path:mr.googleCloud,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(lUu,{})]})}),M.jsx(qc,{exact:!0,path:mr.awsMarketplace,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nWu,{})]})}),M.jsx(qc,{exact:!0,path:mr.azureLogin,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Fkl,{})]})}),M.jsx(qc,{exact:!0,path:mr.twitterCallback,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(Bkl,{})})}),M.jsx(qc,{exact:!0,path:mr.newQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(qc,{exact:!0,path:mr.erd,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(HKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.savedQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(qc,{exact:!0,path:mr.publicQuerySlug,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(rSt,{})]})}),M.jsx(ox,{exact:!0,path:mr.newChart,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(qHr,{})]})}),M.jsx(ox,{exact:!0,path:mr.updateChart,children:M.jsx(P.Suspense,{fallback:M.jsx(qi,{}),children:M.jsx(qHr,{})})}),M.jsx(ox,{exact:!0,path:mr.charts,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Ixl,{})]})}),M.jsx(qc,{exact:!0,path:mr.dashboards,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(Hkl,{})]})}),M.jsx(ox,{exact:!0,path:mr.myQueries,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.myQueries})]})}),M.jsx(ox,{exact:!0,path:mr.queryHistory,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.queryHistory})]})}),M.jsx(qc,{exact:!0,path:mr.myOrgQuery,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nSt,{tab:Cre.myOrgQuery})]})}),M.jsx(ox,{exact:!0,path:mr.newDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(QGr,{})]})}),M.jsx(qc,{exact:!0,path:mr.viewDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZGr,{})]})}),M.jsx(qc,{exact:!0,path:mr.publicDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZGr,{isPublic:!0})]})}),M.jsx(ox,{exact:!0,path:mr.updateDashboard,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(QGr,{})]})}),gAe==="dev"&&M.jsx(ox,{exact:!0,path:mr.pipelineView,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),gAe==="dev"?M.jsx(GKu,{}):M.jsx(qVr,{})]})}),gAe==="dev"&&M.jsx(ox,{exact:!0,path:mr.pipelineModel,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),gAe==="dev"?M.jsx(Ckl,{}):M.jsx(qVr,{})]})}),M.jsx(ox,{exact:!0,path:mr.sendData,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(eWu,{})]})}),M.jsx(ox,{exact:!0,path:mr.getDataFromChain,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(mHu,{})]})}),OKu==="true"&&M.jsx(ox,{path:`${mr.settings}/:subPath*`,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(GLu,{})]})}),M.jsx(ox,{exact:!0,path:mr.views,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(ZUu,{})]})}),M.jsx(qc,{exact:!0,path:mr.emailVerification,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(nKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.resetPassword,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(uKu,{})]})}),M.jsx(qc,{exact:!0,path:mr.terms,children:M.jsxs(P.Suspense,{fallback:M.jsx(qi,{}),children:[M.jsx(Ku,{}),M.jsx(pKu,{})]})}),M.jsx(qc,{render:I=>M.jsx(Yq,{...I,children:M.jsx(pce,{errorPageType:"404"})})})]}),l&&M.jsx(NKu,{visible:l,onClose:()=>Xjt(!1)}),!h()&&f&&M.jsx(Z6s,{open:f,setShowLoginDrawer:ll,isSubmit:v,setIsSubmit:A,redirectOnSuccess:b,setIsJoinCodeRequired:y}),a&&M.jsx(cKu,{onClose:()=>dgi(!1)}),o&&T&&M.jsx(vKu,{onClose:()=>R(!1)})]}),M.jsx(jKu,{}),M.jsx(pgi,{}),(p==null?void 0:p.type)==="error"&&(p!=null&&p.title)?M.jsx(Kkl,{}):M.jsx(Ykl,{})]})})}async function UKu(e){const t=!!e.match("ignite"),{data:r,error:n}=await Au.get(e,void 0,t);if(n)throw n;return r}const{GOOGLE_CLIENT_ID:KKu,STRIPE_CLIENT_ID:qKu,SENTRY_DSN:YKu,CLARITY_PROJECT_ID:XKu}=nl();hgi.init(XKu);kki({dsn:YKu,integrations:[new Rqe,new Cki],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const JKu=qgi(`${qKu}`);window.localforage=fgi;mgi();rd.getState().syncStore();Os.render(M.jsx(_tn,{stripe:JKu,children:M.jsx(ggi,{value:{fetcher:UKu},children:M.jsx(Ski,{clientId:KKu,children:M.jsx(xgi,{children:M.jsx(WKu,{})})})})}),document.getElementById("root"));export{WGu as $,aZu as A,yr as B,fZu as C,eZu as D,$Qu as E,tZu as F,iKt as G,mZu as H,nn as I,pZu as J,jxl as K,nu as L,Kia as M,$n as N,qi as O,aB as P,UVu as Q,ym as R,iUt as S,n1 as T,l5 as U,Am as V,HU as W,el as X,qq as Y,fb as Z,zia as _,QGu as a,f$r as a0,lZu as a1,cZu as a2,_bl as a3,_Os as a4,iZu as b,rZu as c,nZu as d,gwa as e,oZu as f,Oaa as g,aZe as h,gZu as i,Swa as j,sZu as k,Vc as l,Eaa as m,kn as n,iA as o,dZu as p,GGu as q,uZu as r,hZu as s,zGu as t,Is as u,HGu as v,SQu as w,vm as x,o_t as y,s_t as z};