@zeniai/web-app-ui 5.3.99-dev → 5.3.99-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.
- package/dist/assets/{AccountMappingScreen-Cwa6Sncr.js → AccountMappingScreen-BkDkFrFJ.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-JAoGrJi3.js → ActualMatchingMatchDetailScreen-D5qXBMmf.js} +1 -1
- package/dist/assets/{AddressRoutes-D0QZxsbK.js → AddressRoutes-BauVlHZ9.js} +1 -1
- package/dist/assets/{AddressScreen-hby_CR8D.js → AddressScreen-BVI08KOj.js} +1 -1
- package/dist/assets/{AiCfoScreen-DNDihu3K.js → AiCfoScreen-BM8X0l_M.js} +1 -1
- package/dist/assets/{AppDrawer-Cupbn6L3.js → AppDrawer-IgFoNmoU.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-sOvVtkKV.js → BillPayApprovalRoutes-D9-VveJq.js} +1 -1
- package/dist/assets/{BillPayRoutes-DAZ2LiAE.js → BillPayRoutes-C4asT9KO.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CpAzjlh5.js → BusinessVerificationPageScreen-CWXmaf4U.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-BP02_M1s.js → CardsAiCfoScreen-DsznFOdz.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-Ba3x5MoU.js → ChargeCardRoutes-BFj7SQT_.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-B7KOuZR_.js → CompanyPassportScreen-CrbGMPCk.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CDQ0Sa51.js → ConnectionAuthScreen-CaChuRRr.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-CzX3lGuD.js → CustomerOnboardingAuthScreen-Cy2yXNUw.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-B3teunq3.js → CustomerOnboardingRoutes-j2eujk3K.js} +1 -1
- package/dist/assets/{DashboardRoutes-DnxyUY7k.js → DashboardRoutes-szc-1AzX.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DNm_mIU1.js → DefaultTenantHome-DgZZzSS3.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Cb0F3Rod.js → DomesticWireDetailScreen-COcrGUh-.js} +1 -1
- package/dist/assets/{DrawerScreen-B5Qgxoe2.js → DrawerScreen-BisD9BlZ.js} +1 -1
- package/dist/assets/{EntityDetailRoutes--Mqqoc0l.js → EntityDetailRoutes-DCNh3BwN.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-Ce113KIS.js → ExpenseAutomationRoutes-DS-VvjPP.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-Bu-JxAVw.js → FeaturePreviewScreen-DHyyRYim.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-B12KbAGI.js → HubSpotOAuthCallbackScreen-3hGk6JKH.js} +1 -1
- package/dist/assets/{InvoicingRoutes-IUj-CS51.js → InvoicingRoutes-BHc9WH_Q.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-6bWvZ6Ex.js → MagicLinkRoutes-6zPm7Mq6.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-kYQNLgBh.js → MagicLinkSignInScreen-D3EUW5Lx.js} +1 -1
- package/dist/assets/{MobileAppDrawer-D4DOSbVQ.js → MobileAppDrawer-tz9GmHDM.js} +1 -1
- package/dist/assets/{NotFoundScreen-D92eiixV.js → NotFoundScreen-DiDzsmTQ.js} +1 -1
- package/dist/assets/{NotificationRoutes-BV6tu0jZ.js → NotificationRoutes-BwMNmTMU.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BKzEKwhD.js → OAuthConsentScreen-WkoAUQ1C.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CcRkLhpt.js → PandLWithForecastRoutes-BlQEN4ZR.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-DVW3u8lI.js → PaymentLinkScreen-DKlYcyU-.js} +1 -1
- package/dist/assets/{PeopleRoutes-DPu9dF6W.js → PeopleRoutes-BhozwT2h.js} +1 -1
- package/dist/assets/{PerformanceRoutes-D8D-QN7a.js → PerformanceRoutes-BybLFxoL.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BbOyxErb.js → QBOConnectionScreen-D1O6bt7C.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CixN0rww.js → ReimbursementApprovalRoutes-CFEzKEIR.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-XsqK1nGV.js → ReimbursementApprovalRuleDetailScreen-BReOftYM.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-B2FNn_0P.js → ReimbursementRoutes-D4TyOUBY.js} +1 -1
- package/dist/assets/{ReportsRoutes-CJrunnvK.js → ReportsRoutes-BtXBZfhs.js} +1 -1
- package/dist/assets/{RewardsRoutes-8HmabMf6.js → RewardsRoutes-BbrnCETe.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DHpH5oJw.js → ScheduleDetailsPrepaidExpensesScreen-BYfVzzkg.js} +1 -1
- package/dist/assets/{ScreenRoutes-DAK3aVc9.js → ScreenRoutes-BETRDGIK.js} +2 -2
- package/dist/assets/{SettingsRoutes-6-0ys-s5.js → SettingsRoutes-DHbF39FQ.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BbFcVR26.js → SetupPagesScreen-B0Baphh_.js} +1 -1
- package/dist/assets/{SignInScreen-mTQjLuAc.js → SignInScreen-CsHUYOP8.js} +1 -1
- package/dist/assets/{SignOutScreen-C7lCXdn2.js → SignOutScreen-hEqypkGs.js} +1 -1
- package/dist/assets/{TaskListScreen-CW5lbYvD.js → TaskListScreen-DbQ_Vji7.js} +1 -1
- package/dist/assets/{TaskRoutes-ssEkwrEi.js → TaskRoutes-Wz2rUEal.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-DBqh72Ke.js → TransactionDetailRoutes-DqlTEkLS.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-B1no9UdL.js → TransactionDetailScreen-DgVpYIwj.js} +1 -1
- package/dist/assets/{TransactionListRoutes-DCMjmg_J.js → TransactionListRoutes-g16F1PqI.js} +1 -1
- package/dist/assets/{TreasuryRoutes-BUhJHYkV.js → TreasuryRoutes-CHjx786J.js} +1 -1
- package/dist/assets/{VendorsRoutes-C1J2HapW.js → VendorsRoutes-t7Emyx55.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-DgUBxs8P.js → WiseConfirmationScreen-BulJKPGJ.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-C4aExMdo.js → ZeniAccountRoutes-Gv-e-xMQ.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-Vi4F2dbO.js → ZeniAccountStatementScreen-B9byQtF9.js} +1 -1
- package/dist/assets/{analyticsHelper-drNlDujn.js → analyticsHelper-DJg-y5OM.js} +1 -1
- package/dist/assets/{getLocaleForTenant-7mVUFLO-.js → getLocaleForTenant-VEtlPr-d.js} +1 -1
- package/dist/assets/{index-DmFy--fV.js → index-C1XAfugK.js} +5 -5
- package/dist/assets/{routePaths-DQh6iYo4.js → routePaths-D9MDrQwY.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-CN5JVNal.js → useActualMatchingMatchDetail-0lCJi4qB.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-3GfaqAPj.js → useAiCfoDashboardSuggestedQuestionsChips-CxjKgYgG.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CgHJ-iCU.js → useAskAiCfoHostNavButtonProps-DL_-SXBI.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-JxJnisR-.js → useChargeCardPusherEvents-lx0W0oNg.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-Dv9IT8_0.js → useEmailConnectResultRefresh-DMm4oCVO.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DA5FMzag.js → useInitialThreadRequest-CPJRbiPZ.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-CpacCRSq.js → useTaskManagerAccess-B4qnBqXa.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CcIRdnMY.js → useTaskManagerPusherEvents-DRAANaIB.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BOIdrs8l.js → withTransactionSidePanel-DPzo8PmT.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-OTisIlmp.js","assets/sentry-CoKtZcTW.js","assets/core-C9Jt3gNb.js","assets/index-JIbs7_F9.js","assets/DefaultTenantHome-
|
|
2
|
-
import{R as B,b as c5e,a as m,r as im,g as cCt,p as Ure,d as Nje,f as Zon,s as _je,i as Jon,w as Xon,j as ern,S as trn,k as nrn,l as irn,m as orn,n as rrn,o as arn,q as srn}from"./sentry-CoKtZcTW.js";import{L as lrn,C as Vje,_ as Qp,a as crn,b as Rz,c as drn,d as Ree,e as zz,u as dCt,T as urn,f as prn,g as hrn,h as mrn,i as grn,k as uCt,l as frn,m as xrn,j as on}from"./liveblocks-Bym0XjRt.js";import{f as pCt,r as ka,P as Pl,R as yrn,O as brn,N as hCt,u as Pp,g as Ng,h as zee,i as mCt,j as zr,m as O8e,s as IK,k as gCt,l as wrn,n as Crn,o as Y1,p as vrn,B as Arn}from"./core-C9Jt3gNb.js";import{L as Hje,bl as Srn,bm as krn,bn as Nz,bo as jrn,bp as $rn,bq as xs,br as Yt,bs as yT,bt as fCt,bu as H3,bv as Ern,bw as u7,bx as Is,by as Irn,bz as Drn,bA as Nee,bB as Trn,bC as R1,bD as zp,bE as SR,bF as I9,bG as fn,bH as xCt,bI as T1,bJ as Sa,bK as gD,bL as yCt,bM as bCt,bN as F8e,bO as Dx,bP as Nu,bQ as Ty,bR as Lrn,bS as Sc,bT as Brn,bU as bT,bV as Prn,bW as Mrn,bX as DK,bY as Orn,bZ as Frn,b_ as TK,b$ as Rrn,c0 as zrn,c1 as D9,c2 as Uje,c3 as Nrn,c4 as _rn,c5 as Vrn,c6 as Hrn,c7 as Urn,c8 as Wrn,c9 as Qrn,ca as Ly,cb as _ee,cc as Yrn,cd as Vee,ce as Hee,cf as Uee,cg as R8e,ch as FA,ci as RA,cj as _z,ck as fD,cl as xD,cm as zA,cn as Wee,co as dA,cp as Grn,cq as Wje,cr as qrn,cs as Krn,ct as Zrn,cu as Jrn,cv as wCt,cw as Xrn,cx as ean,cy as gw,cz as Qje,cA as tan,cB as nan,cC as ian,cD as yS,cE as bS,cF as CCt,cG as vCt,cH as z8e,cI as oan,cJ as ACt,cK as ran,cL as LK,cM as SCt,cN as aan,cO as kCt,cP as san,cQ as XM,cR as lan,cS as can,cT as Yje,cU as dan,cV as N8e,cW as _8e,cX as uan,cY as pan,cZ as han,c_ as man,c$ as E_,d0 as yD,d1 as I_,d2 as gan,d3 as fan,d4 as jCt,d5 as xan,d6 as yan,d7 as ban,d8 as wan,d9 as Can,da as $Ct,db as Gje,dc as van,dd as V8e,de as Aan,df as San,dg as kan,dh as ECt,di as Xd,dj as Fl,dk as Qee,dl as jan,dm as $an,dn as A1,dp as ICt,dq as Ean,dr as kR,ds as uA,dt as Os,du as qje,dv as Ian,dw as Dan,dx as Tan,dy as DCt,dz as H8e,dA as D_,dB as TCt,dC as Lan,dD as Ban,dE as Pan,dF as Man,dG as Oan,dH as gg,dI as Fan,dJ as Ran,dK as zan,dL as Nan,dM as T_,dN as NA,dO as Yee,dP as _an,dQ as Van,dR as wS,dS as L1,dT as LCt,dU as BCt,dV as Han,dW as PCt,dX as Uan,dY as Wan,dZ as Qan,d_ as Yan,d$ as wT,e0 as U8e,e1 as W8e,e2 as Gan,e3 as MCt,e4 as OCt,e5 as FCt,e6 as RCt,e7 as zCt,e8 as NCt,e9 as qan,_ as Ad,ea as CT,eb as Kan,ec as Kje,ed as Gee,ee as Zan,ef as Jan,eg as _Ct,eh as Xan,ei as nF,ej as pm,ek as By,el as VCt,em as HCt,en as esn,eo as UCt,ep as d5e,eq as tsn,er as KG,es as nsn,et as isn,eu as osn,ev as rsn,ew as asn,ex as WCt,ey as QCt,ez as ssn,eA as lsn,eB as YCt,eC as iF,eD as oF,eE as GCt,eF as csn,eG as dsn,eH as Q8e,eI as usn,eJ as psn,eK as hsn,eL as Y8e,eM as qCt,eN as KCt,eO as G8e,eP as vT,eQ as qee,eR as q8e,eS as K8e,eT as Z8e,eU as J8e,eV as msn,eW as gsn,eX as ZCt,eY as Zje,eZ as fsn,e_ as xsn,e$ as B1,f0 as ysn,f1 as Kee,f2 as JCt,f3 as XCt,f4 as bsn,f5 as X8e,f6 as ewe,f7 as wsn,f8 as Csn,f9 as vsn,fa as Asn,fb as Ssn,fc as ksn,fd as Ig,fe as Jje,ff as evt,fg as jsn,fh as $sn,fi as Esn,fj as tvt,fk as nvt,fl as ivt,fm as ovt,fn as rvt,fo as avt,fp as Isn,fq as bD,fr as Dsn,fs as Tsn,ft as Lsn,fu as Bsn,fv as svt,fw as lvt,fx as Xje,fy as e$e,fz as Psn,fA as Msn,fB as t$e,fC as n$e,fD as Osn,fE as Fsn,fF as u5e,fG as Rsn,v as zsn,fH as Zee,fI as Np,fJ as cvt,fK as dvt,fL as Nsn,fM as _sn,fN as i$e,fO as Vsn,fP as Hsn,fQ as Usn,fR as Wsn,fS as Qsn,fT as Ysn,fU as Gsn,fV as qsn,fW as Ksn,fX as Zsn,fY as Jsn,fZ as Xsn,f_ as eln,f$ as tln,g0 as nln,g1 as iln,g2 as oln,g3 as rln,g4 as aln,g5 as o$e,g6 as sln,g7 as lln,g8 as cln,g9 as dln,ga as uln,gb as uvt,gc as Jee,gd as twe,ge as pvt,gf as pln,gg as hln,gh as mln,gi as hvt,gj as r$e,gk as mvt,gl as gvt,gm as gln,gn as fvt,go as xvt,gp as fln,gq as xln,gr as p5e,gs as yln,gt as rF,gu as bln,gv as wln,gw as Cln,gx as vln,gy as Aln,gz as Sln,gA as kln,gB as jln,gC as $ln,gD as Eln,gE as Iln,gF as Dln,gG as yvt,gH as Tln,gI as Lln,gJ as Bln,gK as a$e,gL as Pln,gM as Mln,gN as Oln,gO as Fln,gP as Rln,gQ as zln,gR as Nln,gS as bvt,gT as wvt,gU as _ln,gV as Cvt,gW as Vln,gX as Hln,gY as h5e,gZ as Uln,g_ as Wln,g$ as Qln,h0 as Yln,h1 as Gln,h2 as qln,h3 as s$e,h4 as Kln,h5 as Zln,h6 as Jln}from"./zeni-epic-state-OTisIlmp.js";import{j as Mo,c as Ie,k as pi,a as l$e,b as vvt,C as Avt,T as Xln,M as ecn,n as a,u as Pe,d as li,e as Svt,G as Xee,A as c$e,R as tcn,D as Yc,F as ncn,f as BK,g as m5e,P as U3,h as icn,S as ete,i as ocn,l as rcn,m as jR,o as acn,s as CS,p as scn}from"./mui-BsgiBiT9.js";import{r as lcn,m as sg}from"./analytics-DbFSqIth.js";import{u as _1}from"./plaid-C8X6T_ms.js";import{D as nwe,H as tte,g as ccn,O as dcn,S as ucn,T as pcn,u as iwe,a as owe,b as hcn}from"./dnd-KhFMfpEU.js";import{l as rwe}from"./stripe-cKAAJElX.js";import{L as II}from"./lottie-CvA92JCl.js";import{r as Gc}from"./lexical-CpBrNOz8.js";import{D as g5e,P as f5e,_ as kvt,a as jvt}from"./pdf-O569E9WB.js";import{R as _A,G as T9,H as _p,X as Ul,Y as Al,I as bd,J as L9,K as r8,L as pA,M as eu,N as AT,O as $vt,P as mcn,Q as gcn,S as nte,U as fcn,V as awe,W as xcn,Z as ycn,_ as bcn,d as wcn}from"./recharts-GCccddBO.js";import{r as Ccn,n as d$e}from"./utils-CNqTTzSx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cb632fb7-8015-466f-93e2-8106238bd2da",e._sentryDebugIdIdentifier="sentry-dbid-cb632fb7-8015-466f-93e2-8106238bd2da")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var u$e,L_={},vcn=(function(){if(u$e)return L_;u$e=1;var e=pCt();return L_.createRoot=e.createRoot,L_.hydrateRoot=e.hydrateRoot,L_})(),Wh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof c5e<"u"?c5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p$e,h$e,m$e={exports:{}},IL={};function Evt(){return h$e||(h$e=1,m$e.exports=(function(){if(p$e)return IL;p$e=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return IL.Fragment=i,IL.jsx=c,IL.jsxs=c,IL})()),m$e.exports}var t=Evt();const Acn=m.createContext(null),Wre={didCatch:!1,error:null};let Scn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Wre}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(Wre)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&n.error!==null&&(function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some(((u,p)=>!Object.is(u,d[p])))})(e.resetKeys,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Wre))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(Acn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var g$e,f$e,x$e,Qre,y$e,b$e,w$e,C$e,v$e,Yre={exports:{}};function kcn(){return g$e||(g$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(Yre.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var Ee in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var Ce,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ce);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,Ee,Re,Qe,Ye,Mt,Zt;switch(Ye=pe*(1-X),Mt=pe*(1-(Qe=6*G-(Re=Math.floor(6*G)))*X),Zt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ce=Zt,Ee=Ye;break;case 1:xe=Mt,Ce=pe,Ee=Ye;break;case 2:xe=Ye,Ce=pe,Ee=Zt;break;case 3:xe=Ye,Ce=Mt,Ee=pe;break;case 4:xe=Zt,Ce=Ye,Ee=pe;break;case 5:xe=pe,Ce=Ye,Ee=Mt}return[xe,Ce,Ee]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ce-Ee,Qe=Ce===0?0:Re/Ce,Ye=Ce/255;switch(Ce){case Ee:xe=0;break;case G:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-G+2*Re,xe/=6*Re;break;case pe:xe=G-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function fe(G){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},fe(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(ct){G({data:ct})}},Ee={postMessage:function(ct){Ce.onmessage({data:ct})}};function Re(ct){if(window.Worker&&window.Blob&&d()){var vt=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(vt);return new Worker(Et)}return G=ct,Ce}function Qe(){X||(X=Re((function(ct){function vt(){function Gt(zt,xn){var ft,st,ze,dt,Ct,gi,Zo=zt.length;for(st=0;st<Zo;st+=1)if("ks"in(ft=zt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Po=ft.masksProperties;for(dt=Po.length,ze=0;ze<dt;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(gi=Po[ze].pt.k.length,Ct=0;Ct<gi;Ct+=1)Po[ze].pt.k[Ct].s&&qe(Po[ze].pt.k[Ct].s[0]),Po[ze].pt.k[Ct].e&&qe(Po[ze].pt.k[Ct].e[0])}ft.ty===0?(ft.layers=He(ft.refId,xn),Gt(ft.layers,xn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Ko(ft)}}function Xt(zt,xn){if(zt){var ft=0,st=zt.length;for(ft=0;ft<st;ft+=1)zt[ft].t===1&&(zt[ft].data.layers=He(zt[ft].data.refId,xn),Gt(zt[ft].data.layers,xn))}}function Je(zt,xn){for(var ft=0,st=xn.length;ft<st;){if(xn[ft].id===zt)return xn[ft];ft+=1}return null}function He(zt,xn){var ft=Je(zt,xn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(zt){var xn,ft,st;for(xn=zt.length-1;xn>=0;xn-=1)if(zt[xn].ty==="sh")if(zt[xn].ks.k.i)qe(zt[xn].ks.k);else for(st=zt[xn].ks.k.length,ft=0;ft<st;ft+=1)zt[xn].ks.k[ft].s&&qe(zt[xn].ks.k[ft].s[0]),zt[xn].ks.k[ft].e&&qe(zt[xn].ks.k[ft].e[0]);else zt[xn].ty==="gr"&&Ne(zt[xn].it)}function qe(zt){var xn,ft=zt.i.length;for(xn=0;xn<ft;xn+=1)zt.i[xn][0]+=zt.v[xn][0],zt.i[xn][1]+=zt.v[xn][1],zt.o[xn][0]+=zt.v[xn][0],zt.o[xn][1]+=zt.v[xn][1]}function gt(zt,xn){var ft=xn?xn.split("."):[100,100,100];return zt[0]>ft[0]||!(ft[0]>zt[0])&&(zt[1]>ft[1]||!(ft[1]>zt[1])&&(zt[2]>ft[2]||!(ft[2]>zt[2])&&null))}var an=(function(){var zt=[4,4,14];function xn(st){var ze=st.t.d;st.t.d={k:[{s:ze,t:0}]}}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===5&&xn(st[ze])}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),cn=(function(){var zt=[4,7,99];return function(xn){if(xn.chars&&!gt(zt,xn.v)){var ft,st=xn.chars.length;for(ft=0;ft<st;ft+=1){var ze=xn.chars[ft];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[ft].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ot=(function(){var zt=[5,7,15];function xn(st){var ze=st.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===5&&xn(st[ze])}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),po=(function(){var zt=[4,1,9];function xn(st){var ze,dt,Ct,gi=st.length;for(ze=0;ze<gi;ze+=1)if(st[ze].ty==="gr")xn(st[ze].it);else if(st[ze].ty==="fl"||st[ze].ty==="st")if(st[ze].c.k&&st[ze].c.k[0].i)for(Ct=st[ze].c.k.length,dt=0;dt<Ct;dt+=1)st[ze].c.k[dt].s&&(st[ze].c.k[dt].s[0]/=255,st[ze].c.k[dt].s[1]/=255,st[ze].c.k[dt].s[2]/=255,st[ze].c.k[dt].s[3]/=255),st[ze].c.k[dt].e&&(st[ze].c.k[dt].e[0]/=255,st[ze].c.k[dt].e[1]/=255,st[ze].c.k[dt].e[2]/=255,st[ze].c.k[dt].e[3]/=255);else st[ze].c.k[0]/=255,st[ze].c.k[1]/=255,st[ze].c.k[2]/=255,st[ze].c.k[3]/=255}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===4&&xn(st[ze].shapes)}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),$o=(function(){var zt=[4,4,18];function xn(st){var ze,dt,Ct;for(ze=st.length-1;ze>=0;ze-=1)if(st[ze].ty==="sh")if(st[ze].ks.k.i)st[ze].ks.k.c=st[ze].closed;else for(Ct=st[ze].ks.k.length,dt=0;dt<Ct;dt+=1)st[ze].ks.k[dt].s&&(st[ze].ks.k[dt].s[0].c=st[ze].closed),st[ze].ks.k[dt].e&&(st[ze].ks.k[dt].e[0].c=st[ze].closed);else st[ze].ty==="gr"&&xn(st[ze].it)}function ft(st){var ze,dt,Ct,gi,Zo,Po,wa=st.length;for(dt=0;dt<wa;dt+=1){if((ze=st[dt]).hasMask){var Jo=ze.masksProperties;for(gi=Jo.length,Ct=0;Ct<gi;Ct+=1)if(Jo[Ct].pt.k.i)Jo[Ct].pt.k.c=Jo[Ct].cl;else for(Po=Jo[Ct].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[Ct].pt.k[Zo].s&&(Jo[Ct].pt.k[Zo].s[0].c=Jo[Ct].cl),Jo[Ct].pt.k[Zo].e&&(Jo[Ct].pt.k[Zo].e[0].c=Jo[Ct].cl)}ze.ty===4&&xn(ze.shapes)}}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})();function si(zt){zt.__complete||(po(zt),an(zt),cn(zt),Ot(zt),$o(zt),Gt(zt.layers,zt.assets),Xt(zt.chars,zt.assets),zt.__complete=!0)}function Ko(zt){zt.t.a.length===0&&zt.t.p}var lo={};return lo.completeData=si,lo.checkColors=po,lo.checkChars=cn,lo.checkPathProperties=Ot,lo.checkShapes=$o,lo.completeLayers=Gt,lo}if(Ee.dataManager||(Ee.dataManager=vt()),Ee.assetLoader||(Ee.assetLoader=(function(){function Gt(Je){var He=Je.getResponseHeader("content-type");return He&&Je.responseType==="json"&&He.indexOf("json")!==-1||Je.response&&fe(Je.response)==="object"?Je.response:Je.response&&typeof Je.response=="string"?JSON.parse(Je.response):Je.responseText?JSON.parse(Je.responseText):null}function Xt(Je,He,Ne,qe){var gt,an=new XMLHttpRequest;try{an.responseType="json"}catch{}an.onreadystatechange=function(){if(an.readyState===4)if(an.status===200)gt=Gt(an),Ne(gt);else try{gt=Gt(an),Ne(gt)}catch(cn){qe&&qe(cn)}};try{an.open(["G","E","T"].join(""),Je,!0)}catch{an.open(["G","E","T"].join(""),He+"/"+Je,!0)}an.send()}return{load:Xt}})()),ct.data.type==="loadAnimation")Ee.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){Ee.dataManager.completeData(Gt),Ee.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){Ee.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var Et=ct.data.animation;Ee.dataManager.completeData(Et),Ee.postMessage({id:ct.data.id,payload:Et,status:"success"})}else ct.data.type==="loadData"&&Ee.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){Ee.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){Ee.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var vt=ct.data,Et=vt.id,Gt=xe[Et];xe[Et]=null,vt.status==="success"?Gt.onComplete(vt.payload):Gt.onError&&Gt.onError()})}function Ye(ct,vt){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ct,onError:vt},Et}function Mt(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Zt(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Xe(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"complete",animation:ct,id:Gt})}return{loadAnimation:Mt,loadData:Zt,completeAnimation:Xe}})(),oe=(function(){var G=(function(){var Je=h("canvas");Je.width=1,Je.height=1;var He=Je.getContext("2d");return He.fillStyle="rgba(0,0,0,0)",He.fillRect(0,0,1,1),Je})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Je,He,Ne){var qe="";if(Je.e)qe=Je.p;else if(He){var gt=Je.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=He+gt}else qe=Ne,qe+=Je.u?Je.u:"",qe+=Je.p;return qe}function Ce(Je){var He=0,Ne=setInterval((function(){(Je.getBBox().width||He>500)&&(this._imageLoaded(),clearInterval(Ne)),He+=1}).bind(this),50)}function Ee(Je){var He=xe(Je,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",He),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Je};return qe}function Re(Je){var He=xe(Je,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=He;var qe={img:Ne,assetData:Je};return qe}function Qe(Je){var He={assetData:Je},Ne=xe(Je,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){He.img=qe,this._footageLoaded()}).bind(this),(function(){He.img={},this._footageLoaded()}).bind(this)),He}function Ye(Je,He){this.imagesLoadedCb=He;var Ne,qe=Je.length;for(Ne=0;Ne<qe;Ne+=1)Je[Ne].layers||(Je[Ne].t&&Je[Ne].t!=="seq"?Je[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Je[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Je[Ne]))))}function Mt(Je){this.path=Je||""}function Zt(Je){this.assetsPath=Je||""}function Xe(Je){for(var He=0,Ne=this.images.length;He<Ne;){if(this.images[He].assetData===Je)return this.images[He].img;He+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function vt(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function Gt(Je,He){Je==="svg"?(this._elementHelper=He,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Xt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ce.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Xt.prototype={loadAssets:Ye,setAssetsPath:Zt,setPath:Mt,loadedImages:vt,loadedFootages:Et,destroy:ct,getAsset:Xe,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Gt},Xt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-OTisIlmp.js","assets/sentry-CoKtZcTW.js","assets/core-C9Jt3gNb.js","assets/index-JIbs7_F9.js","assets/DefaultTenantHome-DgZZzSS3.js","assets/mui-BsgiBiT9.js","assets/getLocaleForTenant-VEtlPr-d.js","assets/analytics-DbFSqIth.js","assets/utils-CNqTTzSx.js","assets/AppDrawer-IgFoNmoU.js","assets/InboxNotificationsProvider-Bz8aI0zf.js","assets/useTaskManagerAccess-B4qnBqXa.js","assets/expenseAutomationHelper-D-1MzDTJ.js","assets/ScreenRoutes-BETRDGIK.js","assets/analyticsHelper-DJg-y5OM.js","assets/ConnectionAuthScreen-CaChuRRr.js","assets/AccountMappingScreen-BkDkFrFJ.js","assets/MobileAppDrawer-tz9GmHDM.js","assets/QBOConnectionScreen-D1O6bt7C.js","assets/empty-D0s_5kET.js","assets/index-B3Xhbg9K.js","assets/url-llYM4lhi.js","assets/index-CIoiM__n.js","assets/decodeURIComponentSafe-Cr8jQXNX.js","assets/accountMappingHelper-CvrKmWxH.js","assets/SignInScreen-CsHUYOP8.js","assets/useDeviceId-Cf3xan56.js","assets/MagicLinkSignInScreen-D3EUW5Lx.js","assets/NotFoundScreen-DiDzsmTQ.js","assets/MagicLinkRoutes-6zPm7Mq6.js","assets/PaymentLinkScreen-DKlYcyU-.js","assets/WiseConfirmationScreen-BulJKPGJ.js","assets/HubSpotOAuthCallbackScreen-3hGk6JKH.js","assets/CustomerOnboardingAuthScreen-Cy2yXNUw.js","assets/SignOutScreen-hEqypkGs.js","assets/OAuthConsentScreen-WkoAUQ1C.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as c5e,a as m,r as im,g as cCt,p as Ure,d as Nje,f as Zon,s as _je,i as Jon,w as Xon,j as ern,S as trn,k as nrn,l as irn,m as orn,n as rrn,o as arn,q as srn}from"./sentry-CoKtZcTW.js";import{L as lrn,C as Vje,_ as Qp,a as crn,b as Rz,c as drn,d as Ree,e as zz,u as dCt,T as urn,f as prn,g as hrn,h as mrn,i as grn,k as uCt,l as frn,m as xrn,j as on}from"./liveblocks-Bym0XjRt.js";import{f as pCt,r as ka,P as Pl,R as yrn,O as brn,N as hCt,u as Pp,g as Ng,h as zee,i as mCt,j as zr,m as O8e,s as IK,k as gCt,l as wrn,n as Crn,o as Y1,p as vrn,B as Arn}from"./core-C9Jt3gNb.js";import{L as Hje,bl as Srn,bm as krn,bn as Nz,bo as jrn,bp as $rn,bq as xs,br as Yt,bs as yT,bt as fCt,bu as H3,bv as Ern,bw as u7,bx as Is,by as Irn,bz as Drn,bA as Nee,bB as Trn,bC as R1,bD as zp,bE as SR,bF as I9,bG as fn,bH as xCt,bI as T1,bJ as Sa,bK as gD,bL as yCt,bM as bCt,bN as F8e,bO as Dx,bP as Nu,bQ as Ty,bR as Lrn,bS as Sc,bT as Brn,bU as bT,bV as Prn,bW as Mrn,bX as DK,bY as Orn,bZ as Frn,b_ as TK,b$ as Rrn,c0 as zrn,c1 as D9,c2 as Uje,c3 as Nrn,c4 as _rn,c5 as Vrn,c6 as Hrn,c7 as Urn,c8 as Wrn,c9 as Qrn,ca as Ly,cb as _ee,cc as Yrn,cd as Vee,ce as Hee,cf as Uee,cg as R8e,ch as FA,ci as RA,cj as _z,ck as fD,cl as xD,cm as zA,cn as Wee,co as dA,cp as Grn,cq as Wje,cr as qrn,cs as Krn,ct as Zrn,cu as Jrn,cv as wCt,cw as Xrn,cx as ean,cy as gw,cz as Qje,cA as tan,cB as nan,cC as ian,cD as yS,cE as bS,cF as CCt,cG as vCt,cH as z8e,cI as oan,cJ as ACt,cK as ran,cL as LK,cM as SCt,cN as aan,cO as kCt,cP as san,cQ as XM,cR as lan,cS as can,cT as Yje,cU as dan,cV as N8e,cW as _8e,cX as uan,cY as pan,cZ as han,c_ as man,c$ as E_,d0 as yD,d1 as I_,d2 as gan,d3 as fan,d4 as jCt,d5 as xan,d6 as yan,d7 as ban,d8 as wan,d9 as Can,da as $Ct,db as Gje,dc as van,dd as V8e,de as Aan,df as San,dg as kan,dh as ECt,di as Xd,dj as Fl,dk as Qee,dl as jan,dm as $an,dn as A1,dp as ICt,dq as Ean,dr as kR,ds as uA,dt as Os,du as qje,dv as Ian,dw as Dan,dx as Tan,dy as DCt,dz as H8e,dA as D_,dB as TCt,dC as Lan,dD as Ban,dE as Pan,dF as Man,dG as Oan,dH as gg,dI as Fan,dJ as Ran,dK as zan,dL as Nan,dM as T_,dN as NA,dO as Yee,dP as _an,dQ as Van,dR as wS,dS as L1,dT as LCt,dU as BCt,dV as Han,dW as PCt,dX as Uan,dY as Wan,dZ as Qan,d_ as Yan,d$ as wT,e0 as U8e,e1 as W8e,e2 as Gan,e3 as MCt,e4 as OCt,e5 as FCt,e6 as RCt,e7 as zCt,e8 as NCt,e9 as qan,_ as Ad,ea as CT,eb as Kan,ec as Kje,ed as Gee,ee as Zan,ef as Jan,eg as _Ct,eh as Xan,ei as nF,ej as pm,ek as By,el as VCt,em as HCt,en as esn,eo as UCt,ep as d5e,eq as tsn,er as KG,es as nsn,et as isn,eu as osn,ev as rsn,ew as asn,ex as WCt,ey as QCt,ez as ssn,eA as lsn,eB as YCt,eC as iF,eD as oF,eE as GCt,eF as csn,eG as dsn,eH as Q8e,eI as usn,eJ as psn,eK as hsn,eL as Y8e,eM as qCt,eN as KCt,eO as G8e,eP as vT,eQ as qee,eR as q8e,eS as K8e,eT as Z8e,eU as J8e,eV as msn,eW as gsn,eX as ZCt,eY as Zje,eZ as fsn,e_ as xsn,e$ as B1,f0 as ysn,f1 as Kee,f2 as JCt,f3 as XCt,f4 as bsn,f5 as X8e,f6 as ewe,f7 as wsn,f8 as Csn,f9 as vsn,fa as Asn,fb as Ssn,fc as ksn,fd as Ig,fe as Jje,ff as evt,fg as jsn,fh as $sn,fi as Esn,fj as tvt,fk as nvt,fl as ivt,fm as ovt,fn as rvt,fo as avt,fp as Isn,fq as bD,fr as Dsn,fs as Tsn,ft as Lsn,fu as Bsn,fv as svt,fw as lvt,fx as Xje,fy as e$e,fz as Psn,fA as Msn,fB as t$e,fC as n$e,fD as Osn,fE as Fsn,fF as u5e,fG as Rsn,v as zsn,fH as Zee,fI as Np,fJ as cvt,fK as dvt,fL as Nsn,fM as _sn,fN as i$e,fO as Vsn,fP as Hsn,fQ as Usn,fR as Wsn,fS as Qsn,fT as Ysn,fU as Gsn,fV as qsn,fW as Ksn,fX as Zsn,fY as Jsn,fZ as Xsn,f_ as eln,f$ as tln,g0 as nln,g1 as iln,g2 as oln,g3 as rln,g4 as aln,g5 as o$e,g6 as sln,g7 as lln,g8 as cln,g9 as dln,ga as uln,gb as uvt,gc as Jee,gd as twe,ge as pvt,gf as pln,gg as hln,gh as mln,gi as hvt,gj as r$e,gk as mvt,gl as gvt,gm as gln,gn as fvt,go as xvt,gp as fln,gq as xln,gr as p5e,gs as yln,gt as rF,gu as bln,gv as wln,gw as Cln,gx as vln,gy as Aln,gz as Sln,gA as kln,gB as jln,gC as $ln,gD as Eln,gE as Iln,gF as Dln,gG as yvt,gH as Tln,gI as Lln,gJ as Bln,gK as a$e,gL as Pln,gM as Mln,gN as Oln,gO as Fln,gP as Rln,gQ as zln,gR as Nln,gS as bvt,gT as wvt,gU as _ln,gV as Cvt,gW as Vln,gX as Hln,gY as h5e,gZ as Uln,g_ as Wln,g$ as Qln,h0 as Yln,h1 as Gln,h2 as qln,h3 as s$e,h4 as Kln,h5 as Zln,h6 as Jln}from"./zeni-epic-state-OTisIlmp.js";import{j as Mo,c as Ie,k as pi,a as l$e,b as vvt,C as Avt,T as Xln,M as ecn,n as a,u as Pe,d as li,e as Svt,G as Xee,A as c$e,R as tcn,D as Yc,F as ncn,f as BK,g as m5e,P as U3,h as icn,S as ete,i as ocn,l as rcn,m as jR,o as acn,s as CS,p as scn}from"./mui-BsgiBiT9.js";import{r as lcn,m as sg}from"./analytics-DbFSqIth.js";import{u as _1}from"./plaid-C8X6T_ms.js";import{D as nwe,H as tte,g as ccn,O as dcn,S as ucn,T as pcn,u as iwe,a as owe,b as hcn}from"./dnd-KhFMfpEU.js";import{l as rwe}from"./stripe-cKAAJElX.js";import{L as II}from"./lottie-CvA92JCl.js";import{r as Gc}from"./lexical-CpBrNOz8.js";import{D as g5e,P as f5e,_ as kvt,a as jvt}from"./pdf-O569E9WB.js";import{R as _A,G as T9,H as _p,X as Ul,Y as Al,I as bd,J as L9,K as r8,L as pA,M as eu,N as AT,O as $vt,P as mcn,Q as gcn,S as nte,U as fcn,V as awe,W as xcn,Z as ycn,_ as bcn,d as wcn}from"./recharts-GCccddBO.js";import{r as Ccn,n as d$e}from"./utils-CNqTTzSx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7ea67c21-2a1b-49ab-86ae-f5a600b38a07",e._sentryDebugIdIdentifier="sentry-dbid-7ea67c21-2a1b-49ab-86ae-f5a600b38a07")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var u$e,L_={},vcn=(function(){if(u$e)return L_;u$e=1;var e=pCt();return L_.createRoot=e.createRoot,L_.hydrateRoot=e.hydrateRoot,L_})(),Wh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof c5e<"u"?c5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p$e,h$e,m$e={exports:{}},IL={};function Evt(){return h$e||(h$e=1,m$e.exports=(function(){if(p$e)return IL;p$e=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return IL.Fragment=i,IL.jsx=c,IL.jsxs=c,IL})()),m$e.exports}var t=Evt();const Acn=m.createContext(null),Wre={didCatch:!1,error:null};let Scn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Wre}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(Wre)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&n.error!==null&&(function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some(((u,p)=>!Object.is(u,d[p])))})(e.resetKeys,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Wre))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(Acn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var g$e,f$e,x$e,Qre,y$e,b$e,w$e,C$e,v$e,Yre={exports:{}};function kcn(){return g$e||(g$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(Yre.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var Ee in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var Ce,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ce);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,Ee,Re,Qe,Ye,Mt,Zt;switch(Ye=pe*(1-X),Mt=pe*(1-(Qe=6*G-(Re=Math.floor(6*G)))*X),Zt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ce=Zt,Ee=Ye;break;case 1:xe=Mt,Ce=pe,Ee=Ye;break;case 2:xe=Ye,Ce=pe,Ee=Zt;break;case 3:xe=Ye,Ce=Mt,Ee=pe;break;case 4:xe=Zt,Ce=Ye,Ee=pe;break;case 5:xe=pe,Ce=Ye,Ee=Mt}return[xe,Ce,Ee]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ce-Ee,Qe=Ce===0?0:Re/Ce,Ye=Ce/255;switch(Ce){case Ee:xe=0;break;case G:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-G+2*Re,xe/=6*Re;break;case pe:xe=G-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function fe(G){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},fe(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(ct){G({data:ct})}},Ee={postMessage:function(ct){Ce.onmessage({data:ct})}};function Re(ct){if(window.Worker&&window.Blob&&d()){var vt=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(vt);return new Worker(Et)}return G=ct,Ce}function Qe(){X||(X=Re((function(ct){function vt(){function Gt(zt,xn){var ft,st,ze,dt,Ct,gi,Zo=zt.length;for(st=0;st<Zo;st+=1)if("ks"in(ft=zt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Po=ft.masksProperties;for(dt=Po.length,ze=0;ze<dt;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(gi=Po[ze].pt.k.length,Ct=0;Ct<gi;Ct+=1)Po[ze].pt.k[Ct].s&&qe(Po[ze].pt.k[Ct].s[0]),Po[ze].pt.k[Ct].e&&qe(Po[ze].pt.k[Ct].e[0])}ft.ty===0?(ft.layers=He(ft.refId,xn),Gt(ft.layers,xn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Ko(ft)}}function Xt(zt,xn){if(zt){var ft=0,st=zt.length;for(ft=0;ft<st;ft+=1)zt[ft].t===1&&(zt[ft].data.layers=He(zt[ft].data.refId,xn),Gt(zt[ft].data.layers,xn))}}function Je(zt,xn){for(var ft=0,st=xn.length;ft<st;){if(xn[ft].id===zt)return xn[ft];ft+=1}return null}function He(zt,xn){var ft=Je(zt,xn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(zt){var xn,ft,st;for(xn=zt.length-1;xn>=0;xn-=1)if(zt[xn].ty==="sh")if(zt[xn].ks.k.i)qe(zt[xn].ks.k);else for(st=zt[xn].ks.k.length,ft=0;ft<st;ft+=1)zt[xn].ks.k[ft].s&&qe(zt[xn].ks.k[ft].s[0]),zt[xn].ks.k[ft].e&&qe(zt[xn].ks.k[ft].e[0]);else zt[xn].ty==="gr"&&Ne(zt[xn].it)}function qe(zt){var xn,ft=zt.i.length;for(xn=0;xn<ft;xn+=1)zt.i[xn][0]+=zt.v[xn][0],zt.i[xn][1]+=zt.v[xn][1],zt.o[xn][0]+=zt.v[xn][0],zt.o[xn][1]+=zt.v[xn][1]}function gt(zt,xn){var ft=xn?xn.split("."):[100,100,100];return zt[0]>ft[0]||!(ft[0]>zt[0])&&(zt[1]>ft[1]||!(ft[1]>zt[1])&&(zt[2]>ft[2]||!(ft[2]>zt[2])&&null))}var an=(function(){var zt=[4,4,14];function xn(st){var ze=st.t.d;st.t.d={k:[{s:ze,t:0}]}}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===5&&xn(st[ze])}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),cn=(function(){var zt=[4,7,99];return function(xn){if(xn.chars&&!gt(zt,xn.v)){var ft,st=xn.chars.length;for(ft=0;ft<st;ft+=1){var ze=xn.chars[ft];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[ft].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ot=(function(){var zt=[5,7,15];function xn(st){var ze=st.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===5&&xn(st[ze])}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),po=(function(){var zt=[4,1,9];function xn(st){var ze,dt,Ct,gi=st.length;for(ze=0;ze<gi;ze+=1)if(st[ze].ty==="gr")xn(st[ze].it);else if(st[ze].ty==="fl"||st[ze].ty==="st")if(st[ze].c.k&&st[ze].c.k[0].i)for(Ct=st[ze].c.k.length,dt=0;dt<Ct;dt+=1)st[ze].c.k[dt].s&&(st[ze].c.k[dt].s[0]/=255,st[ze].c.k[dt].s[1]/=255,st[ze].c.k[dt].s[2]/=255,st[ze].c.k[dt].s[3]/=255),st[ze].c.k[dt].e&&(st[ze].c.k[dt].e[0]/=255,st[ze].c.k[dt].e[1]/=255,st[ze].c.k[dt].e[2]/=255,st[ze].c.k[dt].e[3]/=255);else st[ze].c.k[0]/=255,st[ze].c.k[1]/=255,st[ze].c.k[2]/=255,st[ze].c.k[3]/=255}function ft(st){var ze,dt=st.length;for(ze=0;ze<dt;ze+=1)st[ze].ty===4&&xn(st[ze].shapes)}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})(),$o=(function(){var zt=[4,4,18];function xn(st){var ze,dt,Ct;for(ze=st.length-1;ze>=0;ze-=1)if(st[ze].ty==="sh")if(st[ze].ks.k.i)st[ze].ks.k.c=st[ze].closed;else for(Ct=st[ze].ks.k.length,dt=0;dt<Ct;dt+=1)st[ze].ks.k[dt].s&&(st[ze].ks.k[dt].s[0].c=st[ze].closed),st[ze].ks.k[dt].e&&(st[ze].ks.k[dt].e[0].c=st[ze].closed);else st[ze].ty==="gr"&&xn(st[ze].it)}function ft(st){var ze,dt,Ct,gi,Zo,Po,wa=st.length;for(dt=0;dt<wa;dt+=1){if((ze=st[dt]).hasMask){var Jo=ze.masksProperties;for(gi=Jo.length,Ct=0;Ct<gi;Ct+=1)if(Jo[Ct].pt.k.i)Jo[Ct].pt.k.c=Jo[Ct].cl;else for(Po=Jo[Ct].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[Ct].pt.k[Zo].s&&(Jo[Ct].pt.k[Zo].s[0].c=Jo[Ct].cl),Jo[Ct].pt.k[Zo].e&&(Jo[Ct].pt.k[Zo].e[0].c=Jo[Ct].cl)}ze.ty===4&&xn(ze.shapes)}}return function(st){if(gt(zt,st.v)&&(ft(st.layers),st.assets)){var ze,dt=st.assets.length;for(ze=0;ze<dt;ze+=1)st.assets[ze].layers&&ft(st.assets[ze].layers)}}})();function si(zt){zt.__complete||(po(zt),an(zt),cn(zt),Ot(zt),$o(zt),Gt(zt.layers,zt.assets),Xt(zt.chars,zt.assets),zt.__complete=!0)}function Ko(zt){zt.t.a.length===0&&zt.t.p}var lo={};return lo.completeData=si,lo.checkColors=po,lo.checkChars=cn,lo.checkPathProperties=Ot,lo.checkShapes=$o,lo.completeLayers=Gt,lo}if(Ee.dataManager||(Ee.dataManager=vt()),Ee.assetLoader||(Ee.assetLoader=(function(){function Gt(Je){var He=Je.getResponseHeader("content-type");return He&&Je.responseType==="json"&&He.indexOf("json")!==-1||Je.response&&fe(Je.response)==="object"?Je.response:Je.response&&typeof Je.response=="string"?JSON.parse(Je.response):Je.responseText?JSON.parse(Je.responseText):null}function Xt(Je,He,Ne,qe){var gt,an=new XMLHttpRequest;try{an.responseType="json"}catch{}an.onreadystatechange=function(){if(an.readyState===4)if(an.status===200)gt=Gt(an),Ne(gt);else try{gt=Gt(an),Ne(gt)}catch(cn){qe&&qe(cn)}};try{an.open(["G","E","T"].join(""),Je,!0)}catch{an.open(["G","E","T"].join(""),He+"/"+Je,!0)}an.send()}return{load:Xt}})()),ct.data.type==="loadAnimation")Ee.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){Ee.dataManager.completeData(Gt),Ee.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){Ee.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var Et=ct.data.animation;Ee.dataManager.completeData(Et),Ee.postMessage({id:ct.data.id,payload:Et,status:"success"})}else ct.data.type==="loadData"&&Ee.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){Ee.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){Ee.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var vt=ct.data,Et=vt.id,Gt=xe[Et];xe[Et]=null,vt.status==="success"?Gt.onComplete(vt.payload):Gt.onError&&Gt.onError()})}function Ye(ct,vt){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ct,onError:vt},Et}function Mt(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Zt(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Xe(ct,vt,Et){Qe();var Gt=Ye(vt,Et);X.postMessage({type:"complete",animation:ct,id:Gt})}return{loadAnimation:Mt,loadData:Zt,completeAnimation:Xe}})(),oe=(function(){var G=(function(){var Je=h("canvas");Je.width=1,Je.height=1;var He=Je.getContext("2d");return He.fillStyle="rgba(0,0,0,0)",He.fillRect(0,0,1,1),Je})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Je,He,Ne){var qe="";if(Je.e)qe=Je.p;else if(He){var gt=Je.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=He+gt}else qe=Ne,qe+=Je.u?Je.u:"",qe+=Je.p;return qe}function Ce(Je){var He=0,Ne=setInterval((function(){(Je.getBBox().width||He>500)&&(this._imageLoaded(),clearInterval(Ne)),He+=1}).bind(this),50)}function Ee(Je){var He=xe(Je,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",He),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Je};return qe}function Re(Je){var He=xe(Je,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=He;var qe={img:Ne,assetData:Je};return qe}function Qe(Je){var He={assetData:Je},Ne=xe(Je,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){He.img=qe,this._footageLoaded()}).bind(this),(function(){He.img={},this._footageLoaded()}).bind(this)),He}function Ye(Je,He){this.imagesLoadedCb=He;var Ne,qe=Je.length;for(Ne=0;Ne<qe;Ne+=1)Je[Ne].layers||(Je[Ne].t&&Je[Ne].t!=="seq"?Je[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Je[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Je[Ne]))))}function Mt(Je){this.path=Je||""}function Zt(Je){this.assetsPath=Je||""}function Xe(Je){for(var He=0,Ne=this.images.length;He<Ne;){if(this.images[He].assetData===Je)return this.images[He].img;He+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function vt(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function Gt(Je,He){Je==="svg"?(this._elementHelper=He,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Xt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ce.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Xt.prototype={loadAssets:Ye,setAssetsPath:Zt,setPath:Mt,loadedImages:vt,loadedFootages:Et,destroy:ct,getAsset:Xe,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Gt},Xt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
3
3
|
`),Ce={},Ee=0,Re=0;Re<xe.length;Re+=1)(pe=xe[Re].split(":")).length===2&&(Ce[pe[0]]=pe[1].trim(),Ee+=1);if(Ee===0)throw new Error;return Ce}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ce=X[xe],Ee={time:Ce.tm,duration:Ce.dr};try{Ee.payload=JSON.parse(X[xe].cm)}catch{try{Ee.payload=G(X[xe].cm)}catch{Ee.payload={name:X[xe].cm}}}pe.push(Ee)}return pe}})(),de=(function(){function G(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,Ce=this.compositions.length;xe<Ce;){if(this.compositions[xe].data&&this.compositions[xe].data.nm===pe)return this.compositions[xe].prepareFrame&&this.compositions[xe].data.xt&&this.compositions[xe].prepareFrame(this.currentFrame),this.compositions[xe].compInterface;xe+=1}return null}return X.compositions=[],X.currentFrame=0,X.registerComposition=G,X}})(),ge={},he=function(G,X){ge[G]=X};function ye(G){return ge[G]}function ve(){if(ge.canvas)return"canvas";for(var G in ge)if(ge[G])return G;return""}function we(G){return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},we(G)}var Ae=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=H(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=de(),this.imagePreloader=new oe,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new F("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],Ae),Ae.prototype.setParams=function(G){(G.wrapper||G.container)&&(this.wrapper=G.wrapper||G.container);var X="svg";G.animType?X=G.animType:G.renderer&&(X=G.renderer);var pe=ye(X);this.renderer=new pe(this,G.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,G.loop===""||G.loop===null||G.loop===void 0||G.loop===!0?this.loop=!0:G.loop===!1?this.loop=!1:this.loop=parseInt(G.loop,10),this.autoplay=!("autoplay"in G)||G.autoplay,this.name=G.name?G.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(G,"autoloadSegments")||G.autoloadSegments,this.assetsPath=G.assetsPath,this.initialSegment=G.initialSegment,G.audioFactory&&this.audioController.setAudioFactory(G.audioFactory),G.animationData?this.setupAnimation(G.animationData):G.path&&(G.path.lastIndexOf("\\")!==-1?this.path=G.path.substr(0,G.path.lastIndexOf("\\")+1):this.path=G.path.substr(0,G.path.lastIndexOf("/")+1),this.fileName=G.path.substr(G.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(G.path,this.configAnimation,this.onSetupError))},Ae.prototype.onSetupError=function(){this.trigger("data_failed")},Ae.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},Ae.prototype.setData=function(G,X){X&&we(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:G,animationData:X},xe=G.attributes;pe.path=xe.getNamedItem("data-animation-path")?xe.getNamedItem("data-animation-path").value:xe.getNamedItem("data-bm-path")?xe.getNamedItem("data-bm-path").value:xe.getNamedItem("bm-path")?xe.getNamedItem("bm-path").value:"",pe.animType=xe.getNamedItem("data-anim-type")?xe.getNamedItem("data-anim-type").value:xe.getNamedItem("data-bm-type")?xe.getNamedItem("data-bm-type").value:xe.getNamedItem("bm-type")?xe.getNamedItem("bm-type").value:xe.getNamedItem("data-bm-renderer")?xe.getNamedItem("data-bm-renderer").value:xe.getNamedItem("bm-renderer")?xe.getNamedItem("bm-renderer").value:ve()||"canvas";var Ce=xe.getNamedItem("data-anim-loop")?xe.getNamedItem("data-anim-loop").value:xe.getNamedItem("data-bm-loop")?xe.getNamedItem("data-bm-loop").value:xe.getNamedItem("bm-loop")?xe.getNamedItem("bm-loop").value:"";Ce==="false"?pe.loop=!1:Ce==="true"?pe.loop=!0:Ce!==""&&(pe.loop=parseInt(Ce,10));var Ee=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=Ee!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},Ae.prototype.includeLayers=function(G){G.op>this.animationData.op&&(this.animationData.op=G.op,this.totalFrames=Math.floor(G.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,Ce=xe.length,Ee=G.layers,Re=Ee.length;for(pe=0;pe<Re;pe+=1)for(X=0;X<Ce;){if(xe[X].id===Ee[pe].id){xe[X]=Ee[pe];break}X+=1}if((G.chars||G.fonts)&&(this.renderer.globalData.fontManager.addChars(G.chars),this.renderer.globalData.fontManager.addFonts(G.fonts,this.renderer.globalData.defs)),G.assets)for(Ce=G.assets.length,X=0;X<Ce;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},Ae.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},Ae.prototype.loadNextSegment=function(){var G=this.animationData.segments;if(!G||G.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=G.shift();this.timeCompleted=X.time*this.frameRate;var pe=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ue.loadData(pe,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},Ae.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Ae.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Ae.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Ae.prototype.configAnimation=function(G){if(this.renderer)try{this.animationData=G,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(G),G.assets||(G.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(G.assets),this.markers=ce(G.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},Ae.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Ae.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var G=te();G&&G.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Ae.prototype.resize=function(G,X){var pe=typeof G=="number"?G:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},Ae.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},Ae.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},Ae.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(G){this.triggerRenderFrameError(G)}},Ae.prototype.play=function(G){G&&this.name!==G||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Ae.prototype.pause=function(G){G&&this.name!==G||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Ae.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},Ae.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Ae.prototype.getMarkerData=function(G){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===G)return X;return null},Ae.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&this.goToAndStop(Ce.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},Ae.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&(Ce.duration?this.playSegments([Ce.time,Ce.time+Ce.duration],!0):this.goToAndStop(Ce.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},Ae.prototype.advanceTime=function(G){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+G*this.frameModifier,pe=!1;X>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?X>=this.totalFrames?(this.playCount+=1,this.checkSegments(X%this.totalFrames)||(this.setCurrentRawFrameValue(X%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(X):this.checkSegments(X>this.totalFrames?X%this.totalFrames:0)||(pe=!0,X=this.totalFrames-1):X<0?this.checkSegments(X%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(pe=!0,X=0):(this.setCurrentRawFrameValue(this.totalFrames+X%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(X),pe&&(this.setCurrentRawFrameValue(X),this.pause(),this.trigger("complete"))}},Ae.prototype.adjustSegment=function(G,X){this.playCount=0,G[1]<G[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=G[0]-G[1],this.timeCompleted=this.totalFrames,this.firstFrame=G[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):G[1]>G[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=G[1]-G[0],this.timeCompleted=this.totalFrames,this.firstFrame=G[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},Ae.prototype.setSegment=function(G,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<G?pe=G:this.currentRawFrame+this.firstFrame>X&&(pe=X-G)),this.firstFrame=G,this.totalFrames=X-G,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},Ae.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),we(G[0])==="object"){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)this.segments.push(G[pe])}else this.segments.push(G);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Ae.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},Ae.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},Ae.prototype.destroy=function(G){G&&this.name!==G||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},Ae.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},Ae.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},Ae.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},Ae.prototype.setLoop=function(G){this.loop=G},Ae.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},Ae.prototype.getVolume=function(){return this.audioController.getVolume()},Ae.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},Ae.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},Ae.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Ae.prototype.getPath=function(){return this.path},Ae.prototype.getAssetsPath=function(G){var X="";if(G.e)X=G.p;else if(this.assetsPath){var pe=G.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=G.u?G.u:"",X+=G.p;return X},Ae.prototype.getAssetData=function(G){for(var X=0,pe=this.assets.length;X<pe;){if(G===this.assets[X].id)return this.assets[X];X+=1}return null},Ae.prototype.hide=function(){this.renderer.hide()},Ae.prototype.show=function(){this.renderer.show()},Ae.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},Ae.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},Ae.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new F(G,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(G,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(G,new _(G,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(G,new N(G,this.frameMult));break;case"segmentStart":this.triggerEvent(G,new z(G,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(G,new T(G,this));break;default:this.triggerEvent(G)}G==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new F(G,this.currentFrame,this.totalFrames,this.frameMult)),G==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(G,this.loop,this.playCount,this.frameMult)),G==="complete"&&this.onComplete&&this.onComplete.call(this,new N(G,this.frameMult)),G==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(G,this.firstFrame,this.totalFrames)),G==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(G,this))},Ae.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},Ae.prototype.triggerConfigError=function(G){var X=new O(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Be=(function(){var G={},X=[],pe=0,xe=0,Ce=0,Ee=!0,Re=!1;function Qe(ft){for(var st=0,ze=ft.target;st<xe;)X[st].animation===ze&&(X.splice(st,1),st-=1,xe-=1,ze.isPaused||Xe()),st+=1}function Ye(ft,st){if(!ft)return null;for(var ze=0;ze<xe;){if(X[ze].elem===ft&&X[ze].elem!==null)return X[ze].animation;ze+=1}var dt=new Ae;return ct(dt,ft),dt.setData(ft,st),dt}function Mt(){var ft,st=X.length,ze=[];for(ft=0;ft<st;ft+=1)ze.push(X[ft].animation);return ze}function Zt(){Ce+=1,$o()}function Xe(){Ce-=1}function ct(ft,st){ft.addEventListener("destroy",Qe),ft.addEventListener("_active",Zt),ft.addEventListener("_idle",Xe),X.push({elem:st,animation:ft}),xe+=1}function vt(ft){var st=new Ae;return ct(st,null),st.setParams(ft),st}function Et(ft,st){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(ft,st)}function Gt(ft,st){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(ft,st)}function Xt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.play(ft)}function Je(ft){var st,ze=ft-pe;for(st=0;st<xe;st+=1)X[st].animation.advanceTime(ze);pe=ft,Ce&&!Re?window.requestAnimationFrame(Je):Ee=!0}function He(ft){pe=ft,window.requestAnimationFrame(Je)}function Ne(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.pause(ft)}function qe(ft,st,ze){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.goToAndStop(ft,st,ze)}function gt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.stop(ft)}function an(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.togglePause(ft)}function cn(ft){var st;for(st=xe-1;st>=0;st-=1)X[st].animation.destroy(ft)}function Ot(ft,st,ze){var dt,Ct=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),gi=Ct.length;for(dt=0;dt<gi;dt+=1)ze&&Ct[dt].setAttribute("data-bm-type",ze),Ye(Ct[dt],ft);if(st&&gi===0){ze||(ze="svg");var Zo=document.getElementsByTagName("body")[0];Zo.innerText="";var Po=h("div");Po.style.width="100%",Po.style.height="100%",Po.setAttribute("data-bm-type",ze),Zo.appendChild(Po),Ye(Po,ft)}}function po(){var ft;for(ft=0;ft<xe;ft+=1)X[ft].animation.resize()}function $o(){!Re&&Ce&&Ee&&(window.requestAnimationFrame(He),Ee=!1)}function si(){Re=!0}function Ko(){Re=!1,$o()}function lo(ft,st){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(ft,st)}function zt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.mute(ft)}function xn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.unmute(ft)}return G.registerAnimation=Ye,G.loadAnimation=vt,G.setSpeed=Et,G.setDirection=Gt,G.play=Xt,G.pause=Ne,G.stop=gt,G.togglePause=an,G.searchAnimations=Ot,G.resize=po,G.goToAndStop=qe,G.destroy=cn,G.freeze=si,G.unfreeze=Ko,G.setVolume=lo,G.mute=zt,G.unmute=xn,G.getRegisteredAnimations=Mt,G})(),Te=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(He,Ne,qe,gt,an){var cn=an||("bez_"+He+"_"+Ne+"_"+qe+"_"+gt).replace(/\./g,"p");if(X[cn])return X[cn];var Ot=new Je([He,Ne,qe,gt]);return X[cn]=Ot,Ot}var xe=4,Ce=.001,Ee=1e-7,Re=10,Qe=11,Ye=1/(Qe-1),Mt=typeof Float32Array=="function";function Zt(He,Ne){return 1-3*Ne+3*He}function Xe(He,Ne){return 3*Ne-6*He}function ct(He){return 3*He}function vt(He,Ne,qe){return((Zt(Ne,qe)*He+Xe(Ne,qe))*He+ct(Ne))*He}function Et(He,Ne,qe){return 3*Zt(Ne,qe)*He*He+2*Xe(Ne,qe)*He+ct(Ne)}function Gt(He,Ne,qe,gt,an){var cn,Ot,po=0;do(cn=vt(Ot=Ne+(qe-Ne)/2,gt,an)-He)>0?qe=Ot:Ne=Ot;while(Math.abs(cn)>Ee&&++po<Re);return Ot}function Xt(He,Ne,qe,gt){for(var an=0;an<xe;++an){var cn=Et(Ne,qe,gt);if(cn===0)return Ne;Ne-=(vt(Ne,qe,gt)-He)/cn}return Ne}function Je(He){this._p=He,this._mSampleValues=Mt?new Float32Array(Qe):new Array(Qe),this._precomputed=!1,this.get=this.get.bind(this)}return Je.prototype={get:function(He){var Ne=this._p[0],qe=this._p[1],gt=this._p[2],an=this._p[3];return this._precomputed||this._precompute(),Ne===qe&>===an?He:He===0?0:He===1?1:vt(this._getTForX(He),qe,an)},_precompute:function(){var He=this._p[0],Ne=this._p[1],qe=this._p[2],gt=this._p[3];this._precomputed=!0,(He!==Ne||qe!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var He=this._p[0],Ne=this._p[2],qe=0;qe<Qe;++qe)this._mSampleValues[qe]=vt(qe*Ye,He,Ne)},_getTForX:function(He){for(var Ne=this._p[0],qe=this._p[2],gt=this._mSampleValues,an=0,cn=1,Ot=Qe-1;cn!==Ot&>[cn]<=He;++cn)an+=Ye;var po=an+(He-gt[--cn])/(gt[cn+1]-gt[cn])*Ye,$o=Et(po,Ne,qe);return $o>=Ce?Xt(He,po,Ne,qe):$o===0?po:Gt(He,an,an+Ye,Ne,qe)}},G})(),Le=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,Ce=G,Ee=b(Ce);function Re(){return xe?Ee[xe-=1]:X()}function Qe(Ye){xe===Ce&&(Ee=Le.double(Ee),Ce*=2),pe&&pe(Ye),Ee[xe]=Ye,xe+=1}return{newElement:Re,release:Qe}}})(),Me=(function(){function G(){return{addedLength:0,percents:y("float32",se()),lengths:y("float32",se())}}return Fe(8,G)})(),ke=(function(){function G(){return{lengths:[],totalLength:0}}function X(pe){var xe,Ce=pe.lengths.length;for(xe=0;xe<Ce;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function be(){var G=Math;function X(ct,vt,Et,Gt,Xt,Je){var He=ct*Gt+vt*Xt+Et*Je-Xt*Gt-Je*ct-Et*vt;return He>-.001&&He<.001}function pe(ct,vt,Et,Gt,Xt,Je,He,Ne,qe){if(Et===0&&Je===0&&qe===0)return X(ct,vt,Gt,Xt,He,Ne);var gt,an=G.sqrt(G.pow(Gt-ct,2)+G.pow(Xt-vt,2)+G.pow(Je-Et,2)),cn=G.sqrt(G.pow(He-ct,2)+G.pow(Ne-vt,2)+G.pow(qe-Et,2)),Ot=G.sqrt(G.pow(He-Gt,2)+G.pow(Ne-Xt,2)+G.pow(qe-Je,2));return(gt=an>cn?an>Ot?an-cn-Ot:Ot-cn-an:Ot>cn?Ot-cn-an:cn-an-Ot)>-1e-4&><1e-4}var xe=(function(){return function(ct,vt,Et,Gt){var Xt,Je,He,Ne,qe,gt,an=se(),cn=0,Ot=[],po=[],$o=Me.newElement();for(He=Et.length,Xt=0;Xt<an;Xt+=1){for(qe=Xt/(an-1),gt=0,Je=0;Je<He;Je+=1)Ne=k(1-qe,3)*ct[Je]+3*k(1-qe,2)*qe*Et[Je]+3*(1-qe)*k(qe,2)*Gt[Je]+k(qe,3)*vt[Je],Ot[Je]=Ne,po[Je]!==null&&(gt+=k(Ot[Je]-po[Je],2)),po[Je]=Ot[Je];gt&&(cn+=gt=$(gt)),$o.percents[Xt]=qe,$o.lengths[Xt]=cn}return $o.addedLength=cn,$o}})();function Ce(ct){var vt,Et=ke.newElement(),Gt=ct.c,Xt=ct.v,Je=ct.o,He=ct.i,Ne=ct._length,qe=Et.lengths,gt=0;for(vt=0;vt<Ne-1;vt+=1)qe[vt]=xe(Xt[vt],Xt[vt+1],Je[vt],He[vt+1]),gt+=qe[vt].addedLength;return Gt&&Ne&&(qe[vt]=xe(Xt[vt],Xt[0],Je[vt],He[0]),gt+=qe[vt].addedLength),Et.totalLength=gt,Et}function Ee(ct){this.segmentLength=0,this.points=new Array(ct)}function Re(ct,vt){this.partialLength=ct,this.point=vt}var Qe=(function(){var ct={};return function(vt,Et,Gt,Xt){var Je=(vt[0]+"_"+vt[1]+"_"+Et[0]+"_"+Et[1]+"_"+Gt[0]+"_"+Gt[1]+"_"+Xt[0]+"_"+Xt[1]).replace(/\./g,"p");if(!ct[Je]){var He,Ne,qe,gt,an,cn,Ot,po=se(),$o=0,si=null;vt.length===2&&(vt[0]!==Et[0]||vt[1]!==Et[1])&&X(vt[0],vt[1],Et[0],Et[1],vt[0]+Gt[0],vt[1]+Gt[1])&&X(vt[0],vt[1],Et[0],Et[1],Et[0]+Xt[0],Et[1]+Xt[1])&&(po=2);var Ko=new Ee(po);for(qe=Gt.length,He=0;He<po;He+=1){for(Ot=b(qe),an=He/(po-1),cn=0,Ne=0;Ne<qe;Ne+=1)gt=k(1-an,3)*vt[Ne]+3*k(1-an,2)*an*(vt[Ne]+Gt[Ne])+3*(1-an)*k(an,2)*(Et[Ne]+Xt[Ne])+k(an,3)*Et[Ne],Ot[Ne]=gt,si!==null&&(cn+=k(Ot[Ne]-si[Ne],2));$o+=cn=$(cn),Ko.points[He]=new Re(cn,Ot),si=Ot}Ko.segmentLength=$o,ct[Je]=Ko}return ct[Je]}})();function Ye(ct,vt){var Et=vt.percents,Gt=vt.lengths,Xt=Et.length,Je=j((Xt-1)*ct),He=ct*vt.addedLength,Ne=0;if(Je===Xt-1||Je===0||He===Gt[Je])return Et[Je];for(var qe=Gt[Je]>He?-1:1,gt=!0;gt;)if(Gt[Je]<=He&&Gt[Je+1]>He?(Ne=(He-Gt[Je])/(Gt[Je+1]-Gt[Je]),gt=!1):Je+=qe,Je<0||Je>=Xt-1){if(Je===Xt-1)return Et[Je];gt=!1}return Et[Je]+(Et[Je+1]-Et[Je])*Ne}function Mt(ct,vt,Et,Gt,Xt,Je){var He=Ye(Xt,Je),Ne=1-He;return[G.round(1e3*(Ne*Ne*Ne*ct[0]+(He*Ne*Ne+Ne*He*Ne+Ne*Ne*He)*Et[0]+(He*He*Ne+Ne*He*He+He*Ne*He)*Gt[0]+He*He*He*vt[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*ct[1]+(He*Ne*Ne+Ne*He*Ne+Ne*Ne*He)*Et[1]+(He*He*Ne+Ne*He*He+He*Ne*He)*Gt[1]+He*He*He*vt[1]))/1e3]}var Zt=y("float32",8);function Xe(ct,vt,Et,Gt,Xt,Je,He){Xt<0?Xt=0:Xt>1&&(Xt=1);var Ne,qe=Ye(Xt,He),gt=Ye(Je=Je>1?1:Je,He),an=ct.length,cn=1-qe,Ot=1-gt,po=cn*cn*cn,$o=qe*cn*cn*3,si=qe*qe*cn*3,Ko=qe*qe*qe,lo=cn*cn*Ot,zt=qe*cn*Ot+cn*qe*Ot+cn*cn*gt,xn=qe*qe*Ot+cn*qe*gt+qe*cn*gt,ft=qe*qe*gt,st=cn*Ot*Ot,ze=qe*Ot*Ot+cn*gt*Ot+cn*Ot*gt,dt=qe*gt*Ot+cn*gt*gt+qe*Ot*gt,Ct=qe*gt*gt,gi=Ot*Ot*Ot,Zo=gt*Ot*Ot+Ot*gt*Ot+Ot*Ot*gt,Po=gt*gt*Ot+Ot*gt*gt+gt*Ot*gt,wa=gt*gt*gt;for(Ne=0;Ne<an;Ne+=1)Zt[4*Ne]=G.round(1e3*(po*ct[Ne]+$o*Et[Ne]+si*Gt[Ne]+Ko*vt[Ne]))/1e3,Zt[4*Ne+1]=G.round(1e3*(lo*ct[Ne]+zt*Et[Ne]+xn*Gt[Ne]+ft*vt[Ne]))/1e3,Zt[4*Ne+2]=G.round(1e3*(st*ct[Ne]+ze*Et[Ne]+dt*Gt[Ne]+Ct*vt[Ne]))/1e3,Zt[4*Ne+3]=G.round(1e3*(gi*ct[Ne]+Zo*Et[Ne]+Po*Gt[Ne]+wa*vt[Ne]))/1e3;return Zt}return{getSegmentsLength:Ce,getNewSegment:Xe,getPointInSegment:Mt,buildBezierData:Qe,pointOnLine2D:X,pointOnLine3D:pe}}var $e=be(),De=l,Oe=Math.abs;function it(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ce,Ee,Re,Qe=X.lastIndex,Ye=Qe,Mt=this.keyframes.length-1,Zt=!0;Zt;){if(Ce=this.keyframes[Ye],Ee=this.keyframes[Ye+1],Ye===Mt-1&&G>=Ee.t-xe){Ce.h&&(Ce=Ee),Qe=0;break}if(Ee.t-xe>G){Qe=Ye;break}Ye<Mt-1?Ye+=1:(Qe=0,Zt=!1)}Re=this.keyframesMetadata[Ye]||{};var Xe,ct,vt,Et,Gt,Xt,Je,He=Ee.t-xe,Ne=Ce.t-xe;if(Ce.to){Re.bezierData||(Re.bezierData=$e.buildBezierData(Ce.s,Ee.s||Ce.e,Ce.to,Ce.ti));var qe=Re.bezierData;if(G>=He||G<Ne){var gt=G>=He?qe.points.length-1:0;for(ct=qe.points[gt].point.length,Xe=0;Xe<ct;Xe+=1)pe[Xe]=qe.points[gt].point[Xe]}else{Re.__fnct?Xt=Re.__fnct:(Xt=Te.getBezierEasing(Ce.o.x,Ce.o.y,Ce.i.x,Ce.i.y,Ce.n).get,Re.__fnct=Xt),vt=Xt((G-Ne)/(He-Ne));var an,cn=qe.segmentLength*vt,Ot=X.lastFrame<G&&X._lastKeyframeIndex===Ye?X._lastAddedLength:0;for(Gt=X.lastFrame<G&&X._lastKeyframeIndex===Ye?X._lastPoint:0,Zt=!0,Et=qe.points.length;Zt;){if(Ot+=qe.points[Gt].partialLength,cn===0||vt===0||Gt===qe.points.length-1){for(ct=qe.points[Gt].point.length,Xe=0;Xe<ct;Xe+=1)pe[Xe]=qe.points[Gt].point[Xe];break}if(cn>=Ot&&cn<Ot+qe.points[Gt+1].partialLength){for(an=(cn-Ot)/qe.points[Gt+1].partialLength,ct=qe.points[Gt].point.length,Xe=0;Xe<ct;Xe+=1)pe[Xe]=qe.points[Gt].point[Xe]+(qe.points[Gt+1].point[Xe]-qe.points[Gt].point[Xe])*an;break}Gt<Et-1?Gt+=1:Zt=!1}X._lastPoint=Gt,X._lastAddedLength=Ot-qe.points[Gt].partialLength,X._lastKeyframeIndex=Ye}}else{var po,$o,si,Ko,lo;if(Mt=Ce.s.length,Je=Ee.s||Ce.e,this.sh&&Ce.h!==1)G>=He?(pe[0]=Je[0],pe[1]=Je[1],pe[2]=Je[2]):G<=Ne?(pe[0]=Ce.s[0],pe[1]=Ce.s[1],pe[2]=Ce.s[2]):Ge(pe,Ue(mt(Ce.s),mt(Je),(G-Ne)/(He-Ne)));else for(Ye=0;Ye<Mt;Ye+=1)Ce.h!==1&&(G>=He?vt=1:G<Ne?vt=0:(Ce.o.x.constructor===Array?(Re.__fnct||(Re.__fnct=[]),Re.__fnct[Ye]?Xt=Re.__fnct[Ye]:(po=Ce.o.x[Ye]===void 0?Ce.o.x[0]:Ce.o.x[Ye],$o=Ce.o.y[Ye]===void 0?Ce.o.y[0]:Ce.o.y[Ye],si=Ce.i.x[Ye]===void 0?Ce.i.x[0]:Ce.i.x[Ye],Ko=Ce.i.y[Ye]===void 0?Ce.i.y[0]:Ce.i.y[Ye],Xt=Te.getBezierEasing(po,$o,si,Ko).get,Re.__fnct[Ye]=Xt)):Re.__fnct?Xt=Re.__fnct:(po=Ce.o.x,$o=Ce.o.y,si=Ce.i.x,Ko=Ce.i.y,Xt=Te.getBezierEasing(po,$o,si,Ko).get,Ce.keyframeMetadata=Xt),vt=Xt((G-Ne)/(He-Ne)))),Je=Ee.s||Ce.e,lo=Ce.h===1?Ce.s[Ye]:Ce.s[Ye]+(Je[Ye]-Ce.s[Ye])*vt,this.propType==="multidimensional"?pe[Ye]=lo:pe=lo}return X.lastIndex=Qe,pe}function Ue(G,X,pe){var xe,Ce,Ee,Re,Qe,Ye=[],Mt=G[0],Zt=G[1],Xe=G[2],ct=G[3],vt=X[0],Et=X[1],Gt=X[2],Xt=X[3];return(Ce=Mt*vt+Zt*Et+Xe*Gt+ct*Xt)<0&&(Ce=-Ce,vt=-vt,Et=-Et,Gt=-Gt,Xt=-Xt),1-Ce>1e-6?(xe=Math.acos(Ce),Ee=Math.sin(xe),Re=Math.sin((1-pe)*xe)/Ee,Qe=Math.sin(pe*xe)/Ee):(Re=1-pe,Qe=pe),Ye[0]=Re*Mt+Qe*vt,Ye[1]=Re*Zt+Qe*Et,Ye[2]=Re*Xe+Qe*Gt,Ye[3]=Re*ct+Qe*Xt,Ye}function Ge(G,X){var pe=X[0],xe=X[1],Ce=X[2],Ee=X[3],Re=Math.atan2(2*xe*Ee-2*pe*Ce,1-2*xe*xe-2*Ce*Ce),Qe=Math.asin(2*pe*xe+2*Ce*Ee),Ye=Math.atan2(2*pe*Ee-2*xe*Ce,1-2*pe*pe-2*Ce*Ce);G[0]=Re/D,G[1]=Qe/D,G[2]=Ye/D}function mt(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,Ce=Math.cos(X/2),Ee=Math.cos(pe/2),Re=Math.cos(xe/2),Qe=Math.sin(X/2),Ye=Math.sin(pe/2),Mt=Math.sin(xe/2);return[Qe*Ye*Re+Ce*Ee*Mt,Qe*Ee*Re+Ce*Ye*Mt,Ce*Ye*Re-Qe*Ee*Mt,Ce*Ee*Re-Qe*Ye*Mt]}function Pt(){var G=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(G===this._caching.lastFrame||this._caching.lastFrame!==De&&(this._caching.lastFrame>=pe&&G>=pe||this._caching.lastFrame<X&&G<X))){this._caching.lastFrame>=G&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(G,this._caching);this.pv=xe}return this._caching.lastFrame=G,this.pv}function ht(G){var X;if(this.propType==="unidimensional")X=G*this.mult,Oe(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=G[pe]*this.mult,Oe(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function Dt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var G,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(G=0;G<X;G+=1)pe=this.effectsSequence[G](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ut(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function We(G,X,pe,xe){this.propType="unidimensional",this.mult=pe||1,this.data=X,this.v=pe?X.k*pe:X.k,this.pv=X.k,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Dt,this.setVValue=ht,this.addEffect=ut}function jt(G,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Ce,Ee=X.k.length;for(this.v=y("float32",Ee),this.pv=y("float32",Ee),this.vel=y("float32",Ee),Ce=0;Ce<Ee;Ce+=1)this.v[Ce]=X.k[Ce]*this.mult,this.pv[Ce]=X.k[Ce];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Dt,this.setVValue=ht,this.addEffect=ut}function $t(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame:De,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=X,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.v=De,this.pv=De,this._isFirstFrame=!0,this.getValue=Dt,this.setVValue=ht,this.interpolateValue=it,this.effectsSequence=[Pt.bind(this)],this.addEffect=ut}function bt(G,X,pe,xe){this.propType="multidimensional";var Ce,Ee,Re,Qe,Ye,Mt=X.k.length;for(Ce=0;Ce<Mt-1;Ce+=1)X.k[Ce].to&&X.k[Ce].s&&X.k[Ce+1]&&X.k[Ce+1].s&&(Ee=X.k[Ce].s,Re=X.k[Ce+1].s,Qe=X.k[Ce].to,Ye=X.k[Ce].ti,(Ee.length===2&&!(Ee[0]===Re[0]&&Ee[1]===Re[1])&&$e.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Ee[0]+Qe[0],Ee[1]+Qe[1])&&$e.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Re[0]+Ye[0],Re[1]+Ye[1])||Ee.length===3&&!(Ee[0]===Re[0]&&Ee[1]===Re[1]&&Ee[2]===Re[2])&&$e.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Ee[0]+Qe[0],Ee[1]+Qe[1],Ee[2]+Qe[2])&&$e.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Re[0]+Ye[0],Re[1]+Ye[1],Re[2]+Ye[2]))&&(X.k[Ce].to=null,X.k[Ce].ti=null),Ee[0]===Re[0]&&Ee[1]===Re[1]&&Qe[0]===0&&Qe[1]===0&&Ye[0]===0&&Ye[1]===0&&(Ee.length===2||Ee[2]===Re[2]&&Qe[2]===0&&Ye[2]===0)&&(X.k[Ce].to=null,X.k[Ce].ti=null));this.effectsSequence=[Pt.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.getValue=Dt,this.setVValue=ht,this.interpolateValue=it,this.frameId=-1;var Zt=X.k[0].s.length;for(this.v=y("float32",Zt),this.pv=y("float32",Zt),Ce=0;Ce<Zt;Ce+=1)this.v[Ce]=De,this.pv[Ce]=De;this._caching={lastFrame:De,lastIndex:0,value:y("float32",Zt)},this.addEffect=ut}var Ke=(function(){function G(X,pe,xe,Ce,Ee){var Re;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Re=new jt(X,pe,Ce,Ee);else switch(xe){case 0:Re=new $t(X,pe,Ce,Ee);break;case 1:Re=new bt(X,pe,Ce,Ee)}else Re=new We(X,pe,Ce,Ee);return Re.effectsSequence.length&&Ee.addDynamicProperty(Re),Re}return{getProp:G}})();function Bt(){}Bt.prototype={addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&(this.dynamicProperties.push(G),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var G,X=this.dynamicProperties.length;for(G=0;G<X;G+=1)this.dynamicProperties[G].getValue(),this.dynamicProperties[G]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(G){this.container=G,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Wt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();function yt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}yt.prototype.setPathData=function(G,X){this.c=G,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Wt.newElement(),this.o[pe]=Wt.newElement(),this.i[pe]=Wt.newElement(),pe+=1},yt.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},yt.prototype.doubleArrayLength=function(){this.v=this.v.concat(b(this._maxLength)),this.i=this.i.concat(b(this._maxLength)),this.o=this.o.concat(b(this._maxLength)),this._maxLength*=2},yt.prototype.setXYAt=function(G,X,pe,xe,Ce){var Ee;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":Ee=this.v;break;case"i":Ee=this.i;break;case"o":Ee=this.o;break;default:Ee=[]}(!Ee[xe]||Ee[xe]&&!Ce)&&(Ee[xe]=Wt.newElement()),Ee[xe][0]=G,Ee[xe][1]=X},yt.prototype.setTripleAt=function(G,X,pe,xe,Ce,Ee,Re,Qe){this.setXYAt(G,X,"v",Re,Qe),this.setXYAt(pe,xe,"o",Re,Qe),this.setXYAt(Ce,Ee,"i",Re,Qe)},yt.prototype.reverse=function(){var G=new yt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ce=0;this.c&&(G.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),Ce=1);var Ee,Re=this._length-1,Qe=this._length;for(Ee=Ce;Ee<Qe;Ee+=1)G.setTripleAt(X[Re][0],X[Re][1],xe[Re][0],xe[Re][1],pe[Re][0],pe[Re][1],Ee,!1),Re-=1;return G},yt.prototype.length=function(){return this._length};var Lt=(function(){function G(){return new yt}function X(Ce){var Ee,Re=Ce._length;for(Ee=0;Ee<Re;Ee+=1)Wt.release(Ce.v[Ee]),Wt.release(Ce.i[Ee]),Wt.release(Ce.o[Ee]),Ce.v[Ee]=null,Ce.i[Ee]=null,Ce.o[Ee]=null;Ce._length=0,Ce.c=!1}function pe(Ce){var Ee,Re=xe.newElement(),Qe=Ce._length===void 0?Ce.v.length:Ce._length;for(Re.setLength(Qe),Re.c=Ce.c,Ee=0;Ee<Qe;Ee+=1)Re.setTripleAt(Ce.v[Ee][0],Ce.v[Ee][1],Ce.o[Ee][0],Ce.o[Ee][1],Ce.i[Ee][0],Ce.i[Ee][1],Ee);return Re}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function pn(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}pn.prototype.addShape=function(G){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=G,this._length+=1},pn.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)Lt.release(this.shapes[G]);this._length=0};var _t=(function(){var G={newShapeCollection:Ce,release:Ee},X=0,pe=4,xe=b(pe);function Ce(){return X?xe[X-=1]:new pn}function Ee(Re){var Qe,Ye=Re._length;for(Qe=0;Qe<Ye;Qe+=1)Lt.release(Re.shapes[Qe]);Re._length=0,X===pe&&(xe=Le.double(xe),pe*=2),xe[X]=Re,X+=1}return G})(),et=(function(){var G=-999999;function X(Je,He,Ne){var qe,gt,an,cn,Ot,po,$o,si,Ko,lo=Ne.lastIndex,zt=this.keyframes;if(Je<zt[0].t-this.offsetTime)qe=zt[0].s[0],an=!0,lo=0;else if(Je>=zt[zt.length-1].t-this.offsetTime)qe=zt[zt.length-1].s?zt[zt.length-1].s[0]:zt[zt.length-2].e[0],an=!0;else{for(var xn,ft,st,ze=lo,dt=zt.length-1,Ct=!0;Ct&&(xn=zt[ze],!((ft=zt[ze+1]).t-this.offsetTime>Je));)ze<dt-1?ze+=1:Ct=!1;if(st=this.keyframesMetadata[ze]||{},lo=ze,!(an=xn.h===1)){if(Je>=ft.t-this.offsetTime)si=1;else if(Je<xn.t-this.offsetTime)si=0;else{var gi;st.__fnct?gi=st.__fnct:(gi=Te.getBezierEasing(xn.o.x,xn.o.y,xn.i.x,xn.i.y).get,st.__fnct=gi),si=gi((Je-(xn.t-this.offsetTime))/(ft.t-this.offsetTime-(xn.t-this.offsetTime)))}gt=ft.s?ft.s[0]:xn.e[0]}qe=xn.s[0]}for(po=He._length,$o=qe.i[0].length,Ne.lastIndex=lo,cn=0;cn<po;cn+=1)for(Ot=0;Ot<$o;Ot+=1)Ko=an?qe.i[cn][Ot]:qe.i[cn][Ot]+(gt.i[cn][Ot]-qe.i[cn][Ot])*si,He.i[cn][Ot]=Ko,Ko=an?qe.o[cn][Ot]:qe.o[cn][Ot]+(gt.o[cn][Ot]-qe.o[cn][Ot])*si,He.o[cn][Ot]=Ko,Ko=an?qe.v[cn][Ot]:qe.v[cn][Ot]+(gt.v[cn][Ot]-qe.v[cn][Ot])*si,He.v[cn][Ot]=Ko}function pe(){var Je=this.comp.renderedFrame-this.offsetTime,He=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==G&&(qe<He&&Je<He||qe>Ne&&Je>Ne)||(this._caching.lastIndex=qe<Je?this._caching.lastIndex:0,this.interpolateShape(Je,this.pv,this._caching)),this._caching.lastFrame=Je,this.pv}function xe(){this.paths=this.localShapeCollection}function Ce(Je,He){if(Je._length!==He._length||Je.c!==He.c)return!1;var Ne,qe=Je._length;for(Ne=0;Ne<qe;Ne+=1)if(Je.v[Ne][0]!==He.v[Ne][0]||Je.v[Ne][1]!==He.v[Ne][1]||Je.o[Ne][0]!==He.o[Ne][0]||Je.o[Ne][1]!==He.o[Ne][1]||Je.i[Ne][0]!==He.i[Ne][0]||Je.i[Ne][1]!==He.i[Ne][1])return!1;return!0}function Ee(Je){Ce(this.v,Je)||(this.v=Lt.clone(Je),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Re(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Je;this.lock=!0,this._mdf=!1,Je=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var He,Ne=this.effectsSequence.length;for(He=0;He<Ne;He+=1)Je=this.effectsSequence[He](Je);this.setVValue(Je),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Qe(Je,He,Ne){this.propType="shape",this.comp=Je.comp,this.container=Je,this.elem=Je,this.data=He,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?He.pt.k:He.ks.k;this.v=Lt.clone(qe),this.pv=Lt.clone(this.v),this.localShapeCollection=_t.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Ye(Je){this.effectsSequence.push(Je),this.container.addDynamicProperty(this)}function Mt(Je,He,Ne){this.propType="shape",this.comp=Je.comp,this.elem=Je,this.container=Je,this.offsetTime=Je.data.st,this.keyframes=Ne===3?He.pt.k:He.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=Lt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=Lt.clone(this.v),this.localShapeCollection=_t.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=G,this.reset=xe,this._caching={lastFrame:G,lastIndex:0},this.effectsSequence=[pe.bind(this)]}Qe.prototype.interpolateShape=X,Qe.prototype.getValue=Re,Qe.prototype.setVValue=Ee,Qe.prototype.addEffect=Ye,Mt.prototype.getValue=Re,Mt.prototype.interpolateShape=X,Mt.prototype.setVValue=Ee,Mt.prototype.addEffect=Ye;var Zt=(function(){var Je=L;function He(Ne,qe){this.v=Lt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=_t.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ke.getProp(Ne,qe.p,1,0,this),this.s=Ke.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return He.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],gt=this.s.v[0]/2,an=this.s.v[1]/2,cn=this.d!==3,Ot=this.v;Ot.v[0][0]=Ne,Ot.v[0][1]=qe-an,Ot.v[1][0]=cn?Ne+gt:Ne-gt,Ot.v[1][1]=qe,Ot.v[2][0]=Ne,Ot.v[2][1]=qe+an,Ot.v[3][0]=cn?Ne-gt:Ne+gt,Ot.v[3][1]=qe,Ot.i[0][0]=cn?Ne-gt*Je:Ne+gt*Je,Ot.i[0][1]=qe-an,Ot.i[1][0]=cn?Ne+gt:Ne-gt,Ot.i[1][1]=qe-an*Je,Ot.i[2][0]=cn?Ne+gt*Je:Ne-gt*Je,Ot.i[2][1]=qe+an,Ot.i[3][0]=cn?Ne-gt:Ne+gt,Ot.i[3][1]=qe+an*Je,Ot.o[0][0]=cn?Ne+gt*Je:Ne-gt*Je,Ot.o[0][1]=qe-an,Ot.o[1][0]=cn?Ne+gt:Ne-gt,Ot.o[1][1]=qe+an*Je,Ot.o[2][0]=cn?Ne-gt*Je:Ne+gt*Je,Ot.o[2][1]=qe+an,Ot.o[3][0]=cn?Ne-gt:Ne+gt,Ot.o[3][1]=qe-an*Je}},g([Bt],He),He})(),Xe=(function(){function Je(He,Ne){this.v=Lt.newElement(),this.v.setPathData(!0,0),this.elem=He,this.comp=He.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(He),Ne.sy===1?(this.ir=Ke.getProp(He,Ne.ir,0,0,this),this.is=Ke.getProp(He,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ke.getProp(He,Ne.pt,0,0,this),this.p=Ke.getProp(He,Ne.p,1,0,this),this.r=Ke.getProp(He,Ne.r,0,D,this),this.or=Ke.getProp(He,Ne.or,0,0,this),this.os=Ke.getProp(He,Ne.os,0,.01,this),this.localShapeCollection=_t.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Je.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var He,Ne,qe,gt,an=2*Math.floor(this.pt.v),cn=2*Math.PI/an,Ot=!0,po=this.or.v,$o=this.ir.v,si=this.os.v,Ko=this.is.v,lo=2*Math.PI*po/(2*an),zt=2*Math.PI*$o/(2*an),xn=-Math.PI/2;xn+=this.r.v;var ft=this.data.d===3?-1:1;for(this.v._length=0,He=0;He<an;He+=1){qe=Ot?si:Ko,gt=Ot?lo:zt;var st=(Ne=Ot?po:$o)*Math.cos(xn),ze=Ne*Math.sin(xn),dt=st===0&&ze===0?0:ze/Math.sqrt(st*st+ze*ze),Ct=st===0&&ze===0?0:-st/Math.sqrt(st*st+ze*ze);st+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(st,ze,st-dt*gt*qe*ft,ze-Ct*gt*qe*ft,st+dt*gt*qe*ft,ze+Ct*gt*qe*ft,He,!0),Ot=!Ot,xn+=cn*ft}},convertPolygonToPath:function(){var He,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,gt=this.or.v,an=this.os.v,cn=2*Math.PI*gt/(4*Ne),Ot=.5*-Math.PI,po=this.data.d===3?-1:1;for(Ot+=this.r.v,this.v._length=0,He=0;He<Ne;He+=1){var $o=gt*Math.cos(Ot),si=gt*Math.sin(Ot),Ko=$o===0&&si===0?0:si/Math.sqrt($o*$o+si*si),lo=$o===0&&si===0?0:-$o/Math.sqrt($o*$o+si*si);$o+=+this.p.v[0],si+=+this.p.v[1],this.v.setTripleAt($o,si,$o-Ko*cn*an*po,si-lo*cn*an*po,$o+Ko*cn*an*po,si+lo*cn*an*po,He,!0),Ot+=qe*po}this.paths.length=0,this.paths[0]=this.v}},g([Bt],Je),Je})(),ct=(function(){function Je(He,Ne){this.v=Lt.newElement(),this.v.c=!0,this.localShapeCollection=_t.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=He,this.comp=He.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(He),this.p=Ke.getProp(He,Ne.p,1,0,this),this.s=Ke.getProp(He,Ne.s,1,0,this),this.r=Ke.getProp(He,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Je.prototype={convertRectToPath:function(){var He=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,gt=this.s.v[1]/2,an=I(qe,gt,this.r.v),cn=an*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(He+qe,Ne-gt+an,He+qe,Ne-gt+an,He+qe,Ne-gt+cn,0,!0),this.v.setTripleAt(He+qe,Ne+gt-an,He+qe,Ne+gt-cn,He+qe,Ne+gt-an,1,!0),an!==0?(this.v.setTripleAt(He+qe-an,Ne+gt,He+qe-an,Ne+gt,He+qe-cn,Ne+gt,2,!0),this.v.setTripleAt(He-qe+an,Ne+gt,He-qe+cn,Ne+gt,He-qe+an,Ne+gt,3,!0),this.v.setTripleAt(He-qe,Ne+gt-an,He-qe,Ne+gt-an,He-qe,Ne+gt-cn,4,!0),this.v.setTripleAt(He-qe,Ne-gt+an,He-qe,Ne-gt+cn,He-qe,Ne-gt+an,5,!0),this.v.setTripleAt(He-qe+an,Ne-gt,He-qe+an,Ne-gt,He-qe+cn,Ne-gt,6,!0),this.v.setTripleAt(He+qe-an,Ne-gt,He+qe-cn,Ne-gt,He+qe-an,Ne-gt,7,!0)):(this.v.setTripleAt(He-qe,Ne+gt,He-qe+cn,Ne+gt,He-qe,Ne+gt,2),this.v.setTripleAt(He-qe,Ne-gt,He-qe,Ne-gt+cn,He-qe,Ne-gt,3))):(this.v.setTripleAt(He+qe,Ne-gt+an,He+qe,Ne-gt+cn,He+qe,Ne-gt+an,0,!0),an!==0?(this.v.setTripleAt(He+qe-an,Ne-gt,He+qe-an,Ne-gt,He+qe-cn,Ne-gt,1,!0),this.v.setTripleAt(He-qe+an,Ne-gt,He-qe+cn,Ne-gt,He-qe+an,Ne-gt,2,!0),this.v.setTripleAt(He-qe,Ne-gt+an,He-qe,Ne-gt+an,He-qe,Ne-gt+cn,3,!0),this.v.setTripleAt(He-qe,Ne+gt-an,He-qe,Ne+gt-cn,He-qe,Ne+gt-an,4,!0),this.v.setTripleAt(He-qe+an,Ne+gt,He-qe+an,Ne+gt,He-qe+cn,Ne+gt,5,!0),this.v.setTripleAt(He+qe-an,Ne+gt,He+qe-cn,Ne+gt,He+qe-an,Ne+gt,6,!0),this.v.setTripleAt(He+qe,Ne+gt-an,He+qe,Ne+gt-an,He+qe,Ne+gt-cn,7,!0)):(this.v.setTripleAt(He-qe,Ne-gt,He-qe+cn,Ne-gt,He-qe,Ne-gt,1,!0),this.v.setTripleAt(He-qe,Ne+gt,He-qe,Ne+gt-cn,He-qe,Ne+gt,2,!0),this.v.setTripleAt(He+qe,Ne+gt,He+qe-cn,Ne+gt,He+qe,Ne+gt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Bt],Je),Je})();function vt(Je,He,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?He.pt:He.ks).k.length?new Mt(Je,He,Ne):new Qe(Je,He,Ne):Ne===5?qe=new ct(Je,He):Ne===6?qe=new Zt(Je,He):Ne===7&&(qe=new Xe(Je,He)),qe.k&&Je.addDynamicProperty(qe),qe}function Et(){return Qe}function Gt(){return Mt}var Xt={};return Xt.getShapeProp=vt,Xt.getConstructorFunction=Et,Xt.getKeyframedConstructorFunction=Gt,Xt})(),wt=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ce(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function Ee(ze){if(ze===0)return this;var dt=G(ze),Ct=X(ze);return this._t(dt,-Ct,0,0,Ct,dt,0,0,0,0,1,0,0,0,0,1)}function Re(ze){if(ze===0)return this;var dt=G(ze),Ct=X(ze);return this._t(1,0,0,0,0,dt,-Ct,0,0,Ct,dt,0,0,0,0,1)}function Qe(ze){if(ze===0)return this;var dt=G(ze),Ct=X(ze);return this._t(dt,0,Ct,0,0,1,0,0,-Ct,0,dt,0,0,0,0,1)}function Ye(ze){if(ze===0)return this;var dt=G(ze),Ct=X(ze);return this._t(dt,-Ct,0,0,Ct,dt,0,0,0,0,1,0,0,0,0,1)}function Mt(ze,dt){return this._t(1,dt,ze,1,0,0)}function Zt(ze,dt){return this.shear(pe(ze),pe(dt))}function Xe(ze,dt){var Ct=G(dt),gi=X(dt);return this._t(Ct,gi,0,0,-gi,Ct,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(ze),1,0,0,0,0,1,0,0,0,0,1)._t(Ct,-gi,0,0,gi,Ct,0,0,0,0,1,0,0,0,0,1)}function ct(ze,dt,Ct){return!Ct&&Ct!==0&&(Ct=1),ze===1&&dt===1&&Ct===1?this:this._t(ze,0,0,0,0,dt,0,0,0,0,Ct,0,0,0,0,1)}function vt(ze,dt,Ct,gi,Zo,Po,wa,Jo,hl,ma,qa,$0,x2,E0,I0,nh){return this.props[0]=ze,this.props[1]=dt,this.props[2]=Ct,this.props[3]=gi,this.props[4]=Zo,this.props[5]=Po,this.props[6]=wa,this.props[7]=Jo,this.props[8]=hl,this.props[9]=ma,this.props[10]=qa,this.props[11]=$0,this.props[12]=x2,this.props[13]=E0,this.props[14]=I0,this.props[15]=nh,this}function Et(ze,dt,Ct){return Ct=Ct||0,ze!==0||dt!==0||Ct!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ze,dt,Ct,1):this}function Gt(ze,dt,Ct,gi,Zo,Po,wa,Jo,hl,ma,qa,$0,x2,E0,I0,nh){var dr=this.props;if(ze===1&&dt===0&&Ct===0&&gi===0&&Zo===0&&Po===1&&wa===0&&Jo===0&&hl===0&&ma===0&&qa===1&&$0===0)return dr[12]=dr[12]*ze+dr[15]*x2,dr[13]=dr[13]*Po+dr[15]*E0,dr[14]=dr[14]*qa+dr[15]*I0,dr[15]*=nh,this._identityCalculated=!1,this;var yk=dr[0],bk=dr[1],hw=dr[2],Vf=dr[3],u5=dr[4],ih=dr[5],R7=dr[6],z7=dr[7],y2=dr[8],N7=dr[9],b2=dr[10],mw=dr[11],S_=dr[12],k_=dr[13],j_=dr[14],$_=dr[15];return dr[0]=yk*ze+bk*Zo+hw*hl+Vf*x2,dr[1]=yk*dt+bk*Po+hw*ma+Vf*E0,dr[2]=yk*Ct+bk*wa+hw*qa+Vf*I0,dr[3]=yk*gi+bk*Jo+hw*$0+Vf*nh,dr[4]=u5*ze+ih*Zo+R7*hl+z7*x2,dr[5]=u5*dt+ih*Po+R7*ma+z7*E0,dr[6]=u5*Ct+ih*wa+R7*qa+z7*I0,dr[7]=u5*gi+ih*Jo+R7*$0+z7*nh,dr[8]=y2*ze+N7*Zo+b2*hl+mw*x2,dr[9]=y2*dt+N7*Po+b2*ma+mw*E0,dr[10]=y2*Ct+N7*wa+b2*qa+mw*I0,dr[11]=y2*gi+N7*Jo+b2*$0+mw*nh,dr[12]=S_*ze+k_*Zo+j_*hl+$_*x2,dr[13]=S_*dt+k_*Po+j_*ma+$_*E0,dr[14]=S_*Ct+k_*wa+j_*qa+$_*I0,dr[15]=S_*gi+k_*Jo+j_*$0+$_*nh,this._identityCalculated=!1,this}function Xt(ze){var dt=ze.props;return this.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15])}function Je(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function He(ze){for(var dt=0;dt<16;){if(ze.props[dt]!==this.props[dt])return!1;dt+=1}return!0}function Ne(ze){var dt;for(dt=0;dt<16;dt+=1)ze.props[dt]=this.props[dt];return ze}function qe(ze){var dt;for(dt=0;dt<16;dt+=1)this.props[dt]=ze[dt]}function gt(ze,dt,Ct){return{x:ze*this.props[0]+dt*this.props[4]+Ct*this.props[8]+this.props[12],y:ze*this.props[1]+dt*this.props[5]+Ct*this.props[9]+this.props[13],z:ze*this.props[2]+dt*this.props[6]+Ct*this.props[10]+this.props[14]}}function an(ze,dt,Ct){return ze*this.props[0]+dt*this.props[4]+Ct*this.props[8]+this.props[12]}function cn(ze,dt,Ct){return ze*this.props[1]+dt*this.props[5]+Ct*this.props[9]+this.props[13]}function Ot(ze,dt,Ct){return ze*this.props[2]+dt*this.props[6]+Ct*this.props[10]+this.props[14]}function po(){var ze=this.props[0]*this.props[5]-this.props[1]*this.props[4],dt=this.props[5]/ze,Ct=-this.props[1]/ze,gi=-this.props[4]/ze,Zo=this.props[0]/ze,Po=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ze,wa=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ze,Jo=new wt;return Jo.props[0]=dt,Jo.props[1]=Ct,Jo.props[4]=gi,Jo.props[5]=Zo,Jo.props[12]=Po,Jo.props[13]=wa,Jo}function $o(ze){return this.getInverseMatrix().applyToPointArray(ze[0],ze[1],ze[2]||0)}function si(ze){var dt,Ct=ze.length,gi=[];for(dt=0;dt<Ct;dt+=1)gi[dt]=$o(ze[dt]);return gi}function Ko(ze,dt,Ct){var gi=y("float32",6);if(this.isIdentity())gi[0]=ze[0],gi[1]=ze[1],gi[2]=dt[0],gi[3]=dt[1],gi[4]=Ct[0],gi[5]=Ct[1];else{var Zo=this.props[0],Po=this.props[1],wa=this.props[4],Jo=this.props[5],hl=this.props[12],ma=this.props[13];gi[0]=ze[0]*Zo+ze[1]*wa+hl,gi[1]=ze[0]*Po+ze[1]*Jo+ma,gi[2]=dt[0]*Zo+dt[1]*wa+hl,gi[3]=dt[0]*Po+dt[1]*Jo+ma,gi[4]=Ct[0]*Zo+Ct[1]*wa+hl,gi[5]=Ct[0]*Po+Ct[1]*Jo+ma}return gi}function lo(ze,dt,Ct){return this.isIdentity()?[ze,dt,Ct]:[ze*this.props[0]+dt*this.props[4]+Ct*this.props[8]+this.props[12],ze*this.props[1]+dt*this.props[5]+Ct*this.props[9]+this.props[13],ze*this.props[2]+dt*this.props[6]+Ct*this.props[10]+this.props[14]]}function zt(ze,dt){if(this.isIdentity())return ze+","+dt;var Ct=this.props;return Math.round(100*(ze*Ct[0]+dt*Ct[4]+Ct[12]))/100+","+Math.round(100*(ze*Ct[1]+dt*Ct[5]+Ct[13]))/100}function xn(){for(var ze=0,dt=this.props,Ct="matrix3d(",gi=1e4;ze<16;)Ct+=xe(dt[ze]*gi)/gi,Ct+=ze===15?")":",",ze+=1;return Ct}function ft(ze){var dt=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*dt)/dt:ze}function st(){var ze=this.props;return"matrix("+ft(ze[0])+","+ft(ze[1])+","+ft(ze[4])+","+ft(ze[5])+","+ft(ze[12])+","+ft(ze[13])+")"}return function(){this.reset=Ce,this.rotate=Ee,this.rotateX=Re,this.rotateY=Qe,this.rotateZ=Ye,this.skew=Zt,this.skewFromAxis=Xe,this.shear=Mt,this.scale=ct,this.setTransform=vt,this.translate=Et,this.transform=Gt,this.multiply=Xt,this.applyToPoint=gt,this.applyToX=an,this.applyToY=cn,this.applyToZ=Ot,this.applyToPointArray=lo,this.applyToTriplePoints=Ko,this.applyToPointStringified=zt,this.toCSS=xn,this.to2dCSS=st,this.clone=Ne,this.cloneFromProps=qe,this.equals=He,this.inversePoints=si,this.inversePoint=$o,this.getInverseMatrix=po,this._t=this.transform,this.isIdentity=Je,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function gn(G){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},gn(G)}var Qt={};function sn(G){u(G)}function qt(){Be.searchAnimations()}function tt(G){K(G)}function jn(G){re(G)}function On(G){return Be.loadAnimation(G)}function wi(G){if(typeof G=="string")switch(G){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(G)&&G>1&&ne(G)}function io(){return typeof navigator<"u"}function ui(G,X){G==="expressions"&&ee(X)}function tn(G){switch(G){case"propertyFactory":return Ke;case"shapePropertyFactory":return et;case"matrix":return wt;default:return null}}function Rn(){document.readyState==="complete"&&(clearInterval(ti),qt())}function Qn(G){for(var X=Zn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==G)return decodeURIComponent(xe[1])}return null}Qt.play=Be.play,Qt.pause=Be.pause,Qt.setLocationHref=sn,Qt.togglePause=Be.togglePause,Qt.setSpeed=Be.setSpeed,Qt.setDirection=Be.setDirection,Qt.stop=Be.stop,Qt.searchAnimations=qt,Qt.registerAnimation=Be.registerAnimation,Qt.loadAnimation=On,Qt.setSubframeRendering=tt,Qt.resize=Be.resize,Qt.goToAndStop=Be.goToAndStop,Qt.destroy=Be.destroy,Qt.setQuality=wi,Qt.inBrowser=io,Qt.installPlugin=ui,Qt.freeze=Be.freeze,Qt.unfreeze=Be.unfreeze,Qt.setVolume=Be.setVolume,Qt.mute=Be.mute,Qt.unmute=Be.unmute,Qt.getRegisteredAnimations=Be.getRegisteredAnimations,Qt.useWebWorker=c,Qt.setIDPrefix=jn,Qt.__getFactory=tn,Qt.version="5.13.0";var Zn="",ii=document.getElementsByTagName("script"),fi=ii.length-1,En=ii[fi]||{src:""};Zn=En.src?En.src.replace(/^[^\?]+\??/,""):"",Qn("renderer");var ti=setInterval(Rn,100);try{gn(n)!=="object"&&(window.bodymovin=Qt)}catch{}var mn=(function(){var G={},X={};function pe(Ce,Ee){X[Ce]||(X[Ce]=Ee)}function xe(Ce,Ee,Re){return new X[Ce](Ee,Re)}return G.registerModifier=pe,G.getModifier=xe,G})();function Bn(){}function rn(){}function Vt(){}Bn.prototype.initModifierProperties=function(){},Bn.prototype.addShapeToModifier=function(){},Bn.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:_t.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},Bn.prototype.init=function(G,X){this.shapes=[],this.elem=G,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Bn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Bt],Bn),g([Bn],rn),rn.prototype.initModifierProperties=function(G,X){this.s=Ke.getProp(G,X.s,0,.01,this),this.e=Ke.getProp(G,X.e,0,.01,this),this.o=Ke.getProp(G,X.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=X.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},rn.prototype.addShapeToModifier=function(G){G.pathsData=[]},rn.prototype.calculateShapeEdges=function(G,X,pe,xe,Ce){var Ee=[];X<=1?Ee.push({s:G,e:X}):G>=1?Ee.push({s:G-1,e:X-1}):(Ee.push({s:G,e:1}),Ee.push({s:0,e:X-1}));var Re,Qe,Ye=[],Mt=Ee.length;for(Re=0;Re<Mt;Re+=1)if(!((Qe=Ee[Re]).e*Ce<xe||Qe.s*Ce>xe+pe)){var Zt,Xe;Zt=Qe.s*Ce<=xe?0:(Qe.s*Ce-xe)/pe,Xe=Qe.e*Ce>=xe+pe?1:(Qe.e*Ce-xe)/pe,Ye.push([Zt,Xe])}return Ye.length||Ye.push([0,0]),Ye},rn.prototype.releasePathsData=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)ke.release(G[X]);return G.length=0,G},rn.prototype.processShapes=function(G){var X,pe;if(this._mdf||G){var xe=this.o.v%360/360;if(xe<0&&(xe+=1),(X=this.s.v>1?1+xe:this.s.v<0?0+xe:this.s.v+xe)>(pe=this.e.v>1?1+xe:this.e.v<0?0+xe:this.e.v+xe)){var Ce=X;X=pe,pe=Ce}X=1e-4*Math.round(1e4*X),pe=1e-4*Math.round(1e4*pe),this.sValue=X,this.eValue=pe}else X=this.sValue,pe=this.eValue;var Ee,Re,Qe,Ye,Mt,Zt,Xe,ct=this.shapes.length,vt=0;if(pe===X)for(Re=0;Re<ct;Re+=1)this.shapes[Re].localShapeCollection.releaseShapes(),this.shapes[Re].shape._mdf=!0,this.shapes[Re].shape.paths=this.shapes[Re].localShapeCollection,this._mdf&&(this.shapes[Re].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Re=0;Re<ct;Re+=1)this.shapes[Re].pathsData.length=0,this.shapes[Re].shape._mdf=!0}else{var Et,Gt,Xt=[];for(Re=0;Re<ct;Re+=1)if((Et=this.shapes[Re]).shape._mdf||this._mdf||G||this.m===2){if(Ye=(Ee=Et.shape.paths)._length,Xe=0,!Et.shape._mdf&&Et.pathsData.length)Xe=Et.totalShapeLength;else{for(Mt=this.releasePathsData(Et.pathsData),Qe=0;Qe<Ye;Qe+=1)Zt=$e.getSegmentsLength(Ee.shapes[Qe]),Mt.push(Zt),Xe+=Zt.totalLength;Et.totalShapeLength=Xe,Et.pathsData=Mt}vt+=Xe,Et.shape._mdf=!0}else Et.shape.paths=Et.localShapeCollection;var Je,He=X,Ne=pe,qe=0;for(Re=ct-1;Re>=0;Re-=1)if((Et=this.shapes[Re]).shape._mdf){for((Gt=Et.localShapeCollection).releaseShapes(),this.m===2&&ct>1?(Je=this.calculateShapeEdges(X,pe,Et.totalShapeLength,qe,vt),qe+=Et.totalShapeLength):Je=[[He,Ne]],Ye=Je.length,Qe=0;Qe<Ye;Qe+=1){He=Je[Qe][0],Ne=Je[Qe][1],Xt.length=0,Ne<=1?Xt.push({s:Et.totalShapeLength*He,e:Et.totalShapeLength*Ne}):He>=1?Xt.push({s:Et.totalShapeLength*(He-1),e:Et.totalShapeLength*(Ne-1)}):(Xt.push({s:Et.totalShapeLength*He,e:Et.totalShapeLength}),Xt.push({s:0,e:Et.totalShapeLength*(Ne-1)}));var gt=this.addShapes(Et,Xt[0]);if(Xt[0].s!==Xt[0].e){if(Xt.length>1)if(Et.shape.paths.shapes[Et.shape.paths._length-1].c){var an=gt.pop();this.addPaths(gt,Gt),gt=this.addShapes(Et,Xt[1],an)}else this.addPaths(gt,Gt),gt=this.addShapes(Et,Xt[1]);this.addPaths(gt,Gt)}}Et.shape.paths=Gt}}},rn.prototype.addPaths=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)X.addShape(G[pe])},rn.prototype.addSegment=function(G,X,pe,xe,Ce,Ee,Re){Ce.setXYAt(X[0],X[1],"o",Ee),Ce.setXYAt(pe[0],pe[1],"i",Ee+1),Re&&Ce.setXYAt(G[0],G[1],"v",Ee),Ce.setXYAt(xe[0],xe[1],"v",Ee+1)},rn.prototype.addSegmentFromArray=function(G,X,pe,xe){X.setXYAt(G[1],G[5],"o",pe),X.setXYAt(G[2],G[6],"i",pe+1),xe&&X.setXYAt(G[0],G[4],"v",pe),X.setXYAt(G[3],G[7],"v",pe+1)},rn.prototype.addShapes=function(G,X,pe){var xe,Ce,Ee,Re,Qe,Ye,Mt,Zt,Xe=G.pathsData,ct=G.shape.paths.shapes,vt=G.shape.paths._length,Et=0,Gt=[],Xt=!0;for(pe?(Qe=pe._length,Zt=pe._length):(pe=Lt.newElement(),Qe=0,Zt=0),Gt.push(pe),xe=0;xe<vt;xe+=1){for(Ye=Xe[xe].lengths,pe.c=ct[xe].c,Ee=ct[xe].c?Ye.length:Ye.length+1,Ce=1;Ce<Ee;Ce+=1)if(Et+(Re=Ye[Ce-1]).addedLength<X.s)Et+=Re.addedLength,pe.c=!1;else{if(Et>X.e){pe.c=!1;break}X.s<=Et&&X.e>=Et+Re.addedLength?(this.addSegment(ct[xe].v[Ce-1],ct[xe].o[Ce-1],ct[xe].i[Ce],ct[xe].v[Ce],pe,Qe,Xt),Xt=!1):(Mt=$e.getNewSegment(ct[xe].v[Ce-1],ct[xe].v[Ce],ct[xe].o[Ce-1],ct[xe].i[Ce],(X.s-Et)/Re.addedLength,(X.e-Et)/Re.addedLength,Ye[Ce-1]),this.addSegmentFromArray(Mt,pe,Qe,Xt),Xt=!1,pe.c=!1),Et+=Re.addedLength,Qe+=1}if(ct[xe].c&&Ye.length){if(Re=Ye[Ce-1],Et<=X.e){var Je=Ye[Ce-1].addedLength;X.s<=Et&&X.e>=Et+Je?(this.addSegment(ct[xe].v[Ce-1],ct[xe].o[Ce-1],ct[xe].i[0],ct[xe].v[0],pe,Qe,Xt),Xt=!1):(Mt=$e.getNewSegment(ct[xe].v[Ce-1],ct[xe].v[0],ct[xe].o[Ce-1],ct[xe].i[0],(X.s-Et)/Je,(X.e-Et)/Je,Ye[Ce-1]),this.addSegmentFromArray(Mt,pe,Qe,Xt),Xt=!1,pe.c=!1)}else pe.c=!1;Et+=Re.addedLength,Qe+=1}if(pe._length&&(pe.setXYAt(pe.v[Zt][0],pe.v[Zt][1],"i",Zt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Et>X.e)break;xe<vt-1&&(pe=Lt.newElement(),Xt=!0,Gt.push(pe),Qe=0)}return Gt},g([Bn],Vt),Vt.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Vt.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],Ce=G._length,Ee=0;for(Ee=0;Ee<Ce;Ee+=1)xe[0]+=G.v[Ee][0],xe[1]+=G.v[Ee][1];xe[0]/=Ce,xe[1]/=Ce;var Re,Qe,Ye,Mt,Zt,Xe,ct=Lt.newElement();for(ct.c=G.c,Ee=0;Ee<Ce;Ee+=1)Re=G.v[Ee][0]+(xe[0]-G.v[Ee][0])*pe,Qe=G.v[Ee][1]+(xe[1]-G.v[Ee][1])*pe,Ye=G.o[Ee][0]+(xe[0]-G.o[Ee][0])*-pe,Mt=G.o[Ee][1]+(xe[1]-G.o[Ee][1])*-pe,Zt=G.i[Ee][0]+(xe[0]-G.i[Ee][0])*-pe,Xe=G.i[Ee][1]+(xe[1]-G.i[Ee][1])*-pe,ct.setTripleAt(Re,Qe,Ye,Mt,Zt,Xe,Ee);return ct},Vt.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=(function(){var G=[0,0];function X(Ye){var Mt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Mt,this.a&&Ye.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Ye.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Ye.skewFromAxis(-this.sk.v,this.sa.v),this.r?Ye.rotate(-this.r.v):Ye.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Ye.translate(this.px.v,this.py.v,-this.pz.v):Ye.translate(this.px.v,this.py.v,0):Ye.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Ye){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Ye){var Mt;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Zt,Xe;if(Mt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Zt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Mt,0),Xe=this.p.getValueAtTime(this.p.keyframes[0].t/Mt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Zt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Mt,0),Xe=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Mt,0)):(Zt=this.p.pv,Xe=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Mt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Zt=[],Xe=[];var ct=this.px,vt=this.py;ct._caching.lastFrame+ct.offsetTime<=ct.keyframes[0].t?(Zt[0]=ct.getValueAtTime((ct.keyframes[0].t+.01)/Mt,0),Zt[1]=vt.getValueAtTime((vt.keyframes[0].t+.01)/Mt,0),Xe[0]=ct.getValueAtTime(ct.keyframes[0].t/Mt,0),Xe[1]=vt.getValueAtTime(vt.keyframes[0].t/Mt,0)):ct._caching.lastFrame+ct.offsetTime>=ct.keyframes[ct.keyframes.length-1].t?(Zt[0]=ct.getValueAtTime(ct.keyframes[ct.keyframes.length-1].t/Mt,0),Zt[1]=vt.getValueAtTime(vt.keyframes[vt.keyframes.length-1].t/Mt,0),Xe[0]=ct.getValueAtTime((ct.keyframes[ct.keyframes.length-1].t-.01)/Mt,0),Xe[1]=vt.getValueAtTime((vt.keyframes[vt.keyframes.length-1].t-.01)/Mt,0)):(Zt=[ct.pv,vt.pv],Xe[0]=ct.getValueAtTime((ct._caching.lastFrame+ct.offsetTime-.01)/Mt,ct.offsetTime),Xe[1]=vt.getValueAtTime((vt._caching.lastFrame+vt.offsetTime-.01)/Mt,vt.offsetTime))}else Zt=Xe=G;this.v.rotate(-Math.atan2(Zt[1]-Xe[1],Zt[0]-Xe[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function xe(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function Ce(){}function Ee(Ye){this._addDynamicProperty(Ye),this.elem.addDynamicProperty(Ye),this._isDirty=!0}function Re(Ye,Mt,Zt){if(this.elem=Ye,this.frameId=-1,this.propType="transform",this.data=Mt,this.v=new wt,this.pre=new wt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Zt||Ye),Mt.p&&Mt.p.s?(this.px=Ke.getProp(Ye,Mt.p.x,0,0,this),this.py=Ke.getProp(Ye,Mt.p.y,0,0,this),Mt.p.z&&(this.pz=Ke.getProp(Ye,Mt.p.z,0,0,this))):this.p=Ke.getProp(Ye,Mt.p||{k:[0,0,0]},1,0,this),Mt.rx){if(this.rx=Ke.getProp(Ye,Mt.rx,0,D,this),this.ry=Ke.getProp(Ye,Mt.ry,0,D,this),this.rz=Ke.getProp(Ye,Mt.rz,0,D,this),Mt.or.k[0].ti){var Xe,ct=Mt.or.k.length;for(Xe=0;Xe<ct;Xe+=1)Mt.or.k[Xe].to=null,Mt.or.k[Xe].ti=null}this.or=Ke.getProp(Ye,Mt.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(Ye,Mt.r||{k:0},0,D,this);Mt.sk&&(this.sk=Ke.getProp(Ye,Mt.sk,0,D,this),this.sa=Ke.getProp(Ye,Mt.sa,0,D,this)),this.a=Ke.getProp(Ye,Mt.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(Ye,Mt.s||{k:[100,100,100]},1,.01,this),Mt.o?this.o=Ke.getProp(Ye,Mt.o,0,.01,Ye):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Qe(Ye,Mt,Zt){return new Re(Ye,Mt,Zt)}return Re.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ce},g([Bt],Re),Re.prototype.addDynamicProperty=Ee,Re.prototype._addDynamicProperty=Bt.prototype.addDynamicProperty,{getTransformProperty:Qe}})();function Wn(){}function Xn(){}function Kt(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Xi(G){return Math.abs(G)<=1e-5}function hi(G,X,pe){return G*(1-pe)+X*pe}function Yi(G,X,pe){return[hi(G[0],X[0],pe),hi(G[1],X[1],pe)]}function bo(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var Ce=-X/(2*G);if(xe===0)return[Ce];var Ee=Math.sqrt(xe)/(2*G);return[Ce-Ee,Ce+Ee]}function bi(G,X,pe,xe){return[3*X-G-3*pe+xe,3*G-6*X+3*pe,-3*G+3*X,G]}function Un(G){return new ln(G,G,G,G,!1)}function ln(G,X,pe,xe,Ce){Ce&&so(G,X)&&(X=Yi(G,xe,1/3)),Ce&&so(pe,xe)&&(pe=Yi(G,xe,2/3));var Ee=bi(G[0],X[0],pe[0],xe[0]),Re=bi(G[1],X[1],pe[1],xe[1]);this.a=[Ee[0],Re[0]],this.b=[Ee[1],Re[1]],this.c=[Ee[2],Re[2]],this.d=[Ee[3],Re[3]],this.points=[G,X,pe,xe]}function Jt(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var Ce=xe;xe=pe,pe=Ce}for(var Ee=bo(3*G.a[X],2*G.b[X],G.c[X]),Re=0;Re<Ee.length;Re+=1)if(Ee[Re]>0&&Ee[Re]<1){var Qe=G.point(Ee[Re])[X];Qe<pe?pe=Qe:Qe>xe&&(xe=Qe)}return{min:pe,max:xe}}function bn(G,X,pe){var xe=G.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:G,t:(X+pe)/2,t1:X,t2:pe}}function Tn(G){var X=G.bez.split(.5);return[bn(X[0],G.t1,G.t),bn(X[1],G.t,G.t2)]}function vn(G,X){return 2*Math.abs(G.cx-X.cx)<G.width+X.width&&2*Math.abs(G.cy-X.cy)<G.height+X.height}function Ht(G,X,pe,xe,Ce,Ee){if(vn(G,X)){if(pe>=Ee||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void Ce.push([G.t,X.t]);var Re=Tn(G),Qe=Tn(X);Ht(Re[0],Qe[0],pe+1,xe,Ce,Ee),Ht(Re[0],Qe[1],pe+1,xe,Ce,Ee),Ht(Re[1],Qe[0],pe+1,xe,Ce,Ee),Ht(Re[1],Qe[1],pe+1,xe,Ce,Ee)}}function zn(G,X){return[G[1]*X[2]-G[2]*X[1],G[2]*X[0]-G[0]*X[2],G[0]*X[1]-G[1]*X[0]]}function eo(G,X,pe,xe){var Ce=[G[0],G[1],1],Ee=[X[0],X[1],1],Re=[pe[0],pe[1],1],Qe=[xe[0],xe[1],1],Ye=zn(zn(Ce,Ee),zn(Re,Qe));return Xi(Ye[2])?null:[Ye[0]/Ye[2],Ye[1]/Ye[2]]}function to(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function Qo(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function so(G,X){return Kt(G[0],X[0])&&Kt(G[1],X[1])}function pa(){}function xr(G,X,pe,xe,Ce,Ee,Re){var Qe=pe-Math.PI/2,Ye=pe+Math.PI/2,Mt=X[0]+Math.cos(pe)*xe*Ce,Zt=X[1]-Math.sin(pe)*xe*Ce;G.setTripleAt(Mt,Zt,Mt+Math.cos(Qe)*Ee,Zt-Math.sin(Qe)*Ee,Mt+Math.cos(Ye)*Re,Zt-Math.sin(Ye)*Re,G.length())}function Ea(G,X){var pe=[X[0]-G[0],X[1]-G[1]],xe=.5*-Math.PI;return[Math.cos(xe)*pe[0]-Math.sin(xe)*pe[1],Math.sin(xe)*pe[0]+Math.cos(xe)*pe[1]]}function $n(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),Ce=Ea(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(Ce[1],Ce[0])}function kt(G,X,pe,xe,Ce,Ee,Re){var Qe=$n(X,pe),Ye=X.v[pe%X._length],Mt=X.v[pe===0?X._length-1:pe-1],Zt=X.v[(pe+1)%X._length],Xe=Ee===2?Math.sqrt(Math.pow(Ye[0]-Mt[0],2)+Math.pow(Ye[1]-Mt[1],2)):0,ct=Ee===2?Math.sqrt(Math.pow(Ye[0]-Zt[0],2)+Math.pow(Ye[1]-Zt[1],2)):0;xr(G,X.v[pe%X._length],Qe,Re,xe,ct/(2*(Ce+1)),Xe/(2*(Ce+1)))}function Pn(G,X,pe,xe,Ce,Ee){for(var Re=0;Re<xe;Re+=1){var Qe=(Re+1)/(xe+1),Ye=Ce===2?Math.sqrt(Math.pow(X.points[3][0]-X.points[0][0],2)+Math.pow(X.points[3][1]-X.points[0][1],2)):0,Mt=X.normalAngle(Qe);xr(G,X.point(Qe),Mt,Ee,pe,Ye/(2*(xe+1)),Ye/(2*(xe+1))),Ee=-Ee}return Ee}function Li(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[to(G,xe,pe),to(X,xe,pe)]}function Bi(G,X){var pe,xe,Ce,Ee,Re,Qe,Ye;pe=(Ye=Li(G.points[0],G.points[1],X))[0],xe=Ye[1],Ce=(Ye=Li(G.points[1],G.points[2],X))[0],Ee=Ye[1],Re=(Ye=Li(G.points[2],G.points[3],X))[0],Qe=Ye[1];var Mt=eo(pe,xe,Ce,Ee);Mt===null&&(Mt=xe);var Zt=eo(Re,Qe,Ce,Ee);return Zt===null&&(Zt=Re),new ln(pe,Mt,Zt,Qe)}function Hi(G,X,pe,xe,Ce){var Ee=X.points[3],Re=pe.points[0];if(xe===3||so(Ee,Re))return Ee;if(xe===2){var Qe=-X.tangentAngle(1),Ye=-pe.tangentAngle(0)+Math.PI,Mt=eo(Ee,to(Ee,Qe+Math.PI/2,100),Re,to(Re,Qe+Math.PI/2,100)),Zt=Mt?Qo(Mt,Ee):Qo(Ee,Re)/2,Xe=to(Ee,Qe,2*Zt*L);return G.setXYAt(Xe[0],Xe[1],"o",G.length()-1),Xe=to(Re,Ye,2*Zt*L),G.setTripleAt(Re[0],Re[1],Re[0],Re[1],Xe[0],Xe[1],G.length()),Re}var ct=eo(so(Ee,X.points[2])?X.points[0]:X.points[2],Ee,Re,so(Re,pe.points[1])?pe.points[3]:pe.points[1]);return ct&&Qo(ct,Ee)<Ce?(G.setTripleAt(ct[0],ct[1],ct[0],ct[1],ct[0],ct[1],G.length()),ct):Ee}function vi(G,X){var pe=G.intersections(X);return pe.length&&Kt(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Vo(G,X){var pe=G.slice(),xe=X.slice(),Ce=vi(G[G.length-1],X[0]);return Ce&&(pe[G.length-1]=G[G.length-1].split(Ce[0])[0],xe[0]=X[0].split(Ce[1])[1]),G.length>1&&X.length>1&&(Ce=vi(G[0],X[X.length-1]))?[[G[0].split(Ce[0])[0]],[X[X.length-1].split(Ce[1])[1]]]:[pe,xe]}function mi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Vo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Vo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function fo(G,X){var pe,xe,Ce,Ee,Re=G.inflectionPoints();if(Re.length===0)return[Bi(G,X)];if(Re.length===1||Kt(Re[1],1))return pe=(Ce=G.split(Re[0]))[0],xe=Ce[1],[Bi(pe,X),Bi(xe,X)];pe=(Ce=G.split(Re[0]))[0];var Qe=(Re[1]-Re[0])/(1-Re[0]);return Ee=(Ce=Ce[1].split(Qe))[0],xe=Ce[1],[Bi(pe,X),Bi(Ee,X),Bi(xe,X)]}function yr(){}function Rt(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",Ce="normal",Ee=pe.length,Re=0;Re<Ee;Re+=1)switch(X=pe[Re].toLowerCase(),X){case"italic":Ce="italic";break;case"bold":xe="700";break;case"black":xe="900";break;case"medium":xe="500";break;case"regular":case"normal":xe="400";break;case"light":case"thin":xe="200"}return{style:Ce,weight:G.fWeight||xe}}g([Bn],Wn),Wn.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.c=Ke.getProp(G,X.c,0,null,this),this.o=Ke.getProp(G,X.o,0,null,this),this.tr=Nt.getTransformProperty(G,X.tr,this),this.so=Ke.getProp(G,X.tr.so,0,.01,this),this.eo=Ke.getProp(G,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new wt,this.rMatrix=new wt,this.sMatrix=new wt,this.tMatrix=new wt,this.matrix=new wt},Wn.prototype.applyTransforms=function(G,X,pe,xe,Ce,Ee){var Re=Ee?-1:1,Qe=xe.s.v[0]+(1-xe.s.v[0])*(1-Ce),Ye=xe.s.v[1]+(1-xe.s.v[1])*(1-Ce);G.translate(xe.p.v[0]*Re*Ce,xe.p.v[1]*Re*Ce,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Re*Ce),X.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2]),pe.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),pe.scale(Ee?1/Qe:Qe,Ee?1/Ye:Ye),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},Wn.prototype.init=function(G,X,pe,xe){for(this.elem=G,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wn.prototype.resetElements=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X]._processed=!1,G[X].ty==="gr"&&this.resetElements(G[X].it)},Wn.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},Wn.prototype.changeGroupRender=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)G[pe]._render=X,G[pe].ty==="gr"&&this.changeGroupRender(G[pe].it,X)},Wn.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re=!1;if(this._mdf||G){var Qe,Ye=Math.ceil(this.c.v);if(this._groups.length<Ye){for(;this._groups.length<Ye;){var Mt={it:this.cloneElements(this._elements),ty:"gr"};Mt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Mt),this._groups.splice(0,0,Mt),this._currentCopies+=1}this.elem.reloadShapes(),Re=!0}for(Ee=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Qe=Ee<Ye,this._groups[xe]._render=Qe,this.changeGroupRender(this._groups[xe].it,Qe),!Qe){var Zt=this.elemsData[xe].it,Xe=Zt[Zt.length-1];Xe.transform.op.v!==0?(Xe.transform.op._mdf=!0,Xe.transform.op.v=0):Xe.transform.op._mdf=!1}Ee+=1}this._currentCopies=Ye;var ct=this.o.v,vt=ct%1,Et=ct>0?Math.floor(ct):Math.ceil(ct),Gt=this.pMatrix.props,Xt=this.rMatrix.props,Je=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var He,Ne,qe=0;if(ct>0){for(;qe<Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;vt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,vt,!1),qe+=vt)}else if(ct<0){for(;qe>Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;vt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-vt,!0),qe-=vt)}for(xe=this.data.m===1?0:this._currentCopies-1,Ce=this.data.m===1?1:-1,Ee=this._currentCopies;Ee;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&Ce===1||xe!==this._currentCopies-1&&Ce===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],Xt[8],Xt[9],Xt[10],Xt[11],Xt[12],Xt[13],Xt[14],Xt[15]),this.matrix.transform(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],Je[8],Je[9],Je[10],Je[11],Je[12],Je[13],Je[14],Je[15]),this.matrix.transform(Gt[0],Gt[1],Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],Gt[8],Gt[9],Gt[10],Gt[11],Gt[12],Gt[13],Gt[14],Gt[15]),He=0;He<Ne;He+=1)pe[He]=this.matrix.props[He];this.matrix.reset()}else for(this.matrix.reset(),He=0;He<Ne;He+=1)pe[He]=this.matrix.props[He];qe+=1,Ee-=1,xe+=Ce}}else for(Ee=this._currentCopies,xe=0,Ce=1;Ee;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,Ee-=1,xe+=Ce;return Re},Wn.prototype.addShape=function(){},g([Bn],Xn),Xn.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.rd=Ke.getProp(G,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Xn.prototype.processPath=function(G,X){var pe=Lt.newElement();pe.c=G.c;var xe,Ce,Ee,Re,Qe,Ye,Mt,Zt,Xe,ct,vt,Et,Gt,Xt=G._length,Je=0;for(xe=0;xe<Xt;xe+=1)Ce=G.v[xe],Re=G.o[xe],Ee=G.i[xe],Ce[0]===Re[0]&&Ce[1]===Re[1]&&Ce[0]===Ee[0]&&Ce[1]===Ee[1]?xe!==0&&xe!==Xt-1||G.c?(Qe=xe===0?G.v[Xt-1]:G.v[xe-1],Mt=(Ye=Math.sqrt(Math.pow(Ce[0]-Qe[0],2)+Math.pow(Ce[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Zt=Et=Ce[0]+(Qe[0]-Ce[0])*Mt,Xe=Gt=Ce[1]-(Ce[1]-Qe[1])*Mt,ct=Zt-(Zt-Ce[0])*L,vt=Xe-(Xe-Ce[1])*L,pe.setTripleAt(Zt,Xe,ct,vt,Et,Gt,Je),Je+=1,Qe=xe===Xt-1?G.v[0]:G.v[xe+1],Mt=(Ye=Math.sqrt(Math.pow(Ce[0]-Qe[0],2)+Math.pow(Ce[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Zt=ct=Ce[0]+(Qe[0]-Ce[0])*Mt,Xe=vt=Ce[1]+(Qe[1]-Ce[1])*Mt,Et=Zt-(Zt-Ce[0])*L,Gt=Xe-(Xe-Ce[1])*L,pe.setTripleAt(Zt,Xe,ct,vt,Et,Gt,Je),Je+=1):(pe.setTripleAt(Ce[0],Ce[1],Re[0],Re[1],Ee[0],Ee[1],Je),Je+=1):(pe.setTripleAt(G.v[xe][0],G.v[xe][1],G.o[xe][0],G.o[xe][1],G.i[xe][0],G.i[xe][1],Je),Je+=1);return pe},Xn.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ye=this.rd.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ln.prototype.point=function(G){return[((this.a[0]*G+this.b[0])*G+this.c[0])*G+this.d[0],((this.a[1]*G+this.b[1])*G+this.c[1])*G+this.d[1]]},ln.prototype.derivative=function(G){return[(3*G*this.a[0]+2*this.b[0])*G+this.c[0],(3*G*this.a[1]+2*this.b[1])*G+this.c[1]]},ln.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},ln.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},ln.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xi(G))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/G,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/G;if(pe<0)return[];var xe=Math.sqrt(pe);return Xi(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ce){return Ce>0&&Ce<1}))},ln.prototype.split=function(G){if(G<=0)return[Un(this.points[0]),this];if(G>=1)return[this,Un(this.points[this.points.length-1])];var X=Yi(this.points[0],this.points[1],G),pe=Yi(this.points[1],this.points[2],G),xe=Yi(this.points[2],this.points[3],G),Ce=Yi(X,pe,G),Ee=Yi(pe,xe,G),Re=Yi(Ce,Ee,G);return[new ln(this.points[0],X,Ce,Re,!0),new ln(Re,Ee,xe,this.points[3],!0)]},ln.prototype.bounds=function(){return{x:Jt(this,0),y:Jt(this,1)}},ln.prototype.boundingBox=function(){var G=this.bounds();return{left:G.x.min,right:G.x.max,top:G.y.min,bottom:G.y.max,width:G.x.max-G.x.min,height:G.y.max-G.y.min,cx:(G.x.max+G.x.min)/2,cy:(G.y.max+G.y.min)/2}},ln.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Ht(bn(this,0,1),bn(G,0,1),0,X,xe,pe),xe},ln.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new ln(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},ln.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new ln(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([Bn],pa),pa.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amplitude=Ke.getProp(G,X.s,0,null,this),this.frequency=Ke.getProp(G,X.r,0,null,this),this.pointsType=Ke.getProp(G,X.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},pa.prototype.processPath=function(G,X,pe,xe){var Ce=G._length,Ee=Lt.newElement();if(Ee.c=G.c,G.c||(Ce-=1),Ce===0)return Ee;var Re=-1,Qe=ln.shapeSegment(G,0);kt(Ee,G,0,X,pe,xe,Re);for(var Ye=0;Ye<Ce;Ye+=1)Re=Pn(Ee,Qe,X,pe,xe,-Re),Qe=Ye!==Ce-1||G.c?ln.shapeSegment(G,(Ye+1)%Ce):null,kt(Ee,G,Ye+1,X,pe,xe,Re);return Ee},pa.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ye=this.amplitude.v,Mt=Math.max(0,Math.round(this.frequency.v)),Zt=this.pointsType.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Mt,Zt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Bn],yr),yr.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this.miterLimit=Ke.getProp(G,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},yr.prototype.processPath=function(G,X,pe,xe){var Ce=Lt.newElement();Ce.c=G.c;var Ee=G.length();G.c||(Ee-=1);var Re,Qe,Ye,Mt=[];for(Re=0;Re<Ee;Re+=1)Ye=ln.shapeSegment(G,Re),Mt.push(fo(Ye,X));if(!G.c)for(Re=Ee-1;Re>=0;Re-=1)Ye=ln.shapeSegmentInverted(G,Re),Mt.push(fo(Ye,X));Mt=mi(Mt);var Zt=null,Xe=null;for(Re=0;Re<Mt.length;Re+=1){var ct=Mt[Re];for(Xe&&(Zt=Hi(Ce,Xe,ct[0],pe,xe)),Xe=ct[ct.length-1],Qe=0;Qe<ct.length;Qe+=1)Ye=ct[Qe],Zt&&so(Ye.points[0],Zt)?Ce.setXYAt(Ye.points[1][0],Ye.points[1][1],"o",Ce.length()-1):Ce.setTripleAt(Ye.points[0][0],Ye.points[0][1],Ye.points[1][0],Ye.points[1][1],Ye.points[0][0],Ye.points[0][1],Ce.length()),Ce.setTripleAt(Ye.points[3][0],Ye.points[3][1],Ye.points[3][0],Ye.points[3][1],Ye.points[2][0],Ye.points[2][1],Ce.length()),Zt=Ye.points[3]}return Mt.length&&Hi(Ce,Xe,Mt[0][0],pe,xe),Ce},yr.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v,Mt=this.miterLimit.v,Zt=this.lineJoin;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Zt,Mt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var dn=(function(){var G=5e3,X={w:0,size:0,shapes:[],data:{shapes:[]}},pe=[];pe=pe.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var xe=127988,Ce=917631,Ee=917601,Re=917626,Qe=65039,Ye=8205,Mt=127462,Zt=127487,Xe=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ct(ft){var st,ze=ft.split(","),dt=ze.length,Ct=[];for(st=0;st<dt;st+=1)ze[st]!=="sans-serif"&&ze[st]!=="monospace"&&Ct.push(ze[st]);return Ct.join(",")}function vt(ft,st){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=st;var dt=h("span");dt.innerText="giItT1WQy@!-/#",ze.style.position="absolute",ze.style.left="-10000px",ze.style.top="-10000px",ze.style.fontSize="300px",ze.style.fontVariant="normal",ze.style.fontStyle="normal",ze.style.fontWeight="normal",ze.style.letterSpacing="0",ze.appendChild(dt),document.body.appendChild(ze);var Ct=dt.offsetWidth;return dt.style.fontFamily=ct(ft)+", "+st,{node:dt,w:Ct,parent:ze}}function Et(){var ft,st,ze,dt=this.fonts.length,Ct=dt;for(ft=0;ft<dt;ft+=1)this.fonts[ft].loaded?Ct-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(st=this.fonts[ft].monoCase.node,ze=this.fonts[ft].monoCase.w,st.offsetWidth!==ze?(Ct-=1,this.fonts[ft].loaded=!0):(st=this.fonts[ft].sansCase.node,ze=this.fonts[ft].sansCase.w,st.offsetWidth!==ze&&(Ct-=1,this.fonts[ft].loaded=!0)),this.fonts[ft].loaded&&(this.fonts[ft].sansCase.parent.parentNode.removeChild(this.fonts[ft].sansCase.parent),this.fonts[ft].monoCase.parent.parentNode.removeChild(this.fonts[ft].monoCase.parent)));Ct!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Gt(ft,st){var ze,dt=document.body&&st?"svg":"canvas",Ct=Rt(ft);if(dt==="svg"){var gi=le("text");gi.style.fontSize="100px",gi.setAttribute("font-family",ft.fFamily),gi.setAttribute("font-style",Ct.style),gi.setAttribute("font-weight",Ct.weight),gi.textContent="1",ft.fClass?(gi.style.fontFamily="inherit",gi.setAttribute("class",ft.fClass)):gi.style.fontFamily=ft.fFamily,st.appendChild(gi),ze=gi}else{var Zo=new OffscreenCanvas(500,500).getContext("2d");Zo.font=Ct.style+" "+Ct.weight+" 100px "+ft.fFamily,ze=Zo}function Po(wa){return dt==="svg"?(ze.textContent=wa,ze.getComputedTextLength()):ze.measureText(wa).width}return{measureText:Po}}function Xt(ft,st){if(ft){if(this.chars)return this.isLoaded=!0,void(this.fonts=ft.list);if(!document.body)return this.isLoaded=!0,ft.list.forEach((function(qa){qa.helper=Gt(qa),qa.cache={}})),void(this.fonts=ft.list);var ze,dt=ft.list,Ct=dt.length,gi=Ct;for(ze=0;ze<Ct;ze+=1){var Zo,Po,wa=!0;if(dt[ze].loaded=!1,dt[ze].monoCase=vt(dt[ze].fFamily,"monospace"),dt[ze].sansCase=vt(dt[ze].fFamily,"sans-serif"),dt[ze].fPath){if(dt[ze].fOrigin==="p"||dt[ze].origin===3){if((Zo=document.querySelectorAll('style[f-forigin="p"][f-family="'+dt[ze].fFamily+'"], style[f-origin="3"][f-family="'+dt[ze].fFamily+'"]')).length>0&&(wa=!1),wa){var Jo=h("style");Jo.setAttribute("f-forigin",dt[ze].fOrigin),Jo.setAttribute("f-origin",dt[ze].origin),Jo.setAttribute("f-family",dt[ze].fFamily),Jo.type="text/css",Jo.innerText="@font-face {font-family: "+dt[ze].fFamily+"; font-style: normal; src: url('"+dt[ze].fPath+"');}",st.appendChild(Jo)}}else if(dt[ze].fOrigin==="g"||dt[ze].origin===1){for(Zo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Po=0;Po<Zo.length;Po+=1)Zo[Po].href.indexOf(dt[ze].fPath)!==-1&&(wa=!1);if(wa){var hl=h("link");hl.setAttribute("f-forigin",dt[ze].fOrigin),hl.setAttribute("f-origin",dt[ze].origin),hl.type="text/css",hl.rel="stylesheet",hl.href=dt[ze].fPath,document.body.appendChild(hl)}}else if(dt[ze].fOrigin==="t"||dt[ze].origin===2){for(Zo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Po=0;Po<Zo.length;Po+=1)dt[ze].fPath===Zo[Po].src&&(wa=!1);if(wa){var ma=h("link");ma.setAttribute("f-forigin",dt[ze].fOrigin),ma.setAttribute("f-origin",dt[ze].origin),ma.setAttribute("rel","stylesheet"),ma.setAttribute("href",dt[ze].fPath),st.appendChild(ma)}}}else dt[ze].loaded=!0,gi-=1;dt[ze].helper=Gt(dt[ze],st),dt[ze].cache={},this.fonts.push(dt[ze])}gi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Je(ft){if(ft){this.chars||(this.chars=[]);var st,ze,dt,Ct=ft.length,gi=this.chars.length;for(st=0;st<Ct;st+=1){for(ze=0,dt=!1;ze<gi;)this.chars[ze].style===ft[st].style&&this.chars[ze].fFamily===ft[st].fFamily&&this.chars[ze].ch===ft[st].ch&&(dt=!0),ze+=1;dt||(this.chars.push(ft[st]),gi+=1)}}}function He(ft,st,ze){for(var dt=0,Ct=this.chars.length;dt<Ct;){if(this.chars[dt].ch===ft&&this.chars[dt].style===st&&this.chars[dt].fFamily===ze)return this.chars[dt];dt+=1}return(typeof ft=="string"&&ft.charCodeAt(0)!==13||!ft)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ft,st,ze)),X}function Ne(ft,st,ze){var dt=this.getFontByName(st),Ct=ft;if(!dt.cache[Ct]){var gi=dt.helper;if(ft===" "){var Zo=gi.measureText("|"+ft+"|"),Po=gi.measureText("||");dt.cache[Ct]=(Zo-Po)/100}else dt.cache[Ct]=gi.measureText(ft)/100}return dt.cache[Ct]*ze}function qe(ft){for(var st=0,ze=this.fonts.length;st<ze;){if(this.fonts[st].fName===ft)return this.fonts[st];st+=1}return this.fonts[0]}function gt(ft){var st=0,ze=ft.charCodeAt(0);if(ze>=55296&&ze<=56319){var dt=ft.charCodeAt(1);dt>=56320&&dt<=57343&&(st=1024*(ze-55296)+dt-56320+65536)}return st}function an(ft,st){var ze=ft.toString(16)+st.toString(16);return Xe.indexOf(ze)!==-1}function cn(ft){return ft===Ye}function Ot(ft){return ft===Qe}function po(ft){var st=gt(ft);return st>=Mt&&st<=Zt}function $o(ft){return po(ft.substr(0,2))&&po(ft.substr(2,2))}function si(ft){return pe.indexOf(ft)!==-1}function Ko(ft,st){var ze=gt(ft.substr(st,2));if(ze!==xe)return!1;var dt=0;for(st+=2;dt<5;){if((ze=gt(ft.substr(st,2)))<Ee||ze>Re)return!1;dt+=1,st+=2}return gt(ft.substr(st,2))===Ce}function lo(){this.isLoaded=!0}var zt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};zt.isModifier=an,zt.isZeroWidthJoiner=cn,zt.isFlagEmoji=$o,zt.isRegionalCode=po,zt.isCombinedCharacter=si,zt.isRegionalFlag=Ko,zt.isVariationSelector=Ot,zt.BLACK_FLAG_CODE_POINT=xe;var xn={addChars:Je,addFonts:Xt,getCharData:He,getFontByName:qe,measureText:Ne,checkLoadedFonts:Et,setIsLoaded:lo};return zt.prototype=xn,zt})();function nn(G){this.animationData=G}function di(G){return new nn(G)}function Sn(){}nn.prototype.getProp=function(G){return this.animationData.slots&&this.animationData.slots[G.sid]?Object.assign(G,this.animationData.slots[G.sid].p):G},Sn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(G){this.renderableComponents.indexOf(G)===-1&&this.renderableComponents.push(G)},removeRenderableComponent:function(G){this.renderableComponents.indexOf(G)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(G),1)},prepareRenderableFrame:function(G){this.checkLayerLimits(G)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(G){this.data.ip-this.data.st<=G&&this.data.op-this.data.st>G?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var G,X=this.renderableComponents.length;for(G=0;G<X;G+=1)this.renderableComponents[G].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var ni=(function(){var G={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(X){return G[X]||""}})();function Ti(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function wo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Qi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function oo(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Tt(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function xi(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function xo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Hr(){this.p={}}function br(G,X){var pe=G.ef||[];this.effectElements=[];var xe,Ce,Ee=pe.length;for(xe=0;xe<Ee;xe+=1)Ce=new wr(pe[xe],X),this.effectElements.push(Ce)}function wr(G,X){this.init(G,X)}function Nn(){}function Ci(){}function rr(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(G,X,pe)}function ha(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.initBaseData(G,X,pe),this._isPlaying=!1,this._canPlay=!1;var xe=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(xe),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ke.getProp(this,G.au&&G.au.lv?G.au.lv:{k:[100]},1,.01,this)}function il(){}g([Bt],wr),wr.prototype.getValue=wr.prototype.iterateDynamicProperties,wr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ce=this.data.ef.length,Ee=this.data.ef;for(pe=0;pe<Ce;pe+=1){switch(xe=null,Ee[pe].ty){case 0:xe=new Ti(Ee[pe],X,this);break;case 1:xe=new wo(Ee[pe],X,this);break;case 2:xe=new Qi(Ee[pe],X,this);break;case 3:xe=new oo(Ee[pe],X,this);break;case 4:case 7:xe=new xo(Ee[pe],X,this);break;case 10:xe=new Tt(Ee[pe],X,this);break;case 11:xe=new xi(Ee[pe],X,this);break;case 5:xe=new br(Ee[pe],X);break;default:xe=new Hr(Ee[pe])}xe&&this.effectElements.push(xe)}},Nn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var G=0,X=this.data.masksProperties.length;G<X;){if(this.data.masksProperties[G].mode!=="n"&&this.data.masksProperties[G].cl!==!1)return!0;G+=1}return!1},initExpressions:function(){},setBlendMode:function(){var G=ni(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=G},initBaseData:function(G,X,pe){this.globalData=X,this.comp=pe,this.data=G,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new br(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ci.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(G,X){var pe,xe=this.dynamicProperties.length;for(pe=0;pe<xe;pe+=1)(X||this._isParent&&this.dynamicProperties[pe].propType==="transform")&&(this.dynamicProperties[pe].getValue(),this.dynamicProperties[pe]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&this.dynamicProperties.push(G)}},rr.prototype.prepareFrame=function(){},g([Sn,Nn,Ci],rr),rr.prototype.getBaseElement=function(){return null},rr.prototype.renderFrame=function(){},rr.prototype.destroy=function(){},rr.prototype.initExpressions=function(){},rr.prototype.getFootageData=function(){return this.footageData},ha.prototype.prepareFrame=function(G){if(this.prepareRenderableFrame(G,!0),this.prepareProperties(G,!0),this.tm._placeholder)this._currentTime=G/this.data.sr;else{var X=this.tm.v;this._currentTime=X}this._volume=this.lv.v[0];var pe=this._volume*this._volumeMultiplier;this._previousVolume!==pe&&(this._previousVolume=pe,this.audio.volume(pe))},g([Sn,Nn,Ci],ha),ha.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ha.prototype.show=function(){},ha.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ha.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ha.prototype.resume=function(){this._canPlay=!0},ha.prototype.setRate=function(G){this.audio.rate(G)},ha.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*this._volume,this.audio.volume(this._previousVolume)},ha.prototype.getBaseElement=function(){return null},ha.prototype.destroy=function(){},ha.prototype.sourceRectAtTime=function(){},ha.prototype.initExpressions=function(){},il.prototype.checkLayers=function(G){var X,pe,xe=this.layers.length;for(this.completeLayers=!0,X=xe-1;X>=0;X-=1)this.elements[X]||(pe=this.layers[X]).ip-pe.st<=G-this.layers[X].st&&pe.op-pe.st>G-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},il.prototype.createItem=function(G){switch(G.ty){case 2:return this.createImage(G);case 0:return this.createComp(G);case 1:return this.createSolid(G);case 3:default:return this.createNull(G);case 4:return this.createShape(G);case 5:return this.createText(G);case 6:return this.createAudio(G);case 13:return this.createCamera(G);case 15:return this.createFootage(G)}},il.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},il.prototype.createAudio=function(G){return new ha(G,this.globalData,this)},il.prototype.createFootage=function(G){return new rr(G,this.globalData,this)},il.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},il.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,Ce=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ce;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},il.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},il.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},il.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,Ce=this.layers,Ee=0,Re=Ce.length;Ee<Re;)Ce[Ee].ind==X&&(xe[Ee]&&xe[Ee]!==!0?(pe.push(xe[Ee]),xe[Ee].setAsParent(),Ce[Ee].parent!==void 0?this.buildElementParenting(G,Ce[Ee].parent,pe):G.setHierarchy(pe)):(this.buildItem(Ee),this.addPendingElement(G))),Ee+=1},il.prototype.addPendingElement=function(G){this.pendingElements.push(G)},il.prototype.searchExtraCompositions=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)if(G[X].xt){var xe=this.createComp(G[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},il.prototype.getElementById=function(G){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===G)return this.elements[X];return null},il.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ce=this.elements.length;for(xe=0;xe<Ce;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},il.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new dn,this.globalData.slotManager=di(G),this.globalData.fontManager.addChars(G.chars),this.globalData.fontManager.addFonts(G.fonts,X),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=G.fr,this.globalData.nm=G.nm,this.globalData.compSize={w:G.w,h:G.h}};var kL={TRANSFORM_EFFECT:"transformEFfect"};function g2(){}function S0(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ce=this.globalData.defs,Ee=this.masksProperties?this.masksProperties.length:0;this.viewData=b(Ee),this.solidPath="";var Re,Qe,Ye,Mt,Zt,Xe,ct,vt=this.masksProperties,Et=0,Gt=[],Xt=H(),Je="clipPath",He="clip-path";for(xe=0;xe<Ee;xe+=1)if((vt[xe].mode!=="a"&&vt[xe].mode!=="n"||vt[xe].inv||vt[xe].o.k!==100||vt[xe].o.x)&&(Je="mask",He="mask"),vt[xe].mode!=="s"&&vt[xe].mode!=="i"||Et!==0?Mt=null:((Mt=le("rect")).setAttribute("fill","#ffffff"),Mt.setAttribute("width",this.element.comp.data.w||0),Mt.setAttribute("height",this.element.comp.data.h||0),Gt.push(Mt)),Re=le("path"),vt[xe].mode==="n")this.viewData[xe]={op:Ke.getProp(this.element,vt[xe].o,0,.01,this.element),prop:et.getShapeProp(this.element,vt[xe],3),elem:Re,lastPath:""},Ce.appendChild(Re);else{var Ne;if(Et+=1,Re.setAttribute("fill",vt[xe].mode==="s"?"#000000":"#ffffff"),Re.setAttribute("clip-rule","nonzero"),vt[xe].x.k!==0?(Je="mask",He="mask",ct=Ke.getProp(this.element,vt[xe].x,0,null,this.element),Ne=H(),(Zt=le("filter")).setAttribute("id",Ne),(Xe=le("feMorphology")).setAttribute("operator","erode"),Xe.setAttribute("in","SourceGraphic"),Xe.setAttribute("radius","0"),Zt.appendChild(Xe),Ce.appendChild(Zt),Re.setAttribute("stroke",vt[xe].mode==="s"?"#000000":"#ffffff")):(Xe=null,ct=null),this.storedData[xe]={elem:Re,x:ct,expan:Xe,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},vt[xe].mode==="i"){Ye=Gt.length;var qe=le("g");for(Qe=0;Qe<Ye;Qe+=1)qe.appendChild(Gt[Qe]);var gt=le("mask");gt.setAttribute("mask-type","alpha"),gt.setAttribute("id",Xt+"_"+Et),gt.appendChild(Re),Ce.appendChild(gt),qe.setAttribute("mask","url("+p()+"#"+Xt+"_"+Et+")"),Gt.length=0,Gt.push(qe)}else Gt.push(Re);vt[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Re,lastPath:"",op:Ke.getProp(this.element,vt[xe].o,0,.01,this.element),prop:et.getShapeProp(this.element,vt[xe],3),invRect:Mt},this.viewData[xe].prop.k||this.drawPath(vt[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Je),Ee=Gt.length,xe=0;xe<Ee;xe+=1)this.maskElement.appendChild(Gt[xe]);Et>0&&(this.maskElement.setAttribute("id",Xt),this.element.maskedElement.setAttribute(He,"url("+p()+"#"+Xt+")"),Ce.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}g2.prototype={initTransform:function(){var G=new wt;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:G,localMat:G,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var G,X=this.finalTransform.mat,pe=0,xe=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;pe<xe;){if(this.hierarchy[pe].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}pe+=1}if(this.finalTransform._matMdf)for(G=this.finalTransform.mProp.v.props,X.cloneFromProps(G),pe=0;pe<xe;pe+=1)X.multiply(this.hierarchy[pe].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var G=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;G<X;)this.localTransforms[G]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[G]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),G+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),G=1;G<X;G+=1){var xe=this.localTransforms[G].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var Ce=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)Ce*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=Ce}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(kL.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new wt;var X=0,pe=G.length;for(X=0;X<pe;X+=1)this.localTransforms.push(G[X])}}},globalToLocal:function(G){var X=[];X.push(this.finalTransform);for(var pe=!0,xe=this.comp;pe;)xe.finalTransform?(xe.data.hasMask&&X.splice(0,0,xe.finalTransform),xe=xe.comp):pe=!1;var Ce,Ee,Re=X.length;for(Ce=0;Ce<Re;Ce+=1)Ee=X[Ce].mat.applyToPointArray(0,0,0),G=[G[0]-Ee[0],G[1]-Ee[1],0];return G},mHelper:new wt},S0.prototype.getMaskProperty=function(G){return this.viewData[G].prop},S0.prototype.renderFrame=function(G){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||G)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||G)&&this.viewData[X].elem.setAttribute("fill-opacity",this.viewData[X].op.v),this.masksProperties[X].mode!=="n"&&(this.viewData[X].invRect&&(this.element.finalTransform.mProp._mdf||G)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||G))){var Ce=this.storedData[X].expan;this.storedData[X].x.v<0?(this.storedData[X].lastOperator!=="erode"&&(this.storedData[X].lastOperator="erode",this.storedData[X].elem.setAttribute("filter","url("+p()+"#"+this.storedData[X].filterId+")")),Ce.setAttribute("radius",-this.storedData[X].x.v)):(this.storedData[X].lastOperator!=="dilate"&&(this.storedData[X].lastOperator="dilate",this.storedData[X].elem.setAttribute("filter",null)),this.storedData[X].elem.setAttribute("stroke-width",2*this.storedData[X].x.v))}},S0.prototype.getMaskelement=function(){return this.maskElement},S0.prototype.createLayerSolidPath=function(){var G="M0,0 ";return G+=" h"+this.globalData.compSize.w,G+=" v"+this.globalData.compSize.h,G+=" h-"+this.globalData.compSize.w,G+=" v-"+this.globalData.compSize.h+" "},S0.prototype.drawPath=function(G,X,pe){var xe,Ce,Ee=" M"+X.v[0][0]+","+X.v[0][1];for(Ce=X._length,xe=1;xe<Ce;xe+=1)Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&Ce>1&&(Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==Ee){var Re="";pe.elem&&(X.c&&(Re=G.inv?this.solidPath+Ee:Ee),pe.elem.setAttribute("d",Re)),pe.lastPath=Ee}},S0.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var M7=(function(){var G={};function X(xe,Ce){var Ee=le("filter");return Ee.setAttribute("id",xe),Ce!==!0&&(Ee.setAttribute("filterUnits","objectBoundingBox"),Ee.setAttribute("x","0%"),Ee.setAttribute("y","0%"),Ee.setAttribute("width","100%"),Ee.setAttribute("height","100%")),Ee}function pe(){var xe=le("feColorMatrix");return xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),xe}return G.createFilter=X,G.createAlphaToLuminanceFilter=pe,G})(),jL=(function(){var G={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(G.maskType=!1),/firefox/i.test(navigator.userAgent)&&(G.svgLumaHidden=!1),G})(),$L={},m_="filter_result_";function fk(G){var X,pe,xe="SourceGraphic",Ce=G.data.ef?G.data.ef.length:0,Ee=H(),Re=M7.createFilter(Ee,!0),Qe=0;for(this.filters=[],X=0;X<Ce;X+=1){pe=null;var Ye=G.data.ef[X].ty;$L[Ye]&&(pe=new $L[Ye].effect(Re,G.effectsManager.effectElements[X],G,m_+Qe,xe),xe=m_+Qe,$L[Ye].countsAsEffect&&(Qe+=1)),pe&&this.filters.push(pe)}Qe&&(G.globalData.defs.appendChild(Re),G.layerElement.setAttribute("filter","url("+p()+"#"+Ee+")")),this.filters.length&&G.addRenderableComponent(this)}function cw(){}function O7(){}function l5(){}function dw(G,X,pe){this.assetData=X.getAssetData(G.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(G,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Rre(G,X){this.elem=G,this.pos=X}function g_(){}fk.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},fk.prototype.getEffects=function(G){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===G&&xe.push(this.filters[X]);return xe},cw.prototype={initRendererElement:function(){this.layerElement=le("g")},createContainerElements:function(){this.matteElement=le("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var G=null;if(this.data.td){this.matteMasks={};var X=le("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),G=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),G=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var pe=le("clipPath"),xe=le("path");xe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var Ce=H();if(pe.setAttribute("id",Ce),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var Ee=le("g");Ee.setAttribute("clip-path","url("+p()+"#"+Ce+")"),Ee.appendChild(this.layerElement),this.transformedElement=Ee,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new S0(this.data,this,this.globalData),this.renderableEffectsManager=new fk(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,Ce,Ee=this.layerId+"_"+G;if(G===1||G===3){var Re=le("mask");Re.setAttribute("id",Ee),Re.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Re.appendChild(xe),this.globalData.defs.appendChild(Re),!jL.maskType&&G===1&&(Re.setAttribute("mask-type","luminance"),X=H(),pe=M7.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(M7.createAlphaToLuminanceFilter()),(Ce=le("g")).appendChild(xe),Re.appendChild(Ce),Ce.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var Qe=le("mask");Qe.setAttribute("id",Ee),Qe.setAttribute("mask-type","alpha");var Ye=le("g");Qe.appendChild(Ye),X=H(),pe=M7.createFilter(X);var Mt=le("feComponentTransfer");Mt.setAttribute("in","SourceGraphic"),pe.appendChild(Mt);var Zt=le("feFuncA");Zt.setAttribute("type","table"),Zt.setAttribute("tableValues","1.0 0.0"),Mt.appendChild(Zt),this.globalData.defs.appendChild(pe);var Xe=le("rect");Xe.setAttribute("width",this.comp.data.w),Xe.setAttribute("height",this.comp.data.h),Xe.setAttribute("x","0"),Xe.setAttribute("y","0"),Xe.setAttribute("fill","#ffffff"),Xe.setAttribute("opacity","0"),Ye.setAttribute("filter","url("+p()+"#"+X+")"),Ye.appendChild(Xe),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Ye.appendChild(xe),jL.maskType||(Qe.setAttribute("mask-type","luminance"),pe.appendChild(M7.createAlphaToLuminanceFilter()),Ce=le("g"),Ye.appendChild(Xe),Ce.appendChild(this.layerElement),Ye.appendChild(Ce)),this.globalData.defs.appendChild(Qe)}this.matteMasks[G]=Ee}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},O7.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(G){this.hierarchy=G},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var G={initElement:function(X,pe,xe){this.initFrame(),this.initBaseData(X,pe,xe),this.initTransform(X,pe,xe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(X){this._mdf=!1,this.prepareRenderableFrame(X),this.prepareProperties(X,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};g([Sn,f(G)],l5)})(),g([Nn,g2,cw,O7,Ci,l5],dw),dw.prototype.createContent=function(){var G=this.globalData.getAssetsPath(this.assetData);this.innerElem=le("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",G),this.layerElement.appendChild(this.innerElem)},dw.prototype.sourceRectAtTime=function(){return this.sourceRect},g_.prototype={addShapeToModifiers:function(G){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(G)},isShapeInAnimatedModifiers:function(G){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(G))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var G,X=this.shapes.length;for(G=0;G<X;G+=1)this.shapes[G].sh.reset();for(G=(X=this.shapeModifiers.length)-1;G>=0&&!this.shapeModifiers[G].processShapes(this._isFirstFrame);G-=1);}},searchProcessedElement:function(G){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===G)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(G,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===G)return void(pe[xe].pos=X);pe.push(new Rre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var f_={1:"butt",2:"round",3:"square"},x_={1:"miter",2:"round",3:"bevel"};function y_(G,X,pe){this.caches=[],this.styles=[],this.transformers=G,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,Ce=G.length;xe<Ce;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function b_(G,X){this.data=G,this.type=G.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=G.hd===!0,this.pElem=le("path"),this.msElem=null}function xk(G,X,pe,xe){this.elem=G,this.frameId=-1,this.dataProps=b(X.length),this.renderer=pe,this.k=!1,this.dashStr="",this.dashArray=y("float32",X.length?X.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(xe);var Ce,Ee,Re=X.length||0;for(Ce=0;Ce<Re;Ce+=1)Ee=Ke.getProp(G,X[Ce].v,0,0,this),this.k=Ee.k||this.k,this.dataProps[Ce]={n:X[Ce].n,p:Ee};this.k||this.getValue(!0),this._isAnimated=this.k}function w_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.w=Ke.getProp(G,X.w,0,null,this),this.d=new xk(G,X.d||{},"svg",this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function C_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe}function v_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function uw(G,X,pe){this.data=X,this.c=y("uint8c",4*X.p);var xe=X.k.k[0].s?X.k.k[0].s.length-4*X.p:X.k.k.length-4*X.p;this.o=y("float32",xe),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=xe,this.initDynamicPropertyContainer(pe),this.prop=Ke.getProp(G,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function k0(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function A_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ke.getProp(G,X.w,0,null,this),this.d=new xk(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function zre(){this.it=[],this.prevViewData=[],this.gr=le("g")}function Nre(G,X,pe){this.transform={mProps:G,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}y_.prototype.setAsAnimated=function(){this._isAnimated=!0},b_.prototype.reset=function(){this.d="",this._mdf=!1},xk.prototype.getValue=function(G){if((this.elem.globalData.frameId!==this.frameId||G)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||G,this._mdf)){var X=0,pe=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),X=0;X<pe;X+=1)this.dataProps[X].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[X].p.v:this.dashArray[X]=this.dataProps[X].p.v:this.dashoffset[0]=this.dataProps[X].p.v}},g([Bt],xk),g([Bt],w_),g([Bt],C_),g([Bt],v_),uw.prototype.comparePoints=function(G,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(G[4*pe]-G[4*X+2*pe])>.01)return!1;pe+=1}return!0},uw.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var G=0,X=this.data.k.k.length;G<X;){if(!this.comparePoints(this.data.k.k[G].s,this.data.p))return!1;G+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},uw.prototype.getValue=function(G){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||G){var X,pe,xe,Ce=4*this.data.p;for(X=0;X<Ce;X+=1)pe=X%4==0?100:255,xe=Math.round(this.prop.v[X]*pe),this.c[X]!==xe&&(this.c[X]=xe,this._cmdf=!G);if(this.o.length)for(Ce=this.prop.v.length,X=4*this.data.p;X<Ce;X+=1)pe=X%2==0?100:1,xe=X%2==0?Math.round(100*this.prop.v[X]):this.prop.v[X],this.o[X-4*this.data.p]!==xe&&(this.o[X-4*this.data.p]=xe,this._omdf=!G);this._mdf=!G}},g([Bt],uw),k0.prototype.initGradientData=function(G,X,pe){this.o=Ke.getProp(G,X.o,0,.01,this),this.s=Ke.getProp(G,X.s,1,null,this),this.e=Ke.getProp(G,X.e,1,null,this),this.h=Ke.getProp(G,X.h||{k:0},0,.01,this),this.a=Ke.getProp(G,X.a||{k:0},0,D,this),this.g=new uw(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},k0.prototype.setGradientData=function(G,X){var pe=H(),xe=le(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ce,Ee,Re,Qe=[];for(Re=4*X.g.p,Ee=0;Ee<Re;Ee+=4)Ce=le("stop"),xe.appendChild(Ce),Qe.push(Ce);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Qe},k0.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ce,Ee=le("mask"),Re=le("path");Ee.appendChild(Re);var Qe=H(),Ye=H();Ee.setAttribute("id",Ye);var Mt=le(G.t===1?"linearGradient":"radialGradient");Mt.setAttribute("id",Qe),Mt.setAttribute("spreadMethod","pad"),Mt.setAttribute("gradientUnits","userSpaceOnUse"),Ce=G.g.k.k[0].s?G.g.k.k[0].s.length:G.g.k.k.length;var Zt=this.stops;for(xe=4*G.g.p;xe<Ce;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Mt.appendChild(pe),Zt.push(pe);Re.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+Qe+")"),G.ty==="gs"&&(Re.setAttribute("stroke-linecap",f_[G.lc||2]),Re.setAttribute("stroke-linejoin",x_[G.lj||2]),G.lj===1&&Re.setAttribute("stroke-miterlimit",G.ml)),this.of=Mt,this.ms=Ee,this.ost=Zt,this.maskId=Ye,X.msElem=Re}},g([Bt],k0),g([k0,Bt],A_);var Gn=function(G,X,pe,xe){if(X===0)return"";var Ce,Ee=G.o,Re=G.i,Qe=G.v,Ye=" M"+xe.applyToPointStringified(Qe[0][0],Qe[0][1]);for(Ce=1;Ce<X;Ce+=1)Ye+=" C"+xe.applyToPointStringified(Ee[Ce-1][0],Ee[Ce-1][1])+" "+xe.applyToPointStringified(Re[Ce][0],Re[Ce][1])+" "+xe.applyToPointStringified(Qe[Ce][0],Qe[Ce][1]);return pe&&X&&(Ye+=" C"+xe.applyToPointStringified(Ee[Ce-1][0],Ee[Ce-1][1])+" "+xe.applyToPointStringified(Re[0][0],Re[0][1])+" "+xe.applyToPointStringified(Qe[0][0],Qe[0][1]),Ye+="z"),Ye},Ar=(function(){var G=new wt,X=new wt;function pe(Zt){switch(Zt.ty){case"fl":return Re;case"gf":return Ye;case"gs":return Qe;case"st":return Mt;case"sh":case"el":case"rc":case"sr":return Ee;case"tr":return xe;case"no":return Ce;default:return null}}function xe(Zt,Xe,ct){(ct||Xe.transform.op._mdf)&&Xe.transform.container.setAttribute("opacity",Xe.transform.op.v),(ct||Xe.transform.mProps._mdf)&&Xe.transform.container.setAttribute("transform",Xe.transform.mProps.v.to2dCSS())}function Ce(){}function Ee(Zt,Xe,ct){var vt,Et,Gt,Xt,Je,He,Ne,qe,gt,an,cn=Xe.styles.length,Ot=Xe.lvl;for(He=0;He<cn;He+=1){if(Xt=Xe.sh._mdf||ct,Xe.styles[He].lvl<Ot){for(qe=X.reset(),gt=Ot-Xe.styles[He].lvl,an=Xe.transformers.length-1;!Xt&>>0;)Xt=Xe.transformers[an].mProps._mdf||Xt,gt-=1,an-=1;if(Xt)for(gt=Ot-Xe.styles[He].lvl,an=Xe.transformers.length-1;gt>0;)qe.multiply(Xe.transformers[an].mProps.v),gt-=1,an-=1}else qe=G;if(Et=(Ne=Xe.sh.paths)._length,Xt){for(Gt="",vt=0;vt<Et;vt+=1)(Je=Ne.shapes[vt])&&Je._length&&(Gt+=Gn(Je,Je._length,Je.c,qe));Xe.caches[He]=Gt}else Gt=Xe.caches[He];Xe.styles[He].d+=Zt.hd===!0?"":Gt,Xe.styles[He]._mdf=Xt||Xe.styles[He]._mdf}}function Re(Zt,Xe,ct){var vt=Xe.style;(Xe.c._mdf||ct)&&vt.pElem.setAttribute("fill","rgb("+j(Xe.c.v[0])+","+j(Xe.c.v[1])+","+j(Xe.c.v[2])+")"),(Xe.o._mdf||ct)&&vt.pElem.setAttribute("fill-opacity",Xe.o.v)}function Qe(Zt,Xe,ct){Ye(Zt,Xe,ct),Mt(Zt,Xe,ct)}function Ye(Zt,Xe,ct){var vt,Et,Gt,Xt,Je,He=Xe.gf,Ne=Xe.g._hasOpacity,qe=Xe.s.v,gt=Xe.e.v;if(Xe.o._mdf||ct){var an=Zt.ty==="gf"?"fill-opacity":"stroke-opacity";Xe.style.pElem.setAttribute(an,Xe.o.v)}if(Xe.s._mdf||ct){var cn=Zt.t===1?"x1":"cx",Ot=cn==="x1"?"y1":"cy";He.setAttribute(cn,qe[0]),He.setAttribute(Ot,qe[1]),Ne&&!Xe.g._collapsable&&(Xe.of.setAttribute(cn,qe[0]),Xe.of.setAttribute(Ot,qe[1]))}if(Xe.g._cmdf||ct){vt=Xe.cst;var po=Xe.g.c;for(Gt=vt.length,Et=0;Et<Gt;Et+=1)(Xt=vt[Et]).setAttribute("offset",po[4*Et]+"%"),Xt.setAttribute("stop-color","rgb("+po[4*Et+1]+","+po[4*Et+2]+","+po[4*Et+3]+")")}if(Ne&&(Xe.g._omdf||ct)){var $o=Xe.g.o;for(Gt=(vt=Xe.g._collapsable?Xe.cst:Xe.ost).length,Et=0;Et<Gt;Et+=1)Xt=vt[Et],Xe.g._collapsable||Xt.setAttribute("offset",$o[2*Et]+"%"),Xt.setAttribute("stop-opacity",$o[2*Et+1])}if(Zt.t===1)(Xe.e._mdf||ct)&&(He.setAttribute("x2",gt[0]),He.setAttribute("y2",gt[1]),Ne&&!Xe.g._collapsable&&(Xe.of.setAttribute("x2",gt[0]),Xe.of.setAttribute("y2",gt[1])));else if((Xe.s._mdf||Xe.e._mdf||ct)&&(Je=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)),He.setAttribute("r",Je),Ne&&!Xe.g._collapsable&&Xe.of.setAttribute("r",Je)),Xe.s._mdf||Xe.e._mdf||Xe.h._mdf||Xe.a._mdf||ct){Je||(Je=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)));var si=Math.atan2(gt[1]-qe[1],gt[0]-qe[0]),Ko=Xe.h.v;Ko>=1?Ko=.99:Ko<=-1&&(Ko=-.99);var lo=Je*Ko,zt=Math.cos(si+Xe.a.v)*lo+qe[0],xn=Math.sin(si+Xe.a.v)*lo+qe[1];He.setAttribute("fx",zt),He.setAttribute("fy",xn),Ne&&!Xe.g._collapsable&&(Xe.of.setAttribute("fx",zt),Xe.of.setAttribute("fy",xn))}}function Mt(Zt,Xe,ct){var vt=Xe.style,Et=Xe.d;Et&&(Et._mdf||ct)&&Et.dashStr&&(vt.pElem.setAttribute("stroke-dasharray",Et.dashStr),vt.pElem.setAttribute("stroke-dashoffset",Et.dashoffset[0])),Xe.c&&(Xe.c._mdf||ct)&&vt.pElem.setAttribute("stroke","rgb("+j(Xe.c.v[0])+","+j(Xe.c.v[1])+","+j(Xe.c.v[2])+")"),(Xe.o._mdf||ct)&&vt.pElem.setAttribute("stroke-opacity",Xe.o.v),(Xe.w._mdf||ct)&&(vt.pElem.setAttribute("stroke-width",Xe.w.v),vt.msElem&&vt.msElem.setAttribute("stroke-width",Xe.w.v))}return{createRenderFunction:pe}})();function tr(G,X,pe){this.shapes=[],this.shapesData=G.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(G,X,pe),this.prevViewData=[]}function th(G,X,pe,xe,Ce,Ee){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ce,this.p=Ee,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function Zc(G,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=G.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=G,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([Nn,g2,cw,g_,O7,Ci,l5],tr),tr.prototype.initSecondaryElement=function(){},tr.prototype.identityMatrix=new wt,tr.prototype.buildExpressionInterface=function(){},tr.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},tr.prototype.filterUniqueShapes=function(){var G,X,pe,xe,Ce=this.shapes.length,Ee=this.stylesList.length,Re=[],Qe=!1;for(pe=0;pe<Ee;pe+=1){for(xe=this.stylesList[pe],Qe=!1,Re.length=0,G=0;G<Ce;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Re.push(X),Qe=X._isAnimated||Qe);Re.length>1&&Qe&&this.setShapesAsAnimated(Re)}},tr.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},tr.prototype.createStyleElement=function(G,X){var pe,xe=new b_(G,X),Ce=xe.pElem;return G.ty==="st"?pe=new w_(this,G,xe):G.ty==="fl"?pe=new C_(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?k0:A_)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ce.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new v_(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(Ce.setAttribute("stroke-linecap",f_[G.lc||2]),Ce.setAttribute("stroke-linejoin",x_[G.lj||2]),Ce.setAttribute("fill-opacity","0"),G.lj===1&&Ce.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&Ce.setAttribute("fill-rule","evenodd"),G.ln&&Ce.setAttribute("id",G.ln),G.cl&&Ce.setAttribute("class",G.cl),G.bm&&(Ce.style["mix-blend-mode"]=ni(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},tr.prototype.createGroupElement=function(G){var X=new zre;return G.ln&&X.gr.setAttribute("id",G.ln),G.cl&&X.gr.setAttribute("class",G.cl),G.bm&&(X.gr.style["mix-blend-mode"]=ni(G.bm)),X},tr.prototype.createTransformElement=function(G,X){var pe=Nt.getTransformProperty(this,G,this),xe=new Nre(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},tr.prototype.createShapeElement=function(G,X,pe){var xe=4;G.ty==="rc"?xe=5:G.ty==="el"?xe=6:G.ty==="sr"&&(xe=7);var Ce=new y_(X,pe,et.getShapeProp(this,G,xe,this));return this.shapes.push(Ce),this.addShapeToModifiers(Ce),this.addToAnimatedContents(G,Ce),Ce},tr.prototype.addToAnimatedContents=function(G,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:Ar.createRenderFunction(G),element:X,data:G})},tr.prototype.setElementStyles=function(G){var X,pe=G.styles,xe=this.stylesList.length;for(X=0;X<xe;X+=1)pe.indexOf(this.stylesList[X])===-1&&!this.stylesList[X].closed&&pe.push(this.stylesList[X])},tr.prototype.reloadShapes=function(){this._isFirstFrame=!0;var G,X=this.itemsData.length;for(G=0;G<X;G+=1)this.prevViewData[G]=this.itemsData[G];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,G=0;G<X;G+=1)this.dynamicProperties[G].getValue();this.renderModifiers()},tr.prototype.searchShapes=function(G,X,pe,xe,Ce,Ee,Re){var Qe,Ye,Mt,Zt,Xe,ct,vt=[].concat(Ee),Et=G.length-1,Gt=[],Xt=[];for(Qe=Et;Qe>=0;Qe-=1){if((ct=this.searchProcessedElement(G[Qe]))?X[Qe]=pe[ct-1]:G[Qe]._render=Re,G[Qe].ty==="fl"||G[Qe].ty==="st"||G[Qe].ty==="gf"||G[Qe].ty==="gs"||G[Qe].ty==="no")ct?X[Qe].style.closed=G[Qe].hd:X[Qe]=this.createStyleElement(G[Qe],Ce),G[Qe]._render&&X[Qe].style.pElem.parentNode!==xe&&xe.appendChild(X[Qe].style.pElem),Gt.push(X[Qe].style);else if(G[Qe].ty==="gr"){if(ct)for(Mt=X[Qe].it.length,Ye=0;Ye<Mt;Ye+=1)X[Qe].prevViewData[Ye]=X[Qe].it[Ye];else X[Qe]=this.createGroupElement(G[Qe]);this.searchShapes(G[Qe].it,X[Qe].it,X[Qe].prevViewData,X[Qe].gr,Ce+1,vt,Re),G[Qe]._render&&X[Qe].gr.parentNode!==xe&&xe.appendChild(X[Qe].gr)}else G[Qe].ty==="tr"?(ct||(X[Qe]=this.createTransformElement(G[Qe],xe)),Zt=X[Qe].transform,vt.push(Zt)):G[Qe].ty==="sh"||G[Qe].ty==="rc"||G[Qe].ty==="el"||G[Qe].ty==="sr"?(ct||(X[Qe]=this.createShapeElement(G[Qe],vt,Ce)),this.setElementStyles(X[Qe])):G[Qe].ty==="tm"||G[Qe].ty==="rd"||G[Qe].ty==="ms"||G[Qe].ty==="pb"||G[Qe].ty==="zz"||G[Qe].ty==="op"?(ct?(Xe=X[Qe]).closed=!1:((Xe=mn.getModifier(G[Qe].ty)).init(this,G[Qe]),X[Qe]=Xe,this.shapeModifiers.push(Xe)),Xt.push(Xe)):G[Qe].ty==="rp"&&(ct?(Xe=X[Qe]).closed=!0:(Xe=mn.getModifier(G[Qe].ty),X[Qe]=Xe,Xe.init(this,G,Qe,X),this.shapeModifiers.push(Xe),Re=!1),Xt.push(Xe));this.addProcessedElement(G[Qe],Qe+1)}for(Et=Gt.length,Qe=0;Qe<Et;Qe+=1)Gt[Qe].closed=!0;for(Et=Xt.length,Qe=0;Qe<Et;Qe+=1)Xt[Qe].closed=!0},tr.prototype.renderInnerContent=function(){this.renderModifiers();var G,X=this.stylesList.length;for(G=0;G<X;G+=1)this.stylesList[G].reset();for(this.renderShape(),G=0;G<X;G+=1)(this.stylesList[G]._mdf||this._isFirstFrame)&&(this.stylesList[G].msElem&&(this.stylesList[G].msElem.setAttribute("d",this.stylesList[G].d),this.stylesList[G].d="M0 0"+this.stylesList[G].d),this.stylesList[G].pElem.setAttribute("d",this.stylesList[G].d||"M0 0"))},tr.prototype.renderShape=function(){var G,X,pe=this.animatedContents.length;for(G=0;G<pe;G+=1)X=this.animatedContents[G],(this._isFirstFrame||X.element._isAnimated)&&X.data!==!0&&X.fn(X.data,X.element,this._isFirstFrame)},tr.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},th.prototype.update=function(G,X,pe,xe,Ce,Ee){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Re=!1;return this.o!==G&&(this.o=G,this._mdf.o=!0,Re=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Re=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Re=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Re=!0),this.m!==Ce&&(this.m=Ce,this._mdf.m=!0,Re=!0),Ee.length&&(this.p[0]!==Ee[0]||this.p[1]!==Ee[1]||this.p[4]!==Ee[4]||this.p[5]!==Ee[5]||this.p[12]!==Ee[12]||this.p[13]!==Ee[13])&&(this.p=Ee,this._mdf.p=!0,Re=!0),Re},Zc.prototype.defaultBoxWidth=[0,0],Zc.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},Zc.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Zc.prototype.searchProperty=function(){return this.searchKeyframes()},Zc.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Zc.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},Zc.prototype.getValue=function(G){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||G){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var X=this.currentData,pe=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var xe,Ce=this.effectsSequence.length,Ee=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ce;xe+=1)Ee=pe!==this.keysIndex?this.effectsSequence[xe](Ee,Ee.t):this.effectsSequence[xe](this.currentData,Ee.t);X!==Ee&&this.setCurrentData(Ee),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Zc.prototype.getKeyframeValue=function(){for(var G=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=G.length;pe<=xe-1&&!(pe===xe-1||G[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},Zc.prototype.buildFinalText=function(G){for(var X,pe,xe=[],Ce=0,Ee=G.length,Re=!1,Qe=!1,Ye="";Ce<Ee;)Re=Qe,Qe=!1,X=G.charCodeAt(Ce),Ye=G.charAt(Ce),dn.isCombinedCharacter(X)?Re=!0:X>=55296&&X<=56319?dn.isRegionalFlag(G,Ce)?Ye=G.substr(Ce,14):(pe=G.charCodeAt(Ce+1))>=56320&&pe<=57343&&(dn.isModifier(X,pe)?(Ye=G.substr(Ce,2),Re=!0):Ye=dn.isFlagEmoji(G.substr(Ce,4))?G.substr(Ce,4):G.substr(Ce,2)):X>56319?(pe=G.charCodeAt(Ce+1),dn.isVariationSelector(X)&&(Re=!0)):dn.isZeroWidthJoiner(X)&&(Re=!0,Qe=!0),Re?(xe[xe.length-1]+=Ye,Re=!1):xe.push(Ye),Ce+=Ye.length;return xe},Zc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,Ce,Ee,Re,Qe,Ye=this.elem.globalData.fontManager,Mt=this.data,Zt=[],Xe=0,ct=Mt.m.g,vt=0,Et=0,Gt=0,Xt=[],Je=0,He=0,Ne=Ye.getFontByName(G.f),qe=0,gt=Rt(Ne);G.fWeight=gt.weight,G.fStyle=gt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var an,cn=G.tr/1e3*G.finalSize;if(G.sz)for(var Ot,po,$o=!0,si=G.sz[0],Ko=G.sz[1];$o;){Ot=0,Je=0,pe=(po=this.buildFinalText(G.t)).length,cn=G.tr/1e3*G.finalSize;var lo=-1;for(X=0;X<pe;X+=1)an=po[X].charCodeAt(0),xe=!1,po[X]===" "?lo=X:(an===13||an===3)&&(Je=0,xe=!0,Ot+=G.finalLineHeight||1.2*G.finalSize),Ye.chars?(Qe=Ye.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ye.measureText(po[X],G.f,G.finalSize),Je+qe>si&&po[X]!==" "?(lo===-1?pe+=1:X=lo,Ot+=G.finalLineHeight||1.2*G.finalSize,po.splice(X,lo===X?1:0,"\r"),lo=-1,Je=0):(Je+=qe,Je+=cn);Ot+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&Ko<Ot?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=po,pe=G.finalText.length,$o=!1)}Je=-cn,qe=0;var zt,xn=0;for(X=0;X<pe;X+=1)if(xe=!1,(an=(zt=G.finalText[X]).charCodeAt(0))===13||an===3?(xn=0,Xt.push(Je),He=Je>He?Je:He,Je=-2*cn,Ce="",xe=!0,Gt+=1):Ce=zt,Ye.chars?(Qe=Ye.getCharData(zt,Ne.fStyle,Ye.getFontByName(G.f).fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ye.measureText(Ce,G.f,G.finalSize),zt===" "?xn+=qe+cn:(Je+=qe+cn+xn,xn=0),Zt.push({l:qe,an:qe,add:vt,n:xe,anIndexes:[],val:Ce,line:Gt,animatorJustifyOffset:0}),ct==2){if(vt+=qe,Ce===""||Ce===" "||X===pe-1){for((Ce===""||Ce===" ")&&(vt-=qe);Et<=X;)Zt[Et].an=vt,Zt[Et].ind=Xe,Zt[Et].extra=qe,Et+=1;Xe+=1,vt=0}}else if(ct==3){if(vt+=qe,Ce===""||X===pe-1){for(Ce===""&&(vt-=qe);Et<=X;)Zt[Et].an=vt,Zt[Et].ind=Xe,Zt[Et].extra=qe,Et+=1;vt=0,Xe+=1}}else Zt[Xe].ind=Xe,Zt[Xe].extra=0,Xe+=1;if(G.l=Zt,He=Je>He?Je:He,Xt.push(Je),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=He,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=Xt;var ft,st,ze=Mt.a;Re=ze.length;var dt,Ct,gi=[];for(Ee=0;Ee<Re;Ee+=1){for((ft=ze[Ee]).a.sc&&(G.strokeColorAnim=!0),ft.a.sw&&(G.strokeWidthAnim=!0),(ft.a.fc||ft.a.fh||ft.a.fs||ft.a.fb)&&(G.fillColorAnim=!0),Ct=0,dt=ft.s.b,X=0;X<pe;X+=1)(st=Zt[X]).anIndexes[Ee]=Ct,(dt==1&&st.val!==""||dt==2&&st.val!==""&&st.val!==" "||dt==3&&(st.n||st.val==" "||X==pe-1)||dt==4&&(st.n||X==pe-1))&&(ft.s.rn===1&&gi.push(Ct),Ct+=1);Mt.a[Ee].s.totalChars=Ct;var Zo,Po=-1;if(ft.s.rn===1)for(X=0;X<pe;X+=1)Po!=(st=Zt[X]).anIndexes[Ee]&&(Po=st.anIndexes[Ee],Zo=gi.splice(Math.floor(Math.random()*gi.length),1)[0]),st.anIndexes[Ee]=Zo}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},Zc.prototype.updateDocumentData=function(G,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,G),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},Zc.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},Zc.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Zc.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var pw=(function(){var G=Math.max,X=Math.min,pe=Math.floor;function xe(Ee,Re){this._currentTextLength=-1,this.k=!1,this.data=Re,this.elem=Ee,this.comp=Ee.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(Ee),this.s=Ke.getProp(Ee,Re.s||{k:0},0,0,this),this.e="e"in Re?Ke.getProp(Ee,Re.e,0,0,this):{v:100},this.o=Ke.getProp(Ee,Re.o||{k:0},0,0,this),this.xe=Ke.getProp(Ee,Re.xe||{k:0},0,0,this),this.ne=Ke.getProp(Ee,Re.ne||{k:0},0,0,this),this.sm=Ke.getProp(Ee,Re.sm||{k:100},0,0,this),this.a=Ke.getProp(Ee,Re.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function Ce(Ee,Re,Qe){return new xe(Ee,Re)}return xe.prototype={getMult:function(Ee){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Re=0,Qe=0,Ye=1,Mt=1;this.ne.v>0?Re=this.ne.v/100:Qe=-this.ne.v/100,this.xe.v>0?Ye=1-this.xe.v/100:Mt=1+this.xe.v/100;var Zt=Te.getBezierEasing(Re,Qe,Ye,Mt).get,Xe=0,ct=this.finalS,vt=this.finalE,Et=this.data.sh;if(Et===2)Xe=Zt(Xe=vt===ct?Ee>=vt?1:0:G(0,X(.5/(vt-ct)+(Ee-ct)/(vt-ct),1)));else if(Et===3)Xe=Zt(Xe=vt===ct?Ee>=vt?0:1:1-G(0,X(.5/(vt-ct)+(Ee-ct)/(vt-ct),1)));else if(Et===4)vt===ct?Xe=0:(Xe=G(0,X(.5/(vt-ct)+(Ee-ct)/(vt-ct),1)))<.5?Xe*=2:Xe=1-2*(Xe-.5),Xe=Zt(Xe);else if(Et===5){if(vt===ct)Xe=0;else{var Gt=vt-ct,Xt=-Gt/2+(Ee=X(G(0,Ee+.5-ct),vt-ct)),Je=Gt/2;Xe=Math.sqrt(1-Xt*Xt/(Je*Je))}Xe=Zt(Xe)}else Et===6?(vt===ct?Xe=0:(Ee=X(G(0,Ee+.5-ct),vt-ct),Xe=(1+Math.cos(Math.PI+2*Math.PI*Ee/(vt-ct)))/2),Xe=Zt(Xe)):(Ee>=pe(ct)&&(Xe=G(0,X(Ee-ct<0?X(vt,1)-(ct-Ee):vt-Ee,1))),Xe=Zt(Xe));if(this.sm.v!==100){var He=.01*this.sm.v;He===0&&(He=1e-8);var Ne=.5-.5*He;Xe<Ne?Xe=0:(Xe=(Xe-Ne)/He)>1&&(Xe=1)}return Xe*this.a.v},getValue:function(Ee){this.iterateDynamicProperties(),this._mdf=Ee||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,Ee&&this.data.r===2&&(this.e.v=this._currentTextLength);var Re=this.data.r===2?1:100/this.data.totalChars,Qe=this.o.v/Re,Ye=this.s.v/Re+Qe,Mt=this.e.v/Re+Qe;if(Ye>Mt){var Zt=Ye;Ye=Mt,Mt=Zt}this.finalS=Ye,this.finalE=Mt}},g([Bt],xe),{getTextSelectorProp:Ce}})();function _re(G,X,pe){var xe={propType:!1},Ce=Ke.getProp,Ee=X.a;this.a={r:Ee.r?Ce(G,Ee.r,0,D,pe):xe,rx:Ee.rx?Ce(G,Ee.rx,0,D,pe):xe,ry:Ee.ry?Ce(G,Ee.ry,0,D,pe):xe,sk:Ee.sk?Ce(G,Ee.sk,0,D,pe):xe,sa:Ee.sa?Ce(G,Ee.sa,0,D,pe):xe,s:Ee.s?Ce(G,Ee.s,1,.01,pe):xe,a:Ee.a?Ce(G,Ee.a,1,0,pe):xe,o:Ee.o?Ce(G,Ee.o,0,.01,pe):xe,p:Ee.p?Ce(G,Ee.p,1,0,pe):xe,sw:Ee.sw?Ce(G,Ee.sw,0,0,pe):xe,sc:Ee.sc?Ce(G,Ee.sc,1,0,pe):xe,fc:Ee.fc?Ce(G,Ee.fc,1,0,pe):xe,fh:Ee.fh?Ce(G,Ee.fh,0,0,pe):xe,fs:Ee.fs?Ce(G,Ee.fs,0,.01,pe):xe,fb:Ee.fb?Ce(G,Ee.fb,0,.01,pe):xe,t:Ee.t?Ce(G,Ee.t,0,0,pe):xe},this.s=pw.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function f2(G,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=G,this._renderType=X,this._elem=pe,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(pe)}function j0(){}f2.prototype.searchProperties=function(){var G,X,pe=this._textData.a.length,xe=Ke.getProp;for(G=0;G<pe;G+=1)X=this._textData.a[G],this._animatorsData[G]=new _re(this._elem,X,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:xe(this._elem,this._textData.p.a,0,0,this),f:xe(this._elem,this._textData.p.f,0,0,this),l:xe(this._elem,this._textData.p.l,0,0,this),r:xe(this._elem,this._textData.p.r,0,0,this),p:xe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=xe(this._elem,this._textData.m.a,1,0,this)},f2.prototype.getMeasures=function(G,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ce,Ee,Re,Qe,Ye,Mt,Zt,Xe,ct,vt,Et,Gt,Xt,Je,He,Ne,qe,gt=this._moreOptions.alignment.v,an=this._animatorsData,cn=this._textData,Ot=this.mHelper,po=this._renderType,$o=this.renderedLetters.length,si=G.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ko,lo=qe.v;for(this._pathData.r.v&&(lo=lo.reverse()),Re={tLength:0,segments:[]},Ee=lo._length-1,Je=0,Ce=0;Ce<Ee;Ce+=1)Ko=$e.buildBezierData(lo.v[Ce],lo.v[Ce+1],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][1]],[lo.i[Ce+1][0]-lo.v[Ce+1][0],lo.i[Ce+1][1]-lo.v[Ce+1][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Je+=Ko.segmentLength;Ce=Ee,qe.v.c&&(Ko=$e.buildBezierData(lo.v[Ce],lo.v[0],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][1]],[lo.i[0][0]-lo.v[0][0],lo.i[0][1]-lo.v[0][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Je+=Ko.segmentLength),this._pathData.pi=Re}if(Re=this._pathData.pi,Qe=this._pathData.f.v,ct=0,Xe=1,Mt=0,Zt=!0,Gt=Re.segments,Qe<0&&qe.v.c)for(Re.tLength<Math.abs(Qe)&&(Qe=-Math.abs(Qe)%Re.tLength),Xe=(Et=Gt[ct=Gt.length-1].points).length-1;Qe<0;)Qe+=Et[Xe].partialLength,(Xe-=1)<0&&(Xe=(Et=Gt[ct-=1].points).length-1);vt=(Et=Gt[ct].points)[Xe-1],Xt=(Ye=Et[Xe]).partialLength}Ee=si.length,pe=0,xe=0;var zt,xn,ft,st,ze=1.2*G.finalSize*.714,dt=!0;ft=an.length;var Ct,gi,Zo,Po,wa,Jo,hl,ma,qa,$0,x2,E0,I0,nh=-1,dr=Qe,yk=ct,bk=Xe,hw=-1,Vf="",u5=this.defaultPropsArray;if(G.j===2||G.j===1){var ih=0,R7=0,z7=G.j===2?-.5:-1,y2=0,N7=!0;for(Ce=0;Ce<Ee;Ce+=1)if(si[Ce].n){for(ih&&(ih+=R7);y2<Ce;)si[y2].animatorJustifyOffset=ih,y2+=1;ih=0,N7=!0}else{for(xn=0;xn<ft;xn+=1)(zt=an[xn].a).t.propType&&(N7&&G.j===2&&(R7+=zt.t.v*z7),(Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars)).length?ih+=zt.t.v*Ct[0]*z7:ih+=zt.t.v*Ct*z7);N7=!1}for(ih&&(ih+=R7);y2<Ce;)si[y2].animatorJustifyOffset=ih,y2+=1}for(Ce=0;Ce<Ee;Ce+=1){if(Ot.reset(),wa=1,si[Ce].n)pe=0,xe+=G.yOffset,xe+=dt?1:0,Qe=dr,dt=!1,this._hasMaskedPath&&(Xe=bk,vt=(Et=Gt[ct=yk].points)[Xe-1],Xt=(Ye=Et[Xe]).partialLength,Mt=0),Vf="",E0="",$0="",I0="",u5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(hw!==si[Ce].line){switch(G.j){case 1:Qe+=Je-G.lineWidths[si[Ce].line];break;case 2:Qe+=(Je-G.lineWidths[si[Ce].line])/2}hw=si[Ce].line}nh!==si[Ce].ind&&(si[nh]&&(Qe+=si[nh].extra),Qe+=si[Ce].an/2,nh=si[Ce].ind),Qe+=gt[0]*si[Ce].an*.005;var b2=0;for(xn=0;xn<ft;xn+=1)(zt=an[xn].a).p.propType&&((Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars)).length?b2+=zt.p.v[0]*Ct[0]:b2+=zt.p.v[0]*Ct),zt.a.propType&&((Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars)).length?b2+=zt.a.v[0]*Ct[0]:b2+=zt.a.v[0]*Ct);for(Zt=!0,this._pathData.a.v&&(Qe=.5*si[0].an+(Je-this._pathData.f.v-.5*si[0].an-.5*si[si.length-1].an)*nh/(Ee-1),Qe+=this._pathData.f.v);Zt;)Mt+Xt>=Qe+b2||!Et?(He=(Qe+b2-Mt)/Ye.partialLength,Zo=vt.point[0]+(Ye.point[0]-vt.point[0])*He,Po=vt.point[1]+(Ye.point[1]-vt.point[1])*He,Ot.translate(-gt[0]*si[Ce].an*.005,-gt[1]*ze*.01),Zt=!1):Et&&(Mt+=Ye.partialLength,(Xe+=1)>=Et.length&&(Xe=0,Gt[ct+=1]?Et=Gt[ct].points:qe.v.c?(Xe=0,Et=Gt[ct=0].points):(Mt-=Ye.partialLength,Et=null)),Et&&(vt=Ye,Xt=(Ye=Et[Xe]).partialLength));gi=si[Ce].an/2-si[Ce].add,Ot.translate(-gi,0,0)}else gi=si[Ce].an/2-si[Ce].add,Ot.translate(-gi,0,0),Ot.translate(-gt[0]*si[Ce].an*.005,-gt[1]*ze*.01,0);for(xn=0;xn<ft;xn+=1)(zt=an[xn].a).t.propType&&(Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars),(pe!==0||G.j!==0)&&(this._hasMaskedPath?Ct.length?Qe+=zt.t.v*Ct[0]:Qe+=zt.t.v*Ct:Ct.length?pe+=zt.t.v*Ct[0]:pe+=zt.t.v*Ct));for(G.strokeWidthAnim&&(hl=G.sw||0),G.strokeColorAnim&&(Jo=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ma=[G.fc[0],G.fc[1],G.fc[2]]),xn=0;xn<ft;xn+=1)(zt=an[xn].a).a.propType&&((Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars)).length?Ot.translate(-zt.a.v[0]*Ct[0],-zt.a.v[1]*Ct[1],zt.a.v[2]*Ct[2]):Ot.translate(-zt.a.v[0]*Ct,-zt.a.v[1]*Ct,zt.a.v[2]*Ct));for(xn=0;xn<ft;xn+=1)(zt=an[xn].a).s.propType&&((Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars)).length?Ot.scale(1+(zt.s.v[0]-1)*Ct[0],1+(zt.s.v[1]-1)*Ct[1],1):Ot.scale(1+(zt.s.v[0]-1)*Ct,1+(zt.s.v[1]-1)*Ct,1));for(xn=0;xn<ft;xn+=1){if(zt=an[xn].a,Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars),zt.sk.propType&&(Ct.length?Ot.skewFromAxis(-zt.sk.v*Ct[0],zt.sa.v*Ct[1]):Ot.skewFromAxis(-zt.sk.v*Ct,zt.sa.v*Ct)),zt.r.propType&&(Ct.length?Ot.rotateZ(-zt.r.v*Ct[2]):Ot.rotateZ(-zt.r.v*Ct)),zt.ry.propType&&(Ct.length?Ot.rotateY(zt.ry.v*Ct[1]):Ot.rotateY(zt.ry.v*Ct)),zt.rx.propType&&(Ct.length?Ot.rotateX(zt.rx.v*Ct[0]):Ot.rotateX(zt.rx.v*Ct)),zt.o.propType&&(Ct.length?wa+=(zt.o.v*Ct[0]-wa)*Ct[0]:wa+=(zt.o.v*Ct-wa)*Ct),G.strokeWidthAnim&&zt.sw.propType&&(Ct.length?hl+=zt.sw.v*Ct[0]:hl+=zt.sw.v*Ct),G.strokeColorAnim&&zt.sc.propType)for(qa=0;qa<3;qa+=1)Ct.length?Jo[qa]+=(zt.sc.v[qa]-Jo[qa])*Ct[0]:Jo[qa]+=(zt.sc.v[qa]-Jo[qa])*Ct;if(G.fillColorAnim&&G.fc){if(zt.fc.propType)for(qa=0;qa<3;qa+=1)Ct.length?ma[qa]+=(zt.fc.v[qa]-ma[qa])*Ct[0]:ma[qa]+=(zt.fc.v[qa]-ma[qa])*Ct;zt.fh.propType&&(ma=Ct.length?q(ma,zt.fh.v*Ct[0]):q(ma,zt.fh.v*Ct)),zt.fs.propType&&(ma=Ct.length?U(ma,zt.fs.v*Ct[0]):U(ma,zt.fs.v*Ct)),zt.fb.propType&&(ma=Ct.length?Y(ma,zt.fb.v*Ct[0]):Y(ma,zt.fb.v*Ct))}}for(xn=0;xn<ft;xn+=1)(zt=an[xn].a).p.propType&&(Ct=an[xn].s.getMult(si[Ce].anIndexes[xn],cn.a[xn].s.totalChars),this._hasMaskedPath?Ct.length?Ot.translate(0,zt.p.v[1]*Ct[0],-zt.p.v[2]*Ct[1]):Ot.translate(0,zt.p.v[1]*Ct,-zt.p.v[2]*Ct):Ct.length?Ot.translate(zt.p.v[0]*Ct[0],zt.p.v[1]*Ct[1],-zt.p.v[2]*Ct[2]):Ot.translate(zt.p.v[0]*Ct,zt.p.v[1]*Ct,-zt.p.v[2]*Ct));if(G.strokeWidthAnim&&($0=hl<0?0:hl),G.strokeColorAnim&&(x2="rgb("+Math.round(255*Jo[0])+","+Math.round(255*Jo[1])+","+Math.round(255*Jo[2])+")"),G.fillColorAnim&&G.fc&&(E0="rgb("+Math.round(255*ma[0])+","+Math.round(255*ma[1])+","+Math.round(255*ma[2])+")"),this._hasMaskedPath){if(Ot.translate(0,-G.ls),Ot.translate(0,gt[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Ye.point[1]-vt.point[1])/(Ye.point[0]-vt.point[0]);var mw=180*Math.atan(Ne)/Math.PI;Ye.point[0]<vt.point[0]&&(mw+=180),Ot.rotate(-mw*Math.PI/180)}Ot.translate(Zo,Po,0),Qe-=gt[0]*si[Ce].an*.005,si[Ce+1]&&nh!==si[Ce+1].ind&&(Qe+=si[Ce].an/2,Qe+=.001*G.tr*G.finalSize)}else{switch(Ot.translate(pe,xe,0),G.ps&&Ot.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:Ot.translate(si[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[si[Ce].line]),0,0);break;case 2:Ot.translate(si[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[si[Ce].line])/2,0,0)}Ot.translate(0,-G.ls),Ot.translate(gi,0,0),Ot.translate(gt[0]*si[Ce].an*.005,gt[1]*ze*.01,0),pe+=si[Ce].l+.001*G.tr*G.finalSize}po==="html"?Vf=Ot.toCSS():po==="svg"?Vf=Ot.to2dCSS():u5=[Ot.props[0],Ot.props[1],Ot.props[2],Ot.props[3],Ot.props[4],Ot.props[5],Ot.props[6],Ot.props[7],Ot.props[8],Ot.props[9],Ot.props[10],Ot.props[11],Ot.props[12],Ot.props[13],Ot.props[14],Ot.props[15]],I0=wa}$o<=Ce?(st=new th(I0,$0,x2,E0,Vf,u5),this.renderedLetters.push(st),$o+=1,this.lettersChangedFlag=!0):(st=this.renderedLetters[Ce],this.lettersChangedFlag=st.update(I0,$0,x2,E0,Vf,u5)||this.lettersChangedFlag)}}},f2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},f2.prototype.mHelper=new wt,f2.prototype.defaultPropsArray=[],g([Bt],f2),j0.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new Zc(this,G.t,this.dynamicProperties),this.textAnimator=new f2(G.t,this.renderType,this),this.initTransform(G,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},j0.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},j0.prototype.createPathShape=function(G,X){var pe,xe,Ce=X.length,Ee="";for(pe=0;pe<Ce;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,Ee+=Gn(xe,xe.i.length,!0,G));return Ee},j0.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},j0.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},j0.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},j0.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,Ce){switch(G.ps&&X.translate(G.ps[0],G.ps[1]+G.ascent,0),X.translate(0,-G.ls,0),G.j){case 1:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe]),0,0);break;case 2:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe])/2,0,0)}X.translate(xe,Ce,0)},j0.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},j0.prototype.emptyProp=new th,j0.prototype.destroy=function(){},j0.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Kon={shapes:[]};function c5(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function Vre(G,X,pe){this.initElement(G,X,pe)}function F7(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function Td(){}function d5(){}function EL(G,X,pe){this.layers=G.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(G,X,pe),this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0}}function Hre(G,X){this.animationItem=G,this.layers=null,this.renderedFrame=-1,this.svgElement=le("svg");var pe="";if(X&&X.title){var xe=le("title"),Ce=H();xe.setAttribute("id",Ce),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ce}if(X&&X.description){var Ee=le("desc"),Re=H();Ee.setAttribute("id",Re),Ee.textContent=X.description,this.svgElement.appendChild(Ee),pe+=" "+Re}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Qe=le("defs");this.svgElement.appendChild(Qe);var Ye=le("g");this.svgElement.appendChild(Ye),this.layerElement=Ye,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Qe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Nn,g2,cw,O7,Ci,l5,j0],c5),c5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},c5.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],Ce="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(Ce),Ce=""):Ce+=G[X],X+=1;return xe.push(Ce),xe},c5.prototype.buildShapeData=function(G,X){if(G.shapes&&G.shapes.length){var pe=G.shapes[0];if(pe.it){var xe=pe.it[pe.it.length-1];xe.s&&(xe.s.k[0]=X,xe.s.k[1]=X)}}return G},c5.prototype.buildNewText=function(){this.addDynamicProperty(this);var G,X,pe=this.textProperty.currentData;this.renderedLetters=b(pe?pe.l.length:0),pe.fc?this.layerElement.setAttribute("fill",this.buildColor(pe.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),pe.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(pe.sc)),this.layerElement.setAttribute("stroke-width",pe.sw)),this.layerElement.setAttribute("font-size",pe.finalSize);var xe=this.globalData.fontManager.getFontByName(pe.f);if(xe.fClass)this.layerElement.setAttribute("class",xe.fClass);else{this.layerElement.setAttribute("font-family",xe.fFamily);var Ce=pe.fWeight,Ee=pe.fStyle;this.layerElement.setAttribute("font-style",Ee),this.layerElement.setAttribute("font-weight",Ce)}this.layerElement.setAttribute("aria-label",pe.t);var Re=pe.l||[],Qe=!!this.globalData.fontManager.chars;X=Re.length;var Ye,Mt=this.mHelper,Zt="",Xe=this.data.singleShape,ct=0,vt=0,Et=!0,Gt=.001*pe.tr*pe.finalSize;if(!Xe||Qe||pe.sz){var Xt,Je=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!Qe||!Xe||G===0){if(Ye=Je>G?this.textSpans[G].span:le(Qe?"g":"text"),Je<=G){if(Ye.setAttribute("stroke-linecap","butt"),Ye.setAttribute("stroke-linejoin","round"),Ye.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=Ye,Qe){var He=le("g");Ye.appendChild(He),this.textSpans[G].childSpan=He}this.textSpans[G].span=Ye,this.layerElement.appendChild(Ye)}Ye.style.display="inherit"}if(Mt.reset(),Xe&&(Re[G].n&&(ct=-Gt,vt+=pe.yOffset,vt+=Et?1:0,Et=!1),this.applyTextPropertiesToMatrix(pe,Mt,Re[G].line,ct,vt),ct+=Re[G].l||0,ct+=Gt),Qe){var Ne;if((Xt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new EL(Xt.data,this.globalData,this);else{var qe=Kon;Xt.data&&Xt.data.shapes&&(qe=this.buildShapeData(Xt.data,pe.finalSize)),Ne=new tr(qe,this.globalData,this)}if(this.textSpans[G].glyph){var gt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(gt.layerElement),gt.destroy()}this.textSpans[G].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[G].childSpan.appendChild(Ne.layerElement),Xt.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else Xe&&Ye.setAttribute("transform","translate("+Mt.props[12]+","+Mt.props[13]+")"),Ye.textContent=Re[G].val,Ye.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Xe&&Ye&&Ye.setAttribute("d",Zt)}else{var an=this.textContainer,cn="start";switch(pe.j){case 1:cn="end";break;case 2:cn="middle";break;default:cn="start"}an.setAttribute("text-anchor",cn),an.setAttribute("letter-spacing",Gt);var Ot=this.buildTextContents(pe.finalText);for(X=Ot.length,vt=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(Ye=this.textSpans[G].span||le("tspan")).textContent=Ot[G],Ye.setAttribute("x",0),Ye.setAttribute("y",vt),Ye.style.display="inherit",an.appendChild(Ye),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=Ye,vt+=pe.finalLineHeight;this.layerElement.appendChild(an)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},c5.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var G=this.layerElement.getBBox();this.bbox={top:G.y,left:G.x,width:G.width,height:G.height}}return this.bbox},c5.prototype.getValue=function(){var G,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,G=0;G<pe;G+=1)(X=this.textSpans[G].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},c5.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var G,X,pe,xe,Ce,Ee=this.textAnimator.renderedLetters,Re=this.textProperty.currentData.l;for(X=Re.length,G=0;G<X;G+=1)Re[G].n||(pe=Ee[G],xe=this.textSpans[G].span,(Ce=this.textSpans[G].glyph)&&Ce.renderFrame(),pe._mdf.m&&xe.setAttribute("transform",pe.m),pe._mdf.o&&xe.setAttribute("opacity",pe.o),pe._mdf.sw&&xe.setAttribute("stroke-width",pe.sw),pe._mdf.sc&&xe.setAttribute("stroke",pe.sc),pe._mdf.fc&&xe.setAttribute("fill",pe.fc))}},g([dw],Vre),Vre.prototype.createContent=function(){var G=le("rect");G.setAttribute("width",this.data.sw),G.setAttribute("height",this.data.sh),G.setAttribute("fill",this.data.sc),this.layerElement.appendChild(G)},F7.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},F7.prototype.renderFrame=function(){},F7.prototype.getBaseElement=function(){return null},F7.prototype.destroy=function(){},F7.prototype.sourceRectAtTime=function(){},F7.prototype.hide=function(){},g([Nn,g2,O7,Ci],F7),g([il],Td),Td.prototype.createNull=function(G){return new F7(G,this.globalData,this)},Td.prototype.createShape=function(G){return new tr(G,this.globalData,this)},Td.prototype.createText=function(G){return new c5(G,this.globalData,this)},Td.prototype.createImage=function(G){return new dw(G,this.globalData,this)},Td.prototype.createSolid=function(G){return new Vre(G,this.globalData,this)},Td.prototype.configAnimation=function(G){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+G.w+" "+G.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",G.w),this.svgElement.setAttribute("height",G.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var X=this.globalData.defs;this.setupGlobalData(G,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=G;var pe=le("clipPath"),xe=le("rect");xe.setAttribute("width",G.w),xe.setAttribute("height",G.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var Ce=H();pe.setAttribute("id",Ce),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},Td.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var G,X=this.layers?this.layers.length:0;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy&&this.elements[G].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Td.prototype.updateContainerSize=function(){},Td.prototype.findIndexByInd=function(G){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===G)return X;return-1},Td.prototype.buildItem=function(G){var X=this.elements;if(!X[G]&&this.layers[G].ty!==99){X[G]=!0;var pe=this.createItem(this.layers[G]);if(X[G]=pe,te()&&(this.layers[G].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,G),this.layers[G].tt){var xe="tp"in this.layers[G]?this.findIndexByInd(this.layers[G].tp):G-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var Ce=X[xe].getMatte(this.layers[G].tt);pe.setMatte(Ce)}else this.buildItem(xe),this.addPendingElement(pe)}}},Td.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var G=this.pendingElements.pop();if(G.checkParenting(),G.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===G){var xe="tp"in G.data?this.findIndexByInd(G.data.tp):X-1,Ce=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(Ce);break}X+=1}}},Td.prototype.renderFrame=function(G){if(this.renderedFrame!==G&&!this.destroyed){G===null?G=this.renderedFrame:this.renderedFrame=G,this.globalData.frameNum=G,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=G,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(G),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(G-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},Td.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,Ce=0;Ce<X;)this.elements[Ce]&&this.elements[Ce]!==!0&&this.elements[Ce].getBaseElement()&&(xe=this.elements[Ce].getBaseElement()),Ce+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},Td.prototype.hide=function(){this.layerElement.style.display="none"},Td.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,g2,O7,Ci,l5],d5),d5.prototype.initElement=function(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initTransform(G,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},d5.prototype.prepareFrame=function(G){if(this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=G/this.data.sr;else{var X=this.tm.v;X===this.data.op&&(X=this.data.op-1),this.renderedFrame=X}var pe,xe=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),pe=xe-1;pe>=0;pe-=1)(this.completeLayers||this.elements[pe])&&(this.elements[pe].prepareFrame(this.renderedFrame-this.layers[pe].st),this.elements[pe]._mdf&&(this._mdf=!0))}},d5.prototype.renderInnerContent=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)(this.completeLayers||this.elements[G])&&this.elements[G].renderFrame()},d5.prototype.setElements=function(G){this.elements=G},d5.prototype.getElements=function(){return this.elements},d5.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},d5.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Td,d5,cw],EL),EL.prototype.createComp=function(G){return new EL(G,this.globalData,this)},g([Td],Hre),Hre.prototype.createComp=function(G){return new EL(G,this.globalData,this)},he("svg",Hre),mn.registerModifier("tm",rn),mn.registerModifier("pb",Vt),mn.registerModifier("rp",Wn),mn.registerModifier("rd",Xn),mn.registerModifier("zz",pa),mn.registerModifier("op",yr),Qt})())})(0,Yre.exports)),Yre.exports}function jcn(){if(y$e)return Qre;function e(n){return n instanceof Hje?Hje.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return y$e=1,Qre=function(n){if(n=n||{},n.circles)return(function(l){const c=[],d=[],u=new Map;if(u.set(Date,(x=>new Date(x))),u.set(Map,((x,y)=>new Map(h(Array.from(x),y)))),u.set(Set,((x,y)=>new Set(h(Array.from(x),y)))),l.constructorHandlers)for(const x of l.constructorHandlers)u.set(x[0],x[1]);let p=null;return l.proto?f:g;function h(x,y){const b=Object.keys(x),w=new Array(b.length);for(let C=0;C<b.length;C++){const v=b[C],S=x[v];if(typeof S!="object"||S===null)w[v]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[v]=p(S,y);else if(ArrayBuffer.isView(S))w[v]=e(S);else{const k=c.indexOf(S);w[v]=k!==-1?d[k]:y(S)}}return w}function g(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,g);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,g);const y={};c.push(x),d.push(y);for(const b in x){if(Object.hasOwnProperty.call(x,b)===!1)continue;const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,g);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:g(w)}}return c.pop(),d.pop(),y}function f(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,f);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,f);const y={};c.push(x),d.push(y);for(const b in x){const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,f);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:f(w)}}return c.pop(),d.pop(),y}})(n);const i=new Map;if(i.set(Date,(l=>new Date(l))),i.set(Map,((l,c)=>new Map(s(Array.from(l),c)))),i.set(Set,((l,c)=>new Set(s(Array.from(l),c)))),n.constructorHandlers)for(const l of n.constructorHandlers)i.set(l[0],l[1]);let r=null;return n.proto?function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d}:function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){if(Object.hasOwnProperty.call(c,u)===!1)continue;const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d};function s(l,c){const d=Object.keys(l),u=new Array(d.length);for(let p=0;p<d.length;p++){const h=d[p],g=l[h];typeof g!="object"||g===null?u[h]=g:g.constructor!==Object&&(r=i.get(g.constructor))?u[h]=r(g,c):ArrayBuffer.isView(g)?u[h]=e(g):u[h]=c(g)}return u}},Qre}var $cn=(function(){if(v$e)return C$e;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}v$e=1;var n=e(kcn()),i=B,r=e(i),s=e((x$e||(x$e=1,f$e=function g(f,x){if(f===x)return!0;if(f&&x&&typeof f=="object"&&typeof x=="object"){if(f.constructor!==x.constructor)return!1;var y,b,w;if(Array.isArray(f)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(!g(f[b],x[b]))return!1;return!0}if(f instanceof Map&&x instanceof Map){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;for(b of f.entries())if(!g(b[1],x.get(b[0])))return!1;return!0}if(f instanceof Set&&x instanceof Set){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(x)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(f[b]!==x[b])return!1;return!0}if(f.constructor===RegExp)return f.source===x.source&&f.flags===x.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===x.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===x.toString();if((y=(w=Object.keys(f)).length)!==Object.keys(x).length)return!1;for(b=y;b--!=0;)if(!Object.prototype.hasOwnProperty.call(x,w[b]))return!1;for(b=y;b--!=0;){var C=w[b];if(!(C==="_owner"&&f.$$typeof||g(f[C],x[C])))return!1}return!0}return f!=f&&x!=x}),f$e)),l=e((w$e||(w$e=1,b$e=jcn()()),b$e));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,v=y.play,S=v===void 0?null:v,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,F=L===void 0?null:L,N=y.useSubframes,_=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,V=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,Y=U===void 0?p:U,q=y.onComplete,K=q===void 0?p:q,J=y.onLoopComplete,ee=J===void 0?p:J,te=y.onEnterFrame,ne=te===void 0?p:te,se=y.onSegmentStart,re=se===void 0?p:se,le=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),fe=le;if("animationData"in le){var ue=le;w=ue.animationData,fe=d(ue,["animationData"])}if("path"in le){var oe=le;C=oe.path,fe=d(oe,["path"])}var ie=i.useRef(null),ce=i.useRef(),de=i.useCallback((function(){if(ce.current==null)throw new Error("Lottie ref is not set");return ce.current}),[]),ge=i.useState(!1),he=ge[0],ye=ge[1],ve=i.useState(D),we=ve[0],Ae=ve[1];i.useEffect((function(){s(we,D)||Ae(D)}),[D,we]);var Be=i.useState(V),Te=Be[0],Le=Be[1];i.useEffect((function(){s(Te,V)||Le(V)}),[V,Te]),i.useEffect((function(){return function(){return de().removeEventListener("complete",K)}}),[de,K]),i.useEffect((function(){return function(){return de().removeEventListener("loopComplete",ee)}}),[de,ee]),i.useEffect((function(){return function(){return de().removeEventListener("enterFrame",ne)}}),[de,ne]),i.useEffect((function(){return function(){return de().removeEventListener("segmentStart",re)}}),[de,re]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",Y)}}),[de,Y]);var Fe=i.useCallback((function(ke){ce.current=ke,typeof b=="function"?b(ke):b!=null&&(b.current=ke)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var ke=f(c({animationData:w==null||typeof w!="object"?w:"default"in w&&typeof w.default=="object"?l(w.default):l(w),path:C,container:ie.current,renderer:T,loop:!1,autoplay:!1,rendererSettings:Te},W?{audioFactory:W}:{}));Fe(ke);var be=function(){return ye(!0)};return de().addEventListener("DOMLoaded",be),function(){de().removeEventListener("DOMLoaded",be),ye(!1),de().destroy(),Fe(void 0)}}),[O,T,Te,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",Y)}),[de,Y]),i.useEffect((function(){de().addEventListener("complete",K)}),[de,K]),i.useEffect((function(){de().addEventListener("loopComplete",ee)}),[de,ee]),i.useEffect((function(){de().addEventListener("enterFrame",ne)}),[de,ne]),i.useEffect((function(){de().addEventListener("segmentStart",re)}),[de,re]),i.useEffect((function(){he&&(de().loop=O)}),[he,O,de]);var Me=i.useRef(!1);return i.useEffect((function(){if(he)if(S===!0){var ke=!0;we?(de().playSegments(we,ke),Me.current=!0,I===-1&&be(typeof we[1]=="number"?we[1]:we[1][1])):(Me.current&&de().resetSegments(ke),Me.current=!1,I===-1?be(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function be($e){de().goToAndPlay($e,!0),de().setDirection(I)}}),[S,we,he,I,de]),i.useEffect((function(){he&&(Number.isNaN($)||de().setSpeed($))}),[$,he,de]),i.useEffect((function(){he&&de().setDirection(I)}),[I,de,he]),i.useEffect((function(){if(he&&F!=null){var ke=!0;S?de().goToAndPlay(F,ke):de().goToAndStop(F,ke)}}),[de,F,S,he]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},fe,{ref:ie}))})));return x})(n);return C$e=h})();const zs=pr($cn);var A$e,S$e,Gre,k$e,qre,j$e,Kre,$$e,Zre,E$e,Jre,I$e,Xre,D$e,T$e,L$e,B$e,P$e,M$e,O$e,F$e,R$e,z$e,N$e,_$e,V$e,H$e,U$e,W$e,Q$e,eae,Y$e,tae,G$e,nae,q$e,iae,K$e,oae,Z$e,J$e,X$e,rae,eEe,aae,tEe,sae,nEe,iEe,oEe,lae,rEe,aEe,sEe,lEe,cEe,dEe,uEe,pEe,hEe,cae,mEe,dae,gEe,uae,fEe,xEe,yEe,bEe,wEe,CEe,vEe,pae,AEe,hae,SEe,mae,kEe,gae,jEe,fae,$Ee,EEe,IEe,xae,DEe,TEe,LEe,BEe,PEe,MEe,OEe,FEe,REe,zEe,NEe,yae,_Ee,bae,VEe,HEe,UEe,WEe,QEe,wae,YEe,Cae,GEe,vae,qEe,KEe,ZEe,Aae,JEe,Sae,XEe,eIe,tIe,nIe,iIe,kae,oIe,jae,rIe,$ae,aIe,sIe,lIe;function ite(){return k$e||(k$e=1,Gre=function(e,n){return e===n||e!=e&&n!=n}),Gre}function B_(){if(j$e)return qre;j$e=1;var e=ite();return qre=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},qre}function ZG(){if(L$e)return T$e;L$e=1;var e=S$e?A$e:(S$e=1,A$e=function(){this.__data__=[],this.size=0}),n=(function(){if($$e)return Kre;$$e=1;var c=B_(),d=Array.prototype.splice;return Kre=function(u){var p=this.__data__,h=c(p,u);return!(h<0||(h==p.length-1?p.pop():d.call(p,h,1),--this.size,0))},Kre})(),i=(function(){if(E$e)return Zre;E$e=1;var c=B_();return Zre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},Zre})(),r=(function(){if(I$e)return Jre;I$e=1;var c=B_();return Jre=function(d){return c(this.__data__,d)>-1},Jre})(),s=(function(){if(D$e)return Xre;D$e=1;var c=B_();return Xre=function(d,u){var p=this.__data__,h=c(p,d);return h<0?(++this.size,p.push([d,u])):p[h][1]=u,this},Xre})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,T$e=l}function Ivt(){if(V$e)return _$e;V$e=1;var e=typeof Wh=="object"&&Wh&&Wh.Object===Object&&Wh;return _$e=e}function E3(){if(U$e)return H$e;U$e=1;var e=Ivt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return H$e=i}function wD(){if(Q$e)return W$e;Q$e=1;var e=E3().Symbol;return W$e=e}function ST(){if(q$e)return nae;q$e=1;var e=wD(),n=(function(){if(Y$e)return eae;Y$e=1;var s=wD(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return eae=function(p){var h=c.call(p,u),g=p[u];try{p[u]=void 0;var f=!0}catch{}var x=d.call(p);return f&&(h?p[u]=g:delete p[u]),x},eae})(),i=(function(){if(G$e)return tae;G$e=1;var s=Object.prototype.toString;return tae=function(l){return s.call(l)},tae})(),r=e?e.toStringTag:void 0;return nae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},nae}function W3(){return K$e||(K$e=1,iae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),iae}function Dvt(){if(Z$e)return oae;Z$e=1;var e=ST(),n=W3();return oae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},oae}function Ecn(){if(eEe)return rae;eEe=1;var e=(function(){if(X$e)return J$e;X$e=1;var i=E3()["__core-js_shared__"];return J$e=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return rae=function(i){return!!n&&n in i},rae}function Tvt(){if(tEe)return aae;tEe=1;var e=Function.prototype.toString;return aae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},aae}function hA(){if(rEe)return lae;rEe=1;var e=(function(){if(nEe)return sae;nEe=1;var i=Dvt(),r=Ecn(),s=W3(),l=Tvt(),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,h=u.hasOwnProperty,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return sae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},sae})(),n=(oEe||(oEe=1,iEe=function(i,r){return i?.[r]}),iEe);return lae=function(i,r){var s=n(i,r);return e(s)?s:void 0},lae}function swe(){if(sEe)return aEe;sEe=1;var e=hA()(E3(),"Map");return aEe=e}function P_(){if(cEe)return lEe;cEe=1;var e=hA()(Object,"create");return lEe=e}function Icn(){if(yEe)return xEe;yEe=1;var e=(function(){if(uEe)return dEe;uEe=1;var c=P_();return dEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(hEe||(hEe=1,pEe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),pEe),i=(function(){if(mEe)return cae;mEe=1;var c=P_(),d=Object.prototype.hasOwnProperty;return cae=function(u){var p=this.__data__;if(c){var h=p[u];return h==="__lodash_hash_undefined__"?void 0:h}return d.call(p,u)?p[u]:void 0},cae})(),r=(function(){if(gEe)return dae;gEe=1;var c=P_(),d=Object.prototype.hasOwnProperty;return dae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},dae})(),s=(function(){if(fEe)return uae;fEe=1;var c=P_();return uae=function(d,u){var p=this.__data__;return this.size+=this.has(d)?0:1,p[d]=c&&u===void 0?"__lodash_hash_undefined__":u,this},uae})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,xEe=l}function M_(){if(AEe)return pae;AEe=1;var e=(vEe||(vEe=1,CEe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),CEe);return pae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},pae}function lwe(){if(IEe)return EEe;IEe=1;var e=(function(){if(wEe)return bEe;wEe=1;var c=Icn(),d=ZG(),u=swe();return bEe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(SEe)return hae;SEe=1;var c=M_();return hae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},hae})(),i=(function(){if(kEe)return mae;kEe=1;var c=M_();return mae=function(d){return c(this,d).get(d)},mae})(),r=(function(){if(jEe)return gae;jEe=1;var c=M_();return gae=function(d){return c(this,d).has(d)},gae})(),s=(function(){if($Ee)return fae;$Ee=1;var c=M_();return fae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},fae})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,EEe=l}function cwe(){if(LEe)return TEe;LEe=1;var e=ZG(),n=(function(){if(P$e)return B$e;P$e=1;var d=ZG();return B$e=function(){this.__data__=new d,this.size=0}})(),i=(O$e||(O$e=1,M$e=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),M$e),r=(R$e||(R$e=1,F$e=function(d){return this.__data__.get(d)}),F$e),s=(N$e||(N$e=1,z$e=function(d){return this.__data__.has(d)}),z$e),l=(function(){if(DEe)return xae;DEe=1;var d=ZG(),u=swe(),p=lwe();return xae=function(h,g){var f=this.__data__;if(f instanceof d){var x=f.__data__;if(!u||x.length<199)return x.push([h,g]),this.size=++f.size,this;f=this.__data__=new p(x)}return f.set(h,g),this.size=f.size,this},xae})();function c(d){var u=this.__data__=new e(d);this.size=u.size}return c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,TEe=c}function Lvt(){if(REe)return FEe;REe=1;var e=lwe(),n=(PEe||(PEe=1,BEe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),BEe),i=(OEe||(OEe=1,MEe=function(s){return this.__data__.has(s)}),MEe);function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new e;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=n,r.prototype.has=i,FEe=r}function Bvt(){return _Ee||(_Ee=1,yae=function(e,n){return e.has(n)}),yae}function Pvt(){if(VEe)return bae;VEe=1;var e=Lvt(),n=(NEe||(NEe=1,zEe=function(r,s){for(var l=-1,c=r==null?0:r.length;++l<c;)if(s(r[l],l,r))return!0;return!1}),zEe),i=Bvt();return bae=function(r,s,l,c,d,u){var p=1&l,h=r.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var f=u.get(r),x=u.get(s);if(f&&x)return f==s&&x==r;var y=-1,b=!0,w=2&l?new e:void 0;for(u.set(r,s),u.set(s,r);++y<h;){var C=r[y],v=s[y];if(c)var S=p?c(v,C,y,s,r,u):c(C,v,y,r,s,u);if(S!==void 0){if(S)continue;b=!1;break}if(w){if(!n(s,(function(k,$){if(!i(w,$)&&(C===k||d(C,k,l,c,u)))return w.push($)}))){b=!1;break}}else if(C!==v&&!d(C,v,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},bae}function Mvt(){if(UEe)return HEe;UEe=1;var e=E3().Uint8Array;return HEe=e}function x5e(){return YEe||(YEe=1,wae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),wae}function Dcn(){if(GEe)return Cae;GEe=1;var e=wD(),n=Mvt(),i=ite(),r=Pvt(),s=(QEe||(QEe=1,WEe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),WEe),l=x5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Cae=function(u,p,h,g,f,x,y){switch(h){case"[object DataView]":if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case"[object ArrayBuffer]":return!(u.byteLength!=p.byteLength||!x(new n(u),new n(p)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+p);case"[object Error]":return u.name==p.name&&u.message==p.message;case"[object RegExp]":case"[object String]":return u==p+"";case"[object Map]":var b=s;case"[object Set]":var w=1&g;if(b||(b=l),u.size!=p.size&&!w)return!1;var C=y.get(u);if(C)return C==p;g|=2,y.set(u,p);var v=r(b(u),b(p),g,f,x,y);return y.delete(u),v;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Cae}function dwe(){return qEe||(qEe=1,vae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),vae}function Zu(){if(ZEe)return KEe;ZEe=1;var e=Array.isArray;return KEe=e}function Ovt(){if(JEe)return Aae;JEe=1;var e=dwe(),n=Zu();return Aae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Aae}function uwe(){return XEe||(XEe=1,Sae=function(e,n){for(var i=-1,r=e==null?0:e.length,s=0,l=[];++i<r;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}),Sae}function Fvt(){return tIe?eIe:(tIe=1,eIe=function(){return[]})}function pwe(){if(iIe)return nIe;iIe=1;var e=uwe(),n=Fvt(),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(l){return l==null?[]:(l=Object(l),e(r(l),(function(c){return i.call(l,c)})))}:n;return nIe=s}function Rvt(){return oIe||(oIe=1,kae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),kae}function e7(){return rIe||(rIe=1,jae=function(e){return e!=null&&typeof e=="object"}),jae}function hwe(){if(lIe)return sIe;lIe=1;var e=(function(){if(aIe)return $ae;aIe=1;var c=ST(),d=e7();return $ae=function(u){return d(u)&&c(u)=="[object Arguments]"},$ae})(),n=e7(),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(c){return n(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return sIe=l}var cIe,dIe,uIe,Eae,pIe,Iae,hIe,Dae,mIe,Tae,gIe,Lae={exports:{}};function mwe(){return uIe||(uIe=1,(function(e,n){var i=E3(),r=dIe?cIe:(dIe=1,cIe=function(){return!1}),s=n&&!n.nodeType&&n,l=s&&e&&!e.nodeType&&e,c=l&&l.exports===s?i.Buffer:void 0,d=(c?c.isBuffer:void 0)||r;e.exports=d})(Lae,Lae.exports)),Lae.exports}function Vz(){if(pIe)return Eae;pIe=1;var e=/^(?:0|[1-9]\d*)$/;return Eae=function(n,i){var r=typeof n;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i},Eae}function gwe(){return hIe?Iae:(hIe=1,Iae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Iae)}function ote(){return gIe||(gIe=1,Tae=function(e){return function(n){return e(n)}}),Tae}var fIe,xIe,yIe,Bae,bIe,Pae,wIe,Mae,CIe,vIe,AIe,Oae,SIe,Fae,kIe,Rae,jIe,zae,$Ie,Nae,EIe,IIe,DIe,TIe,LIe,BIe,PIe,MIe,OIe,FIe,RIe,_ae,zIe,Vae,NIe,Hae,_Ie,Uae={exports:{}};function fwe(){return fIe||(fIe=1,(function(e,n){var i=Ivt(),r=n&&!n.nodeType&&n,s=r&&e&&!e.nodeType&&e,l=s&&s.exports===r&&i.process,c=(function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Uae,Uae.exports)),Uae.exports}function zvt(){if(yIe)return xIe;yIe=1;var e=(function(){if(mIe)return Dae;mIe=1;var l=ST(),c=gwe(),d=e7(),u={};return u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,Dae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Dae})(),n=ote(),i=fwe(),r=i&&i.isTypedArray,s=r?n(r):e;return xIe=s}function Nvt(){if(bIe)return Bae;bIe=1;var e=Rvt(),n=hwe(),i=Zu(),r=mwe(),s=Vz(),l=zvt(),c=Object.prototype.hasOwnProperty;return Bae=function(d,u){var p=i(d),h=!p&&n(d),g=!p&&!h&&r(d),f=!p&&!h&&!g&&l(d),x=p||h||g||f,y=x?e(d.length,String):[],b=y.length;for(var w in d)(u||c.call(d,w))&&(!x||!(w=="length"||g&&(w=="offset"||w=="parent")||f&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||s(w,b)))&&y.push(w);return y},Bae}function xwe(){if(wIe)return Pae;wIe=1;var e=Object.prototype;return Pae=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Pae}function _vt(){return CIe||(CIe=1,Mae=function(e,n){return function(i){return e(n(i))}}),Mae}function Tcn(){if(SIe)return Oae;SIe=1;var e=xwe(),n=(function(){if(AIe)return vIe;AIe=1;var r=_vt()(Object.keys,Object);return vIe=r})(),i=Object.prototype.hasOwnProperty;return Oae=function(r){if(!e(r))return n(r);var s=[];for(var l in Object(r))i.call(r,l)&&l!="constructor"&&s.push(l);return s},Oae}function kT(){if(kIe)return Fae;kIe=1;var e=Dvt(),n=gwe();return Fae=function(i){return i!=null&&n(i.length)&&!e(i)},Fae}function $R(){if(jIe)return Rae;jIe=1;var e=Nvt(),n=Tcn(),i=kT();return Rae=function(r){return i(r)?e(r):n(r)},Rae}function Vvt(){if($Ie)return zae;$Ie=1;var e=Ovt(),n=pwe(),i=$R();return zae=function(r){return e(r,i,n)},zae}function Hvt(){if(PIe)return BIe;PIe=1;var e=hA()(E3(),"Set");return BIe=e}function rte(){if(RIe)return FIe;RIe=1;var e=(function(){if(DIe)return IIe;DIe=1;var v=hA()(E3(),"DataView");return IIe=v})(),n=swe(),i=(function(){if(LIe)return TIe;LIe=1;var v=hA()(E3(),"Promise");return TIe=v})(),r=Hvt(),s=(function(){if(OIe)return MIe;OIe=1;var v=hA()(E3(),"WeakMap");return MIe=v})(),l=ST(),c=Tvt(),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",f=c(e),x=c(n),y=c(i),b=c(r),w=c(s),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=g||n&&C(new n)!=d||i&&C(i.resolve())!=u||r&&C(new r)!=p||s&&C(new s)!=h)&&(C=function(v){var S=l(v),k=S=="[object Object]"?v.constructor:void 0,$=k?c(k):"";if($)switch($){case f:return g;case x:return d;case y:return u;case b:return p;case w:return h}return S}),FIe=C}function Lcn(){if(zIe)return _ae;zIe=1;var e=cwe(),n=Pvt(),i=Dcn(),r=(function(){if(EIe)return Nae;EIe=1;var f=Vvt(),x=Object.prototype.hasOwnProperty;return Nae=function(y,b,w,C,v,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var F=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var _=y[E=$[I]],z=b[E];if(C)var T=k?C(z,_,E,b,y,S):C(_,z,E,y,b,S);if(!(T===void 0?_===z||v(_,z,w,C,S):T)){F=!1;break}N||(N=E=="constructor")}if(F&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(F=!1)}return S.delete(y),S.delete(b),F},Nae})(),s=rte(),l=Zu(),c=mwe(),d=zvt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return _ae=function(f,x,y,b,w,C){var v=l(f),S=l(x),k=v?p:s(f),$=S?p:s(x),j=(k=k==u?h:k)==h,I=($=$==u?h:$)==h,E=k==$;if(E&&c(f)){if(!c(x))return!1;v=!0,j=!1}if(E&&!j)return C||(C=new e),v||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var F=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(F,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},_ae}function ywe(){if(NIe)return Vae;NIe=1;var e=Lcn(),n=e7();return Vae=function i(r,s,l,c,d){return r===s||(r==null||s==null||!n(r)&&!n(s)?r!=r&&s!=s:e(r,s,l,c,i,d))},Vae}var Bcn=(function(){if(_Ie)return Hae;_Ie=1;var e=ywe();return Hae=function(n,i){return e(n,i)},Hae})();const ro=pr(Bcn);var VIe,HIe,Wae,UIe,Qae,WIe,Yae,QIe,Gae,YIe,qae,GIe;function Pcn(){if(WIe)return Qae;WIe=1;var e=(function(){if(UIe)return Wae;UIe=1;var i=/\s/;return Wae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},Wae})(),n=/^\s+/;return Qae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},Qae}function Hz(){if(QIe)return Yae;QIe=1;var e=ST(),n=e7();return Yae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},Yae}function Uvt(){if(YIe)return Gae;YIe=1;var e=Pcn(),n=W3(),i=Hz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return Gae=function(d){if(typeof d=="number")return d;if(i(d))return NaN;if(n(d)){var u=typeof d.valueOf=="function"?d.valueOf():d;d=n(u)?u+"":u}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=s.test(d);return p||l.test(d)?c(d.slice(2),p?2:8):r.test(d)?NaN:+d},Gae}function Wvt(){if(GIe)return qae;GIe=1;var e=W3(),n=(function(){if(HIe)return VIe;HIe=1;var l=E3();return VIe=function(){return l.Date.now()}})(),i=Uvt(),r=Math.max,s=Math.min;return qae=function(l,c,d){var u,p,h,g,f,x,y=0,b=!1,w=!1,C=!0;if(typeof l!="function")throw new TypeError("Expected a function");function v(I){var E=u,D=p;return u=p=void 0,y=I,g=l.apply(D,E)}function S(I){var E=I-x;return x===void 0||E>=c||E<0||w&&I-y>=h}function k(){var I=n();if(S(I))return $(I);f=setTimeout(k,(function(E){var D=c-(E-x);return w?s(D,h-(E-y)):D})(I))}function $(I){return f=void 0,C&&u?v(I):(u=p=void 0,g)}function j(){var I=n(),E=S(I);if(u=arguments,p=this,x=I,E){if(f===void 0)return(function(D){return y=D,f=setTimeout(k,c),b?v(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),v(x)}return f===void 0&&(f=setTimeout(k,c)),g}return c=i(c)||0,e(d)&&(b=!!d.leading,h=(w="maxWait"in d)?r(i(d.maxWait)||0,c):h,C="trailing"in d?!!d.trailing:C),j.cancel=function(){f!==void 0&&clearTimeout(f),y=0,u=x=p=f=void 0},j.flush=function(){return f===void 0?g:$(n())},j},qae}const Ls=pr(Wvt());var qIe,KIe;function Qvt(){return KIe?qIe:(KIe=1,qIe=function(){})}const bwe=pr(Qvt());var Kae,ZIe,JIe,XIe,Zae,eDe,Jae,tDe,Xae,nDe,ese,iDe,oDe,rDe,tse,aDe,nse,sDe,ise,lDe;function Yvt(){return ZIe||(ZIe=1,Kae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),Kae}function Gvt(){if(XIe)return JIe;XIe=1;var e=hA(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return JIe=n}function wwe(){if(eDe)return Zae;eDe=1;var e=Gvt();return Zae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},Zae}function Cwe(){if(tDe)return Jae;tDe=1;var e=wwe(),n=ite(),i=Object.prototype.hasOwnProperty;return Jae=function(r,s,l){var c=r[s];(!i.call(r,s)||!n(c,l)||l===void 0&&!(s in r))&&e(r,s,l)},Jae}function eO(){if(nDe)return Xae;nDe=1;var e=Cwe(),n=wwe();return Xae=function(i,r,s,l){var c=!s;s||(s={});for(var d=-1,u=r.length;++d<u;){var p=r[d],h=l?l(s[p],i[p],p,s,i):void 0;h===void 0&&(h=i[p]),c?n(s,p,h):e(s,p,h)}return s},Xae}function Mcn(){if(aDe)return tse;aDe=1;var e=W3(),n=xwe(),i=(rDe||(rDe=1,oDe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),oDe),r=Object.prototype.hasOwnProperty;return tse=function(s){if(!e(s))return i(s);var l=n(s),c=[];for(var d in s)d=="constructor"&&(l||!r.call(s,d))||c.push(d);return c},tse}function y5e(){if(sDe)return nse;sDe=1;var e=Nvt(),n=Mcn(),i=kT();return nse=function(r){return i(r)?e(r,!0):n(r)},nse}var cDe,dDe,uDe,ose,pDe,hDe,mDe,gDe,fDe,rse,xDe,ase,yDe,sse,bDe,lse,wDe,cse,CDe,dse,vDe,use,ADe,pse,SDe,hse,kDe,jDe,$De,mse,EDe,gse,IDe,DDe,TDe,fse,LDe,BDe,PDe,xse,MDe,yse,ODe,bse={exports:{}};function vwe(){if(mDe)return hDe;mDe=1;var e=_vt()(Object.getPrototypeOf,Object);return hDe=e}function qvt(){if(fDe)return gDe;fDe=1;var e=dwe(),n=vwe(),i=pwe(),r=Fvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return gDe=s}function Awe(){if(yDe)return ase;yDe=1;var e=Ovt(),n=qvt(),i=y5e();return ase=function(r){return e(r,i,n)},ase}function wse(){if(wDe)return lse;wDe=1;var e=Mvt();return lse=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},lse}function Ocn(){if(kDe)return hse;kDe=1;var e=wse(),n=(function(){if(CDe)return cse;CDe=1;var l=wse();return cse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},cse})(),i=(function(){if(vDe)return dse;vDe=1;var l=/\w*$/;return dse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},dse})(),r=(function(){if(ADe)return use;ADe=1;var l=wD(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return use=function(u){return d?Object(d.call(u)):{}},use})(),s=(function(){if(SDe)return pse;SDe=1;var l=wse();return pse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},pse})();return hse=function(l,c,d){var u=l.constructor;switch(c){case"[object ArrayBuffer]":return e(l);case"[object Boolean]":case"[object Date]":return new u(+l);case"[object DataView]":return n(l,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(l,d);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(l);case"[object RegExp]":return i(l);case"[object Symbol]":return r(l)}},hse}function Fcn(){if(EDe)return mse;EDe=1;var e=(function(){if($De)return jDe;$De=1;var r=W3(),s=Object.create,l=(function(){function c(){}return function(d){if(!r(d))return{};if(s)return s(d);c.prototype=d;var u=new c;return c.prototype=void 0,u}})();return jDe=l})(),n=vwe(),i=xwe();return mse=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},mse}function Rcn(){if(TDe)return DDe;TDe=1;var e=(function(){if(IDe)return gse;IDe=1;var l=rte(),c=e7();return gse=function(d){return c(d)&&l(d)=="[object Map]"},gse})(),n=ote(),i=fwe(),r=i&&i.isMap,s=r?n(r):e;return DDe=s}function zcn(){if(PDe)return BDe;PDe=1;var e=(function(){if(LDe)return fse;LDe=1;var l=rte(),c=e7();return fse=function(d){return c(d)&&l(d)=="[object Set]"},fse})(),n=ote(),i=fwe(),r=i&&i.isSet,s=r?n(r):e;return BDe=s}function Kvt(){if(MDe)return xse;MDe=1;var e=cwe(),n=Yvt(),i=Cwe(),r=(function(){if(iDe)return ese;iDe=1;var L=eO(),F=$R();return ese=function(N,_){return N&&L(_,F(_),N)},ese})(),s=(function(){if(lDe)return ise;lDe=1;var L=eO(),F=y5e();return ise=function(N,_){return N&&L(_,F(_),N)},ise})(),l=(cDe||(cDe=1,(function(L,F){var N=E3(),_=F&&!F.nodeType&&F,z=_&&L&&!L.nodeType&&L,T=z&&z.exports===_?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var V=O.length,W=M?M(V):new O.constructor(V);return O.copy(W),W}})(bse,bse.exports)),bse.exports),c=(uDe||(uDe=1,dDe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),dDe),d=(function(){if(pDe)return ose;pDe=1;var L=eO(),F=pwe();return ose=function(N,_){return L(N,F(N),_)},ose})(),u=(function(){if(xDe)return rse;xDe=1;var L=eO(),F=qvt();return rse=function(N,_){return L(N,F(N),_)},rse})(),p=Vvt(),h=Awe(),g=rte(),f=(function(){if(bDe)return sse;bDe=1;var L=Object.prototype.hasOwnProperty;return sse=function(F){var N=F.length,_=new F.constructor(N);return N&&typeof F[0]=="string"&&L.call(F,"index")&&(_.index=F.index,_.input=F.input),_},sse})(),x=Ocn(),y=Fcn(),b=Zu(),w=mwe(),C=Rcn(),v=W3(),S=zcn(),k=$R(),$=y5e(),j="[object Arguments]",I="[object Function]",E="[object Object]",D={};return D[j]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[E]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[I]=D["[object WeakMap]"]=!1,xse=function L(F,N,_,z,T,M){var O,H=1&N,V=2&N,W=4&N;if(_&&(O=T?_(F,z,T,M):_(F)),O!==void 0)return O;if(!v(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var Y=g(F),q=Y==I||Y=="[object GeneratorFunction]";if(w(F))return l(F,H);if(Y==E||Y==j||q&&!T){if(O=V||q?{}:y(F),!H)return V?u(F,s(O,F)):d(F,r(O,F))}else{if(!D[Y])return T?F:{};O=x(F,Y,H)}}M||(M=new e);var K=M.get(F);if(K)return K;M.set(F,O),S(F)?F.forEach((function(ee){O.add(L(ee,N,_,ee,F,M))})):C(F)&&F.forEach((function(ee,te){O.set(te,L(ee,N,_,te,F,M))}));var J=U?void 0:(W?V?h:p:V?$:k)(F);return n(J||F,(function(ee,te){J&&(ee=F[te=ee]),i(O,te,L(ee,N,_,te,F,M))})),O},xse}var Ncn=(function(){if(ODe)return yse;ODe=1;var e=Kvt();return yse=function(n){return e(n,5)},yse})();const ss=pr(Ncn);var Cse,FDe,vse,RDe,zDe,NDe,Ase,_De,VDe,HDe,Sse,UDe,kse,WDe,jse,QDe,$se,YDe,Ese,GDe,Ise,qDe,Dse,KDe;function Swe(){if(RDe)return vse;RDe=1;var e=Zu(),n=Hz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return vse=function(s,l){if(e(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!n(s))||r.test(s)||!i.test(s)||l!=null&&s in Object(l)},vse}function _cn(){if(_De)return Ase;_De=1;var e=(function(){if(NDe)return zDe;NDe=1;var n=lwe();function i(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError("Expected a function");var l=function(){var c=arguments,d=s?s.apply(this,c):c[0],u=l.cache;if(u.has(d))return u.get(d);var p=r.apply(this,c);return l.cache=u.set(d,p)||u,p};return l.cache=new(i.Cache||n),l}return i.Cache=n,zDe=i})();return Ase=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Ase}function vS(){return UDe||(UDe=1,Sse=function(e,n){for(var i=-1,r=e==null?0:e.length,s=Array(r);++i<r;)s[i]=n(e[i],i,e);return s}),Sse}function Zvt(){if(WDe)return kse;WDe=1;var e=wD(),n=vS(),i=Zu(),r=Hz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return kse=function c(d){if(typeof d=="string")return d;if(i(d))return n(d,c)+"";if(r(d))return l?l.call(d):"";var u=d+"";return u=="0"&&1/d==-1/0?"-0":u},kse}function Jvt(){if(QDe)return jse;QDe=1;var e=Zvt();return jse=function(n){return n==null?"":e(n)},jse}function CD(){if(YDe)return $se;YDe=1;var e=Zu(),n=Swe(),i=(function(){if(HDe)return VDe;HDe=1;var s=_cn(),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=s((function(u){var p=[];return u.charCodeAt(0)===46&&p.push(""),u.replace(l,(function(h,g,f,x){p.push(f?x.replace(c,"$1"):g||h)})),p}));return VDe=d})(),r=Jvt();return $se=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},$se}function jT(){if(GDe)return Ese;GDe=1;var e=Hz();return Ese=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Ese}function Xvt(){if(qDe)return Ise;qDe=1;var e=CD(),n=hwe(),i=Zu(),r=Vz(),s=gwe(),l=jT();return Ise=function(c,d,u){for(var p=-1,h=(d=e(d,c)).length,g=!1;++p<h;){var f=l(d[p]);if(!(g=c!=null&&u(c,f)))break;c=c[f]}return g||++p!=h?g:!!(h=c==null?0:c.length)&&s(h)&&r(f,h)&&(i(c)||n(c))},Ise}var Vcn=(function(){if(KDe)return Dse;KDe=1;var e=(function(){if(FDe)return Cse;FDe=1;var i=Object.prototype.hasOwnProperty;return Cse=function(r,s){return r!=null&&i.call(r,s)},Cse})(),n=Xvt();return Dse=function(i,r){return i!=null&&n(i,r,e)},Dse})();const hn=pr(Vcn);var ZDe,JDe,Tse,XDe,Lse,eTe,Bse,tTe,nTe,iTe,oTe,rTe,Pse,aTe,sTe,lTe,Mse,cTe,dTe,uTe;function $T(){return XDe||(XDe=1,Tse=function(e){return e}),Tse}function eAt(){return eTe||(eTe=1,Lse=function(e,n,i){switch(i.length){case 0:return e.call(n);case 1:return e.call(n,i[0]);case 2:return e.call(n,i[0],i[1]);case 3:return e.call(n,i[0],i[1],i[2])}return e.apply(n,i)}),Lse}function tAt(){if(tTe)return Bse;tTe=1;var e=eAt(),n=Math.max;return Bse=function(i,r,s){return r=n(r===void 0?i.length-1:r,0),function(){for(var l=arguments,c=-1,d=n(l.length-r,0),u=Array(d);++c<d;)u[c]=l[r+c];c=-1;for(var p=Array(r+1);++c<r;)p[c]=l[c];return p[r]=s(u),e(i,this,p)}},Bse}function Hcn(){if(rTe)return oTe;rTe=1;var e=(iTe||(iTe=1,nTe=function(s){return function(){return s}}),nTe),n=Gvt(),i=$T(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return oTe=r}function nAt(){if(lTe)return sTe;lTe=1;var e=Hcn(),n=(function(){if(aTe)return Pse;aTe=1;var r=Date.now;return Pse=function(s){var l=0,c=0;return function(){var d=r(),u=16-(d-c);if(c=d,u>0){if(++l>=800)return arguments[0]}else l=0;return s.apply(void 0,arguments)}},Pse})(),i=n(e);return sTe=i}function iAt(){if(cTe)return Mse;cTe=1;var e=$T(),n=tAt(),i=nAt();return Mse=function(r,s){return i(n(r,s,e),r+"")},Mse}var Ucn=(function(){if(uTe)return dTe;uTe=1;var e=(JDe||(JDe=1,ZDe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),ZDe),n=iAt()((function(i,r){return e(i,1,r)}));return dTe=n})();const Ui=pr(Ucn);var Ose,pTe,Fse,hTe;function Uz(){if(pTe)return Ose;pTe=1;var e=CD(),n=jT();return Ose=function(i,r){for(var s=0,l=(r=e(r,i)).length;i!=null&&s<l;)i=i[n(r[s++])];return s&&s==l?i:void 0},Ose}function oAt(){if(hTe)return Fse;hTe=1;var e=Uz();return Fse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Fse}const M3=pr(oAt());var Rse,mTe,zse,gTe,Nse,fTe,_se,xTe;function rAt(){if(mTe)return Rse;mTe=1;var e=cwe(),n=ywe();return Rse=function(i,r,s,l){var c=s.length,d=c,u=!l;if(i==null)return!d;for(i=Object(i);c--;){var p=s[c];if(u&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++c<d;){var h=(p=s[c])[0],g=i[h],f=p[1];if(u&&p[2]){if(g===void 0&&!(h in i))return!1}else{var x=new e;if(l)var y=l(g,f,h,i,r,x);if(!(y===void 0?n(f,g,3,l,x):y))return!1}}return!0},Rse}function aAt(){if(gTe)return zse;gTe=1;var e=W3();return zse=function(n){return n==n&&!e(n)},zse}function sAt(){if(fTe)return Nse;fTe=1;var e=aAt(),n=$R();return Nse=function(i){for(var r=n(i),s=r.length;s--;){var l=r[s],c=i[l];r[s]=[l,c,e(c)]}return r},Nse}var Wcn=(function(){if(xTe)return _se;xTe=1;var e=rAt(),n=sAt();return _se=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},_se})();const Qcn=pr(Wcn);var yTe,bTe,Ycn=(bTe||(bTe=1,yTe=function(e){return e==null}),yTe);const wTe=pr(Ycn);var CTe,vTe,Vse,ATe,Gcn=(function(){if(ATe)return Vse;ATe=1;var e=(vTe||(vTe=1,CTe=function(i,r){for(var s,l=-1,c=i.length;++l<c;){var d=r(i[l]);d!==void 0&&(s=s===void 0?d:s+d)}return s}),CTe),n=$T();return Vse=function(i){return i&&i.length?e(i,n):0},Vse})();const qcn=pr(Gcn);var Hse,STe,Use,kTe,Wse,jTe,Qse,$Te,Yse,ETe;function kwe(){return STe||(STe=1,Hse=function(e,n,i){var r=-1,s=e.length;n<0&&(n=-n>s?0:s+n),(i=i>s?s:i)<0&&(i+=s),s=n>i?0:i-n>>>0,n>>>=0;for(var l=Array(s);++r<s;)l[r]=e[r+n];return l}),Hse}function lAt(){if(kTe)return Use;kTe=1;var e=ite(),n=kT(),i=Vz(),r=W3();return Use=function(s,l,c){if(!r(c))return!1;var d=typeof l;return!!(d=="number"?n(c)&&i(l,c.length):d=="string"&&l in c)&&e(c[l],s)},Use}function ate(){if($Te)return Qse;$Te=1;var e=(function(){if(jTe)return Wse;jTe=1;var n=Uvt(),i=1/0;return Wse=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},Wse})();return Qse=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},Qse}var Kcn=(function(){if(ETe)return Yse;ETe=1;var e=kwe(),n=lAt(),i=ate(),r=Math.ceil,s=Math.max;return Yse=function(l,c,d){c=(d?n(l,c,d):c===void 0)?1:s(i(c),0);var u=l==null?0:l.length;if(!u||c<1)return[];for(var p=0,h=0,g=Array(r(u/c));p<u;)g[h++]=e(l,p,p+=c);return g},Yse})();const Zcn=pr(Kcn);var ITe,DTe,Jcn=(DTe||(DTe=1,ITe=function(e){for(var n=-1,i=e==null?0:e.length,r=0,s=[];++n<i;){var l=e[n];l&&(s[r++]=l)}return s}),ITe);const Xcn=pr(Jcn);var TTe,LTe,BTe,PTe,Gse,MTe,qse,OTe,FTe,RTe,Kse,zTe,Zse,NTe,_Te,VTe;function edn(){if(PTe)return BTe;PTe=1;var e=(LTe||(LTe=1,TTe=function(i){return function(r,s,l){for(var c=-1,d=Object(r),u=l(r),p=u.length;p--;){var h=u[i?p:++c];if(s(d[h],h,d)===!1)break}return r}}),TTe),n=e();return BTe=n}function cAt(){if(MTe)return Gse;MTe=1;var e=edn(),n=$R();return Gse=function(i,r){return i&&e(i,r,n)},Gse}function Wz(){if(RTe)return FTe;RTe=1;var e=cAt(),n=(function(){if(OTe)return qse;OTe=1;var r=kT();return qse=function(s,l){return function(c,d){if(c==null)return c;if(!r(c))return s(c,d);for(var u=c.length,p=l?u:-1,h=Object(c);(l?p--:++p<u)&&d(h[p],p,h)!==!1;);return c}},qse})(),i=n(e);return FTe=i}function dAt(){if(zTe)return Kse;zTe=1;var e=$T();return Kse=function(n){return typeof n=="function"?n:e},Kse}var tdn=(VTe||(VTe=1,_Te=(function(){if(NTe)return Zse;NTe=1;var e=Yvt(),n=Wz(),i=dAt(),r=Zu();return Zse=function(s,l){return(r(s)?e:n)(s,i(l))},Zse})()),_Te);const ndn=pr(tdn);var HTe,UTe,Jse,WTe,Xse,QTe,YTe,GTe,ele,qTe,tle,KTe,nle,ZTe,ile,JTe,ole,XTe,rle,eLe,tLe,nLe,ale,iLe;function oLe(){return WTe||(WTe=1,Jse=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),Jse}function idn(){if(qTe)return ele;qTe=1;var e=(GTe||(GTe=1,YTe=function(i,r){return i!=null&&r in Object(i)}),YTe),n=Xvt();return ele=function(i,r){return i!=null&&n(i,r,e)},ele}function jwe(){return ZTe||(ZTe=1,nle=function(e){return function(n){return n?.[e]}}),nle}function odn(){if(XTe)return ole;XTe=1;var e=jwe(),n=(function(){if(JTe)return ile;JTe=1;var s=Uz();return ile=function(l){return function(c){return s(c,l)}},ile})(),i=Swe(),r=jT();return ole=function(s){return i(s)?e(r(s)):n(s)},ole}function a8(){if(eLe)return rle;eLe=1;var e=(function(){if(QTe)return Xse;QTe=1;var l=rAt(),c=sAt(),d=oLe();return Xse=function(u){var p=c(u);return p.length==1&&p[0][2]?d(p[0][0],p[0][1]):function(h){return h===u||l(h,u,p)}},Xse})(),n=(function(){if(KTe)return tle;KTe=1;var l=ywe(),c=oAt(),d=idn(),u=Swe(),p=aAt(),h=oLe(),g=jT();return tle=function(f,x){return u(f)&&p(x)?h(g(f),x):function(y){var b=c(y,f);return b===void 0&&b===x?d(y,f):l(x,b,3)}},tle})(),i=$T(),r=Zu(),s=odn();return rle=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},rle}var rdn=(function(){if(iLe)return ale;iLe=1;var e=(UTe||(UTe=1,HTe=function(l,c,d,u){var p=-1,h=l==null?0:l.length;for(u&&h&&(d=l[++p]);++p<h;)d=c(d,l[p],p,l);return d}),HTe),n=Wz(),i=a8(),r=(nLe||(nLe=1,tLe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),tLe),s=Zu();return ale=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},ale})();const b5e=pr(rdn);var sle,rLe,lle,aLe,cle,sLe,lLe,cLe;function adn(){if(aLe)return lle;aLe=1;var e=uwe(),n=vS(),i=jwe(),r=Rvt(),s=(function(){if(rLe)return sle;rLe=1;var c=kT(),d=e7();return sle=function(u){return d(u)&&c(u)},sle})(),l=Math.max;return lle=function(c){if(!c||!c.length)return[];var d=0;return c=e(c,(function(u){if(s(u))return d=l(u.length,d),!0})),r(d,(function(u){return n(c,i(u))}))},lle}var sdn=(function(){if(cLe)return lLe;cLe=1;var e=iAt(),n=(function(){if(sLe)return cle;sLe=1;var r=eAt(),s=vS(),l=adn();return cle=function(c,d){if(!c||!c.length)return[];var u=l(c);return d==null?u:s(u,(function(p){return r(d,void 0,p)}))},cle})(),i=e((function(r){var s=r.length,l=s>1?r[s-1]:void 0;return l=typeof l=="function"?(r.pop(),l):void 0,n(r,l)}));return lLe=i})();const ldn=pr(sdn);var dle,dLe,cdn=(function(){if(dLe)return dle;dLe=1;var e=cAt(),n=dAt();return dle=function(i,r){return i&&e(i,n(r))},dle})();const uAt=pr(cdn);var ule,uLe,ple,pLe;function pAt(){if(uLe)return ule;uLe=1;var e=Wz(),n=kT();return ule=function(i,r){var s=-1,l=n(i)?Array(i.length):[];return e(i,(function(c,d,u){l[++s]=r(c,d,u)})),l},ule}function hAt(){if(pLe)return ple;pLe=1;var e=vS(),n=a8(),i=pAt(),r=Zu();return ple=function(s,l){return(r(s)?e:i)(s,n(l,3))},ple}const ste=pr(hAt());var hle,hLe,mle,mLe,gle,gLe;function ddn(){if(mLe)return mle;mLe=1;var e=Uz(),n=(function(){if(hLe)return hle;hLe=1;var r=Cwe(),s=CD(),l=Vz(),c=W3(),d=jT();return hle=function(u,p,h,g){if(!c(u))return u;for(var f=-1,x=(p=s(p,u)).length,y=x-1,b=u;b!=null&&++f<x;){var w=d(p[f]),C=h;if(w==="__proto__"||w==="constructor"||w==="prototype")return u;if(f!=y){var v=b[w];(C=g?g(v,w,b):void 0)===void 0&&(C=c(v)?v:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},hle})(),i=CD();return mle=function(r,s,l){for(var c=-1,d=s.length,u={};++c<d;){var p=s[c],h=e(r,p);l(h,p)&&n(u,i(p,r),h)}return u},mle}var udn=(function(){if(gLe)return gle;gLe=1;var e=vS(),n=a8(),i=ddn(),r=Awe();return gle=function(s,l){if(s==null)return{};var c=e(r(s),(function(d){return[d]}));return l=n(l),i(s,c,(function(d,u){return l(d,u[0])}))},gle})();const PK=pr(udn);var fle,fLe,pdn=(function(){if(fLe)return fle;fLe=1;var e=Wvt(),n=W3();return fle=function(i,r,s){var l=!0,c=!0;if(typeof i!="function")throw new TypeError("Expected a function");return n(s)&&(l="leading"in s?!!s.leading:l,c="trailing"in s?!!s.trailing:c),e(i,r,{leading:l,maxWait:r,trailing:c})},fle})();const hdn=pr(pdn);var xle,xLe,yle,yLe,mdn=(function(){if(yLe)return yle;yLe=1;var e=uwe(),n=(function(){if(xLe)return xle;xLe=1;var s=Wz();return xle=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},xle})(),i=a8(),r=Zu();return yle=function(s,l){return(r(s)?e:n)(s,i(l,3))},yle})();const gdn=pr(mdn);var bLe,wLe,ble,CLe,wle,vLe,ALe,SLe;function fdn(){if(vLe)return wle;vLe=1;var e=(wLe||(wLe=1,bLe=function(s,l,c,d){for(var u=-1,p=s==null?0:s.length;++u<p;){var h=s[u];l(d,h,c(h),s)}return d}),bLe),n=(function(){if(CLe)return ble;CLe=1;var s=Wz();return ble=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},ble})(),i=a8(),r=Zu();return wle=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},wle}var xdn=(function(){if(SLe)return ALe;SLe=1;var e=wwe(),n=fdn(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return ALe=r})();const ydn=pr(xdn);var kLe,jLe,Cle,$Le,vle,ELe,Ale,ILe,Sle,DLe;function bdn(){if(ELe)return vle;ELe=1;var e=(function(){if($Le)return Cle;$Le=1;var n=Hz();return Cle=function(i,r){if(i!==r){var s=i!==void 0,l=i===null,c=i==i,d=n(i),u=r!==void 0,p=r===null,h=r==r,g=n(r);if(!p&&!g&&!d&&i>r||d&&u&&h&&!p&&!g||l&&u&&h||!s&&h||!c)return 1;if(!l&&!d&&!g&&i<r||g&&s&&c&&!l&&!d||p&&s&&c||!u&&c||!h)return-1}return 0},Cle})();return vle=function(n,i,r){for(var s=-1,l=n.criteria,c=i.criteria,d=l.length,u=r.length;++s<d;){var p=e(l[s],c[s]);if(p)return s>=u?p:p*(r[s]=="desc"?-1:1)}return n.index-i.index},vle}function wdn(){if(ILe)return Ale;ILe=1;var e=vS(),n=Uz(),i=a8(),r=pAt(),s=(jLe||(jLe=1,kLe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),kLe),l=ote(),c=bdn(),d=$T(),u=Zu();return Ale=function(p,h,g){h=h.length?e(h,(function(y){return u(y)?function(b){return n(b,y.length===1?y[0]:y)}:y})):[d];var f=-1;h=e(h,l(i));var x=r(p,(function(y,b,w){var C=e(h,(function(v){return v(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Ale}var Cdn=(function(){if(DLe)return Sle;DLe=1;var e=wdn(),n=Zu();return Sle=function(i,r,s,l){return i==null?[]:(n(r)||(r=r==null?[]:[r]),n(s=l?void 0:s)||(s=s==null?[]:[s]),e(i,r,s))},Sle})();const lte=pr(Cdn);var TLe,LLe,kle,BLe,jle,PLe,$le,MLe;function vdn(){if(BLe)return kle;BLe=1;var e=(LLe||(LLe=1,TLe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),TLe),n=ate();return kle=function(i){return i?e(n(i),0,4294967295):0},kle}var Adn=(function(){if(MLe)return $le;MLe=1;var e=(function(){if(PLe)return jle;PLe=1;var i=ate(),r=vdn();return jle=function(s,l,c,d){var u=s.length;for((c=i(c))<0&&(c=-c>u?0:u+c),(d=d===void 0||d>u?u:i(d))<0&&(d+=u),d=c>d?0:r(d);c<d;)s[c++]=l;return s},jle})(),n=lAt();return $le=function(i,r,s,l){var c=i==null?0:i.length;return c?(s&&typeof s!="number"&&n(i,r,s)&&(s=0,l=c),e(i,r,s,l)):[]},$le})();const mAt=pr(Adn);var OLe,FLe,Ele,RLe,Ile,zLe,Dle,NLe,Tle,_Le;function gAt(){if(zLe)return Ile;zLe=1;var e=CD(),n=(FLe||(FLe=1,OLe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),OLe),i=(function(){if(RLe)return Ele;RLe=1;var l=Uz(),c=kwe();return Ele=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Ele})(),r=jT(),s=Object.prototype.hasOwnProperty;return Ile=function(l,c){var d=-1,u=(c=e(c,l)).length;if(!u)return!0;for(;++d<u;){var p=r(c[d]);if(p==="__proto__"&&!s.call(l,"__proto__")||(p==="constructor"||p==="prototype")&&d<u-1)return!1}var h=i(l,c);return h==null||delete h[r(n(c))]},Ile}var Sdn=(function(){if(_Le)return Tle;_Le=1;var e=a8(),n=(function(){if(NLe)return Dle;NLe=1;var i=gAt(),r=Vz(),s=Array.prototype.splice;return Dle=function(l,c){for(var d=l?c.length:0,u=d-1;d--;){var p=c[d];if(d==u||p!==h){var h=p;r(p)?s.call(l,p,1):i(l,p)}}return l},Dle})();return Tle=function(i,r){var s=[];if(!i||!i.length)return s;var l=-1,c=[],d=i.length;for(r=e(r,3);++l<d;){var u=i[l];r(u,l,i)&&(s.push(u),c.push(l))}return n(i,c),s},Tle})();const MK=pr(Sdn);var Lle,VLe,Ble,HLe,Ple,ULe,Mle,WLe,Ole,QLe,Fle,YLe,GLe,qLe;function kdn(){if(HLe)return Ble;HLe=1;var e=(function(){if(VLe)return Lle;VLe=1;var n=ST(),i=vwe(),r=e7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Lle=function(p){if(!r(p)||n(p)!="[object Object]")return!1;var h=i(p);if(h===null)return!0;var g=d.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&c.call(g)==u},Lle})();return Ble=function(n){return e(n)?void 0:n},Ble}function fAt(){if(WLe)return Mle;WLe=1;var e=dwe(),n=(function(){if(ULe)return Ple;ULe=1;var i=wD(),r=hwe(),s=Zu(),l=i?i.isConcatSpreadable:void 0;return Ple=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Ple})();return Mle=function i(r,s,l,c,d){var u=-1,p=r.length;for(l||(l=n),d||(d=[]);++u<p;){var h=r[u];s>0&&l(h)?s>1?i(h,s-1,l,c,d):e(d,h):c||(d[d.length]=h)}return d},Mle}function xAt(){if(QLe)return Ole;QLe=1;var e=fAt();return Ole=function(n){return n!=null&&n.length?e(n,1):[]},Ole}var jdn=(function(){if(qLe)return GLe;qLe=1;var e=vS(),n=Kvt(),i=gAt(),r=CD(),s=eO(),l=kdn(),c=(function(){if(YLe)return Fle;YLe=1;var p=xAt(),h=tAt(),g=nAt();return Fle=function(f){return g(h(f,void 0,p),f+"")},Fle})(),d=Awe(),u=c((function(p,h){var g={};if(p==null)return g;var f=!1;h=e(h,(function(y){return y=r(y,p),f||(f=y.length>1),y})),s(p,d(p),g),f&&(g=n(g,7,l));for(var x=h.length;x--;)i(g,h[x]);return g}));return GLe=u})();const $we=pr(jdn);var Rle,KLe,$dn=(function(){if(KLe)return Rle;KLe=1;var e=fAt(),n=hAt();return Rle=function(i,r){return e(n(i,r),1)},Rle})();const yAt=pr($dn);var ZLe,JLe,XLe,eBe,tBe,nBe,zle,iBe,Nle,oBe,rBe,aBe,sBe,lBe,_le,cBe,Vle,dBe;function Edn(){if(iBe)return zle;iBe=1;var e=(JLe||(JLe=1,ZLe=function(r,s,l,c){for(var d=r.length,u=l+(c?1:-1);c?u--:++u<d;)if(s(r[u],u,r))return u;return-1}),ZLe),n=(eBe||(eBe=1,XLe=function(r){return r!=r}),XLe),i=(nBe||(nBe=1,tBe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),tBe);return zle=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},zle}function bAt(){if(cBe)return _le;cBe=1;var e=Lvt(),n=(function(){if(oBe)return Nle;oBe=1;var c=Edn();return Nle=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},Nle})(),i=(aBe||(aBe=1,rBe=function(c,d,u){for(var p=-1,h=c==null?0:c.length;++p<h;)if(u(d,c[p]))return!0;return!1}),rBe),r=Bvt(),s=(function(){if(lBe)return sBe;lBe=1;var c=Hvt(),d=Qvt(),u=x5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return sBe=p})(),l=x5e();return _le=function(c,d,u){var p=-1,h=n,g=c.length,f=!0,x=[],y=x;if(u)f=!1,h=i;else if(g>=200){var b=d?null:s(c);if(b)return l(b);f=!1,h=r,y=new e}else y=d?[]:x;e:for(;++p<g;){var w=c[p],C=d?d(w):w;if(w=u||w!==0?w:0,f&&C==C){for(var v=y.length;v--;)if(y[v]===C)continue e;d&&y.push(C),x.push(w)}else h(y,C,u)||(y!==x&&y.push(C),x.push(w))}return x},_le}var Idn=(function(){if(dBe)return Vle;dBe=1;var e=a8(),n=bAt();return Vle=function(i,r){return i&&i.length?n(i,e(r,2)):[]},Vle})();const Ddn=pr(Idn),Tdn=pr(xAt());var Hle,uBe,Ldn=(function(){if(uBe)return Hle;uBe=1;var e=bAt();return Hle=function(n){return n&&n.length?e(n):[]},Hle})();const Bdn=pr(Ldn);var Ule,pBe,Wle,hBe,Qle,mBe,gBe,fBe,Yle,xBe,Gle,yBe,bBe,wBe,qle,CBe,Kle,vBe,Zle,ABe,SBe,kBe;function Ewe(){if(mBe)return Qle;mBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Qle=function(n){return e.test(n)},Qle}function wAt(){if(yBe)return Gle;yBe=1;var e=(function(){if(fBe)return gBe;fBe=1;var r=jwe()("length");return gBe=r})(),n=Ewe(),i=(function(){if(xBe)return Yle;xBe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return Yle=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},Yle})();return Gle=function(r){return n(r)?i(r):e(r)},Gle}function Pdn(){if(vBe)return Kle;vBe=1;var e=(wBe||(wBe=1,bBe=function(r){return r.split("")}),bBe),n=Ewe(),i=(function(){if(CBe)return qle;CBe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return qle=function(b){return b.match(y)||[]},qle})();return Kle=function(r){return n(r)?i(r):e(r)},Kle}function Mdn(){if(ABe)return Zle;ABe=1;var e=(function(){if(pBe)return Ule;pBe=1;var d=Math.floor;return Ule=function(u,p){var h="";if(!u||p<1||p>9007199254740991)return h;do p%2&&(h+=u),(p=d(p/2))&&(u+=u);while(p);return h},Ule})(),n=Zvt(),i=(function(){if(hBe)return Wle;hBe=1;var d=kwe();return Wle=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},Wle})(),r=Ewe(),s=wAt(),l=Pdn(),c=Math.ceil;return Zle=function(d,u){var p=(u=u===void 0?" ":n(u)).length;if(p<2)return p?e(u,d):u;var h=e(u,c(d/s(u)));return r(u)?i(l(h),0,d).join(""):h.slice(0,d)},Zle}(function(){if(kBe)return SBe;kBe=1;var e=Mdn(),n=wAt(),i=ate(),r=Jvt();SBe=function(s,l,c){s=r(s);var d=(l=i(l))?n(s):0;return l&&d<l?e(l-d,c)+s:s}})();var ER=e=>e.type==="checkbox",HE=e=>e instanceof Date,kp=e=>e==null;const CAt=e=>typeof e=="object";var Sd=e=>!kp(e)&&!Array.isArray(e)&&CAt(e)&&!HE(e),vAt=e=>Sd(e)&&e.target?ER(e.target)?e.target.checked:e.target.value:e,AAt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),Iwe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Rh(e){let n;const i=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else{if(Iwe&&(e instanceof Blob||e instanceof FileList)||!i&&!Sd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return Sd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Rh(e[r]);else n=e}return n}var vD=e=>Array.isArray(e)?e.filter(Boolean):[],ul=e=>e===void 0,ji=(e,n,i)=>{if(!n||!Sd(e))return i;const r=vD(n.split(/[,[\].]+?/)).reduce(((s,l)=>kp(s)?s:s[l]),e);return ul(r)||r===e?ul(e[n])?i:e[n]:r};const SAt="blur",Odn="focusout",Fdn="change",Rdn="onBlur",kAt="onChange",jAt="onSubmit",zdn="onTouched",AD="all",Ndn="max",_dn="min",Vdn="maxLength",Hdn="minLength",jBe="pattern",$Be="required",Udn="validate",$At=B.createContext(null),At=()=>B.useContext($At),Dn=e=>{const{children:n,...i}=e;return B.createElement($At.Provider,{value:i},n)};var EAt=(e,n,i,r=!0)=>{const s={defaultValues:n._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const c=l;return n._proxyFormState[c]!==AD&&(n._proxyFormState[c]=!r||AD),i&&(i[c]=!0),e[c]}});return s},zm=e=>Sd(e)&&!Object.keys(e).length,IAt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return zm(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||AD)))},qm=e=>Array.isArray(e)?e:[e],DAt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||qm(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function cte(e){const n=B.useRef(e);n.current=e,B.useEffect((()=>{const i=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var gx=e=>typeof e=="string",TAt=(e,n,i,r,s)=>gx(e)?(r&&n.watch.add(e),ji(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),ji(i,l)))):(r&&(n.watchAll=!0),i);function Ja(e){const n=At(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,cte({disabled:l,subject:i._subjects.values,next:h=>{DAt(d.current,h.name,c)&&p(Rh(TAt(d.current,i._names,h.values||i._formValues,!1,s)))}});const[u,p]=B.useState(i._getWatch(r,s));return B.useEffect((()=>i._removeUnmounted())),u}var Dwe=e=>/^\w*$/.test(e),LAt=e=>vD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Ps(e,n,i){let r=-1;const s=Dwe(n)?[n]:LAt(n),l=s.length,c=l-1;for(;++r<l;){const d=s[r];let u=i;if(r!==c){const p=e[d];u=Sd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Wdn(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=AAt(r._names.array,i),c=Ja({control:r,name:i,defaultValue:ji(r._formValues,i,ji(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=At(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),v=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,cte({disabled:f,next:k=>C.current&&DAt(S.current,k.name,y)&&IAt(k,v.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,v.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),EAt(b,g,v.current,!1)})({control:r,name:i}),u=B.useRef(r.register(i,{...e.rules,value:c}));return B.useEffect((()=>{const p=r._options.shouldUnregister||s,h=(g,f)=>{const x=ji(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Rh(ji(r._options.defaultValues,i));Ps(r._defaultValues,i,g),ul(ji(r._formValues,i))&&Ps(r._formValues,i,g)}return()=>{(l?p&&!r._state.action:p)?r.unregister(i):h(i,!1)}}),[i,r,l,s]),{field:{name:i,value:c,onChange:B.useCallback((p=>u.current.onChange({target:{value:vAt(p),name:i},type:Fdn})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:ji(r._formValues,i),name:i},type:SAt})),[i,r]),ref:p=>{const h=ji(r._fields,i);h&&p&&(h._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ji(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!ji(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!ji(d.touchedFields,i)},error:{enumerable:!0,get:()=>ji(d.errors,i)}})}}const zi=e=>e.render(Wdn(e));var Qdn=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const OK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=ji(e,r);if(s){const{_f:l,...c}=s;if(l&&n(l.name)){if(l.ref.focus){l.ref.focus();break}if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else Sd(c)&&OK(c,n)}}};var _7=()=>{const e=typeof performance>"u"?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{const i=(16*Math.random()+e)%16|0;return(n=="x"?i:3&i|8).toString(16)}))},Jle=(e,n,i={})=>i.shouldFocus||ul(i.shouldFocus)?i.focusName||`${e}.${ul(i.focusIndex)?n:i.focusIndex}.`:"",w5e=e=>({isOnSubmit:!e||e===jAt,isOnBlur:e===Rdn,isOnChange:e===kAt,isOnAll:e===AD,isOnTouch:e===zdn}),C5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),BAt=(e,n,i)=>{const r=vD(ji(e,i));return Ps(r,"root",n[i]),Ps(e,i,r),e},DI=e=>typeof e=="boolean",Twe=e=>e.type==="file",Jb=e=>typeof e=="function",FK=e=>{if(!Iwe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},JG=e=>gx(e),Lwe=e=>e.type==="radio",RK=e=>e instanceof RegExp;const EBe={value:!1,isValid:!1},IBe={value:!0,isValid:!0};var PAt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter((i=>i&&i.checked&&!i.disabled)).map((i=>i.value));return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ul(e[0].attributes.value)?ul(e[0].value)||e[0].value===""?IBe:{value:e[0].value,isValid:!0}:IBe:EBe}return EBe};const DBe={isValid:!1,value:null};var MAt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),DBe):DBe;function TBe(e,n,i="validate"){if(JG(e)||Array.isArray(e)&&e.every(JG)||DI(e)&&!e)return{type:i,message:JG(e)?e:"",ref:n}}var wk=e=>Sd(e)&&!RK(e)?e:{value:e,message:""},v5e=async(e,n,i,r,s)=>{const{ref:l,refs:c,required:d,maxLength:u,minLength:p,min:h,max:g,pattern:f,validate:x,name:y,valueAsNumber:b,mount:w,disabled:C}=e._f,v=ji(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(DI(N)?"":N||""),S.reportValidity())},$={},j=Lwe(l),I=ER(l),E=j||I,D=(b||Twe(l))&&ul(l.value)&&ul(v)||FK(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=Qdn.bind(null,y,i,$),F=(N,_,z,T=Vdn,M=Hdn)=>{const O=N?_:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(v)||!v.length:d&&(!E&&(D||kp(v))||DI(v)&&!v||I&&!PAt(c).isValid||j&&!MAt(c).isValid)){const{value:N,message:_}=JG(d)?{value:!!d,message:d}:wk(d);if(N&&($[y]={type:$Be,message:_,ref:S,...L($Be,_)},!i))return k(_),$}if(!(D||kp(h)&&kp(g))){let N,_;const z=wk(g),T=wk(h);if(kp(v)||isNaN(v)){const M=l.valueAsDate||new Date(v),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";gx(z.value)&&v&&(N=H?O(v)>O(z.value):V?v>z.value:M>new Date(z.value)),gx(T.value)&&v&&(_=H?O(v)<O(T.value):V?v<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||v&&+v;kp(z.value)||(N=M>z.value),kp(T.value)||(_=M<T.value)}if((N||_)&&(F(!!N,z.message,T.message,Ndn,_dn),!i))return k($[y].message),$}if((u||p)&&!D&&(gx(v)||s&&Array.isArray(v))){const N=wk(u),_=wk(p),z=!kp(N.value)&&v.length>+N.value,T=!kp(_.value)&&v.length<+_.value;if((z||T)&&(F(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&gx(v)){const{value:N,message:_}=wk(f);if(RK(N)&&!v.match(N)&&($[y]={type:jBe,message:_,ref:l,...L(jBe,_)},!i))return k(_),$}if(x){if(Jb(x)){const N=TBe(await x(v,n),S);if(N&&($[y]={...N,...L(Udn,N.message)},!i))return k(N.message),$}else if(Sd(x)){let N={};for(const _ in x){if(!zm(N)&&!i)break;const z=TBe(await x[_](v,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!zm(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function Xle(e,n){return[...e,...qm(n)]}var ece=e=>Array.isArray(e)?e.map((()=>{})):void 0;function tce(e,n,i){return[...e.slice(0,n),...qm(i),...e.slice(n)]}var nce=(e,n,i)=>Array.isArray(e)?(ul(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function ice(e,n){return[...qm(n),...qm(e)]}var oce=(e,n)=>ul(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return vD(l).length?l:[]})(e,qm(n).sort(((i,r)=>i-r))),rce=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Nd(e,n){const i=Array.isArray(n)?n:Dwe(n)?[n]:LAt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=ul(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(Sd(r)&&zm(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!ul(c[d]))return!1;return!0})(r))&&Nd(e,i.slice(0,-1)),e}var LBe=(e,n,i)=>(e[n]=i,e);function Sl(e){const n=At(),{control:i=n.control,name:r,keyName:s="id",shouldUnregister:l}=e,[c,d]=B.useState(i._getFieldArray(r)),u=B.useRef(i._getFieldArray(r).map(_7)),p=B.useRef(c),h=B.useRef(r),g=B.useRef(!1);h.current=r,p.current=c,i._names.array.add(r),e.rules&&i.register(r,e.rules),cte({next:({values:x,name:y})=>{if(y===h.current||!y){const b=ji(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(_7))}},subject:i._subjects.array});const f=B.useCallback((x=>{g.current=!0,i._updateFieldArray(r,x)}),[i,r]);return B.useEffect((()=>{if(i._state.action=!1,C5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!w5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=ji(x.errors,r),b=ji(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Ps(i._formState.errors,r,y):Nd(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=ji(i._fields,r);x&&x._f&&v5e(x,i._formValues,i._options.criteriaMode===AD,i._options.shouldUseNativeValidation,!0).then((y=>!zm(y)&&i._subjects.state.next({errors:BAt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&OK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!ji(i._formValues,r)&&i._updateFieldArray(r),()=>{(i._options.shouldUnregister||l)&&i.unregister(r)})),[r,i,s,l]),{swap:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);rce(b,x,y),rce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,rce,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);nce(b,x,y),nce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,nce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=qm(Rh(x)),w=ice(i._getFieldArray(r),b);i._names.focus=Jle(r,0,y),u.current=ice(u.current,b.map(_7)),f(w),d(w),i._updateFieldArray(r,w,ice,{argA:ece(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=qm(Rh(x)),w=Xle(i._getFieldArray(r),b);i._names.focus=Jle(r,w.length-1,y),u.current=Xle(u.current,b.map(_7)),f(w),d(w),i._updateFieldArray(r,w,Xle,{argA:ece(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=oce(i._getFieldArray(r),x);u.current=oce(u.current,x),f(y),d(y),i._updateFieldArray(r,y,oce,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=qm(Rh(y)),C=tce(i._getFieldArray(r),x,w);i._names.focus=Jle(r,x,b),u.current=tce(u.current,x,w.map(_7)),f(C),d(C),i._updateFieldArray(r,C,tce,{argA:x,argB:ece(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Rh(y),w=LBe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:_7())),f(w),d([...w]),i._updateFieldArray(r,w,LBe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=qm(Rh(x));u.current=y.map(_7),f([...y]),d([...y]),i._updateFieldArray(r,[...y],(b=>b),{},!0,!1)}),[f,r,i]),fields:B.useMemo((()=>c.map(((x,y)=>({...x,[s]:u.current[y]||_7()})))),[c,s])}}function ace(){let e=[];return{get observers(){return e},next:n=>{for(const i of e)i.next&&i.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter((i=>i!==n))}}),unsubscribe:()=>{e=[]}}}var zK=e=>kp(e)||!CAt(e);function Lv(e,n){if(zK(e)||zK(n))return e===n;if(HE(e)&&HE(n))return e.getTime()===n.getTime();const i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;for(const s of i){const l=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const c=n[s];if(HE(l)&&HE(c)||Sd(l)&&Sd(c)||Array.isArray(l)&&Array.isArray(c)?!Lv(l,c):l!==c)return!1}}return!0}var OAt=e=>e.type==="select-multiple",sce=e=>FK(e)&&e.isConnected,FAt=e=>{for(const n in e)if(Jb(e[n]))return!0;return!1};function NK(e,n={}){const i=Array.isArray(e);if(Sd(e)||i)for(const r in e)Array.isArray(e[r])||Sd(e[r])&&!FAt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},NK(e[r],n[r])):kp(e[r])||(n[r]=!0);return n}function RAt(e,n,i){const r=Array.isArray(e);if(Sd(e)||r)for(const s in e)Array.isArray(e[s])||Sd(e[s])&&!FAt(e[s])?ul(n)||zK(i[s])?i[s]=Array.isArray(e[s])?NK(e[s],[]):{...NK(e[s])}:RAt(e[s],kp(n)?{}:n[s],i[s]):i[s]=!Lv(e[s],n[s]);return i}var lce=(e,n)=>RAt(e,n,NK(n)),zAt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>ul(e)?e:n?e===""?NaN:e&&+e:i&&gx(e)?new Date(e):r?r(e):e;function cce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return Twe(n)?n.files:Lwe(n)?MAt(e.refs).value:OAt(n)?[...n.selectedOptions].map((({value:i})=>i)):ER(n)?PAt(e.refs).value:zAt(ul(n.value)?e.ref.value:n.value,e)}var DL=e=>ul(e)?e:RK(e)?e.source:Sd(e)?RK(e.value)?e.value.source:e.value:e;function BBe(e,n,i){const r=ji(e,i);if(r||Dwe(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=ji(n,l),d=ji(e,l);if(c&&!Array.isArray(c)&&i!==l)return{name:i};if(d&&d.type)return{name:l,error:d};s.pop()}return{name:i}}const Ydn={mode:jAt,reValidateMode:kAt,shouldFocusError:!0};function Gdn(e={},n){let i,r={...Ydn,...e},s={submitCount:0,isDirty:!1,isLoading:Jb(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(Sd(r.defaultValues)||Sd(r.values))&&Rh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Rh(c),u={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:ace(),array:ace(),state:ace()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=w5e(r.mode),b=w5e(r.reValidateMode),w=r.criteriaMode===AD,C=async Y=>{if(g.isValid||Y){const q=r.resolver?zm((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},v=Y=>g.isValidating&&f.state.next({isValidating:Y}),S=(Y,q,K,J)=>{const ee=ji(l,Y);if(ee){const te=ji(d,Y,ul(K)?ji(c,Y):K);ul(te)||J&&J.defaultChecked||q?Ps(d,Y,q?te:cce(ee._f)):L(Y,te),u.mount&&C()}},k=(Y,q,K,J,ee)=>{let te=!1,ne=!1;const se={name:Y};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=se.isDirty=E(),te=ne!==se.isDirty);const re=Lv(ji(c,Y),q);ne=ji(s.dirtyFields,Y),re?Nd(s.dirtyFields,Y):Ps(s.dirtyFields,Y,!0),se.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!re}if(K){const re=ji(s.touchedFields,Y);re||(Ps(s.touchedFields,Y,K),se.touchedFields=s.touchedFields,te=te||g.touchedFields&&re!==K)}return te&&ee&&f.state.next(se),te?se:{}},$=(Y,q,K,J)=>{const ee=ji(s.errors,Y),te=g.isValid&&DI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>se=>{clearTimeout(h),h=setTimeout(ne,se)})((()=>((ne,se)=>{Ps(s.errors,ne,se),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Ps(s.errors,Y,K):Nd(s.errors,Y)),(K?!Lv(ee,K):ee)||!zm(J)||te){const ne={...J,...te&&DI(q)?{isValid:q}:{},errors:s.errors,name:Y};s={...s,...ne},f.state.next(ne)}v(!1)},j=async Y=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const se=ji(K,ne);se&&Ps(te,ne,se._f)}return{criteriaMode:J,names:[...q],fields:te,shouldUseNativeValidation:ee}})(Y||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(Y,q,K={valid:!0})=>{for(const J in Y){const ee=Y[J];if(ee){const{_f:te,...ne}=ee;if(te){const se=p.array.has(te.name),re=await v5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(re[te.name]&&(K.valid=!1,q))break;!q&&(ji(re,te.name)?se?BAt(s.errors,re,te.name):Ps(s.errors,te.name,re[te.name]):Nd(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Ps(d,Y,q),!Lv(T(),c)),D=(Y,q,K)=>TAt(Y,p,{...u.mount?d:ul(q)?c:gx(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=ji(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Ps(d,Y,zAt(q,te)),ee=FK(te.ref)&&kp(q)?"":q,OAt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?ER(te.ref)?te.refs.length>1?te.refs.forEach((ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(ee)?!!ee.find((se=>se===ne.value)):ee===ne.value))):te.refs[0]&&(te.refs[0].checked=!!ee):te.refs.forEach((ne=>ne.checked=ne.value===ee)):Twe(te.ref)?te.ref.value="":(te.ref.value=ee,te.ref.type||f.values.next({name:Y,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(Y,ee,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(Y)},F=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=ji(l,te);!p.array.has(Y)&&zK(ee)&&(!ne||ne._f)||HE(ee)?L(te,ee,K):F(te,ee,K)}},N=(Y,q,K={})=>{const J=ji(l,Y),ee=p.array.has(Y),te=Rh(q);Ps(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:lce(c,d),isDirty:E(Y,te)})):!J||J._f||kp(te)?L(Y,te,K):F(Y,te,K),C5e(Y,p)&&f.state.next({...s}),f.values.next({name:Y,values:{...d}}),!u.mount&&n()},_=async Y=>{const q=Y.target;let K=q.name,J=!0;const ee=ji(l,K);if(ee){let te,ne;const se=q.type?cce(ee._f):vAt(Y),re=Y.type===SAt||Y.type===Odn,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!ji(s.errors,K)&&!ee._f.deps||((ie,ce,de,ge,he)=>!he.isOnAll&&(!de&&he.isOnTouch?!(ce||ie):(de?ge.isOnBlur:he.isOnBlur)?!ie:!(de?ge.isOnChange:he.isOnChange)||ie))(re,ji(s.touchedFields,K),s.isSubmitted,b,y),fe=C5e(K,p,re);Ps(d,K,se),re?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,se,re,!1),oe=!zm(ue)||fe;if(!re&&f.values.next({name:K,type:Y.type,values:{...d}}),le)return g.isValid&&C(),oe&&f.state.next({name:K,...fe?{}:ue});if(!re&&fe&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),ce=BBe(s.errors,l,K),de=BBe(ie,l,ce.name||K);te=de.error,K=de.name,ne=zm(ie)}else te=(await v5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(se)||se===ji(d,K,se),J&&(te?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(ee._f.deps&&z(ee._f.deps),$(K,ne,te,ue))}},z=async(Y,q={})=>{let K,J;const ee=qm(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:se}=await j();if(ne)for(const re of ne){const le=ji(se,re);le?Ps(s.errors,re,le):Nd(s.errors,re)}else s.errors=se;return se})(ul(Y)?Y:ee);K=zm(te),J=Y?!ee.some((ne=>ji(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=ji(l,te);return await I(ne&&ne._f?{[te]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!gx(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&OK(l,(te=>te&&ji(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return ul(Y)?q:gx(Y)?ji(q,Y):Y.map((K=>ji(q,K)))},M=(Y,q)=>({invalid:!!ji((q||s).errors,Y),isDirty:!!ji((q||s).dirtyFields,Y),isTouched:!!ji((q||s).touchedFields,Y),error:ji((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?qm(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Nd(l,K),Nd(d,K)),!q.keepError&&Nd(s.errors,K),!q.keepDirty&&Nd(s.dirtyFields,K),!q.keepTouched&&Nd(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Nd(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=ji(l,Y);const J=DI(q.disabled);return Ps(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Ps(d,Y,q.disabled?void 0:ji(d,Y,cce(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:DL(q.min),max:DL(q.max),minLength:DL(q.minLength),maxLength:DL(q.maxLength),pattern:DL(q.pattern)}:{},name:Y,onChange:_,onBlur:_,ref:ee=>{if(ee){H(Y,q),K=ji(l,Y);const te=ul(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(re=>Lwe(re)||ER(re))(te),se=K._f.refs||[];if(ne?se.find((re=>re===te)):te===K._f.ref)return;Ps(l,Y,{_f:{...K._f,...ne?{refs:[...se.filter(sce),te,...Array.isArray(ji(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=ji(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!AAt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},V=()=>r.shouldFocusError&&OK(l,(Y=>Y&&ji(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Rh(K),ee=Y&&!zm(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)ji(s.dirtyFields,te)?Ps(ee,te,ji(d,te)):N(te,ji(ee,te));else{if(Iwe&&ul(Y))for(const te of p.mount){const ne=ji(l,te);if(ne&&ne._f){const se=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(FK(se)){const re=se.closest("form");if(re){re.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Rh(c):{}:J,f.array.next({values:{...ee}}),f.values.next({values:{...ee}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&n(),u.mount=!g.isValid||!!q.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:q.keepSubmitCount?s.submitCount:0,isDirty:q.keepDirty?s.isDirty:!(!q.keepDefaultValues||Lv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?lce(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(Jb(Y)?Y(d):Y,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const Y of p.unMount){const q=ji(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!sce(K))):!sce(q._f.ref))&&O(Y)}p.unMount=new Set},_updateFieldArray:(Y,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(ji(l,Y))){const ne=K(ji(l,Y),J.argA,J.argB);ee&&Ps(l,Y,ne)}if(te&&Array.isArray(ji(s.errors,Y))){const ne=K(ji(s.errors,Y),J.argA,J.argB);ee&&Ps(s.errors,Y,ne),((se,re)=>{!vD(ji(se,re)).length&&Nd(se,re)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(ji(s.touchedFields,Y))){const ne=K(ji(s.touchedFields,Y),J.argA,J.argB);ee&&Ps(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=lce(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Ps(d,Y,q)},_getFieldArray:Y=>vD(ji(u.mount?d:c,Y,e.shouldUnregister?ji(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>Jb(r.defaultValues)&&r.defaultValues().then((Y=>{U(Y,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:Y=>{s={...s,...Y}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(Y){u=Y},get _defaultValues(){return c},get _names(){return p},set _names(Y){p=Y},get _formState(){return s},set _formState(Y){s=Y},get _options(){return r},set _options(Y){r={...r,...Y}}},trigger:z,register:H,handleSubmit:(Y,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Rh(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:te}=await j();s.errors=ee,J=te}else await I(l);Nd(s.errors,"root"),zm(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zm(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>Jb(Y)?f.values.subscribe({next:K=>Y(D(void 0,q),K)}):D(Y,q,!0),setValue:N,getValues:T,reset:U,resetField:(Y,q={})=>{ji(l,Y)&&(ul(q.defaultValue)?N(Y,ji(c,Y)):(N(Y,q.defaultValue),Ps(c,Y,q.defaultValue)),q.keepTouched||Nd(s.touchedFields,Y),q.keepDirty||(Nd(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,ji(c,Y)):E()),q.keepError||(Nd(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&qm(Y).forEach((q=>Nd(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(ji(l,Y,{_f:{}})._f||{}).ref;Ps(s.errors,Y,{...q,ref:J}),f.state.next({name:Y,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(Y,q={})=>{const K=ji(l,Y),J=K&&K._f;if(J){const ee=J.refs?J.refs[0]:J.ref;ee.focus&&(ee.focus(),q.shouldSelect&&ee.select())}},getFieldState:M}}function kn(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:Jb(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Jb(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Gdn(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,cte({subject:s._subjects.state,next:l=>{IAt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!Lv(e.values,s._defaultValues)?s._reset(e.values,s._options.resetOptions):s._resetDefaultValues()}),[e.values,s]),B.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()})),n.current.formState=EAt(i,s),n.current}let Cx;Cx=typeof window<"u"?window:typeof self<"u"?self:c5e;let A5e=null,S5e=null;const dce=Cx.clearTimeout,PBe=Cx.setTimeout,uce=Cx.cancelAnimationFrame||Cx.mozCancelAnimationFrame||Cx.webkitCancelAnimationFrame,MBe=Cx.requestAnimationFrame||Cx.mozRequestAnimationFrame||Cx.webkitRequestAnimationFrame;function qdn(e){let n,i,r,s,l,c,d;const u=typeof document<"u"&&document.attachEvent;if(!u){c=function(y){const b=y.__resizeTriggers__,w=b.firstElementChild,C=b.lastElementChild,v=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,v.style.width=w.offsetWidth+1+"px",v.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},l=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},d=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;c(this),this.__resizeRAF__&&A5e(this.__resizeRAF__),this.__resizeRAF__=S5e((function(){l(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach((function(w){w.call(b,y)})))}))};let p=!1,h="";r="animationstart";const g="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b<g.length;b++)if(y.style[g[b]+"AnimationName"]!==void 0){x=g[b],h="-"+x.toLowerCase()+"-",r=f[b],p=!0;break}}}i="resizeanim",n="@"+h+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",s=h+"animation: 1ms "+i+"; "}return{addResizeListener:function(p,h){if(u)p.attachEvent("onresize",h);else{if(!p.__resizeTriggers__){const g=p.ownerDocument,f=Cx.getComputedStyle(p);f&&f.position==="static"&&(p.style.position="relative"),(function(b){if(!b.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=b.head||b.getElementsByTagName("head")[0],v=b.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=w:v.appendChild(b.createTextNode(w)),C.appendChild(v)}})(g),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const y=g.createElement("div");y.className="contract-trigger",p.__resizeTriggers__.appendChild(x),p.__resizeTriggers__.appendChild(y),p.appendChild(p.__resizeTriggers__),c(p),p.addEventListener("scroll",d,!0),r&&(p.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&c(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(h)}},removeResizeListener:function(p,h){if(u)p.detachEvent("onresize",h);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(h),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",d,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}uce==null||MBe==null?(A5e=dce,S5e=function(e){return PBe(e,20)}):(A5e=function([e,n]){uce(e),dce(n)},S5e=function(e){const n=MBe((function(){dce(i),e()})),i=PBe((function(){uce(n),e()}),20);return[n,i]});let Bo=class extends m.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:i,onResize:r}=this.props;if(this._parentNode){const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(s.paddingLeft||"0"),c=parseFloat(s.paddingRight||"0"),d=parseFloat(s.paddingTop||"0"),u=parseFloat(s.paddingBottom||"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-d-u,g=p.width-l-c;if(!n&&this.state.height!==h||!i&&this.state.width!==g){this.setState({height:h,width:g});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof r=="function"&&r({height:h,width:g,get scaledHeight(){return f(),h},get scaledWidth(){return f(),g}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const i=n.ownerDocument.defaultView.ResizeObserver;i!=null?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(n)):(this._detectElementResize=qdn(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:r=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:l=!1,nonce:c,onResize:d,style:u={},tagName:p="div",...h}=this.props,{height:g,width:f}=this.state,x={overflow:"visible"},y={};let b=!1;return r||(g===0&&(b=!0),x.height=0,y.height=g,y.scaledHeight=g),s||(f===0&&(b=!0),x.width=0,y.width=f,y.scaledWidth=f),l&&(b=!1),m.createElement(p,{ref:this._setRef,style:{...x,...u},...h},!b&&e(y))}};function n0(e){return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n0(e)}function k5e(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=Array(n);i<n;i++)r[i]=e[i];return r}function Bwe(e,n){if(e){if(typeof e=="string")return k5e(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k5e(e,n):void 0}}function OBe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Bwe(e))||n){i&&(e=i);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,c=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var u=i.next();return c=u.done,u},e:function(u){d=!0,l=u},f:function(){try{c||i.return==null||i.return()}finally{if(d)throw l}}}}function Di(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _K(e,n){return _K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},_K(e,n)}function ja(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_K(e,n)}function VK(e){return VK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},VK(e)}function NAt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(NAt=function(){return!!e})()}function $a(e){var n=NAt();return function(){var i,r=VK(e);if(n){var s=VK(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(n0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Di(l)})(this,i)}}function ca(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _At(e){var n=(function(i,r){if(n0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(n0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return n0(n)=="symbol"?n:n+""}function FBe(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_At(r.key),r)}}function da(e,n,i){return n&&FBe(e.prototype,n),i&&FBe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,n,i){return(n=_At(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function RBe(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),i.push.apply(i,r)}return i}function yo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?RBe(Object(i),!0).forEach((function(r){Ai(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):RBe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Kd(e,n){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,r){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var l,c,d,u,p=[],h=!0,g=!1;try{if(d=(s=s.call(i)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=d.call(s)).done)&&(p.push(l.value),p.length!==r);h=!0);}catch(f){g=!0,c=f}finally{try{if(!h&&s.return!=null&&(u=s.return(),Object(u)!==u))return}finally{if(g)throw c}}return p}})(e,n)||Bwe(e,n)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function HK(e,n){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function S3(e,n){if(e==null)return{};var i,r,s=HK(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)i=l[r],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ko.apply(null,arguments)}function TI(e){return(function(n){if(Array.isArray(n))return k5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||Bwe(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -92279,7 +92279,7 @@ ${zM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92279
92279
|
padding: ${o.sp3} ${o.sp0};
|
|
92280
92280
|
`,Ewt=a(lt)`
|
|
92281
92281
|
min-width: 140px;
|
|
92282
|
-
`,AR=cCt(Ccn()),zys=["sandbox","production"],Nys=["development","staging","production"],_ys=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pD=()=>_l==="DEV"||_l==="QA"||_l==="PUNE"||_l==="SUNNYVALE"||_l==="DELHI"||_l==="MOHALI",Sje="https://zeni-webapp-dev.uc.r.appspot.com",_l=(e=>u7(e,_ys))("DEV"),ESs=(e=>u7(e,zys))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(_l)),Iwt=(e=>u7(e,Nys))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(_l)),Vys=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(_l);function Gin(e,n){return AR.AES.decrypt(e,n).toString(AR.enc.Utf8)}const qin="ZENI-WEB-APP-",kje=_l==="DEV"||_l==="QA"?.2:.8,Kin=kje,Gs={sentryDsn:"",sentryTraceSamplingRate:kje,sentryProfileSamplingRate:Kin,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Ux,Fz;function Hys(){return Ux?.aiCfoMicroServiceBaseUrl!=null?`${Ux.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Zin(e){Gs.sentryDsn=e.keys.SENTRY_DSN,Gs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):kje,Gs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Kin,Gs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Gs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Gs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Gs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Gs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Gs.pusherCluster=e.keys.PUSHER_CLUSTER,Gs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Gs.appUrl=e.keys.WEB_ENDPOINT,Gs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Gs.cardVaultId=e.keys.UNIT_VAULT_ID,Gs.stripeKey=e.keys.STRIPE_KEY,Gs.qboRedirectionUrl=e.keys.QBO_URL,Gs.mixpanelUrl=e.keys.MIXPANEL_URL,Gs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Fz=e.externalEndPoints,Ux=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(Ux,Fz)}async function Dwt(){const e={environment:_l},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Sje}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let Twt=!1;function VE(){Twt||(sg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:Fz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),Twt=!0)}const Uys=new Set(Array.from(Ri.EVENTS_WITHOUT_SUPER_PROPERTIES));let Lwt=!1,Bwt=!1;function E8e(){if(Lwt)return;Lwt=!0,VE();const e=Ri.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),pD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Wys=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Qys(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||Wys.has(i)));for(const i of n)sg.unregister(i);pD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function Pwt(){Bwt||(Bwt=!0,Qys())}class EI{identify(n,i){if(VE(),this.#t=n,n!=null&&i!=null&&(EI.#e==null||!zsn({userId:n,traits:i},EI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),EI.#e={userId:n,traits:i},pD()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){VE();const r=Uys.has(n);if(this.#t!=null||r){if(E8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(Pwt(),pD()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){VE(),E8e(),sg.track(n,i),Pwt(),pD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){VE(),sg.alias(n,i)}reset(){VE(),sg.identify(void 0),this.#t=void 0,EI.#e=void 0}static#e;#t}const I8e=new EI,Jin=new Ri.Analytics(I8e);Jin.trackWithoutUserId=I8e.trackWithoutUserId.bind(I8e);const Gm=Jin,Yys="openAiCfoScope",D8e="openAiCfoScopeOnDashboard";function ISs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[D8e]:!0,...r}})}function DSs(e){const n=Zee(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function jje(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function Xin(e,n){return(e||n?.chatSessionSummary)??null}const eon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Mee="zeni-ai-cfo-upload-promo-storage-changed",Dr=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(Mee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(Mee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return AR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=AR.AES.decrypt(e,n).toString(AR.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:fn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}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_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=eon;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,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_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},xT=(e,n)=>{const i=[...e??[]];return i.push(n),i},TSs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},LSs=({state:e})=>Dr.isSignedIn()===!0?on.jsx(brn,{}):on.jsx(hCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Gys=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function ton(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of Gys)delete n[i];return n}function qys(){const e=Pp(),n=Ng(),i=zee(),{tenantEmailDomain:r}=mCt(),[s,l]=m.useState(!1),c=zr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Np(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=zr((v=>Zee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[D8e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...ton(v),[D8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=xT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=xT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(cvt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(kin,{open:s,onClose:w,children:on.jsxs(Sin,{children:[s&&!h?on.jsx(uAe,{analytics:Gm,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Fye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const T8e=m.createContext(void 0);function $je(){const e=m.useContext(T8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Eje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],Ije=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],non=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],ion=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],oon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],ron=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],aon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],son=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],lon=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function con(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const don=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],uon=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],pon=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Kys=[...non,...Eje,...Ije,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...don,...uon,...pon,...ion,...oon,...ron,...aon,...son,...lon];function hon(){const{pathname:e}=Ng(),n=e??"";return Kys.some((i=>O8e(i,n)!=null))||con(e)}function Ud(e){const{pathname:n}=Ng(),i=n??"";return e.some((r=>O8e(r,i)!=null))}const BSs=27.22,mon=m.createContext(null),gon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Zys({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx(mon.Provider,{value:c,children:e})}function Dje(){const e=m.useContext(mon);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function Jys(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Qsn(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Hsn(c);u.length!==0&&(e(Usn(u)),e(Wsn({sourceChatSessionId:n})),n!=null&&e(i$e({chatSessionId:n,id:d$e(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Vsn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=pra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...ura(v)}}const y=UX(p.vendorPolicy,"allow"),b=UX(p.vendorPolicy,"block"),w=WX(p.categoryPolicy,"allow"),C=WX(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:QX(p.limits,Ske),spendLimits:{transaction:QX(p.limits,Ake)}}})({values:c});e(_sn({templates:[u],sourceChatSessionId:n})),n!=null&&e(i$e({chatSessionId:n,id:d$e(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Nsn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(dvt())}:void 0}}const Xys=e=>nln(e,!1),e7s=e=>tln(e.name,!1);function t7s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Ysn(r),l=Gsn(r),c=qsn(r),{creditAccount:d}=Ksn(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(Xys),cardPolicyVendorSearchOptions:l.map(e7s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:eln(r),cardPolicyUploadedFileName:Xsn(r),cardPolicyFormDraft:Jsn(e.createCardPolicyState),cardsCreationFormDraft:Zsn(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const n7s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=oln(e.chargeCardState,i);if(r==null)return;const s=rln(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},i7s=e=>n=>{const i=iln(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function o7s(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoAnswerExportEnabled);return n&&Ux?.aiCfoMicroServiceBaseUrl!=null?`${Ux.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function r7s({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=Za(),{isFeatureEnabled:r}=i(wl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(wl.isCardPolicyEnabled),l=zr((x=>Np(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=zr((x=>{const y=Np(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),IK),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(aln()),n(o$e()),n(sln("cardHolderCandidate",!1)),n(lln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(cln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(dvt())}),[n,l]);const h=m.useMemo((()=>wcn((x=>{n(o$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=zr((x=>dln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),IK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const fon=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],xon=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],a7s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],s7s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],l7s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],c7s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],d7s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],yon=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],bon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],u7s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Tje(e){const n=Uh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":u7s.includes(r)?r:null}const p7s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),h7s=new Set(["setup","verification","promo","approval-rules"]);function Uh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Lje(e){const n=Uh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function won(e,n,i){const r=Uh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Con(e,n,i){return won(e,n,(r=>!i.has(r)))}function von(e){return Con(e,"bills",p7s)}function Aon(e){return Con(e,"reimbursements",h7s)}function Bje(e){return won(e,"tasks",(n=>n==="group"))}const m7s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),g7s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Pje(e){const n=Uh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return m7s.has(i)?"checking":"checking_details"}function Mje(e){const n=Uh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return g7s.has(i)?"cards":"cards_detail"}function Son(e){const n=Uh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function kon(e){return Uh(e)[1]==="performance"?"performance":void 0}function jon(e){const n=Uh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function $on(e){const n=Uh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function N2(e,n){return n.some((i=>O8e(i,e)!=null))}function f7s(e){return N2(e,Eje)?"reports":N2(e,fon)?"ap_aging":N2(e,xon)?"ar_aging":Lje(e)!=null?"vendors_tab":N2(e,Ije)?"forecast":Tje(e)!=null?"month_end_close_review":N2(e,yon)?"cash_balance":N2(e,bon)?"card_balance":Bje(e)?"task_checklist":Son(e)!=null?"transaction_detail":kon(e)!=null?"performance":jon(e)!=null?"bills_detail":$on(e)!=null?"reimbursement_detail":von(e)?"bills_list":Aon(e)?"reimbursement_list":N2(e,a7s)?"cash_in_cash_out":N2(e,s7s)?"operating_expenses":N2(e,l7s)?"revenue":N2(e,c7s)?"net_burn_or_income":N2(e,d7s)?"cash_position":(function(n){const i=Uh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Pje(e)!=null?"checking":(function(n){return Uh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Mje(e)!=null?"cards":(function(n){return Uh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Uh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Uh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Eon(e,n){switch(f7s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Lje(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Tje(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Pje(e);case"treasury":return"treasury";case"cards":return Mje(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Ion(){const{pathname:e}=Ng(),n=e??"",i=zr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Eon(n,{selectedReportId:i})),[n,i])}function Oje(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoEnabled),i=zr((s=>Np(s))),r=Dr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function x7s(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoNavButtonEnabled),i=Oje();return n&&i}const Don=m.createContext(void 0),y7s=({children:e})=>{const{tenantEmailDomain:n}=mCt(),i=n!=null?Dr.getSignedInUserTenant(n):void 0,r=zr((u=>Np(u))),s=Jee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Don.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},b7s=()=>{const e=m.useContext(Don);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Ton(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Lon(e){const{areTenantIdsInSync:n}=b7s(),i=Oje(),r=x7s();return n&&e&&r&&i}function PSs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=gCt(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=twe(s.getState(),d)?.fetchState;Ton(u,c)&&r(pvt({pageContext:d}))}}),[i,r,n,s])}function Bon(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=gCt(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=twe(c.getState(),i)?.fetchState;Ton(g,p||h)&&l(pvt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Lon(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function MSs(e){Bon({pageContext:Ion(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:w7s,sampleQuestion2:C7s,sampleQuestion3:v7s}}=ae.getLocalizedStrings().aiCfo,A7s=[w7s,C7s,v7s];function S7s(e,n=!1){Bon({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Lon(!0),r=zr((g=>e!=null&&e!==""?twe(g,e):void 0)),{useDynamicConfig:s}=Za(),{configValue:l}=s(Gx.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...A7s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function k7s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Dr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(Mee,l);const c=d=>{d.key===eon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Mee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Dr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Pon=m.createContext(void 0),Oee=()=>m.useContext(Pon),Mwt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},j7s=e=>{const n=Dr.isSignedIn(),i=Dr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=zr((h=>Np(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){Mwt(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await gln(Gs.pusherClientSecret,{cluster:Gs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&hD(C,u),f!=null&&hD(C,f),p!=null&&hD(C,p)))},w=()=>{const C=Jee();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),gvt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),Mwt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Pon.Provider,{value:c,children:e.children})};function hD(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const $7s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Mon=e=>n=>{const i=Oee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=$7s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},OSs=210;function FSs(e){return e?.data.unread!=null&&e?.mode!=null}const Fje=e=>Yli.includes(e),Rje=e=>FMt.includes(e),zje=e=>Gli.includes(e),E7s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},I7s=e=>{if(zje(e)){const n=E7s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Fje(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":jAe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Rje(e)?`ai-cfo/${e}`:e},D7s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],RSs=e=>{if(Fje(e)||Rje(e)||zje(e))return!0;const n=I7s(e).split("/")[0];return!D7s.includes(n)},Owt=(e,n)=>e.includes(n),Fwt=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(Owt(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&jAe(s)?Qli(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of FMt)if(Owt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function T7s(e){let n=Fwt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=Fwt(i[r])}return n??"home"}function zSs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function NSs(e){return e.pathname.split("/")[2]==="invoicing"}function _Ss(e){return e.pathname.includes("ai-cfo")}function VSs(e,n){const i=T7s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":zje(i)?`invoicing/${i.replace("invoicing_","")}`:Fje(i)?"settings/my_profile":Rje(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":jAe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function L7s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(fvt(r.tenantId)),e(xvt(s.userId,r.tenantId,s.zeniSessionId))),Gm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function B7s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=zee(),p=Ng(),{setLoading:h}=Dje(),g=Dr.getSignedInUser(),f=Nz(g),{useDynamicConfig:x}=Za(),{configValue:y}=x(Gx.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=zr((O=>O.tenantState)),S=zr((O=>v.fetchState==="Completed"?fln(O):[])),k=zr((O=>e?.tenantId!=null?xln(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(p5e());const H=xT(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(p5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(uvt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=xT(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((O=>{h(gon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;L7s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Yc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(P7s,{children:[on.jsxs(M7s,{children:[on.jsx(tNt,{}),on.jsx(fNt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(O7s,{children:on.jsx(oNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(F7s,{children:[g!=null&&on.jsx(SN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(R7s,{onClick:z,children:on.jsx(z7s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const P7s=a.div`
|
|
92282
|
+
`,AR=cCt(Ccn()),zys=["sandbox","production"],Nys=["development","staging","production"],_ys=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pD=()=>_l==="DEV"||_l==="QA"||_l==="PUNE"||_l==="SUNNYVALE"||_l==="DELHI"||_l==="MOHALI",Sje="https://zeni-webapp-qa.uc.r.appspot.com",_l=(e=>u7(e,_ys))("QA"),ESs=(e=>u7(e,zys))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(_l)),Iwt=(e=>u7(e,Nys))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(_l)),Vys=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(_l);function Gin(e,n){return AR.AES.decrypt(e,n).toString(AR.enc.Utf8)}const qin="ZENI-WEB-APP-",kje=_l==="DEV"||_l==="QA"?.2:.8,Kin=kje,Gs={sentryDsn:"",sentryTraceSamplingRate:kje,sentryProfileSamplingRate:Kin,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Ux,Fz;function Hys(){return Ux?.aiCfoMicroServiceBaseUrl!=null?`${Ux.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Zin(e){Gs.sentryDsn=e.keys.SENTRY_DSN,Gs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):kje,Gs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Kin,Gs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Gs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Gs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Gs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Gs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Gs.pusherCluster=e.keys.PUSHER_CLUSTER,Gs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Gs.appUrl=e.keys.WEB_ENDPOINT,Gs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Gs.cardVaultId=e.keys.UNIT_VAULT_ID,Gs.stripeKey=e.keys.STRIPE_KEY,Gs.qboRedirectionUrl=e.keys.QBO_URL,Gs.mixpanelUrl=e.keys.MIXPANEL_URL,Gs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Fz=e.externalEndPoints,Ux=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(Ux,Fz)}async function Dwt(){const e={environment:_l},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Sje}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let Twt=!1;function VE(){Twt||(sg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:Fz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),Twt=!0)}const Uys=new Set(Array.from(Ri.EVENTS_WITHOUT_SUPER_PROPERTIES));let Lwt=!1,Bwt=!1;function E8e(){if(Lwt)return;Lwt=!0,VE();const e=Ri.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),pD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Wys=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Qys(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||Wys.has(i)));for(const i of n)sg.unregister(i);pD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function Pwt(){Bwt||(Bwt=!0,Qys())}class EI{identify(n,i){if(VE(),this.#t=n,n!=null&&i!=null&&(EI.#e==null||!zsn({userId:n,traits:i},EI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),EI.#e={userId:n,traits:i},pD()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){VE();const r=Uys.has(n);if(this.#t!=null||r){if(E8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(Pwt(),pD()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){VE(),E8e(),sg.track(n,i),Pwt(),pD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){VE(),sg.alias(n,i)}reset(){VE(),sg.identify(void 0),this.#t=void 0,EI.#e=void 0}static#e;#t}const I8e=new EI,Jin=new Ri.Analytics(I8e);Jin.trackWithoutUserId=I8e.trackWithoutUserId.bind(I8e);const Gm=Jin,Yys="openAiCfoScope",D8e="openAiCfoScopeOnDashboard";function ISs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[D8e]:!0,...r}})}function DSs(e){const n=Zee(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function jje(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function Xin(e,n){return(e||n?.chatSessionSummary)??null}const eon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Mee="zeni-ai-cfo-upload-promo-storage-changed",Dr=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(Mee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(Mee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return AR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=AR.AES.decrypt(e,n).toString(AR.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:fn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}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_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=eon;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,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_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},xT=(e,n)=>{const i=[...e??[]];return i.push(n),i},TSs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},LSs=({state:e})=>Dr.isSignedIn()===!0?on.jsx(brn,{}):on.jsx(hCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Gys=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function ton(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of Gys)delete n[i];return n}function qys(){const e=Pp(),n=Ng(),i=zee(),{tenantEmailDomain:r}=mCt(),[s,l]=m.useState(!1),c=zr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Np(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=zr((v=>Zee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[D8e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...ton(v),[D8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=xT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=xT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(cvt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(kin,{open:s,onClose:w,children:on.jsxs(Sin,{children:[s&&!h?on.jsx(uAe,{analytics:Gm,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Fye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const T8e=m.createContext(void 0);function $je(){const e=m.useContext(T8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Eje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],Ije=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],non=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],ion=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],oon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],ron=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],aon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],son=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],lon=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function con(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const don=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],uon=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],pon=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Kys=[...non,...Eje,...Ije,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...don,...uon,...pon,...ion,...oon,...ron,...aon,...son,...lon];function hon(){const{pathname:e}=Ng(),n=e??"";return Kys.some((i=>O8e(i,n)!=null))||con(e)}function Ud(e){const{pathname:n}=Ng(),i=n??"";return e.some((r=>O8e(r,i)!=null))}const BSs=27.22,mon=m.createContext(null),gon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Zys({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx(mon.Provider,{value:c,children:e})}function Dje(){const e=m.useContext(mon);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function Jys(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Qsn(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Hsn(c);u.length!==0&&(e(Usn(u)),e(Wsn({sourceChatSessionId:n})),n!=null&&e(i$e({chatSessionId:n,id:d$e(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Vsn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=pra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...ura(v)}}const y=UX(p.vendorPolicy,"allow"),b=UX(p.vendorPolicy,"block"),w=WX(p.categoryPolicy,"allow"),C=WX(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:QX(p.limits,Ske),spendLimits:{transaction:QX(p.limits,Ake)}}})({values:c});e(_sn({templates:[u],sourceChatSessionId:n})),n!=null&&e(i$e({chatSessionId:n,id:d$e(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Nsn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(dvt())}:void 0}}const Xys=e=>nln(e,!1),e7s=e=>tln(e.name,!1);function t7s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Ysn(r),l=Gsn(r),c=qsn(r),{creditAccount:d}=Ksn(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(Xys),cardPolicyVendorSearchOptions:l.map(e7s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:eln(r),cardPolicyUploadedFileName:Xsn(r),cardPolicyFormDraft:Jsn(e.createCardPolicyState),cardsCreationFormDraft:Zsn(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const n7s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=oln(e.chargeCardState,i);if(r==null)return;const s=rln(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},i7s=e=>n=>{const i=iln(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function o7s(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoAnswerExportEnabled);return n&&Ux?.aiCfoMicroServiceBaseUrl!=null?`${Ux.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function r7s({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=Za(),{isFeatureEnabled:r}=i(wl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(wl.isCardPolicyEnabled),l=zr((x=>Np(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=zr((x=>{const y=Np(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),IK),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(aln()),n(o$e()),n(sln("cardHolderCandidate",!1)),n(lln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(cln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(dvt())}),[n,l]);const h=m.useMemo((()=>wcn((x=>{n(o$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=zr((x=>dln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),IK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const fon=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],xon=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],a7s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],s7s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],l7s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],c7s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],d7s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],yon=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],bon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],u7s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Tje(e){const n=Uh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":u7s.includes(r)?r:null}const p7s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),h7s=new Set(["setup","verification","promo","approval-rules"]);function Uh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Lje(e){const n=Uh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function won(e,n,i){const r=Uh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Con(e,n,i){return won(e,n,(r=>!i.has(r)))}function von(e){return Con(e,"bills",p7s)}function Aon(e){return Con(e,"reimbursements",h7s)}function Bje(e){return won(e,"tasks",(n=>n==="group"))}const m7s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),g7s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Pje(e){const n=Uh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return m7s.has(i)?"checking":"checking_details"}function Mje(e){const n=Uh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return g7s.has(i)?"cards":"cards_detail"}function Son(e){const n=Uh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function kon(e){return Uh(e)[1]==="performance"?"performance":void 0}function jon(e){const n=Uh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function $on(e){const n=Uh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function N2(e,n){return n.some((i=>O8e(i,e)!=null))}function f7s(e){return N2(e,Eje)?"reports":N2(e,fon)?"ap_aging":N2(e,xon)?"ar_aging":Lje(e)!=null?"vendors_tab":N2(e,Ije)?"forecast":Tje(e)!=null?"month_end_close_review":N2(e,yon)?"cash_balance":N2(e,bon)?"card_balance":Bje(e)?"task_checklist":Son(e)!=null?"transaction_detail":kon(e)!=null?"performance":jon(e)!=null?"bills_detail":$on(e)!=null?"reimbursement_detail":von(e)?"bills_list":Aon(e)?"reimbursement_list":N2(e,a7s)?"cash_in_cash_out":N2(e,s7s)?"operating_expenses":N2(e,l7s)?"revenue":N2(e,c7s)?"net_burn_or_income":N2(e,d7s)?"cash_position":(function(n){const i=Uh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Pje(e)!=null?"checking":(function(n){return Uh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Mje(e)!=null?"cards":(function(n){return Uh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Uh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Uh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Eon(e,n){switch(f7s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Lje(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Tje(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Pje(e);case"treasury":return"treasury";case"cards":return Mje(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Ion(){const{pathname:e}=Ng(),n=e??"",i=zr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Eon(n,{selectedReportId:i})),[n,i])}function Oje(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoEnabled),i=zr((s=>Np(s))),r=Dr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function x7s(){const{useFeatureGate:e}=Za(),{isFeatureEnabled:n}=e(wl.isAiCfoNavButtonEnabled),i=Oje();return n&&i}const Don=m.createContext(void 0),y7s=({children:e})=>{const{tenantEmailDomain:n}=mCt(),i=n!=null?Dr.getSignedInUserTenant(n):void 0,r=zr((u=>Np(u))),s=Jee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Don.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},b7s=()=>{const e=m.useContext(Don);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Ton(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Lon(e){const{areTenantIdsInSync:n}=b7s(),i=Oje(),r=x7s();return n&&e&&r&&i}function PSs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=gCt(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=twe(s.getState(),d)?.fetchState;Ton(u,c)&&r(pvt({pageContext:d}))}}),[i,r,n,s])}function Bon(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=gCt(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=twe(c.getState(),i)?.fetchState;Ton(g,p||h)&&l(pvt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Lon(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function MSs(e){Bon({pageContext:Ion(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:w7s,sampleQuestion2:C7s,sampleQuestion3:v7s}}=ae.getLocalizedStrings().aiCfo,A7s=[w7s,C7s,v7s];function S7s(e,n=!1){Bon({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Lon(!0),r=zr((g=>e!=null&&e!==""?twe(g,e):void 0)),{useDynamicConfig:s}=Za(),{configValue:l}=s(Gx.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...A7s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function k7s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Dr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(Mee,l);const c=d=>{d.key===eon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Mee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Dr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Pon=m.createContext(void 0),Oee=()=>m.useContext(Pon),Mwt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},j7s=e=>{const n=Dr.isSignedIn(),i=Dr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=zr((h=>Np(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){Mwt(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await gln(Gs.pusherClientSecret,{cluster:Gs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&hD(C,u),f!=null&&hD(C,f),p!=null&&hD(C,p)))},w=()=>{const C=Jee();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),gvt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),Mwt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Pon.Provider,{value:c,children:e.children})};function hD(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const $7s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Mon=e=>n=>{const i=Oee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=$7s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},OSs=210;function FSs(e){return e?.data.unread!=null&&e?.mode!=null}const Fje=e=>Yli.includes(e),Rje=e=>FMt.includes(e),zje=e=>Gli.includes(e),E7s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},I7s=e=>{if(zje(e)){const n=E7s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Fje(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":jAe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Rje(e)?`ai-cfo/${e}`:e},D7s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],RSs=e=>{if(Fje(e)||Rje(e)||zje(e))return!0;const n=I7s(e).split("/")[0];return!D7s.includes(n)},Owt=(e,n)=>e.includes(n),Fwt=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(Owt(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&jAe(s)?Qli(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of FMt)if(Owt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function T7s(e){let n=Fwt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=Fwt(i[r])}return n??"home"}function zSs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function NSs(e){return e.pathname.split("/")[2]==="invoicing"}function _Ss(e){return e.pathname.includes("ai-cfo")}function VSs(e,n){const i=T7s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":zje(i)?`invoicing/${i.replace("invoicing_","")}`:Fje(i)?"settings/my_profile":Rje(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":jAe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function L7s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(fvt(r.tenantId)),e(xvt(s.userId,r.tenantId,s.zeniSessionId))),Gm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function B7s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=zee(),p=Ng(),{setLoading:h}=Dje(),g=Dr.getSignedInUser(),f=Nz(g),{useDynamicConfig:x}=Za(),{configValue:y}=x(Gx.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=zr((O=>O.tenantState)),S=zr((O=>v.fetchState==="Completed"?fln(O):[])),k=zr((O=>e?.tenantId!=null?xln(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(p5e());const H=xT(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(p5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(uvt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=xT(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((O=>{h(gon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;L7s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Yc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(P7s,{children:[on.jsxs(M7s,{children:[on.jsx(tNt,{}),on.jsx(fNt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(O7s,{children:on.jsx(oNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(F7s,{children:[g!=null&&on.jsx(SN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(R7s,{onClick:z,children:on.jsx(z7s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const P7s=a.div`
|
|
92283
92283
|
display: flex;
|
|
92284
92284
|
flex: 1 1 auto;
|
|
92285
92285
|
flex-direction: column;
|
|
@@ -92367,7 +92367,7 @@ ${zM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92367
92367
|
display: flex;
|
|
92368
92368
|
min-height: 100%;
|
|
92369
92369
|
flex-direction: column;
|
|
92370
|
-
`,e6s=()=>{const[e,n]=m.useState((()=>Dr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=zr((g=>yvt(g).fetchState)),u=zr((g=>Np(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Dr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Pln(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(pAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(J7s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},zwt="init-enter",t6s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||zwt);n6s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||zwt,c=i6s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),n6s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),i6s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},um=e=>m.lazy((async()=>{const n=e.toString(),i=Dr.getForceRefreshedComponents(),r=new Set(i),s=Dr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Dr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Dr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),HSs=(e,n,i)=>{const r=U8e(e),s=Qee(e),l=W8e(i,e);return(n||i||s||r||l)&&V8e(e.company)},zon=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Non=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),_on=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Von=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function yc(...e){const n=_l==="DEV"||_l==="QA";if(zon||Non||_on||Von)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function mD(...e){const n=_l==="DEV"||_l==="QA";if(zon||Non||_on||Von)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let sE=null,JM=!1;const bc=_l==="PROD"?"https://api.zeni.ai":_l==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function Nwt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const o6s={dashboard:function(e){return[...Nwt()]},reports:Nwt,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${bc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${bc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${bc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${bc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${bc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${bc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${bc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${bc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${bc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function _wt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,o6s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return yc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function Vwt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(yc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void mD("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);yc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{yc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),yc(` URL: ${u.url}`)}));const c=Jee(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),yc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){mD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else mD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r6s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Ng(),S=Dr.getSignedInUser(),{useFeatureGate:k}=Za(),{isFeatureEnabled:$}=k(wl.isReferralFeatureEnabled),j=Ln(),I=Ly(j?.loggedInUserRole??[]),E=zr((_=>Np(_))),{isFeatureEnabled:D}=k(wl.isDebitCardFeatureEnabled),L=W8e(D,E),F=U8e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=_wt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void yc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);yc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{Vwt(_,r,s).catch((M=>{mD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;yc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;yc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{JM&&(yc("[Idle Detection - Service Worker] 🏃 User became active again"),JM=!1),sE&&clearTimeout(sE),sE=setTimeout((()=>{JM||(yc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),JM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{yc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),sE&&(clearTimeout(sE),sE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),JM=!1}})({timeout:h,onIdle:()=>{if(b)return;yc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=_wt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(yc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),Vwt(z,r,s).catch((M=>{mD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):yc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(yc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;yc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){mD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function a6s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Ng(),u=zr((y=>Np(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=Za(),{isFeatureEnabled:x}=f(wl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(r6s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function s6s(e,n){const i=Ri.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const l6s=um((()=>Ad((()=>import("./DefaultTenantHome-DNm_mIU1.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),c6s=um((()=>Ad((()=>import("./AppDrawer-Cupbn6L3.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),Hwt=um((()=>Ad((()=>import("./ScreenRoutes-DAK3aVc9.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),d6s=um((()=>Ad((()=>import("./ConnectionAuthScreen-CDQ0Sa51.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),u6s=um((()=>Ad((()=>import("./SignInScreen-mTQjLuAc.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),p6s=um((()=>Ad((()=>import("./MagicLinkSignInScreen-kYQNLgBh.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),Uwt=um((()=>Ad((()=>import("./NotFoundScreen-D92eiixV.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),h6s=um((()=>Ad((()=>import("./MagicLinkRoutes-6bWvZ6Ex.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),m6s=um((()=>Ad((()=>import("./PaymentLinkScreen-DVW3u8lI.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),g6s=um((()=>Ad((()=>import("./WiseConfirmationScreen-DgUBxs8P.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),f6s=um((()=>Ad((()=>import("./HubSpotOAuthCallbackScreen-B12KbAGI.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),x6s=um((()=>Ad((()=>import("./CustomerOnboardingAuthScreen-CzX3lGuD.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),y6s=um((()=>Ad((()=>import("./SignOutScreen-C7lCXdn2.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),b6s=um((()=>Ad((()=>import("./OAuthConsentScreen-BKzEKwhD.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),w6s=()=>{const e=Ng(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=s6s("/",n);return on.jsx(hCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function C6s(){const{isOpen:e}=QS(),n=udi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=$je(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const v6s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Dr.isSignedIn(),r=zr((j=>Np(j))),s=Dr.getSignedInUser(),l=i&&Nz(s),c=zr((j=>Mln(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Pp(),p=Ud(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=hon(),g=Oje(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=Za(),{isFeatureEnabled:v}=C(wl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Oln())}),[u,h]);const S=Ng().pathname.includes("/collect-payment/"),k=on.jsx(A6s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return on.jsx(fWe,{children:on.jsx(d3t,{children:on.jsx(T8e.Provider,{value:w,children:k})})});const $=on.jsxs(T8e.Provider,{value:w,children:[on.jsx(C6s,{}),on.jsxs(j6s,{children:[on.jsx(c6s,{tenantEmailDomain:e}),on.jsx(S6s,{children:k})]})]});return on.jsx(fWe,{children:r.tenantId!=null?on.jsx(T0a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Ux.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Ux.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(d3t,{children:$})})},A6s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=zr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=Za(),{configValue:c}=l(Gx.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=Dje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=$je();return m.useEffect((()=>{h(gon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(a6s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Crn,{children:[on.jsx(Y1,{path:"/magic_links/*",element:on.jsx(h6s,{})}),on.jsx(Y1,{path:"/collect-payment/:namespace/:token",element:on.jsx(m6s,{})}),on.jsx(Y1,{path:"/wise/callback/link-account/*",element:on.jsx(g6s,{})}),on.jsx(Y1,{path:"/page-not-found",element:on.jsx(Uwt,{})}),on.jsx(Y1,{path:"/",element:on.jsx(l6s,{})}),on.jsx(Y1,{path:"/aicfo",element:on.jsx(w6s,{})}),on.jsx(Y1,{path:"/onboarding/auth",element:on.jsx(x6s,{})}),on.jsx(Y1,{path:"/:tenantEmailDomain/*",element:on.jsx(E6s,{children:on.jsxs(y7s,{children:[on.jsxs(I6s,{children:[s!=null?on.jsx(e6s,{}):null,n?on.jsx(Hwt,{setTenantEmailDomain:e}):on.jsx(r5e,{children:on.jsx(Hwt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(qys,{}),on.jsx(D6s,{isOpen:g,children:on.jsx(U7s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(Y1,{path:"/signin/auth",element:on.jsx(r5e,{children:on.jsx(u6s,{setTenantEmailDomain:e})})}),on.jsx(Y1,{path:"/signin/magic-link",element:on.jsx(r5e,{children:on.jsx(p6s,{})})}),on.jsx(Y1,{path:"/signout",element:on.jsx(y6s,{})}),on.jsx(Y1,{path:"/connection/auth",element:on.jsx(d6s,{})}),on.jsx(Y1,{path:"/oauth/hubspot/callback",element:on.jsx(f6s,{})}),on.jsx(Y1,{path:"/oauth/authorize",element:on.jsx(b6s,{})}),on.jsx(Y1,{path:"*",element:on.jsx(Uwt,{})})]})})})},S6s=({children:e})=>{const{isOpen:n,width:i}=QS();return on.jsx($6s,{commentsDrawerWidth:n?i:0,children:e})},k6s=CS("div")`
|
|
92370
|
+
`,e6s=()=>{const[e,n]=m.useState((()=>Dr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=zr((g=>yvt(g).fetchState)),u=zr((g=>Np(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Dr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Pln(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(pAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(J7s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},zwt="init-enter",t6s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||zwt);n6s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||zwt,c=i6s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),n6s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),i6s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},um=e=>m.lazy((async()=>{const n=e.toString(),i=Dr.getForceRefreshedComponents(),r=new Set(i),s=Dr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Dr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Dr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),HSs=(e,n,i)=>{const r=U8e(e),s=Qee(e),l=W8e(i,e);return(n||i||s||r||l)&&V8e(e.company)},zon=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Non=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),_on=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Von=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function yc(...e){const n=_l==="DEV"||_l==="QA";if(zon||Non||_on||Von)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function mD(...e){const n=_l==="DEV"||_l==="QA";if(zon||Non||_on||Von)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let sE=null,JM=!1;const bc=_l==="PROD"?"https://api.zeni.ai":_l==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function Nwt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${bc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const o6s={dashboard:function(e){return[...Nwt()]},reports:Nwt,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${bc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${bc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${bc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${bc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${bc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${bc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${bc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${bc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${bc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${bc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function _wt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,o6s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(yc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return yc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function Vwt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(yc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void mD("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);yc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{yc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),yc(` URL: ${u.url}`)}));const c=Jee(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),yc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){mD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else mD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r6s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Ng(),S=Dr.getSignedInUser(),{useFeatureGate:k}=Za(),{isFeatureEnabled:$}=k(wl.isReferralFeatureEnabled),j=Ln(),I=Ly(j?.loggedInUserRole??[]),E=zr((_=>Np(_))),{isFeatureEnabled:D}=k(wl.isDebitCardFeatureEnabled),L=W8e(D,E),F=U8e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=_wt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void yc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);yc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{Vwt(_,r,s).catch((M=>{mD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;yc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;yc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{JM&&(yc("[Idle Detection - Service Worker] 🏃 User became active again"),JM=!1),sE&&clearTimeout(sE),sE=setTimeout((()=>{JM||(yc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),JM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{yc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),sE&&(clearTimeout(sE),sE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),JM=!1}})({timeout:h,onIdle:()=>{if(b)return;yc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=_wt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(yc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),Vwt(z,r,s).catch((M=>{mD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):yc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(yc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;yc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){mD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function a6s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Ng(),u=zr((y=>Np(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=Za(),{isFeatureEnabled:x}=f(wl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(r6s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function s6s(e,n){const i=Ri.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const l6s=um((()=>Ad((()=>import("./DefaultTenantHome-DgZZzSS3.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),c6s=um((()=>Ad((()=>import("./AppDrawer-IgFoNmoU.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),Hwt=um((()=>Ad((()=>import("./ScreenRoutes-BETRDGIK.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),d6s=um((()=>Ad((()=>import("./ConnectionAuthScreen-CaChuRRr.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),u6s=um((()=>Ad((()=>import("./SignInScreen-CsHUYOP8.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),p6s=um((()=>Ad((()=>import("./MagicLinkSignInScreen-D3EUW5Lx.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),Uwt=um((()=>Ad((()=>import("./NotFoundScreen-DiDzsmTQ.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),h6s=um((()=>Ad((()=>import("./MagicLinkRoutes-6zPm7Mq6.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),m6s=um((()=>Ad((()=>import("./PaymentLinkScreen-DKlYcyU-.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),g6s=um((()=>Ad((()=>import("./WiseConfirmationScreen-BulJKPGJ.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),f6s=um((()=>Ad((()=>import("./HubSpotOAuthCallbackScreen-3hGk6JKH.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),x6s=um((()=>Ad((()=>import("./CustomerOnboardingAuthScreen-Cy2yXNUw.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),y6s=um((()=>Ad((()=>import("./SignOutScreen-hEqypkGs.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),b6s=um((()=>Ad((()=>import("./OAuthConsentScreen-WkoAUQ1C.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),w6s=()=>{const e=Ng(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=s6s("/",n);return on.jsx(hCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function C6s(){const{isOpen:e}=QS(),n=udi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=$je(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const v6s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Dr.isSignedIn(),r=zr((j=>Np(j))),s=Dr.getSignedInUser(),l=i&&Nz(s),c=zr((j=>Mln(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Pp(),p=Ud(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=hon(),g=Oje(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=Za(),{isFeatureEnabled:v}=C(wl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Oln())}),[u,h]);const S=Ng().pathname.includes("/collect-payment/"),k=on.jsx(A6s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return on.jsx(fWe,{children:on.jsx(d3t,{children:on.jsx(T8e.Provider,{value:w,children:k})})});const $=on.jsxs(T8e.Provider,{value:w,children:[on.jsx(C6s,{}),on.jsxs(j6s,{children:[on.jsx(c6s,{tenantEmailDomain:e}),on.jsx(S6s,{children:k})]})]});return on.jsx(fWe,{children:r.tenantId!=null?on.jsx(T0a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Ux.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Ux.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(d3t,{children:$})})},A6s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=zr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=Za(),{configValue:c}=l(Gx.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=Dje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=$je();return m.useEffect((()=>{h(gon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(a6s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Crn,{children:[on.jsx(Y1,{path:"/magic_links/*",element:on.jsx(h6s,{})}),on.jsx(Y1,{path:"/collect-payment/:namespace/:token",element:on.jsx(m6s,{})}),on.jsx(Y1,{path:"/wise/callback/link-account/*",element:on.jsx(g6s,{})}),on.jsx(Y1,{path:"/page-not-found",element:on.jsx(Uwt,{})}),on.jsx(Y1,{path:"/",element:on.jsx(l6s,{})}),on.jsx(Y1,{path:"/aicfo",element:on.jsx(w6s,{})}),on.jsx(Y1,{path:"/onboarding/auth",element:on.jsx(x6s,{})}),on.jsx(Y1,{path:"/:tenantEmailDomain/*",element:on.jsx(E6s,{children:on.jsxs(y7s,{children:[on.jsxs(I6s,{children:[s!=null?on.jsx(e6s,{}):null,n?on.jsx(Hwt,{setTenantEmailDomain:e}):on.jsx(r5e,{children:on.jsx(Hwt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(qys,{}),on.jsx(D6s,{isOpen:g,children:on.jsx(U7s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(Y1,{path:"/signin/auth",element:on.jsx(r5e,{children:on.jsx(u6s,{setTenantEmailDomain:e})})}),on.jsx(Y1,{path:"/signin/magic-link",element:on.jsx(r5e,{children:on.jsx(p6s,{})})}),on.jsx(Y1,{path:"/signout",element:on.jsx(y6s,{})}),on.jsx(Y1,{path:"/connection/auth",element:on.jsx(d6s,{})}),on.jsx(Y1,{path:"/oauth/hubspot/callback",element:on.jsx(f6s,{})}),on.jsx(Y1,{path:"/oauth/authorize",element:on.jsx(b6s,{})}),on.jsx(Y1,{path:"*",element:on.jsx(Uwt,{})})]})})})},S6s=({children:e})=>{const{isOpen:n,width:i}=QS();return on.jsx($6s,{commentsDrawerWidth:n?i:0,children:e})},k6s=CS("div")`
|
|
92371
92371
|
display:flex;
|
|
92372
92372
|
`,j6s=CS("div")`
|
|
92373
92373
|
display: flex;
|
|
@@ -92489,4 +92489,4 @@ ${zM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92489
92489
|
}
|
|
92490
92490
|
`,q6s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(U6s,{style:n,children:[on.jsxs(W6s,{children:[on.jsx(GG,{children:on.jsx(V0,{width:96,height:20})}),on.jsxs(GG,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:78,height:16}),on.jsx(V0,{width:46,height:16})]}),on.jsxs(GG,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:110,height:16}),on.jsx(V0,{width:84,height:16})]}),on.jsxs(GG,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:84,height:16}),on.jsx(V0,{width:64,height:16})]})]}),on.jsxs(Q6s,{children:[on.jsxs(Y6s,{children:[on.jsx(V0,{width:106,height:27}),on.jsx(V0,{width:111,height:32})]}),on.jsx(G6s,{children:on.jsx(H6s,{width:96,height:96})})]})]}):null;function K6s({minDisplayTime:e=0}){const{isLoading:n}=Dje(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Dr.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)i||(r(!0),l.current=Date.now());else if(!n&&i){document.querySelector("#app-shell-loader")?.remove();const c=l.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);s.current=setTimeout((()=>{r(!1),l.current=null}),u)}else r(!1)}}),[n,i,e]),m.useEffect((()=>()=>{s.current&&clearTimeout(s.current)}),[]),!n&&i||!i?null:on.jsx(q6s,{fetchState:"In-Progress"})}const Z6s=()=>{const[e,n]=m.useState((()=>Dr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Dr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},Ywt="missing-receipts-batch-completed";let B8e=null,P8e=!1;function WSs(e,n){if(!n)return B8e=null,void(P8e=!1);B8e=e,P8e=!0}const J6s=()=>{const e=Pp(),{useFeatureGate:n}=Za(),{isFeatureEnabled:i}=n(wl.isReconV3Enabled),r=zr((l=>bvt(l)?.reconciliation?.accountReconciliationsByAccountID)),s=m.useRef({});m.useEffect((()=>{i===!0&&r!=null&&Object.entries(r).forEach((([l,c])=>{const d=c.statementParseStatus.fetchState,u=s.current[l]??"Not-Started";c.statementProcessingDismissedToBackground!==!0||(function(p){return P8e&&B8e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(mvt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:sss(c)},{variableName:"_transaction_count_",variableValue:String(lss(c))}]})),s.current[l]=d}))}),[r,e,i])},Gwt="reconciliation-status-updated",qwt="statement-status-updated",Kwt="combined-statement-group-updated";function X6s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function ebs(e,n,i,r,s,l){const c=i.account_id;if(c==null||c==="")return;const d=i.new_statement_data_status?.code;if(d==="deleting"||(e(wvt(n,c,!0,!0)),r!==!0))return;const u=i.statement_upload_id,p=u!=null&&u!=="",h=d==="parsed_awaiting_mapping"&&s===!0&&p===!0,g=d==="processed"&&p===!0&&(s!==!0||(function(f,x,y){return f!=null&&Object.values(f.accountReconciliationsByAccountID).some((b=>{const w=b.confirmedCombinedStatementUploads;if((w?.length??0)===0)return!1;const C=y!=null&&y!==""&&w?.some((S=>S.statementUploadId===y))===!0,v=w?.some((S=>S.accountId===x))===!0;return C===!0||v===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(_ln({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Cvt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function tbs(e,n,i,r,s,l){if(r!==!0||s!==!0)return;const c=i.group_status;if(c!=="processed"&&c!=="processing_failed")return;const d=(function(u,p){const h=p.combined_statement_group_id?.trim();if(u==null||h==null||h==="")return;const g=p.statement_upload_id?.trim()??"",f=Object.entries(u.accountReconciliationsByAccountID),x=(y,b)=>{const w=(function(C,v){return v!==""?v:C.confirmedCombinedStatementUploads?.find((S=>S.isCombinedStatementAnchor===!0))?.statementUploadId??C.confirmedCombinedStatementUploads?.[0]?.statementUploadId??C.accountReconEntity.statementMetaData?.statementUploadId??C.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??""})(b,g);if(w!=="")return{accountId:y,combinedStatementGroupId:h,statementUploadId:w}};for(const[y,b]of f){if(X6s(b)!==h)continue;const w=x(y,b);if(w!=null)return w}for(const[y,b]of f){const w=(b.confirmedCombinedStatementUploads?.length??0)>0,C=b.localData?.statementAccountScope==="multi_account";if(w!==!0&&C!==!0)continue;const v=x(y,b);if(v!=null)return v}})(l,i);d!=null&&(e(wvt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Vln({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Cvt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function nbs(){let e=Qwt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(Ux)}`);const n=Dr.getSignedInUser(),i=n!=null?(function(){const l=window.location.pathname.split("/").filter(Boolean)[0],c=["signin","signout"];if(l!=null&&!c.includes(l)){const u=Dr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Dr.getActiveTenantForUser()?.tenantId})():void 0,r=Wln(Ux,n?.userId,n?.zeniSessionId,i,pD(),rbs);h5e();const s=Jee();return s.userId!=null&&Gm.identify(s.userId,{tenant_id:s.tenantId}),r})(),Uon=e,h5e().then((()=>{const n=Qwt();n!=null&&(ub.reset(),_6s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),ern(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
92491
92491
|
|
|
92492
|
-
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const qG=new Hln,Zwt=()=>{const e=Pp(),n=Dr.getSignedInUser(),i=zr((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=Za(),{configValue:N,isDynamicConfigLoading:_}=F(RCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return KW;const T=z1t(N.users_disabled_for_auto_logout),M=z1t(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:y2e(N.heartbeat_interval_minutes,KW.heartbeatIntervalMinutes),idleTimeoutMinutes:y2e(N.idle_timeout_minutes,KW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:y2e(N.warning_duration_seconds,KW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(mAe,"auto-logout"),sessionStorage.setItem(gAe,String(F.idleTimeoutMinutes)),sessionStorage.setItem(fAe,String(Date.now())),LF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(MRt(),LF=void 0),s(null),qG.stop(),e(Qln()),e(Yln(!1)),Dr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return qG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Gln()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>qG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=zr((L=>qln(L,i.companyId))),u=Ud(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(s$e())}),[]);const h=zr((L=>Kln(L)));(()=>{const L=Oee(),F=Pp(),{useFeatureGate:N}=Za(),{isFeatureEnabled:_}=N(wl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Dr.getSignedInUser()?.userId;if(z==null)return;const T=hD(L,z),M=O=>{F(Nln({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(Ywt,M),()=>{T.unbind(Ywt,M)}}),[L,F,_])})(),(()=>{const L=Oee(),F=Pp(),{useFeatureGate:N}=Za(),{isFeatureEnabled:_}=N(wl.isReconV3Enabled),{isFeatureEnabled:z}=N(wl.isReconciliationCombinedStatementEnabled),T=zr((Y=>Np(Y)?.companyId)),M=zr((Y=>bvt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,V=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const Y={month:V,year:W},q=hD(L,T),K=ee=>{ebs(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{tbs(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(Gwt,K),q.bind(qwt,K),q.bind(Kwt,J),()=>{q.unbind(Gwt,K),q.unbind(qwt,K),q.unbind(Kwt,J)}}),[L,F,_,z,T,V,W])})(),J6s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Zln(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Jln(F))}},y=m.useMemo((()=>Dr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=Za(),{isFeatureEnabled:C}=w(wl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(wl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(wl.isInvoicingFeatureEnabled),k=e3a(),$=i?.userRole!=null&&xs(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||_l==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&ECt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>N6s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:trn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(k_n,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(x_n,{toolkit:D,children:on.jsxs($Nn,{endPoint:{url:Sje},children:[on.jsx(ear,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(s$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(T6s,{...x})]})}),r!=null&&n!=null?on.jsx($ys,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),qG.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},ibs=()=>{const e=Dr.isSignedIn(),n=zr((c=>Np(c))).companyId,i=zr((c=>Uln(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Z6s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:Iwt,featureClientSecret:Gs.featureClientSecret,providerEndPoint:Fz.statsigBaseUrl})),[Iwt,Gs.featureClientSecret,Fz.statsigBaseUrl]);return n?on.jsx(oWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(Zwt,{})}):on.jsx(Zwt,{})},obs=Xon((function(){const e=m.useMemo((()=>nbs()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{h5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(L6s,{children:on.jsx(vrn,{store:e,children:on.jsx(V6s,{value:n,children:on.jsxs(Zys,{children:[on.jsx(K6s,{}),on.jsx(F6n,{children:on.jsx(j7s,{children:on.jsxs(g_n,{children:[r?on.jsx(pci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(ibs,{})]})})})]})})})})}));function rbs(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const abs=!!(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}$/)),Jwt=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function Xwt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.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"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Qon="zeni:env-keys:",Fee=`${Qon}${_l}:5.3.99-dev-47561a552`,eCt="zeni.ai";function sbs(e){return Yon(e)}function tCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(sbs)}const a5e="o4504609050525696",lbs={SENTRY_DSN:[`${a5e}.ingest.sentry.io`,`${a5e}.ingest.us.sentry.io`,`${a5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},cbs=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,dbs=["WEB_ENDPOINT"];function Yon(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===eCt||n.hostname.endsWith(`.${eCt}`))}const ubs=["PUSHER_CLUSTER","UNIT_VAULT_ID"],pbs=/^[A-Za-z0-9_-]+$/,hbs=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),mbs=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),gbs=/^pk_(live|test)_[A-Za-z0-9]+$/,fbs=/^[A-Za-z0-9_.-]+$/,xbs=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function ybs(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!tCt(n.apiEndPoints)||!tCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(hbs.some((h=>i[h]==null))||mbs.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(lbs).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=ubs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&pbs.test(g)})),u=dbs.every((h=>{const g=l[h];return g==null||(function(f){if(Yon(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&cbs.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&gbs.test(l.STRIPE_KEY))&&xbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&fbs.test(g)}));return c&&d&&u&&p}function s5e(){try{window.localStorage.removeItem(Fee)}catch{}}function bbs(e){try{window.localStorage.setItem(Fee,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(Qon)&&r!==Fee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Gon(e){if(e==null||e==="")return null;try{const n=JSON.parse(Gin(e,qin+_l));return ybs(n)?n:null}catch{return null}}function nCt(e){return Gon(e)!=null&&(bbs(e),!0)}const iCt="zeni-chunk-reload-at",wbs=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function oCt(e){try{const n=Number(sessionStorage.getItem(iCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(iCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let l5e=!1,rCt=null;const aCt="//js.hs-scripts.com/5991084.js",sCt="hs-script-loader",Cbs=Dr.getSignedInUser(),vbs=Cbs?.zeniSessionId;function Abs(){const e=()=>{const n=Gs.sentryDsn?.trim();if(!n)return;const i=Gs.sentryProfileSamplingRate>0,r=_l==="PROD";nrn({dsn:n,environment:Vys,tracesSampleRate:Gs.sentryTraceSamplingRate,profilesSampleRate:i?Gs.sentryProfileSamplingRate:0,integrations:[irn(),...i?[orn()]:[],...r?[rrn({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),arn("session-id",vbs),(function(){if(EK==null)return;const s=EK;EK=void 0;try{if(window.sessionStorage.getItem(lCt)!=null)return;window.sessionStorage.setItem(lCt,s)}catch{}srn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.99-dev-47561a552"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function qon(){vcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Arn,{children:on.jsx(obs,{})})})),Abs()}let EK;function M8e(e){EK=e}const lCt="zeni:env-keys-rejection-reported";function Sbs(){const e=(function(){try{const i=window.localStorage.getItem(Fee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return s5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(s5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Gon(e);return n==null?(M8e("untrusted-or-unreadable"),s5e(),!1):(Zin(n),qon(),!0)}var QC;window.addEventListener("vite:preloadError",(e=>{const n=e;oCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return wbs.some((r=>i.includes(r)))})(e.reason)&&oCt(e.reason)})),(async function(){try{if(Sbs())return void(async function(){const i=await Dwt();typeof i=="string"&&i.length>0&&!nCt(i)&&M8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await Dwt(),n=Gin(e,qin+_l);Zin(JSON.parse(n)),nCt(e)||M8e("network-untrusted-payload"),qon()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):rCt!==null||(rCt=new Promise((e=>{if(l5e)return void e(!0);const n=()=>{l5e?e(!0):(l5e=!0,new Promise(((r,s)=>{if(document.getElementById(sCt))return void r();const l=document.createElement("script");l.id=sCt,l.src=aCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${aCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;abs?(e=Jwt,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):Xwt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):Xwt(Jwt)}))}})(),(QC=console.log)&&QC instanceof Function&&Ad((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(QC),n(QC),i(QC),r(QC),s(QC)}));export{me as $,Rje as A,L7s as B,VSs as C,o as D,Qli as E,jAe as F,ae as G,um as H,Wbs as I,zQi as J,LSs as K,gon as L,_l as M,_6s as N,rBi as O,wl as P,Ri as Q,M9s as R,o8s as S,Qwt as T,T9s as U,Ln as V,Gs as W,r8s as X,Kn as Y,zbs as Z,e3a as _,$je as a,UCs as a$,yCs as a0,X3i as a1,TSs as a2,bCs as a3,wCs as a4,q7s as a5,uAe as a6,H6s as a7,QYo as a8,R as a9,vSo as aA,a8s as aB,Zws as aC,Kws as aD,Xx as aE,XYt as aF,Jws as aG,_bs as aH,Oee as aI,$7s as aJ,YCs as aK,GCs as aL,D9s as aM,$Cs as aN,Mws as aO,Rws as aP,RSe as aQ,DCs as aR,ICs as aS,Fws as aT,Ows as aU,I9s as aV,RMt as aW,pSs as aX,QCs as aY,HCs as aZ,WCs as a_,CCs as aa,lSs as ab,Ux as ac,P as ad,Nbs as ae,iCs as af,z9s as ag,eCs as ah,i8s as ai,ESs as aj,l8s as ak,f7s as al,Lon as am,PSs as an,b7s as ao,x7s as ap,MSs as aq,Y9s as ar,Lp as as,Sje as at,Fwt as au,uAs as av,Svs as aw,Ei as ax,Lws as ay,Tws as az,s6s as b,Aws as b$,n8s as b0,t8s as b1,Ews as b2,qws as b3,Ni as b4,x_n as b5,tCs as b6,$9o as b7,s8s as b8,dEi as b9,pAs as bA,Pws as bB,Xbs as bC,e9s as bD,Jbs as bE,pD as bF,ECs as bG,G8s as bH,K8s as bI,q8s as bJ,W8s as bK,U8s as bL,Z8s as bM,vCs as bN,Q8s as bO,Y8s as bP,X8s as bQ,Ds as bR,KCs as bS,ACs as bT,sws as bU,rws as bV,vSs as bW,Yws as bX,fSs as bY,uws as bZ,dws as b_,wNt as ba,kCs as bb,SCs as bc,jCs as bd,O9s as be,In as bf,ya as bg,Ion as bh,Gx as bi,DSs as bj,N7s as bk,Q9s as bl,G9s as bm,JCs as bn,jje as bo,Yys as bp,L9s as bq,mMi as br,dBt as bs,c8s as bt,S7s as bu,lws as bv,Kbs as bw,t9s as bx,Cve as by,Zbs as bz,uFt as c,Vws as c$,vws as c0,$ws as c1,jws as c2,ews as c3,tws as c4,Xws as c5,nCs as c6,nws as c7,iws as c8,ows as c9,sSs as cA,vAs as cB,nSs as cC,EAs as cD,at as cE,CAs as cF,Zi as cG,qAs as cH,AAs as cI,$As as cJ,KAs as cK,zAs as cL,NAs as cM,_As as cN,RAs as cO,VAs as cP,FAs as cQ,q6s as cR,r9s as cS,Iws as cT,Dws as cU,hAs as cV,aws as cW,jSs as cX,xSs as cY,_ws as cZ,Uws as c_,kws as ca,Sws as cb,iSs as cc,tSs as cd,SAs as ce,LAs as cf,kAs as cg,fAs as ch,bAs as ci,ZAs as cj,IAs as ck,WAs as cl,QAs as cm,UAs as cn,wAs as co,jAs as cp,aSs as cq,oSs as cr,rSs as cs,JAs as ct,DAs as cu,eSs as cv,XAs as cw,TAs as cx,HAs as cy,xAs as cz,Za as d,k4o as d$,Hbs as d0,zws as d1,Nws as d2,pAe as d3,Wws as d4,Gws as d5,Ems as d6,Ngs as d7,Txe as d8,ASs as d9,ovs as dA,fvs as dB,i9s as dC,o9s as dD,yvs as dE,mvs as dF,hvs as dG,tvs as dH,gvs as dI,qCs as dJ,I0a as dK,sAs as dL,dAs as dM,gAs as dN,mAs as dO,cSs as dP,sss as dQ,Ybs as dR,mSs as dS,hSs as dT,WSs as dU,Hqi as dV,Bws as dW,udi as dX,QS as dY,aen as dZ,$Ss as d_,SSs as da,kSs as db,CSs as dc,F9s as dd,cqt as de,uvs as df,dvs as dg,lvs as dh,pvs as di,cvs as dj,ySs as dk,svs as dl,avs as dm,xvs as dn,evs as dp,ivs as dq,n9s as dr,Hws as ds,cr as dt,BYr as du,nvs as dv,Bon as dw,ZCs as dx,rvs as dy,XCs as dz,Z6s as e,uSs as e0,cws as e1,gSs as e2,oAs as e3,Avs as e4,vvs as e5,Cvs as e6,o7s as e7,r7s as e8,QR as e9,k7s as ea,B7s as eb,ton as ec,_7s as ed,Fye as ee,kin as ef,Sin as eg,Qbs as eh,t7s as ei,i7s as ej,n7s as ek,Hys as el,Jys as em,Xin as en,BSs as eo,Oje as f,USs as g,HSs as h,FSs as i,Ut as j,Ubs as k,Gm as l,A as m,_Ss as n,NSs as o,xT as p,zSs as q,T7s as r,OSs as s,ub as t,Dje as u,ISs as v,Mon as w,RSs as x,I7s as y,Dr as z};
|
|
92492
|
+
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const qG=new Hln,Zwt=()=>{const e=Pp(),n=Dr.getSignedInUser(),i=zr((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=Za(),{configValue:N,isDynamicConfigLoading:_}=F(RCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return KW;const T=z1t(N.users_disabled_for_auto_logout),M=z1t(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:y2e(N.heartbeat_interval_minutes,KW.heartbeatIntervalMinutes),idleTimeoutMinutes:y2e(N.idle_timeout_minutes,KW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:y2e(N.warning_duration_seconds,KW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(mAe,"auto-logout"),sessionStorage.setItem(gAe,String(F.idleTimeoutMinutes)),sessionStorage.setItem(fAe,String(Date.now())),LF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(MRt(),LF=void 0),s(null),qG.stop(),e(Qln()),e(Yln(!1)),Dr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return qG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Gln()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>qG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=zr((L=>qln(L,i.companyId))),u=Ud(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(s$e())}),[]);const h=zr((L=>Kln(L)));(()=>{const L=Oee(),F=Pp(),{useFeatureGate:N}=Za(),{isFeatureEnabled:_}=N(wl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Dr.getSignedInUser()?.userId;if(z==null)return;const T=hD(L,z),M=O=>{F(Nln({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(Ywt,M),()=>{T.unbind(Ywt,M)}}),[L,F,_])})(),(()=>{const L=Oee(),F=Pp(),{useFeatureGate:N}=Za(),{isFeatureEnabled:_}=N(wl.isReconV3Enabled),{isFeatureEnabled:z}=N(wl.isReconciliationCombinedStatementEnabled),T=zr((Y=>Np(Y)?.companyId)),M=zr((Y=>bvt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,V=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const Y={month:V,year:W},q=hD(L,T),K=ee=>{ebs(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{tbs(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(Gwt,K),q.bind(qwt,K),q.bind(Kwt,J),()=>{q.unbind(Gwt,K),q.unbind(qwt,K),q.unbind(Kwt,J)}}),[L,F,_,z,T,V,W])})(),J6s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Zln(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Jln(F))}},y=m.useMemo((()=>Dr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=Za(),{isFeatureEnabled:C}=w(wl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(wl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(wl.isInvoicingFeatureEnabled),k=e3a(),$=i?.userRole!=null&&xs(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||_l==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&ECt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>N6s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:trn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(k_n,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(x_n,{toolkit:D,children:on.jsxs($Nn,{endPoint:{url:Sje},children:[on.jsx(ear,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(s$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(T6s,{...x})]})}),r!=null&&n!=null?on.jsx($ys,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),qG.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},ibs=()=>{const e=Dr.isSignedIn(),n=zr((c=>Np(c))).companyId,i=zr((c=>Uln(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Z6s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:Iwt,featureClientSecret:Gs.featureClientSecret,providerEndPoint:Fz.statsigBaseUrl})),[Iwt,Gs.featureClientSecret,Fz.statsigBaseUrl]);return n?on.jsx(oWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(Zwt,{})}):on.jsx(Zwt,{})},obs=Xon((function(){const e=m.useMemo((()=>nbs()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{h5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(L6s,{children:on.jsx(vrn,{store:e,children:on.jsx(V6s,{value:n,children:on.jsxs(Zys,{children:[on.jsx(K6s,{}),on.jsx(F6n,{children:on.jsx(j7s,{children:on.jsxs(g_n,{children:[r?on.jsx(pci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(ibs,{})]})})})]})})})})}));function rbs(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const abs=!!(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}$/)),Jwt=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function Xwt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.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"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Qon="zeni:env-keys:",Fee=`${Qon}${_l}:5.3.99-qa-47561a552`,eCt="zeni.ai";function sbs(e){return Yon(e)}function tCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(sbs)}const a5e="o4504609050525696",lbs={SENTRY_DSN:[`${a5e}.ingest.sentry.io`,`${a5e}.ingest.us.sentry.io`,`${a5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},cbs=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,dbs=["WEB_ENDPOINT"];function Yon(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===eCt||n.hostname.endsWith(`.${eCt}`))}const ubs=["PUSHER_CLUSTER","UNIT_VAULT_ID"],pbs=/^[A-Za-z0-9_-]+$/,hbs=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),mbs=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),gbs=/^pk_(live|test)_[A-Za-z0-9]+$/,fbs=/^[A-Za-z0-9_.-]+$/,xbs=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function ybs(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!tCt(n.apiEndPoints)||!tCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(hbs.some((h=>i[h]==null))||mbs.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(lbs).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=ubs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&pbs.test(g)})),u=dbs.every((h=>{const g=l[h];return g==null||(function(f){if(Yon(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&cbs.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&gbs.test(l.STRIPE_KEY))&&xbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&fbs.test(g)}));return c&&d&&u&&p}function s5e(){try{window.localStorage.removeItem(Fee)}catch{}}function bbs(e){try{window.localStorage.setItem(Fee,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(Qon)&&r!==Fee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Gon(e){if(e==null||e==="")return null;try{const n=JSON.parse(Gin(e,qin+_l));return ybs(n)?n:null}catch{return null}}function nCt(e){return Gon(e)!=null&&(bbs(e),!0)}const iCt="zeni-chunk-reload-at",wbs=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function oCt(e){try{const n=Number(sessionStorage.getItem(iCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(iCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let l5e=!1,rCt=null;const aCt="//js.hs-scripts.com/5991084.js",sCt="hs-script-loader",Cbs=Dr.getSignedInUser(),vbs=Cbs?.zeniSessionId;function Abs(){const e=()=>{const n=Gs.sentryDsn?.trim();if(!n)return;const i=Gs.sentryProfileSamplingRate>0,r=_l==="PROD";nrn({dsn:n,environment:Vys,tracesSampleRate:Gs.sentryTraceSamplingRate,profilesSampleRate:i?Gs.sentryProfileSamplingRate:0,integrations:[irn(),...i?[orn()]:[],...r?[rrn({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),arn("session-id",vbs),(function(){if(EK==null)return;const s=EK;EK=void 0;try{if(window.sessionStorage.getItem(lCt)!=null)return;window.sessionStorage.setItem(lCt,s)}catch{}srn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.99-qa-47561a552"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function qon(){vcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Arn,{children:on.jsx(obs,{})})})),Abs()}let EK;function M8e(e){EK=e}const lCt="zeni:env-keys-rejection-reported";function Sbs(){const e=(function(){try{const i=window.localStorage.getItem(Fee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return s5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(s5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Gon(e);return n==null?(M8e("untrusted-or-unreadable"),s5e(),!1):(Zin(n),qon(),!0)}var QC;window.addEventListener("vite:preloadError",(e=>{const n=e;oCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return wbs.some((r=>i.includes(r)))})(e.reason)&&oCt(e.reason)})),(async function(){try{if(Sbs())return void(async function(){const i=await Dwt();typeof i=="string"&&i.length>0&&!nCt(i)&&M8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await Dwt(),n=Gin(e,qin+_l);Zin(JSON.parse(n)),nCt(e)||M8e("network-untrusted-payload"),qon()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):rCt!==null||(rCt=new Promise((e=>{if(l5e)return void e(!0);const n=()=>{l5e?e(!0):(l5e=!0,new Promise(((r,s)=>{if(document.getElementById(sCt))return void r();const l=document.createElement("script");l.id=sCt,l.src=aCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${aCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;abs?(e=Jwt,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):Xwt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):Xwt(Jwt)}))}})(),(QC=console.log)&&QC instanceof Function&&Ad((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(QC),n(QC),i(QC),r(QC),s(QC)}));export{me as $,Rje as A,L7s as B,VSs as C,o as D,Qli as E,jAe as F,ae as G,um as H,Wbs as I,zQi as J,LSs as K,gon as L,_l as M,_6s as N,rBi as O,wl as P,Ri as Q,M9s as R,o8s as S,Qwt as T,T9s as U,Ln as V,Gs as W,r8s as X,Kn as Y,zbs as Z,e3a as _,$je as a,UCs as a$,yCs as a0,X3i as a1,TSs as a2,bCs as a3,wCs as a4,q7s as a5,uAe as a6,H6s as a7,QYo as a8,R as a9,vSo as aA,a8s as aB,Zws as aC,Kws as aD,Xx as aE,XYt as aF,Jws as aG,_bs as aH,Oee as aI,$7s as aJ,YCs as aK,GCs as aL,D9s as aM,$Cs as aN,Mws as aO,Rws as aP,RSe as aQ,DCs as aR,ICs as aS,Fws as aT,Ows as aU,I9s as aV,RMt as aW,pSs as aX,QCs as aY,HCs as aZ,WCs as a_,CCs as aa,lSs as ab,Ux as ac,P as ad,Nbs as ae,iCs as af,z9s as ag,eCs as ah,i8s as ai,ESs as aj,l8s as ak,f7s as al,Lon as am,PSs as an,b7s as ao,x7s as ap,MSs as aq,Y9s as ar,Lp as as,Sje as at,Fwt as au,uAs as av,Svs as aw,Ei as ax,Lws as ay,Tws as az,s6s as b,Aws as b$,n8s as b0,t8s as b1,Ews as b2,qws as b3,Ni as b4,x_n as b5,tCs as b6,$9o as b7,s8s as b8,dEi as b9,pAs as bA,Pws as bB,Xbs as bC,e9s as bD,Jbs as bE,pD as bF,ECs as bG,G8s as bH,K8s as bI,q8s as bJ,W8s as bK,U8s as bL,Z8s as bM,vCs as bN,Q8s as bO,Y8s as bP,X8s as bQ,Ds as bR,KCs as bS,ACs as bT,sws as bU,rws as bV,vSs as bW,Yws as bX,fSs as bY,uws as bZ,dws as b_,wNt as ba,kCs as bb,SCs as bc,jCs as bd,O9s as be,In as bf,ya as bg,Ion as bh,Gx as bi,DSs as bj,N7s as bk,Q9s as bl,G9s as bm,JCs as bn,jje as bo,Yys as bp,L9s as bq,mMi as br,dBt as bs,c8s as bt,S7s as bu,lws as bv,Kbs as bw,t9s as bx,Cve as by,Zbs as bz,uFt as c,Vws as c$,vws as c0,$ws as c1,jws as c2,ews as c3,tws as c4,Xws as c5,nCs as c6,nws as c7,iws as c8,ows as c9,sSs as cA,vAs as cB,nSs as cC,EAs as cD,at as cE,CAs as cF,Zi as cG,qAs as cH,AAs as cI,$As as cJ,KAs as cK,zAs as cL,NAs as cM,_As as cN,RAs as cO,VAs as cP,FAs as cQ,q6s as cR,r9s as cS,Iws as cT,Dws as cU,hAs as cV,aws as cW,jSs as cX,xSs as cY,_ws as cZ,Uws as c_,kws as ca,Sws as cb,iSs as cc,tSs as cd,SAs as ce,LAs as cf,kAs as cg,fAs as ch,bAs as ci,ZAs as cj,IAs as ck,WAs as cl,QAs as cm,UAs as cn,wAs as co,jAs as cp,aSs as cq,oSs as cr,rSs as cs,JAs as ct,DAs as cu,eSs as cv,XAs as cw,TAs as cx,HAs as cy,xAs as cz,Za as d,k4o as d$,Hbs as d0,zws as d1,Nws as d2,pAe as d3,Wws as d4,Gws as d5,Ems as d6,Ngs as d7,Txe as d8,ASs as d9,ovs as dA,fvs as dB,i9s as dC,o9s as dD,yvs as dE,mvs as dF,hvs as dG,tvs as dH,gvs as dI,qCs as dJ,I0a as dK,sAs as dL,dAs as dM,gAs as dN,mAs as dO,cSs as dP,sss as dQ,Ybs as dR,mSs as dS,hSs as dT,WSs as dU,Hqi as dV,Bws as dW,udi as dX,QS as dY,aen as dZ,$Ss as d_,SSs as da,kSs as db,CSs as dc,F9s as dd,cqt as de,uvs as df,dvs as dg,lvs as dh,pvs as di,cvs as dj,ySs as dk,svs as dl,avs as dm,xvs as dn,evs as dp,ivs as dq,n9s as dr,Hws as ds,cr as dt,BYr as du,nvs as dv,Bon as dw,ZCs as dx,rvs as dy,XCs as dz,Z6s as e,uSs as e0,cws as e1,gSs as e2,oAs as e3,Avs as e4,vvs as e5,Cvs as e6,o7s as e7,r7s as e8,QR as e9,k7s as ea,B7s as eb,ton as ec,_7s as ed,Fye as ee,kin as ef,Sin as eg,Qbs as eh,t7s as ei,i7s as ej,n7s as ek,Hys as el,Jys as em,Xin as en,BSs as eo,Oje as f,USs as g,HSs as h,FSs as i,Ut as j,Ubs as k,Gm as l,A as m,_Ss as n,NSs as o,xT as p,zSs as q,T7s as r,OSs as s,ub as t,Dje as u,ISs as v,Mon as w,RSs as x,I7s as y,Dr as z};
|