@zeniai/web-app-ui 5.3.93-dev → 5.3.93-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-BTR8uKQK.js → AccountMappingScreen-BX_TgCEW.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-DpaCOnCM.js → ActualMatchingMatchDetailScreen-BuAecBJl.js} +1 -1
- package/dist/assets/AddressRoutes-CCVcXi3e.js +1 -0
- package/dist/assets/{AddressScreen-DWZzKMEw.js → AddressScreen-CmK0Z1Gk.js} +1 -1
- package/dist/assets/{AiCfoScreen-Dd__YIWm.js → AiCfoScreen-PdexPkiB.js} +1 -1
- package/dist/assets/{AppDrawer-D2Tl26uq.js → AppDrawer-D_pZzlzK.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DV_p_SQ2.js → BillPayApprovalRoutes-B0zQnc3l.js} +1 -1
- package/dist/assets/{BillPayRoutes-sNvDS-kN.js → BillPayRoutes-VIWjug-6.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CVijkaE8.js → BusinessVerificationPageScreen-B6MsK8ZB.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-DO_HCVwI.js → CardsAiCfoScreen-DmJ2Dapk.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-mt2g3Jg0.js → ChargeCardRoutes-Dffv4bgE.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-_f68duti.js → CompanyPassportScreen-CAlxZp4n.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-oPVi82Cx.js → ConnectionAuthScreen-BKfqdMMN.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BKlbrqkD.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BLRE7IK-.js → CustomerOnboardingRoutes-D8rEuaY_.js} +1 -1
- package/dist/assets/{DashboardRoutes-mQvE4jJ0.js → DashboardRoutes-f7LYLg2v.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Dh5bAcpG.js → DefaultTenantHome-C2oJ4Z_A.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-pkS3AD2d.js → DomesticWireDetailScreen-AW4yjv1_.js} +1 -1
- package/dist/assets/{DrawerScreen-DI4gxsFO.js → DrawerScreen-BxDe6c9S.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BH8_jvsw.js → EntityDetailRoutes-ePVPk-FN.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-_6qCRlW0.js → ExpenseAutomationRoutes-Ctfh4LIP.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-kue3YUvW.js → FeaturePreviewScreen-cSXIJHvM.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-D64pI0iU.js → HubSpotOAuthCallbackScreen-Coekh8J7.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-DrljtAmN.js → InboxNotificationsProvider-BYzYM_cO.js} +1 -1
- package/dist/assets/{InvoicingRoutes-D6QJ-LnU.js → InvoicingRoutes-CFnnpzb-.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DFwRCGOM.js → MagicLinkRoutes-BXcgUoFN.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-DaNmJtKR.js → MagicLinkSignInScreen-Cgc6upj0.js} +1 -1
- package/dist/assets/{MobileAppDrawer-D9iwyW6E.js → MobileAppDrawer-PknNExj-.js} +1 -1
- package/dist/assets/NotFoundScreen-BA5GK6fZ.js +1 -0
- package/dist/assets/{NotificationRoutes-CNN0JO68.js → NotificationRoutes-BYdtJyhh.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-CMQBCmUq.js → OAuthConsentScreen-Dsn5YLy4.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BhMRDGc1.js → PandLWithForecastRoutes-Bfj4W6hW.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-DstzeuhJ.js → PaymentLinkScreen-DzxyNsJc.js} +1 -1
- package/dist/assets/{PeopleRoutes-6Eq28etR.js → PeopleRoutes-Ca7RDuty.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DkxGB8dS.js → PerformanceRoutes-CtdCEpTT.js} +1 -1
- package/dist/assets/{Preview-Dfugi26f.js → Preview-Cu-MUKgE.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DNwlxY3R.js → QBOConnectionScreen-pIPlV1os.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CzKIB6lB.js → ReimbursementApprovalRoutes-AZUxWb79.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C0oxxTC0.js → ReimbursementApprovalRuleDetailScreen-DlhNa5Zp.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-C2uBm8Jr.js → ReimbursementRoutes-D6Z9PeOq.js} +1 -1
- package/dist/assets/{ReportsRoutes-CmRsRF1m.js → ReportsRoutes-DpEZmBno.js} +1 -1
- package/dist/assets/{RewardsRoutes-cYws_8FH.js → RewardsRoutes-CGv84UVK.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DKDzHrf0.js → ScheduleDetailsPrepaidExpensesScreen-C56nxOtH.js} +1 -1
- package/dist/assets/{ScreenRoutes-Cd2fvUao.js → ScreenRoutes-Dq8tSKSA.js} +2 -2
- package/dist/assets/{SettingsRoutes-DBJKrFxG.js → SettingsRoutes-BQaHGrfu.js} +1 -1
- package/dist/assets/{SetupPagesScreen-C70xRnVo.js → SetupPagesScreen-JaDZPyBb.js} +1 -1
- package/dist/assets/{SignInScreen-DB64sQry.js → SignInScreen-BPiC2SXK.js} +1 -1
- package/dist/assets/{SignOutScreen-RkBhfYpP.js → SignOutScreen-DrmKOkUx.js} +1 -1
- package/dist/assets/{TaskListScreen-DW7e6ef_.js → TaskListScreen-lNco8GQG.js} +1 -1
- package/dist/assets/{TaskRoutes-BRKcMi_T.js → TaskRoutes-hQtI-0Ne.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-C3MxiiB1.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DPKP2gGJ.js → TransactionDetailScreen-BaZRBpiD.js} +1 -1
- package/dist/assets/{TransactionListRoutes-CDs1-rA6.js → TransactionListRoutes-BMNG-mCk.js} +1 -1
- package/dist/assets/{TreasuryRoutes-BbsVM2lE.js → TreasuryRoutes-CTieXhH2.js} +1 -1
- package/dist/assets/{VendorsRoutes-B18gUSfI.js → VendorsRoutes-CuJ6l3u7.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CMKnfyei.js → WiseConfirmationScreen-B49tOG90.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CWU7HNHh.js → ZeniAccountRoutes-DCqzbBao.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BcWZ9nqz.js → ZeniAccountStatementScreen-D7kxRmlf.js} +1 -1
- package/dist/assets/{accountMappingHelper-PEq3iFwb.js → accountMappingHelper-CrsNnhds.js} +1 -1
- package/dist/assets/{analytics-wUVBNE2n.js → analytics-Bx-fDzHK.js} +1 -1
- package/dist/assets/{analyticsHelper-C8wUoU5C.js → analyticsHelper-gIdO7Mdz.js} +1 -1
- package/dist/assets/{core-DtSa7_zJ.js → core-B4xcCWwD.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CxfS79yY.js → decodeURIComponentSafe-Cemfdm8F.js} +1 -1
- package/dist/assets/{dnd-BRHUZ8LO.js → dnd-DAPYv1yt.js} +1 -1
- package/dist/assets/{empty-TXY6nS9o.js → empty-BZYLRXJG.js} +1 -1
- package/dist/assets/{empty--RCTsu0x.js → empty-De1pe7cM.js} +1 -1
- package/dist/assets/{emptyVideoElement-jsNpgByF.js → emptyVideoElement-BeM7zNIg.js} +1 -1
- package/dist/assets/{epic-NcSj2eco.js → epic-cOk9fI5o.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-BUiYzGxA.js → expenseAutomationHelper-DT7JkXm4.js} +1 -1
- package/dist/assets/{getLocaleForTenant-D03DEBIE.js → getLocaleForTenant-DTiA1xl1.js} +1 -1
- package/dist/assets/{index-BgQKS1TL.js → index-4oajNfRK.js} +1 -1
- package/dist/assets/{index-Cz1UMaoE.js → index-BRgafJlj.js} +1 -1
- package/dist/assets/{index-CeI_n1Jv.js → index-Bd0_NsrR.js} +1 -1
- package/dist/assets/{index-BfiunY7r.js → index-BmVAOx0d.js} +1 -1
- package/dist/assets/{index-DxlUZLeR.js → index-CDDSCoA2.js} +1 -1
- package/dist/assets/{index-Bfr7Ew4h.js → index-DA_RWywU.js} +1 -1
- package/dist/assets/{index-CJhgQFRI.js → index-Dhmnq53Y.js} +8 -8
- package/dist/assets/{index-CABDWa_r.js → index-yQhQQ1oc.js} +2 -2
- package/dist/assets/{lexical-CV0PpHfb.js → lexical-Ct1kS2bH.js} +1 -1
- package/dist/assets/{liveblocks-CZZ7TQJf.js → liveblocks-CFpJ3lBt.js} +1 -1
- package/dist/assets/{lottie-_8fQYf62.js → lottie-DJ3FaWjT.js} +1 -1
- package/dist/assets/{mui-hHF2bYsV.js → mui-B8AhwxrZ.js} +1 -1
- package/dist/assets/{pathToGoBack-sBV6PqT4.js → pathToGoBack-Bf-EUmYS.js} +1 -1
- package/dist/assets/{pdf-DcTPEGUQ.js → pdf-BJPlJ9jJ.js} +3 -3
- package/dist/assets/{pdf-lib-DvlP1tZv.js → pdf-lib-DHIhGaxw.js} +1 -1
- package/dist/assets/{plaid-l93gkere.js → plaid-DygABMyK.js} +1 -1
- package/dist/assets/{pusher-Chl1DxG2.js → pusher-CvM5lN-w.js} +1 -1
- package/dist/assets/{react-Ct10qt1E.js → react-B4HMf5As.js} +1 -1
- package/dist/assets/{react-B6u5wAGC.js → react-BFfN-39Q.js} +1 -1
- package/dist/assets/{react-BPJWvFAw.js → react-CEuXmahb.js} +1 -1
- package/dist/assets/{react-UkV3Bwgo.js → react-D_ZzsTWD.js} +1 -1
- package/dist/assets/{react-DvOc8dL3.js → react-b9RyyXpT.js} +1 -1
- package/dist/assets/{react-BXuuk3m7.js → react-jh-NMtWH.js} +1 -1
- package/dist/assets/{recharts-DHYb1iJa.js → recharts-D65Mp-4O.js} +1 -1
- package/dist/assets/{routePaths-66PPW-xS.js → routePaths-u4VdP_Vd.js} +1 -1
- package/dist/assets/{sentry-7oL5NFUY.js → sentry-DXRU_0Gm.js} +1 -1
- package/dist/assets/{stripSplatSuffix-Cj4hZLSk.js → stripSplatSuffix-DxveybUa.js} +1 -1
- package/dist/assets/{url-AXfPza2U.js → url-Bq1xmidF.js} +1 -1
- package/dist/assets/{url-yW-1Hcty.js → url-CRJKll1O.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-Bv7_wq27.js → useActualMatchingMatchDetail-BPxS7o9O.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B0543FEo.js → useAiCfoDashboardSuggestedQuestionsChips-AC_haZph.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-C0sjuZuZ.js → useAskAiCfoHostNavButtonProps-DOhr7Jea.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DLwmfLZC.js → useChargeCardPusherEvents-HIkJLjrd.js} +1 -1
- package/dist/assets/{useDeviceId-DpOlnzI_.js → useDeviceId-CP6WbFos.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-DWBnl6oa.js → useEmailConnectResultRefresh-C8XZBLif.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Cf6qZ2C0.js → useInitialThreadRequest-BZhBhiT0.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-zRd8th0q.js → useTaskManagerAccess-CXACI9oH.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CtTv0DPD.js → useTaskManagerPusherEvents-CCoo7hJZ.js} +1 -1
- package/dist/assets/{utils-D3PNq8pk.js → utils-C2swztfg.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DVXJCqK3.js → withTransactionSidePanel-DeGcwtOM.js} +1 -1
- package/dist/assets/{zeni-epic-state-DIQk-W8f.js → zeni-epic-state-z7dEhSaI.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-GFLqbgTr.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-C3FMpb4J.js +0 -1
- package/dist/assets/NotFoundScreen-DHpPkJUq.js +0 -1
- package/dist/assets/TransactionDetailRoutes-BFBaFYFk.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-
|
|
2
|
-
import{R as B,b as d5e,a as m,r as Kh,g as O8t,p as tre,d as Dke,f as rin,s as Tke,i as ain,w as sin,j as lin,S as cin,k as din,l as uin,m as pin,n as hin,o as min,q as gin}from"./sentry-7oL5NFUY.js";import{L as fin,C as Lke,_ as Fp,a as xin,b as nz,c as yin,d as JX,e as iz,u as F8t,T as bin,f as win,g as Cin,h as vin,i as Ain,k as R8t,l as Sin,m as kin,j as en}from"./liveblocks-CZZ7TQJf.js";import{f as z8t,r as Aa,P as Dl,R as jin,O as $in,N as N8t,u as Sp,g as Dg,h as XX,i as _8t,j as Rr,m as P9e,s as Wq,k as V8t,l as Ein,n as Iin,o as R1,p as Din,B as Tin}from"./core-DtSa7_zJ.js";import{L as Bke,bl as Lin,bm as Bin,bn as oz,bo as Pin,bp as Min,bq as ps,br as Yt,bs as HD,bt as H8t,bu as T3,bv as Oin,bw as ey,bx as ks,by as Fin,bz as Rin,bA as zin,bB as L1,bC as Ip,bD as UF,bE as u9,bF as xn,bG as U8t,bH as S1,bI as va,bJ as NI,bK as W8t,bL as Q8t,bM as M9e,bN as v5,bO as Pu,bP as b7,bQ as Nin,bR as wc,bS as _in,bT as UD,bU as Vin,bV as Hin,bW as Qq,bX as Uin,bY as Win,bZ as Yq,b_ as Qin,b$ as Yin,c0 as p9,c1 as Pke,c2 as Gin,c3 as qin,c4 as Kin,c5 as Zin,c6 as Jin,c7 as Xin,c8 as eon,c9 as w7,ca as eee,cb as ton,cc as tee,cd as nee,ce as iee,cf as O9e,cg as gA,ch as fA,ci as rz,cj as _I,ck as VI,cl as xA,cm as oee,cn as _v,co as non,cp as Mke,cq as ion,cr as oon,cs as ron,ct as aon,cu as Y8t,cv as son,cw as lon,cx as q8,cy as Oke,cz as con,cA as don,cB as uon,cC as ZA,cD as JA,cE as G8t,cF as q8t,cG as F9e,cH as pon,cI as K8t,cJ as hon,cK as Gq,cL as Z8t,cM as mon,cN as J8t,cO as gon,cP as CM,cQ as fon,cR as xon,cS as Fke,cT as yon,cU as R9e,cV as z9e,cW as bon,cX as won,cY as Con,cZ as von,c_ as GN,c$ as HI,d0 as qN,d1 as Aon,d2 as Son,d3 as X8t,d4 as kon,d5 as jon,d6 as $on,d7 as Eon,d8 as Ion,d9 as ewt,da as Rke,db as Don,dc as N9e,dd as Ton,de as Lon,df as Bon,dg as twt,dh as qd,di as Bl,dj as ree,dk as Pon,dl as Mon,dm as f1,dn as nwt,dp as Oon,dq as WF,dr as Vv,ds as Ls,dt as zke,du as Fon,dv as Ron,dw as zon,dx as iwt,dy as _9e,dz as KN,dA as owt,dB as Non,dC as _on,dD as Von,dE as Hon,dF as Uon,dG as rg,dH as Won,dI as Qon,dJ as Yon,dK as Gon,dL as ZN,dM as yA,dN as aee,dO as qon,dP as Kon,dQ as XA,dR as k1,dS as rwt,dT as awt,dU as Zon,dV as swt,dW as Jon,dX as Xon,dY as ern,dZ as trn,d_ as WD,d$ as V9e,e0 as H9e,e1 as nrn,e2 as U9e,e3 as lwt,e4 as cwt,e5 as dwt,e6 as uwt,e7 as pwt,e8 as hwt,e9 as irn,_ as bd,ea as QD,eb as orn,ec as Nke,ed as see,ee as rrn,ef as arn,eg as mwt,eh as srn,ei as AO,ej as s0,ek as C7,el as gwt,em as fwt,en as lrn,eo as xwt,ep as u5e,eq as crn,er as uG,es as drn,et as urn,eu as prn,ev as hrn,ew as mrn,ex as ywt,ey as bwt,ez as grn,eA as frn,eB as wwt,eC as SO,eD as kO,eE as Cwt,eF as xrn,eG as yrn,eH as W9e,eI as brn,eJ as wrn,eK as Crn,eL as Q9e,eM as vwt,eN as Awt,eO as Y9e,eP as YD,eQ as lee,eR as G9e,eS as q9e,eT as K9e,eU as Z9e,eV as vrn,eW as Arn,eX as Swt,eY as _ke,eZ as Srn,e_ as krn,e$ as j1,f0 as jrn,f1 as cee,f2 as kwt,f3 as jwt,f4 as $rn,f5 as J9e,f6 as X9e,f7 as Ern,f8 as Irn,f9 as Drn,fa as Trn,fb as Lrn,fc as Brn,fd as bg,fe as Vke,ff as $wt,fg as Prn,fh as Mrn,fi as Orn,fj as Ewt,fk as Iwt,fl as Dwt,fm as Twt,fn as Lwt,fo as Bwt,fp as Frn,fq as UI,fr as Rrn,fs as zrn,ft as Nrn,fu as _rn,fv as Pwt,fw as Mwt,fx as Hke,fy as Uke,fz as Vrn,fA as Hrn,fB as Wke,fC as Qke,fD as Urn,fE as Wrn,fF as p5e,fG as Qrn,v as Yrn,fH as dee,fI as Dp,fJ as Owt,fK as Fwt,fL as Grn,fM as qrn,fN as Yke,fO as Krn,fP as Zrn,fQ as Jrn,fR as Xrn,fS as ean,fT as tan,fU as nan,fV as ian,fW as oan,fX as ran,fY as aan,fZ as san,f_ as lan,f$ as can,g0 as dan,g1 as uan,g2 as pan,g3 as han,g4 as man,g5 as Gke,g6 as gan,g7 as fan,g8 as xan,g9 as yan,ga as ban,gb as Rwt,gc as uee,gd as e8e,ge as zwt,gf as wan,gg as Can,gh as van,gi as Nwt,gj as qke,gk as _wt,gl as Vwt,gm as Aan,gn as Hwt,go as Uwt,gp as San,gq as kan,gr as h5e,gs as jan,gt as jO,gu as $an,gv as Ean,gw as Ian,gx as Dan,gy as Tan,gz as Lan,gA as Ban,gB as Pan,gC as Man,gD as Oan,gE as Fan,gF as Ran,gG as Wwt,gH as zan,gI as Nan,gJ as _an,gK as Kke,gL as Van,gM as Han,gN as Uan,gO as Wan,gP as Qan,gQ as Yan,gR as Gan,gS as Qwt,gT as Ywt,gU as qan,gV as Gwt,gW as Kan,gX as Zan,gY as m5e,gZ as Jan,g_ as Xan,g$ as esn,h0 as tsn,h1 as nsn,h2 as isn,h3 as Zke,h4 as osn,h5 as rsn,h6 as asn}from"./zeni-epic-state-DIQk-W8f.js";import{j as Lo,c as Ee,k as pi,a as Jke,b as qwt,C as Kwt,T as ssn,M as lsn,n as a,u as Pe,d as si,e as Zwt,G as pee,A as Xke,R as csn,D as Vc,F as dsn,f as qq,g as g5e,P as L3,h as usn,S as hee,i as psn,l as hsn,m as QF,o as msn,s as eS,p as gsn}from"./mui-hHF2bYsV.js";import{r as fsn,m as Xm}from"./analytics-wUVBNE2n.js";import{u as P1}from"./plaid-l93gkere.js";import{D as t8e,H as mee,g as xsn,O as ysn,S as bsn,T as wsn,u as n8e,a as i8e,b as Csn}from"./dnd-BRHUZ8LO.js";import{l as o8e}from"./stripe-cKAAJElX.js";import{L as nI}from"./lottie-_8fQYf62.js";import{r as Hc}from"./lexical-CV0PpHfb.js";import{D as f5e,P as x5e,_ as Jwt,a as Xwt}from"./pdf-DcTPEGUQ.js";import{R as bA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Hv,M as D1,N as GD,O as eCt,P as vsn,Q as Asn,S as gee,U as Ssn,V as r8e,W as ksn,Z as jsn,_ as $sn,d as Esn}from"./recharts-DHYb1iJa.js";import{r as Isn,n as eje}from"./utils-D3PNq8pk.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]="c1737aaa-7e90-456a-8eb9-eb3ec47838cc",e._sentryDebugIdIdentifier="sentry-dbid-c1737aaa-7e90-456a-8eb9-eb3ec47838cc")}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 tje,JN={},Dsn=(function(){if(tje)return JN;tje=1;var e=z8t();return JN.createRoot=e.createRoot,JN.hydrateRoot=e.hydrateRoot,JN})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof d5e<"u"?d5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nje,ije,oje={exports:{}},eL={};function tCt(){return ije||(ije=1,oje.exports=(function(){if(nje)return eL;nje=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 eL.Fragment=i,eL.jsx=c,eL.jsxs=c,eL})()),oje.exports}var t=tCt();const Tsn=m.createContext(null),nre={didCatch:!1,error:null};let Lsn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=nre}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(nre)}}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(nre))}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(Tsn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var rje,aje,sje,ire,lje,cje,dje,uje,pje,ore={exports:{}};function Bsn(){return rje||(rje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(ore.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,Ae=G.length;for(pe=0;pe<Ae;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}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 Ae,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for($e=0;$e<xe;$e+=1)Oe.push(Ae);return Oe}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 R(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,Ae,$e,Oe,Ue,We,Pt,Zt;switch(We=pe*(1-X),Pt=pe*(1-(Ue=6*G-(Oe=Math.floor(6*G)))*X),Zt=pe*(1-(1-Ue)*X),Oe%6){case 0:xe=pe,Ae=Zt,$e=We;break;case 1:xe=Pt,Ae=pe,$e=We;break;case 2:xe=We,Ae=pe,$e=Zt;break;case 3:xe=We,Ae=Pt,$e=pe;break;case 4:xe=Zt,Ae=We,$e=pe;break;case 5:xe=pe,Ae=We,$e=Pt}return[xe,Ae,$e]}function W(G,X,pe){var xe,Ae=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=Ae-$e,Ue=Ae===0?0:Oe/Ae,We=Ae/255;switch(Ae){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,Ue,We]}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},oe=function(G){v=G};function ce(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=[],Ae={onmessage:function(){},postMessage:function(ut){G({data:ut})}},$e={postMessage:function(ut){Ae.onmessage({data:ut})}};function Oe(ut){if(window.Worker&&window.Blob&&d()){var wt=new Blob(["var _workerSelf = self; self.onmessage = ",ut.toString()],{type:"text/javascript"}),$t=URL.createObjectURL(wt);return new Worker($t)}return G=ut,Ae}function Ue(){X||(X=Oe((function(ut){function wt(){function qt(Rt,fn){var ft,st,Re,pt,yt,gi,qo=Rt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Rt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var To=ft.masksProperties;for(pt=To.length,Re=0;Re<pt;Re+=1)if(To[Re].pt.k.i)Ge(To[Re].pt.k);else for(gi=To[Re].pt.k.length,yt=0;yt<gi;yt+=1)To[Re].pt.k[yt].s&&Ge(To[Re].pt.k[yt].s[0]),To[Re].pt.k[yt].e&&Ge(To[Re].pt.k[yt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,fn),qt(ft.layers,fn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Rt,fn){if(Rt){var ft=0,st=Rt.length;for(ft=0;ft<st;ft+=1)Rt[ft].t===1&&(Rt[ft].data.layers=Ve(Rt[ft].data.refId,fn),qt(Rt[ft].data.layers,fn))}}function Xe(Rt,fn){for(var ft=0,st=fn.length;ft<st;){if(fn[ft].id===Rt)return fn[ft];ft+=1}return null}function Ve(Rt,fn){var ft=Xe(Rt,fn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Rt){var fn,ft,st;for(fn=Rt.length-1;fn>=0;fn-=1)if(Rt[fn].ty==="sh")if(Rt[fn].ks.k.i)Ge(Rt[fn].ks.k);else for(st=Rt[fn].ks.k.length,ft=0;ft<st;ft+=1)Rt[fn].ks.k[ft].s&&Ge(Rt[fn].ks.k[ft].s[0]),Rt[fn].ks.k[ft].e&&Ge(Rt[fn].ks.k[ft].e[0]);else Rt[fn].ty==="gr"&&Ne(Rt[fn].it)}function Ge(Rt){var fn,ft=Rt.i.length;for(fn=0;fn<ft;fn+=1)Rt.i[fn][0]+=Rt.v[fn][0],Rt.i[fn][1]+=Rt.v[fn][1],Rt.o[fn][0]+=Rt.v[fn][0],Rt.o[fn][1]+=Rt.v[fn][1]}function gt(Rt,fn){var ft=fn?fn.split("."):[100,100,100];return Rt[0]>ft[0]||!(ft[0]>Rt[0])&&(Rt[1]>ft[1]||!(ft[1]>Rt[1])&&(Rt[2]>ft[2]||!(ft[2]>Rt[2])&&null))}var an=(function(){var Rt=[4,4,14];function fn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&fn(st[Re])}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),cn=(function(){var Rt=[4,7,99];return function(fn){if(fn.chars&&!gt(Rt,fn.v)){var ft,st=fn.chars.length;for(ft=0;ft<st;ft+=1){var Re=fn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.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}},fn.chars[ft].t||(Re.data.shapes.push({ty:"no"}),Re.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"})))}}}})(),Mt=(function(){var Rt=[5,7,15];function fn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&fn(st[Re])}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Rt=[4,1,9];function fn(st){var Re,pt,yt,gi=st.length;for(Re=0;Re<gi;Re+=1)if(st[Re].ty==="gr")fn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(yt=st[Re].c.k.length,pt=0;pt<yt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&fn(st[Re].shapes)}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ko=(function(){var Rt=[4,4,18];function fn(st){var Re,pt,yt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(yt=st[Re].ks.k.length,pt=0;pt<yt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&fn(st[Re].it)}function ft(st){var Re,pt,yt,gi,qo,To,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(gi=Ko.length,yt=0;yt<gi;yt+=1)if(Ko[yt].pt.k.i)Ko[yt].pt.k.c=Ko[yt].cl;else for(To=Ko[yt].pt.k.length,qo=0;qo<To;qo+=1)Ko[yt].pt.k[qo].s&&(Ko[yt].pt.k[qo].s[0].c=Ko[yt].cl),Ko[yt].pt.k[qo].e&&(Ko[yt].pt.k[qo].e[0].c=Ko[yt].cl)}Re.ty===4&&fn(Re.shapes)}}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function ai(Rt){Rt.__complete||(co(Rt),an(Rt),cn(Rt),Mt(Rt),ko(Rt),qt(Rt.layers,Rt.assets),Jt(Rt.chars,Rt.assets),Rt.__complete=!0)}function Go(Rt){Rt.t.a.length===0&&Rt.t.p}var oo={};return oo.completeData=ai,oo.checkColors=co,oo.checkChars=cn,oo.checkPathProperties=Mt,oo.checkShapes=ko,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=wt()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&fe(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,Ge){var gt,an=new XMLHttpRequest;try{an.responseType="json"}catch{}an.onreadystatechange=function(){if(an.readyState===4)if(an.status===200)gt=qt(an),Ne(gt);else try{gt=qt(an),Ne(gt)}catch(cn){Ge&&Ge(cn)}};try{an.open(["G","E","T"].join(""),Xe,!0)}catch{an.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}an.send()}return{load:Jt}})()),ut.data.type==="loadAnimation")$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}));else if(ut.data.type==="complete"){var $t=ut.data.animation;$e.dataManager.completeData($t),$e.postMessage({id:ut.data.id,payload:$t,status:"success"})}else ut.data.type==="loadData"&&$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}))})),X.onmessage=function(ut){var wt=ut.data,$t=wt.id,qt=xe[$t];xe[$t]=null,wt.status==="success"?qt.onComplete(wt.payload):qt.onError&&qt.onError()})}function We(ut,wt){var $t="processId_"+(pe+=1);return xe[$t]={onComplete:ut,onError:wt},$t}function Pt(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"loadAnimation",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function Zt(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"loadData",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"complete",animation:ut,id:qt})}return{loadAnimation:Pt,loadData:Zt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();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(Xe,Ve,Ne){var Ge="";if(Xe.e)Ge=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),Ge=Ve+gt}else Ge=Ne,Ge+=Xe.u?Xe.u:"",Ge+=Xe.p;return Ge}function Ae(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=ce("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var Ge={img:Ne,assetData:Xe};return Ge}function Oe(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var Ge={img:Ne,assetData:Xe};return Ge}function Ue(Xe){var Ve={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(Ge){Ve.img=Ge,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function We(Xe,Ve){this.imagesLoadedCb=Ve;var Ne,Ge=Xe.length;for(Ne=0;Ne<Ge;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Pt(Xe){this.path=Xe||""}function Zt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function ut(){this.imagesLoadedCb=null,this.images.length=0}function wt(){return this.totalImages===this.loadedAssets}function $t(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Ue.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:We,setAssetsPath:Zt,setPath:Pt,loadedImages:wt,loadedFootages:$t,destroy:ut,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},Jt})();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 le=(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-z7dEhSaI.js","assets/sentry-DXRU_0Gm.js","assets/core-B4xcCWwD.js","assets/index-yQhQQ1oc.js","assets/DefaultTenantHome-C2oJ4Z_A.js","assets/mui-B8AhwxrZ.js","assets/getLocaleForTenant-DTiA1xl1.js","assets/analytics-Bx-fDzHK.js","assets/utils-C2swztfg.js","assets/AppDrawer-D_pZzlzK.js","assets/InboxNotificationsProvider-BYzYM_cO.js","assets/useTaskManagerAccess-CXACI9oH.js","assets/expenseAutomationHelper-DT7JkXm4.js","assets/ScreenRoutes-Dq8tSKSA.js","assets/analyticsHelper-gIdO7Mdz.js","assets/ConnectionAuthScreen-BKfqdMMN.js","assets/AccountMappingScreen-BX_TgCEW.js","assets/MobileAppDrawer-PknNExj-.js","assets/QBOConnectionScreen-pIPlV1os.js","assets/empty-De1pe7cM.js","assets/index-CDDSCoA2.js","assets/url-CRJKll1O.js","assets/index-BRgafJlj.js","assets/decodeURIComponentSafe-Cemfdm8F.js","assets/accountMappingHelper-CrsNnhds.js","assets/SignInScreen-BPiC2SXK.js","assets/useDeviceId-CP6WbFos.js","assets/MagicLinkSignInScreen-Cgc6upj0.js","assets/NotFoundScreen-BA5GK6fZ.js","assets/MagicLinkRoutes-BXcgUoFN.js","assets/PaymentLinkScreen-DzxyNsJc.js","assets/WiseConfirmationScreen-B49tOG90.js","assets/HubSpotOAuthCallbackScreen-Coekh8J7.js","assets/CustomerOnboardingAuthScreen-BKlbrqkD.js","assets/SignOutScreen-DrmKOkUx.js","assets/OAuthConsentScreen-Dsn5YLy4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as d5e,a as m,r as Kh,g as O8t,p as tre,d as Dke,f as rin,s as Tke,i as ain,w as sin,j as lin,S as cin,k as din,l as uin,m as pin,n as hin,o as min,q as gin}from"./sentry-DXRU_0Gm.js";import{L as fin,C as Lke,_ as Fp,a as xin,b as nz,c as yin,d as JX,e as iz,u as F8t,T as bin,f as win,g as Cin,h as vin,i as Ain,k as R8t,l as Sin,m as kin,j as en}from"./liveblocks-CFpJ3lBt.js";import{f as z8t,r as Aa,P as Dl,R as jin,O as $in,N as N8t,u as Sp,g as Dg,h as XX,i as _8t,j as Rr,m as P9e,s as Wq,k as V8t,l as Ein,n as Iin,o as R1,p as Din,B as Tin}from"./core-B4xcCWwD.js";import{L as Bke,bl as Lin,bm as Bin,bn as oz,bo as Pin,bp as Min,bq as ps,br as Yt,bs as HD,bt as H8t,bu as T3,bv as Oin,bw as ey,bx as ks,by as Fin,bz as Rin,bA as zin,bB as L1,bC as Ip,bD as UF,bE as u9,bF as xn,bG as U8t,bH as S1,bI as va,bJ as NI,bK as W8t,bL as Q8t,bM as M9e,bN as v5,bO as Pu,bP as b7,bQ as Nin,bR as wc,bS as _in,bT as UD,bU as Vin,bV as Hin,bW as Qq,bX as Uin,bY as Win,bZ as Yq,b_ as Qin,b$ as Yin,c0 as p9,c1 as Pke,c2 as Gin,c3 as qin,c4 as Kin,c5 as Zin,c6 as Jin,c7 as Xin,c8 as eon,c9 as w7,ca as eee,cb as ton,cc as tee,cd as nee,ce as iee,cf as O9e,cg as gA,ch as fA,ci as rz,cj as _I,ck as VI,cl as xA,cm as oee,cn as _v,co as non,cp as Mke,cq as ion,cr as oon,cs as ron,ct as aon,cu as Y8t,cv as son,cw as lon,cx as q8,cy as Oke,cz as con,cA as don,cB as uon,cC as ZA,cD as JA,cE as G8t,cF as q8t,cG as F9e,cH as pon,cI as K8t,cJ as hon,cK as Gq,cL as Z8t,cM as mon,cN as J8t,cO as gon,cP as CM,cQ as fon,cR as xon,cS as Fke,cT as yon,cU as R9e,cV as z9e,cW as bon,cX as won,cY as Con,cZ as von,c_ as GN,c$ as HI,d0 as qN,d1 as Aon,d2 as Son,d3 as X8t,d4 as kon,d5 as jon,d6 as $on,d7 as Eon,d8 as Ion,d9 as ewt,da as Rke,db as Don,dc as N9e,dd as Ton,de as Lon,df as Bon,dg as twt,dh as qd,di as Bl,dj as ree,dk as Pon,dl as Mon,dm as f1,dn as nwt,dp as Oon,dq as WF,dr as Vv,ds as Ls,dt as zke,du as Fon,dv as Ron,dw as zon,dx as iwt,dy as _9e,dz as KN,dA as owt,dB as Non,dC as _on,dD as Von,dE as Hon,dF as Uon,dG as rg,dH as Won,dI as Qon,dJ as Yon,dK as Gon,dL as ZN,dM as yA,dN as aee,dO as qon,dP as Kon,dQ as XA,dR as k1,dS as rwt,dT as awt,dU as Zon,dV as swt,dW as Jon,dX as Xon,dY as ern,dZ as trn,d_ as WD,d$ as V9e,e0 as H9e,e1 as nrn,e2 as U9e,e3 as lwt,e4 as cwt,e5 as dwt,e6 as uwt,e7 as pwt,e8 as hwt,e9 as irn,_ as bd,ea as QD,eb as orn,ec as Nke,ed as see,ee as rrn,ef as arn,eg as mwt,eh as srn,ei as AO,ej as s0,ek as C7,el as gwt,em as fwt,en as lrn,eo as xwt,ep as u5e,eq as crn,er as uG,es as drn,et as urn,eu as prn,ev as hrn,ew as mrn,ex as ywt,ey as bwt,ez as grn,eA as frn,eB as wwt,eC as SO,eD as kO,eE as Cwt,eF as xrn,eG as yrn,eH as W9e,eI as brn,eJ as wrn,eK as Crn,eL as Q9e,eM as vwt,eN as Awt,eO as Y9e,eP as YD,eQ as lee,eR as G9e,eS as q9e,eT as K9e,eU as Z9e,eV as vrn,eW as Arn,eX as Swt,eY as _ke,eZ as Srn,e_ as krn,e$ as j1,f0 as jrn,f1 as cee,f2 as kwt,f3 as jwt,f4 as $rn,f5 as J9e,f6 as X9e,f7 as Ern,f8 as Irn,f9 as Drn,fa as Trn,fb as Lrn,fc as Brn,fd as bg,fe as Vke,ff as $wt,fg as Prn,fh as Mrn,fi as Orn,fj as Ewt,fk as Iwt,fl as Dwt,fm as Twt,fn as Lwt,fo as Bwt,fp as Frn,fq as UI,fr as Rrn,fs as zrn,ft as Nrn,fu as _rn,fv as Pwt,fw as Mwt,fx as Hke,fy as Uke,fz as Vrn,fA as Hrn,fB as Wke,fC as Qke,fD as Urn,fE as Wrn,fF as p5e,fG as Qrn,v as Yrn,fH as dee,fI as Dp,fJ as Owt,fK as Fwt,fL as Grn,fM as qrn,fN as Yke,fO as Krn,fP as Zrn,fQ as Jrn,fR as Xrn,fS as ean,fT as tan,fU as nan,fV as ian,fW as oan,fX as ran,fY as aan,fZ as san,f_ as lan,f$ as can,g0 as dan,g1 as uan,g2 as pan,g3 as han,g4 as man,g5 as Gke,g6 as gan,g7 as fan,g8 as xan,g9 as yan,ga as ban,gb as Rwt,gc as uee,gd as e8e,ge as zwt,gf as wan,gg as Can,gh as van,gi as Nwt,gj as qke,gk as _wt,gl as Vwt,gm as Aan,gn as Hwt,go as Uwt,gp as San,gq as kan,gr as h5e,gs as jan,gt as jO,gu as $an,gv as Ean,gw as Ian,gx as Dan,gy as Tan,gz as Lan,gA as Ban,gB as Pan,gC as Man,gD as Oan,gE as Fan,gF as Ran,gG as Wwt,gH as zan,gI as Nan,gJ as _an,gK as Kke,gL as Van,gM as Han,gN as Uan,gO as Wan,gP as Qan,gQ as Yan,gR as Gan,gS as Qwt,gT as Ywt,gU as qan,gV as Gwt,gW as Kan,gX as Zan,gY as m5e,gZ as Jan,g_ as Xan,g$ as esn,h0 as tsn,h1 as nsn,h2 as isn,h3 as Zke,h4 as osn,h5 as rsn,h6 as asn}from"./zeni-epic-state-z7dEhSaI.js";import{j as Lo,c as Ee,k as pi,a as Jke,b as qwt,C as Kwt,T as ssn,M as lsn,n as a,u as Pe,d as si,e as Zwt,G as pee,A as Xke,R as csn,D as Vc,F as dsn,f as qq,g as g5e,P as L3,h as usn,S as hee,i as psn,l as hsn,m as QF,o as msn,s as eS,p as gsn}from"./mui-B8AhwxrZ.js";import{r as fsn,m as Xm}from"./analytics-Bx-fDzHK.js";import{u as P1}from"./plaid-DygABMyK.js";import{D as t8e,H as mee,g as xsn,O as ysn,S as bsn,T as wsn,u as n8e,a as i8e,b as Csn}from"./dnd-DAPYv1yt.js";import{l as o8e}from"./stripe-cKAAJElX.js";import{L as nI}from"./lottie-DJ3FaWjT.js";import{r as Hc}from"./lexical-Ct1kS2bH.js";import{D as f5e,P as x5e,_ as Jwt,a as Xwt}from"./pdf-BJPlJ9jJ.js";import{R as bA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Hv,M as D1,N as GD,O as eCt,P as vsn,Q as Asn,S as gee,U as Ssn,V as r8e,W as ksn,Z as jsn,_ as $sn,d as Esn}from"./recharts-D65Mp-4O.js";import{r as Isn,n as eje}from"./utils-C2swztfg.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]="a6199c8b-8e59-4074-98b1-8039ba8bd856",e._sentryDebugIdIdentifier="sentry-dbid-a6199c8b-8e59-4074-98b1-8039ba8bd856")}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 tje,JN={},Dsn=(function(){if(tje)return JN;tje=1;var e=z8t();return JN.createRoot=e.createRoot,JN.hydrateRoot=e.hydrateRoot,JN})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof d5e<"u"?d5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nje,ije,oje={exports:{}},eL={};function tCt(){return ije||(ije=1,oje.exports=(function(){if(nje)return eL;nje=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 eL.Fragment=i,eL.jsx=c,eL.jsxs=c,eL})()),oje.exports}var t=tCt();const Tsn=m.createContext(null),nre={didCatch:!1,error:null};let Lsn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=nre}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(nre)}}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(nre))}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(Tsn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var rje,aje,sje,ire,lje,cje,dje,uje,pje,ore={exports:{}};function Bsn(){return rje||(rje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(ore.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,Ae=G.length;for(pe=0;pe<Ae;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}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 Ae,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for($e=0;$e<xe;$e+=1)Oe.push(Ae);return Oe}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 R(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,Ae,$e,Oe,Ue,We,Pt,Zt;switch(We=pe*(1-X),Pt=pe*(1-(Ue=6*G-(Oe=Math.floor(6*G)))*X),Zt=pe*(1-(1-Ue)*X),Oe%6){case 0:xe=pe,Ae=Zt,$e=We;break;case 1:xe=Pt,Ae=pe,$e=We;break;case 2:xe=We,Ae=pe,$e=Zt;break;case 3:xe=We,Ae=Pt,$e=pe;break;case 4:xe=Zt,Ae=We,$e=pe;break;case 5:xe=pe,Ae=We,$e=Pt}return[xe,Ae,$e]}function W(G,X,pe){var xe,Ae=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=Ae-$e,Ue=Ae===0?0:Oe/Ae,We=Ae/255;switch(Ae){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,Ue,We]}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},oe=function(G){v=G};function ce(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=[],Ae={onmessage:function(){},postMessage:function(ut){G({data:ut})}},$e={postMessage:function(ut){Ae.onmessage({data:ut})}};function Oe(ut){if(window.Worker&&window.Blob&&d()){var wt=new Blob(["var _workerSelf = self; self.onmessage = ",ut.toString()],{type:"text/javascript"}),$t=URL.createObjectURL(wt);return new Worker($t)}return G=ut,Ae}function Ue(){X||(X=Oe((function(ut){function wt(){function qt(Rt,fn){var ft,st,Re,pt,yt,gi,qo=Rt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Rt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var To=ft.masksProperties;for(pt=To.length,Re=0;Re<pt;Re+=1)if(To[Re].pt.k.i)Ge(To[Re].pt.k);else for(gi=To[Re].pt.k.length,yt=0;yt<gi;yt+=1)To[Re].pt.k[yt].s&&Ge(To[Re].pt.k[yt].s[0]),To[Re].pt.k[yt].e&&Ge(To[Re].pt.k[yt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,fn),qt(ft.layers,fn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Rt,fn){if(Rt){var ft=0,st=Rt.length;for(ft=0;ft<st;ft+=1)Rt[ft].t===1&&(Rt[ft].data.layers=Ve(Rt[ft].data.refId,fn),qt(Rt[ft].data.layers,fn))}}function Xe(Rt,fn){for(var ft=0,st=fn.length;ft<st;){if(fn[ft].id===Rt)return fn[ft];ft+=1}return null}function Ve(Rt,fn){var ft=Xe(Rt,fn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Rt){var fn,ft,st;for(fn=Rt.length-1;fn>=0;fn-=1)if(Rt[fn].ty==="sh")if(Rt[fn].ks.k.i)Ge(Rt[fn].ks.k);else for(st=Rt[fn].ks.k.length,ft=0;ft<st;ft+=1)Rt[fn].ks.k[ft].s&&Ge(Rt[fn].ks.k[ft].s[0]),Rt[fn].ks.k[ft].e&&Ge(Rt[fn].ks.k[ft].e[0]);else Rt[fn].ty==="gr"&&Ne(Rt[fn].it)}function Ge(Rt){var fn,ft=Rt.i.length;for(fn=0;fn<ft;fn+=1)Rt.i[fn][0]+=Rt.v[fn][0],Rt.i[fn][1]+=Rt.v[fn][1],Rt.o[fn][0]+=Rt.v[fn][0],Rt.o[fn][1]+=Rt.v[fn][1]}function gt(Rt,fn){var ft=fn?fn.split("."):[100,100,100];return Rt[0]>ft[0]||!(ft[0]>Rt[0])&&(Rt[1]>ft[1]||!(ft[1]>Rt[1])&&(Rt[2]>ft[2]||!(ft[2]>Rt[2])&&null))}var an=(function(){var Rt=[4,4,14];function fn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&fn(st[Re])}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),cn=(function(){var Rt=[4,7,99];return function(fn){if(fn.chars&&!gt(Rt,fn.v)){var ft,st=fn.chars.length;for(ft=0;ft<st;ft+=1){var Re=fn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.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}},fn.chars[ft].t||(Re.data.shapes.push({ty:"no"}),Re.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"})))}}}})(),Mt=(function(){var Rt=[5,7,15];function fn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&fn(st[Re])}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Rt=[4,1,9];function fn(st){var Re,pt,yt,gi=st.length;for(Re=0;Re<gi;Re+=1)if(st[Re].ty==="gr")fn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(yt=st[Re].c.k.length,pt=0;pt<yt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&fn(st[Re].shapes)}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ko=(function(){var Rt=[4,4,18];function fn(st){var Re,pt,yt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(yt=st[Re].ks.k.length,pt=0;pt<yt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&fn(st[Re].it)}function ft(st){var Re,pt,yt,gi,qo,To,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(gi=Ko.length,yt=0;yt<gi;yt+=1)if(Ko[yt].pt.k.i)Ko[yt].pt.k.c=Ko[yt].cl;else for(To=Ko[yt].pt.k.length,qo=0;qo<To;qo+=1)Ko[yt].pt.k[qo].s&&(Ko[yt].pt.k[qo].s[0].c=Ko[yt].cl),Ko[yt].pt.k[qo].e&&(Ko[yt].pt.k[qo].e[0].c=Ko[yt].cl)}Re.ty===4&&fn(Re.shapes)}}return function(st){if(gt(Rt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function ai(Rt){Rt.__complete||(co(Rt),an(Rt),cn(Rt),Mt(Rt),ko(Rt),qt(Rt.layers,Rt.assets),Jt(Rt.chars,Rt.assets),Rt.__complete=!0)}function Go(Rt){Rt.t.a.length===0&&Rt.t.p}var oo={};return oo.completeData=ai,oo.checkColors=co,oo.checkChars=cn,oo.checkPathProperties=Mt,oo.checkShapes=ko,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=wt()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&fe(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,Ge){var gt,an=new XMLHttpRequest;try{an.responseType="json"}catch{}an.onreadystatechange=function(){if(an.readyState===4)if(an.status===200)gt=qt(an),Ne(gt);else try{gt=qt(an),Ne(gt)}catch(cn){Ge&&Ge(cn)}};try{an.open(["G","E","T"].join(""),Xe,!0)}catch{an.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}an.send()}return{load:Jt}})()),ut.data.type==="loadAnimation")$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}));else if(ut.data.type==="complete"){var $t=ut.data.animation;$e.dataManager.completeData($t),$e.postMessage({id:ut.data.id,payload:$t,status:"success"})}else ut.data.type==="loadData"&&$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}))})),X.onmessage=function(ut){var wt=ut.data,$t=wt.id,qt=xe[$t];xe[$t]=null,wt.status==="success"?qt.onComplete(wt.payload):qt.onError&&qt.onError()})}function We(ut,wt){var $t="processId_"+(pe+=1);return xe[$t]={onComplete:ut,onError:wt},$t}function Pt(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"loadAnimation",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function Zt(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"loadData",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ut,wt,$t){Ue();var qt=We(wt,$t);X.postMessage({type:"complete",animation:ut,id:qt})}return{loadAnimation:Pt,loadData:Zt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();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(Xe,Ve,Ne){var Ge="";if(Xe.e)Ge=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),Ge=Ve+gt}else Ge=Ne,Ge+=Xe.u?Xe.u:"",Ge+=Xe.p;return Ge}function Ae(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=ce("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var Ge={img:Ne,assetData:Xe};return Ge}function Oe(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var Ge={img:Ne,assetData:Xe};return Ge}function Ue(Xe){var Ve={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(Ge){Ve.img=Ge,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function We(Xe,Ve){this.imagesLoadedCb=Ve;var Ne,Ge=Xe.length;for(Ne=0;Ne<Ge;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Pt(Xe){this.path=Xe||""}function Zt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function ut(){this.imagesLoadedCb=null,this.images.length=0}function wt(){return this.totalImages===this.loadedAssets}function $t(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Ue.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:We,setAssetsPath:Zt,setPath:Pt,loadedImages:wt,loadedFootages:$t,destroy:ut,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},Jt})();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 le=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
3
3
|
`),Ae={},$e=0,Oe=0;Oe<xe.length;Oe+=1)(pe=xe[Oe].split(":")).length===2&&(Ae[pe[0]]=pe[1].trim(),$e+=1);if($e===0)throw new Error;return Ae}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ae=X[xe],$e={time:Ae.tm,duration:Ae.dr};try{$e.payload=JSON.parse(X[xe].cm)}catch{try{$e.payload=G(X[xe].cm)}catch{$e.payload={name:X[xe].cm}}}pe.push($e)}return pe}})(),de=(function(){function G(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,Ae=this.compositions.length;xe<Ae;){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 we(){if(ge.canvas)return"canvas";for(var G in ge)if(ge[G])return G;return""}function Ce(G){return Ce=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},Ce(G)}var ve=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 re,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 R("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],ve),ve.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))},ve.prototype.onSetupError=function(){this.trigger("data_failed")},ve.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},ve.prototype.setData=function(G,X){X&&Ce(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:we()||"canvas";var Ae=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:"";Ae==="false"?pe.loop=!1:Ae==="true"?pe.loop=!0:Ae!==""&&(pe.loop=parseInt(Ae,10));var $e=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=$e!=="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")},ve.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,Ae=xe.length,$e=G.layers,Oe=$e.length;for(pe=0;pe<Oe;pe+=1)for(X=0;X<Ae;){if(xe[X].id===$e[pe].id){xe[X]=$e[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(Ae=G.assets.length,X=0;X<Ae;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},ve.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},ve.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))},ve.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ve.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ve.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ve.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=le(G.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},ve.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ve.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()}},ve.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)},ve.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},ve.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")},ve.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)}},ve.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")))},ve.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())},ve.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},ve.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ve.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},ve.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ae=this.getMarkerData(G);Ae&&this.goToAndStop(Ae.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},ve.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ae=this.getMarkerData(G);Ae&&(Ae.duration?this.playSegments([Ae.time,Ae.time+Ae.duration],!0):this.goToAndStop(Ae.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},ve.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"))}},ve.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")},ve.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)},ve.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),Ce(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()},ve.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},ve.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},ve.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)},ve.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},ve.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},ve.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},ve.prototype.setLoop=function(G){this.loop=G},ve.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},ve.prototype.getVolume=function(){return this.audioController.getVolume()},ve.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},ve.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},ve.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ve.prototype.getPath=function(){return this.path},ve.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},ve.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},ve.prototype.hide=function(){this.renderer.hide()},ve.prototype.show=function(){this.renderer.show()},ve.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},ve.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},ve.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new R(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 R(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))},ve.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},ve.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,Ae=0,$e=!0,Oe=!1;function Ue(ft){for(var st=0,Re=ft.target;st<xe;)X[st].animation===Re&&(X.splice(st,1),st-=1,xe-=1,Re.isPaused||et()),st+=1}function We(ft,st){if(!ft)return null;for(var Re=0;Re<xe;){if(X[Re].elem===ft&&X[Re].elem!==null)return X[Re].animation;Re+=1}var pt=new ve;return ut(pt,ft),pt.setData(ft,st),pt}function Pt(){var ft,st=X.length,Re=[];for(ft=0;ft<st;ft+=1)Re.push(X[ft].animation);return Re}function Zt(){Ae+=1,ko()}function et(){Ae-=1}function ut(ft,st){ft.addEventListener("destroy",Ue),ft.addEventListener("_active",Zt),ft.addEventListener("_idle",et),X.push({elem:st,animation:ft}),xe+=1}function wt(ft){var st=new ve;return ut(st,null),st.setParams(ft),st}function $t(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setSpeed(ft,st)}function qt(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setDirection(ft,st)}function Jt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.play(ft)}function Xe(ft){var st,Re=ft-pe;for(st=0;st<xe;st+=1)X[st].animation.advanceTime(Re);pe=ft,Ae&&!Oe?window.requestAnimationFrame(Xe):$e=!0}function Ve(ft){pe=ft,window.requestAnimationFrame(Xe)}function Ne(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.pause(ft)}function Ge(ft,st,Re){var pt;for(pt=0;pt<xe;pt+=1)X[pt].animation.goToAndStop(ft,st,Re)}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 Mt(ft,st,Re){var pt,yt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),gi=yt.length;for(pt=0;pt<gi;pt+=1)Re&&yt[pt].setAttribute("data-bm-type",Re),We(yt[pt],ft);if(st&&gi===0){Re||(Re="svg");var qo=document.getElementsByTagName("body")[0];qo.innerText="";var To=h("div");To.style.width="100%",To.style.height="100%",To.setAttribute("data-bm-type",Re),qo.appendChild(To),We(To,ft)}}function co(){var ft;for(ft=0;ft<xe;ft+=1)X[ft].animation.resize()}function ko(){!Oe&&Ae&&$e&&(window.requestAnimationFrame(Ve),$e=!1)}function ai(){Oe=!0}function Go(){Oe=!1,ko()}function oo(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setVolume(ft,st)}function Rt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.mute(ft)}function fn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.unmute(ft)}return G.registerAnimation=We,G.loadAnimation=wt,G.setSpeed=$t,G.setDirection=qt,G.play=Jt,G.pause=Ne,G.stop=gt,G.togglePause=an,G.searchAnimations=Mt,G.resize=co,G.goToAndStop=Ge,G.destroy=cn,G.freeze=ai,G.unfreeze=Go,G.setVolume=oo,G.mute=Rt,G.unmute=fn,G.getRegisteredAnimations=Pt,G})(),Le=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(Ve,Ne,Ge,gt,an){var cn=an||("bez_"+Ve+"_"+Ne+"_"+Ge+"_"+gt).replace(/\./g,"p");if(X[cn])return X[cn];var Mt=new Xe([Ve,Ne,Ge,gt]);return X[cn]=Mt,Mt}var xe=4,Ae=.001,$e=1e-7,Oe=10,Ue=11,We=1/(Ue-1),Pt=typeof Float32Array=="function";function Zt(Ve,Ne){return 1-3*Ne+3*Ve}function et(Ve,Ne){return 3*Ne-6*Ve}function ut(Ve){return 3*Ve}function wt(Ve,Ne,Ge){return((Zt(Ne,Ge)*Ve+et(Ne,Ge))*Ve+ut(Ne))*Ve}function $t(Ve,Ne,Ge){return 3*Zt(Ne,Ge)*Ve*Ve+2*et(Ne,Ge)*Ve+ut(Ne)}function qt(Ve,Ne,Ge,gt,an){var cn,Mt,co=0;do(cn=wt(Mt=Ne+(Ge-Ne)/2,gt,an)-Ve)>0?Ge=Mt:Ne=Mt;while(Math.abs(cn)>$e&&++co<Oe);return Mt}function Jt(Ve,Ne,Ge,gt){for(var an=0;an<xe;++an){var cn=$t(Ne,Ge,gt);if(cn===0)return Ne;Ne-=(wt(Ne,Ge,gt)-Ve)/cn}return Ne}function Xe(Ve){this._p=Ve,this._mSampleValues=Pt?new Float32Array(Ue):new Array(Ue),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(Ve){var Ne=this._p[0],Ge=this._p[1],gt=this._p[2],an=this._p[3];return this._precomputed||this._precompute(),Ne===Ge&>===an?Ve:Ve===0?0:Ve===1?1:wt(this._getTForX(Ve),Ge,an)},_precompute:function(){var Ve=this._p[0],Ne=this._p[1],Ge=this._p[2],gt=this._p[3];this._precomputed=!0,(Ve!==Ne||Ge!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Ve=this._p[0],Ne=this._p[2],Ge=0;Ge<Ue;++Ge)this._mSampleValues[Ge]=wt(Ge*We,Ve,Ne)},_getTForX:function(Ve){for(var Ne=this._p[0],Ge=this._p[2],gt=this._mSampleValues,an=0,cn=1,Mt=Ue-1;cn!==Mt&>[cn]<=Ve;++cn)an+=We;var co=an+(Ve-gt[--cn])/(gt[cn+1]-gt[cn])*We,ko=$t(co,Ne,Ge);return ko>=Ae?Jt(Ve,co,Ne,Ge):ko===0?co:qt(Ve,an,an+We,Ne,Ge)}},G})(),De=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,Ae=G,$e=b(Ae);function Oe(){return xe?$e[xe-=1]:X()}function Ue(We){xe===Ae&&($e=De.double($e),Ae*=2),pe&&pe(We),$e[xe]=We,xe+=1}return{newElement:Oe,release:Ue}}})(),Me=(function(){function G(){return{addedLength:0,percents:y("float32",se()),lengths:y("float32",se())}}return Fe(8,G)})(),Se=(function(){function G(){return{lengths:[],totalLength:0}}function X(pe){var xe,Ae=pe.lengths.length;for(xe=0;xe<Ae;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function be(){var G=Math;function X(ut,wt,$t,qt,Jt,Xe){var Ve=ut*qt+wt*Jt+$t*Xe-Jt*qt-Xe*ut-$t*wt;return Ve>-.001&&Ve<.001}function pe(ut,wt,$t,qt,Jt,Xe,Ve,Ne,Ge){if($t===0&&Xe===0&&Ge===0)return X(ut,wt,qt,Jt,Ve,Ne);var gt,an=G.sqrt(G.pow(qt-ut,2)+G.pow(Jt-wt,2)+G.pow(Xe-$t,2)),cn=G.sqrt(G.pow(Ve-ut,2)+G.pow(Ne-wt,2)+G.pow(Ge-$t,2)),Mt=G.sqrt(G.pow(Ve-qt,2)+G.pow(Ne-Jt,2)+G.pow(Ge-Xe,2));return(gt=an>cn?an>Mt?an-cn-Mt:Mt-cn-an:Mt>cn?Mt-cn-an:cn-an-Mt)>-1e-4&><1e-4}var xe=(function(){return function(ut,wt,$t,qt){var Jt,Xe,Ve,Ne,Ge,gt,an=se(),cn=0,Mt=[],co=[],ko=Me.newElement();for(Ve=$t.length,Jt=0;Jt<an;Jt+=1){for(Ge=Jt/(an-1),gt=0,Xe=0;Xe<Ve;Xe+=1)Ne=k(1-Ge,3)*ut[Xe]+3*k(1-Ge,2)*Ge*$t[Xe]+3*(1-Ge)*k(Ge,2)*qt[Xe]+k(Ge,3)*wt[Xe],Mt[Xe]=Ne,co[Xe]!==null&&(gt+=k(Mt[Xe]-co[Xe],2)),co[Xe]=Mt[Xe];gt&&(cn+=gt=$(gt)),ko.percents[Jt]=Ge,ko.lengths[Jt]=cn}return ko.addedLength=cn,ko}})();function Ae(ut){var wt,$t=Se.newElement(),qt=ut.c,Jt=ut.v,Xe=ut.o,Ve=ut.i,Ne=ut._length,Ge=$t.lengths,gt=0;for(wt=0;wt<Ne-1;wt+=1)Ge[wt]=xe(Jt[wt],Jt[wt+1],Xe[wt],Ve[wt+1]),gt+=Ge[wt].addedLength;return qt&&Ne&&(Ge[wt]=xe(Jt[wt],Jt[0],Xe[wt],Ve[0]),gt+=Ge[wt].addedLength),$t.totalLength=gt,$t}function $e(ut){this.segmentLength=0,this.points=new Array(ut)}function Oe(ut,wt){this.partialLength=ut,this.point=wt}var Ue=(function(){var ut={};return function(wt,$t,qt,Jt){var Xe=(wt[0]+"_"+wt[1]+"_"+$t[0]+"_"+$t[1]+"_"+qt[0]+"_"+qt[1]+"_"+Jt[0]+"_"+Jt[1]).replace(/\./g,"p");if(!ut[Xe]){var Ve,Ne,Ge,gt,an,cn,Mt,co=se(),ko=0,ai=null;wt.length===2&&(wt[0]!==$t[0]||wt[1]!==$t[1])&&X(wt[0],wt[1],$t[0],$t[1],wt[0]+qt[0],wt[1]+qt[1])&&X(wt[0],wt[1],$t[0],$t[1],$t[0]+Jt[0],$t[1]+Jt[1])&&(co=2);var Go=new $e(co);for(Ge=qt.length,Ve=0;Ve<co;Ve+=1){for(Mt=b(Ge),an=Ve/(co-1),cn=0,Ne=0;Ne<Ge;Ne+=1)gt=k(1-an,3)*wt[Ne]+3*k(1-an,2)*an*(wt[Ne]+qt[Ne])+3*(1-an)*k(an,2)*($t[Ne]+Jt[Ne])+k(an,3)*$t[Ne],Mt[Ne]=gt,ai!==null&&(cn+=k(Mt[Ne]-ai[Ne],2));ko+=cn=$(cn),Go.points[Ve]=new Oe(cn,Mt),ai=Mt}Go.segmentLength=ko,ut[Xe]=Go}return ut[Xe]}})();function We(ut,wt){var $t=wt.percents,qt=wt.lengths,Jt=$t.length,Xe=j((Jt-1)*ut),Ve=ut*wt.addedLength,Ne=0;if(Xe===Jt-1||Xe===0||Ve===qt[Xe])return $t[Xe];for(var Ge=qt[Xe]>Ve?-1:1,gt=!0;gt;)if(qt[Xe]<=Ve&&qt[Xe+1]>Ve?(Ne=(Ve-qt[Xe])/(qt[Xe+1]-qt[Xe]),gt=!1):Xe+=Ge,Xe<0||Xe>=Jt-1){if(Xe===Jt-1)return $t[Xe];gt=!1}return $t[Xe]+($t[Xe+1]-$t[Xe])*Ne}function Pt(ut,wt,$t,qt,Jt,Xe){var Ve=We(Jt,Xe),Ne=1-Ve;return[G.round(1e3*(Ne*Ne*Ne*ut[0]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*$t[0]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[0]+Ve*Ve*Ve*wt[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*ut[1]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*$t[1]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[1]+Ve*Ve*Ve*wt[1]))/1e3]}var Zt=y("float32",8);function et(ut,wt,$t,qt,Jt,Xe,Ve){Jt<0?Jt=0:Jt>1&&(Jt=1);var Ne,Ge=We(Jt,Ve),gt=We(Xe=Xe>1?1:Xe,Ve),an=ut.length,cn=1-Ge,Mt=1-gt,co=cn*cn*cn,ko=Ge*cn*cn*3,ai=Ge*Ge*cn*3,Go=Ge*Ge*Ge,oo=cn*cn*Mt,Rt=Ge*cn*Mt+cn*Ge*Mt+cn*cn*gt,fn=Ge*Ge*Mt+cn*Ge*gt+Ge*cn*gt,ft=Ge*Ge*gt,st=cn*Mt*Mt,Re=Ge*Mt*Mt+cn*gt*Mt+cn*Mt*gt,pt=Ge*gt*Mt+cn*gt*gt+Ge*Mt*gt,yt=Ge*gt*gt,gi=Mt*Mt*Mt,qo=gt*Mt*Mt+Mt*gt*Mt+Mt*Mt*gt,To=gt*gt*Mt+Mt*gt*gt+gt*Mt*gt,ya=gt*gt*gt;for(Ne=0;Ne<an;Ne+=1)Zt[4*Ne]=G.round(1e3*(co*ut[Ne]+ko*$t[Ne]+ai*qt[Ne]+Go*wt[Ne]))/1e3,Zt[4*Ne+1]=G.round(1e3*(oo*ut[Ne]+Rt*$t[Ne]+fn*qt[Ne]+ft*wt[Ne]))/1e3,Zt[4*Ne+2]=G.round(1e3*(st*ut[Ne]+Re*$t[Ne]+pt*qt[Ne]+yt*wt[Ne]))/1e3,Zt[4*Ne+3]=G.round(1e3*(gi*ut[Ne]+qo*$t[Ne]+To*qt[Ne]+ya*wt[Ne]))/1e3;return Zt}return{getSegmentsLength:Ae,getNewSegment:et,getPointInSegment:Pt,buildBezierData:Ue,pointOnLine2D:X,pointOnLine3D:pe}}var Ie=be(),Te=l,ze=Math.abs;function rt(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ae,$e,Oe,Ue=X.lastIndex,We=Ue,Pt=this.keyframes.length-1,Zt=!0;Zt;){if(Ae=this.keyframes[We],$e=this.keyframes[We+1],We===Pt-1&&G>=$e.t-xe){Ae.h&&(Ae=$e),Ue=0;break}if($e.t-xe>G){Ue=We;break}We<Pt-1?We+=1:(Ue=0,Zt=!1)}Oe=this.keyframesMetadata[We]||{};var et,ut,wt,$t,qt,Jt,Xe,Ve=$e.t-xe,Ne=Ae.t-xe;if(Ae.to){Oe.bezierData||(Oe.bezierData=Ie.buildBezierData(Ae.s,$e.s||Ae.e,Ae.to,Ae.ti));var Ge=Oe.bezierData;if(G>=Ve||G<Ne){var gt=G>=Ve?Ge.points.length-1:0;for(ut=Ge.points[gt].point.length,et=0;et<ut;et+=1)pe[et]=Ge.points[gt].point[et]}else{Oe.__fnct?Jt=Oe.__fnct:(Jt=Le.getBezierEasing(Ae.o.x,Ae.o.y,Ae.i.x,Ae.i.y,Ae.n).get,Oe.__fnct=Jt),wt=Jt((G-Ne)/(Ve-Ne));var an,cn=Ge.segmentLength*wt,Mt=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastAddedLength:0;for(qt=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastPoint:0,Zt=!0,$t=Ge.points.length;Zt;){if(Mt+=Ge.points[qt].partialLength,cn===0||wt===0||qt===Ge.points.length-1){for(ut=Ge.points[qt].point.length,et=0;et<ut;et+=1)pe[et]=Ge.points[qt].point[et];break}if(cn>=Mt&&cn<Mt+Ge.points[qt+1].partialLength){for(an=(cn-Mt)/Ge.points[qt+1].partialLength,ut=Ge.points[qt].point.length,et=0;et<ut;et+=1)pe[et]=Ge.points[qt].point[et]+(Ge.points[qt+1].point[et]-Ge.points[qt].point[et])*an;break}qt<$t-1?qt+=1:Zt=!1}X._lastPoint=qt,X._lastAddedLength=Mt-Ge.points[qt].partialLength,X._lastKeyframeIndex=We}}else{var co,ko,ai,Go,oo;if(Pt=Ae.s.length,Xe=$e.s||Ae.e,this.sh&&Ae.h!==1)G>=Ve?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):G<=Ne?(pe[0]=Ae.s[0],pe[1]=Ae.s[1],pe[2]=Ae.s[2]):qe(pe,Ye(mt(Ae.s),mt(Xe),(G-Ne)/(Ve-Ne)));else for(We=0;We<Pt;We+=1)Ae.h!==1&&(G>=Ve?wt=1:G<Ne?wt=0:(Ae.o.x.constructor===Array?(Oe.__fnct||(Oe.__fnct=[]),Oe.__fnct[We]?Jt=Oe.__fnct[We]:(co=Ae.o.x[We]===void 0?Ae.o.x[0]:Ae.o.x[We],ko=Ae.o.y[We]===void 0?Ae.o.y[0]:Ae.o.y[We],ai=Ae.i.x[We]===void 0?Ae.i.x[0]:Ae.i.x[We],Go=Ae.i.y[We]===void 0?Ae.i.y[0]:Ae.i.y[We],Jt=Le.getBezierEasing(co,ko,ai,Go).get,Oe.__fnct[We]=Jt)):Oe.__fnct?Jt=Oe.__fnct:(co=Ae.o.x,ko=Ae.o.y,ai=Ae.i.x,Go=Ae.i.y,Jt=Le.getBezierEasing(co,ko,ai,Go).get,Ae.keyframeMetadata=Jt),wt=Jt((G-Ne)/(Ve-Ne)))),Xe=$e.s||Ae.e,oo=Ae.h===1?Ae.s[We]:Ae.s[We]+(Xe[We]-Ae.s[We])*wt,this.propType==="multidimensional"?pe[We]=oo:pe=oo}return X.lastIndex=Ue,pe}function Ye(G,X,pe){var xe,Ae,$e,Oe,Ue,We=[],Pt=G[0],Zt=G[1],et=G[2],ut=G[3],wt=X[0],$t=X[1],qt=X[2],Jt=X[3];return(Ae=Pt*wt+Zt*$t+et*qt+ut*Jt)<0&&(Ae=-Ae,wt=-wt,$t=-$t,qt=-qt,Jt=-Jt),1-Ae>1e-6?(xe=Math.acos(Ae),$e=Math.sin(xe),Oe=Math.sin((1-pe)*xe)/$e,Ue=Math.sin(pe*xe)/$e):(Oe=1-pe,Ue=pe),We[0]=Oe*Pt+Ue*wt,We[1]=Oe*Zt+Ue*$t,We[2]=Oe*et+Ue*qt,We[3]=Oe*ut+Ue*Jt,We}function qe(G,X){var pe=X[0],xe=X[1],Ae=X[2],$e=X[3],Oe=Math.atan2(2*xe*$e-2*pe*Ae,1-2*xe*xe-2*Ae*Ae),Ue=Math.asin(2*pe*xe+2*Ae*$e),We=Math.atan2(2*pe*$e-2*xe*Ae,1-2*pe*pe-2*Ae*Ae);G[0]=Oe/D,G[1]=Ue/D,G[2]=We/D}function mt(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,Ae=Math.cos(X/2),$e=Math.cos(pe/2),Oe=Math.cos(xe/2),Ue=Math.sin(X/2),We=Math.sin(pe/2),Pt=Math.sin(xe/2);return[Ue*We*Oe+Ae*$e*Pt,Ue*$e*Oe+Ae*We*Pt,Ae*We*Oe-Ue*$e*Pt,Ae*$e*Oe-Ue*We*Pt]}function Lt(){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!==Te&&(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 lt(G){var X;if(this.propType==="unidimensional")X=G*this.mult,ze(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,ze(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function St(){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 Qe(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function at(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=St,this.setVValue=lt,this.addEffect=Qe}function It(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 Ae,$e=X.k.length;for(this.v=y("float32",$e),this.pv=y("float32",$e),this.vel=y("float32",$e),Ae=0;Ae<$e;Ae+=1)this.v[Ae]=X.k[Ae]*this.mult,this.pv[Ae]=X.k[Ae];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=St,this.setVValue=lt,this.addEffect=Qe}function Ht(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame:Te,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=Te,this.pv=Te,this._isFirstFrame=!0,this.getValue=St,this.setVValue=lt,this.interpolateValue=rt,this.effectsSequence=[Lt.bind(this)],this.addEffect=Qe}function Ct(G,X,pe,xe){this.propType="multidimensional";var Ae,$e,Oe,Ue,We,Pt=X.k.length;for(Ae=0;Ae<Pt-1;Ae+=1)X.k[Ae].to&&X.k[Ae].s&&X.k[Ae+1]&&X.k[Ae+1].s&&($e=X.k[Ae].s,Oe=X.k[Ae+1].s,Ue=X.k[Ae].to,We=X.k[Ae].ti,($e.length===2&&!($e[0]===Oe[0]&&$e[1]===Oe[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],$e[0]+Ue[0],$e[1]+Ue[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],Oe[0]+We[0],Oe[1]+We[1])||$e.length===3&&!($e[0]===Oe[0]&&$e[1]===Oe[1]&&$e[2]===Oe[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],$e[0]+Ue[0],$e[1]+Ue[1],$e[2]+Ue[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],Oe[0]+We[0],Oe[1]+We[1],Oe[2]+We[2]))&&(X.k[Ae].to=null,X.k[Ae].ti=null),$e[0]===Oe[0]&&$e[1]===Oe[1]&&Ue[0]===0&&Ue[1]===0&&We[0]===0&&We[1]===0&&($e.length===2||$e[2]===Oe[2]&&Ue[2]===0&&We[2]===0)&&(X.k[Ae].to=null,X.k[Ae].ti=null));this.effectsSequence=[Lt.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=St,this.setVValue=lt,this.interpolateValue=rt,this.frameId=-1;var Zt=X.k[0].s.length;for(this.v=y("float32",Zt),this.pv=y("float32",Zt),Ae=0;Ae<Zt;Ae+=1)this.v[Ae]=Te,this.pv[Ae]=Te;this._caching={lastFrame:Te,lastIndex:0,value:y("float32",Zt)},this.addEffect=Qe}var Ke=(function(){function G(X,pe,xe,Ae,$e){var Oe;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Oe=new It(X,pe,Ae,$e);else switch(xe){case 0:Oe=new Ht(X,pe,Ae,$e);break;case 1:Oe=new Ct(X,pe,Ae,$e)}else Oe=new at(X,pe,Ae,$e);return Oe.effectsSequence.length&&$e.addDynamicProperty(Oe),Oe}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 Qt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();function xt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}xt.prototype.setPathData=function(G,X){this.c=G,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Qt.newElement(),this.o[pe]=Qt.newElement(),this.i[pe]=Qt.newElement(),pe+=1},xt.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},xt.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},xt.prototype.setXYAt=function(G,X,pe,xe,Ae){var $e;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":$e=this.v;break;case"i":$e=this.i;break;case"o":$e=this.o;break;default:$e=[]}(!$e[xe]||$e[xe]&&!Ae)&&($e[xe]=Qt.newElement()),$e[xe][0]=G,$e[xe][1]=X},xt.prototype.setTripleAt=function(G,X,pe,xe,Ae,$e,Oe,Ue){this.setXYAt(G,X,"v",Oe,Ue),this.setXYAt(pe,xe,"o",Oe,Ue),this.setXYAt(Ae,$e,"i",Oe,Ue)},xt.prototype.reverse=function(){var G=new xt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ae=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),Ae=1);var $e,Oe=this._length-1,Ue=this._length;for($e=Ae;$e<Ue;$e+=1)G.setTripleAt(X[Oe][0],X[Oe][1],xe[Oe][0],xe[Oe][1],pe[Oe][0],pe[Oe][1],$e,!1),Oe-=1;return G},xt.prototype.length=function(){return this._length};var Et=(function(){function G(){return new xt}function X(Ae){var $e,Oe=Ae._length;for($e=0;$e<Oe;$e+=1)Qt.release(Ae.v[$e]),Qt.release(Ae.i[$e]),Qt.release(Ae.o[$e]),Ae.v[$e]=null,Ae.i[$e]=null,Ae.o[$e]=null;Ae._length=0,Ae.c=!1}function pe(Ae){var $e,Oe=xe.newElement(),Ue=Ae._length===void 0?Ae.v.length:Ae._length;for(Oe.setLength(Ue),Oe.c=Ae.c,$e=0;$e<Ue;$e+=1)Oe.setTripleAt(Ae.v[$e][0],Ae.v[$e][1],Ae.o[$e][0],Ae.o[$e][1],Ae.i[$e][0],Ae.i[$e][1],$e);return Oe}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function Nt(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}Nt.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},Nt.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)Et.release(this.shapes[G]);this._length=0};var ln=(function(){var G={newShapeCollection:Ae,release:$e},X=0,pe=4,xe=b(pe);function Ae(){return X?xe[X-=1]:new Nt}function $e(Oe){var Ue,We=Oe._length;for(Ue=0;Ue<We;Ue+=1)Et.release(Oe.shapes[Ue]);Oe._length=0,X===pe&&(xe=De.double(xe),pe*=2),xe[X]=Oe,X+=1}return G})(),Ze=(function(){var G=-999999;function X(Xe,Ve,Ne){var Ge,gt,an,cn,Mt,co,ko,ai,Go,oo=Ne.lastIndex,Rt=this.keyframes;if(Xe<Rt[0].t-this.offsetTime)Ge=Rt[0].s[0],an=!0,oo=0;else if(Xe>=Rt[Rt.length-1].t-this.offsetTime)Ge=Rt[Rt.length-1].s?Rt[Rt.length-1].s[0]:Rt[Rt.length-2].e[0],an=!0;else{for(var fn,ft,st,Re=oo,pt=Rt.length-1,yt=!0;yt&&(fn=Rt[Re],!((ft=Rt[Re+1]).t-this.offsetTime>Xe));)Re<pt-1?Re+=1:yt=!1;if(st=this.keyframesMetadata[Re]||{},oo=Re,!(an=fn.h===1)){if(Xe>=ft.t-this.offsetTime)ai=1;else if(Xe<fn.t-this.offsetTime)ai=0;else{var gi;st.__fnct?gi=st.__fnct:(gi=Le.getBezierEasing(fn.o.x,fn.o.y,fn.i.x,fn.i.y).get,st.__fnct=gi),ai=gi((Xe-(fn.t-this.offsetTime))/(ft.t-this.offsetTime-(fn.t-this.offsetTime)))}gt=ft.s?ft.s[0]:fn.e[0]}Ge=fn.s[0]}for(co=Ve._length,ko=Ge.i[0].length,Ne.lastIndex=oo,cn=0;cn<co;cn+=1)for(Mt=0;Mt<ko;Mt+=1)Go=an?Ge.i[cn][Mt]:Ge.i[cn][Mt]+(gt.i[cn][Mt]-Ge.i[cn][Mt])*ai,Ve.i[cn][Mt]=Go,Go=an?Ge.o[cn][Mt]:Ge.o[cn][Mt]+(gt.o[cn][Mt]-Ge.o[cn][Mt])*ai,Ve.o[cn][Mt]=Go,Go=an?Ge.v[cn][Mt]:Ge.v[cn][Mt]+(gt.v[cn][Mt]-Ge.v[cn][Mt])*ai,Ve.v[cn][Mt]=Go}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,Ve=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Ge=this._caching.lastFrame;return Ge!==G&&(Ge<Ve&&Xe<Ve||Ge>Ne&&Xe>Ne)||(this._caching.lastIndex=Ge<Xe?this._caching.lastIndex:0,this.interpolateShape(Xe,this.pv,this._caching)),this._caching.lastFrame=Xe,this.pv}function xe(){this.paths=this.localShapeCollection}function Ae(Xe,Ve){if(Xe._length!==Ve._length||Xe.c!==Ve.c)return!1;var Ne,Ge=Xe._length;for(Ne=0;Ne<Ge;Ne+=1)if(Xe.v[Ne][0]!==Ve.v[Ne][0]||Xe.v[Ne][1]!==Ve.v[Ne][1]||Xe.o[Ne][0]!==Ve.o[Ne][0]||Xe.o[Ne][1]!==Ve.o[Ne][1]||Xe.i[Ne][0]!==Ve.i[Ne][0]||Xe.i[Ne][1]!==Ve.i[Ne][1])return!1;return!0}function $e(Xe){Ae(this.v,Xe)||(this.v=Et.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Oe(){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 Xe;this.lock=!0,this._mdf=!1,Xe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var Ve,Ne=this.effectsSequence.length;for(Ve=0;Ve<Ne;Ve+=1)Xe=this.effectsSequence[Ve](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ue(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=Ve,this.k=!1,this.kf=!1,this._mdf=!1;var Ge=Ne===3?Ve.pt.k:Ve.ks.k;this.v=Et.clone(Ge),this.pv=Et.clone(this.v),this.localShapeCollection=ln.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function We(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Pt(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?Ve.pt.k:Ve.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Ge=this.keyframes[0].s[0].i.length;this.v=Et.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Ge),this.pv=Et.clone(this.v),this.localShapeCollection=ln.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)]}Ue.prototype.interpolateShape=X,Ue.prototype.getValue=Oe,Ue.prototype.setVValue=$e,Ue.prototype.addEffect=We,Pt.prototype.getValue=Oe,Pt.prototype.interpolateShape=X,Pt.prototype.setVValue=$e,Pt.prototype.addEffect=We;var Zt=(function(){var Xe=L;function Ve(Ne,Ge){this.v=Et.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ln.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Ge.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ke.getProp(Ne,Ge.p,1,0,this),this.s=Ke.getProp(Ne,Ge.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ve.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],Ge=this.p.v[1],gt=this.s.v[0]/2,an=this.s.v[1]/2,cn=this.d!==3,Mt=this.v;Mt.v[0][0]=Ne,Mt.v[0][1]=Ge-an,Mt.v[1][0]=cn?Ne+gt:Ne-gt,Mt.v[1][1]=Ge,Mt.v[2][0]=Ne,Mt.v[2][1]=Ge+an,Mt.v[3][0]=cn?Ne-gt:Ne+gt,Mt.v[3][1]=Ge,Mt.i[0][0]=cn?Ne-gt*Xe:Ne+gt*Xe,Mt.i[0][1]=Ge-an,Mt.i[1][0]=cn?Ne+gt:Ne-gt,Mt.i[1][1]=Ge-an*Xe,Mt.i[2][0]=cn?Ne+gt*Xe:Ne-gt*Xe,Mt.i[2][1]=Ge+an,Mt.i[3][0]=cn?Ne-gt:Ne+gt,Mt.i[3][1]=Ge+an*Xe,Mt.o[0][0]=cn?Ne+gt*Xe:Ne-gt*Xe,Mt.o[0][1]=Ge-an,Mt.o[1][0]=cn?Ne+gt:Ne-gt,Mt.o[1][1]=Ge+an*Xe,Mt.o[2][0]=cn?Ne-gt*Xe:Ne+gt*Xe,Mt.o[2][1]=Ge+an,Mt.o[3][0]=cn?Ne-gt:Ne+gt,Mt.o[3][1]=Ge-an*Xe}},g([Bt],Ve),Ve})(),et=(function(){function Xe(Ve,Ne){this.v=Et.newElement(),this.v.setPathData(!0,0),this.elem=Ve,this.comp=Ve.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),Ne.sy===1?(this.ir=Ke.getProp(Ve,Ne.ir,0,0,this),this.is=Ke.getProp(Ve,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ke.getProp(Ve,Ne.pt,0,0,this),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,D,this),this.or=Ke.getProp(Ve,Ne.or,0,0,this),this.os=Ke.getProp(Ve,Ne.os,0,.01,this),this.localShapeCollection=ln.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Xe.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 Ve,Ne,Ge,gt,an=2*Math.floor(this.pt.v),cn=2*Math.PI/an,Mt=!0,co=this.or.v,ko=this.ir.v,ai=this.os.v,Go=this.is.v,oo=2*Math.PI*co/(2*an),Rt=2*Math.PI*ko/(2*an),fn=-Math.PI/2;fn+=this.r.v;var ft=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<an;Ve+=1){Ge=Mt?ai:Go,gt=Mt?oo:Rt;var st=(Ne=Mt?co:ko)*Math.cos(fn),Re=Ne*Math.sin(fn),pt=st===0&&Re===0?0:Re/Math.sqrt(st*st+Re*Re),yt=st===0&&Re===0?0:-st/Math.sqrt(st*st+Re*Re);st+=+this.p.v[0],Re+=+this.p.v[1],this.v.setTripleAt(st,Re,st-pt*gt*Ge*ft,Re-yt*gt*Ge*ft,st+pt*gt*Ge*ft,Re+yt*gt*Ge*ft,Ve,!0),Mt=!Mt,fn+=cn*ft}},convertPolygonToPath:function(){var Ve,Ne=Math.floor(this.pt.v),Ge=2*Math.PI/Ne,gt=this.or.v,an=this.os.v,cn=2*Math.PI*gt/(4*Ne),Mt=.5*-Math.PI,co=this.data.d===3?-1:1;for(Mt+=this.r.v,this.v._length=0,Ve=0;Ve<Ne;Ve+=1){var ko=gt*Math.cos(Mt),ai=gt*Math.sin(Mt),Go=ko===0&&ai===0?0:ai/Math.sqrt(ko*ko+ai*ai),oo=ko===0&&ai===0?0:-ko/Math.sqrt(ko*ko+ai*ai);ko+=+this.p.v[0],ai+=+this.p.v[1],this.v.setTripleAt(ko,ai,ko-Go*cn*an*co,ai-oo*cn*an*co,ko+Go*cn*an*co,ai+oo*cn*an*co,Ve,!0),Mt+=Ge*co}this.paths.length=0,this.paths[0]=this.v}},g([Bt],Xe),Xe})(),ut=(function(){function Xe(Ve,Ne){this.v=Et.newElement(),this.v.c=!0,this.localShapeCollection=ln.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ve,this.comp=Ve.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.s=Ke.getProp(Ve,Ne.s,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var Ve=this.p.v[0],Ne=this.p.v[1],Ge=this.s.v[0]/2,gt=this.s.v[1]/2,an=I(Ge,gt,this.r.v),cn=an*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Ve+Ge,Ne-gt+an,Ve+Ge,Ne-gt+an,Ve+Ge,Ne-gt+cn,0,!0),this.v.setTripleAt(Ve+Ge,Ne+gt-an,Ve+Ge,Ne+gt-cn,Ve+Ge,Ne+gt-an,1,!0),an!==0?(this.v.setTripleAt(Ve+Ge-an,Ne+gt,Ve+Ge-an,Ne+gt,Ve+Ge-cn,Ne+gt,2,!0),this.v.setTripleAt(Ve-Ge+an,Ne+gt,Ve-Ge+cn,Ne+gt,Ve-Ge+an,Ne+gt,3,!0),this.v.setTripleAt(Ve-Ge,Ne+gt-an,Ve-Ge,Ne+gt-an,Ve-Ge,Ne+gt-cn,4,!0),this.v.setTripleAt(Ve-Ge,Ne-gt+an,Ve-Ge,Ne-gt+cn,Ve-Ge,Ne-gt+an,5,!0),this.v.setTripleAt(Ve-Ge+an,Ne-gt,Ve-Ge+an,Ne-gt,Ve-Ge+cn,Ne-gt,6,!0),this.v.setTripleAt(Ve+Ge-an,Ne-gt,Ve+Ge-cn,Ne-gt,Ve+Ge-an,Ne-gt,7,!0)):(this.v.setTripleAt(Ve-Ge,Ne+gt,Ve-Ge+cn,Ne+gt,Ve-Ge,Ne+gt,2),this.v.setTripleAt(Ve-Ge,Ne-gt,Ve-Ge,Ne-gt+cn,Ve-Ge,Ne-gt,3))):(this.v.setTripleAt(Ve+Ge,Ne-gt+an,Ve+Ge,Ne-gt+cn,Ve+Ge,Ne-gt+an,0,!0),an!==0?(this.v.setTripleAt(Ve+Ge-an,Ne-gt,Ve+Ge-an,Ne-gt,Ve+Ge-cn,Ne-gt,1,!0),this.v.setTripleAt(Ve-Ge+an,Ne-gt,Ve-Ge+cn,Ne-gt,Ve-Ge+an,Ne-gt,2,!0),this.v.setTripleAt(Ve-Ge,Ne-gt+an,Ve-Ge,Ne-gt+an,Ve-Ge,Ne-gt+cn,3,!0),this.v.setTripleAt(Ve-Ge,Ne+gt-an,Ve-Ge,Ne+gt-cn,Ve-Ge,Ne+gt-an,4,!0),this.v.setTripleAt(Ve-Ge+an,Ne+gt,Ve-Ge+an,Ne+gt,Ve-Ge+cn,Ne+gt,5,!0),this.v.setTripleAt(Ve+Ge-an,Ne+gt,Ve+Ge-cn,Ne+gt,Ve+Ge-an,Ne+gt,6,!0),this.v.setTripleAt(Ve+Ge,Ne+gt-an,Ve+Ge,Ne+gt-an,Ve+Ge,Ne+gt-cn,7,!0)):(this.v.setTripleAt(Ve-Ge,Ne-gt,Ve-Ge+cn,Ne-gt,Ve-Ge,Ne-gt,1,!0),this.v.setTripleAt(Ve-Ge,Ne+gt,Ve-Ge,Ne+gt-cn,Ve-Ge,Ne+gt,2,!0),this.v.setTripleAt(Ve+Ge,Ne+gt,Ve+Ge-cn,Ne+gt,Ve+Ge,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],Xe),Xe})();function wt(Xe,Ve,Ne){var Ge;return Ne===3||Ne===4?Ge=(Ne===3?Ve.pt:Ve.ks).k.length?new Pt(Xe,Ve,Ne):new Ue(Xe,Ve,Ne):Ne===5?Ge=new ut(Xe,Ve):Ne===6?Ge=new Zt(Xe,Ve):Ne===7&&(Ge=new et(Xe,Ve)),Ge.k&&Xe.addDynamicProperty(Ge),Ge}function $t(){return Ue}function qt(){return Pt}var Jt={};return Jt.getShapeProp=wt,Jt.getConstructorFunction=$t,Jt.getKeyframedConstructorFunction=qt,Jt})(),vt=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ae(){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 $e(Re){if(Re===0)return this;var pt=G(Re),yt=X(Re);return this._t(pt,-yt,0,0,yt,pt,0,0,0,0,1,0,0,0,0,1)}function Oe(Re){if(Re===0)return this;var pt=G(Re),yt=X(Re);return this._t(1,0,0,0,0,pt,-yt,0,0,yt,pt,0,0,0,0,1)}function Ue(Re){if(Re===0)return this;var pt=G(Re),yt=X(Re);return this._t(pt,0,yt,0,0,1,0,0,-yt,0,pt,0,0,0,0,1)}function We(Re){if(Re===0)return this;var pt=G(Re),yt=X(Re);return this._t(pt,-yt,0,0,yt,pt,0,0,0,0,1,0,0,0,0,1)}function Pt(Re,pt){return this._t(1,pt,Re,1,0,0)}function Zt(Re,pt){return this.shear(pe(Re),pe(pt))}function et(Re,pt){var yt=G(pt),gi=X(pt);return this._t(yt,gi,0,0,-gi,yt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(Re),1,0,0,0,0,1,0,0,0,0,1)._t(yt,-gi,0,0,gi,yt,0,0,0,0,1,0,0,0,0,1)}function ut(Re,pt,yt){return!yt&&yt!==0&&(yt=1),Re===1&&pt===1&&yt===1?this:this._t(Re,0,0,0,0,pt,0,0,0,0,yt,0,0,0,0,1)}function wt(Re,pt,yt,gi,qo,To,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp){return this.props[0]=Re,this.props[1]=pt,this.props[2]=yt,this.props[3]=gi,this.props[4]=qo,this.props[5]=To,this.props[6]=ya,this.props[7]=Ko,this.props[8]=dl,this.props[9]=ha,this.props[10]=Ua,this.props[11]=wm,this.props[12]=a2,this.props[13]=Cm,this.props[14]=vm,this.props[15]=Gp,this}function $t(Re,pt,yt){return yt=yt||0,Re!==0||pt!==0||yt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,pt,yt,1):this}function qt(Re,pt,yt,gi,qo,To,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp){var cr=this.props;if(Re===1&&pt===0&&yt===0&&gi===0&&qo===0&&To===1&&ya===0&&Ko===0&&dl===0&&ha===0&&Ua===1&&wm===0)return cr[12]=cr[12]*Re+cr[15]*a2,cr[13]=cr[13]*To+cr[15]*Cm,cr[14]=cr[14]*Ua+cr[15]*vm,cr[15]*=Gp,this._identityCalculated=!1,this;var ZS=cr[0],JS=cr[1],Y8=cr[2],Tf=cr[3],tx=cr[4],qp=cr[5],jy=cr[6],$y=cr[7],s2=cr[8],Ey=cr[9],l2=cr[10],G8=cr[11],UN=cr[12],WN=cr[13],QN=cr[14],YN=cr[15];return cr[0]=ZS*Re+JS*qo+Y8*dl+Tf*a2,cr[1]=ZS*pt+JS*To+Y8*ha+Tf*Cm,cr[2]=ZS*yt+JS*ya+Y8*Ua+Tf*vm,cr[3]=ZS*gi+JS*Ko+Y8*wm+Tf*Gp,cr[4]=tx*Re+qp*qo+jy*dl+$y*a2,cr[5]=tx*pt+qp*To+jy*ha+$y*Cm,cr[6]=tx*yt+qp*ya+jy*Ua+$y*vm,cr[7]=tx*gi+qp*Ko+jy*wm+$y*Gp,cr[8]=s2*Re+Ey*qo+l2*dl+G8*a2,cr[9]=s2*pt+Ey*To+l2*ha+G8*Cm,cr[10]=s2*yt+Ey*ya+l2*Ua+G8*vm,cr[11]=s2*gi+Ey*Ko+l2*wm+G8*Gp,cr[12]=UN*Re+WN*qo+QN*dl+YN*a2,cr[13]=UN*pt+WN*To+QN*ha+YN*Cm,cr[14]=UN*yt+WN*ya+QN*Ua+YN*vm,cr[15]=UN*gi+WN*Ko+QN*wm+YN*Gp,this._identityCalculated=!1,this}function Jt(Re){var pt=Re.props;return this.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15])}function Xe(){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 Ve(Re){for(var pt=0;pt<16;){if(Re.props[pt]!==this.props[pt])return!1;pt+=1}return!0}function Ne(Re){var pt;for(pt=0;pt<16;pt+=1)Re.props[pt]=this.props[pt];return Re}function Ge(Re){var pt;for(pt=0;pt<16;pt+=1)this.props[pt]=Re[pt]}function gt(Re,pt,yt){return{x:Re*this.props[0]+pt*this.props[4]+yt*this.props[8]+this.props[12],y:Re*this.props[1]+pt*this.props[5]+yt*this.props[9]+this.props[13],z:Re*this.props[2]+pt*this.props[6]+yt*this.props[10]+this.props[14]}}function an(Re,pt,yt){return Re*this.props[0]+pt*this.props[4]+yt*this.props[8]+this.props[12]}function cn(Re,pt,yt){return Re*this.props[1]+pt*this.props[5]+yt*this.props[9]+this.props[13]}function Mt(Re,pt,yt){return Re*this.props[2]+pt*this.props[6]+yt*this.props[10]+this.props[14]}function co(){var Re=this.props[0]*this.props[5]-this.props[1]*this.props[4],pt=this.props[5]/Re,yt=-this.props[1]/Re,gi=-this.props[4]/Re,qo=this.props[0]/Re,To=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Re,ya=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Re,Ko=new vt;return Ko.props[0]=pt,Ko.props[1]=yt,Ko.props[4]=gi,Ko.props[5]=qo,Ko.props[12]=To,Ko.props[13]=ya,Ko}function ko(Re){return this.getInverseMatrix().applyToPointArray(Re[0],Re[1],Re[2]||0)}function ai(Re){var pt,yt=Re.length,gi=[];for(pt=0;pt<yt;pt+=1)gi[pt]=ko(Re[pt]);return gi}function Go(Re,pt,yt){var gi=y("float32",6);if(this.isIdentity())gi[0]=Re[0],gi[1]=Re[1],gi[2]=pt[0],gi[3]=pt[1],gi[4]=yt[0],gi[5]=yt[1];else{var qo=this.props[0],To=this.props[1],ya=this.props[4],Ko=this.props[5],dl=this.props[12],ha=this.props[13];gi[0]=Re[0]*qo+Re[1]*ya+dl,gi[1]=Re[0]*To+Re[1]*Ko+ha,gi[2]=pt[0]*qo+pt[1]*ya+dl,gi[3]=pt[0]*To+pt[1]*Ko+ha,gi[4]=yt[0]*qo+yt[1]*ya+dl,gi[5]=yt[0]*To+yt[1]*Ko+ha}return gi}function oo(Re,pt,yt){return this.isIdentity()?[Re,pt,yt]:[Re*this.props[0]+pt*this.props[4]+yt*this.props[8]+this.props[12],Re*this.props[1]+pt*this.props[5]+yt*this.props[9]+this.props[13],Re*this.props[2]+pt*this.props[6]+yt*this.props[10]+this.props[14]]}function Rt(Re,pt){if(this.isIdentity())return Re+","+pt;var yt=this.props;return Math.round(100*(Re*yt[0]+pt*yt[4]+yt[12]))/100+","+Math.round(100*(Re*yt[1]+pt*yt[5]+yt[13]))/100}function fn(){for(var Re=0,pt=this.props,yt="matrix3d(",gi=1e4;Re<16;)yt+=xe(pt[Re]*gi)/gi,yt+=Re===15?")":",",Re+=1;return yt}function ft(Re){var pt=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?xe(Re*pt)/pt:Re}function st(){var Re=this.props;return"matrix("+ft(Re[0])+","+ft(Re[1])+","+ft(Re[4])+","+ft(Re[5])+","+ft(Re[12])+","+ft(Re[13])+")"}return function(){this.reset=Ae,this.rotate=$e,this.rotateX=Oe,this.rotateY=Ue,this.rotateZ=We,this.skew=Zt,this.skewFromAxis=et,this.shear=Pt,this.scale=ut,this.setTransform=wt,this.translate=$t,this.transform=qt,this.multiply=Jt,this.applyToPoint=gt,this.applyToX=an,this.applyToY=cn,this.applyToZ=Mt,this.applyToPointArray=oo,this.applyToTriplePoints=Go,this.applyToPointStringified=Rt,this.toCSS=fn,this.to2dCSS=st,this.clone=Ne,this.cloneFromProps=Ge,this.equals=Ve,this.inversePoints=ai,this.inversePoint=ko,this.getInverseMatrix=co,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function yn(G){return yn=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},yn(G)}var Wt={};function on(G){u(G)}function tn(){Be.searchAnimations()}function nt(G){K(G)}function $n(G){oe(G)}function En(G){return Be.loadAnimation(G)}function Ei(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 qi(){return typeof navigator<"u"}function ui(G,X){G==="expressions"&&ee(X)}function nn(G){switch(G){case"propertyFactory":return Ke;case"shapePropertyFactory":return Ze;case"matrix":return vt;default:return null}}function On(){document.readyState==="complete"&&(clearInterval(ti),tn())}function Qn(G){for(var X=qn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==G)return decodeURIComponent(xe[1])}return null}Wt.play=Be.play,Wt.pause=Be.pause,Wt.setLocationHref=on,Wt.togglePause=Be.togglePause,Wt.setSpeed=Be.setSpeed,Wt.setDirection=Be.setDirection,Wt.stop=Be.stop,Wt.searchAnimations=tn,Wt.registerAnimation=Be.registerAnimation,Wt.loadAnimation=En,Wt.setSubframeRendering=nt,Wt.resize=Be.resize,Wt.goToAndStop=Be.goToAndStop,Wt.destroy=Be.destroy,Wt.setQuality=Ei,Wt.inBrowser=qi,Wt.installPlugin=ui,Wt.freeze=Be.freeze,Wt.unfreeze=Be.unfreeze,Wt.setVolume=Be.setVolume,Wt.mute=Be.mute,Wt.unmute=Be.unmute,Wt.getRegisteredAnimations=Be.getRegisteredAnimations,Wt.useWebWorker=c,Wt.setIDPrefix=$n,Wt.__getFactory=nn,Wt.version="5.13.0";var qn="",Kn=document.getElementsByTagName("script"),xi=Kn.length-1,Bn=Kn[xi]||{src:""};qn=Bn.src?Bn.src.replace(/^[^\?]+\??/,""):"",Qn("renderer");var ti=setInterval(On,100);try{yn(n)!=="object"&&(window.bodymovin=Wt)}catch{}var mn=(function(){var G={},X={};function pe(Ae,$e){X[Ae]||(X[Ae]=$e)}function xe(Ae,$e,Oe){return new X[Ae]($e,Oe)}return G.registerModifier=pe,G.getModifier=xe,G})();function In(){}function rn(){}function Ut(){}In.prototype.initModifierProperties=function(){},In.prototype.addShapeToModifier=function(){},In.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:ln.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},In.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)},In.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Bt],In),g([In],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,Ae){var $e=[];X<=1?$e.push({s:G,e:X}):G>=1?$e.push({s:G-1,e:X-1}):($e.push({s:G,e:1}),$e.push({s:0,e:X-1}));var Oe,Ue,We=[],Pt=$e.length;for(Oe=0;Oe<Pt;Oe+=1)if(!((Ue=$e[Oe]).e*Ae<xe||Ue.s*Ae>xe+pe)){var Zt,et;Zt=Ue.s*Ae<=xe?0:(Ue.s*Ae-xe)/pe,et=Ue.e*Ae>=xe+pe?1:(Ue.e*Ae-xe)/pe,We.push([Zt,et])}return We.length||We.push([0,0]),We},rn.prototype.releasePathsData=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)Se.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 Ae=X;X=pe,pe=Ae}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 $e,Oe,Ue,We,Pt,Zt,et,ut=this.shapes.length,wt=0;if(pe===X)for(Oe=0;Oe<ut;Oe+=1)this.shapes[Oe].localShapeCollection.releaseShapes(),this.shapes[Oe].shape._mdf=!0,this.shapes[Oe].shape.paths=this.shapes[Oe].localShapeCollection,this._mdf&&(this.shapes[Oe].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Oe=0;Oe<ut;Oe+=1)this.shapes[Oe].pathsData.length=0,this.shapes[Oe].shape._mdf=!0}else{var $t,qt,Jt=[];for(Oe=0;Oe<ut;Oe+=1)if(($t=this.shapes[Oe]).shape._mdf||this._mdf||G||this.m===2){if(We=($e=$t.shape.paths)._length,et=0,!$t.shape._mdf&&$t.pathsData.length)et=$t.totalShapeLength;else{for(Pt=this.releasePathsData($t.pathsData),Ue=0;Ue<We;Ue+=1)Zt=Ie.getSegmentsLength($e.shapes[Ue]),Pt.push(Zt),et+=Zt.totalLength;$t.totalShapeLength=et,$t.pathsData=Pt}wt+=et,$t.shape._mdf=!0}else $t.shape.paths=$t.localShapeCollection;var Xe,Ve=X,Ne=pe,Ge=0;for(Oe=ut-1;Oe>=0;Oe-=1)if(($t=this.shapes[Oe]).shape._mdf){for((qt=$t.localShapeCollection).releaseShapes(),this.m===2&&ut>1?(Xe=this.calculateShapeEdges(X,pe,$t.totalShapeLength,Ge,wt),Ge+=$t.totalShapeLength):Xe=[[Ve,Ne]],We=Xe.length,Ue=0;Ue<We;Ue+=1){Ve=Xe[Ue][0],Ne=Xe[Ue][1],Jt.length=0,Ne<=1?Jt.push({s:$t.totalShapeLength*Ve,e:$t.totalShapeLength*Ne}):Ve>=1?Jt.push({s:$t.totalShapeLength*(Ve-1),e:$t.totalShapeLength*(Ne-1)}):(Jt.push({s:$t.totalShapeLength*Ve,e:$t.totalShapeLength}),Jt.push({s:0,e:$t.totalShapeLength*(Ne-1)}));var gt=this.addShapes($t,Jt[0]);if(Jt[0].s!==Jt[0].e){if(Jt.length>1)if($t.shape.paths.shapes[$t.shape.paths._length-1].c){var an=gt.pop();this.addPaths(gt,qt),gt=this.addShapes($t,Jt[1],an)}else this.addPaths(gt,qt),gt=this.addShapes($t,Jt[1]);this.addPaths(gt,qt)}}$t.shape.paths=qt}}},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,Ae,$e,Oe){Ae.setXYAt(X[0],X[1],"o",$e),Ae.setXYAt(pe[0],pe[1],"i",$e+1),Oe&&Ae.setXYAt(G[0],G[1],"v",$e),Ae.setXYAt(xe[0],xe[1],"v",$e+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,Ae,$e,Oe,Ue,We,Pt,Zt,et=G.pathsData,ut=G.shape.paths.shapes,wt=G.shape.paths._length,$t=0,qt=[],Jt=!0;for(pe?(Ue=pe._length,Zt=pe._length):(pe=Et.newElement(),Ue=0,Zt=0),qt.push(pe),xe=0;xe<wt;xe+=1){for(We=et[xe].lengths,pe.c=ut[xe].c,$e=ut[xe].c?We.length:We.length+1,Ae=1;Ae<$e;Ae+=1)if($t+(Oe=We[Ae-1]).addedLength<X.s)$t+=Oe.addedLength,pe.c=!1;else{if($t>X.e){pe.c=!1;break}X.s<=$t&&X.e>=$t+Oe.addedLength?(this.addSegment(ut[xe].v[Ae-1],ut[xe].o[Ae-1],ut[xe].i[Ae],ut[xe].v[Ae],pe,Ue,Jt),Jt=!1):(Pt=Ie.getNewSegment(ut[xe].v[Ae-1],ut[xe].v[Ae],ut[xe].o[Ae-1],ut[xe].i[Ae],(X.s-$t)/Oe.addedLength,(X.e-$t)/Oe.addedLength,We[Ae-1]),this.addSegmentFromArray(Pt,pe,Ue,Jt),Jt=!1,pe.c=!1),$t+=Oe.addedLength,Ue+=1}if(ut[xe].c&&We.length){if(Oe=We[Ae-1],$t<=X.e){var Xe=We[Ae-1].addedLength;X.s<=$t&&X.e>=$t+Xe?(this.addSegment(ut[xe].v[Ae-1],ut[xe].o[Ae-1],ut[xe].i[0],ut[xe].v[0],pe,Ue,Jt),Jt=!1):(Pt=Ie.getNewSegment(ut[xe].v[Ae-1],ut[xe].v[0],ut[xe].o[Ae-1],ut[xe].i[0],(X.s-$t)/Xe,(X.e-$t)/Xe,We[Ae-1]),this.addSegmentFromArray(Pt,pe,Ue,Jt),Jt=!1,pe.c=!1)}else pe.c=!1;$t+=Oe.addedLength,Ue+=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)),$t>X.e)break;xe<wt-1&&(pe=Et.newElement(),Jt=!0,qt.push(pe),Ue=0)}return qt},g([In],Ut),Ut.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},Ut.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],Ae=G._length,$e=0;for($e=0;$e<Ae;$e+=1)xe[0]+=G.v[$e][0],xe[1]+=G.v[$e][1];xe[0]/=Ae,xe[1]/=Ae;var Oe,Ue,We,Pt,Zt,et,ut=Et.newElement();for(ut.c=G.c,$e=0;$e<Ae;$e+=1)Oe=G.v[$e][0]+(xe[0]-G.v[$e][0])*pe,Ue=G.v[$e][1]+(xe[1]-G.v[$e][1])*pe,We=G.o[$e][0]+(xe[0]-G.o[$e][0])*-pe,Pt=G.o[$e][1]+(xe[1]-G.o[$e][1])*-pe,Zt=G.i[$e][0]+(xe[0]-G.i[$e][0])*-pe,et=G.i[$e][1]+(xe[1]-G.i[$e][1])*-pe,ut.setTripleAt(Oe,Ue,We,Pt,Zt,et,$e);return ut},Ut.prototype.processShapes=function(G){var X,pe,xe,Ae,$e,Oe,Ue=this.shapes.length,We=this.amount.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ae=$e.shape.paths._length,xe=0;xe<Ae;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var zt=(function(){var G=[0,0];function X(We){var Pt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Pt,this.a&&We.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&We.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&We.skewFromAxis(-this.sk.v,this.sa.v),this.r?We.rotate(-this.r.v):We.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?We.translate(this.px.v,this.py.v,-this.pz.v):We.translate(this.px.v,this.py.v,0):We.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(We){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||We){var Pt;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,et;if(Pt=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)/Pt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Pt,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/Pt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Pt,0)):(Zt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Pt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Zt=[],et=[];var ut=this.px,wt=this.py;ut._caching.lastFrame+ut.offsetTime<=ut.keyframes[0].t?(Zt[0]=ut.getValueAtTime((ut.keyframes[0].t+.01)/Pt,0),Zt[1]=wt.getValueAtTime((wt.keyframes[0].t+.01)/Pt,0),et[0]=ut.getValueAtTime(ut.keyframes[0].t/Pt,0),et[1]=wt.getValueAtTime(wt.keyframes[0].t/Pt,0)):ut._caching.lastFrame+ut.offsetTime>=ut.keyframes[ut.keyframes.length-1].t?(Zt[0]=ut.getValueAtTime(ut.keyframes[ut.keyframes.length-1].t/Pt,0),Zt[1]=wt.getValueAtTime(wt.keyframes[wt.keyframes.length-1].t/Pt,0),et[0]=ut.getValueAtTime((ut.keyframes[ut.keyframes.length-1].t-.01)/Pt,0),et[1]=wt.getValueAtTime((wt.keyframes[wt.keyframes.length-1].t-.01)/Pt,0)):(Zt=[ut.pv,wt.pv],et[0]=ut.getValueAtTime((ut._caching.lastFrame+ut.offsetTime-.01)/Pt,ut.offsetTime),et[1]=wt.getValueAtTime((wt._caching.lastFrame+wt.offsetTime-.01)/Pt,wt.offsetTime))}else Zt=et=G;this.v.rotate(-Math.atan2(Zt[1]-et[1],Zt[0]-et[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 Ae(){}function $e(We){this._addDynamicProperty(We),this.elem.addDynamicProperty(We),this._isDirty=!0}function Oe(We,Pt,Zt){if(this.elem=We,this.frameId=-1,this.propType="transform",this.data=Pt,this.v=new vt,this.pre=new vt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Zt||We),Pt.p&&Pt.p.s?(this.px=Ke.getProp(We,Pt.p.x,0,0,this),this.py=Ke.getProp(We,Pt.p.y,0,0,this),Pt.p.z&&(this.pz=Ke.getProp(We,Pt.p.z,0,0,this))):this.p=Ke.getProp(We,Pt.p||{k:[0,0,0]},1,0,this),Pt.rx){if(this.rx=Ke.getProp(We,Pt.rx,0,D,this),this.ry=Ke.getProp(We,Pt.ry,0,D,this),this.rz=Ke.getProp(We,Pt.rz,0,D,this),Pt.or.k[0].ti){var et,ut=Pt.or.k.length;for(et=0;et<ut;et+=1)Pt.or.k[et].to=null,Pt.or.k[et].ti=null}this.or=Ke.getProp(We,Pt.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(We,Pt.r||{k:0},0,D,this);Pt.sk&&(this.sk=Ke.getProp(We,Pt.sk,0,D,this),this.sa=Ke.getProp(We,Pt.sa,0,D,this)),this.a=Ke.getProp(We,Pt.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(We,Pt.s||{k:[100,100,100]},1,.01,this),Pt.o?this.o=Ke.getProp(We,Pt.o,0,.01,We):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Ue(We,Pt,Zt){return new Oe(We,Pt,Zt)}return Oe.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ae},g([Bt],Oe),Oe.prototype.addDynamicProperty=$e,Oe.prototype._addDynamicProperty=Bt.prototype.addDynamicProperty,{getTransformProperty:Ue}})();function Wn(){}function ei(){}function Kt(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Ai(G){return Math.abs(G)<=1e-5}function ci(G,X,pe){return G*(1-pe)+X*pe}function mo(G,X,pe){return[ci(G[0],X[0],pe),ci(G[1],X[1],pe)]}function Co(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var Ae=-X/(2*G);if(xe===0)return[Ae];var $e=Math.sqrt(xe)/(2*G);return[Ae-$e,Ae+$e]}function hi(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 hn(G,G,G,G,!1)}function hn(G,X,pe,xe,Ae){Ae&&lo(G,X)&&(X=mo(G,xe,1/3)),Ae&&lo(pe,xe)&&(pe=mo(G,xe,2/3));var $e=hi(G[0],X[0],pe[0],xe[0]),Oe=hi(G[1],X[1],pe[1],xe[1]);this.a=[$e[0],Oe[0]],this.b=[$e[1],Oe[1]],this.c=[$e[2],Oe[2]],this.d=[$e[3],Oe[3]],this.points=[G,X,pe,xe]}function _t(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var Ae=xe;xe=pe,pe=Ae}for(var $e=Co(3*G.a[X],2*G.b[X],G.c[X]),Oe=0;Oe<$e.length;Oe+=1)if($e[Oe]>0&&$e[Oe]<1){var Ue=G.point($e[Oe])[X];Ue<pe?pe=Ue:Ue>xe&&(xe=Ue)}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 Pn(G){var X=G.bez.split(.5);return[bn(X[0],G.t1,G.t),bn(X[1],G.t,G.t2)]}function An(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 Gt(G,X,pe,xe,Ae,$e){if(An(G,X)){if(pe>=$e||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void Ae.push([G.t,X.t]);var Oe=Pn(G),Ue=Pn(X);Gt(Oe[0],Ue[0],pe+1,xe,Ae,$e),Gt(Oe[0],Ue[1],pe+1,xe,Ae,$e),Gt(Oe[1],Ue[0],pe+1,xe,Ae,$e),Gt(Oe[1],Ue[1],pe+1,xe,Ae,$e)}}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 so(G,X,pe,xe){var Ae=[G[0],G[1],1],$e=[X[0],X[1],1],Oe=[pe[0],pe[1],1],Ue=[xe[0],xe[1],1],We=zn(zn(Ae,$e),zn(Oe,Ue));return Ai(We[2])?null:[We[0]/We[2],We[1]/We[2]]}function Ki(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function No(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function lo(G,X){return Kt(G[0],X[0])&&Kt(G[1],X[1])}function ua(){}function gr(G,X,pe,xe,Ae,$e,Oe){var Ue=pe-Math.PI/2,We=pe+Math.PI/2,Pt=X[0]+Math.cos(pe)*xe*Ae,Zt=X[1]-Math.sin(pe)*xe*Ae;G.setTripleAt(Pt,Zt,Pt+Math.cos(Ue)*$e,Zt-Math.sin(Ue)*$e,Pt+Math.cos(We)*Oe,Zt-Math.sin(We)*Oe,G.length())}function $a(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 jt(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),Ae=$a(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(Ae[1],Ae[0])}function dn(G,X,pe,xe,Ae,$e,Oe){var Ue=jt(X,pe),We=X.v[pe%X._length],Pt=X.v[pe===0?X._length-1:pe-1],Zt=X.v[(pe+1)%X._length],et=$e===2?Math.sqrt(Math.pow(We[0]-Pt[0],2)+Math.pow(We[1]-Pt[1],2)):0,ut=$e===2?Math.sqrt(Math.pow(We[0]-Zt[0],2)+Math.pow(We[1]-Zt[1],2)):0;gr(G,X.v[pe%X._length],Ue,Oe,xe,ut/(2*(Ae+1)),et/(2*(Ae+1)))}function Vn(G,X,pe,xe,Ae,$e){for(var Oe=0;Oe<xe;Oe+=1){var Ue=(Oe+1)/(xe+1),We=Ae===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,Pt=X.normalAngle(Ue);gr(G,X.point(Ue),Pt,$e,pe,We/(2*(xe+1)),We/(2*(xe+1))),$e=-$e}return $e}function no(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[Ki(G,xe,pe),Ki(X,xe,pe)]}function io(G,X){var pe,xe,Ae,$e,Oe,Ue,We;pe=(We=no(G.points[0],G.points[1],X))[0],xe=We[1],Ae=(We=no(G.points[1],G.points[2],X))[0],$e=We[1],Oe=(We=no(G.points[2],G.points[3],X))[0],Ue=We[1];var Pt=so(pe,xe,Ae,$e);Pt===null&&(Pt=xe);var Zt=so(Oe,Ue,Ae,$e);return Zt===null&&(Zt=Oe),new hn(pe,Pt,Zt,Ue)}function Li(G,X,pe,xe,Ae){var $e=X.points[3],Oe=pe.points[0];if(xe===3||lo($e,Oe))return $e;if(xe===2){var Ue=-X.tangentAngle(1),We=-pe.tangentAngle(0)+Math.PI,Pt=so($e,Ki($e,Ue+Math.PI/2,100),Oe,Ki(Oe,Ue+Math.PI/2,100)),Zt=Pt?No(Pt,$e):No($e,Oe)/2,et=Ki($e,Ue,2*Zt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=Ki(Oe,We,2*Zt*L),G.setTripleAt(Oe[0],Oe[1],Oe[0],Oe[1],et[0],et[1],G.length()),Oe}var ut=so(lo($e,X.points[2])?X.points[0]:X.points[2],$e,Oe,lo(Oe,pe.points[1])?pe.points[3]:pe.points[1]);return ut&&No(ut,$e)<Ae?(G.setTripleAt(ut[0],ut[1],ut[0],ut[1],ut[0],ut[1],G.length()),ut):$e}function Di(G,X){var pe=G.intersections(X);return pe.length&&Kt(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Wo(G,X){var pe=G.slice(),xe=X.slice(),Ae=Di(G[G.length-1],X[0]);return Ae&&(pe[G.length-1]=G[G.length-1].split(Ae[0])[0],xe[0]=X[0].split(Ae[1])[1]),G.length>1&&X.length>1&&(Ae=Di(G[0],X[X.length-1]))?[[G[0].split(Ae[0])[0]],[X[X.length-1].split(Ae[1])[1]]]:[pe,xe]}function mi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Wo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Wo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function go(G,X){var pe,xe,Ae,$e,Oe=G.inflectionPoints();if(Oe.length===0)return[io(G,X)];if(Oe.length===1||Kt(Oe[1],1))return pe=(Ae=G.split(Oe[0]))[0],xe=Ae[1],[io(pe,X),io(xe,X)];pe=(Ae=G.split(Oe[0]))[0];var Ue=(Oe[1]-Oe[0])/(1-Oe[0]);return $e=(Ae=Ae[1].split(Ue))[0],xe=Ae[1],[io(pe,X),io($e,X),io(xe,X)]}function fr(){}function Ot(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",Ae="normal",$e=pe.length,Oe=0;Oe<$e;Oe+=1)switch(X=pe[Oe].toLowerCase(),X){case"italic":Ae="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:Ae,weight:G.fWeight||xe}}g([In],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=zt.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 vt,this.rMatrix=new vt,this.sMatrix=new vt,this.tMatrix=new vt,this.matrix=new vt},Wn.prototype.applyTransforms=function(G,X,pe,xe,Ae,$e){var Oe=$e?-1:1,Ue=xe.s.v[0]+(1-xe.s.v[0])*(1-Ae),We=xe.s.v[1]+(1-xe.s.v[1])*(1-Ae);G.translate(xe.p.v[0]*Oe*Ae,xe.p.v[1]*Oe*Ae,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Oe*Ae),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($e?1/Ue:Ue,$e?1/We:We),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,Ae,$e,Oe=!1;if(this._mdf||G){var Ue,We=Math.ceil(this.c.v);if(this._groups.length<We){for(;this._groups.length<We;){var Pt={it:this.cloneElements(this._elements),ty:"gr"};Pt.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,Pt),this._groups.splice(0,0,Pt),this._currentCopies+=1}this.elem.reloadShapes(),Oe=!0}for($e=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Ue=$e<We,this._groups[xe]._render=Ue,this.changeGroupRender(this._groups[xe].it,Ue),!Ue){var Zt=this.elemsData[xe].it,et=Zt[Zt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}$e+=1}this._currentCopies=We;var ut=this.o.v,wt=ut%1,$t=ut>0?Math.floor(ut):Math.ceil(ut),qt=this.pMatrix.props,Jt=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ve,Ne,Ge=0;if(ut>0){for(;Ge<$t;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Ge+=1;wt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,wt,!1),Ge+=wt)}else if(ut<0){for(;Ge>$t;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Ge-=1;wt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-wt,!0),Ge-=wt)}for(xe=this.data.m===1?0:this._currentCopies-1,Ae=this.data.m===1?1:-1,$e=this._currentCopies;$e;){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)),Ge!==0){for((xe!==0&&Ae===1||xe!==this._currentCopies-1&&Ae===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Jt[0],Jt[1],Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],Jt[8],Jt[9],Jt[10],Jt[11],Jt[12],Jt[13],Jt[14],Jt[15]),this.matrix.transform(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],Xe[8],Xe[9],Xe[10],Xe[11],Xe[12],Xe[13],Xe[14],Xe[15]),this.matrix.transform(qt[0],qt[1],qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],qt[8],qt[9],qt[10],qt[11],qt[12],qt[13],qt[14],qt[15]),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];this.matrix.reset()}else for(this.matrix.reset(),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];Ge+=1,$e-=1,xe+=Ae}}else for($e=this._currentCopies,xe=0,Ae=1;$e;)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,$e-=1,xe+=Ae;return Oe},Wn.prototype.addShape=function(){},g([In],ei),ei.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},ei.prototype.processPath=function(G,X){var pe=Et.newElement();pe.c=G.c;var xe,Ae,$e,Oe,Ue,We,Pt,Zt,et,ut,wt,$t,qt,Jt=G._length,Xe=0;for(xe=0;xe<Jt;xe+=1)Ae=G.v[xe],Oe=G.o[xe],$e=G.i[xe],Ae[0]===Oe[0]&&Ae[1]===Oe[1]&&Ae[0]===$e[0]&&Ae[1]===$e[1]?xe!==0&&xe!==Jt-1||G.c?(Ue=xe===0?G.v[Jt-1]:G.v[xe-1],Pt=(We=Math.sqrt(Math.pow(Ae[0]-Ue[0],2)+Math.pow(Ae[1]-Ue[1],2)))?Math.min(We/2,X)/We:0,Zt=$t=Ae[0]+(Ue[0]-Ae[0])*Pt,et=qt=Ae[1]-(Ae[1]-Ue[1])*Pt,ut=Zt-(Zt-Ae[0])*L,wt=et-(et-Ae[1])*L,pe.setTripleAt(Zt,et,ut,wt,$t,qt,Xe),Xe+=1,Ue=xe===Jt-1?G.v[0]:G.v[xe+1],Pt=(We=Math.sqrt(Math.pow(Ae[0]-Ue[0],2)+Math.pow(Ae[1]-Ue[1],2)))?Math.min(We/2,X)/We:0,Zt=ut=Ae[0]+(Ue[0]-Ae[0])*Pt,et=wt=Ae[1]+(Ue[1]-Ae[1])*Pt,$t=Zt-(Zt-Ae[0])*L,qt=et-(et-Ae[1])*L,pe.setTripleAt(Zt,et,ut,wt,$t,qt,Xe),Xe+=1):(pe.setTripleAt(Ae[0],Ae[1],Oe[0],Oe[1],$e[0],$e[1],Xe),Xe+=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],Xe),Xe+=1);return pe},ei.prototype.processShapes=function(G){var X,pe,xe,Ae,$e,Oe,Ue=this.shapes.length,We=this.rd.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ae=$e.shape.paths._length,xe=0;xe<Ae;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},hn.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]]},hn.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]]},hn.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},hn.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},hn.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ai(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 Ai(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ae){return Ae>0&&Ae<1}))},hn.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=mo(this.points[0],this.points[1],G),pe=mo(this.points[1],this.points[2],G),xe=mo(this.points[2],this.points[3],G),Ae=mo(X,pe,G),$e=mo(pe,xe,G),Oe=mo(Ae,$e,G);return[new hn(this.points[0],X,Ae,Oe,!0),new hn(Oe,$e,xe,this.points[3],!0)]},hn.prototype.bounds=function(){return{x:_t(this,0),y:_t(this,1)}},hn.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}},hn.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Gt(bn(this,0,1),bn(G,0,1),0,X,xe,pe),xe},hn.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new hn(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},hn.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new hn(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([In],ua),ua.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},ua.prototype.processPath=function(G,X,pe,xe){var Ae=G._length,$e=Et.newElement();if($e.c=G.c,G.c||(Ae-=1),Ae===0)return $e;var Oe=-1,Ue=hn.shapeSegment(G,0);dn($e,G,0,X,pe,xe,Oe);for(var We=0;We<Ae;We+=1)Oe=Vn($e,Ue,X,pe,xe,-Oe),Ue=We!==Ae-1||G.c?hn.shapeSegment(G,(We+1)%Ae):null,dn($e,G,We+1,X,pe,xe,Oe);return $e},ua.prototype.processShapes=function(G){var X,pe,xe,Ae,$e,Oe,Ue=this.shapes.length,We=this.amplitude.v,Pt=Math.max(0,Math.round(this.frequency.v)),Zt=this.pointsType.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ae=$e.shape.paths._length,xe=0;xe<Ae;xe+=1)Oe.addShape(this.processPath(X[xe],We,Pt,Zt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([In],fr),fr.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},fr.prototype.processPath=function(G,X,pe,xe){var Ae=Et.newElement();Ae.c=G.c;var $e=G.length();G.c||($e-=1);var Oe,Ue,We,Pt=[];for(Oe=0;Oe<$e;Oe+=1)We=hn.shapeSegment(G,Oe),Pt.push(go(We,X));if(!G.c)for(Oe=$e-1;Oe>=0;Oe-=1)We=hn.shapeSegmentInverted(G,Oe),Pt.push(go(We,X));Pt=mi(Pt);var Zt=null,et=null;for(Oe=0;Oe<Pt.length;Oe+=1){var ut=Pt[Oe];for(et&&(Zt=Li(Ae,et,ut[0],pe,xe)),et=ut[ut.length-1],Ue=0;Ue<ut.length;Ue+=1)We=ut[Ue],Zt&&lo(We.points[0],Zt)?Ae.setXYAt(We.points[1][0],We.points[1][1],"o",Ae.length()-1):Ae.setTripleAt(We.points[0][0],We.points[0][1],We.points[1][0],We.points[1][1],We.points[0][0],We.points[0][1],Ae.length()),Ae.setTripleAt(We.points[3][0],We.points[3][1],We.points[3][0],We.points[3][1],We.points[2][0],We.points[2][1],Ae.length()),Zt=We.points[3]}return Pt.length&&Li(Ae,et,Pt[0][0],pe,xe),Ae},fr.prototype.processShapes=function(G){var X,pe,xe,Ae,$e,Oe,Ue=this.shapes.length,We=this.amount.v,Pt=this.miterLimit.v,Zt=this.lineJoin;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ae=$e.shape.paths._length,xe=0;xe<Ae;xe+=1)Oe.addShape(this.processPath(X[xe],We,Zt,Pt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var un=(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,Ae=917631,$e=917601,Oe=917626,Ue=65039,We=8205,Pt=127462,Zt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ut(ft){var st,Re=ft.split(","),pt=Re.length,yt=[];for(st=0;st<pt;st+=1)Re[st]!=="sans-serif"&&Re[st]!=="monospace"&&yt.push(Re[st]);return yt.join(",")}function wt(ft,st){var Re=h("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=st;var pt=h("span");pt.innerText="giItT1WQy@!-/#",Re.style.position="absolute",Re.style.left="-10000px",Re.style.top="-10000px",Re.style.fontSize="300px",Re.style.fontVariant="normal",Re.style.fontStyle="normal",Re.style.fontWeight="normal",Re.style.letterSpacing="0",Re.appendChild(pt),document.body.appendChild(Re);var yt=pt.offsetWidth;return pt.style.fontFamily=ut(ft)+", "+st,{node:pt,w:yt,parent:Re}}function $t(){var ft,st,Re,pt=this.fonts.length,yt=pt;for(ft=0;ft<pt;ft+=1)this.fonts[ft].loaded?yt-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(st=this.fonts[ft].monoCase.node,Re=this.fonts[ft].monoCase.w,st.offsetWidth!==Re?(yt-=1,this.fonts[ft].loaded=!0):(st=this.fonts[ft].sansCase.node,Re=this.fonts[ft].sansCase.w,st.offsetWidth!==Re&&(yt-=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)));yt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function qt(ft,st){var Re,pt=document.body&&st?"svg":"canvas",yt=Ot(ft);if(pt==="svg"){var gi=ce("text");gi.style.fontSize="100px",gi.setAttribute("font-family",ft.fFamily),gi.setAttribute("font-style",yt.style),gi.setAttribute("font-weight",yt.weight),gi.textContent="1",ft.fClass?(gi.style.fontFamily="inherit",gi.setAttribute("class",ft.fClass)):gi.style.fontFamily=ft.fFamily,st.appendChild(gi),Re=gi}else{var qo=new OffscreenCanvas(500,500).getContext("2d");qo.font=yt.style+" "+yt.weight+" 100px "+ft.fFamily,Re=qo}function To(ya){return pt==="svg"?(Re.textContent=ya,Re.getComputedTextLength()):Re.measureText(ya).width}return{measureText:To}}function Jt(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(Ua){Ua.helper=qt(Ua),Ua.cache={}})),void(this.fonts=ft.list);var Re,pt=ft.list,yt=pt.length,gi=yt;for(Re=0;Re<yt;Re+=1){var qo,To,ya=!0;if(pt[Re].loaded=!1,pt[Re].monoCase=wt(pt[Re].fFamily,"monospace"),pt[Re].sansCase=wt(pt[Re].fFamily,"sans-serif"),pt[Re].fPath){if(pt[Re].fOrigin==="p"||pt[Re].origin===3){if((qo=document.querySelectorAll('style[f-forigin="p"][f-family="'+pt[Re].fFamily+'"], style[f-origin="3"][f-family="'+pt[Re].fFamily+'"]')).length>0&&(ya=!1),ya){var Ko=h("style");Ko.setAttribute("f-forigin",pt[Re].fOrigin),Ko.setAttribute("f-origin",pt[Re].origin),Ko.setAttribute("f-family",pt[Re].fFamily),Ko.type="text/css",Ko.innerText="@font-face {font-family: "+pt[Re].fFamily+"; font-style: normal; src: url('"+pt[Re].fPath+"');}",st.appendChild(Ko)}}else if(pt[Re].fOrigin==="g"||pt[Re].origin===1){for(qo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),To=0;To<qo.length;To+=1)qo[To].href.indexOf(pt[Re].fPath)!==-1&&(ya=!1);if(ya){var dl=h("link");dl.setAttribute("f-forigin",pt[Re].fOrigin),dl.setAttribute("f-origin",pt[Re].origin),dl.type="text/css",dl.rel="stylesheet",dl.href=pt[Re].fPath,document.body.appendChild(dl)}}else if(pt[Re].fOrigin==="t"||pt[Re].origin===2){for(qo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),To=0;To<qo.length;To+=1)pt[Re].fPath===qo[To].src&&(ya=!1);if(ya){var ha=h("link");ha.setAttribute("f-forigin",pt[Re].fOrigin),ha.setAttribute("f-origin",pt[Re].origin),ha.setAttribute("rel","stylesheet"),ha.setAttribute("href",pt[Re].fPath),st.appendChild(ha)}}}else pt[Re].loaded=!0,gi-=1;pt[Re].helper=qt(pt[Re],st),pt[Re].cache={},this.fonts.push(pt[Re])}gi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(ft){if(ft){this.chars||(this.chars=[]);var st,Re,pt,yt=ft.length,gi=this.chars.length;for(st=0;st<yt;st+=1){for(Re=0,pt=!1;Re<gi;)this.chars[Re].style===ft[st].style&&this.chars[Re].fFamily===ft[st].fFamily&&this.chars[Re].ch===ft[st].ch&&(pt=!0),Re+=1;pt||(this.chars.push(ft[st]),gi+=1)}}}function Ve(ft,st,Re){for(var pt=0,yt=this.chars.length;pt<yt;){if(this.chars[pt].ch===ft&&this.chars[pt].style===st&&this.chars[pt].fFamily===Re)return this.chars[pt];pt+=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,Re)),X}function Ne(ft,st,Re){var pt=this.getFontByName(st),yt=ft;if(!pt.cache[yt]){var gi=pt.helper;if(ft===" "){var qo=gi.measureText("|"+ft+"|"),To=gi.measureText("||");pt.cache[yt]=(qo-To)/100}else pt.cache[yt]=gi.measureText(ft)/100}return pt.cache[yt]*Re}function Ge(ft){for(var st=0,Re=this.fonts.length;st<Re;){if(this.fonts[st].fName===ft)return this.fonts[st];st+=1}return this.fonts[0]}function gt(ft){var st=0,Re=ft.charCodeAt(0);if(Re>=55296&&Re<=56319){var pt=ft.charCodeAt(1);pt>=56320&&pt<=57343&&(st=1024*(Re-55296)+pt-56320+65536)}return st}function an(ft,st){var Re=ft.toString(16)+st.toString(16);return et.indexOf(Re)!==-1}function cn(ft){return ft===We}function Mt(ft){return ft===Ue}function co(ft){var st=gt(ft);return st>=Pt&&st<=Zt}function ko(ft){return co(ft.substr(0,2))&&co(ft.substr(2,2))}function ai(ft){return pe.indexOf(ft)!==-1}function Go(ft,st){var Re=gt(ft.substr(st,2));if(Re!==xe)return!1;var pt=0;for(st+=2;pt<5;){if((Re=gt(ft.substr(st,2)))<$e||Re>Oe)return!1;pt+=1,st+=2}return gt(ft.substr(st,2))===Ae}function oo(){this.isLoaded=!0}var Rt=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)};Rt.isModifier=an,Rt.isZeroWidthJoiner=cn,Rt.isFlagEmoji=ko,Rt.isRegionalCode=co,Rt.isCombinedCharacter=ai,Rt.isRegionalFlag=Go,Rt.isVariationSelector=Mt,Rt.BLACK_FLAG_CODE_POINT=xe;var fn={addChars:Xe,addFonts:Jt,getCharData:Ve,getFontByName:Ge,measureText:Ne,checkLoadedFonts:$t,setIsLoaded:oo};return Rt.prototype=fn,Rt})();function Xt(G){this.animationData=G}function di(G){return new Xt(G)}function kn(){}Xt.prototype.getProp=function(G){return this.animationData.slots&&this.animationData.slots[G.sid]?Object.assign(G,this.animationData.slots[G.sid].p):G},kn.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 yo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Hi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Xi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Dt(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function fi(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function fo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function _r(){this.p={}}function xr(G,X){var pe=G.ef||[];this.effectElements=[];var xe,Ae,$e=pe.length;for(xe=0;xe<$e;xe+=1)Ae=new yr(pe[xe],X),this.effectElements.push(Ae)}function yr(G,X){this.init(G,X)}function Rn(){}function bi(){}function nr(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 pa(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 Js(){}g([Bt],yr),yr.prototype.getValue=yr.prototype.iterateDynamicProperties,yr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ae=this.data.ef.length,$e=this.data.ef;for(pe=0;pe<Ae;pe+=1){switch(xe=null,$e[pe].ty){case 0:xe=new Ti($e[pe],X,this);break;case 1:xe=new yo($e[pe],X,this);break;case 2:xe=new Hi($e[pe],X,this);break;case 3:xe=new Xi($e[pe],X,this);break;case 4:case 7:xe=new fo($e[pe],X,this);break;case 10:xe=new Dt($e[pe],X,this);break;case 11:xe=new fi($e[pe],X,this);break;case 5:xe=new xr($e[pe],X);break;default:xe=new _r($e[pe])}xe&&this.effectElements.push(xe)}},Rn.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 xr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},bi.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)}},nr.prototype.prepareFrame=function(){},g([kn,Rn,bi],nr),nr.prototype.getBaseElement=function(){return null},nr.prototype.renderFrame=function(){},nr.prototype.destroy=function(){},nr.prototype.initExpressions=function(){},nr.prototype.getFootageData=function(){return this.footageData},pa.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([kn,Rn,bi],pa),pa.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))},pa.prototype.show=function(){},pa.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},pa.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},pa.prototype.resume=function(){this._canPlay=!0},pa.prototype.setRate=function(G){this.audio.rate(G)},pa.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*this._volume,this.audio.volume(this._previousVolume)},pa.prototype.getBaseElement=function(){return null},pa.prototype.destroy=function(){},pa.prototype.sourceRectAtTime=function(){},pa.prototype.initExpressions=function(){},Js.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()},Js.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)}},Js.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Js.prototype.createAudio=function(G){return new pa(G,this.globalData,this)},Js.prototype.createFootage=function(G){return new nr(G,this.globalData,this)},Js.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},Js.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,Ae=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ae;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},Js.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},Js.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Js.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,Ae=this.layers,$e=0,Oe=Ae.length;$e<Oe;)Ae[$e].ind==X&&(xe[$e]&&xe[$e]!==!0?(pe.push(xe[$e]),xe[$e].setAsParent(),Ae[$e].parent!==void 0?this.buildElementParenting(G,Ae[$e].parent,pe):G.setHierarchy(pe)):(this.buildItem($e),this.addPendingElement(G))),$e+=1},Js.prototype.addPendingElement=function(G){this.pendingElements.push(G)},Js.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)}},Js.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},Js.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ae=this.elements.length;for(xe=0;xe<Ae;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},Js.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new un,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 KT={TRANSFORM_EFFECT:"transformEFfect"};function o2(){}function xm(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ae=this.globalData.defs,$e=this.masksProperties?this.masksProperties.length:0;this.viewData=b($e),this.solidPath="";var Oe,Ue,We,Pt,Zt,et,ut,wt=this.masksProperties,$t=0,qt=[],Jt=H(),Xe="clipPath",Ve="clip-path";for(xe=0;xe<$e;xe+=1)if((wt[xe].mode!=="a"&&wt[xe].mode!=="n"||wt[xe].inv||wt[xe].o.k!==100||wt[xe].o.x)&&(Xe="mask",Ve="mask"),wt[xe].mode!=="s"&&wt[xe].mode!=="i"||$t!==0?Pt=null:((Pt=ce("rect")).setAttribute("fill","#ffffff"),Pt.setAttribute("width",this.element.comp.data.w||0),Pt.setAttribute("height",this.element.comp.data.h||0),qt.push(Pt)),Oe=ce("path"),wt[xe].mode==="n")this.viewData[xe]={op:Ke.getProp(this.element,wt[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,wt[xe],3),elem:Oe,lastPath:""},Ae.appendChild(Oe);else{var Ne;if($t+=1,Oe.setAttribute("fill",wt[xe].mode==="s"?"#000000":"#ffffff"),Oe.setAttribute("clip-rule","nonzero"),wt[xe].x.k!==0?(Xe="mask",Ve="mask",ut=Ke.getProp(this.element,wt[xe].x,0,null,this.element),Ne=H(),(Zt=ce("filter")).setAttribute("id",Ne),(et=ce("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Zt.appendChild(et),Ae.appendChild(Zt),Oe.setAttribute("stroke",wt[xe].mode==="s"?"#000000":"#ffffff")):(et=null,ut=null),this.storedData[xe]={elem:Oe,x:ut,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},wt[xe].mode==="i"){We=qt.length;var Ge=ce("g");for(Ue=0;Ue<We;Ue+=1)Ge.appendChild(qt[Ue]);var gt=ce("mask");gt.setAttribute("mask-type","alpha"),gt.setAttribute("id",Jt+"_"+$t),gt.appendChild(Oe),Ae.appendChild(gt),Ge.setAttribute("mask","url("+p()+"#"+Jt+"_"+$t+")"),qt.length=0,qt.push(Ge)}else qt.push(Oe);wt[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Oe,lastPath:"",op:Ke.getProp(this.element,wt[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,wt[xe],3),invRect:Pt},this.viewData[xe].prop.k||this.drawPath(wt[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=ce(Xe),$e=qt.length,xe=0;xe<$e;xe+=1)this.maskElement.appendChild(qt[xe]);$t>0&&(this.maskElement.setAttribute("id",Jt),this.element.maskedElement.setAttribute(Ve,"url("+p()+"#"+Jt+")"),Ae.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}o2.prototype={initTransform:function(){var G=new vt;this.finalTransform={mProp:this.data.ks?zt.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 Ae=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)Ae*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=Ae}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(KT.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new vt;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 Ae,$e,Oe=X.length;for(Ae=0;Ae<Oe;Ae+=1)$e=X[Ae].mat.applyToPointArray(0,0,0),G=[G[0]-$e[0],G[1]-$e[1],0];return G},mHelper:new vt},xm.prototype.getMaskProperty=function(G){return this.viewData[G].prop},xm.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 Ae=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+")")),Ae.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))}},xm.prototype.getMaskelement=function(){return this.maskElement},xm.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+" "},xm.prototype.drawPath=function(G,X,pe){var xe,Ae,$e=" M"+X.v[0][0]+","+X.v[0][1];for(Ae=X._length,xe=1;xe<Ae;xe+=1)$e+=" 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&&Ae>1&&($e+=" 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!==$e){var Oe="";pe.elem&&(X.c&&(Oe=G.inv?this.solidPath+$e:$e),pe.elem.setAttribute("d",Oe)),pe.lastPath=$e}},xm.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ay=(function(){var G={};function X(xe,Ae){var $e=ce("filter");return $e.setAttribute("id",xe),Ae!==!0&&($e.setAttribute("filterUnits","objectBoundingBox"),$e.setAttribute("x","0%"),$e.setAttribute("y","0%"),$e.setAttribute("width","100%"),$e.setAttribute("height","100%")),$e}function pe(){var xe=ce("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})(),ZT=(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})(),JT={},PN="filter_result_";function qS(G){var X,pe,xe="SourceGraphic",Ae=G.data.ef?G.data.ef.length:0,$e=H(),Oe=Ay.createFilter($e,!0),Ue=0;for(this.filters=[],X=0;X<Ae;X+=1){pe=null;var We=G.data.ef[X].ty;JT[We]&&(pe=new JT[We].effect(Oe,G.effectsManager.effectElements[X],G,PN+Ue,xe),xe=PN+Ue,JT[We].countsAsEffect&&(Ue+=1)),pe&&this.filters.push(pe)}Ue&&(G.globalData.defs.appendChild(Oe),G.layerElement.setAttribute("filter","url("+p()+"#"+$e+")")),this.filters.length&&G.addRenderableComponent(this)}function H8(){}function Sy(){}function J5(){}function U8(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 qoe(G,X){this.elem=G,this.pos=X}function MN(){}qS.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},qS.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},H8.prototype={initRendererElement:function(){this.layerElement=ce("g")},createContainerElements:function(){this.matteElement=ce("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var G=null;if(this.data.td){this.matteMasks={};var X=ce("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=ce("clipPath"),xe=ce("path");xe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var Ae=H();if(pe.setAttribute("id",Ae),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var $e=ce("g");$e.setAttribute("clip-path","url("+p()+"#"+Ae+")"),$e.appendChild(this.layerElement),this.transformedElement=$e,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")")}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 xm(this.data,this,this.globalData),this.renderableEffectsManager=new qS(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,Ae,$e=this.layerId+"_"+G;if(G===1||G===3){var Oe=ce("mask");Oe.setAttribute("id",$e),Oe.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=ce("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Oe.appendChild(xe),this.globalData.defs.appendChild(Oe),!ZT.maskType&&G===1&&(Oe.setAttribute("mask-type","luminance"),X=H(),pe=Ay.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(Ay.createAlphaToLuminanceFilter()),(Ae=ce("g")).appendChild(xe),Oe.appendChild(Ae),Ae.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var Ue=ce("mask");Ue.setAttribute("id",$e),Ue.setAttribute("mask-type","alpha");var We=ce("g");Ue.appendChild(We),X=H(),pe=Ay.createFilter(X);var Pt=ce("feComponentTransfer");Pt.setAttribute("in","SourceGraphic"),pe.appendChild(Pt);var Zt=ce("feFuncA");Zt.setAttribute("type","table"),Zt.setAttribute("tableValues","1.0 0.0"),Pt.appendChild(Zt),this.globalData.defs.appendChild(pe);var et=ce("rect");et.setAttribute("width",this.comp.data.w),et.setAttribute("height",this.comp.data.h),et.setAttribute("x","0"),et.setAttribute("y","0"),et.setAttribute("fill","#ffffff"),et.setAttribute("opacity","0"),We.setAttribute("filter","url("+p()+"#"+X+")"),We.appendChild(et),(xe=ce("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),We.appendChild(xe),ZT.maskType||(Ue.setAttribute("mask-type","luminance"),pe.appendChild(Ay.createAlphaToLuminanceFilter()),Ae=ce("g"),We.appendChild(et),Ae.appendChild(this.layerElement),We.appendChild(Ae)),this.globalData.defs.appendChild(Ue)}this.matteMasks[G]=$e}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},Sy.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([kn,f(G)],J5)})(),g([Rn,o2,H8,Sy,bi,J5],U8),U8.prototype.createContent=function(){var G=this.globalData.getAssetsPath(this.assetData);this.innerElem=ce("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)},U8.prototype.sourceRectAtTime=function(){return this.sourceRect},MN.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 qoe(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var ON={1:"butt",2:"round",3:"square"},FN={1:"miter",2:"round",3:"bevel"};function RN(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,Ae=G.length;xe<Ae;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function zN(G,X){this.data=G,this.type=G.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=G.hd===!0,this.pElem=ce("path"),this.msElem=null}function KS(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 Ae,$e,Oe=X.length||0;for(Ae=0;Ae<Oe;Ae+=1)$e=Ke.getProp(G,X[Ae].v,0,0,this),this.k=$e.k||this.k,this.dataProps[Ae]={n:X[Ae].n,p:$e};this.k||this.getValue(!0),this._isAnimated=this.k}function NN(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 KS(G,X.d||{},"svg",this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function _N(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 VN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function W8(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 ym(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function HN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ke.getProp(G,X.w,0,null,this),this.d=new KS(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function Koe(){this.it=[],this.prevViewData=[],this.gr=ce("g")}function Zoe(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}RN.prototype.setAsAnimated=function(){this._isAnimated=!0},zN.prototype.reset=function(){this.d="",this._mdf=!1},KS.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],KS),g([Bt],NN),g([Bt],_N),g([Bt],VN),W8.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},W8.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},W8.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,Ae=4*this.data.p;for(X=0;X<Ae;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(Ae=this.prop.v.length,X=4*this.data.p;X<Ae;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],W8),ym.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 W8(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},ym.prototype.setGradientData=function(G,X){var pe=H(),xe=ce(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ae,$e,Oe,Ue=[];for(Oe=4*X.g.p,$e=0;$e<Oe;$e+=4)Ae=ce("stop"),xe.appendChild(Ae),Ue.push(Ae);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Ue},ym.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ae,$e=ce("mask"),Oe=ce("path");$e.appendChild(Oe);var Ue=H(),We=H();$e.setAttribute("id",We);var Pt=ce(G.t===1?"linearGradient":"radialGradient");Pt.setAttribute("id",Ue),Pt.setAttribute("spreadMethod","pad"),Pt.setAttribute("gradientUnits","userSpaceOnUse"),Ae=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<Ae;xe+=2)(pe=ce("stop")).setAttribute("stop-color","rgb(255,255,255)"),Pt.appendChild(pe),Zt.push(pe);Oe.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+Ue+")"),G.ty==="gs"&&(Oe.setAttribute("stroke-linecap",ON[G.lc||2]),Oe.setAttribute("stroke-linejoin",FN[G.lj||2]),G.lj===1&&Oe.setAttribute("stroke-miterlimit",G.ml)),this.of=Pt,this.ms=$e,this.ost=Zt,this.maskId=We,X.msElem=Oe}},g([Bt],ym),g([ym,Bt],HN);var Yn=function(G,X,pe,xe){if(X===0)return"";var Ae,$e=G.o,Oe=G.i,Ue=G.v,We=" M"+xe.applyToPointStringified(Ue[0][0],Ue[0][1]);for(Ae=1;Ae<X;Ae+=1)We+=" C"+xe.applyToPointStringified($e[Ae-1][0],$e[Ae-1][1])+" "+xe.applyToPointStringified(Oe[Ae][0],Oe[Ae][1])+" "+xe.applyToPointStringified(Ue[Ae][0],Ue[Ae][1]);return pe&&X&&(We+=" C"+xe.applyToPointStringified($e[Ae-1][0],$e[Ae-1][1])+" "+xe.applyToPointStringified(Oe[0][0],Oe[0][1])+" "+xe.applyToPointStringified(Ue[0][0],Ue[0][1]),We+="z"),We},wr=(function(){var G=new vt,X=new vt;function pe(Zt){switch(Zt.ty){case"fl":return Oe;case"gf":return We;case"gs":return Ue;case"st":return Pt;case"sh":case"el":case"rc":case"sr":return $e;case"tr":return xe;case"no":return Ae;default:return null}}function xe(Zt,et,ut){(ut||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(ut||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function Ae(){}function $e(Zt,et,ut){var wt,$t,qt,Jt,Xe,Ve,Ne,Ge,gt,an,cn=et.styles.length,Mt=et.lvl;for(Ve=0;Ve<cn;Ve+=1){if(Jt=et.sh._mdf||ut,et.styles[Ve].lvl<Mt){for(Ge=X.reset(),gt=Mt-et.styles[Ve].lvl,an=et.transformers.length-1;!Jt&>>0;)Jt=et.transformers[an].mProps._mdf||Jt,gt-=1,an-=1;if(Jt)for(gt=Mt-et.styles[Ve].lvl,an=et.transformers.length-1;gt>0;)Ge.multiply(et.transformers[an].mProps.v),gt-=1,an-=1}else Ge=G;if($t=(Ne=et.sh.paths)._length,Jt){for(qt="",wt=0;wt<$t;wt+=1)(Xe=Ne.shapes[wt])&&Xe._length&&(qt+=Yn(Xe,Xe._length,Xe.c,Ge));et.caches[Ve]=qt}else qt=et.caches[Ve];et.styles[Ve].d+=Zt.hd===!0?"":qt,et.styles[Ve]._mdf=Jt||et.styles[Ve]._mdf}}function Oe(Zt,et,ut){var wt=et.style;(et.c._mdf||ut)&&wt.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ut)&&wt.pElem.setAttribute("fill-opacity",et.o.v)}function Ue(Zt,et,ut){We(Zt,et,ut),Pt(Zt,et,ut)}function We(Zt,et,ut){var wt,$t,qt,Jt,Xe,Ve=et.gf,Ne=et.g._hasOpacity,Ge=et.s.v,gt=et.e.v;if(et.o._mdf||ut){var an=Zt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(an,et.o.v)}if(et.s._mdf||ut){var cn=Zt.t===1?"x1":"cx",Mt=cn==="x1"?"y1":"cy";Ve.setAttribute(cn,Ge[0]),Ve.setAttribute(Mt,Ge[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(cn,Ge[0]),et.of.setAttribute(Mt,Ge[1]))}if(et.g._cmdf||ut){wt=et.cst;var co=et.g.c;for(qt=wt.length,$t=0;$t<qt;$t+=1)(Jt=wt[$t]).setAttribute("offset",co[4*$t]+"%"),Jt.setAttribute("stop-color","rgb("+co[4*$t+1]+","+co[4*$t+2]+","+co[4*$t+3]+")")}if(Ne&&(et.g._omdf||ut)){var ko=et.g.o;for(qt=(wt=et.g._collapsable?et.cst:et.ost).length,$t=0;$t<qt;$t+=1)Jt=wt[$t],et.g._collapsable||Jt.setAttribute("offset",ko[2*$t]+"%"),Jt.setAttribute("stop-opacity",ko[2*$t+1])}if(Zt.t===1)(et.e._mdf||ut)&&(Ve.setAttribute("x2",gt[0]),Ve.setAttribute("y2",gt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",gt[0]),et.of.setAttribute("y2",gt[1])));else if((et.s._mdf||et.e._mdf||ut)&&(Xe=Math.sqrt(Math.pow(Ge[0]-gt[0],2)+Math.pow(Ge[1]-gt[1],2)),Ve.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||ut){Xe||(Xe=Math.sqrt(Math.pow(Ge[0]-gt[0],2)+Math.pow(Ge[1]-gt[1],2)));var ai=Math.atan2(gt[1]-Ge[1],gt[0]-Ge[0]),Go=et.h.v;Go>=1?Go=.99:Go<=-1&&(Go=-.99);var oo=Xe*Go,Rt=Math.cos(ai+et.a.v)*oo+Ge[0],fn=Math.sin(ai+et.a.v)*oo+Ge[1];Ve.setAttribute("fx",Rt),Ve.setAttribute("fy",fn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Rt),et.of.setAttribute("fy",fn))}}function Pt(Zt,et,ut){var wt=et.style,$t=et.d;$t&&($t._mdf||ut)&&$t.dashStr&&(wt.pElem.setAttribute("stroke-dasharray",$t.dashStr),wt.pElem.setAttribute("stroke-dashoffset",$t.dashoffset[0])),et.c&&(et.c._mdf||ut)&&wt.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ut)&&wt.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||ut)&&(wt.pElem.setAttribute("stroke-width",et.w.v),wt.msElem&&wt.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function Xo(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 Yp(G,X,pe,xe,Ae,$e){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ae,this.p=$e,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function Qc(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([Rn,o2,H8,MN,Sy,bi,J5],Xo),Xo.prototype.initSecondaryElement=function(){},Xo.prototype.identityMatrix=new vt,Xo.prototype.buildExpressionInterface=function(){},Xo.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xo.prototype.filterUniqueShapes=function(){var G,X,pe,xe,Ae=this.shapes.length,$e=this.stylesList.length,Oe=[],Ue=!1;for(pe=0;pe<$e;pe+=1){for(xe=this.stylesList[pe],Ue=!1,Oe.length=0,G=0;G<Ae;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Oe.push(X),Ue=X._isAnimated||Ue);Oe.length>1&&Ue&&this.setShapesAsAnimated(Oe)}},Xo.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},Xo.prototype.createStyleElement=function(G,X){var pe,xe=new zN(G,X),Ae=xe.pElem;return G.ty==="st"?pe=new NN(this,G,xe):G.ty==="fl"?pe=new _N(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?ym:HN)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ae.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new VN(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(Ae.setAttribute("stroke-linecap",ON[G.lc||2]),Ae.setAttribute("stroke-linejoin",FN[G.lj||2]),Ae.setAttribute("fill-opacity","0"),G.lj===1&&Ae.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&Ae.setAttribute("fill-rule","evenodd"),G.ln&&Ae.setAttribute("id",G.ln),G.cl&&Ae.setAttribute("class",G.cl),G.bm&&(Ae.style["mix-blend-mode"]=ni(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},Xo.prototype.createGroupElement=function(G){var X=new Koe;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},Xo.prototype.createTransformElement=function(G,X){var pe=zt.getTransformProperty(this,G,this),xe=new Zoe(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},Xo.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 Ae=new RN(X,pe,Ze.getShapeProp(this,G,xe,this));return this.shapes.push(Ae),this.addShapeToModifiers(Ae),this.addToAnimatedContents(G,Ae),Ae},Xo.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:wr.createRenderFunction(G),element:X,data:G})},Xo.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])},Xo.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()},Xo.prototype.searchShapes=function(G,X,pe,xe,Ae,$e,Oe){var Ue,We,Pt,Zt,et,ut,wt=[].concat($e),$t=G.length-1,qt=[],Jt=[];for(Ue=$t;Ue>=0;Ue-=1){if((ut=this.searchProcessedElement(G[Ue]))?X[Ue]=pe[ut-1]:G[Ue]._render=Oe,G[Ue].ty==="fl"||G[Ue].ty==="st"||G[Ue].ty==="gf"||G[Ue].ty==="gs"||G[Ue].ty==="no")ut?X[Ue].style.closed=G[Ue].hd:X[Ue]=this.createStyleElement(G[Ue],Ae),G[Ue]._render&&X[Ue].style.pElem.parentNode!==xe&&xe.appendChild(X[Ue].style.pElem),qt.push(X[Ue].style);else if(G[Ue].ty==="gr"){if(ut)for(Pt=X[Ue].it.length,We=0;We<Pt;We+=1)X[Ue].prevViewData[We]=X[Ue].it[We];else X[Ue]=this.createGroupElement(G[Ue]);this.searchShapes(G[Ue].it,X[Ue].it,X[Ue].prevViewData,X[Ue].gr,Ae+1,wt,Oe),G[Ue]._render&&X[Ue].gr.parentNode!==xe&&xe.appendChild(X[Ue].gr)}else G[Ue].ty==="tr"?(ut||(X[Ue]=this.createTransformElement(G[Ue],xe)),Zt=X[Ue].transform,wt.push(Zt)):G[Ue].ty==="sh"||G[Ue].ty==="rc"||G[Ue].ty==="el"||G[Ue].ty==="sr"?(ut||(X[Ue]=this.createShapeElement(G[Ue],wt,Ae)),this.setElementStyles(X[Ue])):G[Ue].ty==="tm"||G[Ue].ty==="rd"||G[Ue].ty==="ms"||G[Ue].ty==="pb"||G[Ue].ty==="zz"||G[Ue].ty==="op"?(ut?(et=X[Ue]).closed=!1:((et=mn.getModifier(G[Ue].ty)).init(this,G[Ue]),X[Ue]=et,this.shapeModifiers.push(et)),Jt.push(et)):G[Ue].ty==="rp"&&(ut?(et=X[Ue]).closed=!0:(et=mn.getModifier(G[Ue].ty),X[Ue]=et,et.init(this,G,Ue,X),this.shapeModifiers.push(et),Oe=!1),Jt.push(et));this.addProcessedElement(G[Ue],Ue+1)}for($t=qt.length,Ue=0;Ue<$t;Ue+=1)qt[Ue].closed=!0;for($t=Jt.length,Ue=0;Ue<$t;Ue+=1)Jt[Ue].closed=!0},Xo.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"))},Xo.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)},Xo.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},Yp.prototype.update=function(G,X,pe,xe,Ae,$e){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 Oe=!1;return this.o!==G&&(this.o=G,this._mdf.o=!0,Oe=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Oe=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Oe=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Oe=!0),this.m!==Ae&&(this.m=Ae,this._mdf.m=!0,Oe=!0),$e.length&&(this.p[0]!==$e[0]||this.p[1]!==$e[1]||this.p[4]!==$e[4]||this.p[5]!==$e[5]||this.p[12]!==$e[12]||this.p[13]!==$e[13])&&(this.p=$e,this._mdf.p=!0,Oe=!0),Oe},Qc.prototype.defaultBoxWidth=[0,0],Qc.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},Qc.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Qc.prototype.searchProperty=function(){return this.searchKeyframes()},Qc.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Qc.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},Qc.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,Ae=this.effectsSequence.length,$e=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ae;xe+=1)$e=pe!==this.keysIndex?this.effectsSequence[xe]($e,$e.t):this.effectsSequence[xe](this.currentData,$e.t);X!==$e&&this.setCurrentData($e),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Qc.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},Qc.prototype.buildFinalText=function(G){for(var X,pe,xe=[],Ae=0,$e=G.length,Oe=!1,Ue=!1,We="";Ae<$e;)Oe=Ue,Ue=!1,X=G.charCodeAt(Ae),We=G.charAt(Ae),un.isCombinedCharacter(X)?Oe=!0:X>=55296&&X<=56319?un.isRegionalFlag(G,Ae)?We=G.substr(Ae,14):(pe=G.charCodeAt(Ae+1))>=56320&&pe<=57343&&(un.isModifier(X,pe)?(We=G.substr(Ae,2),Oe=!0):We=un.isFlagEmoji(G.substr(Ae,4))?G.substr(Ae,4):G.substr(Ae,2)):X>56319?(pe=G.charCodeAt(Ae+1),un.isVariationSelector(X)&&(Oe=!0)):un.isZeroWidthJoiner(X)&&(Oe=!0,Ue=!0),Oe?(xe[xe.length-1]+=We,Oe=!1):xe.push(We),Ae+=We.length;return xe},Qc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,Ae,$e,Oe,Ue,We=this.elem.globalData.fontManager,Pt=this.data,Zt=[],et=0,ut=Pt.m.g,wt=0,$t=0,qt=0,Jt=[],Xe=0,Ve=0,Ne=We.getFontByName(G.f),Ge=0,gt=Ot(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 Mt,co,ko=!0,ai=G.sz[0],Go=G.sz[1];ko;){Mt=0,Xe=0,pe=(co=this.buildFinalText(G.t)).length,cn=G.tr/1e3*G.finalSize;var oo=-1;for(X=0;X<pe;X+=1)an=co[X].charCodeAt(0),xe=!1,co[X]===" "?oo=X:(an===13||an===3)&&(Xe=0,xe=!0,Mt+=G.finalLineHeight||1.2*G.finalSize),We.chars?(Ue=We.getCharData(co[X],Ne.fStyle,Ne.fFamily),Ge=xe?0:Ue.w*G.finalSize/100):Ge=We.measureText(co[X],G.f,G.finalSize),Xe+Ge>ai&&co[X]!==" "?(oo===-1?pe+=1:X=oo,Mt+=G.finalLineHeight||1.2*G.finalSize,co.splice(X,oo===X?1:0,"\r"),oo=-1,Xe=0):(Xe+=Ge,Xe+=cn);Mt+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&Go<Mt?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=co,pe=G.finalText.length,ko=!1)}Xe=-cn,Ge=0;var Rt,fn=0;for(X=0;X<pe;X+=1)if(xe=!1,(an=(Rt=G.finalText[X]).charCodeAt(0))===13||an===3?(fn=0,Jt.push(Xe),Ve=Xe>Ve?Xe:Ve,Xe=-2*cn,Ae="",xe=!0,qt+=1):Ae=Rt,We.chars?(Ue=We.getCharData(Rt,Ne.fStyle,We.getFontByName(G.f).fFamily),Ge=xe?0:Ue.w*G.finalSize/100):Ge=We.measureText(Ae,G.f,G.finalSize),Rt===" "?fn+=Ge+cn:(Xe+=Ge+cn+fn,fn=0),Zt.push({l:Ge,an:Ge,add:wt,n:xe,anIndexes:[],val:Ae,line:qt,animatorJustifyOffset:0}),ut==2){if(wt+=Ge,Ae===""||Ae===" "||X===pe-1){for((Ae===""||Ae===" ")&&(wt-=Ge);$t<=X;)Zt[$t].an=wt,Zt[$t].ind=et,Zt[$t].extra=Ge,$t+=1;et+=1,wt=0}}else if(ut==3){if(wt+=Ge,Ae===""||X===pe-1){for(Ae===""&&(wt-=Ge);$t<=X;)Zt[$t].an=wt,Zt[$t].ind=et,Zt[$t].extra=Ge,$t+=1;wt=0,et+=1}}else Zt[et].ind=et,Zt[et].extra=0,et+=1;if(G.l=Zt,Ve=Xe>Ve?Xe:Ve,Jt.push(Xe),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=Ve,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=Jt;var ft,st,Re=Pt.a;Oe=Re.length;var pt,yt,gi=[];for($e=0;$e<Oe;$e+=1){for((ft=Re[$e]).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),yt=0,pt=ft.s.b,X=0;X<pe;X+=1)(st=Zt[X]).anIndexes[$e]=yt,(pt==1&&st.val!==""||pt==2&&st.val!==""&&st.val!==" "||pt==3&&(st.n||st.val==" "||X==pe-1)||pt==4&&(st.n||X==pe-1))&&(ft.s.rn===1&&gi.push(yt),yt+=1);Pt.a[$e].s.totalChars=yt;var qo,To=-1;if(ft.s.rn===1)for(X=0;X<pe;X+=1)To!=(st=Zt[X]).anIndexes[$e]&&(To=st.anIndexes[$e],qo=gi.splice(Math.floor(Math.random()*gi.length),1)[0]),st.anIndexes[$e]=qo}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},Qc.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)},Qc.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},Qc.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Qc.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Q8=(function(){var G=Math.max,X=Math.min,pe=Math.floor;function xe($e,Oe){this._currentTextLength=-1,this.k=!1,this.data=Oe,this.elem=$e,this.comp=$e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer($e),this.s=Ke.getProp($e,Oe.s||{k:0},0,0,this),this.e="e"in Oe?Ke.getProp($e,Oe.e,0,0,this):{v:100},this.o=Ke.getProp($e,Oe.o||{k:0},0,0,this),this.xe=Ke.getProp($e,Oe.xe||{k:0},0,0,this),this.ne=Ke.getProp($e,Oe.ne||{k:0},0,0,this),this.sm=Ke.getProp($e,Oe.sm||{k:100},0,0,this),this.a=Ke.getProp($e,Oe.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function Ae($e,Oe,Ue){return new xe($e,Oe)}return xe.prototype={getMult:function($e){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Oe=0,Ue=0,We=1,Pt=1;this.ne.v>0?Oe=this.ne.v/100:Ue=-this.ne.v/100,this.xe.v>0?We=1-this.xe.v/100:Pt=1+this.xe.v/100;var Zt=Le.getBezierEasing(Oe,Ue,We,Pt).get,et=0,ut=this.finalS,wt=this.finalE,$t=this.data.sh;if($t===2)et=Zt(et=wt===ut?$e>=wt?1:0:G(0,X(.5/(wt-ut)+($e-ut)/(wt-ut),1)));else if($t===3)et=Zt(et=wt===ut?$e>=wt?0:1:1-G(0,X(.5/(wt-ut)+($e-ut)/(wt-ut),1)));else if($t===4)wt===ut?et=0:(et=G(0,X(.5/(wt-ut)+($e-ut)/(wt-ut),1)))<.5?et*=2:et=1-2*(et-.5),et=Zt(et);else if($t===5){if(wt===ut)et=0;else{var qt=wt-ut,Jt=-qt/2+($e=X(G(0,$e+.5-ut),wt-ut)),Xe=qt/2;et=Math.sqrt(1-Jt*Jt/(Xe*Xe))}et=Zt(et)}else $t===6?(wt===ut?et=0:($e=X(G(0,$e+.5-ut),wt-ut),et=(1+Math.cos(Math.PI+2*Math.PI*$e/(wt-ut)))/2),et=Zt(et)):($e>=pe(ut)&&(et=G(0,X($e-ut<0?X(wt,1)-(ut-$e):wt-$e,1))),et=Zt(et));if(this.sm.v!==100){var Ve=.01*this.sm.v;Ve===0&&(Ve=1e-8);var Ne=.5-.5*Ve;et<Ne?et=0:(et=(et-Ne)/Ve)>1&&(et=1)}return et*this.a.v},getValue:function($e){this.iterateDynamicProperties(),this._mdf=$e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,$e&&this.data.r===2&&(this.e.v=this._currentTextLength);var Oe=this.data.r===2?1:100/this.data.totalChars,Ue=this.o.v/Oe,We=this.s.v/Oe+Ue,Pt=this.e.v/Oe+Ue;if(We>Pt){var Zt=We;We=Pt,Pt=Zt}this.finalS=We,this.finalE=Pt}},g([Bt],xe),{getTextSelectorProp:Ae}})();function Joe(G,X,pe){var xe={propType:!1},Ae=Ke.getProp,$e=X.a;this.a={r:$e.r?Ae(G,$e.r,0,D,pe):xe,rx:$e.rx?Ae(G,$e.rx,0,D,pe):xe,ry:$e.ry?Ae(G,$e.ry,0,D,pe):xe,sk:$e.sk?Ae(G,$e.sk,0,D,pe):xe,sa:$e.sa?Ae(G,$e.sa,0,D,pe):xe,s:$e.s?Ae(G,$e.s,1,.01,pe):xe,a:$e.a?Ae(G,$e.a,1,0,pe):xe,o:$e.o?Ae(G,$e.o,0,.01,pe):xe,p:$e.p?Ae(G,$e.p,1,0,pe):xe,sw:$e.sw?Ae(G,$e.sw,0,0,pe):xe,sc:$e.sc?Ae(G,$e.sc,1,0,pe):xe,fc:$e.fc?Ae(G,$e.fc,1,0,pe):xe,fh:$e.fh?Ae(G,$e.fh,0,0,pe):xe,fs:$e.fs?Ae(G,$e.fs,0,.01,pe):xe,fb:$e.fb?Ae(G,$e.fb,0,.01,pe):xe,t:$e.t?Ae(G,$e.t,0,0,pe):xe},this.s=Q8.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function r2(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 bm(){}r2.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 Joe(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)},r2.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,Ae,$e,Oe,Ue,We,Pt,Zt,et,ut,wt,$t,qt,Jt,Xe,Ve,Ne,Ge,gt=this._moreOptions.alignment.v,an=this._animatorsData,cn=this._textData,Mt=this.mHelper,co=this._renderType,ko=this.renderedLetters.length,ai=G.l;if(this._hasMaskedPath){if(Ge=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Go,oo=Ge.v;for(this._pathData.r.v&&(oo=oo.reverse()),Oe={tLength:0,segments:[]},$e=oo._length-1,Xe=0,Ae=0;Ae<$e;Ae+=1)Go=Ie.buildBezierData(oo.v[Ae],oo.v[Ae+1],[oo.o[Ae][0]-oo.v[Ae][0],oo.o[Ae][1]-oo.v[Ae][1]],[oo.i[Ae+1][0]-oo.v[Ae+1][0],oo.i[Ae+1][1]-oo.v[Ae+1][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength;Ae=$e,Ge.v.c&&(Go=Ie.buildBezierData(oo.v[Ae],oo.v[0],[oo.o[Ae][0]-oo.v[Ae][0],oo.o[Ae][1]-oo.v[Ae][1]],[oo.i[0][0]-oo.v[0][0],oo.i[0][1]-oo.v[0][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength),this._pathData.pi=Oe}if(Oe=this._pathData.pi,Ue=this._pathData.f.v,ut=0,et=1,Pt=0,Zt=!0,qt=Oe.segments,Ue<0&&Ge.v.c)for(Oe.tLength<Math.abs(Ue)&&(Ue=-Math.abs(Ue)%Oe.tLength),et=($t=qt[ut=qt.length-1].points).length-1;Ue<0;)Ue+=$t[et].partialLength,(et-=1)<0&&(et=($t=qt[ut-=1].points).length-1);wt=($t=qt[ut].points)[et-1],Jt=(We=$t[et]).partialLength}$e=ai.length,pe=0,xe=0;var Rt,fn,ft,st,Re=1.2*G.finalSize*.714,pt=!0;ft=an.length;var yt,gi,qo,To,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp=-1,cr=Ue,ZS=ut,JS=et,Y8=-1,Tf="",tx=this.defaultPropsArray;if(G.j===2||G.j===1){var qp=0,jy=0,$y=G.j===2?-.5:-1,s2=0,Ey=!0;for(Ae=0;Ae<$e;Ae+=1)if(ai[Ae].n){for(qp&&(qp+=jy);s2<Ae;)ai[s2].animatorJustifyOffset=qp,s2+=1;qp=0,Ey=!0}else{for(fn=0;fn<ft;fn+=1)(Rt=an[fn].a).t.propType&&(Ey&&G.j===2&&(jy+=Rt.t.v*$y),(yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars)).length?qp+=Rt.t.v*yt[0]*$y:qp+=Rt.t.v*yt*$y);Ey=!1}for(qp&&(qp+=jy);s2<Ae;)ai[s2].animatorJustifyOffset=qp,s2+=1}for(Ae=0;Ae<$e;Ae+=1){if(Mt.reset(),ya=1,ai[Ae].n)pe=0,xe+=G.yOffset,xe+=pt?1:0,Ue=cr,pt=!1,this._hasMaskedPath&&(et=JS,wt=($t=qt[ut=ZS].points)[et-1],Jt=(We=$t[et]).partialLength,Pt=0),Tf="",Cm="",wm="",vm="",tx=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Y8!==ai[Ae].line){switch(G.j){case 1:Ue+=Xe-G.lineWidths[ai[Ae].line];break;case 2:Ue+=(Xe-G.lineWidths[ai[Ae].line])/2}Y8=ai[Ae].line}Gp!==ai[Ae].ind&&(ai[Gp]&&(Ue+=ai[Gp].extra),Ue+=ai[Ae].an/2,Gp=ai[Ae].ind),Ue+=gt[0]*ai[Ae].an*.005;var l2=0;for(fn=0;fn<ft;fn+=1)(Rt=an[fn].a).p.propType&&((yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars)).length?l2+=Rt.p.v[0]*yt[0]:l2+=Rt.p.v[0]*yt),Rt.a.propType&&((yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars)).length?l2+=Rt.a.v[0]*yt[0]:l2+=Rt.a.v[0]*yt);for(Zt=!0,this._pathData.a.v&&(Ue=.5*ai[0].an+(Xe-this._pathData.f.v-.5*ai[0].an-.5*ai[ai.length-1].an)*Gp/($e-1),Ue+=this._pathData.f.v);Zt;)Pt+Jt>=Ue+l2||!$t?(Ve=(Ue+l2-Pt)/We.partialLength,qo=wt.point[0]+(We.point[0]-wt.point[0])*Ve,To=wt.point[1]+(We.point[1]-wt.point[1])*Ve,Mt.translate(-gt[0]*ai[Ae].an*.005,-gt[1]*Re*.01),Zt=!1):$t&&(Pt+=We.partialLength,(et+=1)>=$t.length&&(et=0,qt[ut+=1]?$t=qt[ut].points:Ge.v.c?(et=0,$t=qt[ut=0].points):(Pt-=We.partialLength,$t=null)),$t&&(wt=We,Jt=(We=$t[et]).partialLength));gi=ai[Ae].an/2-ai[Ae].add,Mt.translate(-gi,0,0)}else gi=ai[Ae].an/2-ai[Ae].add,Mt.translate(-gi,0,0),Mt.translate(-gt[0]*ai[Ae].an*.005,-gt[1]*Re*.01,0);for(fn=0;fn<ft;fn+=1)(Rt=an[fn].a).t.propType&&(yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars),(pe!==0||G.j!==0)&&(this._hasMaskedPath?yt.length?Ue+=Rt.t.v*yt[0]:Ue+=Rt.t.v*yt:yt.length?pe+=Rt.t.v*yt[0]:pe+=Rt.t.v*yt));for(G.strokeWidthAnim&&(dl=G.sw||0),G.strokeColorAnim&&(Ko=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ha=[G.fc[0],G.fc[1],G.fc[2]]),fn=0;fn<ft;fn+=1)(Rt=an[fn].a).a.propType&&((yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars)).length?Mt.translate(-Rt.a.v[0]*yt[0],-Rt.a.v[1]*yt[1],Rt.a.v[2]*yt[2]):Mt.translate(-Rt.a.v[0]*yt,-Rt.a.v[1]*yt,Rt.a.v[2]*yt));for(fn=0;fn<ft;fn+=1)(Rt=an[fn].a).s.propType&&((yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars)).length?Mt.scale(1+(Rt.s.v[0]-1)*yt[0],1+(Rt.s.v[1]-1)*yt[1],1):Mt.scale(1+(Rt.s.v[0]-1)*yt,1+(Rt.s.v[1]-1)*yt,1));for(fn=0;fn<ft;fn+=1){if(Rt=an[fn].a,yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars),Rt.sk.propType&&(yt.length?Mt.skewFromAxis(-Rt.sk.v*yt[0],Rt.sa.v*yt[1]):Mt.skewFromAxis(-Rt.sk.v*yt,Rt.sa.v*yt)),Rt.r.propType&&(yt.length?Mt.rotateZ(-Rt.r.v*yt[2]):Mt.rotateZ(-Rt.r.v*yt)),Rt.ry.propType&&(yt.length?Mt.rotateY(Rt.ry.v*yt[1]):Mt.rotateY(Rt.ry.v*yt)),Rt.rx.propType&&(yt.length?Mt.rotateX(Rt.rx.v*yt[0]):Mt.rotateX(Rt.rx.v*yt)),Rt.o.propType&&(yt.length?ya+=(Rt.o.v*yt[0]-ya)*yt[0]:ya+=(Rt.o.v*yt-ya)*yt),G.strokeWidthAnim&&Rt.sw.propType&&(yt.length?dl+=Rt.sw.v*yt[0]:dl+=Rt.sw.v*yt),G.strokeColorAnim&&Rt.sc.propType)for(Ua=0;Ua<3;Ua+=1)yt.length?Ko[Ua]+=(Rt.sc.v[Ua]-Ko[Ua])*yt[0]:Ko[Ua]+=(Rt.sc.v[Ua]-Ko[Ua])*yt;if(G.fillColorAnim&&G.fc){if(Rt.fc.propType)for(Ua=0;Ua<3;Ua+=1)yt.length?ha[Ua]+=(Rt.fc.v[Ua]-ha[Ua])*yt[0]:ha[Ua]+=(Rt.fc.v[Ua]-ha[Ua])*yt;Rt.fh.propType&&(ha=yt.length?q(ha,Rt.fh.v*yt[0]):q(ha,Rt.fh.v*yt)),Rt.fs.propType&&(ha=yt.length?U(ha,Rt.fs.v*yt[0]):U(ha,Rt.fs.v*yt)),Rt.fb.propType&&(ha=yt.length?Y(ha,Rt.fb.v*yt[0]):Y(ha,Rt.fb.v*yt))}}for(fn=0;fn<ft;fn+=1)(Rt=an[fn].a).p.propType&&(yt=an[fn].s.getMult(ai[Ae].anIndexes[fn],cn.a[fn].s.totalChars),this._hasMaskedPath?yt.length?Mt.translate(0,Rt.p.v[1]*yt[0],-Rt.p.v[2]*yt[1]):Mt.translate(0,Rt.p.v[1]*yt,-Rt.p.v[2]*yt):yt.length?Mt.translate(Rt.p.v[0]*yt[0],Rt.p.v[1]*yt[1],-Rt.p.v[2]*yt[2]):Mt.translate(Rt.p.v[0]*yt,Rt.p.v[1]*yt,-Rt.p.v[2]*yt));if(G.strokeWidthAnim&&(wm=dl<0?0:dl),G.strokeColorAnim&&(a2="rgb("+Math.round(255*Ko[0])+","+Math.round(255*Ko[1])+","+Math.round(255*Ko[2])+")"),G.fillColorAnim&&G.fc&&(Cm="rgb("+Math.round(255*ha[0])+","+Math.round(255*ha[1])+","+Math.round(255*ha[2])+")"),this._hasMaskedPath){if(Mt.translate(0,-G.ls),Mt.translate(0,gt[1]*Re*.01+xe,0),this._pathData.p.v){Ne=(We.point[1]-wt.point[1])/(We.point[0]-wt.point[0]);var G8=180*Math.atan(Ne)/Math.PI;We.point[0]<wt.point[0]&&(G8+=180),Mt.rotate(-G8*Math.PI/180)}Mt.translate(qo,To,0),Ue-=gt[0]*ai[Ae].an*.005,ai[Ae+1]&&Gp!==ai[Ae+1].ind&&(Ue+=ai[Ae].an/2,Ue+=.001*G.tr*G.finalSize)}else{switch(Mt.translate(pe,xe,0),G.ps&&Mt.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:Mt.translate(ai[Ae].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ai[Ae].line]),0,0);break;case 2:Mt.translate(ai[Ae].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ai[Ae].line])/2,0,0)}Mt.translate(0,-G.ls),Mt.translate(gi,0,0),Mt.translate(gt[0]*ai[Ae].an*.005,gt[1]*Re*.01,0),pe+=ai[Ae].l+.001*G.tr*G.finalSize}co==="html"?Tf=Mt.toCSS():co==="svg"?Tf=Mt.to2dCSS():tx=[Mt.props[0],Mt.props[1],Mt.props[2],Mt.props[3],Mt.props[4],Mt.props[5],Mt.props[6],Mt.props[7],Mt.props[8],Mt.props[9],Mt.props[10],Mt.props[11],Mt.props[12],Mt.props[13],Mt.props[14],Mt.props[15]],vm=ya}ko<=Ae?(st=new Yp(vm,wm,a2,Cm,Tf,tx),this.renderedLetters.push(st),ko+=1,this.lettersChangedFlag=!0):(st=this.renderedLetters[Ae],this.lettersChangedFlag=st.update(vm,wm,a2,Cm,Tf,tx)||this.lettersChangedFlag)}}},r2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},r2.prototype.mHelper=new vt,r2.prototype.defaultPropsArray=[],g([Bt],r2),bm.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new Qc(this,G.t,this.dynamicProperties),this.textAnimator=new r2(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)},bm.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},bm.prototype.createPathShape=function(G,X){var pe,xe,Ae=X.length,$e="";for(pe=0;pe<Ae;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,$e+=Yn(xe,xe.i.length,!0,G));return $e},bm.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},bm.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},bm.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},bm.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,Ae){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,Ae,0)},bm.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},bm.prototype.emptyProp=new Yp,bm.prototype.destroy=function(){},bm.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var oin={shapes:[]};function X5(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function Xoe(G,X,pe){this.initElement(G,X,pe)}function ky(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function jd(){}function ex(){}function XT(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 ere(G,X){this.animationItem=G,this.layers=null,this.renderedFrame=-1,this.svgElement=ce("svg");var pe="";if(X&&X.title){var xe=ce("title"),Ae=H();xe.setAttribute("id",Ae),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ae}if(X&&X.description){var $e=ce("desc"),Oe=H();$e.setAttribute("id",Oe),$e.textContent=X.description,this.svgElement.appendChild($e),pe+=" "+Oe}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Ue=ce("defs");this.svgElement.appendChild(Ue);var We=ce("g");this.svgElement.appendChild(We),this.layerElement=We,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:Ue,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Rn,o2,H8,Sy,bi,J5,bm],X5),X5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ce("text"))},X5.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],Ae="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(Ae),Ae=""):Ae+=G[X],X+=1;return xe.push(Ae),xe},X5.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},X5.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 Ae=pe.fWeight,$e=pe.fStyle;this.layerElement.setAttribute("font-style",$e),this.layerElement.setAttribute("font-weight",Ae)}this.layerElement.setAttribute("aria-label",pe.t);var Oe=pe.l||[],Ue=!!this.globalData.fontManager.chars;X=Oe.length;var We,Pt=this.mHelper,Zt="",et=this.data.singleShape,ut=0,wt=0,$t=!0,qt=.001*pe.tr*pe.finalSize;if(!et||Ue||pe.sz){var Jt,Xe=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!Ue||!et||G===0){if(We=Xe>G?this.textSpans[G].span:ce(Ue?"g":"text"),Xe<=G){if(We.setAttribute("stroke-linecap","butt"),We.setAttribute("stroke-linejoin","round"),We.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=We,Ue){var Ve=ce("g");We.appendChild(Ve),this.textSpans[G].childSpan=Ve}this.textSpans[G].span=We,this.layerElement.appendChild(We)}We.style.display="inherit"}if(Pt.reset(),et&&(Oe[G].n&&(ut=-qt,wt+=pe.yOffset,wt+=$t?1:0,$t=!1),this.applyTextPropertiesToMatrix(pe,Pt,Oe[G].line,ut,wt),ut+=Oe[G].l||0,ut+=qt),Ue){var Ne;if((Jt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new XT(Jt.data,this.globalData,this);else{var Ge=oin;Jt.data&&Jt.data.shapes&&(Ge=this.buildShapeData(Jt.data,pe.finalSize)),Ne=new Xo(Ge,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),Jt.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&We.setAttribute("transform","translate("+Pt.props[12]+","+Pt.props[13]+")"),We.textContent=Oe[G].val,We.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&We&&We.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",qt);var Mt=this.buildTextContents(pe.finalText);for(X=Mt.length,wt=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(We=this.textSpans[G].span||ce("tspan")).textContent=Mt[G],We.setAttribute("x",0),We.setAttribute("y",wt),We.style.display="inherit",an.appendChild(We),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=We,wt+=pe.finalLineHeight;this.layerElement.appendChild(an)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},X5.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},X5.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))},X5.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,Ae,$e=this.textAnimator.renderedLetters,Oe=this.textProperty.currentData.l;for(X=Oe.length,G=0;G<X;G+=1)Oe[G].n||(pe=$e[G],xe=this.textSpans[G].span,(Ae=this.textSpans[G].glyph)&&Ae.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([U8],Xoe),Xoe.prototype.createContent=function(){var G=ce("rect");G.setAttribute("width",this.data.sw),G.setAttribute("height",this.data.sh),G.setAttribute("fill",this.data.sc),this.layerElement.appendChild(G)},ky.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},ky.prototype.renderFrame=function(){},ky.prototype.getBaseElement=function(){return null},ky.prototype.destroy=function(){},ky.prototype.sourceRectAtTime=function(){},ky.prototype.hide=function(){},g([Rn,o2,Sy,bi],ky),g([Js],jd),jd.prototype.createNull=function(G){return new ky(G,this.globalData,this)},jd.prototype.createShape=function(G){return new Xo(G,this.globalData,this)},jd.prototype.createText=function(G){return new X5(G,this.globalData,this)},jd.prototype.createImage=function(G){return new U8(G,this.globalData,this)},jd.prototype.createSolid=function(G){return new Xoe(G,this.globalData,this)},jd.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=ce("clipPath"),xe=ce("rect");xe.setAttribute("width",G.w),xe.setAttribute("height",G.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var Ae=H();pe.setAttribute("id",Ae),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},jd.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},jd.prototype.updateContainerSize=function(){},jd.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},jd.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 Ae=X[xe].getMatte(this.layers[G].tt);pe.setMatte(Ae)}else this.buildItem(xe),this.addPendingElement(pe)}}},jd.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,Ae=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(Ae);break}X+=1}}},jd.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()}},jd.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,Ae=0;Ae<X;)this.elements[Ae]&&this.elements[Ae]!==!0&&this.elements[Ae].getBaseElement()&&(xe=this.elements[Ae].getBaseElement()),Ae+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},jd.prototype.hide=function(){this.layerElement.style.display="none"},jd.prototype.show=function(){this.layerElement.style.display="block"},g([Rn,o2,Sy,bi,J5],ex),ex.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()},ex.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))}},ex.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()},ex.prototype.setElements=function(G){this.elements=G},ex.prototype.getElements=function(){return this.elements},ex.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},ex.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([jd,ex,H8],XT),XT.prototype.createComp=function(G){return new XT(G,this.globalData,this)},g([jd],ere),ere.prototype.createComp=function(G){return new XT(G,this.globalData,this)},he("svg",ere),mn.registerModifier("tm",rn),mn.registerModifier("pb",Ut),mn.registerModifier("rp",Wn),mn.registerModifier("rd",ei),mn.registerModifier("zz",ua),mn.registerModifier("op",fr),Wt})())})(0,ore.exports)),ore.exports}function Psn(){if(lje)return ire;function e(n){return n instanceof Bke?Bke.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return lje=1,ire=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}},ire}var Msn=(function(){if(pje)return uje;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}pje=1;var n=e(Bsn()),i=B,r=e(i),s=e((sje||(sje=1,aje=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}),aje)),l=e((dje||(dje=1,cje=Psn()()),cje));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,R=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,oe=se===void 0?p:se,ce=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),fe=ce;if("animationData"in ce){var ue=ce;w=ue.animationData,fe=d(ue,["animationData"])}if("path"in ce){var re=ce;C=re.path,fe=d(re,["path"])}var ie=i.useRef(null),le=i.useRef(),de=i.useCallback((function(){if(le.current==null)throw new Error("Lottie ref is not set");return le.current}),[]),ge=i.useState(!1),he=ge[0],ye=ge[1],we=i.useState(D),Ce=we[0],ve=we[1];i.useEffect((function(){s(Ce,D)||ve(D)}),[D,Ce]);var Be=i.useState(V),Le=Be[0],De=Be[1];i.useEffect((function(){s(Le,V)||De(V)}),[V,Le]),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",oe)}}),[de,oe]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",Y)}}),[de,Y]);var Fe=i.useCallback((function(Se){le.current=Se,typeof b=="function"?b(Se):b!=null&&(b.current=Se)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var Se=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:Le},W?{audioFactory:W}:{}));Fe(Se);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,Le,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",oe)}),[de,oe]),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 Se=!0;Ce?(de().playSegments(Ce,Se),Me.current=!0,I===-1&&be(typeof Ce[1]=="number"?Ce[1]:Ce[1][1])):(Me.current&&de().resetSegments(Se),Me.current=!1,I===-1?be(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function be(Ie){de().goToAndPlay(Ie,!0),de().setDirection(I)}}),[S,Ce,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&&R!=null){var Se=!0;S?de().goToAndPlay(R,Se):de().goToAndStop(R,Se)}}),[de,R,S,he]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},fe,{ref:ie}))})));return x})(n);return uje=h})();const Ms=ur(Msn);var hje,mje,rre,gje,are,fje,sre,xje,lre,yje,cre,bje,dre,wje,Cje,vje,Aje,Sje,kje,jje,$je,Eje,Ije,Dje,Tje,Lje,Bje,Pje,Mje,Oje,ure,Fje,pre,Rje,hre,zje,mre,Nje,gre,_je,Vje,Hje,fre,Uje,xre,Wje,yre,Qje,Yje,Gje,bre,qje,Kje,Zje,Jje,Xje,e$e,t$e,n$e,i$e,wre,o$e,Cre,r$e,vre,a$e,s$e,l$e,c$e,d$e,u$e,p$e,Are,h$e,Sre,m$e,kre,g$e,jre,f$e,$re,x$e,y$e,b$e,Ere,w$e,C$e,v$e,A$e,S$e,k$e,j$e,$$e,E$e,I$e,D$e,Ire,T$e,Dre,L$e,B$e,P$e,M$e,O$e,Tre,F$e,Lre,R$e,Bre,z$e,N$e,_$e,Pre,V$e,Mre,H$e,U$e,W$e,Q$e,Y$e,Ore,G$e,Fre,q$e,Rre,K$e,Z$e,J$e;function fee(){return gje||(gje=1,rre=function(e,n){return e===n||e!=e&&n!=n}),rre}function XN(){if(fje)return are;fje=1;var e=fee();return are=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},are}function pG(){if(vje)return Cje;vje=1;var e=mje?hje:(mje=1,hje=function(){this.__data__=[],this.size=0}),n=(function(){if(xje)return sre;xje=1;var c=XN(),d=Array.prototype.splice;return sre=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))},sre})(),i=(function(){if(yje)return lre;yje=1;var c=XN();return lre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},lre})(),r=(function(){if(bje)return cre;bje=1;var c=XN();return cre=function(d){return c(this.__data__,d)>-1},cre})(),s=(function(){if(wje)return dre;wje=1;var c=XN();return dre=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},dre})();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,Cje=l}function nCt(){if(Lje)return Tje;Lje=1;var e=typeof Rh=="object"&&Rh&&Rh.Object===Object&&Rh;return Tje=e}function f3(){if(Pje)return Bje;Pje=1;var e=nCt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return Bje=i}function WI(){if(Oje)return Mje;Oje=1;var e=f3().Symbol;return Mje=e}function qD(){if(zje)return hre;zje=1;var e=WI(),n=(function(){if(Fje)return ure;Fje=1;var s=WI(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return ure=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},ure})(),i=(function(){if(Rje)return pre;Rje=1;var s=Object.prototype.toString;return pre=function(l){return s.call(l)},pre})(),r=e?e.toStringTag:void 0;return hre=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},hre}function B3(){return Nje||(Nje=1,mre=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),mre}function iCt(){if(_je)return gre;_je=1;var e=qD(),n=B3();return gre=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},gre}function Osn(){if(Uje)return fre;Uje=1;var e=(function(){if(Hje)return Vje;Hje=1;var i=f3()["__core-js_shared__"];return Vje=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return fre=function(i){return!!n&&n in i},fre}function oCt(){if(Wje)return xre;Wje=1;var e=Function.prototype.toString;return xre=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},xre}function Uv(){if(qje)return bre;qje=1;var e=(function(){if(Qje)return yre;Qje=1;var i=iCt(),r=Osn(),s=B3(),l=oCt(),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 yre=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},yre})(),n=(Gje||(Gje=1,Yje=function(i,r){return i?.[r]}),Yje);return bre=function(i,r){var s=n(i,r);return e(s)?s:void 0},bre}function a8e(){if(Zje)return Kje;Zje=1;var e=Uv()(f3(),"Map");return Kje=e}function e_(){if(Xje)return Jje;Xje=1;var e=Uv()(Object,"create");return Jje=e}function Fsn(){if(l$e)return s$e;l$e=1;var e=(function(){if(t$e)return e$e;t$e=1;var c=e_();return e$e=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(i$e||(i$e=1,n$e=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),n$e),i=(function(){if(o$e)return wre;o$e=1;var c=e_(),d=Object.prototype.hasOwnProperty;return wre=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},wre})(),r=(function(){if(r$e)return Cre;r$e=1;var c=e_(),d=Object.prototype.hasOwnProperty;return Cre=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Cre})(),s=(function(){if(a$e)return vre;a$e=1;var c=e_();return vre=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},vre})();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,s$e=l}function t_(){if(h$e)return Are;h$e=1;var e=(p$e||(p$e=1,u$e=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),u$e);return Are=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Are}function s8e(){if(b$e)return y$e;b$e=1;var e=(function(){if(d$e)return c$e;d$e=1;var c=Fsn(),d=pG(),u=a8e();return c$e=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(m$e)return Sre;m$e=1;var c=t_();return Sre=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Sre})(),i=(function(){if(g$e)return kre;g$e=1;var c=t_();return kre=function(d){return c(this,d).get(d)},kre})(),r=(function(){if(f$e)return jre;f$e=1;var c=t_();return jre=function(d){return c(this,d).has(d)},jre})(),s=(function(){if(x$e)return $re;x$e=1;var c=t_();return $re=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},$re})();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,y$e=l}function l8e(){if(v$e)return C$e;v$e=1;var e=pG(),n=(function(){if(Sje)return Aje;Sje=1;var d=pG();return Aje=function(){this.__data__=new d,this.size=0}})(),i=(jje||(jje=1,kje=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),kje),r=(Eje||(Eje=1,$je=function(d){return this.__data__.get(d)}),$je),s=(Dje||(Dje=1,Ije=function(d){return this.__data__.has(d)}),Ije),l=(function(){if(w$e)return Ere;w$e=1;var d=pG(),u=a8e(),p=s8e();return Ere=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},Ere})();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,C$e=c}function rCt(){if(E$e)return $$e;E$e=1;var e=s8e(),n=(S$e||(S$e=1,A$e=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),A$e),i=(j$e||(j$e=1,k$e=function(s){return this.__data__.has(s)}),k$e);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,$$e=r}function aCt(){return T$e||(T$e=1,Ire=function(e,n){return e.has(n)}),Ire}function sCt(){if(L$e)return Dre;L$e=1;var e=rCt(),n=(D$e||(D$e=1,I$e=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}),I$e),i=aCt();return Dre=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},Dre}function lCt(){if(P$e)return B$e;P$e=1;var e=f3().Uint8Array;return B$e=e}function y5e(){return F$e||(F$e=1,Tre=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Tre}function Rsn(){if(R$e)return Lre;R$e=1;var e=WI(),n=lCt(),i=fee(),r=sCt(),s=(O$e||(O$e=1,M$e=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),M$e),l=y5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Lre=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},Lre}function c8e(){return z$e||(z$e=1,Bre=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Bre}function Wu(){if(_$e)return N$e;_$e=1;var e=Array.isArray;return N$e=e}function cCt(){if(V$e)return Pre;V$e=1;var e=c8e(),n=Wu();return Pre=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Pre}function d8e(){return H$e||(H$e=1,Mre=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}),Mre}function dCt(){return W$e?U$e:(W$e=1,U$e=function(){return[]})}function u8e(){if(Y$e)return Q$e;Y$e=1;var e=d8e(),n=dCt(),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 Q$e=s}function uCt(){return G$e||(G$e=1,Ore=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Ore}function H7(){return q$e||(q$e=1,Fre=function(e){return e!=null&&typeof e=="object"}),Fre}function p8e(){if(J$e)return Z$e;J$e=1;var e=(function(){if(K$e)return Rre;K$e=1;var c=qD(),d=H7();return Rre=function(u){return d(u)&&c(u)=="[object Arguments]"},Rre})(),n=H7(),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 Z$e=l}var X$e,eEe,tEe,zre,nEe,Nre,iEe,_re,oEe,Vre,rEe,Hre={exports:{}};function h8e(){return tEe||(tEe=1,(function(e,n){var i=f3(),r=eEe?X$e:(eEe=1,X$e=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})(Hre,Hre.exports)),Hre.exports}function az(){if(nEe)return zre;nEe=1;var e=/^(?:0|[1-9]\d*)$/;return zre=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},zre}function m8e(){return iEe?Nre:(iEe=1,Nre=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Nre)}function xee(){return rEe||(rEe=1,Vre=function(e){return function(n){return e(n)}}),Vre}var aEe,sEe,lEe,Ure,cEe,Wre,dEe,Qre,uEe,pEe,hEe,Yre,mEe,Gre,gEe,qre,fEe,Kre,xEe,Zre,yEe,bEe,wEe,CEe,vEe,AEe,SEe,kEe,jEe,$Ee,EEe,Jre,IEe,Xre,DEe,eae,TEe,tae={exports:{}};function g8e(){return aEe||(aEe=1,(function(e,n){var i=nCt(),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})(tae,tae.exports)),tae.exports}function pCt(){if(lEe)return sEe;lEe=1;var e=(function(){if(oEe)return _re;oEe=1;var l=qD(),c=m8e(),d=H7(),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,_re=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},_re})(),n=xee(),i=g8e(),r=i&&i.isTypedArray,s=r?n(r):e;return sEe=s}function hCt(){if(cEe)return Ure;cEe=1;var e=uCt(),n=p8e(),i=Wu(),r=h8e(),s=az(),l=pCt(),c=Object.prototype.hasOwnProperty;return Ure=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},Ure}function f8e(){if(dEe)return Wre;dEe=1;var e=Object.prototype;return Wre=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Wre}function mCt(){return uEe||(uEe=1,Qre=function(e,n){return function(i){return e(n(i))}}),Qre}function zsn(){if(mEe)return Yre;mEe=1;var e=f8e(),n=(function(){if(hEe)return pEe;hEe=1;var r=mCt()(Object.keys,Object);return pEe=r})(),i=Object.prototype.hasOwnProperty;return Yre=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},Yre}function KD(){if(gEe)return Gre;gEe=1;var e=iCt(),n=m8e();return Gre=function(i){return i!=null&&n(i.length)&&!e(i)},Gre}function YF(){if(fEe)return qre;fEe=1;var e=hCt(),n=zsn(),i=KD();return qre=function(r){return i(r)?e(r):n(r)},qre}function gCt(){if(xEe)return Kre;xEe=1;var e=cCt(),n=u8e(),i=YF();return Kre=function(r){return e(r,i,n)},Kre}function fCt(){if(SEe)return AEe;SEe=1;var e=Uv()(f3(),"Set");return AEe=e}function yee(){if(EEe)return $Ee;EEe=1;var e=(function(){if(wEe)return bEe;wEe=1;var v=Uv()(f3(),"DataView");return bEe=v})(),n=a8e(),i=(function(){if(vEe)return CEe;vEe=1;var v=Uv()(f3(),"Promise");return CEe=v})(),r=fCt(),s=(function(){if(jEe)return kEe;jEe=1;var v=Uv()(f3(),"WeakMap");return kEe=v})(),l=qD(),c=oCt(),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}),$Ee=C}function Nsn(){if(IEe)return Jre;IEe=1;var e=l8e(),n=sCt(),i=Rsn(),r=(function(){if(yEe)return Zre;yEe=1;var f=gCt(),x=Object.prototype.hasOwnProperty;return Zre=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 R=!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)){R=!1;break}N||(N=E=="constructor")}if(R&&!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)&&(R=!1)}return S.delete(y),S.delete(b),R},Zre})(),s=yee(),l=Wu(),c=h8e(),d=pCt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return Jre=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 R=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(R,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},Jre}function x8e(){if(DEe)return Xre;DEe=1;var e=Nsn(),n=H7();return Xre=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))},Xre}var _sn=(function(){if(TEe)return eae;TEe=1;var e=x8e();return eae=function(n,i){return e(n,i)},eae})();const eo=ur(_sn);var LEe,BEe,nae,PEe,iae,MEe,oae,OEe,rae,FEe,aae,REe;function Vsn(){if(MEe)return iae;MEe=1;var e=(function(){if(PEe)return nae;PEe=1;var i=/\s/;return nae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},nae})(),n=/^\s+/;return iae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},iae}function sz(){if(OEe)return oae;OEe=1;var e=qD(),n=H7();return oae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},oae}function xCt(){if(FEe)return rae;FEe=1;var e=Vsn(),n=B3(),i=sz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return rae=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},rae}function yCt(){if(REe)return aae;REe=1;var e=B3(),n=(function(){if(BEe)return LEe;BEe=1;var l=f3();return LEe=function(){return l.Date.now()}})(),i=xCt(),r=Math.max,s=Math.min;return aae=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},aae}const Es=ur(yCt());var zEe,NEe;function bCt(){return NEe?zEe:(NEe=1,zEe=function(){})}const y8e=ur(bCt());var sae,_Ee,VEe,HEe,lae,UEe,cae,WEe,dae,QEe,uae,YEe,GEe,qEe,pae,KEe,hae,ZEe,mae,JEe;function wCt(){return _Ee||(_Ee=1,sae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),sae}function CCt(){if(HEe)return VEe;HEe=1;var e=Uv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return VEe=n}function b8e(){if(UEe)return lae;UEe=1;var e=CCt();return lae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},lae}function w8e(){if(WEe)return cae;WEe=1;var e=b8e(),n=fee(),i=Object.prototype.hasOwnProperty;return cae=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)},cae}function vM(){if(QEe)return dae;QEe=1;var e=w8e(),n=b8e();return dae=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},dae}function Hsn(){if(KEe)return pae;KEe=1;var e=B3(),n=f8e(),i=(qEe||(qEe=1,GEe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),GEe),r=Object.prototype.hasOwnProperty;return pae=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},pae}function b5e(){if(ZEe)return hae;ZEe=1;var e=hCt(),n=Hsn(),i=KD();return hae=function(r){return i(r)?e(r,!0):n(r)},hae}var XEe,eIe,tIe,gae,nIe,iIe,oIe,rIe,aIe,fae,sIe,xae,lIe,yae,cIe,bae,dIe,wae,uIe,Cae,pIe,vae,hIe,Aae,mIe,Sae,gIe,fIe,xIe,kae,yIe,jae,bIe,wIe,CIe,$ae,vIe,AIe,SIe,Eae,kIe,Iae,jIe,Dae={exports:{}};function C8e(){if(oIe)return iIe;oIe=1;var e=mCt()(Object.getPrototypeOf,Object);return iIe=e}function vCt(){if(aIe)return rIe;aIe=1;var e=c8e(),n=C8e(),i=u8e(),r=dCt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return rIe=s}function v8e(){if(lIe)return xae;lIe=1;var e=cCt(),n=vCt(),i=b5e();return xae=function(r){return e(r,i,n)},xae}function Tae(){if(dIe)return bae;dIe=1;var e=lCt();return bae=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},bae}function Usn(){if(gIe)return Sae;gIe=1;var e=Tae(),n=(function(){if(uIe)return wae;uIe=1;var l=Tae();return wae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},wae})(),i=(function(){if(pIe)return Cae;pIe=1;var l=/\w*$/;return Cae=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Cae})(),r=(function(){if(hIe)return vae;hIe=1;var l=WI(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return vae=function(u){return d?Object(d.call(u)):{}},vae})(),s=(function(){if(mIe)return Aae;mIe=1;var l=Tae();return Aae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Aae})();return Sae=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)}},Sae}function Wsn(){if(yIe)return kae;yIe=1;var e=(function(){if(xIe)return fIe;xIe=1;var r=B3(),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 fIe=l})(),n=C8e(),i=f8e();return kae=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},kae}function Qsn(){if(CIe)return wIe;CIe=1;var e=(function(){if(bIe)return jae;bIe=1;var l=yee(),c=H7();return jae=function(d){return c(d)&&l(d)=="[object Map]"},jae})(),n=xee(),i=g8e(),r=i&&i.isMap,s=r?n(r):e;return wIe=s}function Ysn(){if(SIe)return AIe;SIe=1;var e=(function(){if(vIe)return $ae;vIe=1;var l=yee(),c=H7();return $ae=function(d){return c(d)&&l(d)=="[object Set]"},$ae})(),n=xee(),i=g8e(),r=i&&i.isSet,s=r?n(r):e;return AIe=s}function ACt(){if(kIe)return Eae;kIe=1;var e=l8e(),n=wCt(),i=w8e(),r=(function(){if(YEe)return uae;YEe=1;var L=vM(),R=YF();return uae=function(N,_){return N&&L(_,R(_),N)},uae})(),s=(function(){if(JEe)return mae;JEe=1;var L=vM(),R=b5e();return mae=function(N,_){return N&&L(_,R(_),N)},mae})(),l=(XEe||(XEe=1,(function(L,R){var N=f3(),_=R&&!R.nodeType&&R,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}})(Dae,Dae.exports)),Dae.exports),c=(tIe||(tIe=1,eIe=function(L,R){var N=-1,_=L.length;for(R||(R=Array(_));++N<_;)R[N]=L[N];return R}),eIe),d=(function(){if(nIe)return gae;nIe=1;var L=vM(),R=u8e();return gae=function(N,_){return L(N,R(N),_)},gae})(),u=(function(){if(sIe)return fae;sIe=1;var L=vM(),R=vCt();return fae=function(N,_){return L(N,R(N),_)},fae})(),p=gCt(),h=v8e(),g=yee(),f=(function(){if(cIe)return yae;cIe=1;var L=Object.prototype.hasOwnProperty;return yae=function(R){var N=R.length,_=new R.constructor(N);return N&&typeof R[0]=="string"&&L.call(R,"index")&&(_.index=R.index,_.input=R.input),_},yae})(),x=Usn(),y=Wsn(),b=Wu(),w=h8e(),C=Qsn(),v=B3(),S=Ysn(),k=YF(),$=b5e(),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,Eae=function L(R,N,_,z,T,M){var O,H=1&N,V=2&N,W=4&N;if(_&&(O=T?_(R,z,T,M):_(R)),O!==void 0)return O;if(!v(R))return R;var U=b(R);if(U){if(O=f(R),!H)return c(R,O)}else{var Y=g(R),q=Y==I||Y=="[object GeneratorFunction]";if(w(R))return l(R,H);if(Y==E||Y==j||q&&!T){if(O=V||q?{}:y(R),!H)return V?u(R,s(O,R)):d(R,r(O,R))}else{if(!D[Y])return T?R:{};O=x(R,Y,H)}}M||(M=new e);var K=M.get(R);if(K)return K;M.set(R,O),S(R)?R.forEach((function(ee){O.add(L(ee,N,_,ee,R,M))})):C(R)&&R.forEach((function(ee,te){O.set(te,L(ee,N,_,te,R,M))}));var J=U?void 0:(W?V?h:p:V?$:k)(R);return n(J||R,(function(ee,te){J&&(ee=R[te=ee]),i(O,te,L(ee,N,_,te,R,M))})),O},Eae}var Gsn=(function(){if(jIe)return Iae;jIe=1;var e=ACt();return Iae=function(n){return e(n,5)},Iae})();const es=ur(Gsn);var Lae,$Ie,Bae,EIe,IIe,DIe,Pae,TIe,LIe,BIe,Mae,PIe,Oae,MIe,Fae,OIe,Rae,FIe,zae,RIe,Nae,zIe,_ae,NIe;function A8e(){if(EIe)return Bae;EIe=1;var e=Wu(),n=sz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Bae=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)},Bae}function qsn(){if(TIe)return Pae;TIe=1;var e=(function(){if(DIe)return IIe;DIe=1;var n=s8e();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,IIe=i})();return Pae=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Pae}function tS(){return PIe||(PIe=1,Mae=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}),Mae}function SCt(){if(MIe)return Oae;MIe=1;var e=WI(),n=tS(),i=Wu(),r=sz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Oae=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},Oae}function kCt(){if(OIe)return Fae;OIe=1;var e=SCt();return Fae=function(n){return n==null?"":e(n)},Fae}function QI(){if(FIe)return Rae;FIe=1;var e=Wu(),n=A8e(),i=(function(){if(BIe)return LIe;BIe=1;var s=qsn(),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 LIe=d})(),r=kCt();return Rae=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Rae}function ZD(){if(RIe)return zae;RIe=1;var e=sz();return zae=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},zae}function jCt(){if(zIe)return Nae;zIe=1;var e=QI(),n=p8e(),i=Wu(),r=az(),s=m8e(),l=ZD();return Nae=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))},Nae}var Ksn=(function(){if(NIe)return _ae;NIe=1;var e=(function(){if($Ie)return Lae;$Ie=1;var i=Object.prototype.hasOwnProperty;return Lae=function(r,s){return r!=null&&i.call(r,s)},Lae})(),n=jCt();return _ae=function(i,r){return i!=null&&n(i,r,e)},_ae})();const gn=ur(Ksn);var _Ie,VIe,Vae,HIe,Hae,UIe,Uae,WIe,QIe,YIe,GIe,qIe,Wae,KIe,ZIe,JIe,Qae,XIe,eDe,tDe;function JD(){return HIe||(HIe=1,Vae=function(e){return e}),Vae}function $Ct(){return UIe||(UIe=1,Hae=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)}),Hae}function ECt(){if(WIe)return Uae;WIe=1;var e=$Ct(),n=Math.max;return Uae=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)}},Uae}function Zsn(){if(qIe)return GIe;qIe=1;var e=(YIe||(YIe=1,QIe=function(s){return function(){return s}}),QIe),n=CCt(),i=JD(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return GIe=r}function ICt(){if(JIe)return ZIe;JIe=1;var e=Zsn(),n=(function(){if(KIe)return Wae;KIe=1;var r=Date.now;return Wae=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)}},Wae})(),i=n(e);return ZIe=i}function DCt(){if(XIe)return Qae;XIe=1;var e=JD(),n=ECt(),i=ICt();return Qae=function(r,s){return i(n(r,s,e),r+"")},Qae}var Jsn=(function(){if(tDe)return eDe;tDe=1;var e=(VIe||(VIe=1,_Ie=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),_Ie),n=DCt()((function(i,r){return e(i,1,r)}));return eDe=n})();const _i=ur(Jsn);var Yae,nDe,Gae,iDe;function lz(){if(nDe)return Yae;nDe=1;var e=QI(),n=ZD();return Yae=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},Yae}function TCt(){if(iDe)return Gae;iDe=1;var e=lz();return Gae=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Gae}const A3=ur(TCt());var qae,oDe,Kae,rDe,Zae,aDe,Jae,sDe;function LCt(){if(oDe)return qae;oDe=1;var e=l8e(),n=x8e();return qae=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},qae}function BCt(){if(rDe)return Kae;rDe=1;var e=B3();return Kae=function(n){return n==n&&!e(n)},Kae}function PCt(){if(aDe)return Zae;aDe=1;var e=BCt(),n=YF();return Zae=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},Zae}var Xsn=(function(){if(sDe)return Jae;sDe=1;var e=LCt(),n=PCt();return Jae=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},Jae})();const eln=ur(Xsn);var lDe,cDe,tln=(cDe||(cDe=1,lDe=function(e){return e==null}),lDe);const dDe=ur(tln);var uDe,pDe,Xae,hDe,nln=(function(){if(hDe)return Xae;hDe=1;var e=(pDe||(pDe=1,uDe=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}),uDe),n=JD();return Xae=function(i){return i&&i.length?e(i,n):0},Xae})();const iln=ur(nln);var ese,mDe,tse,gDe,nse,fDe,ise,xDe,ose,yDe;function S8e(){return mDe||(mDe=1,ese=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}),ese}function MCt(){if(gDe)return tse;gDe=1;var e=fee(),n=KD(),i=az(),r=B3();return tse=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)},tse}function bee(){if(xDe)return ise;xDe=1;var e=(function(){if(fDe)return nse;fDe=1;var n=xCt(),i=1/0;return nse=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},nse})();return ise=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},ise}var oln=(function(){if(yDe)return ose;yDe=1;var e=S8e(),n=MCt(),i=bee(),r=Math.ceil,s=Math.max;return ose=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},ose})();const rln=ur(oln);var bDe,wDe,aln=(wDe||(wDe=1,bDe=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}),bDe);const sln=ur(aln);var CDe,vDe,ADe,SDe,rse,kDe,ase,jDe,$De,EDe,sse,IDe,lse,DDe,TDe,LDe;function lln(){if(SDe)return ADe;SDe=1;var e=(vDe||(vDe=1,CDe=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}}),CDe),n=e();return ADe=n}function OCt(){if(kDe)return rse;kDe=1;var e=lln(),n=YF();return rse=function(i,r){return i&&e(i,r,n)},rse}function cz(){if(EDe)return $De;EDe=1;var e=OCt(),n=(function(){if(jDe)return ase;jDe=1;var r=KD();return ase=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}},ase})(),i=n(e);return $De=i}function FCt(){if(IDe)return sse;IDe=1;var e=JD();return sse=function(n){return typeof n=="function"?n:e},sse}var cln=(LDe||(LDe=1,TDe=(function(){if(DDe)return lse;DDe=1;var e=wCt(),n=cz(),i=FCt(),r=Wu();return lse=function(s,l){return(r(s)?e:n)(s,i(l))},lse})()),TDe);const dln=ur(cln);var BDe,PDe,cse,MDe,dse,ODe,FDe,RDe,use,zDe,pse,NDe,hse,_De,mse,VDe,gse,HDe,fse,UDe,WDe,QDe,xse,YDe;function GDe(){return MDe||(MDe=1,cse=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),cse}function uln(){if(zDe)return use;zDe=1;var e=(RDe||(RDe=1,FDe=function(i,r){return i!=null&&r in Object(i)}),FDe),n=jCt();return use=function(i,r){return i!=null&&n(i,r,e)},use}function k8e(){return _De||(_De=1,hse=function(e){return function(n){return n?.[e]}}),hse}function pln(){if(HDe)return gse;HDe=1;var e=k8e(),n=(function(){if(VDe)return mse;VDe=1;var s=lz();return mse=function(l){return function(c){return s(c,l)}},mse})(),i=A8e(),r=ZD();return gse=function(s){return i(s)?e(r(s)):n(s)},gse}function _9(){if(UDe)return fse;UDe=1;var e=(function(){if(ODe)return dse;ODe=1;var l=LCt(),c=PCt(),d=GDe();return dse=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)}},dse})(),n=(function(){if(NDe)return pse;NDe=1;var l=x8e(),c=TCt(),d=uln(),u=A8e(),p=BCt(),h=GDe(),g=ZD();return pse=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)}},pse})(),i=JD(),r=Wu(),s=pln();return fse=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},fse}var hln=(function(){if(YDe)return xse;YDe=1;var e=(PDe||(PDe=1,BDe=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}),BDe),n=cz(),i=_9(),r=(QDe||(QDe=1,WDe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),WDe),s=Wu();return xse=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},xse})();const w5e=ur(hln);var yse,qDe,bse,KDe,wse,ZDe,JDe,XDe;function mln(){if(KDe)return bse;KDe=1;var e=d8e(),n=tS(),i=k8e(),r=uCt(),s=(function(){if(qDe)return yse;qDe=1;var c=KD(),d=H7();return yse=function(u){return d(u)&&c(u)},yse})(),l=Math.max;return bse=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))}))},bse}var gln=(function(){if(XDe)return JDe;XDe=1;var e=DCt(),n=(function(){if(ZDe)return wse;ZDe=1;var r=$Ct(),s=tS(),l=mln();return wse=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)}))},wse})(),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 JDe=i})();const fln=ur(gln);var Cse,eTe,xln=(function(){if(eTe)return Cse;eTe=1;var e=OCt(),n=FCt();return Cse=function(i,r){return i&&e(i,n(r))},Cse})();const RCt=ur(xln);var vse,tTe,Ase,nTe;function zCt(){if(tTe)return vse;tTe=1;var e=cz(),n=KD();return vse=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},vse}function NCt(){if(nTe)return Ase;nTe=1;var e=tS(),n=_9(),i=zCt(),r=Wu();return Ase=function(s,l){return(r(s)?e:i)(s,n(l,3))},Ase}const wee=ur(NCt());var Sse,iTe,kse,oTe,jse,rTe;function yln(){if(oTe)return kse;oTe=1;var e=lz(),n=(function(){if(iTe)return Sse;iTe=1;var r=w8e(),s=QI(),l=az(),c=B3(),d=ZD();return Sse=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},Sse})(),i=QI();return kse=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},kse}var bln=(function(){if(rTe)return jse;rTe=1;var e=tS(),n=_9(),i=yln(),r=v8e();return jse=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])}))},jse})();const Kq=ur(bln);var $se,aTe,wln=(function(){if(aTe)return $se;aTe=1;var e=yCt(),n=B3();return $se=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})},$se})();const Cln=ur(wln);var Ese,sTe,Ise,lTe,vln=(function(){if(lTe)return Ise;lTe=1;var e=d8e(),n=(function(){if(sTe)return Ese;sTe=1;var s=cz();return Ese=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Ese})(),i=_9(),r=Wu();return Ise=function(s,l){return(r(s)?e:n)(s,i(l,3))},Ise})();const Aln=ur(vln);var cTe,dTe,Dse,uTe,Tse,pTe,hTe,mTe;function Sln(){if(pTe)return Tse;pTe=1;var e=(dTe||(dTe=1,cTe=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}),cTe),n=(function(){if(uTe)return Dse;uTe=1;var s=cz();return Dse=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Dse})(),i=_9(),r=Wu();return Tse=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Tse}var kln=(function(){if(mTe)return hTe;mTe=1;var e=b8e(),n=Sln(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return hTe=r})();const jln=ur(kln);var gTe,fTe,Lse,xTe,Bse,yTe,Pse,bTe,Mse,wTe;function $ln(){if(yTe)return Bse;yTe=1;var e=(function(){if(xTe)return Lse;xTe=1;var n=sz();return Lse=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},Lse})();return Bse=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},Bse}function Eln(){if(bTe)return Pse;bTe=1;var e=tS(),n=lz(),i=_9(),r=zCt(),s=(fTe||(fTe=1,gTe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),gTe),l=xee(),c=$ln(),d=JD(),u=Wu();return Pse=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)}))},Pse}var Iln=(function(){if(wTe)return Mse;wTe=1;var e=Eln(),n=Wu();return Mse=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))},Mse})();const Cee=ur(Iln);var CTe,vTe,Ose,ATe,Fse,STe,Rse,kTe;function Dln(){if(ATe)return Ose;ATe=1;var e=(vTe||(vTe=1,CTe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),CTe),n=bee();return Ose=function(i){return i?e(n(i),0,4294967295):0},Ose}var Tln=(function(){if(kTe)return Rse;kTe=1;var e=(function(){if(STe)return Fse;STe=1;var i=bee(),r=Dln();return Fse=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},Fse})(),n=MCt();return Rse=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)):[]},Rse})();const _Ct=ur(Tln);var jTe,$Te,zse,ETe,Nse,ITe,_se,DTe,Vse,TTe;function VCt(){if(ITe)return Nse;ITe=1;var e=QI(),n=($Te||($Te=1,jTe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),jTe),i=(function(){if(ETe)return zse;ETe=1;var l=lz(),c=S8e();return zse=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},zse})(),r=ZD(),s=Object.prototype.hasOwnProperty;return Nse=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))]},Nse}var Lln=(function(){if(TTe)return Vse;TTe=1;var e=_9(),n=(function(){if(DTe)return _se;DTe=1;var i=VCt(),r=az(),s=Array.prototype.splice;return _se=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},_se})();return Vse=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},Vse})();const Zq=ur(Lln);var Hse,LTe,Use,BTe,Wse,PTe,Qse,MTe,Yse,OTe,Gse,FTe,RTe,zTe;function Bln(){if(BTe)return Use;BTe=1;var e=(function(){if(LTe)return Hse;LTe=1;var n=qD(),i=C8e(),r=H7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Hse=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},Hse})();return Use=function(n){return e(n)?void 0:n},Use}function HCt(){if(MTe)return Qse;MTe=1;var e=c8e(),n=(function(){if(PTe)return Wse;PTe=1;var i=WI(),r=p8e(),s=Wu(),l=i?i.isConcatSpreadable:void 0;return Wse=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Wse})();return Qse=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},Qse}function UCt(){if(OTe)return Yse;OTe=1;var e=HCt();return Yse=function(n){return n!=null&&n.length?e(n,1):[]},Yse}var Pln=(function(){if(zTe)return RTe;zTe=1;var e=tS(),n=ACt(),i=VCt(),r=QI(),s=vM(),l=Bln(),c=(function(){if(FTe)return Gse;FTe=1;var p=UCt(),h=ECt(),g=ICt();return Gse=function(f){return g(h(f,void 0,p),f+"")},Gse})(),d=v8e(),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 RTe=u})();const j8e=ur(Pln);var qse,NTe,Mln=(function(){if(NTe)return qse;NTe=1;var e=HCt(),n=NCt();return qse=function(i,r){return e(n(i,r),1)},qse})();const WCt=ur(Mln);var _Te,VTe,HTe,UTe,WTe,QTe,Kse,YTe,Zse,GTe,qTe,KTe,ZTe,JTe,Jse,XTe,Xse,eLe;function Oln(){if(YTe)return Kse;YTe=1;var e=(VTe||(VTe=1,_Te=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}),_Te),n=(UTe||(UTe=1,HTe=function(r){return r!=r}),HTe),i=(QTe||(QTe=1,WTe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),WTe);return Kse=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},Kse}function QCt(){if(XTe)return Jse;XTe=1;var e=rCt(),n=(function(){if(GTe)return Zse;GTe=1;var c=Oln();return Zse=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},Zse})(),i=(KTe||(KTe=1,qTe=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}),qTe),r=aCt(),s=(function(){if(JTe)return ZTe;JTe=1;var c=fCt(),d=bCt(),u=y5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return ZTe=p})(),l=y5e();return Jse=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},Jse}var Fln=(function(){if(eLe)return Xse;eLe=1;var e=_9(),n=QCt();return Xse=function(i,r){return i&&i.length?n(i,e(r,2)):[]},Xse})();const Rln=ur(Fln),zln=ur(UCt());var ele,tLe,Nln=(function(){if(tLe)return ele;tLe=1;var e=QCt();return ele=function(n){return n&&n.length?e(n):[]},ele})();const _ln=ur(Nln);var tle,nLe,nle,iLe,ile,oLe,rLe,aLe,ole,sLe,rle,lLe,cLe,dLe,ale,uLe,sle,pLe,lle,hLe,mLe,gLe;function $8e(){if(oLe)return ile;oLe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return ile=function(n){return e.test(n)},ile}function YCt(){if(lLe)return rle;lLe=1;var e=(function(){if(aLe)return rLe;aLe=1;var r=k8e()("length");return rLe=r})(),n=$8e(),i=(function(){if(sLe)return ole;sLe=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 ole=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},ole})();return rle=function(r){return n(r)?i(r):e(r)},rle}function Vln(){if(pLe)return sle;pLe=1;var e=(dLe||(dLe=1,cLe=function(r){return r.split("")}),cLe),n=$8e(),i=(function(){if(uLe)return ale;uLe=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 ale=function(b){return b.match(y)||[]},ale})();return sle=function(r){return n(r)?i(r):e(r)},sle}function Hln(){if(hLe)return lle;hLe=1;var e=(function(){if(nLe)return tle;nLe=1;var d=Math.floor;return tle=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},tle})(),n=SCt(),i=(function(){if(iLe)return nle;iLe=1;var d=S8e();return nle=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},nle})(),r=$8e(),s=YCt(),l=Vln(),c=Math.ceil;return lle=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)},lle}(function(){if(gLe)return mLe;gLe=1;var e=Hln(),n=YCt(),i=bee(),r=kCt();mLe=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 GF=e=>e.type==="checkbox",gE=e=>e instanceof Date,gp=e=>e==null;const GCt=e=>typeof e=="object";var wd=e=>!gp(e)&&!Array.isArray(e)&&GCt(e)&&!gE(e),qCt=e=>wd(e)&&e.target?GF(e.target)?e.target.checked:e.target.value:e,KCt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),E8e=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Th(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(E8e&&(e instanceof Blob||e instanceof FileList)||!i&&!wd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return wd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Th(e[r]);else n=e}return n}var YI=e=>Array.isArray(e)?e.filter(Boolean):[],al=e=>e===void 0,Si=(e,n,i)=>{if(!n||!wd(e))return i;const r=YI(n.split(/[,[\].]+?/)).reduce(((s,l)=>gp(s)?s:s[l]),e);return al(r)||r===e?al(e[n])?i:e[n]:r};const ZCt="blur",Uln="focusout",Wln="change",Qln="onBlur",JCt="onChange",XCt="onSubmit",Yln="onTouched",GI="all",Gln="max",qln="min",Kln="maxLength",Zln="minLength",fLe="pattern",xLe="required",Jln="validate",evt=B.createContext(null),At=()=>B.useContext(evt),Dn=e=>{const{children:n,...i}=e;return B.createElement(evt.Provider,{value:i},n)};var tvt=(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]!==GI&&(n._proxyFormState[c]=!r||GI),i&&(i[c]=!0),e[c]}});return s},L0=e=>wd(e)&&!Object.keys(e).length,nvt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return L0(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||GI)))},V0=e=>Array.isArray(e)?e:[e],ivt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||V0(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function vee(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 s5=e=>typeof e=="string",ovt=(e,n,i,r,s)=>s5(e)?(r&&n.watch.add(e),Si(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Si(i,l)))):(r&&(n.watchAll=!0),i);function Qa(e){const n=At(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,vee({disabled:l,subject:i._subjects.values,next:h=>{ivt(d.current,h.name,c)&&p(Th(ovt(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 I8e=e=>/^\w*$/.test(e),rvt=e=>YI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Ds(e,n,i){let r=-1;const s=I8e(n)?[n]:rvt(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=wd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Xln(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=KCt(r._names.array,i),c=Qa({control:r,name:i,defaultValue:Si(r._formValues,i,Si(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,vee({disabled:f,next:k=>C.current&&ivt(S.current,k.name,y)&&nvt(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]),tvt(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=Si(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Th(Si(r._options.defaultValues,i));Ds(r._defaultValues,i,g),al(Si(r._formValues,i))&&Ds(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:qCt(p),name:i},type:Wln})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Si(r._formValues,i),name:i},type:ZCt})),[i,r]),ref:p=>{const h=Si(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:()=>!!Si(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Si(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Si(d.touchedFields,i)},error:{enumerable:!0,get:()=>Si(d.errors,i)}})}}const Ni=e=>e.render(Xln(e));var ecn=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const Jq=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Si(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 wd(c)&&Jq(c,n)}}};var Iy=()=>{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)}))},cle=(e,n,i={})=>i.shouldFocus||al(i.shouldFocus)?i.focusName||`${e}.${al(i.focusIndex)?n:i.focusIndex}.`:"",C5e=e=>({isOnSubmit:!e||e===XCt,isOnBlur:e===Qln,isOnChange:e===JCt,isOnAll:e===GI,isOnTouch:e===Yln}),v5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),avt=(e,n,i)=>{const r=YI(Si(e,i));return Ds(r,"root",n[i]),Ds(e,i,r),e},iI=e=>typeof e=="boolean",D8e=e=>e.type==="file",Ob=e=>typeof e=="function",Xq=e=>{if(!E8e)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},hG=e=>s5(e),T8e=e=>e.type==="radio",eK=e=>e instanceof RegExp;const yLe={value:!1,isValid:!1},bLe={value:!0,isValid:!0};var svt=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&&!al(e[0].attributes.value)?al(e[0].value)||e[0].value===""?bLe:{value:e[0].value,isValid:!0}:bLe:yLe}return yLe};const wLe={isValid:!1,value:null};var lvt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),wLe):wLe;function CLe(e,n,i="validate"){if(hG(e)||Array.isArray(e)&&e.every(hG)||iI(e)&&!e)return{type:i,message:hG(e)?e:"",ref:n}}var XS=e=>wd(e)&&!eK(e)?e:{value:e,message:""},A5e=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=Si(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(iI(N)?"":N||""),S.reportValidity())},$={},j=T8e(l),I=GF(l),E=j||I,D=(b||D8e(l))&&al(l.value)&&al(v)||Xq(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=ecn.bind(null,y,i,$),R=(N,_,z,T=Kln,M=Zln)=>{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||gp(v))||iI(v)&&!v||I&&!svt(c).isValid||j&&!lvt(c).isValid)){const{value:N,message:_}=hG(d)?{value:!!d,message:d}:XS(d);if(N&&($[y]={type:xLe,message:_,ref:S,...L(xLe,_)},!i))return k(_),$}if(!(D||gp(h)&&gp(g))){let N,_;const z=XS(g),T=XS(h);if(gp(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";s5(z.value)&&v&&(N=H?O(v)>O(z.value):V?v>z.value:M>new Date(z.value)),s5(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;gp(z.value)||(N=M>z.value),gp(T.value)||(_=M<T.value)}if((N||_)&&(R(!!N,z.message,T.message,Gln,qln),!i))return k($[y].message),$}if((u||p)&&!D&&(s5(v)||s&&Array.isArray(v))){const N=XS(u),_=XS(p),z=!gp(N.value)&&v.length>+N.value,T=!gp(_.value)&&v.length<+_.value;if((z||T)&&(R(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&s5(v)){const{value:N,message:_}=XS(f);if(eK(N)&&!v.match(N)&&($[y]={type:fLe,message:_,ref:l,...L(fLe,_)},!i))return k(_),$}if(x){if(Ob(x)){const N=CLe(await x(v,n),S);if(N&&($[y]={...N,...L(Jln,N.message)},!i))return k(N.message),$}else if(wd(x)){let N={};for(const _ in x){if(!L0(N)&&!i)break;const z=CLe(await x[_](v,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!L0(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function dle(e,n){return[...e,...V0(n)]}var ule=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ple(e,n,i){return[...e.slice(0,n),...V0(i),...e.slice(n)]}var hle=(e,n,i)=>Array.isArray(e)?(al(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function mle(e,n){return[...V0(n),...V0(e)]}var gle=(e,n)=>al(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return YI(l).length?l:[]})(e,V0(n).sort(((i,r)=>i-r))),fle=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Md(e,n){const i=Array.isArray(n)?n:I8e(n)?[n]:rvt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=al(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(wd(r)&&L0(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!al(c[d]))return!1;return!0})(r))&&Md(e,i.slice(0,-1)),e}var vLe=(e,n,i)=>(e[n]=i,e);function bl(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(Iy)),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),vee({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Si(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Iy))}},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,v5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!C5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Si(x.errors,r),b=Si(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Ds(i._formState.errors,r,y):Md(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Si(i._fields,r);x&&x._f&&A5e(x,i._formValues,i._options.criteriaMode===GI,i._options.shouldUseNativeValidation,!0).then((y=>!L0(y)&&i._subjects.state.next({errors:avt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&Jq(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Si(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);fle(b,x,y),fle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,fle,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);hle(b,x,y),hle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,hle,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=mle(i._getFieldArray(r),b);i._names.focus=cle(r,0,y),u.current=mle(u.current,b.map(Iy)),f(w),d(w),i._updateFieldArray(r,w,mle,{argA:ule(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=dle(i._getFieldArray(r),b);i._names.focus=cle(r,w.length-1,y),u.current=dle(u.current,b.map(Iy)),f(w),d(w),i._updateFieldArray(r,w,dle,{argA:ule(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=gle(i._getFieldArray(r),x);u.current=gle(u.current,x),f(y),d(y),i._updateFieldArray(r,y,gle,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=V0(Th(y)),C=ple(i._getFieldArray(r),x,w);i._names.focus=cle(r,x,b),u.current=ple(u.current,x,w.map(Iy)),f(C),d(C),i._updateFieldArray(r,C,ple,{argA:x,argB:ule(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Th(y),w=vLe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:Iy())),f(w),d([...w]),i._updateFieldArray(r,w,vLe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=V0(Th(x));u.current=y.map(Iy),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]||Iy()})))),[c,s])}}function xle(){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 tK=e=>gp(e)||!GCt(e);function dv(e,n){if(tK(e)||tK(n))return e===n;if(gE(e)&&gE(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(gE(l)&&gE(c)||wd(l)&&wd(c)||Array.isArray(l)&&Array.isArray(c)?!dv(l,c):l!==c)return!1}}return!0}var cvt=e=>e.type==="select-multiple",yle=e=>Xq(e)&&e.isConnected,dvt=e=>{for(const n in e)if(Ob(e[n]))return!0;return!1};function nK(e,n={}){const i=Array.isArray(e);if(wd(e)||i)for(const r in e)Array.isArray(e[r])||wd(e[r])&&!dvt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},nK(e[r],n[r])):gp(e[r])||(n[r]=!0);return n}function uvt(e,n,i){const r=Array.isArray(e);if(wd(e)||r)for(const s in e)Array.isArray(e[s])||wd(e[s])&&!dvt(e[s])?al(n)||tK(i[s])?i[s]=Array.isArray(e[s])?nK(e[s],[]):{...nK(e[s])}:uvt(e[s],gp(n)?{}:n[s],i[s]):i[s]=!dv(e[s],n[s]);return i}var ble=(e,n)=>uvt(e,n,nK(n)),pvt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>al(e)?e:n?e===""?NaN:e&&+e:i&&s5(e)?new Date(e):r?r(e):e;function wle(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return D8e(n)?n.files:T8e(n)?lvt(e.refs).value:cvt(n)?[...n.selectedOptions].map((({value:i})=>i)):GF(n)?svt(e.refs).value:pvt(al(n.value)?e.ref.value:n.value,e)}var tL=e=>al(e)?e:eK(e)?e.source:wd(e)?eK(e.value)?e.value.source:e.value:e;function ALe(e,n,i){const r=Si(e,i);if(r||I8e(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Si(n,l),d=Si(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 tcn={mode:XCt,reValidateMode:JCt,shouldFocusError:!0};function ncn(e={},n){let i,r={...tcn,...e},s={submitCount:0,isDirty:!1,isLoading:Ob(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(wd(r.defaultValues)||wd(r.values))&&Th(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Th(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:xle(),array:xle(),state:xle()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=C5e(r.mode),b=C5e(r.reValidateMode),w=r.criteriaMode===GI,C=async Y=>{if(g.isValid||Y){const q=r.resolver?L0((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=Si(l,Y);if(ee){const te=Si(d,Y,al(K)?Si(c,Y):K);al(te)||J&&J.defaultChecked||q?Ds(d,Y,q?te:wle(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 oe=dv(Si(c,Y),q);ne=Si(s.dirtyFields,Y),oe?Md(s.dirtyFields,Y):Ds(s.dirtyFields,Y,!0),se.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!oe}if(K){const oe=Si(s.touchedFields,Y);oe||(Ds(s.touchedFields,Y,K),se.touchedFields=s.touchedFields,te=te||g.touchedFields&&oe!==K)}return te&&ee&&f.state.next(se),te?se:{}},$=(Y,q,K,J)=>{const ee=Si(s.errors,Y),te=g.isValid&&iI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>se=>{clearTimeout(h),h=setTimeout(ne,se)})((()=>((ne,se)=>{Ds(s.errors,ne,se),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Ds(s.errors,Y,K):Md(s.errors,Y)),(K?!dv(ee,K):ee)||!L0(J)||te){const ne={...J,...te&&iI(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=Si(K,ne);se&&Ds(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),oe=await A5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(oe[te.name]&&(K.valid=!1,q))break;!q&&(Si(oe,te.name)?se?avt(s.errors,oe,te.name):Ds(s.errors,te.name,oe[te.name]):Md(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Ds(d,Y,q),!dv(T(),c)),D=(Y,q,K)=>ovt(Y,p,{...u.mount?d:al(q)?c:s5(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=Si(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Ds(d,Y,pvt(q,te)),ee=Xq(te.ref)&&gp(q)?"":q,cvt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?GF(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)):D8e(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)},R=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=Si(l,te);!p.array.has(Y)&&tK(ee)&&(!ne||ne._f)||gE(ee)?L(te,ee,K):R(te,ee,K)}},N=(Y,q,K={})=>{const J=Si(l,Y),ee=p.array.has(Y),te=Th(q);Ds(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:ble(c,d),isDirty:E(Y,te)})):!J||J._f||gp(te)?L(Y,te,K):R(Y,te,K),v5e(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=Si(l,K);if(ee){let te,ne;const se=q.type?wle(ee._f):qCt(Y),oe=Y.type===ZCt||Y.type===Uln,ce=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!Si(s.errors,K)&&!ee._f.deps||((ie,le,de,ge,he)=>!he.isOnAll&&(!de&&he.isOnTouch?!(le||ie):(de?ge.isOnBlur:he.isOnBlur)?!ie:!(de?ge.isOnChange:he.isOnChange)||ie))(oe,Si(s.touchedFields,K),s.isSubmitted,b,y),fe=v5e(K,p,oe);Ds(d,K,se),oe?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,se,oe,!1),re=!L0(ue)||fe;if(!oe&&f.values.next({name:K,type:Y.type,values:{...d}}),ce)return g.isValid&&C(),re&&f.state.next({name:K,...fe?{}:ue});if(!oe&&fe&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),le=ALe(s.errors,l,K),de=ALe(ie,l,le.name||K);te=de.error,K=de.name,ne=L0(ie)}else te=(await A5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(se)||se===Si(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=V0(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:se}=await j();if(ne)for(const oe of ne){const ce=Si(se,oe);ce?Ds(s.errors,oe,ce):Md(s.errors,oe)}else s.errors=se;return se})(al(Y)?Y:ee);K=L0(te),J=Y?!ee.some((ne=>Si(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=Si(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({...!s5(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&Jq(l,(te=>te&&Si(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return al(Y)?q:s5(Y)?Si(q,Y):Y.map((K=>Si(q,K)))},M=(Y,q)=>({invalid:!!Si((q||s).errors,Y),isDirty:!!Si((q||s).dirtyFields,Y),isTouched:!!Si((q||s).touchedFields,Y),error:Si((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?V0(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Md(l,K),Md(d,K)),!q.keepError&&Md(s.errors,K),!q.keepDirty&&Md(s.dirtyFields,K),!q.keepTouched&&Md(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Md(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=Si(l,Y);const J=iI(q.disabled);return Ds(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Ds(d,Y,q.disabled?void 0:Si(d,Y,wle(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:tL(q.min),max:tL(q.max),minLength:tL(q.minLength),maxLength:tL(q.maxLength),pattern:tL(q.pattern)}:{},name:Y,onChange:_,onBlur:_,ref:ee=>{if(ee){H(Y,q),K=Si(l,Y);const te=al(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(oe=>T8e(oe)||GF(oe))(te),se=K._f.refs||[];if(ne?se.find((oe=>oe===te)):te===K._f.ref)return;Ds(l,Y,{_f:{...K._f,...ne?{refs:[...se.filter(yle),te,...Array.isArray(Si(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=Si(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!KCt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},V=()=>r.shouldFocusError&&Jq(l,(Y=>Y&&Si(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Th(K),ee=Y&&!L0(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)Si(s.dirtyFields,te)?Ds(ee,te,Si(d,te)):N(te,Si(ee,te));else{if(E8e&&al(Y))for(const te of p.mount){const ne=Si(l,te);if(ne&&ne._f){const se=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Xq(se)){const oe=se.closest("form");if(oe){oe.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Th(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||dv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?ble(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(Ob(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=Si(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!yle(K))):!yle(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(Si(l,Y))){const ne=K(Si(l,Y),J.argA,J.argB);ee&&Ds(l,Y,ne)}if(te&&Array.isArray(Si(s.errors,Y))){const ne=K(Si(s.errors,Y),J.argA,J.argB);ee&&Ds(s.errors,Y,ne),((se,oe)=>{!YI(Si(se,oe)).length&&Md(se,oe)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(Si(s.touchedFields,Y))){const ne=K(Si(s.touchedFields,Y),J.argA,J.argB);ee&&Ds(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=ble(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Ds(d,Y,q)},_getFieldArray:Y=>YI(Si(u.mount?d:c,Y,e.shouldUnregister?Si(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>Ob(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=Th(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);Md(s.errors,"root"),L0(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:L0(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>Ob(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={})=>{Si(l,Y)&&(al(q.defaultValue)?N(Y,Si(c,Y)):(N(Y,q.defaultValue),Ds(c,Y,q.defaultValue)),q.keepTouched||Md(s.touchedFields,Y),q.keepDirty||(Md(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,Si(c,Y)):E()),q.keepError||(Md(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&V0(Y).forEach((q=>Md(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(Si(l,Y,{_f:{}})._f||{}).ref;Ds(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=Si(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 jn(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:Ob(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ob(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...ncn(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,vee({subject:s._subjects.state,next:l=>{nvt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!dv(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=tvt(i,s),n.current}let h5;h5=typeof window<"u"?window:typeof self<"u"?self:d5e;let S5e=null,k5e=null;const Cle=h5.clearTimeout,SLe=h5.setTimeout,vle=h5.cancelAnimationFrame||h5.mozCancelAnimationFrame||h5.webkitCancelAnimationFrame,kLe=h5.requestAnimationFrame||h5.mozRequestAnimationFrame||h5.webkitRequestAnimationFrame;function icn(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__&&S5e(this.__resizeRAF__),this.__resizeRAF__=k5e((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=h5.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{}}}}}vle==null||kLe==null?(S5e=Cle,k5e=function(e){return SLe(e,20)}):(S5e=function([e,n]){vle(e),Cle(n)},k5e=function(e){const n=kLe((function(){Cle(i),e()})),i=SLe((function(){vle(n),e()}),20);return[n,i]});let Eo=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=icn(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 q0(e){return q0=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},q0(e)}function j5e(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 L8e(e,n){if(e){if(typeof e=="string")return j5e(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)?j5e(e,n):void 0}}function jLe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=L8e(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 Ii(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iK(e,n){return iK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},iK(e,n)}function ka(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&&iK(e,n)}function oK(e){return oK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oK(e)}function hvt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(hvt=function(){return!!e})()}function ja(e){var n=hvt();return function(){var i,r=oK(e);if(n){var s=oK(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(q0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ii(l)})(this,i)}}function la(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function mvt(e){var n=(function(i,r){if(q0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(q0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return q0(n)=="symbol"?n:n+""}function $Le(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,mvt(r.key),r)}}function ca(e,n,i){return n&&$Le(e.prototype,n),i&&$Le(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function wi(e,n,i){return(n=mvt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function ELe(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 xo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?ELe(Object(i),!0).forEach((function(r){wi(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ELe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Qd(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)||L8e(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 rK(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 p3(e,n){if(e==null)return{};var i,r,s=rK(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 So(){return So=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},So.apply(null,arguments)}function oI(e){return(function(n){if(Array.isArray(n))return j5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||L8e(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -10498,7 +10498,7 @@ To reactivate your account, please settle the outstanding balance. Contact suppo
|
|
|
10498
10498
|
padding-top: ${e=>Gh.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
10499
10499
|
`,rhi=a.div``,ahi=a((e=>m.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"}))))`
|
|
10500
10500
|
transform: scale(1, 0.9);
|
|
10501
|
-
`,shi=a(Zs)``,UUe="application/pdf",eMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],lhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function chi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function dhi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===UUe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([bd((()=>import("./pdf-lib-
|
|
10501
|
+
`,shi=a(Zs)``,UUe="application/pdf",eMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],lhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function chi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function dhi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===UUe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([bd((()=>import("./pdf-lib-DHIhGaxw.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),bd((()=>import("./pdf-BJPlJ9jJ.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await chi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),S=v.scale(1);f.addPage([S.width,S.height]).drawImage(v,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:UUe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(eMt.includes(s.type)===!1)return s;const c=await Au(s,lhi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const uhi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Q("input-file-element-mobile",i),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),Oz=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=Twe($Tt),[c]=Jr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Ms,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},SCe=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));Xwt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${Jwt}/pdf.worker.mjs`;const{common:WUe}=ae.getLocalizedStrings(),QUe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",YUe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},GUe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,phi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function qUe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function hR(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=me(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(YUe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(YUe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=GUe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,R)=>{const N=L.getBoundingClientRect(),_=R!=null?R.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>_.top&&N.top<_.bottom&&N.right>_.left&&N.left<_.right})(D,E))return;phi(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(KUe,{children:j.flatMap(((I,E)=>{const D=qUe(I.polygon,I.pageWidth,I.pageHeight),L=QUe(I,e.selectedStatementTransactionId,d);return t.jsx(ZUe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(Bp,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Jv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(hhi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(mhi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(ghi,{children:[t.jsx(fhi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(xhi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(He,{enterDelay:600,display:"flex",title:WUe.texts.replace,placement:"top-end",children:t.jsx(yhi,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(whi,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(He,{enterDelay:600,display:"flex",title:WUe.delete,placement:"top",children:t.jsx(bhi,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(khi,{children:t.jsxs(jhi,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx($hi,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(KUe,{children:$.flatMap(((j,I)=>{const E=qUe(j.polygon,j.pageWidth,j.pageHeight),D=QUe(j,e.selectedStatementTransactionId,d);return t.jsx(ZUe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs(f5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(Ahi,{children:t.jsx(Jn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(si,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(Chi,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Shi,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(x5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?GUe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(vhi,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const hhi=a.div`
|
|
10502
10502
|
max-height: ${e=>e.maxHeight===!0?"650px":"auto"};
|
|
10503
10503
|
display: flex;
|
|
10504
10504
|
flex-direction: column;
|
|
@@ -23823,7 +23823,7 @@ to {
|
|
|
23823
23823
|
${({isMenuVisible:e})=>e===!1?Ee`
|
|
23824
23824
|
display: none;
|
|
23825
23825
|
`:null};
|
|
23826
|
-
`,Cve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),bKe=m.lazy((()=>bd((()=>import("./index-
|
|
23826
|
+
`,Cve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),bKe=m.lazy((()=>bd((()=>import("./index-yQhQQ1oc.js")),__vite__mapDeps([3,0,1,2]))));function vve({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=me(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?Aa.createPortal(t.jsx(zVi,{windowSize:b,role:"presentation",children:t.jsx(si,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(NVi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(_Vi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(RVi,{src:h,alt:"Video thumbnail"}),t.jsx(OVi,{onClick:()=>{C(!0),y?.()},children:t.jsx(FVi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(bKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(bKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:v})})}const MVi=pi`
|
|
23827
23827
|
0% {
|
|
23828
23828
|
transform: rotate(0deg);
|
|
23829
23829
|
}
|
|
@@ -86449,7 +86449,7 @@ ${sM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
|
|
|
86449
86449
|
color: ${P.tagWarningColorLight};
|
|
86450
86450
|
`,Brs=a(bt)`
|
|
86451
86451
|
color: ${P.tagWarningColorLight};
|
|
86452
|
-
`,{expenseAutomation:{accountRecon:{statementProcessing:A0}},common:MY}=ae.getLocalizedStrings(),Dx="statement-processing-page";function Prs(){const[e]=Jr("AiStar");return t.jsx(vg,{$slotSize:o.sp4,children:e!=null?t.jsx(oT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Vrs,{})})}function Mrs({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=A0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{v(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[R,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(atn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const le=ie.signedUrl.trim();if(le!=="")try{const de=await fetch(le);return de.ok?(await(await bd((()=>import("./pdf-
|
|
86452
|
+
`,{expenseAutomation:{accountRecon:{statementProcessing:A0}},common:MY}=ae.getLocalizedStrings(),Dx="statement-processing-page";function Prs(){const[e]=Jr("AiStar");return t.jsx(vg,{$slotSize:o.sp4,children:e!=null?t.jsx(oT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Vrs,{})})}function Mrs({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=A0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{v(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[R,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(atn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const le=ie.signedUrl.trim();if(le!=="")try{const de=await fetch(le);return de.ok?(await(await bd((()=>import("./pdf-BJPlJ9jJ.js").then((ge=>ge.i))),__vite__mapDeps([0,1,2])).then((ge=>ge.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{re||(L(ie),N(!0))})),()=>{re=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!R||_!=null||z((function(re){return re==null||re<=0?125:re<=2?65:re<=4?120:re<=8?160:re<=12?190:200})(D))}),[R,_,D]);const U=_??125,Y=h9e(h),q=1e3*U,K=Math.floor(q/Math.max(Y,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const le=(function(de,ge,he){const ye=h9e(he);return ge*(Math.max(0,Math.min(de,he)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*le,H.current=!0}const re=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};re();const ie=setInterval(re,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,ee=_!=null?(function(re,ie,le){return ie?null:re<=0?{label:le.takingLongerThanExpected,showClock:!1}:re<60?{label:le.timeRemainingSeconds(re),showClock:!0}:{label:le.timeRemainingMinutes(Math.ceil(re/60)),showClock:!0}})(J,b>=h,A0):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const re=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(re)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const re=setTimeout(u,1e3);return()=>clearTimeout(re)}),[b,f,u,h]);const ne=f===!0&&b>=g,se=m.useCallback((()=>{const re=O.current??Date.now();d({completedSteps:b,startedAtMs:re,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const re=requestAnimationFrame((()=>{const ie=V.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(re)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const re=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(re);const ie=(b+1)/h*100,le=te?300:K,de=performance.now();let ge=0;const he=ye=>{const we=Math.min((ye-de)/le,1);I(re+(ie-re)*we),we<1&&(ge=requestAnimationFrame(he))};return ge=requestAnimationFrame(he),()=>cancelAnimationFrame(ge)}),[b,s,f,g,te,K,h]);const oe=Math.min(100,Math.round(j)),ce=b>=h?h-1:Math.min(b,A0.stepSubtitles.length-1),fe=r?.accounts.length??0,ue=ne===!0&&fe>0?r?.accountType==="bank"?A0.accountMapping.headerSubtitleAccounts(fe):A0.accountMapping.headerSubtitle(fe):A0.stepSubtitles[ce];return t.jsxs(t.Fragment,{children:[t.jsxs(Ors,{ref:V,"data-testid":Q(Dx,"container"),children:[t.jsxs(Rrs,{"data-testid":Q(Dx,"header"),children:[t.jsxs(zrs,{children:[t.jsxs(Nrs,{children:[t.jsxs(_rs,{children:[t.jsx(Prs,{}),t.jsx(Hrs,{children:A0.headerTitle})]}),ne===!0?t.jsxs(S6t,{"data-testid":Q(Dx,"action-needed"),children:[t.jsx(Yrs,{}),t.jsx(Grs,{children:A0.actionNeeded})]}):ee!=null?t.jsxs(S6t,{"data-testid":Q(Dx,"time-remaining"),children:[ee.showClock?t.jsx(Wrs,{}):null,t.jsx(Qrs,{children:ee.label})]}):null]}),t.jsx(Urs,{children:ue})]}),t.jsxs(qrs,{children:[t.jsxs(Krs,{children:[t.jsx(Zrs,{children:A0.stepProgressLabel(b,h)}),t.jsx(Jrs,{children:`${oe}%`})]}),t.jsx(Xrs,{children:t.jsx(eas,{style:{width:`${j}%`}})})]})]}),t.jsx(Frs,{"data-testid":Q(Dx,"steps"),children:A0.steps.map(((re,ie)=>{const le=ie+1,de=ie===A0.steps.length-1,ge=ne===!0&&y!==!0&&de===!0,he=f===!0&&y===!0&&de===!0&&b>=g,ye=ge!==!0&&he!==!0&&le<=b,we=he===!0||ge!==!0&&le===b+1;return t.jsxs(tas,{"data-testid":Q(Dx,`step-${le}`),children:[t.jsxs(nas,{children:[t.jsx(oas,{$isDone:ye,$isInProgress:we,children:le}),de?null:t.jsx(ias,{$isDone:ye})]}),t.jsx(uas,{children:re}),t.jsx(pas,{children:ge===!0?t.jsx(las,{"data-testid":Q(Dx,"action-required"),children:t.jsx(cas,{children:MY.texts.actionRequired})}):ye?t.jsx(ras,{}):we?t.jsxs(aas,{children:[t.jsx(das,{}),t.jsx(sas,{children:MY.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},le)}))}),ne===!0&&r!=null?t.jsx(urs,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(Zn,{formId:Dx,showCancel:!0,cancelBtn:{label:A0.continueInBackground,onClick:se,style:{width:"195px"}},primaryBtn:{label:MY.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(Zn,{formId:Dx,showCancel:!0,cancelBtn:{label:MY.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:A0.continueInBackground,onClick:se,variant:"secondary",style:{width:"195px"}}})]})}const Ors=a.div`
|
|
86453
86453
|
flex: 1;
|
|
86454
86454
|
display: flex;
|
|
86455
86455
|
flex-direction: column;
|
|
@@ -91281,7 +91281,7 @@ ${sM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
|
|
|
91281
91281
|
padding: ${o.sp3} ${o.sp0};
|
|
91282
91282
|
`,t8t=a(ct)`
|
|
91283
91283
|
min-width: 140px;
|
|
91284
|
-
`,HF=O8t(Isn()),efs=["sandbox","production"],tfs=["development","staging","production"],nfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],FI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",mke="https://zeni-webapp-dev.uc.r.appspot.com",Fl=(e=>ey(e,nfs))("DEV"),N8s=(e=>ey(e,efs))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Fl)),n8t=(e=>ey(e,tfs))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Fl)),ifs=(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"}})(Fl);function nnn(e,n){return HF.AES.decrypt(e,n).toString(HF.enc.Utf8)}const inn="ZENI-WEB-APP-",gke=Fl==="DEV"||Fl==="QA"?.2:.8,onn=gke,Vs={sentryDsn:"",sentryTraceSamplingRate:gke,sentryProfileSamplingRate:onn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let O5,tz;function ofs(){return O5?.aiCfoMicroServiceBaseUrl!=null?`${O5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function rnn(e){Vs.sentryDsn=e.keys.SENTRY_DSN,Vs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):gke,Vs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):onn,Vs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Vs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Vs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Vs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Vs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Vs.pusherCluster=e.keys.PUSHER_CLUSTER,Vs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Vs.appUrl=e.keys.WEB_ENDPOINT,Vs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Vs.cardVaultId=e.keys.UNIT_VAULT_ID,Vs.stripeKey=e.keys.STRIPE_KEY,Vs.qboRedirectionUrl=e.keys.QBO_URL,Vs.mixpanelUrl=e.keys.MIXPANEL_URL,Vs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,tz=e.externalEndPoints,O5=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)}})(O5,tz)}async function i8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${mke}/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 o8t=!1;function mE(){o8t||(Xm.init("63d3a2406505a5737a2b4debdb513f20",{api_host:tz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),o8t=!0)}const rfs=new Set(Array.from(Oi.EVENTS_WITHOUT_SUPER_PROPERTIES));let r8t=!1,a8t=!1;function j9e(){if(r8t)return;r8t=!0,mE();const e=Oi.extractUtmParamsFromUrl();Object.keys(e).length>0&&Xm.register(e),FI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const afs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function sfs(){const e=(function(){return Xm?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||afs.has(i)));for(const i of n)Xm.unregister(i);FI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function s8t(){a8t||(a8t=!0,sfs())}class tI{identify(n,i){if(mE(),this.#t=n,n!=null&&i!=null&&(tI.#e==null||!Yrn({userId:n,traits:i},tI.#e))){const{$email:r,...s}={...i};Xm.identify(n),r&&r!=null&&Xm.people.set_once({$email:r}),Xm.people.set(s),tI.#e={userId:n,traits:i},FI()&&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){mE();const r=rfs.has(n);if(this.#t!=null||r){if(j9e(),this.#t!=null){const s={distinct_id:this.#t,...i};Xm.track(n,s)}else Xm.track(n,i);if(s8t(),FI()){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){mE(),j9e(),Xm.track(n,i),s8t(),FI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){mE(),Xm.alias(n,i)}reset(){mE(),Xm.identify(void 0),this.#t=void 0,tI.#e=void 0}static#e;#t}const $9e=new tI,ann=new Oi.Analytics($9e);ann.trackWithoutUserId=$9e.trackWithoutUserId.bind($9e);const _0=ann,lfs="openAiCfoScope",E9e="openAiCfoScopeOnDashboard";function _8s(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[E9e]:!0,...r}})}function V8s(e){const n=dee(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 fke(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 snn(e,n){return(e||n?.chatSessionSummary)??null}const lnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",qX="zeni-ai-cfo-upload-promo-storage-changed",Er=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(qX)),!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(qX))}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 HF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=HF.AES.decrypt(e,n).toString(HF.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:xn(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=lnn;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]},VD=(e,n)=>{const i=[...e??[]];return i.push(n),i},H8s=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},U8s=({state:e})=>Er.isSignedIn()===!0?en.jsx($in,{}):en.jsx(N8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),cfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function cnn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of cfs)delete n[i];return n}function dfs(){const e=Sp(),n=Dg(),i=XX(),{tenantEmailDomain:r}=_8t(),[s,l]=m.useState(!1),c=Rr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Dp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Rr((v=>dee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[E9e]!==!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:{...cnn(v),[E9e]: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=VD(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=Vt(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=VD(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(Owt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Btn,{open:s,onClose:w,children:en.jsxs(Ltn,{children:[s&&!h?en.jsx(lve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Rxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const I9e=m.createContext(void 0);function xke(){const e=m.useContext(I9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const yke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],bke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],dnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],unn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],pnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],hnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],mnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],gnn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],fnn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function xnn(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 ynn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],bnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],wnn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],ufs=[...dnn,...yke,...bke,"/: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",...ynn,...bnn,...wnn,...unn,...pnn,...hnn,...mnn,...gnn,...fnn];function Cnn(){const{pathname:e}=Dg(),n=e??"";return ufs.some((i=>P9e(i,n)!=null))||xnn(e)}function zd(e){const{pathname:n}=Dg(),i=n??"";return e.some((r=>P9e(r,i)!=null))}const W8s=27.22,vnn=m.createContext(null),Ann={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function pfs({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 en.jsx(vnn.Provider,{value:c,children:e})}function wke(){const e=m.useContext(vnn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function hfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(ean(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Zrn(c);u.length!==0&&(e(Jrn(u)),e(Xrn({sourceChatSessionId:n})),n!=null&&e(Yke({chatSessionId:n,id:eje(),kind:"creating_cards",createdAt:xn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Krn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Kta(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,...qta(v)}}const y=rX(p.vendorPolicy,"allow"),b=rX(p.vendorPolicy,"block"),w=aX(p.categoryPolicy,"allow"),C=aX(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:sX(p.limits,mSe),spendLimits:{transaction:sX(p.limits,hSe)}}})({values:c});e(qrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(Yke({chatSessionId:n,id:eje(),kind:"creating_policy",createdAt:xn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Grn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(Fwt())}:void 0}}const mfs=e=>dan(e,!1),gfs=e=>can(e.name,!1);function ffs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=tan(r),l=nan(r),c=ian(r),{creditAccount:d}=oan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(mfs),cardPolicyVendorSearchOptions:l.map(gfs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:lan(r),cardPolicyUploadedFileName:san(r),cardPolicyFormDraft:aan(e.createCardPolicyState),cardsCreationFormDraft:ran(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const xfs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=pan(e.chargeCardState,i);if(r==null)return;const s=han(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}}},yfs=e=>n=>{const i=uan(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 bfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&O5?.aiCfoMicroServiceBaseUrl!=null?`${O5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function wfs({isHydrationEnabled:e=!0}={}){const n=Sp(),{useFeatureGate:i}=hs(),{isFeatureEnabled:r}=i(gl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(gl.isCardPolicyEnabled),l=Rr((x=>Dp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Rr((x=>{const y=Dp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),Wq),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(man()),n(Gke()),n(gan("cardHolderCandidate",!1)),n(fan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(xan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(Fwt())}),[n,l]);const h=m.useMemo((()=>Esn((x=>{n(Gke(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>yan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Wq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Snn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],knn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Cfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],vfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Afs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Sfs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],kfs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],jnn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],$nn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],jfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Cke(e){const n=Fh(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":jfs.includes(r)?r:null}const $fs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Efs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function vke(e){const n=Fh(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 Enn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Inn(e,n,i){return Enn(e,n,(r=>!i.has(r)))}function Dnn(e){return Inn(e,"bills",$fs)}function Tnn(e){return Inn(e,"reimbursements",Efs)}function Ake(e){return Enn(e,"tasks",(n=>n==="group"))}const Ifs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Dfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Ske(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return Ifs.has(i)?"checking":"checking_details"}function kke(e){const n=Fh(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 Dfs.has(i)?"cards":"cards_detail"}function Lnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Bnn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Pnn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Mnn(e){const n=Fh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function I2(e,n){return n.some((i=>P9e(i,e)!=null))}function Tfs(e){return I2(e,yke)?"reports":I2(e,Snn)?"ap_aging":I2(e,knn)?"ar_aging":vke(e)!=null?"vendors_tab":I2(e,bke)?"forecast":Cke(e)!=null?"month_end_close_review":I2(e,jnn)?"cash_balance":I2(e,$nn)?"card_balance":Ake(e)?"task_checklist":Lnn(e)!=null?"transaction_detail":Bnn(e)!=null?"performance":Pnn(e)!=null?"bills_detail":Mnn(e)!=null?"reimbursement_detail":Dnn(e)?"bills_list":Tnn(e)?"reimbursement_list":I2(e,Cfs)?"cash_in_cash_out":I2(e,vfs)?"operating_expenses":I2(e,Afs)?"revenue":I2(e,Sfs)?"net_burn_or_income":I2(e,kfs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Ske(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":kke(e)!=null?"cards":(function(n){return Fh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Fh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Fh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Onn(e,n){switch(Tfs(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 vke(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Cke(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 Ske(e);case"treasury":return"treasury";case"cards":return kke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Fnn(){const{pathname:e}=Dg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Onn(n,{selectedReportId:i})),[n,i])}function jke(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoEnabled),i=Rr((s=>Dp(s))),r=Er.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Lfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=jke();return n&&i}const Rnn=m.createContext(void 0),Bfs=({children:e})=>{const{tenantEmailDomain:n}=_8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=uee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(Rnn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Pfs=()=>{const e=m.useContext(Rnn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function znn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Nnn(e){const{areTenantIdsInSync:n}=Pfs(),i=jke(),r=Lfs();return n&&e&&r&&i}function Q8s(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=V8t(),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=e8e(s.getState(),d)?.fetchState;znn(u,c)&&r(zwt({pageContext:d}))}}),[i,r,n,s])}function _nn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=V8t(),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=e8e(c.getState(),i)?.fetchState;znn(g,p||h)&&l(zwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Nnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Y8s(e){_nn({pageContext:Fnn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Mfs,sampleQuestion2:Ofs,sampleQuestion3:Ffs}}=ae.getLocalizedStrings().aiCfo,Rfs=[Mfs,Ofs,Ffs];function zfs(e,n=!1){_nn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Nnn(!0),r=Rr((g=>e!=null&&e!==""?e8e(g,e):void 0)),{useDynamicConfig:s}=hs(),{configValue:l}=s(N5.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:[...Rfs]),[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 Nfs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Er.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(qX,l);const c=d=>{d.key===lnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(qX,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Vnn=m.createContext(void 0),KX=()=>m.useContext(Vnn),l8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},_fs=e=>{const n=Er.isSignedIn(),i=Er.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Rr((h=>Dp(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){l8t(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 Aan(Vs.pusherClientSecret,{cluster:Vs.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&&RI(C,u),f!=null&&RI(C,f),p!=null&&RI(C,p)))},w=()=>{const C=uee();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),Vwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),l8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Vnn.Provider,{value:c,children:e.children})};function RI(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 Vfs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Hnn=e=>n=>{const i=KX(),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]=Vfs(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]),en.jsx(e,{...n})},G8s=210;function q8s(e){return e?.data.unread!=null&&e?.mode!=null}const $ke=e=>dsi.includes(e),Eke=e=>oPt.includes(e),Ike=e=>usi.includes(e),Hfs={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"},Ufs=e=>{if(Ike(e)){const n=Hfs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return $ke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Ave(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Eke(e)?`ai-cfo/${e}`:e},Wfs=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],K8s=e=>{if($ke(e)||Eke(e)||Ike(e))return!0;const n=Ufs(e).split("/")[0];return!Wfs.includes(n)},c8t=(e,n)=>e.includes(n),d8t=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(c8t(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&&Ave(s)?csi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of oPt)if(c8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function Qfs(e){let n=d8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=d8t(i[r])}return n??"home"}function Z8s(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function J8s(e){return e.pathname.split("/")[2]==="invoicing"}function X8s(e){return e.pathname.includes("ai-cfo")}function ews(e,n){const i=Qfs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Ike(i)?`invoicing/${i.replace("invoicing_","")}`:$ke(i)?"settings/my_profile":Eke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Ave(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Yfs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Hwt(r.tenantId)),e(Uwt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Gfs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=XX(),p=Dg(),{setLoading:h}=wke(),g=Er.getSignedInUser(),f=oz(g),{useDynamicConfig:x}=hs(),{configValue:y}=x(N5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Rr((O=>O.tenantState)),S=Rr((O=>v.fetchState==="Completed"?San(O):[])),k=Rr((O=>e?.tenantId!=null?kan(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(h5e());const H=VD(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(h5e()),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(Rwt({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]),R=m.useCallback((()=>{I();const O=VD(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(Ann.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Yfs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=en.jsx(Vc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:en.jsxs(qfs,{children:[en.jsxs(Kfs,{children:[en.jsx(vRt,{}),en.jsx(FRt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(Zfs,{children:en.jsx(kRt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(Jfs,{children:[g!=null&&en.jsx(Qz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:R,onMyProfileClick:N,onCockpitClick:_}),en.jsx(Xfs,{onClick:z,children:en.jsx(e4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const qfs=a.div`
|
|
91284
|
+
`,HF=O8t(Isn()),efs=["sandbox","production"],tfs=["development","staging","production"],nfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],FI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",mke="https://zeni-webapp-qa.uc.r.appspot.com",Fl=(e=>ey(e,nfs))("QA"),N8s=(e=>ey(e,efs))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Fl)),n8t=(e=>ey(e,tfs))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Fl)),ifs=(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"}})(Fl);function nnn(e,n){return HF.AES.decrypt(e,n).toString(HF.enc.Utf8)}const inn="ZENI-WEB-APP-",gke=Fl==="DEV"||Fl==="QA"?.2:.8,onn=gke,Vs={sentryDsn:"",sentryTraceSamplingRate:gke,sentryProfileSamplingRate:onn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let O5,tz;function ofs(){return O5?.aiCfoMicroServiceBaseUrl!=null?`${O5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function rnn(e){Vs.sentryDsn=e.keys.SENTRY_DSN,Vs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):gke,Vs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):onn,Vs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Vs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Vs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Vs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Vs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Vs.pusherCluster=e.keys.PUSHER_CLUSTER,Vs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Vs.appUrl=e.keys.WEB_ENDPOINT,Vs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Vs.cardVaultId=e.keys.UNIT_VAULT_ID,Vs.stripeKey=e.keys.STRIPE_KEY,Vs.qboRedirectionUrl=e.keys.QBO_URL,Vs.mixpanelUrl=e.keys.MIXPANEL_URL,Vs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,tz=e.externalEndPoints,O5=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)}})(O5,tz)}async function i8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${mke}/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 o8t=!1;function mE(){o8t||(Xm.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:tz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),o8t=!0)}const rfs=new Set(Array.from(Oi.EVENTS_WITHOUT_SUPER_PROPERTIES));let r8t=!1,a8t=!1;function j9e(){if(r8t)return;r8t=!0,mE();const e=Oi.extractUtmParamsFromUrl();Object.keys(e).length>0&&Xm.register(e),FI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const afs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function sfs(){const e=(function(){return Xm?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||afs.has(i)));for(const i of n)Xm.unregister(i);FI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function s8t(){a8t||(a8t=!0,sfs())}class tI{identify(n,i){if(mE(),this.#t=n,n!=null&&i!=null&&(tI.#e==null||!Yrn({userId:n,traits:i},tI.#e))){const{$email:r,...s}={...i};Xm.identify(n),r&&r!=null&&Xm.people.set_once({$email:r}),Xm.people.set(s),tI.#e={userId:n,traits:i},FI()&&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){mE();const r=rfs.has(n);if(this.#t!=null||r){if(j9e(),this.#t!=null){const s={distinct_id:this.#t,...i};Xm.track(n,s)}else Xm.track(n,i);if(s8t(),FI()){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){mE(),j9e(),Xm.track(n,i),s8t(),FI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){mE(),Xm.alias(n,i)}reset(){mE(),Xm.identify(void 0),this.#t=void 0,tI.#e=void 0}static#e;#t}const $9e=new tI,ann=new Oi.Analytics($9e);ann.trackWithoutUserId=$9e.trackWithoutUserId.bind($9e);const _0=ann,lfs="openAiCfoScope",E9e="openAiCfoScopeOnDashboard";function _8s(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[E9e]:!0,...r}})}function V8s(e){const n=dee(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 fke(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 snn(e,n){return(e||n?.chatSessionSummary)??null}const lnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",qX="zeni-ai-cfo-upload-promo-storage-changed",Er=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(qX)),!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(qX))}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 HF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=HF.AES.decrypt(e,n).toString(HF.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:xn(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=lnn;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]},VD=(e,n)=>{const i=[...e??[]];return i.push(n),i},H8s=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},U8s=({state:e})=>Er.isSignedIn()===!0?en.jsx($in,{}):en.jsx(N8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),cfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function cnn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of cfs)delete n[i];return n}function dfs(){const e=Sp(),n=Dg(),i=XX(),{tenantEmailDomain:r}=_8t(),[s,l]=m.useState(!1),c=Rr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Dp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Rr((v=>dee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[E9e]!==!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:{...cnn(v),[E9e]: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=VD(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=Vt(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=VD(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(Owt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Btn,{open:s,onClose:w,children:en.jsxs(Ltn,{children:[s&&!h?en.jsx(lve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Rxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const I9e=m.createContext(void 0);function xke(){const e=m.useContext(I9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const yke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],bke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],dnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],unn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],pnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],hnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],mnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],gnn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],fnn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function xnn(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 ynn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],bnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],wnn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],ufs=[...dnn,...yke,...bke,"/: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",...ynn,...bnn,...wnn,...unn,...pnn,...hnn,...mnn,...gnn,...fnn];function Cnn(){const{pathname:e}=Dg(),n=e??"";return ufs.some((i=>P9e(i,n)!=null))||xnn(e)}function zd(e){const{pathname:n}=Dg(),i=n??"";return e.some((r=>P9e(r,i)!=null))}const W8s=27.22,vnn=m.createContext(null),Ann={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function pfs({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 en.jsx(vnn.Provider,{value:c,children:e})}function wke(){const e=m.useContext(vnn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function hfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(ean(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Zrn(c);u.length!==0&&(e(Jrn(u)),e(Xrn({sourceChatSessionId:n})),n!=null&&e(Yke({chatSessionId:n,id:eje(),kind:"creating_cards",createdAt:xn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Krn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Kta(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,...qta(v)}}const y=rX(p.vendorPolicy,"allow"),b=rX(p.vendorPolicy,"block"),w=aX(p.categoryPolicy,"allow"),C=aX(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:sX(p.limits,mSe),spendLimits:{transaction:sX(p.limits,hSe)}}})({values:c});e(qrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(Yke({chatSessionId:n,id:eje(),kind:"creating_policy",createdAt:xn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Grn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(Fwt())}:void 0}}const mfs=e=>dan(e,!1),gfs=e=>can(e.name,!1);function ffs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=tan(r),l=nan(r),c=ian(r),{creditAccount:d}=oan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(mfs),cardPolicyVendorSearchOptions:l.map(gfs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:lan(r),cardPolicyUploadedFileName:san(r),cardPolicyFormDraft:aan(e.createCardPolicyState),cardsCreationFormDraft:ran(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const xfs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=pan(e.chargeCardState,i);if(r==null)return;const s=han(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}}},yfs=e=>n=>{const i=uan(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 bfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&O5?.aiCfoMicroServiceBaseUrl!=null?`${O5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function wfs({isHydrationEnabled:e=!0}={}){const n=Sp(),{useFeatureGate:i}=hs(),{isFeatureEnabled:r}=i(gl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(gl.isCardPolicyEnabled),l=Rr((x=>Dp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Rr((x=>{const y=Dp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),Wq),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(man()),n(Gke()),n(gan("cardHolderCandidate",!1)),n(fan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(xan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(Fwt())}),[n,l]);const h=m.useMemo((()=>Esn((x=>{n(Gke(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>yan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Wq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Snn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],knn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Cfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],vfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Afs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Sfs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],kfs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],jnn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],$nn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],jfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Cke(e){const n=Fh(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":jfs.includes(r)?r:null}const $fs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Efs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function vke(e){const n=Fh(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 Enn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Inn(e,n,i){return Enn(e,n,(r=>!i.has(r)))}function Dnn(e){return Inn(e,"bills",$fs)}function Tnn(e){return Inn(e,"reimbursements",Efs)}function Ake(e){return Enn(e,"tasks",(n=>n==="group"))}const Ifs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Dfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Ske(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return Ifs.has(i)?"checking":"checking_details"}function kke(e){const n=Fh(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 Dfs.has(i)?"cards":"cards_detail"}function Lnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Bnn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Pnn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Mnn(e){const n=Fh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function I2(e,n){return n.some((i=>P9e(i,e)!=null))}function Tfs(e){return I2(e,yke)?"reports":I2(e,Snn)?"ap_aging":I2(e,knn)?"ar_aging":vke(e)!=null?"vendors_tab":I2(e,bke)?"forecast":Cke(e)!=null?"month_end_close_review":I2(e,jnn)?"cash_balance":I2(e,$nn)?"card_balance":Ake(e)?"task_checklist":Lnn(e)!=null?"transaction_detail":Bnn(e)!=null?"performance":Pnn(e)!=null?"bills_detail":Mnn(e)!=null?"reimbursement_detail":Dnn(e)?"bills_list":Tnn(e)?"reimbursement_list":I2(e,Cfs)?"cash_in_cash_out":I2(e,vfs)?"operating_expenses":I2(e,Afs)?"revenue":I2(e,Sfs)?"net_burn_or_income":I2(e,kfs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Ske(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":kke(e)!=null?"cards":(function(n){return Fh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Fh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Fh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Onn(e,n){switch(Tfs(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 vke(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Cke(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 Ske(e);case"treasury":return"treasury";case"cards":return kke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Fnn(){const{pathname:e}=Dg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Onn(n,{selectedReportId:i})),[n,i])}function jke(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoEnabled),i=Rr((s=>Dp(s))),r=Er.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Lfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=jke();return n&&i}const Rnn=m.createContext(void 0),Bfs=({children:e})=>{const{tenantEmailDomain:n}=_8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=uee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(Rnn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Pfs=()=>{const e=m.useContext(Rnn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function znn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Nnn(e){const{areTenantIdsInSync:n}=Pfs(),i=jke(),r=Lfs();return n&&e&&r&&i}function Q8s(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=V8t(),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=e8e(s.getState(),d)?.fetchState;znn(u,c)&&r(zwt({pageContext:d}))}}),[i,r,n,s])}function _nn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=V8t(),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=e8e(c.getState(),i)?.fetchState;znn(g,p||h)&&l(zwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Nnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Y8s(e){_nn({pageContext:Fnn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Mfs,sampleQuestion2:Ofs,sampleQuestion3:Ffs}}=ae.getLocalizedStrings().aiCfo,Rfs=[Mfs,Ofs,Ffs];function zfs(e,n=!1){_nn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Nnn(!0),r=Rr((g=>e!=null&&e!==""?e8e(g,e):void 0)),{useDynamicConfig:s}=hs(),{configValue:l}=s(N5.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:[...Rfs]),[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 Nfs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Er.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(qX,l);const c=d=>{d.key===lnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(qX,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Vnn=m.createContext(void 0),KX=()=>m.useContext(Vnn),l8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},_fs=e=>{const n=Er.isSignedIn(),i=Er.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Rr((h=>Dp(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){l8t(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 Aan(Vs.pusherClientSecret,{cluster:Vs.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&&RI(C,u),f!=null&&RI(C,f),p!=null&&RI(C,p)))},w=()=>{const C=uee();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),Vwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),l8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Vnn.Provider,{value:c,children:e.children})};function RI(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 Vfs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Hnn=e=>n=>{const i=KX(),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]=Vfs(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]),en.jsx(e,{...n})},G8s=210;function q8s(e){return e?.data.unread!=null&&e?.mode!=null}const $ke=e=>dsi.includes(e),Eke=e=>oPt.includes(e),Ike=e=>usi.includes(e),Hfs={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"},Ufs=e=>{if(Ike(e)){const n=Hfs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return $ke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Ave(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Eke(e)?`ai-cfo/${e}`:e},Wfs=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],K8s=e=>{if($ke(e)||Eke(e)||Ike(e))return!0;const n=Ufs(e).split("/")[0];return!Wfs.includes(n)},c8t=(e,n)=>e.includes(n),d8t=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(c8t(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&&Ave(s)?csi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of oPt)if(c8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function Qfs(e){let n=d8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=d8t(i[r])}return n??"home"}function Z8s(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function J8s(e){return e.pathname.split("/")[2]==="invoicing"}function X8s(e){return e.pathname.includes("ai-cfo")}function ews(e,n){const i=Qfs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Ike(i)?`invoicing/${i.replace("invoicing_","")}`:$ke(i)?"settings/my_profile":Eke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Ave(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Yfs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Hwt(r.tenantId)),e(Uwt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Gfs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=XX(),p=Dg(),{setLoading:h}=wke(),g=Er.getSignedInUser(),f=oz(g),{useDynamicConfig:x}=hs(),{configValue:y}=x(N5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Rr((O=>O.tenantState)),S=Rr((O=>v.fetchState==="Completed"?San(O):[])),k=Rr((O=>e?.tenantId!=null?kan(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(h5e());const H=VD(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(h5e()),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(Rwt({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]),R=m.useCallback((()=>{I();const O=VD(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(Ann.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Yfs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=en.jsx(Vc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:en.jsxs(qfs,{children:[en.jsxs(Kfs,{children:[en.jsx(vRt,{}),en.jsx(FRt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(Zfs,{children:en.jsx(kRt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(Jfs,{children:[g!=null&&en.jsx(Qz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:R,onMyProfileClick:N,onCockpitClick:_}),en.jsx(Xfs,{onClick:z,children:en.jsx(e4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const qfs=a.div`
|
|
91285
91285
|
display: flex;
|
|
91286
91286
|
flex: 1 1 auto;
|
|
91287
91287
|
flex-direction: column;
|
|
@@ -91369,7 +91369,7 @@ ${sM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
|
|
|
91369
91369
|
display: flex;
|
|
91370
91370
|
min-height: 100%;
|
|
91371
91371
|
flex-direction: column;
|
|
91372
|
-
`,g4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Wwt(g).fetchState)),u=Rr((g=>Dp(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=Er.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(Van(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(cve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(h4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},p8t="init-enter",f4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||p8t);x4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||p8t,c=y4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),x4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),y4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),tws=(e,n,i)=>{const r=V9e(e),s=ree(e),l=H9e(i,e);return(n||i||s||r||l)&&N9e(e.company)},Ynn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Gnn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),qnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Knn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Ynn||Gnn||qnn||Knn)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 zI(...e){const n=Fl==="DEV"||Fl==="QA";if(Ynn||Gnn||qnn||Knn)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 P$=null,wM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function h8t(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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const b4s={dashboard:function(e){return[...h8t()]},reports:h8t,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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/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:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/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:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/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:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function m8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,b4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function g8t(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?(mc("[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 zI("[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);mc("[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)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=uee(),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}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){zI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else zI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function w4s({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=Dg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Ln(),I=w7(j?.loggedInUserRole??[]),E=Rr((_=>Dp(_))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=H9e(D,E),R=V9e(E),N=L===!1&&R===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=m8t({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 mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{g8t(_,r,s).catch((M=>{zI(`[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;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{wM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),wM=!1),P$&&clearTimeout(P$),P$=setTimeout((()=>{wM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),wM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),P$&&(clearTimeout(P$),P$=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),wM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=m8t({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?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),g8t(z,r,s).catch((M=>{zI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[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&&(mc("[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;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){zI("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),en.jsx(en.Fragment,{children:e})}function C4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Dg(),u=Rr((y=>Dp(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}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(w4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function v4s(e,n){const i=Oi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const A4s=a0((()=>bd((()=>import("./DefaultTenantHome-Dh5bAcpG.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),S4s=a0((()=>bd((()=>import("./AppDrawer-D2Tl26uq.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),f8t=a0((()=>bd((()=>import("./ScreenRoutes-Cd2fvUao.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),k4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-oPVi82Cx.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),j4s=a0((()=>bd((()=>import("./SignInScreen-DB64sQry.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),$4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-DaNmJtKR.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),x8t=a0((()=>bd((()=>import("./NotFoundScreen-DHpPkJUq.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),E4s=a0((()=>bd((()=>import("./MagicLinkRoutes-DFwRCGOM.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),I4s=a0((()=>bd((()=>import("./PaymentLinkScreen-DstzeuhJ.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),D4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-CMKnfyei.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),T4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-D64pI0iU.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),L4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-C3FMpb4J.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),B4s=a0((()=>bd((()=>import("./SignOutScreen-RkBhfYpP.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),P4s=a0((()=>bd((()=>import("./OAuthConsentScreen-CMQBCmUq.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),M4s=()=>{const e=Dg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=v4s("/",n);return en.jsx(N8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function O4s(){const{isOpen:e}=jS(),n=Eli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=xke(),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 F4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&oz(s),c=Rr((j=>Han(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Cnn(),g=jke(),[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}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Uan())}),[u,h]);const S=Dg().pathname.includes("/collect-payment/"),k=en.jsx(R4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(aUe,{children:en.jsx(Ugt,{children:en.jsx(I9e.Provider,{value:w,children:k})})});const $=en.jsxs(I9e.Provider,{value:w,children:[en.jsx(O4s,{}),en.jsxs(_4s,{children:[en.jsx(S4s,{tenantEmailDomain:e}),en.jsx(z4s,{children:k})]})]});return en.jsx(aUe,{children:r.tenantId!=null?en.jsx(hpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${O5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${O5.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):en.jsx(Ugt,{children:$})})},R4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(N5.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}=wke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=xke();return m.useEffect((()=>{h(Ann.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(C4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Iin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(E4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(I4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(D4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(x8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(A4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(M4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(L4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(H4s,{children:en.jsxs(Bfs,{children:[en.jsxs(U4s,{children:[s!=null?en.jsx(g4s,{}):null,n?en.jsx(f8t,{setTenantEmailDomain:e}):en.jsx(a5e,{children:en.jsx(f8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(dfs,{}),en.jsx(W4s,{isOpen:g,children:en.jsx(r4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(a5e,{children:en.jsx(j4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(a5e,{children:en.jsx($4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(B4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(k4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(T4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(P4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(x8t,{})})]})})})},z4s=({children:e})=>{const{isOpen:n,width:i}=jS();return en.jsx(V4s,{commentsDrawerWidth:n?i:0,children:e})},N4s=eS("div")`
|
|
91372
|
+
`,g4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Wwt(g).fetchState)),u=Rr((g=>Dp(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=Er.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(Van(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(cve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(h4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},p8t="init-enter",f4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||p8t);x4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||p8t,c=y4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),x4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),y4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),tws=(e,n,i)=>{const r=V9e(e),s=ree(e),l=H9e(i,e);return(n||i||s||r||l)&&N9e(e.company)},Ynn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Gnn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),qnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Knn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Ynn||Gnn||qnn||Knn)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 zI(...e){const n=Fl==="DEV"||Fl==="QA";if(Ynn||Gnn||qnn||Knn)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 P$=null,wM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function h8t(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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const b4s={dashboard:function(e){return[...h8t()]},reports:h8t,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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/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:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/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:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/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:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function m8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,b4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function g8t(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?(mc("[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 zI("[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);mc("[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)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=uee(),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}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){zI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else zI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function w4s({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=Dg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Ln(),I=w7(j?.loggedInUserRole??[]),E=Rr((_=>Dp(_))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=H9e(D,E),R=V9e(E),N=L===!1&&R===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=m8t({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 mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{g8t(_,r,s).catch((M=>{zI(`[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;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{wM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),wM=!1),P$&&clearTimeout(P$),P$=setTimeout((()=>{wM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),wM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),P$&&(clearTimeout(P$),P$=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),wM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=m8t({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?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),g8t(z,r,s).catch((M=>{zI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[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&&(mc("[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;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){zI("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),en.jsx(en.Fragment,{children:e})}function C4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Dg(),u=Rr((y=>Dp(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}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(w4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function v4s(e,n){const i=Oi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const A4s=a0((()=>bd((()=>import("./DefaultTenantHome-C2oJ4Z_A.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),S4s=a0((()=>bd((()=>import("./AppDrawer-D_pZzlzK.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),f8t=a0((()=>bd((()=>import("./ScreenRoutes-Dq8tSKSA.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),k4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-BKfqdMMN.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),j4s=a0((()=>bd((()=>import("./SignInScreen-BPiC2SXK.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),$4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-Cgc6upj0.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),x8t=a0((()=>bd((()=>import("./NotFoundScreen-BA5GK6fZ.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),E4s=a0((()=>bd((()=>import("./MagicLinkRoutes-BXcgUoFN.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),I4s=a0((()=>bd((()=>import("./PaymentLinkScreen-DzxyNsJc.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),D4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-B49tOG90.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),T4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-Coekh8J7.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),L4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-BKlbrqkD.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),B4s=a0((()=>bd((()=>import("./SignOutScreen-DrmKOkUx.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),P4s=a0((()=>bd((()=>import("./OAuthConsentScreen-Dsn5YLy4.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),M4s=()=>{const e=Dg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=v4s("/",n);return en.jsx(N8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function O4s(){const{isOpen:e}=jS(),n=Eli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=xke(),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 F4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&oz(s),c=Rr((j=>Han(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Cnn(),g=jke(),[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}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Uan())}),[u,h]);const S=Dg().pathname.includes("/collect-payment/"),k=en.jsx(R4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(aUe,{children:en.jsx(Ugt,{children:en.jsx(I9e.Provider,{value:w,children:k})})});const $=en.jsxs(I9e.Provider,{value:w,children:[en.jsx(O4s,{}),en.jsxs(_4s,{children:[en.jsx(S4s,{tenantEmailDomain:e}),en.jsx(z4s,{children:k})]})]});return en.jsx(aUe,{children:r.tenantId!=null?en.jsx(hpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${O5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${O5.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):en.jsx(Ugt,{children:$})})},R4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(N5.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}=wke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=xke();return m.useEffect((()=>{h(Ann.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(C4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Iin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(E4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(I4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(D4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(x8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(A4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(M4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(L4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(H4s,{children:en.jsxs(Bfs,{children:[en.jsxs(U4s,{children:[s!=null?en.jsx(g4s,{}):null,n?en.jsx(f8t,{setTenantEmailDomain:e}):en.jsx(a5e,{children:en.jsx(f8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(dfs,{}),en.jsx(W4s,{isOpen:g,children:en.jsx(r4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(a5e,{children:en.jsx(j4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(a5e,{children:en.jsx($4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(B4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(k4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(T4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(P4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(x8t,{})})]})})})},z4s=({children:e})=>{const{isOpen:n,width:i}=jS();return en.jsx(V4s,{commentsDrawerWidth:n?i:0,children:e})},N4s=eS("div")`
|
|
91373
91373
|
display:flex;
|
|
91374
91374
|
`,_4s=eS("div")`
|
|
91375
91375
|
display: flex;
|
|
@@ -91491,4 +91491,4 @@ ${sM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
|
|
|
91491
91491
|
}
|
|
91492
91492
|
`,d5s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?en.jsxs(r5s,{style:n,children:[en.jsxs(a5s,{children:[en.jsx(cG,{children:en.jsx(Mm,{width:96,height:20})}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:78,height:16}),en.jsx(Mm,{width:46,height:16})]}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:110,height:16}),en.jsx(Mm,{width:84,height:16})]}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:84,height:16}),en.jsx(Mm,{width:64,height:16})]})]}),en.jsxs(s5s,{children:[en.jsxs(l5s,{children:[en.jsx(Mm,{width:106,height:27}),en.jsx(Mm,{width:111,height:32})]}),en.jsx(c5s,{children:en.jsx(o5s,{width:96,height:96})})]})]}):null;function u5s({minDisplayTime:e=0}){const{isLoading:n}=wke(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Er.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:en.jsx(d5s,{fetchState:"In-Progress"})}const p5s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Er.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},w8t="missing-receipts-batch-completed";let T9e=null,L9e=!1;function iws(e,n){if(!n)return T9e=null,void(L9e=!1);T9e=e,L9e=!0}const h5s=()=>{const e=Sp(),{useFeatureGate:n}=hs(),{isFeatureEnabled:i}=n(gl.isReconV3Enabled),r=Rr((l=>Qwt(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 L9e&&T9e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(_wt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:_is(c)},{variableName:"_transaction_count_",variableValue:String(Vis(c))}]})),s.current[l]=d}))}),[r,e,i])},C8t="reconciliation-status-updated",v8t="statement-status-updated",A8t="combined-statement-group-updated";function m5s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function g5s(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(Ywt(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(qan({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Gwt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function f5s(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(m5s(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(Ywt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Kan({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Gwt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function x5s(){let e=b8t();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(O5)}`);const n=Er.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=Er.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Er.getActiveTenantForUser()?.tenantId})():void 0,r=Xan(O5,n?.userId,n?.zeniSessionId,i,FI(),w5s);m5e();const s=uee();return s.userId!=null&&_0.identify(s.userId,{tenant_id:s.tenantId}),r})(),Jnn=e,m5e().then((()=>{const n=b8t();n!=null&&(Z6.reset(),n5s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),lin(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
91493
91493
|
|
|
91494
|
-
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const dG=new Zan,S8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:R}=hs(),{configValue:N,isDynamicConfigLoading:_}=R(Fwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return gW;const T=yut(N.users_disabled_for_auto_logout),M=yut(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:Sge(N.heartbeat_interval_minutes,gW.heartbeatIntervalMinutes),idleTimeoutMinutes:Sge(N.idle_timeout_minutes,gW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:Sge(N.warning_duration_seconds,gW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(R){try{sessionStorage.setItem(uve,"auto-logout"),sessionStorage.setItem(pve,String(R.idleTimeoutMinutes)),sessionStorage.setItem(hve,String(Date.now())),XO=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(nFt(),XO=void 0),s(null),dG.stop(),e(esn()),e(tsn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return dG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(nsn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>dG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>isn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(Zke())}),[]);const h=Rr((L=>osn(L)));(()=>{const L=KX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:_}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=RI(L,z),M=O=>{R(Gan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(w8t,M),()=>{T.unbind(w8t,M)}}),[L,R,_])})(),(()=>{const L=KX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:_}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Qwt(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=RI(L,T),K=ee=>{g5s(R,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{f5s(R,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(C8t,K),q.bind(v8t,K),q.bind(A8t,J),()=>{q.unbind(C8t,K),q.unbind(v8t,K),q.unbind(A8t,J)}}),[L,R,_,z,T,V,W])})(),h5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>rsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,R)=>{var N;N=R,N?.data!=null&&e(asn(R))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=O0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>t5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:cin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Bzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(kzn,{toolkit:D,children:en.jsxs(MRn,{endPoint:{url:mke},children:[en.jsx(Fnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Zke())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(Q4s,{...x})]})}),r!=null&&n!=null?en.jsx(V3s,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),dG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},y5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>Jan(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=p5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:n8t,featureClientSecret:Vs.featureClientSecret,providerEndPoint:tz.statsigBaseUrl})),[n8t,Vs.featureClientSecret,tz.statsigBaseUrl]);return n?en.jsx(pHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(S8t,{})}):en.jsx(S8t,{})},b5s=sin((function(){const e=m.useMemo((()=>x5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{m5e().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]),en.jsx(Y4s,{children:en.jsx(Din,{store:e,children:en.jsx(i5s,{value:n,children:en.jsxs(pfs,{children:[en.jsx(u5s,{}),en.jsx(W7n,{children:en.jsx(_fs,{children:en.jsxs(Azn,{children:[r?en.jsx(Isi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(y5s,{})]})})})]})})})})}));function w5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const C5s=!!(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}$/)),k8t=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function j8t(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 ein="zeni:env-keys:",ZX=`${ein}${Fl}:5.3.93-dev-51d5c47e4`,$8t="zeni.ai";function v5s(e){return tin(e)}function E8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(v5s)}const s5e="o4504609050525696",A5s={SENTRY_DSN:[`${s5e}.ingest.sentry.io`,`${s5e}.ingest.us.sentry.io`,`${s5e}.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"]},S5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,k5s=["WEB_ENDPOINT"];function tin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===$8t||n.hostname.endsWith(`.${$8t}`))}const j5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],$5s=/^[A-Za-z0-9_-]+$/,E5s=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}),I5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),D5s=/^pk_(live|test)_[A-Za-z0-9]+$/,T5s=/^[A-Za-z0-9_.-]+$/,L5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function B5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!E8t(n.apiEndPoints)||!E8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(E5s.some((h=>i[h]==null))||I5s.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(A5s).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=j5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&$5s.test(g)})),u=k5s.every((h=>{const g=l[h];return g==null||(function(f){if(tin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&S5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&D5s.test(l.STRIPE_KEY))&&L5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&T5s.test(g)}));return c&&d&&u&&p}function l5e(){try{window.localStorage.removeItem(ZX)}catch{}}function P5s(e){try{window.localStorage.setItem(ZX,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(ein)&&r!==ZX&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function nin(e){if(e==null||e==="")return null;try{const n=JSON.parse(nnn(e,inn+Fl));return B5s(n)?n:null}catch{return null}}function I8t(e){return nin(e)!=null&&(P5s(e),!0)}const D8t="zeni-chunk-reload-at",M5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function T8t(e){try{const n=Number(sessionStorage.getItem(D8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(D8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let c5e=!1,L8t=null;const B8t="//js.hs-scripts.com/5991084.js",P8t="hs-script-loader",O5s=Er.getSignedInUser(),F5s=O5s?.zeniSessionId;function R5s(){const e=()=>{const n=Vs.sentryDsn?.trim();if(!n)return;const i=Vs.sentryProfileSamplingRate>0,r=Fl==="PROD";din({dsn:n,environment:ifs,tracesSampleRate:Vs.sentryTraceSamplingRate,profilesSampleRate:i?Vs.sentryProfileSamplingRate:0,integrations:[uin(),...i?[pin()]:[],...r?[hin({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)}),min("session-id",F5s),(function(){if(Uq==null)return;const s=Uq;Uq=void 0;try{if(window.sessionStorage.getItem(M8t)!=null)return;window.sessionStorage.setItem(M8t,s)}catch{}gin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.93-dev-51d5c47e4"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function iin(){Dsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Tin,{children:en.jsx(b5s,{})})})),R5s()}let Uq;function B9e(e){Uq=e}const M8t="zeni:env-keys-rejection-reported";function z5s(){const e=(function(){try{const i=window.localStorage.getItem(ZX);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return l5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(l5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=nin(e);return n==null?(B9e("untrusted-or-unreadable"),l5e(),!1):(rnn(n),iin(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;T8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return M5s.some((r=>i.includes(r)))})(e.reason)&&T8t(e.reason)})),(async function(){try{if(z5s())return void(async function(){const i=await i8t();typeof i=="string"&&i.length>0&&!I8t(i)&&B9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await i8t(),n=nnn(e,inn+Fl);rnn(JSON.parse(n)),I8t(e)||B9e("network-untrusted-payload"),iin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):L8t!==null||(L8t=new Promise((e=>{if(c5e)return void e(!0);const n=()=>{c5e?e(!0):(c5e=!0,new Promise(((r,s)=>{if(document.getElementById(P8t))return void r();const l=document.createElement("script");l.id=P8t,l.src=B8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${B8t}`)),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;C5s?(e=k8t,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()))})):j8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):j8t(k8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((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(kC),n(kC),i(kC),r(kC),s(kC)}));export{me as $,Eke as A,Yfs as B,ews as C,csi as D,rxs as E,Kxs as F,ae as G,O0a as H,o as I,a0 as J,nWi as K,Ann as L,Ln as M,Fl as N,Ave as O,U8s as P,n5s as Q,Oi as R,x7s as S,b8t as T,Qxs as U,Vs as V,hs as W,y7s as X,Jn as Y,LMt as Z,exs as _,xke as a,ibs as a$,T6s as a0,f2i as a1,H8s as a2,L6s as a3,B6s as a4,d4s as a5,lve as a6,o5s as a7,DUo as a8,F as a9,rCo as aA,b7s as aB,d6s as aC,c6s as aD,H5 as aE,uQt as aF,u6s as aG,nxs as aH,KX as aI,Vfs as aJ,abs as aK,sbs as aL,Wxs as aM,N6s as aN,Gys as aO,Zys as aP,EAe as aQ,H6s as aR,V6s as aS,Kys as aT,qys as aU,Uxs as aV,rPt as aW,k8s as aX,rbs as aY,nbs as aZ,obs as a_,P6s as aa,C8s as ab,O5 as ac,P as ad,txs as ae,f6s as af,e7s as ag,h6s as ah,f7s as ai,N8s as aj,C7s as ak,Tfs as al,Nnn as am,Q8s as an,Pfs as ao,Lfs as ap,Y8s as aq,l7s as ar,vp as as,mke as at,d8t as au,S9s as av,Fbs as aw,ji as ax,Wys as ay,Uys as az,v4s as b,Nys as b$,_ys as b0,l6s as b1,Fi as b2,kzn as b3,m6s as b4,q6o as b5,w7s as b6,$ji as b7,_Rt as b8,R6s as b9,mxs as bA,gxs as bB,hxs as bC,FI as bD,_6s as bE,sys as bF,cys as bG,lys as bH,oys as bI,iys as bJ,dys as bK,M6s as bL,rys as bM,ays as bN,pys as bO,js as bP,cbs as bQ,O6s as bR,wys as bS,yys as bT,P8s as bU,a6s as bV,E8s as bW,Sys as bX,Ays as bY,Oys as bZ,Mys as b_,F6s as ba,z6s as bb,Zxs as bc,Tn as bd,Sa as be,Fnn as bf,N5 as bg,V8s as bh,t4s as bi,s7s as bj,c7s as bk,ubs as bl,fke as bm,lfs as bn,Yxs as bo,TBi as bp,FTt as bq,v7s as br,zfs as bs,Cys as bt,uxs as bu,fxs as bv,yCe as bw,pxs as bx,k9s as by,Yys as bz,gl as c,Jys as c$,zys as c0,hys as c1,mys as c2,p6s as c3,g6s as c4,gys as c5,fys as c6,xys as c7,Rys as c8,Fys as c9,g8s as cA,_9s as cB,dt as cC,P9s as cD,Yi as cE,l8s as cF,O9s as cG,N9s as cH,c8s as cI,J9s as cJ,X9s as cK,e8s as cL,Z9s as cM,t8s as cN,K9s as cO,d5s as cP,wxs as cQ,Vys as cR,Hys as cS,j9s as cT,bys as cU,R8s as cV,I8s as cW,e6s as cX,i6s as cY,t6s as cZ,oxs as c_,f8s as ca,m8s as cb,F9s as cc,W9s as cd,R9s as ce,I9s as cf,L9s as cg,d8s as ch,V9s as ci,o8s as cj,r8s as ck,i8s as cl,B9s as cm,z9s as cn,b8s as co,x8s as cp,y8s as cq,u8s as cr,H9s as cs,h8s as ct,p8s as cu,U9s as cv,n8s as cw,D9s as cx,w8s as cy,M9s as cz,p5s as d,vys as d$,Xys as d0,cve as d1,o6s as d2,s6s as d3,Hds as d4,tps as d5,L4e as d6,M8s as d7,O8s as d8,F8s as d9,yxs as dA,bxs as dB,Tbs as dC,$bs as dD,jbs as dE,mbs as dF,Ebs as dG,lbs as dH,upa as dI,w9s as dJ,A9s as dK,E9s as dL,$9s as dM,v8s as dN,_is as dO,lxs as dP,$8s as dQ,j8s as dR,iws as dS,aGi as dT,Qys as dU,Eli as dV,jS as dW,bJt as dX,z8s as dY,V3o as dZ,S8s as d_,B8s as da,Jxs as db,CYt as dc,Sbs as dd,Abs as de,Cbs as df,kbs as dg,vbs as dh,D8s as di,wbs as dj,bbs as dk,Dbs as dl,hbs as dm,fbs as dn,xxs as dp,n6s as dq,lr as dr,xUr as ds,gbs as dt,_nn as du,dbs as dv,ybs as dw,pbs as dx,xbs as dy,Ibs as dz,jke as e,x9s as e0,Obs as e1,Mbs as e2,Pbs as e3,bfs as e4,wfs as e5,uR as e6,Nfs as e7,Gfs as e8,cnn as e9,n4s as ea,Rxe as eb,Btn as ec,Ltn as ed,sxs as ee,ffs as ef,yfs as eg,xfs as eh,ofs as ei,hfs as ej,snn as ek,W8s as el,nws as f,tws as g,axs as h,q8s as i,Vt as j,_0 as k,X8s as l,A as m,J8s as n,Z8s as o,VD as p,Qfs as q,vTi as r,G8s as s,Z6 as t,wke as u,_8s as v,Hnn as w,K8s as x,Ufs as y,Er as z};
|
|
91494
|
+
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const dG=new Zan,S8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:R}=hs(),{configValue:N,isDynamicConfigLoading:_}=R(Fwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return gW;const T=yut(N.users_disabled_for_auto_logout),M=yut(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:Sge(N.heartbeat_interval_minutes,gW.heartbeatIntervalMinutes),idleTimeoutMinutes:Sge(N.idle_timeout_minutes,gW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:Sge(N.warning_duration_seconds,gW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(R){try{sessionStorage.setItem(uve,"auto-logout"),sessionStorage.setItem(pve,String(R.idleTimeoutMinutes)),sessionStorage.setItem(hve,String(Date.now())),XO=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(nFt(),XO=void 0),s(null),dG.stop(),e(esn()),e(tsn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return dG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(nsn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>dG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>isn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(Zke())}),[]);const h=Rr((L=>osn(L)));(()=>{const L=KX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:_}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=RI(L,z),M=O=>{R(Gan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(w8t,M),()=>{T.unbind(w8t,M)}}),[L,R,_])})(),(()=>{const L=KX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:_}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Qwt(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=RI(L,T),K=ee=>{g5s(R,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{f5s(R,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(C8t,K),q.bind(v8t,K),q.bind(A8t,J),()=>{q.unbind(C8t,K),q.unbind(v8t,K),q.unbind(A8t,J)}}),[L,R,_,z,T,V,W])})(),h5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>rsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,R)=>{var N;N=R,N?.data!=null&&e(asn(R))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=O0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>t5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:cin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Bzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(kzn,{toolkit:D,children:en.jsxs(MRn,{endPoint:{url:mke},children:[en.jsx(Fnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Zke())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(Q4s,{...x})]})}),r!=null&&n!=null?en.jsx(V3s,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),dG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},y5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>Jan(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=p5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:n8t,featureClientSecret:Vs.featureClientSecret,providerEndPoint:tz.statsigBaseUrl})),[n8t,Vs.featureClientSecret,tz.statsigBaseUrl]);return n?en.jsx(pHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(S8t,{})}):en.jsx(S8t,{})},b5s=sin((function(){const e=m.useMemo((()=>x5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{m5e().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]),en.jsx(Y4s,{children:en.jsx(Din,{store:e,children:en.jsx(i5s,{value:n,children:en.jsxs(pfs,{children:[en.jsx(u5s,{}),en.jsx(W7n,{children:en.jsx(_fs,{children:en.jsxs(Azn,{children:[r?en.jsx(Isi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(y5s,{})]})})})]})})})})}));function w5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const C5s=!!(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}$/)),k8t=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function j8t(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 ein="zeni:env-keys:",ZX=`${ein}${Fl}:5.3.93-qa-00d0623b2`,$8t="zeni.ai";function v5s(e){return tin(e)}function E8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(v5s)}const s5e="o4504609050525696",A5s={SENTRY_DSN:[`${s5e}.ingest.sentry.io`,`${s5e}.ingest.us.sentry.io`,`${s5e}.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"]},S5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,k5s=["WEB_ENDPOINT"];function tin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===$8t||n.hostname.endsWith(`.${$8t}`))}const j5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],$5s=/^[A-Za-z0-9_-]+$/,E5s=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}),I5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),D5s=/^pk_(live|test)_[A-Za-z0-9]+$/,T5s=/^[A-Za-z0-9_.-]+$/,L5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function B5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!E8t(n.apiEndPoints)||!E8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(E5s.some((h=>i[h]==null))||I5s.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(A5s).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=j5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&$5s.test(g)})),u=k5s.every((h=>{const g=l[h];return g==null||(function(f){if(tin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&S5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&D5s.test(l.STRIPE_KEY))&&L5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&T5s.test(g)}));return c&&d&&u&&p}function l5e(){try{window.localStorage.removeItem(ZX)}catch{}}function P5s(e){try{window.localStorage.setItem(ZX,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(ein)&&r!==ZX&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function nin(e){if(e==null||e==="")return null;try{const n=JSON.parse(nnn(e,inn+Fl));return B5s(n)?n:null}catch{return null}}function I8t(e){return nin(e)!=null&&(P5s(e),!0)}const D8t="zeni-chunk-reload-at",M5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function T8t(e){try{const n=Number(sessionStorage.getItem(D8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(D8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let c5e=!1,L8t=null;const B8t="//js.hs-scripts.com/5991084.js",P8t="hs-script-loader",O5s=Er.getSignedInUser(),F5s=O5s?.zeniSessionId;function R5s(){const e=()=>{const n=Vs.sentryDsn?.trim();if(!n)return;const i=Vs.sentryProfileSamplingRate>0,r=Fl==="PROD";din({dsn:n,environment:ifs,tracesSampleRate:Vs.sentryTraceSamplingRate,profilesSampleRate:i?Vs.sentryProfileSamplingRate:0,integrations:[uin(),...i?[pin()]:[],...r?[hin({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)}),min("session-id",F5s),(function(){if(Uq==null)return;const s=Uq;Uq=void 0;try{if(window.sessionStorage.getItem(M8t)!=null)return;window.sessionStorage.setItem(M8t,s)}catch{}gin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.93-qa-00d0623b2"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function iin(){Dsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Tin,{children:en.jsx(b5s,{})})})),R5s()}let Uq;function B9e(e){Uq=e}const M8t="zeni:env-keys-rejection-reported";function z5s(){const e=(function(){try{const i=window.localStorage.getItem(ZX);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return l5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(l5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=nin(e);return n==null?(B9e("untrusted-or-unreadable"),l5e(),!1):(rnn(n),iin(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;T8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return M5s.some((r=>i.includes(r)))})(e.reason)&&T8t(e.reason)})),(async function(){try{if(z5s())return void(async function(){const i=await i8t();typeof i=="string"&&i.length>0&&!I8t(i)&&B9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await i8t(),n=nnn(e,inn+Fl);rnn(JSON.parse(n)),I8t(e)||B9e("network-untrusted-payload"),iin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):L8t!==null||(L8t=new Promise((e=>{if(c5e)return void e(!0);const n=()=>{c5e?e(!0):(c5e=!0,new Promise(((r,s)=>{if(document.getElementById(P8t))return void r();const l=document.createElement("script");l.id=P8t,l.src=B8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${B8t}`)),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;C5s?(e=k8t,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()))})):j8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):j8t(k8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((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(kC),n(kC),i(kC),r(kC),s(kC)}));export{me as $,Eke as A,Yfs as B,ews as C,csi as D,rxs as E,Kxs as F,ae as G,O0a as H,o as I,a0 as J,nWi as K,Ann as L,Ln as M,Fl as N,Ave as O,U8s as P,n5s as Q,Oi as R,x7s as S,b8t as T,Qxs as U,Vs as V,hs as W,y7s as X,Jn as Y,LMt as Z,exs as _,xke as a,ibs as a$,T6s as a0,f2i as a1,H8s as a2,L6s as a3,B6s as a4,d4s as a5,lve as a6,o5s as a7,DUo as a8,F as a9,rCo as aA,b7s as aB,d6s as aC,c6s as aD,H5 as aE,uQt as aF,u6s as aG,nxs as aH,KX as aI,Vfs as aJ,abs as aK,sbs as aL,Wxs as aM,N6s as aN,Gys as aO,Zys as aP,EAe as aQ,H6s as aR,V6s as aS,Kys as aT,qys as aU,Uxs as aV,rPt as aW,k8s as aX,rbs as aY,nbs as aZ,obs as a_,P6s as aa,C8s as ab,O5 as ac,P as ad,txs as ae,f6s as af,e7s as ag,h6s as ah,f7s as ai,N8s as aj,C7s as ak,Tfs as al,Nnn as am,Q8s as an,Pfs as ao,Lfs as ap,Y8s as aq,l7s as ar,vp as as,mke as at,d8t as au,S9s as av,Fbs as aw,ji as ax,Wys as ay,Uys as az,v4s as b,Nys as b$,_ys as b0,l6s as b1,Fi as b2,kzn as b3,m6s as b4,q6o as b5,w7s as b6,$ji as b7,_Rt as b8,R6s as b9,mxs as bA,gxs as bB,hxs as bC,FI as bD,_6s as bE,sys as bF,cys as bG,lys as bH,oys as bI,iys as bJ,dys as bK,M6s as bL,rys as bM,ays as bN,pys as bO,js as bP,cbs as bQ,O6s as bR,wys as bS,yys as bT,P8s as bU,a6s as bV,E8s as bW,Sys as bX,Ays as bY,Oys as bZ,Mys as b_,F6s as ba,z6s as bb,Zxs as bc,Tn as bd,Sa as be,Fnn as bf,N5 as bg,V8s as bh,t4s as bi,s7s as bj,c7s as bk,ubs as bl,fke as bm,lfs as bn,Yxs as bo,TBi as bp,FTt as bq,v7s as br,zfs as bs,Cys as bt,uxs as bu,fxs as bv,yCe as bw,pxs as bx,k9s as by,Yys as bz,gl as c,Jys as c$,zys as c0,hys as c1,mys as c2,p6s as c3,g6s as c4,gys as c5,fys as c6,xys as c7,Rys as c8,Fys as c9,g8s as cA,_9s as cB,dt as cC,P9s as cD,Yi as cE,l8s as cF,O9s as cG,N9s as cH,c8s as cI,J9s as cJ,X9s as cK,e8s as cL,Z9s as cM,t8s as cN,K9s as cO,d5s as cP,wxs as cQ,Vys as cR,Hys as cS,j9s as cT,bys as cU,R8s as cV,I8s as cW,e6s as cX,i6s as cY,t6s as cZ,oxs as c_,f8s as ca,m8s as cb,F9s as cc,W9s as cd,R9s as ce,I9s as cf,L9s as cg,d8s as ch,V9s as ci,o8s as cj,r8s as ck,i8s as cl,B9s as cm,z9s as cn,b8s as co,x8s as cp,y8s as cq,u8s as cr,H9s as cs,h8s as ct,p8s as cu,U9s as cv,n8s as cw,D9s as cx,w8s as cy,M9s as cz,p5s as d,vys as d$,Xys as d0,cve as d1,o6s as d2,s6s as d3,Hds as d4,tps as d5,L4e as d6,M8s as d7,O8s as d8,F8s as d9,yxs as dA,bxs as dB,Tbs as dC,$bs as dD,jbs as dE,mbs as dF,Ebs as dG,lbs as dH,upa as dI,w9s as dJ,A9s as dK,E9s as dL,$9s as dM,v8s as dN,_is as dO,lxs as dP,$8s as dQ,j8s as dR,iws as dS,aGi as dT,Qys as dU,Eli as dV,jS as dW,bJt as dX,z8s as dY,V3o as dZ,S8s as d_,B8s as da,Jxs as db,CYt as dc,Sbs as dd,Abs as de,Cbs as df,kbs as dg,vbs as dh,D8s as di,wbs as dj,bbs as dk,Dbs as dl,hbs as dm,fbs as dn,xxs as dp,n6s as dq,lr as dr,xUr as ds,gbs as dt,_nn as du,dbs as dv,ybs as dw,pbs as dx,xbs as dy,Ibs as dz,jke as e,x9s as e0,Obs as e1,Mbs as e2,Pbs as e3,bfs as e4,wfs as e5,uR as e6,Nfs as e7,Gfs as e8,cnn as e9,n4s as ea,Rxe as eb,Btn as ec,Ltn as ed,sxs as ee,ffs as ef,yfs as eg,xfs as eh,ofs as ei,hfs as ej,snn as ek,W8s as el,nws as f,tws as g,axs as h,q8s as i,Vt as j,_0 as k,X8s as l,A as m,J8s as n,Z8s as o,VD as p,Qfs as q,vTi as r,G8s as s,Z6 as t,wke as u,_8s as v,Hnn as w,K8s as x,Ufs as y,Er as z};
|