@zeniai/web-cockpit-ui 2.2.55-dev → 2.2.55-qa

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,4 +1,4 @@
1
- import{j as s}from"./liveblocks-1rPyJrPS.js";import{u as v,P}from"./ScreenRoutes-DdbAz88l.js";import{a as f}from"./sentry-DnKCIlp7.js";import{i as U,n as R,g as m,h as T,k as C,l as I,N as j}from"./core-CjUOFtNP.js";import{Sa as N,Sb as k,lu as E,Sc as M,mk as L,mn as $,m9 as O,Sd as _,Se as B,mh as F,md as q}from"./zeni-epic-state-BjcbtVhk.js";import{z as V,Z,G,n as J,a0 as H,c as K,w as Q,b as W,g as X,d as Y}from"./index-7-X9ZJj6.js";import{n as ee}from"./mui-BRD3zvN1.js";import"./recharts-CHQcl4ep.js";import"./analyticsHelper-BguNWp-6.js";import"./utils-DmBc9W1c.js";import"./empty-CGqM-fQ6.js";import"./index-ibUWH8aZ.js";import"./url-CyApCW3Z.js";import"./index-D0y-AHOf.js";import"./analytics-BHUwgbCp.js";import"./lottie-iG9PQglI.js";import"./lexical-D0-Opw0M.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="69323f4c-0a45-4b34-81d6-1025aa3841ea",a._sentryDebugIdIdentifier="sentry-dbid-69323f4c-0a45-4b34-81d6-1025aa3841ea")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
1
+ import{j as s}from"./liveblocks-1rPyJrPS.js";import{u as v,P}from"./ScreenRoutes-CBGK06cX.js";import{a as f}from"./sentry-DnKCIlp7.js";import{i as U,n as R,g as m,h as T,k as C,l as I,N as j}from"./core-CjUOFtNP.js";import{Sa as N,Sb as k,lu as E,Sc as M,mk as L,mn as $,m9 as O,Sd as _,Se as B,mh as F,md as q}from"./zeni-epic-state-BjcbtVhk.js";import{z as V,Z,G,n as J,a0 as H,c as K,w as Q,b as W,g as X,d as Y}from"./index-DiBX-hv1.js";import{n as ee}from"./mui-BRD3zvN1.js";import"./recharts-CHQcl4ep.js";import"./analyticsHelper-C1KqLtzZ.js";import"./utils-DmBc9W1c.js";import"./empty-CGqM-fQ6.js";import"./index-ibUWH8aZ.js";import"./url-CyApCW3Z.js";import"./index-D0y-AHOf.js";import"./analytics-BHUwgbCp.js";import"./lottie-iG9PQglI.js";import"./lexical-D0-Opw0M.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="69323f4c-0a45-4b34-81d6-1025aa3841ea",a._sentryDebugIdIdentifier="sentry-dbid-69323f4c-0a45-4b34-81d6-1025aa3841ea")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
2
2
  padding: ${J.sp5};
3
3
  text-align: center;
4
4
  `;function re(){const a=U(),t=R(),n=m(N),g=m(k),[c,h]=f.useState(new Set),S=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=f.useMemo(()=>({onFetch:()=>{t(O())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${Z}/tableDownload?query=${x}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),p=document.createElement("a");p.href=u,p.download=`${e.file_name}.xlsx`,p.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,A,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?S.current.add(o):r!=null&&!r.isAnalyzing&&S.current.has(o)&&(e.add(o),S.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const z=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?s.jsx(oe,{children:G.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:z})}function we(){const{isAllowed:a,isLoading:t}=v();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(P,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{to:"/management",replace:!0})})})}export{we as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-B9qoucdM.js","assets/liveblocks-1rPyJrPS.js","assets/sentry-DnKCIlp7.js","assets/core-CjUOFtNP.js","assets/recharts-CHQcl4ep.js","assets/zeni-epic-state-BjcbtVhk.js","assets/index-7-X9ZJj6.js","assets/mui-BRD3zvN1.js","assets/analytics-BHUwgbCp.js","assets/lottie-iG9PQglI.js","assets/lexical-D0-Opw0M.js","assets/utils-DmBc9W1c.js","assets/index-DcGIrthm.css","assets/analyticsHelper-BguNWp-6.js","assets/empty-CGqM-fQ6.js","assets/index-ibUWH8aZ.js","assets/url-CyApCW3Z.js","assets/index-D0y-AHOf.js"])))=>i.map(i=>d[i]);
2
- import{Rk as Df,Rl as Mf,ls as It,f0 as ys,Rm as Nt,f9 as nn,e_ as Ff,Rn as Jt,f5 as on,Ro as fd,Rp as hd,Rq as ur,Rr as dd,jP as Bf,lu as Ct,jM as pd,jT as Uf,Rs as _s,jV as md,jW as gd,Rt as wr,Ru as cr,ji as vd,Rv as dn,Rw as Vo,dg as yd,gZ as $o,gW as sn,h2 as Mt,h0 as _d,Rx as Vf,Ry as $f,k8 as bd,k5 as wd,Rz as Ed,kj as Sd,ke as bs,kb as Rd,k0 as Od,RA as Td,eI as xd,dn as Ad,lG as zf,RB as Id,be as an,jZ as ws,k2 as Cd,A0 as Gf,lt as pn,RC as Hf,RD as pt,lR as un,lM as Zf,kD as zo,RE as Pd,lU as kd,H as et,bm as Go,RF as jd,jf as Ld,RG as qd,RH as Wf,RI as Nd,yk as Es,xS as Dd,RJ as Md,xY as An,RK as Fd,x_ as Bd,RL as Tt,xP as Ud,d4 as Vd,lx as Yf,ly as Jf,lw as Ho,lv as Zo,lz as $d,RM as zd,yn as Gd,RN as Hd,y4 as Zd,yh as Wd,RO as Yd,y8 as Jd,RP as Kd,RQ as Kt,RR as Wo,RS as Xd,RT as Qd,rZ as ep,s3 as Kf,RU as Xf,iM as tp,Qp as Qf,RV as rp,Qj as np,RW as ip,RX as ap,s6 as op,RY as sp,Qu as up,Qi as cp,BT as eh,RZ as In,R_ as th,N6 as Yo,MU as lp,N9 as rh,MX as fp,R$ as hp,N0 as dp,MO as pp,MR as mp,S0 as gp,Nd as vp,N3 as yp,bp as _p,bd as bp,S1 as wp,S2 as zt,S3 as Ep,S4 as Sp,S5 as Rp,kr as Mo,kn as Op,kx as Tp,kA as Ss,ba as nh}from"./zeni-epic-state-BjcbtVhk.js";import{j as V}from"./liveblocks-1rPyJrPS.js";import{a as ce,p as ye,d as ih,c as Jo,g as xp}from"./sentry-DnKCIlp7.js";import{W as wt,U as xt,z as He,c as Ap,h as Ip,o as lr,E as Ft,C as Cp,w as Et,$ as ah,a as at,b as Fe,d as Pt,g as Bt,q as Pp,u as kp,_ as jp,m as Lp,e as mn,f as qp,G as fr,s as gn,n as Dt,T as Np,i as Dp,A as vn,S as Mp,j as Fp,k as Cn,P as Bp,l as oh,y as Up,p as sh,N as uh,r as Fo,t as Vp,v as $p,x as zp,B as ch,D as Gp,F as Hp,H as Zp,I as Wp,J as Yp,K as Jp,L as Kp,M as Xp,O as Qp,Q as em,R as tm,V as rm,X as lh}from"./index-7-X9ZJj6.js";import{f as nm}from"./analyticsHelper-BguNWp-6.js";import{i as Be,n as We,g as Se,o as ot,N as ir,k as gt,l as Te,p as fh,h as ze,u as Ko,j as Bo}from"./core-CjUOFtNP.js";import{D as hr,n as tt,S as Ht}from"./mui-BRD3zvN1.js";import{a as Ze,b as im,c as am,d as om,e as Xo,f as sm,g as um,h as cm,i as Zt,j as lm,k as or,l as yn,m as fm,n as dr,o as hm}from"./utils-DmBc9W1c.js";import{r as Qo}from"./empty-CGqM-fQ6.js";import{r as pr,a as dm}from"./index-ibUWH8aZ.js";import{r as pm}from"./index-D0y-AHOf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="741546be-ccc5-4454-a43b-a5f723ba8182",e._sentryDebugIdIdentifier="sentry-dbid-741546be-ccc5-4454-a43b-a5f723ba8182")}catch{}})();var Pn={},Rs;function _n(){return Rs||(Rs=1,(function(e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(t,n){return Object.prototype.hasOwnProperty.call(t,n)}e.assign=function(t){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var s=n.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)a(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,n){return t.length===n?t:t.subarray?t.subarray(0,n):(t.length=n,t)};var i={arraySet:function(t,n,s,d,f){if(n.subarray&&t.subarray){t.set(n.subarray(s,s+d),f);return}for(var l=0;l<d;l++)t[f+l]=n[s+l]},flattenChunks:function(t){var n,s,d,f,l,h;for(d=0,n=0,s=t.length;n<s;n++)d+=t[n].length;for(h=new Uint8Array(d),f=0,n=0,s=t.length;n<s;n++)l=t[n],h.set(l,f),f+=l.length;return h}},o={arraySet:function(t,n,s,d,f){for(var l=0;l<d;l++)t[f+l]=n[s+l]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)})(Pn)),Pn}var ut={},kt={},Os;function mm(){if(Os)return kt;Os=1;var e=_n(),r=4,a=0,i=1,o=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var n=0,s=1,d=2,f=3,l=258,h=29,c=256,b=c+1+h,m=30,y=19,g=2*b+1,u=15,_=16,E=7,v=256,w=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var z=new Array(l-f+1);t(z);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,fe,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=I&&I.length}var U,W,H;function M(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function N(I){return I<256?q[I]:q[256+(I>>>7)]}function B(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function $(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,B(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function K(I,ne,se){$(I,se[ne*2],se[ne*2+1])}function X(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(B(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,G,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>fe)&&(I.bl_count[A]++,G=0,te>=oe&&(G=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+G),ie&&(I.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>fe)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var fe=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=X(fe[oe]++,oe))}}function me(){var I,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<h-1;fe++)for(P[fe]=se,I=0;I<1<<C[fe];I++)z[se++]=fe;for(z[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(j[fe]=Z,I=0;I<1<<D[fe];I++)q[Z++]=fe;for(Z>>=7;fe<m;fe++)for(j[fe]=Z<<7,I=0;I<1<<D[fe]-7;I++)q[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=X(I,5);U=new k(R,C,c+1,b,u),W=new k(L,D,0,m,u),H=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?B(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,fe){Ce(I),B(I,se),B(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,fe){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&fe[ne]<=fe[se]}function Ae(I,ne,se){for(var fe=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,fe,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=fe}function Ee(I,ne,se){var fe,Z,ie=0,T,oe;if(I.last_lit!==0)do fe=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,fe===0?K(I,Z,ne):(T=z[Z],K(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],$(I,Z,oe)),fe--,T=N(fe),K(I,T,se),oe=D[T],oe!==0&&(fe-=j[T],$(I,fe,oe)));while(ie<I.last_lit);K(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=fe[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var fe,Z=-1,ie,T=ne[1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[w*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var fe,Z=-1,ie,T=ne[1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do K(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(I,ie,I.bl_tree),oe--),K(I,w,I.bl_tree),$(I,oe-3,2)):oe<=10?(K(I,x,I.bl_tree),$(I,oe-3,3)):(K(I,O,I.bl_tree),$(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[F[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(I,ne,se,fe){var Z;for($(I,ne-257,5),$(I,se-1,5),$(I,fe-4,4),Z=0;Z<fe;Z++)$(I,I.bl_tree[F[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return a;if(I.dyn_ltree[18]!==0||I.dyn_ltree[20]!==0||I.dyn_ltree[26]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return a}var Q=!1;function le(I){Q||(me(),Q=!0),I.l_desc=new M(I.dyn_ltree,U),I.d_desc=new M(I.dyn_dtree,W),I.bl_desc=new M(I.bl_tree,H),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,fe){$(I,(n<<1)+(fe?1:0),3),ke(I,ne,se)}function he(I){$(I,s<<1,3),K(I,v,R),ae(I)}function Re(I,ne,se,fe){var Z,ie,T=0;I.level>0?(I.strm.data_type===o&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,fe):I.strategy===r||ie===Z?($(I,(s<<1)+(fe?1:0),3),Ee(I,R,L)):($(I,(d<<1)+(fe?1:0),3),Ye(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),fe&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(z[se]+c+1)*2]++,I.dyn_dtree[N(ne)*2]++),I.last_lit===I.lit_bufsize-1}return kt._tr_init=le,kt._tr_stored_block=ge,kt._tr_flush_block=Re,kt._tr_tally=Oe,kt._tr_align=he,kt}var kn,Ts;function hh(){if(Ts)return kn;Ts=1;function e(r,a,i,o){for(var t=r&65535|0,n=r>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+a[o++]|0,n=n+t|0;while(--s);t%=65521,n%=65521}return t|n<<16|0}return kn=e,kn}var jn,xs;function dh(){if(xs)return jn;xs=1;function e(){for(var i,o=[],t=0;t<256;t++){i=t;for(var n=0;n<8;n++)i=i&1?3988292384^i>>>1:i>>>1;o[t]=i}return o}var r=e();function a(i,o,t,n){var s=r,d=n+t;i^=-1;for(var f=n;f<d;f++)i=i>>>8^s[(i^o[f])&255];return i^-1}return jn=a,jn}var Ln,As;function gm(){return As||(As=1,Ln={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Ln}var Is;function vm(){if(Is)return ut;Is=1;var e=_n(),r=mm(),a=hh(),i=dh(),o=gm(),t=0,n=1,s=3,d=4,f=5,l=0,h=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,w=2,x=8,O=9,C=15,D=8,Y=29,F=256,S=F+1+Y,R=30,L=19,q=2*S+1,z=15,P=3,j=258,k=j+P+1,U=32,W=42,H=69,M=73,N=91,B=103,$=113,K=666,X=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=o[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){r._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var G=p.avail_in;return G>A&&(G=A),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=a(p.adler,te,G,re):p.state.wrap===2&&(p.adler=i(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,G,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Ue=xe[A+_e-1],Je=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(G=te,!(xe[G+_e]!==Je||xe[G+_e-1]!==Ue||xe[G]!==xe[A]||xe[++G]!==xe[A+1])){A+=2,G++;do;while(xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Ue=xe[A+_e-1],Je=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--A);A=te,re=A;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return X;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),X)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return X;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=r._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function Q(p,te){for(var re,A,G;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return X;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-P,A=r._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return X}else if(p.match_available){if(A=r._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return X}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=r._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function le(p,te){for(var re,A,G,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return X;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(G=p.strstart-1,A=_e[G],A===_e[++G]&&A===_e[++G]&&A===_e[++G])){ee=p.strstart+j;do;while(A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&G<ee);p.match_length=j-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=r._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return X;break}if(p.match_length=0,re=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function he(p,te,re,A,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=G}var Re;Re=[new he(0,0,0,0,Ye),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(z+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=w,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:$,p.adler=te.wrap===2?0:1,te.last_flush=t,r._tr_init(te),l)}function se(p){var te=ne(p);return te===l&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,l)}function Z(p,te,re,A,G,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),G<1||G>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=G+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<G+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,G,ee;if(!p||!p.state||te>f||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===K&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=H):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=$);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=U),_e+=31-_e%31,A.status=$,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===H)if(A.gzhead.extra){for(G=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=M)}else A.status=M;if(A.status===M)if(A.gzhead.name){G=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),ee===0&&(A.gzindex=0,A.status=N)}else A.status=N;if(A.status===N)if(A.gzhead.comment){G=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),ee===0&&(A.status=B)}else A.status=B;if(A.status===B&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=$)):A.status=$),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,l}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===K&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==K){var pe=A.strategy===u?ge(A,te):A.strategy===_?le(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=K),pe===X||pe===ue)return p.avail_out===0&&(A.last_flush=-1),l;if(pe===ae&&(te===n?r._tr_align(A):te!==f&&(r._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,l}return te!==d?l:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?l:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==H&&te!==M&&te!==N&&te!==B&&te!==$&&te!==K?we(p,c):(p.state=null,te===$?we(p,b):l))}function be(p,te){var re=te.length,A,G,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=a(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){G=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[G+P-1])&A.hash_mask,A.prev[G&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=G,G++;while(--ee);A.strstart=G,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,l}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,Cs;function ym(){if(Cs)return qn;Cs=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return qn=e,qn}var it={},Nn,Ps;function _m(){if(Ps)return Nn;Ps=1;var e=30,r=12;return Nn=function(i,o){var t,n,s,d,f,l,h,c,b,m,y,g,u,_,E,v,w,x,O,C,D,Y,F,S,R;t=i.state,n=i.next_in,S=i.input,s=n+(i.avail_in-5),d=i.next_out,R=i.output,f=d-(o-i.avail_out),l=d+(i.avail_out-257),h=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,w=(1<<t.distbits)-1;e:do{u<15&&(g+=S[n++]<<u,u+=8,g+=S[n++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[n++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[n++]<<u,u+=8,g+=S[n++]<<u,u+=8),x=E[g&w];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[n++]<<u,u+=8,u<O&&(g+=S[n++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-f,D>O){if(O=D-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,F=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}for(;C>2;)R[d++]=F[Y++],R[d++]=F[Y++],R[d++]=F[Y++],C-=3;C&&(R[d++]=F[Y++],C>1&&(R[d++]=F[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=r;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(n<s&&d<l);C=u>>3,n-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=n,i.next_out=d,i.avail_in=n<s?5+(s-n):5-(n-s),i.avail_out=d<l?257+(l-d):257-(d-l),t.hold=g,t.bits=u},Nn}var Dn,ks;function bm(){if(ks)return Dn;ks=1;var e=_n(),r=15,a=852,i=592,o=0,t=1,n=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Dn=function(c,b,m,y,g,u,_,E){var v=E.bits,w=0,x=0,O=0,C=0,D=0,Y=0,F=0,S=0,R=0,L=0,q,z,P,j,k,U=null,W=0,H,M=new e.Buf16(r+1),N=new e.Buf16(r+1),B=null,$=0,K,X,ae;for(w=0;w<=r;w++)M[w]=0;for(x=0;x<y;x++)M[b[m+x]]++;for(D=v,C=r;C>=1&&M[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&M[O]===0;O++);for(D<O&&(D=O),S=1,w=1;w<=r;w++)if(S<<=1,S-=M[w],S<0)return-1;if(S>0&&(c===o||C!==1))return-1;for(N[1]=0,w=1;w<r;w++)N[w+1]=N[w]+M[w];for(x=0;x<y;x++)b[m+x]!==0&&(_[N[b[m+x]]++]=x);if(c===o?(U=B=_,H=19):c===t?(U=s,W-=257,B=d,$-=257,H=256):(U=f,B=l,H=-1),L=0,x=0,w=O,k=u,Y=D,F=0,P=-1,R=1<<D,j=R-1,c===t&&R>a||c===n&&R>i)return 1;for(;;){K=w-F,_[x]<H?(X=0,ae=_[x]):_[x]>H?(X=B[$+_[x]],ae=U[W+_[x]]):(X=96,ae=0),q=1<<w-F,z=1<<Y,O=z;do z-=q,g[k+(L>>F)+z]=K<<24|X<<16|ae|0;while(z!==0);for(q=1<<w-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--M[w]===0){if(w===C)break;w=b[m+_[x]]}if(w>D&&(L&j)!==P){for(F===0&&(F=D),k+=O,Y=w-F,S=1<<Y;Y+F<C&&(S-=M[Y+F],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>a||c===n&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=w-F<<24|64<<16|0),E.bits=D,0},Dn}var js;function wm(){if(js)return it;js=1;var e=_n(),r=hh(),a=dh(),i=_m(),o=bm(),t=0,n=1,s=2,d=4,f=5,l=6,h=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,w=3,x=4,O=5,C=6,D=7,Y=8,F=9,S=10,R=11,L=12,q=13,z=14,P=15,j=16,k=17,U=18,W=19,H=20,M=21,N=22,B=23,$=24,K=25,X=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=Ye(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var le=!0,ge,he;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(o(n,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;o(s,Z.lens,0,32,he,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,G,ee,_e,de,pe,xe,vt,Le=0,Ie,Ue,Je,Xe,_r,br,Me,nt,Ge=new e.Buf8(4),yt,ht,vs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=q),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&G===35615){T.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0),G=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=G&512?S:L,G=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.flags=G,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=G>>8&1),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0,T.mode=w;case w:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=G),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,T.check=a(T.check,Ge,4,0)),G=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=G&255,T.head.os=G>>8),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length=G,T.head&&(T.head.extra_len=G),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=F;case F:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}G=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=T.check=$e(G),G=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,b;Z.adler=T.check=1,T.mode=L;case L:if(ie===f||ie===l)break e;case q:if(T.last){G>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(T.last=G&1,G>>>=1,ee-=1,G&3){case 0:T.mode=z;break;case 1:if(Re(T),T.mode=H,ie===l){G>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}G>>>=2,ee-=2;break;case z:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=G&65535,G=0,ee=0,T.mode=P,ie===l)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.nlen=(G&31)+257,G>>>=5,ee-=5,T.ndist=(G&31)+1,G>>>=5,ee-=5,T.ncode=(G&15)+4,G>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=U;case U:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.lens[vs[T.have++]]=G&7,G>>>=3,ee-=3}for(;T.have<19;)T.lens[vs[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=o(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[G&(1<<T.lenbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=Ie,ee-=Ie,T.lens[T.have++]=Je;else{if(Je===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ie,ee-=Ie,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ie,ee-=Ie,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=o(n,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=o(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=H,ie===l)break e;case H:T.mode=M;case M:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[G&(1<<T.lenbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=Ie,_r=Ue,br=Je;Le=T.lencode[br+((G&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Je,Ue===0){T.mode=X;break}if(Ue&32){T.back=-1,T.mode=L;break}if(Ue&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Ue&15,T.mode=N;case N:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=B;case B:for(;Le=T.distcode[G&(1<<T.distbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=Ie,_r=Ue,br=Je;Le=T.distcode[br+((G&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ie,ee-=Ie,T.back+=Ie,Ue&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Je,T.extra=Ue&15,T.mode=$;case $:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.offset+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=K;case K:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=M);break;case X:if(A===0)break e;be[te++]=T.length,A--,T.mode=M;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?a(T.check,be,de,te-de):r(T.check,be,de,te-de)),de=A,(T.flags?G:$e(G))!==T.check){Z.msg="incorrect data check",T.mode=me;break}G=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}G=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?a(T.check,be,de,Z.next_out-de):r(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===H||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function fe(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=r(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,Ls;function Em(){return Ls||(Ls=1,Mn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Mn}function Sm(){const{useDynamicConfig:e}=wt(),{configValue:r,isDynamicConfigLoading:a}=e(xt.creditAgentEnablement),i=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const t=Array.isArray(r?.allowedUserEmails)?r.allowedUserEmails:[];return i!=null&&t.includes(i)},[r,i]),isLoading:a}}function St(){const{isAllowed:e}=Sm();return e?Ap:Ip}const Rm={overlayWidth:new at(100,100,50)};function qs(){const e=Be(),r=We(),a=lr(),i=Ft(),o=St(),t=Se(F=>Df(F)),n=t.uiState.selectedCustomerTenantId,s=ce.useMemo(()=>n?t.customers.find(F=>F.tenantId===n):void 0,[t.customers,n]),d=Se(F=>n?Mf(F.aiAccountantCustomerState,F.userState,n):[]),f=t.customerViewStateByTenantId[n],l=f?.jobsFetchStatus??{fetchState:"Not-Started"},h=f?.jobsPageToken!=null;ce.useEffect(()=>{t.fetchState==="Completed"?r(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&r(ys())},[t.fetchState]);const c=F=>{const S=Pt(F),R=Bt(F);Fe.trackCockpitTabClicked(R),e(`../../${S}`,{replace:!0})},b=(F,S,R,L)=>{r(Nt([F.tenantId])),r(nn(S,R,L))},m=(F,S,R)=>{r(nn(F,S,R))},y=(F,S)=>{r(Nt(t.unonboardedTenantIds)),r(nn("retrain",F,S))},g=F=>{const S=t.selectedTenantIds,R=S.includes(F)?S.filter(L=>L!==F):[...S,F];r(Nt(R))},u=F=>{if(F.length===0)return;const S=t.selectedTenantIds,R=new Set(S);if(F.every(q=>R.has(q))){const q=new Set(F);r(Nt(S.filter(z=>!q.has(z))))}else{const q=Array.from(new Set([...S,...F]));r(Nt(q))}},_=()=>{r(Nt([]))},E=F=>{r(Ff(F.companyId,F.tenantId))},v=F=>{F==="aiAccountant"&&r(ys())},w=(F,S)=>{r(Jt({sortKey:F,sortOrder:S}))},x=F=>{r(Jt({selectedCustomerTenantId:F.tenantId})),r(on(F.tenantId))},O=()=>{r(Jt({selectedCustomerTenantId:""}))},C=F=>{r(Jt({filterText:F}))},D=(F,S)=>{r(Jt({filters:S}))},Y=()=>{n&&r(on(n,!0))};return V.jsxs(V.Fragment,{children:[V.jsx(Cp,{headerData:{allTabOptions:o,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:t},aiAccountantPageActions:{onAction:b,onBulkAction:m,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:v,onColumnSortConfigChanged:w,onCustomerSelected:x,onEvaluateAll:y,onFilterTextChanged:C,onFiltersChange:D,onToggleAllVisible:u,onToggleTenantSelection:g}}),V.jsx(hr,{anchor:"right",open:s!=null,PaperProps:{style:{width:Rm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:s!=null&&V.jsx(ah,{customer:s,hasMoreJobs:h,jobs:d,jobsFetchStatus:l,onAction:b,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:Y})})]})}function Om(){const{tenantId:e=""}=ot(),r=Be(),a=We(),i=Se(c=>fd(c.aiAccountantCustomerState,c.userState)),o=Se(c=>Df(c)),t=i.find(c=>c.tenantId===e),n=o.customerViewStateByTenantId[e],s=Se(c=>Mf(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{a(on(e))},[e,a]),t==null)return null;const d=(c,b,m,y)=>{a(Nt([c.tenantId])),a(nn(b,m,y))},f=c=>{a(Ff(c.companyId,c.tenantId))},l=()=>{r("../")},h=()=>{a(on(e,!0))};return V.jsx(ah,{customer:t,hasMoreJobs:n?.jobsPageToken!=null,jobs:s,jobsFetchStatus:n?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:f,onClose:l,onLoadMoreJobs:h})}const ph=(e,r)=>{const a=[...e??[]];return a.push(r),a},Tm=e=>{const r=[...e??[]];return{poppedPathname:r.pop(),newStack:r}},xm=(e=2)=>{let r="../";for(let a=0;a<e;a++)r=`${r}../`;return r},Pe=({state:e,element:r})=>He.isSignedIn()===!0?V.jsx(V.Fragment,{children:r}):V.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Am(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(qs,{})})}),V.jsx(Te,{path:"/detail/:tenantId",element:V.jsx(Pe,{element:V.jsx(Om,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(qs,{})})})]})}const Ut=()=>{const[e,r]=fh(),[a,i]=ce.useState(),o=ce.useRef(!1);return ce.useEffect(()=>{if(o.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const n=Pp(e);n!=null&&i(n);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),r(s,{replace:!0}),o.current=!0},[e,r]),a},Im={overlayWidth:new at(100,100,50)},{common:{strings:Ns}}=fr.getLocalizedStrings();function Cm(e,r){return{headerActions:{onTabChange:a=>{const i=Pt(a),o=Bt(a);Fe.trackCockpitTabClicked(o),r.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(wr({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(Ns.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(Ns.comma)}}),e(wr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Uf(a))},onColumnSortConfigChanged:(a,i)=>{e(wr({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Bf())},onFiltersChange:a=>{e(wr({uiState:{filters:a}}))}}}}function Pm(e,r){return{healthPageData:{healthView:r.healthView,managementView:r.managementView,mixpanelUrl:r.mixpanelHMUrl}}}const km=ze(Pm,Cm)(qp);function Fn({isDrawerOpen:e}){const r=Be(),a=We(),i=Ft(),o=lr(),{companyId:t}=ot(),[n,s]=fh(),[d,f]=ce.useState(!1),l=Ut(),h=St(),c=Se(w=>hd(w)),b=Se(w=>ur(w)),{additionalChurnFactors:m}=Se(w=>dd(w)),{selectedCompanyDetail:y,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(w=>w.companyViewState.zeniUsers.fetchState),E=Se(w=>w.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const w=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?a(It(!1)):w(c.fetchState)&&(a(Bf()),w(_)&&a(Ct()),w(E.fetchState)&&a(pd()))},[c.fetchState,E.fetchState]),ce.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&n.has("utm_source")===!0&&(a(Uf(t)),y!=null&&(kp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:y.companyInfo.companyId,companyName:y.companyInfo.name,churnProbability:y.companyHealthMetric.churnProbabilityPercentage??null}),f(!0),n.delete("utm_source"),s(n)))},[c.fetchState,y?.companyInfo.companyId,y?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return V.jsxs(V.Fragment,{children:[e===!0||g!=null&&y!=null?V.jsx(hr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Im.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(_s()),children:V.jsx(jp,{roomId:`cockpit_${g}`,autoConnect:!0,children:V.jsx(Lp,{onSaveClick:()=>{g!=null&&a(gd(g))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(md({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(_s()),analytics:Fe,urlSource:d,additionalChurnFactorsOptions:m})})}):null,V.jsx(km,{headerData:{allTabOptions:h,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:l??void 0,healthView:c,managementView:b,navigate:r,mixpanelHMUrl:mn.mixpanelHMUrl})]})}function jm(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/companies/:companyId",element:V.jsx(Pe,{element:V.jsx(Fn,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(Fn,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(Fn,{})})})]})}const Lm={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:r,drawerLeftMargin:a,children:i,onClose:o}=e,t=lr(),n=a?.valuePx(t)??Lm.drawerLeftMargin.valuePx(t),s=Ft();return V.jsx(hr,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${n})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const qm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?V.jsx(Nm,{children:V.jsx(gn,{size:"ExtraLarge",start:!0})}):null,Nm=tt.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-LQ97v_gY.js","assets/liveblocks-1rPyJrPS.js","assets/sentry-DnKCIlp7.js","assets/core-CjUOFtNP.js","assets/recharts-CHQcl4ep.js","assets/zeni-epic-state-BjcbtVhk.js","assets/index-DiBX-hv1.js","assets/mui-BRD3zvN1.js","assets/analytics-BHUwgbCp.js","assets/lottie-iG9PQglI.js","assets/lexical-D0-Opw0M.js","assets/utils-DmBc9W1c.js","assets/index-DcGIrthm.css","assets/analyticsHelper-C1KqLtzZ.js","assets/empty-CGqM-fQ6.js","assets/index-ibUWH8aZ.js","assets/url-CyApCW3Z.js","assets/index-D0y-AHOf.js"])))=>i.map(i=>d[i]);
2
+ import{Rk as Df,Rl as Mf,ls as It,f0 as ys,Rm as Nt,f9 as nn,e_ as Ff,Rn as Jt,f5 as on,Ro as fd,Rp as hd,Rq as ur,Rr as dd,jP as Bf,lu as Ct,jM as pd,jT as Uf,Rs as _s,jV as md,jW as gd,Rt as wr,Ru as cr,ji as vd,Rv as dn,Rw as Vo,dg as yd,gZ as $o,gW as sn,h2 as Mt,h0 as _d,Rx as Vf,Ry as $f,k8 as bd,k5 as wd,Rz as Ed,kj as Sd,ke as bs,kb as Rd,k0 as Od,RA as Td,eI as xd,dn as Ad,lG as zf,RB as Id,be as an,jZ as ws,k2 as Cd,A0 as Gf,lt as pn,RC as Hf,RD as pt,lR as un,lM as Zf,kD as zo,RE as Pd,lU as kd,H as et,bm as Go,RF as jd,jf as Ld,RG as qd,RH as Wf,RI as Nd,yk as Es,xS as Dd,RJ as Md,xY as An,RK as Fd,x_ as Bd,RL as Tt,xP as Ud,d4 as Vd,lx as Yf,ly as Jf,lw as Ho,lv as Zo,lz as $d,RM as zd,yn as Gd,RN as Hd,y4 as Zd,yh as Wd,RO as Yd,y8 as Jd,RP as Kd,RQ as Kt,RR as Wo,RS as Xd,RT as Qd,rZ as ep,s3 as Kf,RU as Xf,iM as tp,Qp as Qf,RV as rp,Qj as np,RW as ip,RX as ap,s6 as op,RY as sp,Qu as up,Qi as cp,BT as eh,RZ as In,R_ as th,N6 as Yo,MU as lp,N9 as rh,MX as fp,R$ as hp,N0 as dp,MO as pp,MR as mp,S0 as gp,Nd as vp,N3 as yp,bp as _p,bd as bp,S1 as wp,S2 as zt,S3 as Ep,S4 as Sp,S5 as Rp,kr as Mo,kn as Op,kx as Tp,kA as Ss,ba as nh}from"./zeni-epic-state-BjcbtVhk.js";import{j as V}from"./liveblocks-1rPyJrPS.js";import{a as ce,p as ye,d as ih,c as Jo,g as xp}from"./sentry-DnKCIlp7.js";import{W as wt,U as xt,z as He,c as Ap,h as Ip,o as lr,E as Ft,C as Cp,w as Et,$ as ah,a as at,b as Fe,d as Pt,g as Bt,q as Pp,u as kp,_ as jp,m as Lp,e as mn,f as qp,G as fr,s as gn,n as Dt,T as Np,i as Dp,A as vn,S as Mp,j as Fp,k as Cn,P as Bp,l as oh,y as Up,p as sh,N as uh,r as Fo,t as Vp,v as $p,x as zp,B as ch,D as Gp,F as Hp,H as Zp,I as Wp,J as Yp,K as Jp,L as Kp,M as Xp,O as Qp,Q as em,R as tm,V as rm,X as lh}from"./index-DiBX-hv1.js";import{f as nm}from"./analyticsHelper-C1KqLtzZ.js";import{i as Be,n as We,g as Se,o as ot,N as ir,k as gt,l as Te,p as fh,h as ze,u as Ko,j as Bo}from"./core-CjUOFtNP.js";import{D as hr,n as tt,S as Ht}from"./mui-BRD3zvN1.js";import{a as Ze,b as im,c as am,d as om,e as Xo,f as sm,g as um,h as cm,i as Zt,j as lm,k as or,l as yn,m as fm,n as dr,o as hm}from"./utils-DmBc9W1c.js";import{r as Qo}from"./empty-CGqM-fQ6.js";import{r as pr,a as dm}from"./index-ibUWH8aZ.js";import{r as pm}from"./index-D0y-AHOf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="741546be-ccc5-4454-a43b-a5f723ba8182",e._sentryDebugIdIdentifier="sentry-dbid-741546be-ccc5-4454-a43b-a5f723ba8182")}catch{}})();var Pn={},Rs;function _n(){return Rs||(Rs=1,(function(e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(t,n){return Object.prototype.hasOwnProperty.call(t,n)}e.assign=function(t){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var s=n.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)a(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,n){return t.length===n?t:t.subarray?t.subarray(0,n):(t.length=n,t)};var i={arraySet:function(t,n,s,d,f){if(n.subarray&&t.subarray){t.set(n.subarray(s,s+d),f);return}for(var l=0;l<d;l++)t[f+l]=n[s+l]},flattenChunks:function(t){var n,s,d,f,l,h;for(d=0,n=0,s=t.length;n<s;n++)d+=t[n].length;for(h=new Uint8Array(d),f=0,n=0,s=t.length;n<s;n++)l=t[n],h.set(l,f),f+=l.length;return h}},o={arraySet:function(t,n,s,d,f){for(var l=0;l<d;l++)t[f+l]=n[s+l]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)})(Pn)),Pn}var ut={},kt={},Os;function mm(){if(Os)return kt;Os=1;var e=_n(),r=4,a=0,i=1,o=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var n=0,s=1,d=2,f=3,l=258,h=29,c=256,b=c+1+h,m=30,y=19,g=2*b+1,u=15,_=16,E=7,v=256,w=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var z=new Array(l-f+1);t(z);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,fe,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=I&&I.length}var U,W,H;function M(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function N(I){return I<256?q[I]:q[256+(I>>>7)]}function B(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function $(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,B(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function K(I,ne,se){$(I,se[ne*2],se[ne*2+1])}function X(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(B(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,G,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>fe)&&(I.bl_count[A]++,G=0,te>=oe&&(G=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+G),ie&&(I.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>fe)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var fe=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=X(fe[oe]++,oe))}}function me(){var I,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<h-1;fe++)for(P[fe]=se,I=0;I<1<<C[fe];I++)z[se++]=fe;for(z[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(j[fe]=Z,I=0;I<1<<D[fe];I++)q[Z++]=fe;for(Z>>=7;fe<m;fe++)for(j[fe]=Z<<7,I=0;I<1<<D[fe]-7;I++)q[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=X(I,5);U=new k(R,C,c+1,b,u),W=new k(L,D,0,m,u),H=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?B(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,fe){Ce(I),B(I,se),B(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,fe){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&fe[ne]<=fe[se]}function Ae(I,ne,se){for(var fe=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,fe,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=fe}function Ee(I,ne,se){var fe,Z,ie=0,T,oe;if(I.last_lit!==0)do fe=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,fe===0?K(I,Z,ne):(T=z[Z],K(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],$(I,Z,oe)),fe--,T=N(fe),K(I,T,se),oe=D[T],oe!==0&&(fe-=j[T],$(I,fe,oe)));while(ie<I.last_lit);K(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=fe[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var fe,Z=-1,ie,T=ne[1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[w*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var fe,Z=-1,ie,T=ne[1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do K(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(I,ie,I.bl_tree),oe--),K(I,w,I.bl_tree),$(I,oe-3,2)):oe<=10?(K(I,x,I.bl_tree),$(I,oe-3,3)):(K(I,O,I.bl_tree),$(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[F[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(I,ne,se,fe){var Z;for($(I,ne-257,5),$(I,se-1,5),$(I,fe-4,4),Z=0;Z<fe;Z++)$(I,I.bl_tree[F[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return a;if(I.dyn_ltree[18]!==0||I.dyn_ltree[20]!==0||I.dyn_ltree[26]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return a}var Q=!1;function le(I){Q||(me(),Q=!0),I.l_desc=new M(I.dyn_ltree,U),I.d_desc=new M(I.dyn_dtree,W),I.bl_desc=new M(I.bl_tree,H),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,fe){$(I,(n<<1)+(fe?1:0),3),ke(I,ne,se)}function he(I){$(I,s<<1,3),K(I,v,R),ae(I)}function Re(I,ne,se,fe){var Z,ie,T=0;I.level>0?(I.strm.data_type===o&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,fe):I.strategy===r||ie===Z?($(I,(s<<1)+(fe?1:0),3),Ee(I,R,L)):($(I,(d<<1)+(fe?1:0),3),Ye(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),fe&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(z[se]+c+1)*2]++,I.dyn_dtree[N(ne)*2]++),I.last_lit===I.lit_bufsize-1}return kt._tr_init=le,kt._tr_stored_block=ge,kt._tr_flush_block=Re,kt._tr_tally=Oe,kt._tr_align=he,kt}var kn,Ts;function hh(){if(Ts)return kn;Ts=1;function e(r,a,i,o){for(var t=r&65535|0,n=r>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+a[o++]|0,n=n+t|0;while(--s);t%=65521,n%=65521}return t|n<<16|0}return kn=e,kn}var jn,xs;function dh(){if(xs)return jn;xs=1;function e(){for(var i,o=[],t=0;t<256;t++){i=t;for(var n=0;n<8;n++)i=i&1?3988292384^i>>>1:i>>>1;o[t]=i}return o}var r=e();function a(i,o,t,n){var s=r,d=n+t;i^=-1;for(var f=n;f<d;f++)i=i>>>8^s[(i^o[f])&255];return i^-1}return jn=a,jn}var Ln,As;function gm(){return As||(As=1,Ln={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Ln}var Is;function vm(){if(Is)return ut;Is=1;var e=_n(),r=mm(),a=hh(),i=dh(),o=gm(),t=0,n=1,s=3,d=4,f=5,l=0,h=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,w=2,x=8,O=9,C=15,D=8,Y=29,F=256,S=F+1+Y,R=30,L=19,q=2*S+1,z=15,P=3,j=258,k=j+P+1,U=32,W=42,H=69,M=73,N=91,B=103,$=113,K=666,X=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=o[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){r._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var G=p.avail_in;return G>A&&(G=A),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=a(p.adler,te,G,re):p.state.wrap===2&&(p.adler=i(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,G,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Ue=xe[A+_e-1],Je=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(G=te,!(xe[G+_e]!==Je||xe[G+_e-1]!==Ue||xe[G]!==xe[A]||xe[++G]!==xe[A+1])){A+=2,G++;do;while(xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&xe[++A]===xe[++G]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Ue=xe[A+_e-1],Je=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--A);A=te,re=A;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return X;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),X)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return X;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=r._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function Q(p,te){for(var re,A,G;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return X;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-P,A=r._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return X}else if(p.match_available){if(A=r._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return X}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=r._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function le(p,te){for(var re,A,G,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return X;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(G=p.strstart-1,A=_e[G],A===_e[++G]&&A===_e[++G]&&A===_e[++G])){ee=p.strstart+j;do;while(A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&A===_e[++G]&&G<ee);p.match_length=j-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=r._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return X;break}if(p.match_length=0,re=r._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return X}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?X:ae}function he(p,te,re,A,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=G}var Re;Re=[new he(0,0,0,0,Ye),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(z+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=w,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:$,p.adler=te.wrap===2?0:1,te.last_flush=t,r._tr_init(te),l)}function se(p){var te=ne(p);return te===l&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,l)}function Z(p,te,re,A,G,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),G<1||G>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=G+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<G+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,G,ee;if(!p||!p.state||te>f||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===K&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=H):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=$);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=U),_e+=31-_e%31,A.status=$,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===H)if(A.gzhead.extra){for(G=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=M)}else A.status=M;if(A.status===M)if(A.gzhead.name){G=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),ee===0&&(A.gzindex=0,A.status=N)}else A.status=N;if(A.status===N)if(A.gzhead.comment){G=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),je(p),G=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>G&&(p.adler=i(p.adler,A.pending_buf,A.pending-G,G)),ee===0&&(A.status=B)}else A.status=B;if(A.status===B&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=$)):A.status=$),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,l}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===K&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==K){var pe=A.strategy===u?ge(A,te):A.strategy===_?le(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=K),pe===X||pe===ue)return p.avail_out===0&&(A.last_flush=-1),l;if(pe===ae&&(te===n?r._tr_align(A):te!==f&&(r._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,l}return te!==d?l:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?l:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==H&&te!==M&&te!==N&&te!==B&&te!==$&&te!==K?we(p,c):(p.state=null,te===$?we(p,b):l))}function be(p,te){var re=te.length,A,G,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=a(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){G=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[G+P-1])&A.hash_mask,A.prev[G&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=G,G++;while(--ee);A.strstart=G,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,l}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,Cs;function ym(){if(Cs)return qn;Cs=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return qn=e,qn}var it={},Nn,Ps;function _m(){if(Ps)return Nn;Ps=1;var e=30,r=12;return Nn=function(i,o){var t,n,s,d,f,l,h,c,b,m,y,g,u,_,E,v,w,x,O,C,D,Y,F,S,R;t=i.state,n=i.next_in,S=i.input,s=n+(i.avail_in-5),d=i.next_out,R=i.output,f=d-(o-i.avail_out),l=d+(i.avail_out-257),h=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,w=(1<<t.distbits)-1;e:do{u<15&&(g+=S[n++]<<u,u+=8,g+=S[n++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[n++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[n++]<<u,u+=8,g+=S[n++]<<u,u+=8),x=E[g&w];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[n++]<<u,u+=8,u<O&&(g+=S[n++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-f,D>O){if(O=D-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,F=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,F=R}for(;C>2;)R[d++]=F[Y++],R[d++]=F[Y++],R[d++]=F[Y++],C-=3;C&&(R[d++]=F[Y++],C>1&&(R[d++]=F[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=r;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(n<s&&d<l);C=u>>3,n-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=n,i.next_out=d,i.avail_in=n<s?5+(s-n):5-(n-s),i.avail_out=d<l?257+(l-d):257-(d-l),t.hold=g,t.bits=u},Nn}var Dn,ks;function bm(){if(ks)return Dn;ks=1;var e=_n(),r=15,a=852,i=592,o=0,t=1,n=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Dn=function(c,b,m,y,g,u,_,E){var v=E.bits,w=0,x=0,O=0,C=0,D=0,Y=0,F=0,S=0,R=0,L=0,q,z,P,j,k,U=null,W=0,H,M=new e.Buf16(r+1),N=new e.Buf16(r+1),B=null,$=0,K,X,ae;for(w=0;w<=r;w++)M[w]=0;for(x=0;x<y;x++)M[b[m+x]]++;for(D=v,C=r;C>=1&&M[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&M[O]===0;O++);for(D<O&&(D=O),S=1,w=1;w<=r;w++)if(S<<=1,S-=M[w],S<0)return-1;if(S>0&&(c===o||C!==1))return-1;for(N[1]=0,w=1;w<r;w++)N[w+1]=N[w]+M[w];for(x=0;x<y;x++)b[m+x]!==0&&(_[N[b[m+x]]++]=x);if(c===o?(U=B=_,H=19):c===t?(U=s,W-=257,B=d,$-=257,H=256):(U=f,B=l,H=-1),L=0,x=0,w=O,k=u,Y=D,F=0,P=-1,R=1<<D,j=R-1,c===t&&R>a||c===n&&R>i)return 1;for(;;){K=w-F,_[x]<H?(X=0,ae=_[x]):_[x]>H?(X=B[$+_[x]],ae=U[W+_[x]]):(X=96,ae=0),q=1<<w-F,z=1<<Y,O=z;do z-=q,g[k+(L>>F)+z]=K<<24|X<<16|ae|0;while(z!==0);for(q=1<<w-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--M[w]===0){if(w===C)break;w=b[m+_[x]]}if(w>D&&(L&j)!==P){for(F===0&&(F=D),k+=O,Y=w-F,S=1<<Y;Y+F<C&&(S-=M[Y+F],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>a||c===n&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=w-F<<24|64<<16|0),E.bits=D,0},Dn}var js;function wm(){if(js)return it;js=1;var e=_n(),r=hh(),a=dh(),i=_m(),o=bm(),t=0,n=1,s=2,d=4,f=5,l=6,h=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,w=3,x=4,O=5,C=6,D=7,Y=8,F=9,S=10,R=11,L=12,q=13,z=14,P=15,j=16,k=17,U=18,W=19,H=20,M=21,N=22,B=23,$=24,K=25,X=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=Ye(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var le=!0,ge,he;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(o(n,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;o(s,Z.lens,0,32,he,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,G,ee,_e,de,pe,xe,vt,Le=0,Ie,Ue,Je,Xe,_r,br,Me,nt,Ge=new e.Buf8(4),yt,ht,vs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=q),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&G===35615){T.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0),G=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=G&512?S:L,G=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.flags=G,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=G>>8&1),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0,T.mode=w;case w:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=G),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,T.check=a(T.check,Ge,4,0)),G=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=G&255,T.head.os=G>>8),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length=G,T.head&&(T.head.extra_len=G),T.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,T.check=a(T.check,Ge,2,0)),G=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=a(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=F;case F:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}G=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=T.check=$e(G),G=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,b;Z.adler=T.check=1,T.mode=L;case L:if(ie===f||ie===l)break e;case q:if(T.last){G>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(T.last=G&1,G>>>=1,ee-=1,G&3){case 0:T.mode=z;break;case 1:if(Re(T),T.mode=H,ie===l){G>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}G>>>=2,ee-=2;break;case z:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=G&65535,G=0,ee=0,T.mode=P,ie===l)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.nlen=(G&31)+257,G>>>=5,ee-=5,T.ndist=(G&31)+1,G>>>=5,ee-=5,T.ncode=(G&15)+4,G>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=U;case U:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.lens[vs[T.have++]]=G&7,G>>>=3,ee-=3}for(;T.have<19;)T.lens[vs[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=o(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[G&(1<<T.lenbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=Ie,ee-=Ie,T.lens[T.have++]=Je;else{if(Je===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ie,ee-=Ie,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ie,ee-=Ie,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=o(n,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=o(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=H,ie===l)break e;case H:T.mode=M;case M:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[G&(1<<T.lenbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=Ie,_r=Ue,br=Je;Le=T.lencode[br+((G&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Je,Ue===0){T.mode=X;break}if(Ue&32){T.back=-1,T.mode=L;break}if(Ue&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Ue&15,T.mode=N;case N:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=B;case B:for(;Le=T.distcode[G&(1<<T.distbits)-1],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=Ie,_r=Ue,br=Je;Le=T.distcode[br+((G&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ie,ee-=Ie,T.back+=Ie,Ue&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Je,T.extra=Ue&15,T.mode=$;case $:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.offset+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=K;case K:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=M);break;case X:if(A===0)break e;be[te++]=T.length,A--,T.mode=M;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?a(T.check,be,de,te-de):r(T.check,be,de,te-de)),de=A,(T.flags?G:$e(G))!==T.check){Z.msg="incorrect data check",T.mode=me;break}G=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}G=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?a(T.check,be,de,Z.next_out-de):r(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===H||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function fe(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=r(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,Ls;function Em(){return Ls||(Ls=1,Mn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Mn}function Sm(){const{useDynamicConfig:e}=wt(),{configValue:r,isDynamicConfigLoading:a}=e(xt.creditAgentEnablement),i=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const t=Array.isArray(r?.allowedUserEmails)?r.allowedUserEmails:[];return i!=null&&t.includes(i)},[r,i]),isLoading:a}}function St(){const{isAllowed:e}=Sm();return e?Ap:Ip}const Rm={overlayWidth:new at(100,100,50)};function qs(){const e=Be(),r=We(),a=lr(),i=Ft(),o=St(),t=Se(F=>Df(F)),n=t.uiState.selectedCustomerTenantId,s=ce.useMemo(()=>n?t.customers.find(F=>F.tenantId===n):void 0,[t.customers,n]),d=Se(F=>n?Mf(F.aiAccountantCustomerState,F.userState,n):[]),f=t.customerViewStateByTenantId[n],l=f?.jobsFetchStatus??{fetchState:"Not-Started"},h=f?.jobsPageToken!=null;ce.useEffect(()=>{t.fetchState==="Completed"?r(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&r(ys())},[t.fetchState]);const c=F=>{const S=Pt(F),R=Bt(F);Fe.trackCockpitTabClicked(R),e(`../../${S}`,{replace:!0})},b=(F,S,R,L)=>{r(Nt([F.tenantId])),r(nn(S,R,L))},m=(F,S,R)=>{r(nn(F,S,R))},y=(F,S)=>{r(Nt(t.unonboardedTenantIds)),r(nn("retrain",F,S))},g=F=>{const S=t.selectedTenantIds,R=S.includes(F)?S.filter(L=>L!==F):[...S,F];r(Nt(R))},u=F=>{if(F.length===0)return;const S=t.selectedTenantIds,R=new Set(S);if(F.every(q=>R.has(q))){const q=new Set(F);r(Nt(S.filter(z=>!q.has(z))))}else{const q=Array.from(new Set([...S,...F]));r(Nt(q))}},_=()=>{r(Nt([]))},E=F=>{r(Ff(F.companyId,F.tenantId))},v=F=>{F==="aiAccountant"&&r(ys())},w=(F,S)=>{r(Jt({sortKey:F,sortOrder:S}))},x=F=>{r(Jt({selectedCustomerTenantId:F.tenantId})),r(on(F.tenantId))},O=()=>{r(Jt({selectedCustomerTenantId:""}))},C=F=>{r(Jt({filterText:F}))},D=(F,S)=>{r(Jt({filters:S}))},Y=()=>{n&&r(on(n,!0))};return V.jsxs(V.Fragment,{children:[V.jsx(Cp,{headerData:{allTabOptions:o,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:t},aiAccountantPageActions:{onAction:b,onBulkAction:m,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:v,onColumnSortConfigChanged:w,onCustomerSelected:x,onEvaluateAll:y,onFilterTextChanged:C,onFiltersChange:D,onToggleAllVisible:u,onToggleTenantSelection:g}}),V.jsx(hr,{anchor:"right",open:s!=null,PaperProps:{style:{width:Rm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:s!=null&&V.jsx(ah,{customer:s,hasMoreJobs:h,jobs:d,jobsFetchStatus:l,onAction:b,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:Y})})]})}function Om(){const{tenantId:e=""}=ot(),r=Be(),a=We(),i=Se(c=>fd(c.aiAccountantCustomerState,c.userState)),o=Se(c=>Df(c)),t=i.find(c=>c.tenantId===e),n=o.customerViewStateByTenantId[e],s=Se(c=>Mf(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{a(on(e))},[e,a]),t==null)return null;const d=(c,b,m,y)=>{a(Nt([c.tenantId])),a(nn(b,m,y))},f=c=>{a(Ff(c.companyId,c.tenantId))},l=()=>{r("../")},h=()=>{a(on(e,!0))};return V.jsx(ah,{customer:t,hasMoreJobs:n?.jobsPageToken!=null,jobs:s,jobsFetchStatus:n?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:f,onClose:l,onLoadMoreJobs:h})}const ph=(e,r)=>{const a=[...e??[]];return a.push(r),a},Tm=e=>{const r=[...e??[]];return{poppedPathname:r.pop(),newStack:r}},xm=(e=2)=>{let r="../";for(let a=0;a<e;a++)r=`${r}../`;return r},Pe=({state:e,element:r})=>He.isSignedIn()===!0?V.jsx(V.Fragment,{children:r}):V.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Am(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(qs,{})})}),V.jsx(Te,{path:"/detail/:tenantId",element:V.jsx(Pe,{element:V.jsx(Om,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(qs,{})})})]})}const Ut=()=>{const[e,r]=fh(),[a,i]=ce.useState(),o=ce.useRef(!1);return ce.useEffect(()=>{if(o.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const n=Pp(e);n!=null&&i(n);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),r(s,{replace:!0}),o.current=!0},[e,r]),a},Im={overlayWidth:new at(100,100,50)},{common:{strings:Ns}}=fr.getLocalizedStrings();function Cm(e,r){return{headerActions:{onTabChange:a=>{const i=Pt(a),o=Bt(a);Fe.trackCockpitTabClicked(o),r.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(wr({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(Ns.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(Ns.comma)}}),e(wr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Uf(a))},onColumnSortConfigChanged:(a,i)=>{e(wr({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Bf())},onFiltersChange:a=>{e(wr({uiState:{filters:a}}))}}}}function Pm(e,r){return{healthPageData:{healthView:r.healthView,managementView:r.managementView,mixpanelUrl:r.mixpanelHMUrl}}}const km=ze(Pm,Cm)(qp);function Fn({isDrawerOpen:e}){const r=Be(),a=We(),i=Ft(),o=lr(),{companyId:t}=ot(),[n,s]=fh(),[d,f]=ce.useState(!1),l=Ut(),h=St(),c=Se(w=>hd(w)),b=Se(w=>ur(w)),{additionalChurnFactors:m}=Se(w=>dd(w)),{selectedCompanyDetail:y,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(w=>w.companyViewState.zeniUsers.fetchState),E=Se(w=>w.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const w=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?a(It(!1)):w(c.fetchState)&&(a(Bf()),w(_)&&a(Ct()),w(E.fetchState)&&a(pd()))},[c.fetchState,E.fetchState]),ce.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&n.has("utm_source")===!0&&(a(Uf(t)),y!=null&&(kp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:y.companyInfo.companyId,companyName:y.companyInfo.name,churnProbability:y.companyHealthMetric.churnProbabilityPercentage??null}),f(!0),n.delete("utm_source"),s(n)))},[c.fetchState,y?.companyInfo.companyId,y?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return V.jsxs(V.Fragment,{children:[e===!0||g!=null&&y!=null?V.jsx(hr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Im.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(_s()),children:V.jsx(jp,{roomId:`cockpit_${g}`,autoConnect:!0,children:V.jsx(Lp,{onSaveClick:()=>{g!=null&&a(gd(g))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(md({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(_s()),analytics:Fe,urlSource:d,additionalChurnFactorsOptions:m})})}):null,V.jsx(km,{headerData:{allTabOptions:h,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:l??void 0,healthView:c,managementView:b,navigate:r,mixpanelHMUrl:mn.mixpanelHMUrl})]})}function jm(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/companies/:companyId",element:V.jsx(Pe,{element:V.jsx(Fn,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(Fn,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(Fn,{})})})]})}const Lm={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:r,drawerLeftMargin:a,children:i,onClose:o}=e,t=lr(),n=a?.valuePx(t)??Lm.drawerLeftMargin.valuePx(t),s=Ft();return V.jsx(hr,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${n})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const qm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?V.jsx(Nm,{children:V.jsx(gn,{size:"ExtraLarge",start:!0})}):null,Nm=tt.div`
3
3
  display: flex;
4
4
  width: 100%;
5
5
  height: 100%;
@@ -177,4 +177,4 @@ Found: ${a.toString().split(`
177
177
  `;function $_(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/report/:companyId",element:V.jsx(Pe,{element:V.jsx(No,{})})}),V.jsx(Te,{path:"/warnings/:companyId",element:V.jsx(Pe,{element:V.jsx(No,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(No,{})})})]})}function z_(e,r){const a=th(e,r.tenantId),i=a.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:a,isDisabled:i}}function G_(e,r){const{tenantId:a,companyId:i,location:o,navigate:t}=r;return{onSubscriptionDetailsChanged:n=>{const{addPlan:s,invoiceOption:d}=n,{subscriptionPlan:f,recurringAddOns:l,coupon:h}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:d.invoicingOption!=null};s.planStartDate!=null&&(c.startDate=an(s.planStartDate.toString())),e(rh({tenantId:a,subscriptionData:c}))},onEstimateSuccess:()=>{const n=ph(o.state?.pathnameStackToGoBack,o.pathname);t(`../tenants/${a}/companies/${i}/summary`,{state:{pathnameStackToGoBack:n}})},onReviewClick:()=>{e(lp(a))},onBackClick:()=>{t(`../tenants/${a}/companies/${i}`)},onResetClick:()=>{e(Yo(a))}}}const H_=ze(z_,G_)(Kp),Z_=e=>{const{tenantId:r,companyId:a,location:i,navigate:o}=e;return V.jsx(H_,{tenantId:r,companyId:a,location:i,navigate:o})};function W_(e,r){const{companyId:a,tenantId:i}=r,o=hp(e,a,i),t=o.fetchState!=="In-Progress";return{subscriptionDetailView:o,canUpdate:t}}function Y_(e,r){const{tenantId:a,location:i,navigate:o}=r;return{onUpdateOrAddPlanClick:t=>{e(Yo(a,t)),e(dp()),e(pp()),e(mp()),t!=null?o(`${i.pathname}/update`):o(`${i.pathname}/add`)},onCloseClick:()=>{o("../")}}}const J_=ze(W_,Y_)(Xp),K_=e=>{const{tenantId:r,companyId:a,location:i,navigate:o}=e,t=We(),[n,s]=ce.useState(!1),d=Se(f=>f.subscriptionViewState.subscriptionDetailsByCompanyId[a]?.fetchStatus);return ce.useEffect(()=>{!n&&(d==null||d?.fetchState==="Not-Started")&&(s(!0),t(fp(a)))},[n,d,a,t]),ce.useEffect(()=>{n&&d!=null&&d?.fetchState==="Error"&&o("../subscription")},[n,d]),V.jsx(J_,{tenantId:r,companyId:a,location:i,navigate:o})};function X_(e,r){return{subscriptionEstimateData:gp(e,r.tenantId)}}function Q_(e,r){const{tenantId:a,companyId:i,location:o,navigate:t}=r,n=()=>{const s=Tm(o.state?.pathnameStackToGoBack),d=s.poppedPathname??xm(1);t(d,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{n()},onCancelClick:()=>{n()},onConfirmClick:()=>{e(vp(a))},onConfirmSuccess:()=>{t(`../tenants/${a}/companies/${i}`)}}}const eb=ze(X_,Q_)(Qp),tb=e=>{const{tenantId:r,companyId:a,location:i,navigate:o}=e;return V.jsx(eb,{companyId:a,tenantId:r,location:i,navigate:o})};function rb(e,r){const a=th(e,r.tenantId),i=a.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:a,isDisabled:i}}function nb(e,r){const{tenantId:a,companyId:i,location:o,navigate:t}=r;return{onSubscriptionDetailsChanged:n=>{const{updatePlan:s,applyChanges:d}=n,{subscriptionPlan:f,recurringAddOns:l,coupon:h}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:d.changeType==="applyEndOfTerm",shouldProrate:d.shouldProrate};e(rh({tenantId:a,subscriptionData:c}))},onEstimateSuccess:()=>{const n=ph(o.state?.pathnameStackToGoBack,o.pathname);t(`../tenants/${a}/companies/${i}/summary`,{state:{pathnameStackToGoBack:n}})},onReviewClick:()=>{e(yp(a))},onBackClick:()=>{t(`../tenants/${a}/companies/${i}`)},onResetClick:n=>{e(Yo(a,n.subscription.subscription.subscriptionId))}}}const ib=ze(rb,nb)(em),ab=e=>{const{tenantId:r,companyId:a,location:i,navigate:o}=e;return V.jsx(ib,{tenantId:r,companyId:a,location:i,navigate:o})},ld=["add","update","summary"],ob=e=>bp(e,ld),sb=e=>_p(e,ld),ub=()=>{const[e,r]=ce.useState(!0),{tenantId:a,companyId:i,updatePageType:o}=ot(),t=Be(),n=Se(d=>a!=null?d.subscriptionViewState.subscriptionUpdateViewDataByTenantId[a]:null);if(He.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return ce.useEffect(()=>{(n==null&&o!=null||sb(o??"")==null)&&t(`../tenants/${a}/companies/${i}`)},[n]),V.jsx(mr,{isOpen:e,onClose:()=>{r(!1),t("../subscription")},children:V.jsx(lb,{children:V.jsx(cb,{tenantId:a,companyId:i,updatePageType:o!=null?ob(o):void 0})})})},cb=({tenantId:e,companyId:r,updatePageType:a})=>{const i=Be(),o=Ko(),t={tenantId:e,companyId:r,navigate:i,location:o};if(a==null)return V.jsx(K_,{...t});switch(a){case"update":return V.jsx(ab,{...t});case"add":return V.jsx(Z_,{...t});case"summary":return V.jsx(tb,{...t});default:return console.error("Subscription Update Page - Invalid Url"),V.jsx(ir,{to:"/",replace:!0})}},lb=tt(Ht)`
178
178
  display: flex;
179
179
  min-height: 100%;
180
- `;function fb(e,r){return{headerActions:{onTabChange:a=>{const i=Pt(a),o=Bt(a);Fe.trackCockpitTabClicked(o),r.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(zt({filterText:i}))},onFiltersChange:(a,i)=>{e(zt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(a,i)=>{e(zt({sortKey:a,sortOrder:i}))},onCollapseToggled:(a,i)=>{e(zt({isRowCollapseToggled:{companyId:a,isCollapsed:i}}))},onScroll:a=>{e(zt({scrollYOffset:a}))},changeHandlers:(a,i)=>{const o=pb(i);Object.keys(o).length>0&&e(zo(a,o))},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(a,i)=>{e(Ep({tenantId:i})),r.navigate(`../tenants/${i}/companies/${a}`)},onFiltersChange:(a,i)=>{e(zt({filters:i}))},onCockpitReloadData:a=>{a==="subscription"&&e(Zo())}}}}function hb(e,r){return{subscriptionPageData:{loggedInUser:r.signedInUser,subscriptionView:r.subscriptionView}}}const db=ze(hb,fb)(tm);function Do({isDrawerOpen:e}){const r=Be(),a=We(),i=Ut(),o=St(),t=Se(d=>wp(d)),n=Se(d=>d.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{t.fetchState==="Completed"?a(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(a(Zo()),(n==="Not-Started"||n==="Error")&&a(Ct()))},[t.fetchState]);const s=He.getSignedInUser();return V.jsxs(V.Fragment,{children:[e===!0?V.jsx(ub,{}):null,V.jsx(db,{headerData:{allTabOptions:o,selectedTabOption:Et("subscription")},initialOpenThreadRequest:i??void 0,signedInUser:s,subscriptionView:t,navigate:r})]})}const pb=e=>{const{users:r}=e;return r?{users:r}:{}};function mb(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:V.jsx(Pe,{element:V.jsx(Do,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:V.jsx(Pe,{element:V.jsx(Do,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(Do,{})})})]})}function gb(e,r){const{navigate:a}=r;return{headerActions:{onTabChange:i=>{const o=Pt(i);a(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(i,o)=>{e(Ss({filterText:o}))},onFiltersChange:(i,o)=>{e(Ss({filters:o}))}}},taskManagerPageActions:{onRowClick:(i,o)=>{window.open(`/${i}/tasks/${o}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(Mo(0,"dueDate","descending",!1))},onFetchTaskManagerView:(i,o,t,n,s,d)=>{e(Mo(i,o,t,n,s,d))}}}}function vb(e,r){return{isBirdsEyeViewEnabled:r.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:r.companyTaskManagerView}}}const yb=ze(vb,gb)(rm);function qf(){const e=Be(),r=We(),a=Ut(),i=St(),{useFeatureGate:o}=wt(),{isFeatureEnabled:t}=o(vn.isBirdsEyeViewEnabled),n=Se(h=>Sp(h)),s=Se(h=>Rp(h)),d=Se(h=>h.companyViewState.zeniUsers.fetchState);if(ce.useEffect(()=>{n.fetchState==="Completed"?r(It(!1)):n.fetchState==="Not-Started"&&(r(Mo(0,"dueDate","descending",!1)),r(Op()),(d==="Not-Started"||d==="Error")&&r(Ct()))},[n.fetchState]),ce.useEffect(()=>{t&&(n.metricsFetchState==="Not-Started"||n.metricsFetchState==="Error")&&r(Tp())},[t,n.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");const l=ce.useMemo(()=>({allTabOptions:i,selectedTabOption:Et("taskManager")}),[i]);return V.jsx(yb,{headerData:l,companyTaskManagerView:n,isBirdsEyeViewEnabled:t,initialOpenThreadRequest:a,navigate:e,reviewCount:s})}function _b(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(qf,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(qf,{})})})]})}const bb=lh(()=>nh(()=>import("./CreditAgentRoutes-B9qoucdM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])));let Nf=!1;const wb=lh(()=>nh(()=>Promise.resolve().then(()=>Qm),void 0));function Eb(){const e=He.getSignedInUser(),r=Ft().mode;return ce.useEffect(()=>{He.isSignedIn()&&!Nf&&e!=null&&(nm(e,r),Nf=!0)},[e]),V.jsxs(gt,{children:[V.jsx(Te,{path:"/ai-accountant/*",element:V.jsx(Am,{})}),V.jsx(Te,{path:"/management/*",element:V.jsx(og,{})}),V.jsx(Te,{path:"/subscription/*",element:V.jsx(mb,{})}),V.jsx(Te,{path:"/onboarding/*",element:V.jsx(__,{})}),V.jsx(Te,{path:"/portfolio/*",element:V.jsx(S_,{})}),V.jsx(Te,{path:"/audit/*",element:V.jsx($_,{})}),V.jsx(Te,{path:"/reconciliation/*",element:V.jsx(j_,{})}),V.jsx(Te,{path:"/health-monitor/*",element:V.jsx(jm,{})}),V.jsx(Te,{path:"/task-manager/*",element:V.jsx(_b,{})}),V.jsx(Te,{path:"/credit-agent/*",element:V.jsx(bb,{})}),V.jsx(Te,{path:"/*",element:V.jsx(wb,{})})]})}const Lb=Object.freeze(Object.defineProperty({__proto__:null,default:Eb},Symbol.toStringTag,{value:"Module"}));export{Pe as P,Lb as S,Sm as u};
180
+ `;function fb(e,r){return{headerActions:{onTabChange:a=>{const i=Pt(a),o=Bt(a);Fe.trackCockpitTabClicked(o),r.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(zt({filterText:i}))},onFiltersChange:(a,i)=>{e(zt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(a,i)=>{e(zt({sortKey:a,sortOrder:i}))},onCollapseToggled:(a,i)=>{e(zt({isRowCollapseToggled:{companyId:a,isCollapsed:i}}))},onScroll:a=>{e(zt({scrollYOffset:a}))},changeHandlers:(a,i)=>{const o=pb(i);Object.keys(o).length>0&&e(zo(a,o))},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(a,i)=>{e(Ep({tenantId:i})),r.navigate(`../tenants/${i}/companies/${a}`)},onFiltersChange:(a,i)=>{e(zt({filters:i}))},onCockpitReloadData:a=>{a==="subscription"&&e(Zo())}}}}function hb(e,r){return{subscriptionPageData:{loggedInUser:r.signedInUser,subscriptionView:r.subscriptionView}}}const db=ze(hb,fb)(tm);function Do({isDrawerOpen:e}){const r=Be(),a=We(),i=Ut(),o=St(),t=Se(d=>wp(d)),n=Se(d=>d.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{t.fetchState==="Completed"?a(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(a(Zo()),(n==="Not-Started"||n==="Error")&&a(Ct()))},[t.fetchState]);const s=He.getSignedInUser();return V.jsxs(V.Fragment,{children:[e===!0?V.jsx(ub,{}):null,V.jsx(db,{headerData:{allTabOptions:o,selectedTabOption:Et("subscription")},initialOpenThreadRequest:i??void 0,signedInUser:s,subscriptionView:t,navigate:r})]})}const pb=e=>{const{users:r}=e;return r?{users:r}:{}};function mb(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:V.jsx(Pe,{element:V.jsx(Do,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:V.jsx(Pe,{element:V.jsx(Do,{isDrawerOpen:!0})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(Do,{})})})]})}function gb(e,r){const{navigate:a}=r;return{headerActions:{onTabChange:i=>{const o=Pt(i);a(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(i,o)=>{e(Ss({filterText:o}))},onFiltersChange:(i,o)=>{e(Ss({filters:o}))}}},taskManagerPageActions:{onRowClick:(i,o)=>{window.open(`/${i}/tasks/${o}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(Mo(0,"dueDate","descending",!1))},onFetchTaskManagerView:(i,o,t,n,s,d)=>{e(Mo(i,o,t,n,s,d))}}}}function vb(e,r){return{isBirdsEyeViewEnabled:r.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:r.companyTaskManagerView}}}const yb=ze(vb,gb)(rm);function qf(){const e=Be(),r=We(),a=Ut(),i=St(),{useFeatureGate:o}=wt(),{isFeatureEnabled:t}=o(vn.isBirdsEyeViewEnabled),n=Se(h=>Sp(h)),s=Se(h=>Rp(h)),d=Se(h=>h.companyViewState.zeniUsers.fetchState);if(ce.useEffect(()=>{n.fetchState==="Completed"?r(It(!1)):n.fetchState==="Not-Started"&&(r(Mo(0,"dueDate","descending",!1)),r(Op()),(d==="Not-Started"||d==="Error")&&r(Ct()))},[n.fetchState]),ce.useEffect(()=>{t&&(n.metricsFetchState==="Not-Started"||n.metricsFetchState==="Error")&&r(Tp())},[t,n.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");const l=ce.useMemo(()=>({allTabOptions:i,selectedTabOption:Et("taskManager")}),[i]);return V.jsx(yb,{headerData:l,companyTaskManagerView:n,isBirdsEyeViewEnabled:t,initialOpenThreadRequest:a,navigate:e,reviewCount:s})}function _b(){return V.jsxs(gt,{children:[V.jsx(Te,{path:"/",element:V.jsx(Pe,{element:V.jsx(qf,{})})}),V.jsx(Te,{path:"/*",element:V.jsx(Pe,{element:V.jsx(qf,{})})})]})}const bb=lh(()=>nh(()=>import("./CreditAgentRoutes-LQ97v_gY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])));let Nf=!1;const wb=lh(()=>nh(()=>Promise.resolve().then(()=>Qm),void 0));function Eb(){const e=He.getSignedInUser(),r=Ft().mode;return ce.useEffect(()=>{He.isSignedIn()&&!Nf&&e!=null&&(nm(e,r),Nf=!0)},[e]),V.jsxs(gt,{children:[V.jsx(Te,{path:"/ai-accountant/*",element:V.jsx(Am,{})}),V.jsx(Te,{path:"/management/*",element:V.jsx(og,{})}),V.jsx(Te,{path:"/subscription/*",element:V.jsx(mb,{})}),V.jsx(Te,{path:"/onboarding/*",element:V.jsx(__,{})}),V.jsx(Te,{path:"/portfolio/*",element:V.jsx(S_,{})}),V.jsx(Te,{path:"/audit/*",element:V.jsx($_,{})}),V.jsx(Te,{path:"/reconciliation/*",element:V.jsx(j_,{})}),V.jsx(Te,{path:"/health-monitor/*",element:V.jsx(jm,{})}),V.jsx(Te,{path:"/task-manager/*",element:V.jsx(_b,{})}),V.jsx(Te,{path:"/credit-agent/*",element:V.jsx(bb,{})}),V.jsx(Te,{path:"/*",element:V.jsx(wb,{})})]})}const Lb=Object.freeze(Object.defineProperty({__proto__:null,default:Eb},Symbol.toStringTag,{value:"Module"}));export{Pe as P,Lb as S,Sm as u};
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-1rPyJrPS.js";import{a as u,R as S,n as m}from"./sentry-DnKCIlp7.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-CjUOFtNP.js";import{z as l,E,G as C,b as v,r as U,Y as T,e as p}from"./index-7-X9ZJj6.js";import{S6 as x,S7 as L,S8 as z,S9 as D,bm as f}from"./zeni-epic-state-BjcbtVhk.js";import{f as N}from"./analyticsHelper-BguNWp-6.js";import"./recharts-CHQcl4ep.js";import"./mui-BRD3zvN1.js";import"./analytics-BHUwgbCp.js";import"./lottie-iG9PQglI.js";import"./lexical-D0-Opw0M.js";import"./utils-DmBc9W1c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ba23cf80-3700-4518-88af-ea97bd670fc9",e._sentryDebugIdIdentifier="sentry-dbid-ba23cf80-3700-4518-88af-ea97bd670fc9")}catch{}})();function A(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{m({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(D({authCode:n,oauthProvider:t,appType:"web",redirectUri:f(s),sourceUri:f(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const P=y(A,k)(T),_=S.memo(P);function W(){const e=I(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),N(t,s),setTimeout(()=>{v.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{W as default};
1
+ import{j as d}from"./liveblocks-1rPyJrPS.js";import{a as u,R as S,n as m}from"./sentry-DnKCIlp7.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-CjUOFtNP.js";import{z as l,E,G as C,b as v,r as U,Y as T,e as p}from"./index-DiBX-hv1.js";import{S6 as x,S7 as L,S8 as z,S9 as D,bm as f}from"./zeni-epic-state-BjcbtVhk.js";import{f as N}from"./analyticsHelper-C1KqLtzZ.js";import"./recharts-CHQcl4ep.js";import"./mui-BRD3zvN1.js";import"./analytics-BHUwgbCp.js";import"./lottie-iG9PQglI.js";import"./lexical-D0-Opw0M.js";import"./utils-DmBc9W1c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ba23cf80-3700-4518-88af-ea97bd670fc9",e._sentryDebugIdIdentifier="sentry-dbid-ba23cf80-3700-4518-88af-ea97bd670fc9")}catch{}})();function A(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{m({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(D({authCode:n,oauthProvider:t,appType:"web",redirectUri:f(s),sourceUri:f(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const P=y(A,k)(T),_=S.memo(P);function W(){const e=I(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),N(t,s),setTimeout(()=>{v.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{W as default};
@@ -1 +1 @@
1
- import{b as n}from"./index-7-X9ZJj6.js";import"./sentry-DnKCIlp7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="f169a9a5-fc15-4fb3-85ae-a05a26e356dd",a._sentryDebugIdIdentifier="sentry-dbid-f169a9a5-fc15-4fb3-85ae-a05a26e356dd")}catch{}})();const t=(a,i,e,d)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{t as f};
1
+ import{b as n}from"./index-DiBX-hv1.js";import"./sentry-DnKCIlp7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="f169a9a5-fc15-4fb3-85ae-a05a26e356dd",a._sentryDebugIdIdentifier="sentry-dbid-f169a9a5-fc15-4fb3-85ae-a05a26e356dd")}catch{}})();const t=(a,i,e,d)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{t as f};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-DIiz3tVc.js","assets/sentry-DnKCIlp7.js","assets/empty-CGqM-fQ6.js","assets/index-CdOmOrCq.js","assets/index-ibUWH8aZ.js","assets/zeni-epic-state-BjcbtVhk.js","assets/core-CjUOFtNP.js","assets/utils-DmBc9W1c.js","assets/recharts-CHQcl4ep.js","assets/url-CyApCW3Z.js","assets/index-BRCfM85b.js","assets/index-D0y-AHOf.js","assets/url-Bv6R7pEO.js","assets/index-Cs6eGSj4.js","assets/ScreenRoutes-DdbAz88l.js","assets/liveblocks-1rPyJrPS.js","assets/analyticsHelper-BguNWp-6.js","assets/mui-BRD3zvN1.js","assets/SignInScreen-B78SkdbK.js","assets/analytics-BHUwgbCp.js","assets/lottie-iG9PQglI.js","assets/lexical-D0-Opw0M.js"])))=>i.map(i=>d[i]);
2
- import{a as g,R as $,e as $Je,b as T4,p as F0,r as Dc,g as hZ,d as Bre,f as kJe,s as Pre,w as SJe,i as EJe,S as LJe,j as IJe,k as jJe,l as MJe,m as BJe}from"./sentry-DnKCIlp7.js";import{j as Ao,_ as rke,a as Ad,u as ike,T as PJe,C as DJe,b as TJe,c as Aj,d as $j,e as zJe,f as RJe,g as nke,h as FJe,i as OJe,L as NJe,k as Dre,l as HJe,m as _Je,n as VJe,P as QJe,o as UJe,p as WJe,q as ake,r as GJe,s as YJe,I as Tre,t as KJe,v as qJe,w as ZJe,x as JJe,y as XJe,z as eXe,A as ske,B as tXe,D as oXe,E as rXe}from"./liveblocks-1rPyJrPS.js";import{f as lke,R as n4,r as Fn,P as Dn,u as kj,g as yh,h as iXe,i as mZ,j as nXe,k as aXe,l as ST,N as sXe,m as lXe,n as cXe,B as dXe}from"./core-CjUOFtNP.js";import{H as BE,ba as a4,bb as pXe,bc as zre,bd as t5,be as br,bf as cke,bg as Wr,bh as Sj,bi as uXe,bj as Dh,bk as hXe,bl as mXe,bm as S8,bn as gg,bo as b9,bp as dke,bq as gXe,br as J1,bs as pke,bt as fXe,bu as gZ,bv as uke,bw as ln,bx as E8,by as Gu,bz as Rre,bA as xXe,bB as yXe,bC as PE,bD as JW,bE as bXe,bF as wXe,bG as vXe,bH as CXe,bI as fZ,bJ as hke,bK as AXe,bL as Zb,bM as $Xe,bN as mke,bO as XW,bP as Fre,bQ as Ore,bR as Nre,bS as zl,bT as xZ,bU as gke,bV as fke,bW as yZ,bX as w9,bY as Ej,bZ,b_ as wZ,b$ as vZ,c0 as CZ,c1 as kXe,c2 as Lj,c3 as cp,c4 as dp,c5 as DE,c6 as xke,c7 as yke,c8 as SXe,c9 as AZ,ca as $Z,cb as EXe,cc as LXe,cd as op,ce as zv,cf as Rv,cg as IXe,ch as jXe,ci as MXe,cj as BXe,ck as PXe,cl as DXe,cm as TXe,cn as kA,co as bke,cp as wke,cq as zXe,cr as RXe,cs as vke,ct as Cke,cu as FXe,cv as OXe,cw as NXe,cx as Ake,cy as $ke,cz as HXe,cA as _Xe,cB as kke,cC as Ske,cD as VXe,cE as Hre,cF as QXe,cG as UXe,cH as jw,cI as WXe,cJ as Eke,cK as GXe,cL as Lke,cM as YXe,cN as _re,cO as KXe,cP as Ike,cQ as jke,cR as Mke,cS as Bke,cT as Pke,cU as qXe,cV as Dke,cW as ZXe,cX as JXe,cY as XXe,cZ as Tke,c_ as eG,c$ as eet,d0 as zke,d1 as Rke,d2 as tet,d3 as oet,d4 as ret,d5 as iet,d6 as net,d7 as aet,d8 as set,d9 as cet,v as det,da as Ij,db as tG,dc as oG,dd as pet,de as uet,df as het,dg as met,dh as get,di as fet,dj as xet,dk as yet,dl as bet,dm as wet,dn as Vre,dp as vet,dq as Cet,dr as Aet,ds as $et,dt as ket}from"./zeni-epic-state-BjcbtVhk.js";import{T as Fke,j as Go,n as i,c as pe,k as Qt,G as Fv,C as Oke,u as Eet,a as Let}from"./mui-BRD3zvN1.js";import{r as Iet,m as Yu}from"./analytics-BHUwgbCp.js";import{L as rG}from"./lottie-iG9PQglI.js";import{r as za}from"./lexical-D0-Opw0M.js";import{E as en,c as jj,P as jet,R as iG,F as TE,X as fd,Y as xd,G as S2,H as zE,I as Mj,J as E2,K as Nke,L as Met,M as Bet,N as o5,O as kZ,Q as SZ,S as Ov,U as Pet}from"./recharts-CHQcl4ep.js";import{r as Det}from"./utils-DmBc9W1c.js";(function(){try{var e=typeof window<"u"?window:typeof T4<"u"?T4:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3b704448-792f-419b-bbd0-4e0539f30dc9",e._sentryDebugIdIdentifier="sentry-dbid-3b704448-792f-419b-bbd0-4e0539f30dc9")}catch{}})();(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 l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();var SA={},Qre;function Tet(){if(Qre)return SA;Qre=1;var e=lke();return SA.createRoot=e.createRoot,SA.hydrateRoot=e.hydrateRoot,SA}var zet=Tet(),bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof T4<"u"?T4:typeof self<"u"?self:{};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ure={exports:{}},yx={},Wre;function Ret(){if(Wre)return yx;Wre=1;var e=$,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,u){var h,m={},f=null,x=null;u!==void 0&&(f=""+u),p.key!==void 0&&(f=""+p.key),p.ref!==void 0&&(x=p.ref);for(h in p)n.call(p,h)&&!l.hasOwnProperty(h)&&(m[h]=p[h]);if(d&&d.defaultProps)for(h in p=d.defaultProps,p)m[h]===void 0&&(m[h]=p[h]);return{$$typeof:t,type:d,key:f,ref:x,props:m,_owner:a.current}}return yx.Fragment=r,yx.jsx=c,yx.jsxs=c,yx}var Gre;function Hke(){return Gre||(Gre=1,Ure.exports=Ret()),Ure.exports}var s=Hke();const Fet=g.createContext(null),ET={didCatch:!1,error:null};let Oet=class extends g.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ET}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:l,reason:"imperative-api"}),this.setState(ET)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&Net(t.resetKeys,a)){var l,c;(l=(c=this.props).onReset)===null||l===void 0||l.call(c,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(ET)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:l,error:c}=this.state;let d=t;if(l){const p={error:c,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(p);else if(n)d=g.createElement(n,p);else if(a!==void 0)d=a;else throw c}return g.createElement(Fet.Provider,{value:{didCatch:l,error:c,resetErrorBoundary:this.resetErrorBoundary}},d)}};function Net(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var nG={exports:{}},Het=nG.exports,Yre;function _et(){return Yre||(Yre=1,(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(Het,function(){var t,r,n="2.0.6",a={},l={},c={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},d={currentLocale:c.currentLocale,zeroFormat:c.zeroFormat,nullFormat:c.nullFormat,defaultFormat:c.defaultFormat,scalePercentBy100:c.scalePercentBy100};function p(u,h){this._input=u,this._value=h}return t=function(u){var h,m,f,x;if(t.isNumeral(u))h=u.value();else if(u===0||typeof u>"u")h=0;else if(u===null||r.isNaN(u))h=null;else if(typeof u=="string")if(d.zeroFormat&&u===d.zeroFormat)h=0;else if(d.nullFormat&&u===d.nullFormat||!u.replace(/[^0-9]+/g,"").length)h=null;else{for(m in a)if(x=typeof a[m].regexps.unformat=="function"?a[m].regexps.unformat():a[m].regexps.unformat,x&&u.match(x)){f=a[m].unformat;break}f=f||t._.stringToNumber,h=f(u)}else h=Number(u)||null;return new p(u,h)},t.version=n,t.isNumeral=function(u){return u instanceof p},t._=r={numberToFormat:function(u,h,m){var f=l[t.options.currentLocale],x=!1,y=!1,b=0,w="",C=1e12,A=1e9,S=1e6,E=1e3,I="",L=!1,M,P,D,T,R,N,K;if(u=u||0,P=Math.abs(u),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(R=t._.includes(h,"+")?h.indexOf("+"):u<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(M=h.match(/a(k|m|b|t)?/),M=M?M[1]:!1,t._.includes(h," a")&&(w=" "),h=h.replace(new RegExp(w+"a[kmbt]?"),""),P>=C&&!M||M==="t"?(w+=f.abbreviations.trillion,u=u/C):P<C&&P>=A&&!M||M==="b"?(w+=f.abbreviations.billion,u=u/A):P<A&&P>=S&&!M||M==="m"?(w+=f.abbreviations.million,u=u/S):(P<S&&P>=E&&!M||M==="k")&&(w+=f.abbreviations.thousand,u=u/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),D=u.toString().split(".")[0],T=h.split(".")[1],N=h.indexOf(","),b=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(t._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),I=t._.toFixed(u,T[0].length+T[1].length,m,T[1].length)):I=t._.toFixed(u,T.length,m),D=I.split(".")[0],t._.includes(I,".")?I=f.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):D=t._.toFixed(u,0,m),w&&!M&&Number(D)>=1e3&&w!==f.abbreviations.trillion)switch(D=String(Number(D)/1e3),w){case f.abbreviations.thousand:w=f.abbreviations.million;break;case f.abbreviations.million:w=f.abbreviations.billion;break;case f.abbreviations.billion:w=f.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),L=!0),D.length<b)for(var q=b-D.length;q>0;q--)D="0"+D;return N>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),h.indexOf(".")===0&&(D=""),K=D+I+(w||""),x?K=(x&&L?"(":"")+K+(x&&L?")":""):R>=0?K=R===0?(L?"-":"+")+K:K+(L?"-":"+"):L&&(K="-"+K),K},stringToNumber:function(u){var h=l[d.currentLocale],m=u,f={thousand:3,million:6,billion:9,trillion:12},x,y,b;if(d.zeroFormat&&u===d.zeroFormat)y=0;else if(d.nullFormat&&u===d.nullFormat||!u.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in f)if(b=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(b)){y*=Math.pow(10,f[x]);break}y*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),y*=Number(u)}return y},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,h){return u.indexOf(h)!==-1},insert:function(u,h,m){return u.slice(0,m)+h+u.slice(m)},reduce:function(u,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(u),f=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<f&&!(x in m);)x++;if(x>=f)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<f;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(u){var h=u.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(h,m){var f=r.multiplier(m);return h>f?h:f},1)},toFixed:function(u,h,m,f){var x=u.toString().split("."),y=h-(f||0),b,w,C,A;return x.length===2?b=Math.min(Math.max(x[1].length,y),h):b=y,C=Math.pow(10,b),A=(m(u+"e+"+b)/C).toFixed(b),f>h-b&&(w=new RegExp("\\.?0{1,"+(f-(h-b))+"}$"),A=A.replace(w,"")),A}},t.options=d,t.formats=a,t.locales=l,t.locale=function(u){return u&&(d.currentLocale=u.toLowerCase()),d.currentLocale},t.localeData=function(u){if(!u)return l[d.currentLocale];if(u=u.toLowerCase(),!l[u])throw new Error("Unknown locale : "+u);return l[u]},t.reset=function(){for(var u in c)d[u]=c[u]},t.zeroFormat=function(u){d.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){d.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){d.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,h,m){if(h=h.toLowerCase(),this[u+"s"][h])throw new TypeError(h+" "+u+" already registered.");return this[u+"s"][h]=m,m},t.validate=function(u,h){var m,f,x,y,b,w,C,A;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,b=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?f="\\.":f=C.delimiters.thousands,A=u.match(/^[^\d]+/),A!==null&&(u=u.substr(1),A[0]!==x)||(A=u.match(/[^\d]+$/),A!==null&&(u=u.slice(0,-1),A[0]!==b.thousand&&A[0]!==b.million&&A[0]!==b.billion&&A[0]!==b.trillion))?!1:(w=new RegExp(f+"{2}"),u.match(/[^\d.,]/g)?!1:(y=u.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(w):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(w)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(w)&&!!y[1].match(/^\d+$/)))},t.fn=p.prototype={clone:function(){return t(this)},format:function(u,h){var m=this._value,f=u||d.defaultFormat,x,y,b;if(h=h||Math.round,m===0&&d.zeroFormat!==null)y=d.zeroFormat;else if(m===null&&d.nullFormat!==null)y=d.nullFormat;else{for(x in a)if(f.match(a[x].regexps.format)){b=a[x].format;break}b=b||t._.numberToFormat,y=b(m,f,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var h=r.correctionFactor.call(null,this._value,u);function m(f,x,y,b){return f+Math.round(h*x)}return this._value=r.reduce([this._value,u],m,0)/h,this},subtract:function(u){var h=r.correctionFactor.call(null,this._value,u);function m(f,x,y,b){return f-Math.round(h*x)}return this._value=r.reduce([u],m,Math.round(this._value*h))/h,this},multiply:function(u){function h(m,f,x,y){var b=r.correctionFactor(m,f);return Math.round(m*b)*Math.round(f*b)/Math.round(b*b)}return this._value=r.reduce([this._value,u],h,1),this},divide:function(u){function h(m,f,x,y){var b=r.correctionFactor(m,f);return Math.round(m*b)/Math.round(f*b)}return this._value=r.reduce([this._value,u],h),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var h=u%10;return~~(u%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,h,m){var f=t._.includes(h," BPS")?" ":"",x;return u=u*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(u,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"BPS"),x=x.join("")):x=x+f+"BPS",x},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})})(),(function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=u.suffixes.concat(h.suffixes.filter(function(x){return u.suffixes.indexOf(x)<0})),f=m.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(x,y,b){var w,C=t._.includes(y,"ib")?h:u,A=t._.includes(y," b")||t._.includes(y," ib")?" ":"",S,E,I;for(y=y.replace(/\s?i?b/,""),S=0;S<=C.suffixes.length;S++)if(E=Math.pow(C.base,S),I=Math.pow(C.base,S+1),x===null||x===0||x>=E&&x<I){A+=C.suffixes[S],E>0&&(x=x/E);break}return w=t._.numberToFormat(x,y,b),w+A},unformat:function(x){var y=t._.stringToNumber(x),b,w;if(y){for(b=u.suffixes.length-1;b>=0;b--){if(t._.includes(x,u.suffixes[b])){w=Math.pow(u.base,b);break}if(t._.includes(x,h.suffixes[b])){w=Math.pow(h.base,b);break}}y*=w||1}return y}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,h,m){var f=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,b,w;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(u,h,m),u>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),w=0;w<x.before.length;w++)switch(b=x.before[w],b){case"$":y=t._.insert(y,f.currency.symbol,w);break;case" ":y=t._.insert(y," ",w+f.currency.symbol.length-1);break}for(w=x.after.length-1;w>=0;w--)switch(b=x.after[w],b){case"$":y=w===x.after.length-1?y+f.currency.symbol:t._.insert(y,f.currency.symbol,-(x.after.length-(1+w)));break;case" ":y=w===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+w)+f.currency.symbol.length-1));break}return y}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,h,m){var f,x=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(y[0]),h,m),f+"e"+y[1]},unformat:function(u){var h=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),m=Number(h[0]),f=Number(h[1]);f=t._.includes(u,"e-")?f*=-1:f;function x(y,b,w,C){var A=t._.correctionFactor(y,b),S=y*A*(b*A)/(A*A);return S}return t._.reduce([m,Math.pow(10,f)],x,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,h,m){var f=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=f.ordinal(u),x=t._.numberToFormat(u,h,m),x+y}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,h,m){var f=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(u=u*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(u,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"%"),x=x.join("")):x=x+f+"%",x},unformat:function(u){var h=t._.stringToNumber(u);return t.options.scalePercentBy100?h*.01:h}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,h,m){var f=Math.floor(u/60/60),x=Math.floor((u-f*60*60)/60),y=Math.round(u-f*60*60-x*60);return f+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(u){var h=u.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})})(),t})})(nG)),nG.exports}var Vet=_et();const sp=Vr(Vet);function g2(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const d2="$$material";function Qet(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Uet={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Wet(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Get=/[A-Z]|^ms/g,Yet=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_ke=function(e){return e.charCodeAt(1)===45},Kre=function(e){return e!=null&&typeof e!="boolean"},LT=Wet(function(e){return _ke(e)?e:e.replace(Get,"-$&").toLowerCase()}),qre=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Yet,function(r,n,a){return Wm={name:n,styles:a,next:Wm},n})}return Uet[e]!==1&&!_ke(e)&&typeof t=="number"&&t!==0?t+"px":t};function RE(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Wm={name:a.name,styles:a.styles,next:Wm},a.name;var l=r;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)Wm={name:c.name,styles:c.styles,next:Wm},c=c.next;var d=l.styles+";";return d}return Ket(e,t,r)}}var p=r;return p}function Ket(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=RE(e,t,r[a])+";";else for(var l in r){var c=r[l];if(typeof c!="object"){var d=c;Kre(d)&&(n+=LT(l)+":"+qre(l,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var p=0;p<c.length;p++)Kre(c[p])&&(n+=LT(l)+":"+qre(l,c[p])+";");else{var u=RE(e,t,c);switch(l){case"animation":case"animationName":{n+=LT(l)+":"+u+";";break}default:n+=l+"{"+u+"}"}}}return n}var Zre=/label:\s*([^\s;{]+)\s*(;|$)/g,Wm;function qet(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Wm=void 0;var l=e[0];if(l==null||l.raw===void 0)n=!1,a+=RE(r,t,l);else{var c=l;a+=c[0]}for(var d=1;d<e.length;d++)if(a+=RE(r,t,e[d]),n){var p=l;a+=p[d]}Zre.lastIndex=0;for(var u="",h;(h=Zre.exec(a))!==null;)u+="-"+h[1];var m=Qet(a)+u;return{name:m,styles:a,next:Wm}}var IT={exports:{}},jT,Jre;function Zet(){if(Jre)return jT;Jre=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jT=e,jT}var MT,Xre;function Jet(){if(Xre)return MT;Xre=1;var e=Zet();function t(){}function r(){}return r.resetWarningCache=t,MT=function(){function n(c,d,p,u,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function a(){return n}var l={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},MT}var eie;function EZ(){return eie||(eie=1,IT.exports=Jet()()),IT.exports}var Xet=EZ();const _t=Vr(Xet);function ett(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ttt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ott=(function(){function e(r){var n=this;this._insertTag=function(a){var l;n.tags.length===0?n.insertionPoint?l=n.insertionPoint.nextSibling:n.prepend?l=n.container.firstChild:l=n.before:l=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,l),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ttt(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ett(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ol="-ms-",FE="-moz-",Ai="-webkit-",Vke="comm",LZ="rule",IZ="decl",rtt="@import",Qke="@keyframes",itt="@layer",ntt=Math.abs,Bj=String.fromCharCode,att=Object.assign;function stt(e,t){return Rs(e,0)^45?(((t<<2^Rs(e,0))<<2^Rs(e,1))<<2^Rs(e,2))<<2^Rs(e,3):0}function Uke(e){return e.trim()}function ltt(e,t){return(e=t.exec(e))?e[0]:e}function $i(e,t,r){return e.replace(t,r)}function aG(e,t){return e.indexOf(t)}function Rs(e,t){return e.charCodeAt(t)|0}function Mw(e,t,r){return e.slice(t,r)}function Ku(e){return e.length}function jZ(e){return e.length}function EA(e,t){return t.push(e),e}function ctt(e,t){return e.map(t).join("")}var Pj=1,L8=1,Wke=0,Ic=0,ja=0,v9="";function Dj(e,t,r,n,a,l,c){return{value:e,root:t,parent:r,type:n,props:a,children:l,line:Pj,column:L8,length:c,return:""}}function bx(e,t){return att(Dj("",null,null,"",null,null,0),e,{length:-e.length},t)}function dtt(){return ja}function ptt(){return ja=Ic>0?Rs(v9,--Ic):0,L8--,ja===10&&(L8=1,Pj--),ja}function hd(){return ja=Ic<Wke?Rs(v9,Ic++):0,L8++,ja===10&&(L8=1,Pj++),ja}function kh(){return Rs(v9,Ic)}function KS(){return Ic}function Nv(e,t){return Mw(v9,e,t)}function Bw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gke(e){return Pj=L8=1,Wke=Ku(v9=e),Ic=0,[]}function Yke(e){return v9="",e}function qS(e){return Uke(Nv(Ic-1,sG(e===91?e+2:e===40?e+1:e)))}function utt(e){for(;(ja=kh())&&ja<33;)hd();return Bw(e)>2||Bw(ja)>3?"":" "}function htt(e,t){for(;--t&&hd()&&!(ja<48||ja>102||ja>57&&ja<65||ja>70&&ja<97););return Nv(e,KS()+(t<6&&kh()==32&&hd()==32))}function sG(e){for(;hd();)switch(ja){case e:return Ic;case 34:case 39:e!==34&&e!==39&&sG(ja);break;case 40:e===41&&sG(e);break;case 92:hd();break}return Ic}function mtt(e,t){for(;hd()&&e+ja!==57&&!(e+ja===84&&kh()===47););return"/*"+Nv(t,Ic-1)+"*"+Bj(e===47?e:hd())}function gtt(e){for(;!Bw(kh());)hd();return Nv(e,Ic)}function ftt(e){return Yke(ZS("",null,null,null,[""],e=Gke(e),0,[0],e))}function ZS(e,t,r,n,a,l,c,d,p){for(var u=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,A=0,S="",E=a,I=l,L=n,M=S;w;)switch(y=A,A=hd()){case 40:if(y!=108&&Rs(M,m-1)==58){aG(M+=$i(qS(A),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:M+=qS(A);break;case 9:case 10:case 13:case 32:M+=utt(y);break;case 92:M+=htt(KS()-1,7);continue;case 47:switch(kh()){case 42:case 47:EA(xtt(mtt(hd(),KS()),t,r),p);break;default:M+="/"}break;case 123*b:d[u++]=Ku(M)*C;case 125*b:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+h:C==-1&&(M=$i(M,/\f/g,"")),x>0&&Ku(M)-m&&EA(x>32?oie(M+";",n,r,m-1):oie($i(M," ","")+";",n,r,m-2),p);break;case 59:M+=";";default:if(EA(L=tie(M,t,r,u,h,a,d,S,E=[],I=[],m),l),A===123)if(h===0)ZS(M,t,L,L,E,l,m,d,I);else switch(f===99&&Rs(M,3)===110?100:f){case 100:case 108:case 109:case 115:ZS(e,L,L,n&&EA(tie(e,L,L,0,0,a,d,S,a,E=[],m),I),a,I,m,d,n?E:I);break;default:ZS(M,L,L,L,[""],I,0,d,I)}}u=h=x=0,b=C=1,S=M="",m=c;break;case 58:m=1+Ku(M),x=y;default:if(b<1){if(A==123)--b;else if(A==125&&b++==0&&ptt()==125)continue}switch(M+=Bj(A),A*b){case 38:C=h>0?1:(M+="\f",-1);break;case 44:d[u++]=(Ku(M)-1)*C,C=1;break;case 64:kh()===45&&(M+=qS(hd())),f=kh(),h=m=Ku(S=M+=gtt(KS())),A++;break;case 45:y===45&&Ku(M)==2&&(b=0)}}return l}function tie(e,t,r,n,a,l,c,d,p,u,h){for(var m=a-1,f=a===0?l:[""],x=jZ(f),y=0,b=0,w=0;y<n;++y)for(var C=0,A=Mw(e,m+1,m=ntt(b=c[y])),S=e;C<x;++C)(S=Uke(b>0?f[C]+" "+A:$i(A,/&\f/g,f[C])))&&(p[w++]=S);return Dj(e,t,r,a===0?LZ:d,p,u,h)}function xtt(e,t,r){return Dj(e,t,r,Vke,Bj(dtt()),Mw(e,2,-2),0)}function oie(e,t,r,n){return Dj(e,t,r,IZ,Mw(e,0,n),Mw(e,n+1,-1),n)}function r8(e,t){for(var r="",n=jZ(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function ytt(e,t,r,n){switch(e.type){case itt:if(e.children.length)break;case rtt:case IZ:return e.return=e.return||e.value;case Vke:return"";case Qke:return e.return=e.value+"{"+r8(e.children,n)+"}";case LZ:e.value=e.props.join(",")}return Ku(r=r8(e.children,n))?e.return=e.value+"{"+r+"}":""}function btt(e){var t=jZ(e);return function(r,n,a,l){for(var c="",d=0;d<t;d++)c+=e[d](r,n,a,l)||"";return c}}function wtt(e){return function(t){t.root||(t=t.return)&&e(t)}}var vtt=function(e,t,r){for(var n=0,a=0;n=a,a=kh(),n===38&&a===12&&(t[r]=1),!Bw(a);)hd();return Nv(e,Ic)},Ctt=function(e,t){var r=-1,n=44;do switch(Bw(n)){case 0:n===38&&kh()===12&&(t[r]=1),e[r]+=vtt(Ic-1,t,r);break;case 2:e[r]+=qS(n);break;case 4:if(n===44){e[++r]=kh()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bj(n)}while(n=hd());return e},Att=function(e,t){return Yke(Ctt(Gke(e),t))},rie=new WeakMap,$tt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!rie.get(r))&&!n){rie.set(e,!0);for(var a=[],l=Att(t,a),c=r.props,d=0,p=0;d<l.length;d++)for(var u=0;u<c.length;u++,p++)e.props[p]=a[d]?l[d].replace(/&\f/g,c[u]):c[u]+" "+l[d]}}},ktt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Kke(e,t){switch(stt(e,t)){case 5103:return Ai+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ai+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+FE+e+ol+e+e;case 6828:case 4268:return Ai+e+ol+e+e;case 6165:return Ai+e+ol+"flex-"+e+e;case 5187:return Ai+e+$i(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ol+"flex-$1$2")+e;case 5443:return Ai+e+ol+"flex-item-"+$i(e,/flex-|-self/,"")+e;case 4675:return Ai+e+ol+"flex-line-pack"+$i(e,/align-content|flex-|-self/,"")+e;case 5548:return Ai+e+ol+$i(e,"shrink","negative")+e;case 5292:return Ai+e+ol+$i(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+$i(e,"-grow","")+Ai+e+ol+$i(e,"grow","positive")+e;case 4554:return Ai+$i(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return $i($i($i(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return $i(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return $i($i(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ol+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4095:case 3583:case 4068:case 2532:return $i(e,/(.+)-inline(.+)/,Ai+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ku(e)-1-t>6)switch(Rs(e,t+1)){case 109:if(Rs(e,t+4)!==45)break;case 102:return $i(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+FE+(Rs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~aG(e,"stretch")?Kke($i(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rs(e,t+1)!==115)break;case 6444:switch(Rs(e,Ku(e)-3-(~aG(e,"!important")&&10))){case 107:return $i(e,":",":"+Ai)+e;case 101:return $i(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ai+(Rs(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ol+"$2box$3")+e}break;case 5936:switch(Rs(e,t+11)){case 114:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ai+e+ol+e+e}return e}var Stt=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case IZ:e.return=Kke(e.value,e.length);break;case Qke:return r8([bx(e,{value:$i(e.value,"@","@"+Ai)})],n);case LZ:if(e.length)return ctt(e.props,function(a){switch(ltt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return r8([bx(e,{props:[$i(a,/:(read-\w+)/,":"+FE+"$1")]})],n);case"::placeholder":return r8([bx(e,{props:[$i(a,/:(plac\w+)/,":"+Ai+"input-$1")]}),bx(e,{props:[$i(a,/:(plac\w+)/,":"+FE+"$1")]}),bx(e,{props:[$i(a,/:(plac\w+)/,ol+"input-$1")]})],n)}return""})}},Ett=[Stt],qke=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||Ett,a={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)a[b[w]]=!0;c.push(y)});var d,p=[$tt,ktt];{var u,h=[ytt,wtt(function(y){u.insert(y)})],m=btt(p.concat(n,h)),f=function(y){return r8(ftt(y),m)};d=function(y,b,w,C){u=w,f(y?y+"{"+b.styles+"}":b.styles),C&&(x.inserted[b.name]=!0)}}var x={key:t,sheet:new ott({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:d};return x.sheet.hydrate(c),x};function Ltt(e){return e==null||Object.keys(e).length===0}function Zke(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Ltt(a)?r:a):t;return s.jsx(Fv,{styles:n})}function Itt(e,t){return i(e,t)}function jtt(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const iie=[];function ng(e){return iie[0]=e,qet(iie)}var nie={exports:{}},Qi={},aie;function Mtt(){if(aie)return Qi;aie=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case r:case a:case n:case p:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case c:case d:case m:case h:return b;case l:return b;default:return w}}case t:return w}}}return Qi.ContextConsumer=l,Qi.ContextProvider=c,Qi.Element=e,Qi.ForwardRef=d,Qi.Fragment=r,Qi.Lazy=m,Qi.Memo=h,Qi.Portal=t,Qi.Profiler=a,Qi.StrictMode=n,Qi.Suspense=p,Qi.SuspenseList=u,Qi.isContextConsumer=function(b){return y(b)===l},Qi.isContextProvider=function(b){return y(b)===c},Qi.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Qi.isForwardRef=function(b){return y(b)===d},Qi.isFragment=function(b){return y(b)===r},Qi.isLazy=function(b){return y(b)===m},Qi.isMemo=function(b){return y(b)===h},Qi.isPortal=function(b){return y(b)===t},Qi.isProfiler=function(b){return y(b)===a},Qi.isStrictMode=function(b){return y(b)===n},Qi.isSuspense=function(b){return y(b)===p},Qi.isSuspenseList=function(b){return y(b)===u},Qi.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===a||b===n||b===p||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===l||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},Qi.typeOf=y,Qi}var sie;function Btt(){return sie||(sie=1,nie.exports=Mtt()),nie.exports}var Jke=Btt();function Y0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xke(e){if(g.isValidElement(e)||Jke.isValidElementType(e)||!Y0(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Xke(e[r])}),t}function ml(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Y0(e)&&Y0(t)&&Object.keys(t).forEach(a=>{g.isValidElement(t[a])||Jke.isValidElementType(t[a])?n[a]=t[a]:Y0(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Y0(e[a])?n[a]=ml(e[a],t[a],r):r.clone?n[a]=Y0(t[a])?Xke(t[a]):t[a]:n[a]=t[a]}),n}const Ptt=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Dtt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,l=Ptt(t),c=Object.keys(l);function d(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function p(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,x){const y=c.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[c[y]]=="number"?t[c[y]]:x)-n/100}${r})`}function h(f){return c.indexOf(f)+1<c.length?u(f,c[c.indexOf(f)+1]):d(f)}function m(f){const x=c.indexOf(f);return x===0?d(c[1]):x===c.length-1?p(c[x]):u(f,c[c.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:c,values:l,up:d,down:p,between:u,only:h,not:m,unit:r,...a}}function lie(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,a)=>{const l=/min-width:\s*([0-9.]+)/;return+(n.match(l)?.[1]||0)-+(a.match(l)?.[1]||0)});return r.length?r.reduce((n,a)=>{const l=t[a];return delete n[a],n[a]=l,n},{...t}):t}function Ttt(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ztt(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,l=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(l)}function Rtt(e){const t=(l,c)=>l.replace("@media",c?`@container ${c}`:"@container");function r(l,c){l.up=(...d)=>t(e.breakpoints.up(...d),c),l.down=(...d)=>t(e.breakpoints.down(...d),c),l.between=(...d)=>t(e.breakpoints.between(...d),c),l.only=(...d)=>t(e.breakpoints.only(...d),c),l.not=(...d)=>{const p=t(e.breakpoints.not(...d),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const n={},a=l=>(r(n,l),n);return r(a),{...e,containerQueries:a}}const Ftt={borderRadius:4};function Jb(e,t){return t?ml(e,t,{clone:!1}):e}const Tj={xs:0,sm:600,md:900,lg:1200,xl:1536},cie={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tj[e]}px)`},Ott={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Tj[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function f2(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||cie;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=r(t[d]),l),{})}if(typeof t=="object"){const a=n.breakpoints||cie;return Object.keys(t).reduce((l,c)=>{if(Ttt(a.keys,c)){const d=ztt(n.containerQueries?n:Ott,c);d&&(l[d]=r(t[c],c))}else if(Object.keys(a.values||Tj).includes(c)){const d=a.up(c);l[d]=r(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return r(t)}function Ntt(e={}){return e.keys?.reduce((t,r)=>{const n=e.up(r);return t[n]={},t},{})||{}}function die(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function gr(e){if(typeof e!="string")throw new Error(g2(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zj(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function OE(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=zj(e,r)||n,t&&(a=t(a,n,e)),a}function ha(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,l=c=>{if(c[t]==null)return null;const d=c[t],p=c.theme,u=zj(p,n)||{};return f2(c,d,h=>{let m=OE(u,a,h);return h===m&&typeof h=="string"&&(m=OE(u,a,`${t}${h==="default"?"":gr(h)}`,h)),r===!1?m:{[r]:m}})};return l.propTypes={},l.filterProps=[t],l}function Htt(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const _tt={m:"margin",p:"padding"},Vtt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pie={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qtt=Htt(e=>{if(e.length>2)if(pie[e])e=pie[e];else return[e];const[t,r]=e.split(""),n=_tt[t],a=Vtt[r]||"";return Array.isArray(a)?a.map(l=>n+l):[n+a]}),MZ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BZ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...MZ,...BZ];function Hv(e,t,r,n){const a=zj(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l:Array.isArray(a)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),d=a[c];return l>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:(()=>{})}function PZ(e){return Hv(e,"spacing",8)}function _v(e,t){return typeof t=="string"||t==null?t:e(t)}function Utt(e,t){return r=>e.reduce((n,a)=>(n[a]=_v(t,r),n),{})}function Wtt(e,t,r,n){if(!t.includes(r))return null;const a=Qtt(r),l=Utt(a,n),c=e[r];return f2(e,c,l)}function eSe(e,t){const r=PZ(e.theme);return Object.keys(e).map(n=>Wtt(e,t,n,r)).reduce(Jb,{})}function _n(e){return eSe(e,MZ)}_n.propTypes={};_n.filterProps=MZ;function Vn(e){return eSe(e,BZ)}Vn.propTypes={};Vn.filterProps=BZ;function tSe(e=8,t=PZ({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function Rj(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(l=>{n[l]=a}),n),{}),r=n=>Object.keys(n).reduce((a,l)=>t[l]?Jb(a,t[l](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Kd(e){return typeof e!="number"?e:`${e}px solid`}function x1(e,t){return ha({prop:e,themeKey:"borders",transform:t})}const Gtt=x1("border",Kd),Ytt=x1("borderTop",Kd),Ktt=x1("borderRight",Kd),qtt=x1("borderBottom",Kd),Ztt=x1("borderLeft",Kd),Jtt=x1("borderColor"),Xtt=x1("borderTopColor"),eot=x1("borderRightColor"),tot=x1("borderBottomColor"),oot=x1("borderLeftColor"),rot=x1("outline",Kd),iot=x1("outlineColor"),Fj=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_v(t,n)});return f2(e,e.borderRadius,r)}return null};Fj.propTypes={};Fj.filterProps=["borderRadius"];Rj(Gtt,Ytt,Ktt,qtt,Ztt,Jtt,Xtt,eot,tot,oot,Fj,rot,iot);const Oj=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({gap:_v(t,n)});return f2(e,e.gap,r)}return null};Oj.propTypes={};Oj.filterProps=["gap"];const Nj=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({columnGap:_v(t,n)});return f2(e,e.columnGap,r)}return null};Nj.propTypes={};Nj.filterProps=["columnGap"];const Hj=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({rowGap:_v(t,n)});return f2(e,e.rowGap,r)}return null};Hj.propTypes={};Hj.filterProps=["rowGap"];const not=ha({prop:"gridColumn"}),aot=ha({prop:"gridRow"}),sot=ha({prop:"gridAutoFlow"}),lot=ha({prop:"gridAutoColumns"}),cot=ha({prop:"gridAutoRows"}),dot=ha({prop:"gridTemplateColumns"}),pot=ha({prop:"gridTemplateRows"}),uot=ha({prop:"gridTemplateAreas"}),hot=ha({prop:"gridArea"});Rj(Oj,Nj,Hj,not,aot,sot,lot,cot,dot,pot,uot,hot);function i8(e,t){return t==="grey"?t:e}const mot=ha({prop:"color",themeKey:"palette",transform:i8}),got=ha({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:i8}),fot=ha({prop:"backgroundColor",themeKey:"palette",transform:i8});Rj(mot,got,fot);function ad(e){return e<=1&&e!==0?`${e*100}%`:e}const xot=ha({prop:"width",transform:ad}),DZ=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Tj[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ad(r)}};return f2(e,e.maxWidth,t)}return null};DZ.filterProps=["maxWidth"];const yot=ha({prop:"minWidth",transform:ad}),bot=ha({prop:"height",transform:ad}),wot=ha({prop:"maxHeight",transform:ad}),vot=ha({prop:"minHeight",transform:ad});ha({prop:"size",cssProperty:"width",transform:ad});ha({prop:"size",cssProperty:"height",transform:ad});const Cot=ha({prop:"boxSizing"});Rj(xot,DZ,yot,bot,wot,vot,Cot);const _j={border:{themeKey:"borders",transform:Kd},borderTop:{themeKey:"borders",transform:Kd},borderRight:{themeKey:"borders",transform:Kd},borderBottom:{themeKey:"borders",transform:Kd},borderLeft:{themeKey:"borders",transform:Kd},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kd},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fj},color:{themeKey:"palette",transform:i8},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:i8},backgroundColor:{themeKey:"palette",transform:i8},p:{style:Vn},pt:{style:Vn},pr:{style:Vn},pb:{style:Vn},pl:{style:Vn},px:{style:Vn},py:{style:Vn},padding:{style:Vn},paddingTop:{style:Vn},paddingRight:{style:Vn},paddingBottom:{style:Vn},paddingLeft:{style:Vn},paddingX:{style:Vn},paddingY:{style:Vn},paddingInline:{style:Vn},paddingInlineStart:{style:Vn},paddingInlineEnd:{style:Vn},paddingBlock:{style:Vn},paddingBlockStart:{style:Vn},paddingBlockEnd:{style:Vn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Oj},rowGap:{style:Hj},columnGap:{style:Nj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ad},maxWidth:{style:DZ},minWidth:{transform:ad},height:{transform:ad},maxHeight:{transform:ad},minHeight:{transform:ad},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Aot(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function $ot(e,t){return typeof e=="function"?e(t):e}function kot(){function e(r,n,a,l){const c={[r]:n,theme:a},d=l[r];if(!d)return{[r]:n};const{cssProperty:p=r,themeKey:u,transform:h,style:m}=d;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=zj(a,u)||{};return m?m(c):f2(c,n,x=>{let y=OE(f,h,x);return x===y&&typeof x=="string"&&(y=OE(f,h,`${r}${x==="default"?"":gr(x)}`,x)),p===!1?y:{[p]:y}})}function t(r){const{sx:n,theme:a={},nested:l}=r||{};if(!n)return null;const c=a.unstable_sxConfig??_j;function d(p){let u=p;if(typeof p=="function")u=p(a);else if(typeof p!="object")return p;if(!u)return null;const h=Ntt(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(u).forEach(x=>{const y=$ot(u[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=Jb(f,e(x,y,a,c));else{const b=f2({theme:a},y,w=>({[x]:w}));Aot(b,y)?f[x]=t({sx:y,theme:a,nested:!0}):f=Jb(f,b)}else f=Jb(f,e(x,y,a,c))}),!l&&a.modularCssLayers?{"@layer sx":lie(a,die(m,f))}:lie(a,die(m,f))}return Array.isArray(n)?n.map(d):d(n)}return t}const z4=kot();z4.filterProps=["sx"];function Sot(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function TZ(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:l={},...c}=e,d=Dtt(r),p=tSe(a);let u=ml({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:p,shape:{...Ftt,...l}},c);return u=Rtt(u),u.applyStyles=Sot,u=t.reduce((h,m)=>ml(h,m),u),u.unstable_sxConfig={..._j,...c?.unstable_sxConfig},u.unstable_sx=function(h){return z4({sx:h,theme:this})},u}function Eot(e){return Object.keys(e).length===0}function zZ(e=null){const t=g.useContext(Fke);return!t||Eot(t)?e:t}const Lot=TZ();function oSe(e=Lot){return zZ(e)}function uie(e){const t=ng(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rSe({styles:e,themeId:t,defaultTheme:r={}}){const n=oSe(r),a=t&&n[t]||n;let l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(c=>uie(typeof c=="function"?c(a):c)):l=uie(l)),s.jsx(Zke,{styles:l})}const hie=e=>e,Iot=()=>{let e=hie;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hie}}},jot=Iot();function iSe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=iSe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Jo(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=iSe(e))&&(n&&(n+=" "),n+=t);return n}const Mot={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function wi(e,t,r="Mui"){const n=Mot[t];return n?`${r}-${n}`:`${jot.generate(e)}-${t}`}function li(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=wi(e,a,r)}),n}function nSe(e){const{variants:t,...r}=e,n={variants:t,style:ng(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=ng(a.style))}),n}const Bot=TZ();function BT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function s4(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Pot(e){return e?(t,r)=>r[e]:null}function Dot(e,t,r){e.theme=Rot(e.theme)?r:e.theme[t]||e.theme}function JS(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(a=>JS(e,a,r));if(Array.isArray(n?.variants)){let a;if(n.isProcessed)a=r?s4(n.style,r):n.style;else{const{variants:l,...c}=n;a=r?s4(ng(c),r):c}return aSe(e,n.variants,[a],r)}return n?.isProcessed?r?s4(ng(n.style),r):n.style:r?s4(ng(n),r):n}function aSe(e,t,r=[],n=void 0){let a;e:for(let l=0;l<t.length;l+=1){const c=t[l];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?s4(ng(c.style(a)),n):c.style(a))):r.push(n?s4(ng(c.style),n):c.style)}return r}function Tot(e={}){const{themeId:t,defaultTheme:r=Bot,rootShouldForwardProp:n=BT,slotShouldForwardProp:a=BT}=e;function l(c){Dot(c,t,r)}return(c,d={})=>{jtt(c,I=>I.filter(L=>L!==z4));const{name:p,slot:u,skipVariantsResolver:h,skipSx:m,overridesResolver:f=Pot(Oot(u)),...x}=d,y=p&&p.startsWith("Mui")||u?"components":"custom",b=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,w=m||!1;let C=BT;u==="Root"||u==="root"?C=n:u?C=a:Fot(c)&&(C=void 0);const A=Itt(c,{shouldForwardProp:C,label:zot(),...x}),S=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(L){return JS(L,I,L.theme.modularCssLayers?y:void 0)};if(Y0(I)){const L=nSe(I);return function(M){return L.variants?JS(M,L,M.theme.modularCssLayers?y:void 0):M.theme.modularCssLayers?s4(L.style,y):L.style}}return I},E=(...I)=>{const L=[],M=I.map(S),P=[];if(L.push(l),p&&f&&P.push(function(R){const N=R.theme.components?.[p]?.styleOverrides;if(!N)return null;const K={};for(const q in N)K[q]=JS(R,N[q],R.theme.modularCssLayers?"theme":void 0);return f(R,K)}),p&&!b&&P.push(function(R){const N=R.theme?.components?.[p]?.variants;return N?aSe(R,N,[],R.theme.modularCssLayers?"theme":void 0):null}),w||P.push(z4),Array.isArray(M[0])){const R=M.shift(),N=new Array(L.length).fill(""),K=new Array(P.length).fill("");let q;q=[...N,...R,...K],q.raw=[...N,...R.raw,...K],L.unshift(q)}const D=[...L,...M,...P],T=A(...D);return c.muiName&&(T.muiName=c.muiName),T};return A.withConfig&&(E.withConfig=A.withConfig),E}}function zot(e,t){return void 0}function Rot(e){for(const t in e)return!1;return!0}function Fot(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Oot(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lG(e,t,r=!1){const n={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){const c=e[l],d=t[l];if(!d)n[l]=c||{};else if(!c)n[l]=d;else{n[l]={...d};for(const p in c)if(Object.prototype.hasOwnProperty.call(c,p)){const u=p;n[l][u]=lG(c[u],d[u],r)}}}else l==="className"&&r&&t.className?n.className=Jo(e?.className,t?.className):l==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[l]===void 0&&(n[l]=e[l])}return n}const yd=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Not(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function RZ(e,t=0,r=1){return Not(e,t,r)}function Hot(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fg(e){if(e.type)return e;if(e.charAt(0)==="#")return fg(Hot(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(g2(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(g2(10,a))}else n=n.split(",");return n=n.map(l=>parseFloat(l)),{type:r,values:n,colorSpace:a}}const _ot=e=>{const t=fg(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},mb=(e,t)=>{try{return _ot(e)}catch{return e}};function Vj(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function sSe(e){e=fg(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,l=n*Math.min(a,1-a),c=(u,h=(u+r/30)%12)=>a-l*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",p.push(t[3])),Vj({type:d,values:p})}function cG(e){e=fg(e);let t=e.type==="hsl"||e.type==="hsla"?fg(sSe(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vot(e,t){const r=cG(e),n=cG(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function NE(e,t){return e=fg(e),t=RZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vj(e)}function V3(e,t,r){try{return NE(e,t)}catch{return e}}function Qj(e,t){if(e=fg(e),t=RZ(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Vj(e)}function Pi(e,t,r){try{return Qj(e,t)}catch{return e}}function Uj(e,t){if(e=fg(e),t=RZ(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Vj(e)}function Di(e,t,r){try{return Uj(e,t)}catch{return e}}function Qot(e,t=.15){return cG(e)>.5?Qj(e,t):Uj(e,t)}function LA(e,t,r){try{return Qot(e,t)}catch{return e}}const lSe=g.createContext(null);function FZ(){return g.useContext(lSe)}const Uot=typeof Symbol=="function"&&Symbol.for,Wot=Uot?Symbol.for("mui.nested"):"__THEME_NESTED__";function Got(e,t){return typeof t=="function"?t(e):{...e,...t}}function Yot(e){const{children:t,theme:r}=e,n=FZ(),a=g.useMemo(()=>{const l=n===null?{...r}:Got(n,r);return l!=null&&(l[Wot]=n!==null),l},[r,n]);return s.jsx(lSe.Provider,{value:a,children:t})}const cSe=g.createContext();function Kot({value:e,...t}){return s.jsx(cSe.Provider,{value:e??!0,...t})}const C9=()=>g.useContext(cSe)??!1,dSe=g.createContext(void 0);function qot({value:e,children:t}){return s.jsx(dSe.Provider,{value:e,children:t})}function Zot(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?lG(a.defaultProps,n,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?lG(a,n,t.components.mergeClassNameAndStyle):n}function Jot({props:e,name:t}){const r=g.useContext(dSe);return Zot({props:e,name:t,theme:{components:r}})}let mie=0;function Xot(e){const[t,r]=g.useState(e),n=e||t;return g.useEffect(()=>{t==null&&(mie+=1,r(`mui-${mie}`))},[t]),n}const ert={...$Je},gie=ert.useId;function Wj(e){if(gie!==void 0){const t=gie();return e??t}return Xot(e)}function trt(e){const t=zZ(),r=Wj()||"",{modularCssLayers:n}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?a="":typeof n=="string"?a=n.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,yd(()=>{const l=document.querySelector("head");if(!l)return;const c=l.firstChild;if(a){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===r)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",r),d.textContent=a,l.prepend(d)}else l.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[a,r]),a?s.jsx(rSe,{styles:a}):null}const fie={};function xie(e,t,r,n=!1){return g.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const l=r(a),c=e?{...t,[e]:l}:l;return n?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function pSe(e){const{children:t,theme:r,themeId:n}=e,a=zZ(fie),l=FZ()||fie,c=xie(n,a,r),d=xie(n,l,r,!0),p=(n?c[n]:c).direction==="rtl",u=trt(c);return s.jsx(Yot,{theme:d,children:s.jsx(Fke.Provider,{value:c,children:s.jsx(Kot,{value:p,children:s.jsxs(qot,{value:n?c[n].components:c.components,children:[u,t]})})})})}const yie={theme:void 0};function ort(e){let t,r;return function(n){let a=t;return(a===void 0||n.theme!==r)&&(yie.theme=n.theme,a=nSe(e(yie)),t=a,r=n.theme),a}}const OZ="mode",NZ="color-scheme",rrt="data-color-scheme";function irt(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=OZ,colorSchemeStorageKey:l=NZ,attribute:c=rrt,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let u="",h=c;if(c==="class"&&(h=".%s"),c==="data"&&(h="[data-%s]"),h.startsWith(".")){const f=h.substring(1);u+=`${d}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-DIiz3tVc.js","assets/sentry-DnKCIlp7.js","assets/empty-CGqM-fQ6.js","assets/index-CdOmOrCq.js","assets/index-ibUWH8aZ.js","assets/zeni-epic-state-BjcbtVhk.js","assets/core-CjUOFtNP.js","assets/utils-DmBc9W1c.js","assets/recharts-CHQcl4ep.js","assets/url-CyApCW3Z.js","assets/index-BRCfM85b.js","assets/index-D0y-AHOf.js","assets/url-Bv6R7pEO.js","assets/index-Cs6eGSj4.js","assets/ScreenRoutes-CBGK06cX.js","assets/liveblocks-1rPyJrPS.js","assets/analyticsHelper-C1KqLtzZ.js","assets/mui-BRD3zvN1.js","assets/SignInScreen-gBaW1ru_.js","assets/analytics-BHUwgbCp.js","assets/lottie-iG9PQglI.js","assets/lexical-D0-Opw0M.js"])))=>i.map(i=>d[i]);
2
+ import{a as g,R as $,e as $Je,b as T4,p as F0,r as Dc,g as hZ,d as Bre,f as kJe,s as Pre,w as SJe,i as EJe,S as LJe,j as IJe,k as jJe,l as MJe,m as BJe}from"./sentry-DnKCIlp7.js";import{j as Ao,_ as rke,a as Ad,u as ike,T as PJe,C as DJe,b as TJe,c as Aj,d as $j,e as zJe,f as RJe,g as nke,h as FJe,i as OJe,L as NJe,k as Dre,l as HJe,m as _Je,n as VJe,P as QJe,o as UJe,p as WJe,q as ake,r as GJe,s as YJe,I as Tre,t as KJe,v as qJe,w as ZJe,x as JJe,y as XJe,z as eXe,A as ske,B as tXe,D as oXe,E as rXe}from"./liveblocks-1rPyJrPS.js";import{f as lke,R as n4,r as Fn,P as Dn,u as kj,g as yh,h as iXe,i as mZ,j as nXe,k as aXe,l as ST,N as sXe,m as lXe,n as cXe,B as dXe}from"./core-CjUOFtNP.js";import{H as BE,ba as a4,bb as pXe,bc as zre,bd as t5,be as br,bf as cke,bg as Wr,bh as Sj,bi as uXe,bj as Dh,bk as hXe,bl as mXe,bm as S8,bn as gg,bo as b9,bp as dke,bq as gXe,br as J1,bs as pke,bt as fXe,bu as gZ,bv as uke,bw as ln,bx as E8,by as Gu,bz as Rre,bA as xXe,bB as yXe,bC as PE,bD as JW,bE as bXe,bF as wXe,bG as vXe,bH as CXe,bI as fZ,bJ as hke,bK as AXe,bL as Zb,bM as $Xe,bN as mke,bO as XW,bP as Fre,bQ as Ore,bR as Nre,bS as zl,bT as xZ,bU as gke,bV as fke,bW as yZ,bX as w9,bY as Ej,bZ,b_ as wZ,b$ as vZ,c0 as CZ,c1 as kXe,c2 as Lj,c3 as cp,c4 as dp,c5 as DE,c6 as xke,c7 as yke,c8 as SXe,c9 as AZ,ca as $Z,cb as EXe,cc as LXe,cd as op,ce as zv,cf as Rv,cg as IXe,ch as jXe,ci as MXe,cj as BXe,ck as PXe,cl as DXe,cm as TXe,cn as kA,co as bke,cp as wke,cq as zXe,cr as RXe,cs as vke,ct as Cke,cu as FXe,cv as OXe,cw as NXe,cx as Ake,cy as $ke,cz as HXe,cA as _Xe,cB as kke,cC as Ske,cD as VXe,cE as Hre,cF as QXe,cG as UXe,cH as jw,cI as WXe,cJ as Eke,cK as GXe,cL as Lke,cM as YXe,cN as _re,cO as KXe,cP as Ike,cQ as jke,cR as Mke,cS as Bke,cT as Pke,cU as qXe,cV as Dke,cW as ZXe,cX as JXe,cY as XXe,cZ as Tke,c_ as eG,c$ as eet,d0 as zke,d1 as Rke,d2 as tet,d3 as oet,d4 as ret,d5 as iet,d6 as net,d7 as aet,d8 as set,d9 as cet,v as det,da as Ij,db as tG,dc as oG,dd as pet,de as uet,df as het,dg as met,dh as get,di as fet,dj as xet,dk as yet,dl as bet,dm as wet,dn as Vre,dp as vet,dq as Cet,dr as Aet,ds as $et,dt as ket}from"./zeni-epic-state-BjcbtVhk.js";import{T as Fke,j as Go,n as i,c as pe,k as Qt,G as Fv,C as Oke,u as Eet,a as Let}from"./mui-BRD3zvN1.js";import{r as Iet,m as Yu}from"./analytics-BHUwgbCp.js";import{L as rG}from"./lottie-iG9PQglI.js";import{r as za}from"./lexical-D0-Opw0M.js";import{E as en,c as jj,P as jet,R as iG,F as TE,X as fd,Y as xd,G as S2,H as zE,I as Mj,J as E2,K as Nke,L as Met,M as Bet,N as o5,O as kZ,Q as SZ,S as Ov,U as Pet}from"./recharts-CHQcl4ep.js";import{r as Det}from"./utils-DmBc9W1c.js";(function(){try{var e=typeof window<"u"?window:typeof T4<"u"?T4:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d79e3686-372f-46fc-8258-e07c05efcf44",e._sentryDebugIdIdentifier="sentry-dbid-d79e3686-372f-46fc-8258-e07c05efcf44")}catch{}})();(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 l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();var SA={},Qre;function Tet(){if(Qre)return SA;Qre=1;var e=lke();return SA.createRoot=e.createRoot,SA.hydrateRoot=e.hydrateRoot,SA}var zet=Tet(),bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof T4<"u"?T4:typeof self<"u"?self:{};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ure={exports:{}},yx={},Wre;function Ret(){if(Wre)return yx;Wre=1;var e=$,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,u){var h,m={},f=null,x=null;u!==void 0&&(f=""+u),p.key!==void 0&&(f=""+p.key),p.ref!==void 0&&(x=p.ref);for(h in p)n.call(p,h)&&!l.hasOwnProperty(h)&&(m[h]=p[h]);if(d&&d.defaultProps)for(h in p=d.defaultProps,p)m[h]===void 0&&(m[h]=p[h]);return{$$typeof:t,type:d,key:f,ref:x,props:m,_owner:a.current}}return yx.Fragment=r,yx.jsx=c,yx.jsxs=c,yx}var Gre;function Hke(){return Gre||(Gre=1,Ure.exports=Ret()),Ure.exports}var s=Hke();const Fet=g.createContext(null),ET={didCatch:!1,error:null};let Oet=class extends g.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ET}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:l,reason:"imperative-api"}),this.setState(ET)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&Net(t.resetKeys,a)){var l,c;(l=(c=this.props).onReset)===null||l===void 0||l.call(c,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(ET)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:l,error:c}=this.state;let d=t;if(l){const p={error:c,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(p);else if(n)d=g.createElement(n,p);else if(a!==void 0)d=a;else throw c}return g.createElement(Fet.Provider,{value:{didCatch:l,error:c,resetErrorBoundary:this.resetErrorBoundary}},d)}};function Net(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var nG={exports:{}},Het=nG.exports,Yre;function _et(){return Yre||(Yre=1,(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(Het,function(){var t,r,n="2.0.6",a={},l={},c={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},d={currentLocale:c.currentLocale,zeroFormat:c.zeroFormat,nullFormat:c.nullFormat,defaultFormat:c.defaultFormat,scalePercentBy100:c.scalePercentBy100};function p(u,h){this._input=u,this._value=h}return t=function(u){var h,m,f,x;if(t.isNumeral(u))h=u.value();else if(u===0||typeof u>"u")h=0;else if(u===null||r.isNaN(u))h=null;else if(typeof u=="string")if(d.zeroFormat&&u===d.zeroFormat)h=0;else if(d.nullFormat&&u===d.nullFormat||!u.replace(/[^0-9]+/g,"").length)h=null;else{for(m in a)if(x=typeof a[m].regexps.unformat=="function"?a[m].regexps.unformat():a[m].regexps.unformat,x&&u.match(x)){f=a[m].unformat;break}f=f||t._.stringToNumber,h=f(u)}else h=Number(u)||null;return new p(u,h)},t.version=n,t.isNumeral=function(u){return u instanceof p},t._=r={numberToFormat:function(u,h,m){var f=l[t.options.currentLocale],x=!1,y=!1,b=0,w="",C=1e12,A=1e9,S=1e6,E=1e3,I="",L=!1,M,P,D,T,R,N,K;if(u=u||0,P=Math.abs(u),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(R=t._.includes(h,"+")?h.indexOf("+"):u<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(M=h.match(/a(k|m|b|t)?/),M=M?M[1]:!1,t._.includes(h," a")&&(w=" "),h=h.replace(new RegExp(w+"a[kmbt]?"),""),P>=C&&!M||M==="t"?(w+=f.abbreviations.trillion,u=u/C):P<C&&P>=A&&!M||M==="b"?(w+=f.abbreviations.billion,u=u/A):P<A&&P>=S&&!M||M==="m"?(w+=f.abbreviations.million,u=u/S):(P<S&&P>=E&&!M||M==="k")&&(w+=f.abbreviations.thousand,u=u/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),D=u.toString().split(".")[0],T=h.split(".")[1],N=h.indexOf(","),b=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(t._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),I=t._.toFixed(u,T[0].length+T[1].length,m,T[1].length)):I=t._.toFixed(u,T.length,m),D=I.split(".")[0],t._.includes(I,".")?I=f.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):D=t._.toFixed(u,0,m),w&&!M&&Number(D)>=1e3&&w!==f.abbreviations.trillion)switch(D=String(Number(D)/1e3),w){case f.abbreviations.thousand:w=f.abbreviations.million;break;case f.abbreviations.million:w=f.abbreviations.billion;break;case f.abbreviations.billion:w=f.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),L=!0),D.length<b)for(var q=b-D.length;q>0;q--)D="0"+D;return N>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),h.indexOf(".")===0&&(D=""),K=D+I+(w||""),x?K=(x&&L?"(":"")+K+(x&&L?")":""):R>=0?K=R===0?(L?"-":"+")+K:K+(L?"-":"+"):L&&(K="-"+K),K},stringToNumber:function(u){var h=l[d.currentLocale],m=u,f={thousand:3,million:6,billion:9,trillion:12},x,y,b;if(d.zeroFormat&&u===d.zeroFormat)y=0;else if(d.nullFormat&&u===d.nullFormat||!u.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in f)if(b=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(b)){y*=Math.pow(10,f[x]);break}y*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),y*=Number(u)}return y},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,h){return u.indexOf(h)!==-1},insert:function(u,h,m){return u.slice(0,m)+h+u.slice(m)},reduce:function(u,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(u),f=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<f&&!(x in m);)x++;if(x>=f)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<f;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(u){var h=u.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(h,m){var f=r.multiplier(m);return h>f?h:f},1)},toFixed:function(u,h,m,f){var x=u.toString().split("."),y=h-(f||0),b,w,C,A;return x.length===2?b=Math.min(Math.max(x[1].length,y),h):b=y,C=Math.pow(10,b),A=(m(u+"e+"+b)/C).toFixed(b),f>h-b&&(w=new RegExp("\\.?0{1,"+(f-(h-b))+"}$"),A=A.replace(w,"")),A}},t.options=d,t.formats=a,t.locales=l,t.locale=function(u){return u&&(d.currentLocale=u.toLowerCase()),d.currentLocale},t.localeData=function(u){if(!u)return l[d.currentLocale];if(u=u.toLowerCase(),!l[u])throw new Error("Unknown locale : "+u);return l[u]},t.reset=function(){for(var u in c)d[u]=c[u]},t.zeroFormat=function(u){d.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){d.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){d.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,h,m){if(h=h.toLowerCase(),this[u+"s"][h])throw new TypeError(h+" "+u+" already registered.");return this[u+"s"][h]=m,m},t.validate=function(u,h){var m,f,x,y,b,w,C,A;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,b=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?f="\\.":f=C.delimiters.thousands,A=u.match(/^[^\d]+/),A!==null&&(u=u.substr(1),A[0]!==x)||(A=u.match(/[^\d]+$/),A!==null&&(u=u.slice(0,-1),A[0]!==b.thousand&&A[0]!==b.million&&A[0]!==b.billion&&A[0]!==b.trillion))?!1:(w=new RegExp(f+"{2}"),u.match(/[^\d.,]/g)?!1:(y=u.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(w):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(w)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(w)&&!!y[1].match(/^\d+$/)))},t.fn=p.prototype={clone:function(){return t(this)},format:function(u,h){var m=this._value,f=u||d.defaultFormat,x,y,b;if(h=h||Math.round,m===0&&d.zeroFormat!==null)y=d.zeroFormat;else if(m===null&&d.nullFormat!==null)y=d.nullFormat;else{for(x in a)if(f.match(a[x].regexps.format)){b=a[x].format;break}b=b||t._.numberToFormat,y=b(m,f,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var h=r.correctionFactor.call(null,this._value,u);function m(f,x,y,b){return f+Math.round(h*x)}return this._value=r.reduce([this._value,u],m,0)/h,this},subtract:function(u){var h=r.correctionFactor.call(null,this._value,u);function m(f,x,y,b){return f-Math.round(h*x)}return this._value=r.reduce([u],m,Math.round(this._value*h))/h,this},multiply:function(u){function h(m,f,x,y){var b=r.correctionFactor(m,f);return Math.round(m*b)*Math.round(f*b)/Math.round(b*b)}return this._value=r.reduce([this._value,u],h,1),this},divide:function(u){function h(m,f,x,y){var b=r.correctionFactor(m,f);return Math.round(m*b)/Math.round(f*b)}return this._value=r.reduce([this._value,u],h),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var h=u%10;return~~(u%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,h,m){var f=t._.includes(h," BPS")?" ":"",x;return u=u*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(u,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"BPS"),x=x.join("")):x=x+f+"BPS",x},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})})(),(function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=u.suffixes.concat(h.suffixes.filter(function(x){return u.suffixes.indexOf(x)<0})),f=m.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(x,y,b){var w,C=t._.includes(y,"ib")?h:u,A=t._.includes(y," b")||t._.includes(y," ib")?" ":"",S,E,I;for(y=y.replace(/\s?i?b/,""),S=0;S<=C.suffixes.length;S++)if(E=Math.pow(C.base,S),I=Math.pow(C.base,S+1),x===null||x===0||x>=E&&x<I){A+=C.suffixes[S],E>0&&(x=x/E);break}return w=t._.numberToFormat(x,y,b),w+A},unformat:function(x){var y=t._.stringToNumber(x),b,w;if(y){for(b=u.suffixes.length-1;b>=0;b--){if(t._.includes(x,u.suffixes[b])){w=Math.pow(u.base,b);break}if(t._.includes(x,h.suffixes[b])){w=Math.pow(h.base,b);break}}y*=w||1}return y}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,h,m){var f=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,b,w;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(u,h,m),u>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),w=0;w<x.before.length;w++)switch(b=x.before[w],b){case"$":y=t._.insert(y,f.currency.symbol,w);break;case" ":y=t._.insert(y," ",w+f.currency.symbol.length-1);break}for(w=x.after.length-1;w>=0;w--)switch(b=x.after[w],b){case"$":y=w===x.after.length-1?y+f.currency.symbol:t._.insert(y,f.currency.symbol,-(x.after.length-(1+w)));break;case" ":y=w===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+w)+f.currency.symbol.length-1));break}return y}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,h,m){var f,x=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(y[0]),h,m),f+"e"+y[1]},unformat:function(u){var h=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),m=Number(h[0]),f=Number(h[1]);f=t._.includes(u,"e-")?f*=-1:f;function x(y,b,w,C){var A=t._.correctionFactor(y,b),S=y*A*(b*A)/(A*A);return S}return t._.reduce([m,Math.pow(10,f)],x,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,h,m){var f=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=f.ordinal(u),x=t._.numberToFormat(u,h,m),x+y}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,h,m){var f=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(u=u*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(u,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"%"),x=x.join("")):x=x+f+"%",x},unformat:function(u){var h=t._.stringToNumber(u);return t.options.scalePercentBy100?h*.01:h}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,h,m){var f=Math.floor(u/60/60),x=Math.floor((u-f*60*60)/60),y=Math.round(u-f*60*60-x*60);return f+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(u){var h=u.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})})(),t})})(nG)),nG.exports}var Vet=_et();const sp=Vr(Vet);function g2(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const d2="$$material";function Qet(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Uet={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Wet(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Get=/[A-Z]|^ms/g,Yet=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_ke=function(e){return e.charCodeAt(1)===45},Kre=function(e){return e!=null&&typeof e!="boolean"},LT=Wet(function(e){return _ke(e)?e:e.replace(Get,"-$&").toLowerCase()}),qre=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Yet,function(r,n,a){return Wm={name:n,styles:a,next:Wm},n})}return Uet[e]!==1&&!_ke(e)&&typeof t=="number"&&t!==0?t+"px":t};function RE(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Wm={name:a.name,styles:a.styles,next:Wm},a.name;var l=r;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)Wm={name:c.name,styles:c.styles,next:Wm},c=c.next;var d=l.styles+";";return d}return Ket(e,t,r)}}var p=r;return p}function Ket(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=RE(e,t,r[a])+";";else for(var l in r){var c=r[l];if(typeof c!="object"){var d=c;Kre(d)&&(n+=LT(l)+":"+qre(l,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var p=0;p<c.length;p++)Kre(c[p])&&(n+=LT(l)+":"+qre(l,c[p])+";");else{var u=RE(e,t,c);switch(l){case"animation":case"animationName":{n+=LT(l)+":"+u+";";break}default:n+=l+"{"+u+"}"}}}return n}var Zre=/label:\s*([^\s;{]+)\s*(;|$)/g,Wm;function qet(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Wm=void 0;var l=e[0];if(l==null||l.raw===void 0)n=!1,a+=RE(r,t,l);else{var c=l;a+=c[0]}for(var d=1;d<e.length;d++)if(a+=RE(r,t,e[d]),n){var p=l;a+=p[d]}Zre.lastIndex=0;for(var u="",h;(h=Zre.exec(a))!==null;)u+="-"+h[1];var m=Qet(a)+u;return{name:m,styles:a,next:Wm}}var IT={exports:{}},jT,Jre;function Zet(){if(Jre)return jT;Jre=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jT=e,jT}var MT,Xre;function Jet(){if(Xre)return MT;Xre=1;var e=Zet();function t(){}function r(){}return r.resetWarningCache=t,MT=function(){function n(c,d,p,u,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function a(){return n}var l={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},MT}var eie;function EZ(){return eie||(eie=1,IT.exports=Jet()()),IT.exports}var Xet=EZ();const _t=Vr(Xet);function ett(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ttt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ott=(function(){function e(r){var n=this;this._insertTag=function(a){var l;n.tags.length===0?n.insertionPoint?l=n.insertionPoint.nextSibling:n.prepend?l=n.container.firstChild:l=n.before:l=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,l),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ttt(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ett(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ol="-ms-",FE="-moz-",Ai="-webkit-",Vke="comm",LZ="rule",IZ="decl",rtt="@import",Qke="@keyframes",itt="@layer",ntt=Math.abs,Bj=String.fromCharCode,att=Object.assign;function stt(e,t){return Rs(e,0)^45?(((t<<2^Rs(e,0))<<2^Rs(e,1))<<2^Rs(e,2))<<2^Rs(e,3):0}function Uke(e){return e.trim()}function ltt(e,t){return(e=t.exec(e))?e[0]:e}function $i(e,t,r){return e.replace(t,r)}function aG(e,t){return e.indexOf(t)}function Rs(e,t){return e.charCodeAt(t)|0}function Mw(e,t,r){return e.slice(t,r)}function Ku(e){return e.length}function jZ(e){return e.length}function EA(e,t){return t.push(e),e}function ctt(e,t){return e.map(t).join("")}var Pj=1,L8=1,Wke=0,Ic=0,ja=0,v9="";function Dj(e,t,r,n,a,l,c){return{value:e,root:t,parent:r,type:n,props:a,children:l,line:Pj,column:L8,length:c,return:""}}function bx(e,t){return att(Dj("",null,null,"",null,null,0),e,{length:-e.length},t)}function dtt(){return ja}function ptt(){return ja=Ic>0?Rs(v9,--Ic):0,L8--,ja===10&&(L8=1,Pj--),ja}function hd(){return ja=Ic<Wke?Rs(v9,Ic++):0,L8++,ja===10&&(L8=1,Pj++),ja}function kh(){return Rs(v9,Ic)}function KS(){return Ic}function Nv(e,t){return Mw(v9,e,t)}function Bw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gke(e){return Pj=L8=1,Wke=Ku(v9=e),Ic=0,[]}function Yke(e){return v9="",e}function qS(e){return Uke(Nv(Ic-1,sG(e===91?e+2:e===40?e+1:e)))}function utt(e){for(;(ja=kh())&&ja<33;)hd();return Bw(e)>2||Bw(ja)>3?"":" "}function htt(e,t){for(;--t&&hd()&&!(ja<48||ja>102||ja>57&&ja<65||ja>70&&ja<97););return Nv(e,KS()+(t<6&&kh()==32&&hd()==32))}function sG(e){for(;hd();)switch(ja){case e:return Ic;case 34:case 39:e!==34&&e!==39&&sG(ja);break;case 40:e===41&&sG(e);break;case 92:hd();break}return Ic}function mtt(e,t){for(;hd()&&e+ja!==57&&!(e+ja===84&&kh()===47););return"/*"+Nv(t,Ic-1)+"*"+Bj(e===47?e:hd())}function gtt(e){for(;!Bw(kh());)hd();return Nv(e,Ic)}function ftt(e){return Yke(ZS("",null,null,null,[""],e=Gke(e),0,[0],e))}function ZS(e,t,r,n,a,l,c,d,p){for(var u=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,A=0,S="",E=a,I=l,L=n,M=S;w;)switch(y=A,A=hd()){case 40:if(y!=108&&Rs(M,m-1)==58){aG(M+=$i(qS(A),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:M+=qS(A);break;case 9:case 10:case 13:case 32:M+=utt(y);break;case 92:M+=htt(KS()-1,7);continue;case 47:switch(kh()){case 42:case 47:EA(xtt(mtt(hd(),KS()),t,r),p);break;default:M+="/"}break;case 123*b:d[u++]=Ku(M)*C;case 125*b:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+h:C==-1&&(M=$i(M,/\f/g,"")),x>0&&Ku(M)-m&&EA(x>32?oie(M+";",n,r,m-1):oie($i(M," ","")+";",n,r,m-2),p);break;case 59:M+=";";default:if(EA(L=tie(M,t,r,u,h,a,d,S,E=[],I=[],m),l),A===123)if(h===0)ZS(M,t,L,L,E,l,m,d,I);else switch(f===99&&Rs(M,3)===110?100:f){case 100:case 108:case 109:case 115:ZS(e,L,L,n&&EA(tie(e,L,L,0,0,a,d,S,a,E=[],m),I),a,I,m,d,n?E:I);break;default:ZS(M,L,L,L,[""],I,0,d,I)}}u=h=x=0,b=C=1,S=M="",m=c;break;case 58:m=1+Ku(M),x=y;default:if(b<1){if(A==123)--b;else if(A==125&&b++==0&&ptt()==125)continue}switch(M+=Bj(A),A*b){case 38:C=h>0?1:(M+="\f",-1);break;case 44:d[u++]=(Ku(M)-1)*C,C=1;break;case 64:kh()===45&&(M+=qS(hd())),f=kh(),h=m=Ku(S=M+=gtt(KS())),A++;break;case 45:y===45&&Ku(M)==2&&(b=0)}}return l}function tie(e,t,r,n,a,l,c,d,p,u,h){for(var m=a-1,f=a===0?l:[""],x=jZ(f),y=0,b=0,w=0;y<n;++y)for(var C=0,A=Mw(e,m+1,m=ntt(b=c[y])),S=e;C<x;++C)(S=Uke(b>0?f[C]+" "+A:$i(A,/&\f/g,f[C])))&&(p[w++]=S);return Dj(e,t,r,a===0?LZ:d,p,u,h)}function xtt(e,t,r){return Dj(e,t,r,Vke,Bj(dtt()),Mw(e,2,-2),0)}function oie(e,t,r,n){return Dj(e,t,r,IZ,Mw(e,0,n),Mw(e,n+1,-1),n)}function r8(e,t){for(var r="",n=jZ(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function ytt(e,t,r,n){switch(e.type){case itt:if(e.children.length)break;case rtt:case IZ:return e.return=e.return||e.value;case Vke:return"";case Qke:return e.return=e.value+"{"+r8(e.children,n)+"}";case LZ:e.value=e.props.join(",")}return Ku(r=r8(e.children,n))?e.return=e.value+"{"+r+"}":""}function btt(e){var t=jZ(e);return function(r,n,a,l){for(var c="",d=0;d<t;d++)c+=e[d](r,n,a,l)||"";return c}}function wtt(e){return function(t){t.root||(t=t.return)&&e(t)}}var vtt=function(e,t,r){for(var n=0,a=0;n=a,a=kh(),n===38&&a===12&&(t[r]=1),!Bw(a);)hd();return Nv(e,Ic)},Ctt=function(e,t){var r=-1,n=44;do switch(Bw(n)){case 0:n===38&&kh()===12&&(t[r]=1),e[r]+=vtt(Ic-1,t,r);break;case 2:e[r]+=qS(n);break;case 4:if(n===44){e[++r]=kh()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bj(n)}while(n=hd());return e},Att=function(e,t){return Yke(Ctt(Gke(e),t))},rie=new WeakMap,$tt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!rie.get(r))&&!n){rie.set(e,!0);for(var a=[],l=Att(t,a),c=r.props,d=0,p=0;d<l.length;d++)for(var u=0;u<c.length;u++,p++)e.props[p]=a[d]?l[d].replace(/&\f/g,c[u]):c[u]+" "+l[d]}}},ktt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Kke(e,t){switch(stt(e,t)){case 5103:return Ai+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ai+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+FE+e+ol+e+e;case 6828:case 4268:return Ai+e+ol+e+e;case 6165:return Ai+e+ol+"flex-"+e+e;case 5187:return Ai+e+$i(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ol+"flex-$1$2")+e;case 5443:return Ai+e+ol+"flex-item-"+$i(e,/flex-|-self/,"")+e;case 4675:return Ai+e+ol+"flex-line-pack"+$i(e,/align-content|flex-|-self/,"")+e;case 5548:return Ai+e+ol+$i(e,"shrink","negative")+e;case 5292:return Ai+e+ol+$i(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+$i(e,"-grow","")+Ai+e+ol+$i(e,"grow","positive")+e;case 4554:return Ai+$i(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return $i($i($i(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return $i(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return $i($i(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ol+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4095:case 3583:case 4068:case 2532:return $i(e,/(.+)-inline(.+)/,Ai+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ku(e)-1-t>6)switch(Rs(e,t+1)){case 109:if(Rs(e,t+4)!==45)break;case 102:return $i(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+FE+(Rs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~aG(e,"stretch")?Kke($i(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rs(e,t+1)!==115)break;case 6444:switch(Rs(e,Ku(e)-3-(~aG(e,"!important")&&10))){case 107:return $i(e,":",":"+Ai)+e;case 101:return $i(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ai+(Rs(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ol+"$2box$3")+e}break;case 5936:switch(Rs(e,t+11)){case 114:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ol+$i(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ai+e+ol+e+e}return e}var Stt=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case IZ:e.return=Kke(e.value,e.length);break;case Qke:return r8([bx(e,{value:$i(e.value,"@","@"+Ai)})],n);case LZ:if(e.length)return ctt(e.props,function(a){switch(ltt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return r8([bx(e,{props:[$i(a,/:(read-\w+)/,":"+FE+"$1")]})],n);case"::placeholder":return r8([bx(e,{props:[$i(a,/:(plac\w+)/,":"+Ai+"input-$1")]}),bx(e,{props:[$i(a,/:(plac\w+)/,":"+FE+"$1")]}),bx(e,{props:[$i(a,/:(plac\w+)/,ol+"input-$1")]})],n)}return""})}},Ett=[Stt],qke=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||Ett,a={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)a[b[w]]=!0;c.push(y)});var d,p=[$tt,ktt];{var u,h=[ytt,wtt(function(y){u.insert(y)})],m=btt(p.concat(n,h)),f=function(y){return r8(ftt(y),m)};d=function(y,b,w,C){u=w,f(y?y+"{"+b.styles+"}":b.styles),C&&(x.inserted[b.name]=!0)}}var x={key:t,sheet:new ott({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:d};return x.sheet.hydrate(c),x};function Ltt(e){return e==null||Object.keys(e).length===0}function Zke(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Ltt(a)?r:a):t;return s.jsx(Fv,{styles:n})}function Itt(e,t){return i(e,t)}function jtt(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const iie=[];function ng(e){return iie[0]=e,qet(iie)}var nie={exports:{}},Qi={},aie;function Mtt(){if(aie)return Qi;aie=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case r:case a:case n:case p:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case c:case d:case m:case h:return b;case l:return b;default:return w}}case t:return w}}}return Qi.ContextConsumer=l,Qi.ContextProvider=c,Qi.Element=e,Qi.ForwardRef=d,Qi.Fragment=r,Qi.Lazy=m,Qi.Memo=h,Qi.Portal=t,Qi.Profiler=a,Qi.StrictMode=n,Qi.Suspense=p,Qi.SuspenseList=u,Qi.isContextConsumer=function(b){return y(b)===l},Qi.isContextProvider=function(b){return y(b)===c},Qi.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Qi.isForwardRef=function(b){return y(b)===d},Qi.isFragment=function(b){return y(b)===r},Qi.isLazy=function(b){return y(b)===m},Qi.isMemo=function(b){return y(b)===h},Qi.isPortal=function(b){return y(b)===t},Qi.isProfiler=function(b){return y(b)===a},Qi.isStrictMode=function(b){return y(b)===n},Qi.isSuspense=function(b){return y(b)===p},Qi.isSuspenseList=function(b){return y(b)===u},Qi.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===a||b===n||b===p||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===l||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},Qi.typeOf=y,Qi}var sie;function Btt(){return sie||(sie=1,nie.exports=Mtt()),nie.exports}var Jke=Btt();function Y0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xke(e){if(g.isValidElement(e)||Jke.isValidElementType(e)||!Y0(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Xke(e[r])}),t}function ml(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Y0(e)&&Y0(t)&&Object.keys(t).forEach(a=>{g.isValidElement(t[a])||Jke.isValidElementType(t[a])?n[a]=t[a]:Y0(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Y0(e[a])?n[a]=ml(e[a],t[a],r):r.clone?n[a]=Y0(t[a])?Xke(t[a]):t[a]:n[a]=t[a]}),n}const Ptt=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Dtt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,l=Ptt(t),c=Object.keys(l);function d(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function p(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,x){const y=c.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[c[y]]=="number"?t[c[y]]:x)-n/100}${r})`}function h(f){return c.indexOf(f)+1<c.length?u(f,c[c.indexOf(f)+1]):d(f)}function m(f){const x=c.indexOf(f);return x===0?d(c[1]):x===c.length-1?p(c[x]):u(f,c[c.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:c,values:l,up:d,down:p,between:u,only:h,not:m,unit:r,...a}}function lie(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,a)=>{const l=/min-width:\s*([0-9.]+)/;return+(n.match(l)?.[1]||0)-+(a.match(l)?.[1]||0)});return r.length?r.reduce((n,a)=>{const l=t[a];return delete n[a],n[a]=l,n},{...t}):t}function Ttt(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ztt(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,l=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(l)}function Rtt(e){const t=(l,c)=>l.replace("@media",c?`@container ${c}`:"@container");function r(l,c){l.up=(...d)=>t(e.breakpoints.up(...d),c),l.down=(...d)=>t(e.breakpoints.down(...d),c),l.between=(...d)=>t(e.breakpoints.between(...d),c),l.only=(...d)=>t(e.breakpoints.only(...d),c),l.not=(...d)=>{const p=t(e.breakpoints.not(...d),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const n={},a=l=>(r(n,l),n);return r(a),{...e,containerQueries:a}}const Ftt={borderRadius:4};function Jb(e,t){return t?ml(e,t,{clone:!1}):e}const Tj={xs:0,sm:600,md:900,lg:1200,xl:1536},cie={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tj[e]}px)`},Ott={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Tj[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function f2(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||cie;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=r(t[d]),l),{})}if(typeof t=="object"){const a=n.breakpoints||cie;return Object.keys(t).reduce((l,c)=>{if(Ttt(a.keys,c)){const d=ztt(n.containerQueries?n:Ott,c);d&&(l[d]=r(t[c],c))}else if(Object.keys(a.values||Tj).includes(c)){const d=a.up(c);l[d]=r(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return r(t)}function Ntt(e={}){return e.keys?.reduce((t,r)=>{const n=e.up(r);return t[n]={},t},{})||{}}function die(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function gr(e){if(typeof e!="string")throw new Error(g2(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zj(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function OE(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=zj(e,r)||n,t&&(a=t(a,n,e)),a}function ha(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,l=c=>{if(c[t]==null)return null;const d=c[t],p=c.theme,u=zj(p,n)||{};return f2(c,d,h=>{let m=OE(u,a,h);return h===m&&typeof h=="string"&&(m=OE(u,a,`${t}${h==="default"?"":gr(h)}`,h)),r===!1?m:{[r]:m}})};return l.propTypes={},l.filterProps=[t],l}function Htt(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const _tt={m:"margin",p:"padding"},Vtt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pie={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qtt=Htt(e=>{if(e.length>2)if(pie[e])e=pie[e];else return[e];const[t,r]=e.split(""),n=_tt[t],a=Vtt[r]||"";return Array.isArray(a)?a.map(l=>n+l):[n+a]}),MZ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BZ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...MZ,...BZ];function Hv(e,t,r,n){const a=zj(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l:Array.isArray(a)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),d=a[c];return l>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:(()=>{})}function PZ(e){return Hv(e,"spacing",8)}function _v(e,t){return typeof t=="string"||t==null?t:e(t)}function Utt(e,t){return r=>e.reduce((n,a)=>(n[a]=_v(t,r),n),{})}function Wtt(e,t,r,n){if(!t.includes(r))return null;const a=Qtt(r),l=Utt(a,n),c=e[r];return f2(e,c,l)}function eSe(e,t){const r=PZ(e.theme);return Object.keys(e).map(n=>Wtt(e,t,n,r)).reduce(Jb,{})}function _n(e){return eSe(e,MZ)}_n.propTypes={};_n.filterProps=MZ;function Vn(e){return eSe(e,BZ)}Vn.propTypes={};Vn.filterProps=BZ;function tSe(e=8,t=PZ({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function Rj(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(l=>{n[l]=a}),n),{}),r=n=>Object.keys(n).reduce((a,l)=>t[l]?Jb(a,t[l](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Kd(e){return typeof e!="number"?e:`${e}px solid`}function x1(e,t){return ha({prop:e,themeKey:"borders",transform:t})}const Gtt=x1("border",Kd),Ytt=x1("borderTop",Kd),Ktt=x1("borderRight",Kd),qtt=x1("borderBottom",Kd),Ztt=x1("borderLeft",Kd),Jtt=x1("borderColor"),Xtt=x1("borderTopColor"),eot=x1("borderRightColor"),tot=x1("borderBottomColor"),oot=x1("borderLeftColor"),rot=x1("outline",Kd),iot=x1("outlineColor"),Fj=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_v(t,n)});return f2(e,e.borderRadius,r)}return null};Fj.propTypes={};Fj.filterProps=["borderRadius"];Rj(Gtt,Ytt,Ktt,qtt,Ztt,Jtt,Xtt,eot,tot,oot,Fj,rot,iot);const Oj=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({gap:_v(t,n)});return f2(e,e.gap,r)}return null};Oj.propTypes={};Oj.filterProps=["gap"];const Nj=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({columnGap:_v(t,n)});return f2(e,e.columnGap,r)}return null};Nj.propTypes={};Nj.filterProps=["columnGap"];const Hj=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hv(e.theme,"spacing",8),r=n=>({rowGap:_v(t,n)});return f2(e,e.rowGap,r)}return null};Hj.propTypes={};Hj.filterProps=["rowGap"];const not=ha({prop:"gridColumn"}),aot=ha({prop:"gridRow"}),sot=ha({prop:"gridAutoFlow"}),lot=ha({prop:"gridAutoColumns"}),cot=ha({prop:"gridAutoRows"}),dot=ha({prop:"gridTemplateColumns"}),pot=ha({prop:"gridTemplateRows"}),uot=ha({prop:"gridTemplateAreas"}),hot=ha({prop:"gridArea"});Rj(Oj,Nj,Hj,not,aot,sot,lot,cot,dot,pot,uot,hot);function i8(e,t){return t==="grey"?t:e}const mot=ha({prop:"color",themeKey:"palette",transform:i8}),got=ha({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:i8}),fot=ha({prop:"backgroundColor",themeKey:"palette",transform:i8});Rj(mot,got,fot);function ad(e){return e<=1&&e!==0?`${e*100}%`:e}const xot=ha({prop:"width",transform:ad}),DZ=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Tj[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ad(r)}};return f2(e,e.maxWidth,t)}return null};DZ.filterProps=["maxWidth"];const yot=ha({prop:"minWidth",transform:ad}),bot=ha({prop:"height",transform:ad}),wot=ha({prop:"maxHeight",transform:ad}),vot=ha({prop:"minHeight",transform:ad});ha({prop:"size",cssProperty:"width",transform:ad});ha({prop:"size",cssProperty:"height",transform:ad});const Cot=ha({prop:"boxSizing"});Rj(xot,DZ,yot,bot,wot,vot,Cot);const _j={border:{themeKey:"borders",transform:Kd},borderTop:{themeKey:"borders",transform:Kd},borderRight:{themeKey:"borders",transform:Kd},borderBottom:{themeKey:"borders",transform:Kd},borderLeft:{themeKey:"borders",transform:Kd},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kd},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fj},color:{themeKey:"palette",transform:i8},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:i8},backgroundColor:{themeKey:"palette",transform:i8},p:{style:Vn},pt:{style:Vn},pr:{style:Vn},pb:{style:Vn},pl:{style:Vn},px:{style:Vn},py:{style:Vn},padding:{style:Vn},paddingTop:{style:Vn},paddingRight:{style:Vn},paddingBottom:{style:Vn},paddingLeft:{style:Vn},paddingX:{style:Vn},paddingY:{style:Vn},paddingInline:{style:Vn},paddingInlineStart:{style:Vn},paddingInlineEnd:{style:Vn},paddingBlock:{style:Vn},paddingBlockStart:{style:Vn},paddingBlockEnd:{style:Vn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Oj},rowGap:{style:Hj},columnGap:{style:Nj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ad},maxWidth:{style:DZ},minWidth:{transform:ad},height:{transform:ad},maxHeight:{transform:ad},minHeight:{transform:ad},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Aot(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function $ot(e,t){return typeof e=="function"?e(t):e}function kot(){function e(r,n,a,l){const c={[r]:n,theme:a},d=l[r];if(!d)return{[r]:n};const{cssProperty:p=r,themeKey:u,transform:h,style:m}=d;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=zj(a,u)||{};return m?m(c):f2(c,n,x=>{let y=OE(f,h,x);return x===y&&typeof x=="string"&&(y=OE(f,h,`${r}${x==="default"?"":gr(x)}`,x)),p===!1?y:{[p]:y}})}function t(r){const{sx:n,theme:a={},nested:l}=r||{};if(!n)return null;const c=a.unstable_sxConfig??_j;function d(p){let u=p;if(typeof p=="function")u=p(a);else if(typeof p!="object")return p;if(!u)return null;const h=Ntt(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(u).forEach(x=>{const y=$ot(u[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=Jb(f,e(x,y,a,c));else{const b=f2({theme:a},y,w=>({[x]:w}));Aot(b,y)?f[x]=t({sx:y,theme:a,nested:!0}):f=Jb(f,b)}else f=Jb(f,e(x,y,a,c))}),!l&&a.modularCssLayers?{"@layer sx":lie(a,die(m,f))}:lie(a,die(m,f))}return Array.isArray(n)?n.map(d):d(n)}return t}const z4=kot();z4.filterProps=["sx"];function Sot(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function TZ(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:l={},...c}=e,d=Dtt(r),p=tSe(a);let u=ml({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:p,shape:{...Ftt,...l}},c);return u=Rtt(u),u.applyStyles=Sot,u=t.reduce((h,m)=>ml(h,m),u),u.unstable_sxConfig={..._j,...c?.unstable_sxConfig},u.unstable_sx=function(h){return z4({sx:h,theme:this})},u}function Eot(e){return Object.keys(e).length===0}function zZ(e=null){const t=g.useContext(Fke);return!t||Eot(t)?e:t}const Lot=TZ();function oSe(e=Lot){return zZ(e)}function uie(e){const t=ng(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rSe({styles:e,themeId:t,defaultTheme:r={}}){const n=oSe(r),a=t&&n[t]||n;let l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(c=>uie(typeof c=="function"?c(a):c)):l=uie(l)),s.jsx(Zke,{styles:l})}const hie=e=>e,Iot=()=>{let e=hie;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hie}}},jot=Iot();function iSe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=iSe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Jo(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=iSe(e))&&(n&&(n+=" "),n+=t);return n}const Mot={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function wi(e,t,r="Mui"){const n=Mot[t];return n?`${r}-${n}`:`${jot.generate(e)}-${t}`}function li(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=wi(e,a,r)}),n}function nSe(e){const{variants:t,...r}=e,n={variants:t,style:ng(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=ng(a.style))}),n}const Bot=TZ();function BT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function s4(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Pot(e){return e?(t,r)=>r[e]:null}function Dot(e,t,r){e.theme=Rot(e.theme)?r:e.theme[t]||e.theme}function JS(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(a=>JS(e,a,r));if(Array.isArray(n?.variants)){let a;if(n.isProcessed)a=r?s4(n.style,r):n.style;else{const{variants:l,...c}=n;a=r?s4(ng(c),r):c}return aSe(e,n.variants,[a],r)}return n?.isProcessed?r?s4(ng(n.style),r):n.style:r?s4(ng(n),r):n}function aSe(e,t,r=[],n=void 0){let a;e:for(let l=0;l<t.length;l+=1){const c=t[l];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?s4(ng(c.style(a)),n):c.style(a))):r.push(n?s4(ng(c.style),n):c.style)}return r}function Tot(e={}){const{themeId:t,defaultTheme:r=Bot,rootShouldForwardProp:n=BT,slotShouldForwardProp:a=BT}=e;function l(c){Dot(c,t,r)}return(c,d={})=>{jtt(c,I=>I.filter(L=>L!==z4));const{name:p,slot:u,skipVariantsResolver:h,skipSx:m,overridesResolver:f=Pot(Oot(u)),...x}=d,y=p&&p.startsWith("Mui")||u?"components":"custom",b=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,w=m||!1;let C=BT;u==="Root"||u==="root"?C=n:u?C=a:Fot(c)&&(C=void 0);const A=Itt(c,{shouldForwardProp:C,label:zot(),...x}),S=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(L){return JS(L,I,L.theme.modularCssLayers?y:void 0)};if(Y0(I)){const L=nSe(I);return function(M){return L.variants?JS(M,L,M.theme.modularCssLayers?y:void 0):M.theme.modularCssLayers?s4(L.style,y):L.style}}return I},E=(...I)=>{const L=[],M=I.map(S),P=[];if(L.push(l),p&&f&&P.push(function(R){const N=R.theme.components?.[p]?.styleOverrides;if(!N)return null;const K={};for(const q in N)K[q]=JS(R,N[q],R.theme.modularCssLayers?"theme":void 0);return f(R,K)}),p&&!b&&P.push(function(R){const N=R.theme?.components?.[p]?.variants;return N?aSe(R,N,[],R.theme.modularCssLayers?"theme":void 0):null}),w||P.push(z4),Array.isArray(M[0])){const R=M.shift(),N=new Array(L.length).fill(""),K=new Array(P.length).fill("");let q;q=[...N,...R,...K],q.raw=[...N,...R.raw,...K],L.unshift(q)}const D=[...L,...M,...P],T=A(...D);return c.muiName&&(T.muiName=c.muiName),T};return A.withConfig&&(E.withConfig=A.withConfig),E}}function zot(e,t){return void 0}function Rot(e){for(const t in e)return!1;return!0}function Fot(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Oot(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lG(e,t,r=!1){const n={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){const c=e[l],d=t[l];if(!d)n[l]=c||{};else if(!c)n[l]=d;else{n[l]={...d};for(const p in c)if(Object.prototype.hasOwnProperty.call(c,p)){const u=p;n[l][u]=lG(c[u],d[u],r)}}}else l==="className"&&r&&t.className?n.className=Jo(e?.className,t?.className):l==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[l]===void 0&&(n[l]=e[l])}return n}const yd=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Not(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function RZ(e,t=0,r=1){return Not(e,t,r)}function Hot(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fg(e){if(e.type)return e;if(e.charAt(0)==="#")return fg(Hot(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(g2(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(g2(10,a))}else n=n.split(",");return n=n.map(l=>parseFloat(l)),{type:r,values:n,colorSpace:a}}const _ot=e=>{const t=fg(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},mb=(e,t)=>{try{return _ot(e)}catch{return e}};function Vj(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function sSe(e){e=fg(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,l=n*Math.min(a,1-a),c=(u,h=(u+r/30)%12)=>a-l*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",p.push(t[3])),Vj({type:d,values:p})}function cG(e){e=fg(e);let t=e.type==="hsl"||e.type==="hsla"?fg(sSe(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vot(e,t){const r=cG(e),n=cG(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function NE(e,t){return e=fg(e),t=RZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vj(e)}function V3(e,t,r){try{return NE(e,t)}catch{return e}}function Qj(e,t){if(e=fg(e),t=RZ(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Vj(e)}function Pi(e,t,r){try{return Qj(e,t)}catch{return e}}function Uj(e,t){if(e=fg(e),t=RZ(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Vj(e)}function Di(e,t,r){try{return Uj(e,t)}catch{return e}}function Qot(e,t=.15){return cG(e)>.5?Qj(e,t):Uj(e,t)}function LA(e,t,r){try{return Qot(e,t)}catch{return e}}const lSe=g.createContext(null);function FZ(){return g.useContext(lSe)}const Uot=typeof Symbol=="function"&&Symbol.for,Wot=Uot?Symbol.for("mui.nested"):"__THEME_NESTED__";function Got(e,t){return typeof t=="function"?t(e):{...e,...t}}function Yot(e){const{children:t,theme:r}=e,n=FZ(),a=g.useMemo(()=>{const l=n===null?{...r}:Got(n,r);return l!=null&&(l[Wot]=n!==null),l},[r,n]);return s.jsx(lSe.Provider,{value:a,children:t})}const cSe=g.createContext();function Kot({value:e,...t}){return s.jsx(cSe.Provider,{value:e??!0,...t})}const C9=()=>g.useContext(cSe)??!1,dSe=g.createContext(void 0);function qot({value:e,children:t}){return s.jsx(dSe.Provider,{value:e,children:t})}function Zot(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?lG(a.defaultProps,n,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?lG(a,n,t.components.mergeClassNameAndStyle):n}function Jot({props:e,name:t}){const r=g.useContext(dSe);return Zot({props:e,name:t,theme:{components:r}})}let mie=0;function Xot(e){const[t,r]=g.useState(e),n=e||t;return g.useEffect(()=>{t==null&&(mie+=1,r(`mui-${mie}`))},[t]),n}const ert={...$Je},gie=ert.useId;function Wj(e){if(gie!==void 0){const t=gie();return e??t}return Xot(e)}function trt(e){const t=zZ(),r=Wj()||"",{modularCssLayers:n}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?a="":typeof n=="string"?a=n.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,yd(()=>{const l=document.querySelector("head");if(!l)return;const c=l.firstChild;if(a){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===r)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",r),d.textContent=a,l.prepend(d)}else l.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[a,r]),a?s.jsx(rSe,{styles:a}):null}const fie={};function xie(e,t,r,n=!1){return g.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const l=r(a),c=e?{...t,[e]:l}:l;return n?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function pSe(e){const{children:t,theme:r,themeId:n}=e,a=zZ(fie),l=FZ()||fie,c=xie(n,a,r),d=xie(n,l,r,!0),p=(n?c[n]:c).direction==="rtl",u=trt(c);return s.jsx(Yot,{theme:d,children:s.jsx(Fke.Provider,{value:c,children:s.jsx(Kot,{value:p,children:s.jsxs(qot,{value:n?c[n].components:c.components,children:[u,t]})})})})}const yie={theme:void 0};function ort(e){let t,r;return function(n){let a=t;return(a===void 0||n.theme!==r)&&(yie.theme=n.theme,a=nSe(e(yie)),t=a,r=n.theme),a}}const OZ="mode",NZ="color-scheme",rrt="data-color-scheme";function irt(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=OZ,colorSchemeStorageKey:l=NZ,attribute:c=rrt,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let u="",h=c;if(c==="class"&&(h=".%s"),c==="data"&&(h="[data-%s]"),h.startsWith(".")){const f=h.substring(1);u+=`${d}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
3
3
  ${d}.classList.add('${f}'.replace('%s', colorScheme));`}const m=h.match(/\[([^[\]]+)\]/);if(m){const[f,x]=m[1].split("=");x||(u+=`${d}.removeAttribute('${f}'.replace('%s', light));
4
4
  ${d}.removeAttribute('${f}'.replace('%s', dark));`),u+=`
5
5
  ${d}.setAttribute('${f}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(u+=`${d}.setAttribute('${h}', colorScheme);`);return s.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -97526,7 +97526,7 @@ ${e}`,Adi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
97526
97526
  `,ICi=i(tee)`
97527
97527
  color: ${e=>e.theme.colors.alert};
97528
97528
  margin-top: ${o.sp2};
97529
- `;var jCi=Det();const Iw=hZ(jCi);class MCi{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,t)}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!1:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,t)??!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!0:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,t)??!0}getSignedInUserTenant(t){return this.getSignedInUserTenants()?.find(r=>r.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){return this.getSignedInUserTenants()?.find(r=>r.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,t)??[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==r&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t==null)return;const r=this.readEncryptedString(this.ZENI_THEME,t);if(r!=null){if(r!=="light"&&r!=="dark"){window.localStorage.removeItem(this.ZENI_THEME);return}return r}}encrypt(t,r){return Iw.AES.encrypt(t,r).toString()}decrypt(t,r){try{const n=Iw.AES.decrypt(t,r).toString(Iw.enc.Utf8);return n===""?void 0:n}catch{return}}readEncryptedString(t,r){const n=window.localStorage.getItem(t);if(n==null)return;const a=this.decrypt(n,r);return a==null&&window.localStorage.removeItem(t),a}readEncryptedJSON(t,r){const n=this.readEncryptedString(t,r);if(n!=null)try{const a=JSON.parse(n);if(a===null){window.localStorage.removeItem(t);return}return a}catch{window.localStorage.removeItem(t);return}}getSignedInUserTenants(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,t)}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach(t=>window.localStorage.removeItem(t))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const As=new MCi,BCi=({children:e})=>{const t=Let("(prefers-color-scheme: dark)"),[r,n]=$.useState({dark:t});g.useEffect(()=>{const p=As.getTheme()==null?t:As.getTheme()==="dark";r.dark!==p&&n({dark:p})},[r,t]);const a=()=>{const p=!r.dark;As.setTheme(p?"dark":"light"),n({...r,dark:p})},l=r.dark?SBo():kBo(),c=typeof window<"u"?window.__NONCE__:void 0,d=c!=null&&c.length>0?c:void 0;return Ao.jsx(Hko,{dark:r.dark,webAppTheme:l,toggle:a,nonce:d,children:e})},PCi=["sandbox","production"],DCi=e=>t5(e,PCi),TCi=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},zCi=["development","staging","production"],RCi=e=>t5(e,zCi),FCi=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}},OCi=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],NCi=e=>t5(e,OCi),i1=NCi("DEV"),Tv=()=>i1==="DEV"||i1==="QA"||i1==="PUNE"||i1==="SUNNYVALE"||i1==="DELHI"||i1==="MOHALI",dre="https://zeni-webapp-dev.uc.r.appspot.com",HCi="63d3a2406505a5737a2b4debdb513f20",E5n=DCi(TCi(i1)),_Ci=RCi(FCi(i1));function VCi(e,t){return Iw.AES.decrypt(e,t).toString(Iw.enc.Utf8)}const QCi="ZENI-WEB-APP-",eJe=i1==="DEV"||i1==="QA"?.2:.8,Ea={sentryDsn:"",sentryTraceSamplingRate:eJe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let e5,pre;function UCi(e){Ea.sentryDsn=e.keys.SENTRY_DSN,Ea.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):eJe,Ea.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ea.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ea.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ea.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ea.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ea.pusherCluster=e.keys.PUSHER_CLUSTER,Ea.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ea.appUrl=e.keys.WEB_ENDPOINT,Ea.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ea.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Ea.cardVaultId=e.keys.UNIT_VAULT_ID,Ea.stripeKey=e.keys.STRIPE_KEY,Ea.qboRedirectionUrl=e.keys.QBO_URL,Ea.mixpanelUrl=e.keys.MIXPANEL_URL,Ea.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,pre=e.externalEndPoints,e5=e.apiEndPoints,WCi()}function WCi(){try{const e=new Set;if(e5!=null){for(const t of Object.values(e5))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function GCi(){const t=encodeURIComponent(JSON.stringify({environment:i1}));try{const r=await fetch(`${dre}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let K$e=!1;function qb(){K$e||(Yu.init(HCi,{api_host:pre.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),K$e=!0)}let q$e=!1,Z$e=!1;function tJe(){if(q$e)return;q$e=!0,qb();const e=pl.extractUtmParamsFromUrl();Object.keys(e).length>0&&Yu.register(e),Tv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function YCi(){return Yu?.persistence?.props??null}const KCi=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function qCi(){const e=YCi();if(e==null)return;const t=Object.keys(e).filter(r=>r.startsWith("utm_")||KCi.has(r));for(const r of t)Yu.unregister(r);Tv()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function ZCi(){Z$e||(Z$e=!0,qCi())}class i4{identify(t,r){if(qb(),this.#o=t,t!=null&&r!=null&&(i4.#t==null||det({userId:t,traits:r},i4.#t)!==!0)){const{$email:n,...a}={...r};Yu.identify(t),n&&n!=null&&Yu.people.set_once({$email:n}),Yu.people.set(a),i4.#t={userId:t,traits:r},Tv()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,a,l){throw Error("Use identify in the web-app!!")}track(t,r){if(qb(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}tJe();const n={distinct_id:this.#o,...r};Yu.track(t,n),ZCi(),Tv()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){qb(),Yu.alias(t,r)}reset(){qb(),Yu.reset(),this.#o=void 0,i4.#t=void 0}static get analytics(){return this.#e}static#e=new pl.Analytics(new i4);static#t;#o}const Um=i4.analytics;function JCi(){tJe()}const XCi=()=>{const e=kj(),t=yh(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${W.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},J$e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},L5n=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function eAi(e,t){return{updateDownloadStateHandler:r=>{e(pet(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(tG()),e(oG(!1)),As.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),Um?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,a)=>{const l=r.entityType.split(".");if(l.length===2){const c=YCe(l[0]);if(c!=null){const d=J$e(c);t.navigate(`/${d}`),a(r,n)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(r,n,a)=>{const l=r.entityType.split(".");if(r.isGlobalComment&&l.length===2){const c=YCe(l[0]);if(c!=null){const d=J$e(c);t.navigate(`/${d}`),a(r,n)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function tAi(e,t){const{signedInUser:r,cockpitHeader:n}=t,a=e.tenantState.currentTenantId,c=Ij(e)?.companyName??"",d={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:a??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:c,cockpitEndPoint:`${dre}/cockpitTabs`,authParams:d}}}const oAi=iXe(tAi,eAi)(wai);function rAi(){const e=aHe(),t=As.getSignedInUser(),r=mZ(),n=kj(),a=XCi(),l=yh(p=>uet(p)),c={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:het()},d=n.pathname.split("/")[1];return Ao.jsx(oAi,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:c,analytics:Um,currentTab:d,navigate:r})}const iAi=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function nAi({appContent:e}){const t=iAi.filter(r=>nXe(r)).length===0;return Ao.jsxs(Ao.Fragment,{children:[t?null:Ao.jsx(rAi,{}),Ao.jsx(Ao.Fragment,{children:e})]})}const aAi="cockpit",oJe="init-enter";function sAi({location:e,visitedUrl:t}){const{pathname:r}=e;return g.useLayoutEffect(()=>{const n=t.get(r||oJe);X$e(n!==void 0?n:0)}),null}const lAi=g.memo(sAi,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:a}=t,l=r.pathname||oJe,c=cAi();return n.set(l,c),!((a.pathname!==r.pathname||a.search!==r.search)&&a.hash==="")}),X$e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),cAi=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},rJe=e=>g.lazy(async()=>{const t=e.toString(),r=As.getForceRefreshedComponents(),n=new Set(r),a=n.has(t);try{const l=await e();return n.delete(t),As.saveForceRefreshedComponents(Array.from(n)),l}catch(l){throw a||(n.add(t),As.saveForceRefreshedComponents(Array.from(n)),location.reload()),l}}),dAi=rJe(()=>a4(()=>import("./ScreenRoutes-DdbAz88l.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),pAi=rJe(()=>a4(()=>import("./SignInScreen-B78SkdbK.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function uAi(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=mZ(),r=kj();return g.useEffect(()=>{JCi()},[]),g.useEffect(()=>{const n="signin/auth";As.isSignedIn()===!1&&!r.pathname.includes(n)&&t(n,{replace:!0,state:{...r.state,message:"...",origin:r.pathname}})}),Ao.jsxs(gAi,{children:[Ao.jsx(lAi,{visitedUrl:e.current,location:r}),Ao.jsx(hAi,{})]})}const hAi=()=>{const e=As.isSignedIn(),t=As.getSignedInUser(),r=e&&pke(t),n=yh(p=>Ij(p)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},l=yh(p=>met(p)),d=yh(p=>get(p)).map(p=>({companyId:p.companyId,tenantId:p.tenantId,companyName:p.name}));return Ao.jsx(sWr,{roomId:aAi,authParams:a,users:l,companies:d,authUrlEndPoint:`${e5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${e5.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Ao.jsx(mAi,{})})},mAi=()=>Ao.jsx(g.Suspense,{fallback:Ao.jsx(fAi,{children:Ao.jsx($o,{size:"Large",start:!0})}),children:Ao.jsxs(aXe,{children:[Ao.jsx(ST,{path:"/",element:Ao.jsx(sXe,{to:"management",replace:!0})}),Ao.jsx(ST,{path:"/signin/auth",element:Ao.jsx(pAi,{})}),Ao.jsx(ST,{path:"*",element:Ao.jsx(nAi,{appContent:Ao.jsx(dAi,{})})})]})}),gAi=eo("div")``,fAi=eo("div")`
97529
+ `;var jCi=Det();const Iw=hZ(jCi);class MCi{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,t)}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!1:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,t)??!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!0:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,t)??!0}getSignedInUserTenant(t){return this.getSignedInUserTenants()?.find(r=>r.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){return this.getSignedInUserTenants()?.find(r=>r.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,t)??[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==r&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t==null)return;const r=this.readEncryptedString(this.ZENI_THEME,t);if(r!=null){if(r!=="light"&&r!=="dark"){window.localStorage.removeItem(this.ZENI_THEME);return}return r}}encrypt(t,r){return Iw.AES.encrypt(t,r).toString()}decrypt(t,r){try{const n=Iw.AES.decrypt(t,r).toString(Iw.enc.Utf8);return n===""?void 0:n}catch{return}}readEncryptedString(t,r){const n=window.localStorage.getItem(t);if(n==null)return;const a=this.decrypt(n,r);return a==null&&window.localStorage.removeItem(t),a}readEncryptedJSON(t,r){const n=this.readEncryptedString(t,r);if(n!=null)try{const a=JSON.parse(n);if(a===null){window.localStorage.removeItem(t);return}return a}catch{window.localStorage.removeItem(t);return}}getSignedInUserTenants(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,t)}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach(t=>window.localStorage.removeItem(t))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const As=new MCi,BCi=({children:e})=>{const t=Let("(prefers-color-scheme: dark)"),[r,n]=$.useState({dark:t});g.useEffect(()=>{const p=As.getTheme()==null?t:As.getTheme()==="dark";r.dark!==p&&n({dark:p})},[r,t]);const a=()=>{const p=!r.dark;As.setTheme(p?"dark":"light"),n({...r,dark:p})},l=r.dark?SBo():kBo(),c=typeof window<"u"?window.__NONCE__:void 0,d=c!=null&&c.length>0?c:void 0;return Ao.jsx(Hko,{dark:r.dark,webAppTheme:l,toggle:a,nonce:d,children:e})},PCi=["sandbox","production"],DCi=e=>t5(e,PCi),TCi=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},zCi=["development","staging","production"],RCi=e=>t5(e,zCi),FCi=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}},OCi=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],NCi=e=>t5(e,OCi),i1=NCi("QA"),Tv=()=>i1==="DEV"||i1==="QA"||i1==="PUNE"||i1==="SUNNYVALE"||i1==="DELHI"||i1==="MOHALI",dre="https://zeni-webapp-qa.uc.r.appspot.com",HCi="ed1936cb971f6aad4104ddbe708f812c",E5n=DCi(TCi(i1)),_Ci=RCi(FCi(i1));function VCi(e,t){return Iw.AES.decrypt(e,t).toString(Iw.enc.Utf8)}const QCi="ZENI-WEB-APP-",eJe=i1==="DEV"||i1==="QA"?.2:.8,Ea={sentryDsn:"",sentryTraceSamplingRate:eJe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let e5,pre;function UCi(e){Ea.sentryDsn=e.keys.SENTRY_DSN,Ea.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):eJe,Ea.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ea.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ea.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ea.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ea.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ea.pusherCluster=e.keys.PUSHER_CLUSTER,Ea.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ea.appUrl=e.keys.WEB_ENDPOINT,Ea.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ea.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Ea.cardVaultId=e.keys.UNIT_VAULT_ID,Ea.stripeKey=e.keys.STRIPE_KEY,Ea.qboRedirectionUrl=e.keys.QBO_URL,Ea.mixpanelUrl=e.keys.MIXPANEL_URL,Ea.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,pre=e.externalEndPoints,e5=e.apiEndPoints,WCi()}function WCi(){try{const e=new Set;if(e5!=null){for(const t of Object.values(e5))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function GCi(){const t=encodeURIComponent(JSON.stringify({environment:i1}));try{const r=await fetch(`${dre}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let K$e=!1;function qb(){K$e||(Yu.init(HCi,{api_host:pre.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),K$e=!0)}let q$e=!1,Z$e=!1;function tJe(){if(q$e)return;q$e=!0,qb();const e=pl.extractUtmParamsFromUrl();Object.keys(e).length>0&&Yu.register(e),Tv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function YCi(){return Yu?.persistence?.props??null}const KCi=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function qCi(){const e=YCi();if(e==null)return;const t=Object.keys(e).filter(r=>r.startsWith("utm_")||KCi.has(r));for(const r of t)Yu.unregister(r);Tv()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function ZCi(){Z$e||(Z$e=!0,qCi())}class i4{identify(t,r){if(qb(),this.#o=t,t!=null&&r!=null&&(i4.#t==null||det({userId:t,traits:r},i4.#t)!==!0)){const{$email:n,...a}={...r};Yu.identify(t),n&&n!=null&&Yu.people.set_once({$email:n}),Yu.people.set(a),i4.#t={userId:t,traits:r},Tv()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,a,l){throw Error("Use identify in the web-app!!")}track(t,r){if(qb(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}tJe();const n={distinct_id:this.#o,...r};Yu.track(t,n),ZCi(),Tv()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){qb(),Yu.alias(t,r)}reset(){qb(),Yu.reset(),this.#o=void 0,i4.#t=void 0}static get analytics(){return this.#e}static#e=new pl.Analytics(new i4);static#t;#o}const Um=i4.analytics;function JCi(){tJe()}const XCi=()=>{const e=kj(),t=yh(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${W.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},J$e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},L5n=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function eAi(e,t){return{updateDownloadStateHandler:r=>{e(pet(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(tG()),e(oG(!1)),As.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),Um?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,a)=>{const l=r.entityType.split(".");if(l.length===2){const c=YCe(l[0]);if(c!=null){const d=J$e(c);t.navigate(`/${d}`),a(r,n)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(r,n,a)=>{const l=r.entityType.split(".");if(r.isGlobalComment&&l.length===2){const c=YCe(l[0]);if(c!=null){const d=J$e(c);t.navigate(`/${d}`),a(r,n)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function tAi(e,t){const{signedInUser:r,cockpitHeader:n}=t,a=e.tenantState.currentTenantId,c=Ij(e)?.companyName??"",d={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:a??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:c,cockpitEndPoint:`${dre}/cockpitTabs`,authParams:d}}}const oAi=iXe(tAi,eAi)(wai);function rAi(){const e=aHe(),t=As.getSignedInUser(),r=mZ(),n=kj(),a=XCi(),l=yh(p=>uet(p)),c={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:het()},d=n.pathname.split("/")[1];return Ao.jsx(oAi,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:c,analytics:Um,currentTab:d,navigate:r})}const iAi=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function nAi({appContent:e}){const t=iAi.filter(r=>nXe(r)).length===0;return Ao.jsxs(Ao.Fragment,{children:[t?null:Ao.jsx(rAi,{}),Ao.jsx(Ao.Fragment,{children:e})]})}const aAi="cockpit",oJe="init-enter";function sAi({location:e,visitedUrl:t}){const{pathname:r}=e;return g.useLayoutEffect(()=>{const n=t.get(r||oJe);X$e(n!==void 0?n:0)}),null}const lAi=g.memo(sAi,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:a}=t,l=r.pathname||oJe,c=cAi();return n.set(l,c),!((a.pathname!==r.pathname||a.search!==r.search)&&a.hash==="")}),X$e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),cAi=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},rJe=e=>g.lazy(async()=>{const t=e.toString(),r=As.getForceRefreshedComponents(),n=new Set(r),a=n.has(t);try{const l=await e();return n.delete(t),As.saveForceRefreshedComponents(Array.from(n)),l}catch(l){throw a||(n.add(t),As.saveForceRefreshedComponents(Array.from(n)),location.reload()),l}}),dAi=rJe(()=>a4(()=>import("./ScreenRoutes-CBGK06cX.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),pAi=rJe(()=>a4(()=>import("./SignInScreen-gBaW1ru_.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function uAi(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=mZ(),r=kj();return g.useEffect(()=>{JCi()},[]),g.useEffect(()=>{const n="signin/auth";As.isSignedIn()===!1&&!r.pathname.includes(n)&&t(n,{replace:!0,state:{...r.state,message:"...",origin:r.pathname}})}),Ao.jsxs(gAi,{children:[Ao.jsx(lAi,{visitedUrl:e.current,location:r}),Ao.jsx(hAi,{})]})}const hAi=()=>{const e=As.isSignedIn(),t=As.getSignedInUser(),r=e&&pke(t),n=yh(p=>Ij(p)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},l=yh(p=>met(p)),d=yh(p=>get(p)).map(p=>({companyId:p.companyId,tenantId:p.tenantId,companyName:p.name}));return Ao.jsx(sWr,{roomId:aAi,authParams:a,users:l,companies:d,authUrlEndPoint:`${e5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${e5.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Ao.jsx(mAi,{})})},mAi=()=>Ao.jsx(g.Suspense,{fallback:Ao.jsx(fAi,{children:Ao.jsx($o,{size:"Large",start:!0})}),children:Ao.jsxs(aXe,{children:[Ao.jsx(ST,{path:"/",element:Ao.jsx(sXe,{to:"management",replace:!0})}),Ao.jsx(ST,{path:"/signin/auth",element:Ao.jsx(pAi,{})}),Ao.jsx(ST,{path:"*",element:Ao.jsx(nAi,{appContent:Ao.jsx(dAi,{})})})]})}),gAi=eo("div")``,fAi=eo("div")`
97530
97530
  display: flex;
97531
97531
  flex: 1 1 auto;
97532
97532
  flex-direction: row;
@@ -97537,4 +97537,4 @@ ${e}`,Adi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
97537
97537
  background-color: ${e=>e.theme.colors.background};
97538
97538
  `;function xAi(){W.updateAppLocaleID("en"),vAi();const e=CAi(),[t,r]=g.useState(!1),n=g.useCallback(l=>{l.data?.type==="UPDATE_READY"?r(!0):l.data?.type==="HIDE_UPDATE_POPUP"&&r(!1)},[]);g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",n),navigator.serviceWorker.addEventListener("controllerchange",()=>{r(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",n)}),[n]);const a=()=>{r(!1),window.location.reload()};return Ao.jsx(BCi,{children:Ao.jsx(lXe,{store:e,children:Ao.jsx(Q_t,{children:Ao.jsxs(guo,{children:[t?Ao.jsx(n6o,{onPrimaryClick:a}):null,Ao.jsx(bAi,{})]})})})})}const hb=new fet,yAi=()=>{const e=As.getSignedInUser(),t=yh(L=>Ij(L)),r=yh(L=>wet(L,t.companyId)),n=kj(),a=mZ(),l=cXe(),[c,d]=g.useState(null),p=vPr(e?.userId),u=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];g.useEffect(()=>()=>{l(Vre())},[]);const h=yh(L=>vet(L)),m=t?.externalConnections?.accounting[0]?.connectionName,f=()=>{l(Vre())},x=g.useMemo(()=>Cet(t.userRole),[t.userRole]),y=yh(L=>L.companyViewState.zeniUsers),b=g.useMemo(()=>{const L=y.fetchState==="Error"&&Aet(y.error);return L&&console.warn("Auto-logout triggered due to invalid session"),L},[y.fetchState,y.error]),w=g.useMemo(()=>{const L=y.fetchState==="Error"&&$et(y.error)===!0;return L&&console.warn("Page is not accessible, show 404"),L},[y.fetchState,y.error]),C=g.useRef(!1);g.useEffect(()=>(b&&!C.current&&(C.current=!0,A()),()=>{C.current=!1}),[b]),g.useEffect(()=>{w&&window.open("/page-not-found","_self")},[w]);const A=g.useCallback(()=>{d(null),hb.stop(),l(tG()),l(oG(!1)),As.clearAll();const L=n.state?.origin??"/";a(L,{replace:!0})},[l,d,n,a]),S=g.useCallback((L="manual")=>{L==="auto-logout"?sPo({idleTimeoutMinutes:p.idleTimeoutMinutes}):dPo(),d(null),hb.stop(),l(tG()),l(oG(!1)),As.clearAll(),window.location.href="/signin/auth"},[l,d,p.idleTimeoutMinutes]);g.useEffect(()=>{if(e?.zeniSessionId!=null)return hb.start({idleTimeoutMinutes:p.idleTimeoutMinutes,warningDurationSeconds:p.warningDurationSeconds,heartbeatIntervalMinutes:p.heartbeatIntervalMinutes,isAutoLogoutEnabled:p.isAutoLogoutEnabled},{onHeartbeat:()=>l(ket()),onWarningStart:L=>{Um.trackSessionTimeoutPopupShown(L),d(L)},onWarningTick:d,onAutoLogout:()=>{Um.trackSessionTimeoutAutoLogout(),S("auto-logout")},onSessionExtended:()=>d(null)}),()=>hb.stop()},[e?.zeniSessionId,p.isAutoLogoutEnabled,p.idleTimeoutMinutes,p.warningDurationSeconds,p.heartbeatIntervalMinutes,l,S,d]);const E=g.useMemo(()=>As.getSignedInUser(),[]),I=g.useMemo(()=>({userId:E?.userId??"",sessionId:E?.zeniSessionId??"",tenantId:t.tenantId??""}),[E,t.tenantId]);return Ao.jsxs(Luo,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:u,loggedInUserRoleMap:x,currentTenant:t,connectionName:m,controllersList:r},children:[Ao.jsx(buo,{toolkit:{analytics:Um,sentry:LJe,authParams:I},children:Ao.jsxs(Lpo,{endPoint:{url:dre},children:[Ao.jsx(mAr,{isOnDashboard:!1,showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:f,showStatusIcon:h.showStatusIcon}}),Ao.jsx(uAi,{})]})}),c!=null&&e!=null?Ao.jsx(ini,{secondsRemaining:c,onContinueSession:()=>{Um.trackSessionTimeoutClicked("continue",c),hb.continueSession()},onSignOut:()=>{Um.trackSessionTimeoutClicked("sign_out",c),S()}}):null]})},bAi=()=>{const e=As.isSignedIn(),r=yh(n=>Ij(n)).companyId;return Ao.jsx(z2o,{isUserSignedIn:e,featureGateCustomFields:{companyId:r},zeniFeatureConfig:{currentFeatureEnv:_Ci,featureClientSecret:Ea.featureClientSecretCockpit,providerEndPoint:pre.statsigBaseUrl},children:Ao.jsx(yAi,{})})},wAi=SJe(xAi);function vAi(){console.log("Initialize any 3rd party libs!")}let ZW=null;function CAi(){return ZW===null&&(ZW=AAi(),xet().catch(e=>{console.error("Failed to load feature epics:",e),EJe(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
97539
97539
 
97540
- Please refresh the page to try again.`)})),ZW}function AAi(){console.warn(`initializing epic state with url ${JSON.stringify(e5)}`);const e=As.getSignedInUser(),t=yet(e5,e?.userId,e?.zeniSessionId,void 0,Tv()),r=bet();return r.userId!=null&&Um.identify(r.userId,{tenant_id:r.tenantId}),t}const eke="zeni-chunk-reload-at",$Ai=6e4,kAi=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function SAi(){window.addEventListener("vite:preloadError",e=>{const t=e;tke(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{EAi(e.reason)&&tke(e.reason)})}function tke(e){try{const t=Number(sessionStorage.getItem(eke))||0;if(Date.now()-t<$Ai)return!1;sessionStorage.setItem(eke,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function EAi(e){const t=String(e?.message??e??"");return kAi.some(r=>t.includes(r))}const LAi=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),IAi="DEV",jAi="https://zeni-webapp-dev.uc.r.appspot.com",oke=`/service-worker.js?v=${Date.now()}&env=${IAi}&endpoint=${encodeURIComponent(jAi)}`;function MAi(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{LAi?BAi(oke):iJe(oke)})}}function iJe(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function BAi(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(a=>{a.unregister().then(()=>window.location.reload())}):iJe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const PAi=As.getSignedInUser(),DAi=PAi?.zeniSessionId;async function TAi(){try{const e=await GCi(),t=VCi(e,QCi+i1);UCi(JSON.parse(t)),zet.createRoot(document.getElementById("root")).render(Ao.jsx($.StrictMode,{children:Ao.jsx(dXe,{basename:"/cockpit",children:Ao.jsx(wAi,{})})})),zAi()}catch(e){console.error("Error initializing app:",e)}}function zAi(){const e=()=>{IJe({dsn:Ea.sentryDsn,integrations:[jJe(),MJe({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Ea.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(a=>typeof a=="string"&&a.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(a=>{if(typeof a=="string"&&a.includes("user_roles"))try{const l=a.match(/\{.*\}/s);if(l!==null){const c=JSON.parse(l[0]);if(c.user_roles!=null)return delete c.user_roles,a.replace(l[0],JSON.stringify(c))}}catch{}return a})),!0))),t}}),BJe("session-id",DAi)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}SAi();TAi();MAi();export{x5n as $,I2o as A,o$i as B,y5n as C,b5n as D,lt as E,f5n as F,W as G,IZi as H,jZi as I,k5n as J,A5n as K,g5n as L,vFi as M,wBo as N,CFi as O,zBi as P,m5n as Q,h5n as R,v5n as S,$5n as T,rOe as U,d5n as V,MP as W,rJe as X,RBi as Y,dre as Z,lWr as _,j as a,S5n as a0,Um as b,l5n as c,J$e as d,Ea as e,u5n as f,L5n as g,n0 as h,rUi as i,C5n as j,v as k,c5n as l,p5n as m,o as n,Me as o,E5n as p,ein as q,pl as r,$o as s,vLi as t,JCi as u,Ws as v,Q5 as w,w5n as x,WRi as y,As as z};
97540
+ Please refresh the page to try again.`)})),ZW}function AAi(){console.warn(`initializing epic state with url ${JSON.stringify(e5)}`);const e=As.getSignedInUser(),t=yet(e5,e?.userId,e?.zeniSessionId,void 0,Tv()),r=bet();return r.userId!=null&&Um.identify(r.userId,{tenant_id:r.tenantId}),t}const eke="zeni-chunk-reload-at",$Ai=6e4,kAi=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function SAi(){window.addEventListener("vite:preloadError",e=>{const t=e;tke(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{EAi(e.reason)&&tke(e.reason)})}function tke(e){try{const t=Number(sessionStorage.getItem(eke))||0;if(Date.now()-t<$Ai)return!1;sessionStorage.setItem(eke,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function EAi(e){const t=String(e?.message??e??"");return kAi.some(r=>t.includes(r))}const LAi=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),IAi="QA",jAi="https://zeni-webapp-qa.uc.r.appspot.com",oke=`/service-worker.js?v=${Date.now()}&env=${IAi}&endpoint=${encodeURIComponent(jAi)}`;function MAi(e){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{LAi?BAi(oke):iJe(oke)})}}function iJe(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function BAi(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(a=>{a.unregister().then(()=>window.location.reload())}):iJe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const PAi=As.getSignedInUser(),DAi=PAi?.zeniSessionId;async function TAi(){try{const e=await GCi(),t=VCi(e,QCi+i1);UCi(JSON.parse(t)),zet.createRoot(document.getElementById("root")).render(Ao.jsx($.StrictMode,{children:Ao.jsx(dXe,{basename:"/cockpit",children:Ao.jsx(wAi,{})})})),zAi()}catch(e){console.error("Error initializing app:",e)}}function zAi(){const e=()=>{IJe({dsn:Ea.sentryDsn,integrations:[jJe(),MJe({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Ea.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(a=>typeof a=="string"&&a.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(a=>{if(typeof a=="string"&&a.includes("user_roles"))try{const l=a.match(/\{.*\}/s);if(l!==null){const c=JSON.parse(l[0]);if(c.user_roles!=null)return delete c.user_roles,a.replace(l[0],JSON.stringify(c))}}catch{}return a})),!0))),t}}),BJe("session-id",DAi)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}SAi();TAi();MAi();export{x5n as $,I2o as A,o$i as B,y5n as C,b5n as D,lt as E,f5n as F,W as G,IZi as H,jZi as I,k5n as J,A5n as K,g5n as L,vFi as M,wBo as N,CFi as O,zBi as P,m5n as Q,h5n as R,v5n as S,$5n as T,rOe as U,d5n as V,MP as W,rJe as X,RBi as Y,dre as Z,lWr as _,j as a,S5n as a0,Um as b,l5n as c,J$e as d,Ea as e,u5n as f,L5n as g,n0 as h,rUi as i,C5n as j,v as k,c5n as l,p5n as m,o as n,Me as o,E5n as p,ein as q,pl as r,$o as s,vLi as t,JCi as u,Ws as v,Q5 as w,w5n as x,WRi as y,As as z};
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-7-X9ZJj6.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DnKCIlp7.js"><link rel="modulepreload" crossorigin href="/assets/core-CjUOFtNP.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BjcbtVhk.js"><link rel="modulepreload" crossorigin href="/assets/recharts-CHQcl4ep.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-1rPyJrPS.js"><link rel="modulepreload" crossorigin href="/assets/mui-BRD3zvN1.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BHUwgbCp.js"><link rel="modulepreload" crossorigin href="/assets/lottie-iG9PQglI.js"><link rel="modulepreload" crossorigin href="/assets/lexical-D0-Opw0M.js"><link rel="modulepreload" crossorigin href="/assets/utils-DmBc9W1c.js"><link rel="stylesheet" crossorigin href="/assets/index-DcGIrthm.css"></head><body><div id="root"></div></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-DiBX-hv1.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DnKCIlp7.js"><link rel="modulepreload" crossorigin href="/assets/core-CjUOFtNP.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BjcbtVhk.js"><link rel="modulepreload" crossorigin href="/assets/recharts-CHQcl4ep.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-1rPyJrPS.js"><link rel="modulepreload" crossorigin href="/assets/mui-BRD3zvN1.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BHUwgbCp.js"><link rel="modulepreload" crossorigin href="/assets/lottie-iG9PQglI.js"><link rel="modulepreload" crossorigin href="/assets/lexical-D0-Opw0M.js"><link rel="modulepreload" crossorigin href="/assets/utils-DmBc9W1c.js"><link rel="stylesheet" crossorigin href="/assets/index-DcGIrthm.css"></head><body><div id="root"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-cockpit-ui",
3
- "version": "2.2.55-dev",
3
+ "version": "2.2.55-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],