@zeniai/web-app-ui 5.4.21-dev → 5.4.21-next
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-CykY8jdu.js → AccountMappingScreen-CNps2c4g.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-UFhJKVUq.js → ActualMatchingMatchDetailScreen-YEeqk6Zp.js} +1 -1
- package/dist/assets/AddressRoutes-DiGUM-Ah.js +1 -0
- package/dist/assets/{AddressScreen-DXVWlMXp.js → AddressScreen-DTHectLm.js} +1 -1
- package/dist/assets/{AiCfoScreen-UfYXu56F.js → AiCfoScreen-B2gtbDf7.js} +1 -1
- package/dist/assets/{AppDrawer-ky_X7SdS.js → AppDrawer-BNrm6Unj.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BHV3_xPL.js → BillPayApprovalRoutes-BXjeKRQ0.js} +1 -1
- package/dist/assets/{BillPayRoutes-DwoZ4Wej.js → BillPayRoutes-9LIjosJx.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DcJAu1U8.js → BusinessVerificationPageScreen-DfgDpNPJ.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-o65vXGHV.js → CardsAiCfoScreen-3_sFV2Ml.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CX_ID8PO.js → ChargeCardRoutes-BrxWQBKB.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-wpe4W-A1.js → CompanyPassportScreen-D9J5NscU.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-D5XNzpDd.js → ConnectionAuthScreen-BPHZkh6G.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Cud9qjqo.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Crv7_qXD.js → CustomerOnboardingRoutes-B5SaMgHv.js} +1 -1
- package/dist/assets/{CustomersRoutes-CsT3I1KS.js → CustomersRoutes-CVgGJswf.js} +1 -1
- package/dist/assets/{DashboardRoutes-CkNHYlwe.js → DashboardRoutes-CPUNBtcw.js} +1 -1
- package/dist/assets/{DefaultTenantHome-BMhKHh4Y.js → DefaultTenantHome-C9USEe2D.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-BsNFmHCW.js → DomesticWireDetailScreen-D9Y4Vys1.js} +1 -1
- package/dist/assets/{DrawerScreen-DPBr2rYW.js → DrawerScreen-COYxf4a_.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BEbJufIv.js → EntityDetailRoutes-CY-pNBzS.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-BWV2tipJ.js → ExpenseAutomationRoutes-DLMk8DPD.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-Co6UN19B.js → FeaturePreviewScreen-D7KvTxUl.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BM3fROhV.js → HubSpotOAuthCallbackScreen-CpWODxVs.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-iLGG8Hne.js → InboxNotificationsProvider-DgU7-WH3.js} +1 -1
- package/dist/assets/{InvoicingRoutes-BDKU1kok.js → InvoicingRoutes-D7I28onf.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-LlQPtwmF.js → MagicLinkRoutes-DJxwtwLL.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-DiuwGQZA.js → MagicLinkSignInScreen-cjFRT0pp.js} +1 -1
- package/dist/assets/{MobileAppDrawer-Ct61dQgI.js → MobileAppDrawer-QsBOZtGR.js} +1 -1
- package/dist/assets/NotFoundScreen-62ZwPZD8.js +1 -0
- package/dist/assets/{NotificationRoutes-Bq6Q_RnE.js → NotificationRoutes-DgyyQzJn.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-QNvpnHLR.js → OAuthConsentScreen-oLGZ4UKO.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-spqAx7Nj.js → PandLWithForecastRoutes-Byqs-iPS.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-Xa9F1vkq.js → PaymentLinkScreen-CtYs51-a.js} +1 -1
- package/dist/assets/{PeopleRoutes-BOxWPOrb.js → PeopleRoutes-B5A-Tpws.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DIk329y5.js → PerformanceRoutes-CIq9UMN2.js} +1 -1
- package/dist/assets/{Preview-CfQKOy5n.js → Preview-B7YinIiQ.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-OL7fpWNi.js → QBOConnectionScreen-BvJN0vdq.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-Cz6prEK3.js → ReimbursementApprovalRoutes-DJFklLxf.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CsHKBNa1.js → ReimbursementApprovalRuleDetailScreen-CdMCxq5v.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BJsGbiLA.js → ReimbursementRoutes-HqQZzHgE.js} +1 -1
- package/dist/assets/{ReportsRoutes-Q_1D8cZK.js → ReportsRoutes-CnGiYy5C.js} +1 -1
- package/dist/assets/{RewardsRoutes-Dl2249xj.js → RewardsRoutes-BsYJ465t.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BdjCOE8f.js → ScheduleDetailsPrepaidExpensesScreen-gV26nTmK.js} +1 -1
- package/dist/assets/{ScreenRoutes-n390CBhV.js → ScreenRoutes-CQPbRX2a.js} +2 -2
- package/dist/assets/{SettingsRoutes-BpaF5UCO.js → SettingsRoutes-CD1wEg-n.js} +1 -1
- package/dist/assets/{SetupPagesScreen-B4mnKcCt.js → SetupPagesScreen-CGSGhPYa.js} +1 -1
- package/dist/assets/{SignInScreen-U-UH-98t.js → SignInScreen-CyZOVBTb.js} +1 -1
- package/dist/assets/{SignOutScreen-Bb8QCtlv.js → SignOutScreen-BzT1GyXB.js} +1 -1
- package/dist/assets/{TaskListScreen-cAzkNljY.js → TaskListScreen-CGZw_rHi.js} +1 -1
- package/dist/assets/{TaskRoutes-DWGwCtaS.js → TaskRoutes-wAulbJhb.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-DN0MAIjC.js → TransactionDetailRoutes-DkNDZeWn.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BXxFjzdw.js → TransactionDetailScreen-DWGL2jzj.js} +1 -1
- package/dist/assets/{TransactionListRoutes-DydlnHAH.js → TransactionListRoutes-Ds8Blr0P.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B4mGKq9W.js → TreasuryRoutes-CuPXFHKq.js} +1 -1
- package/dist/assets/{VendorsRoutes-D1ROPhMq.js → VendorsRoutes-DwomB3zm.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-B63B7RbG.js → WiseConfirmationScreen-BC7k73C3.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CZ-mVo79.js → ZeniAccountRoutes-6G8fVXON.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BkBxUanJ.js → ZeniAccountStatementScreen-CMk5KOCO.js} +1 -1
- package/dist/assets/{accountMappingHelper-D9GxJ4jJ.js → accountMappingHelper-eL9XJ0hM.js} +1 -1
- package/dist/assets/{analytics-BSiwA26E.js → analytics-DOSt68hW.js} +1 -1
- package/dist/assets/{analyticsHelper-Vk8jtaRR.js → analyticsHelper-DpuSAcdJ.js} +1 -1
- package/dist/assets/{core-Drb9PBdf.js → core-BLE-efAE.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BeDShQ8t.js → decodeURIComponentSafe-Bwl2ftU9.js} +1 -1
- package/dist/assets/{dnd-BrXK45tY.js → dnd-_7Bcanxg.js} +1 -1
- package/dist/assets/{empty-De4DQHyL.js → empty-DawNxSIf.js} +1 -1
- package/dist/assets/{empty-CWmPtLB4.js → empty-DsF-r_38.js} +1 -1
- package/dist/assets/{emptyVideoElement-BiGfqLLw.js → emptyVideoElement-D3e7J9mt.js} +1 -1
- package/dist/assets/{epic-Bbr0Pn8Q.js → epic-CFCbdQa5.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-X3OcZ-IX.js → expenseAutomationHelper-CeE0lEsm.js} +1 -1
- package/dist/assets/{getLocaleForTenant-DdWfA4jD.js → getLocaleForTenant-DtkHbzuc.js} +1 -1
- package/dist/assets/{index-t6kaSbkJ.js → index-B_crlpCt.js} +1 -1
- package/dist/assets/{index-CYlJ1a_s.js → index-CRJkFvq1.js} +1 -1
- package/dist/assets/{index-D05GaSwv.js → index-ClQj7mfP.js} +1 -1
- package/dist/assets/{index-Rm-5en55.js → index-CxmRqFuX.js} +1 -1
- package/dist/assets/{index-z_GphMeq.js → index-DByp7gYR.js} +8 -8
- package/dist/assets/{index-DIUoYuXz.js → index-DDiWh_gu.js} +1 -1
- package/dist/assets/{index-Bt49Udfl.js → index-DIZkTgPC.js} +1 -1
- package/dist/assets/{index-CfHkHPtG.js → index-DvSNyGXH.js} +2 -2
- package/dist/assets/{lexical-5AsGuqwY.js → lexical-CRb0eiRh.js} +1 -1
- package/dist/assets/{liveblocks-njwIYHC1.js → liveblocks-DsfYQPDU.js} +1 -1
- package/dist/assets/{lottie-C-ls43Md.js → lottie-CvlQ31Z0.js} +1 -1
- package/dist/assets/{mui-B5W8_mOr.js → mui-DsLgO0pD.js} +1 -1
- package/dist/assets/{pathToGoBack-BVrXlWbG.js → pathToGoBack-CA4HTT5M.js} +1 -1
- package/dist/assets/{pdf-BZk_6t2l.js → pdf-Nx2bnRAL.js} +3 -3
- package/dist/assets/{pdf-lib-DPpp3HiM.js → pdf-lib-bba0IcK_.js} +1 -1
- package/dist/assets/{plaid-Cr5PEIle.js → plaid-CsR4G1V6.js} +1 -1
- package/dist/assets/{pusher-CSQbRJHx.js → pusher-BNgRZjBz.js} +1 -1
- package/dist/assets/{react-Dh24EN9G.js → react-B2lUtNPV.js} +1 -1
- package/dist/assets/{react-DctGkwQV.js → react-BzXapfJl.js} +1 -1
- package/dist/assets/{react-N1WgNt-u.js → react-Cv_cvXX7.js} +1 -1
- package/dist/assets/{react-DYFog7aV.js → react-D72JaZj8.js} +1 -1
- package/dist/assets/{react-CXOn4Sf8.js → react-DlNNtpZg.js} +1 -1
- package/dist/assets/{react-mPSX53PV.js → react-bNqDJZ_D.js} +1 -1
- package/dist/assets/{recharts-CA6HYyTi.js → recharts-BrF9RV-y.js} +1 -1
- package/dist/assets/{reportTimeframe-BbZLWisn.js → reportTimeframe-iR64H8K5.js} +1 -1
- package/dist/assets/{routePaths-DR8gB3XS.js → routePaths-Bywswu4r.js} +1 -1
- package/dist/assets/{sentry-VFPS4V5K.js → sentry-BOcQ3kj3.js} +1 -1
- package/dist/assets/{stripSplatSuffix-DKTWsyEu.js → stripSplatSuffix-CdLD7Q-9.js} +1 -1
- package/dist/assets/{url-DK4U3B1Z.js → url-Bg72l38C.js} +1 -1
- package/dist/assets/{url-CvFWVqy3.js → url-HoGgtb9G.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-C8BSOHSu.js → useActualMatchingMatchDetail-BLrdVfvU.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CyHYQDPy.js → useAiCfoDashboardSuggestedQuestionsChips-B5R3NZLn.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BV1kovUD.js → useAskAiCfoHostNavButtonProps-DJfxJxgV.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BW-fScDD.js → useChargeCardPusherEvents-BX1c4wSC.js} +1 -1
- package/dist/assets/{useDeviceId-B5JBZYk7.js → useDeviceId-BkdpcqBS.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-DQJDDPj6.js → useEmailConnectResultRefresh-CmeR8OjB.js} +1 -1
- package/dist/assets/{useEnsureVendorListLoaded-T6HLY1O3.js → useEnsureVendorListLoaded-CllPhnHH.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CE7-w0Ve.js → useInitialThreadRequest-vezVMaGs.js} +1 -1
- package/dist/assets/{useIsCustomersTabEnabled-CxdytBTD.js → useIsCustomersTabEnabled-DWpqS9JG.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-D-MaKZ1u.js → useTaskManagerAccess-g91qWg_Z.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-UBdwYUHJ.js → useTaskManagerPusherEvents-Sy36jLlk.js} +1 -1
- package/dist/assets/{utils-CibnWgOj.js → utils-Dl4IzX4w.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BLWvlaZt.js → withTransactionSidePanel-CJHd-i6O.js} +1 -1
- package/dist/assets/{zeni-epic-state-9qkFzYai.js → zeni-epic-state-Cj-eqUB4.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-D_IpH71K.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-H9oLbmaI.js +0 -1
- package/dist/assets/NotFoundScreen-BThXAXPU.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 E5e,a as m,r as tm,g as ZCt,p as pae,d as x$e,f as Hrn,s as y$e,i as Urn,w as Wrn,j as Qrn,S as Yrn,k as Grn,l as qrn,m as Krn,n as Zrn,o as Jrn,q as Xrn}from"./sentry-VFPS4V5K.js";import{L as ean,C as b$e,_ as Wp,a as tan,b as Gz,c as nan,d as ate,e as qz,u as JCt,T as ian,f as oan,g as ran,h as aan,i as san,k as XCt,l as lan,m as can,j as on}from"./liveblocks-njwIYHC1.js";import{f as eAt,r as ja,P as Rl,R as dan,O as uan,N as tAt,u as Pp,g as Hg,h as ste,i as nAt,j as _r,m as rwe,s as qK,k as iAt,l as pan,n as han,o as q1,p as man,B as gan}from"./core-Drb9PBdf.js";import{L as w$e,bl as fan,bm as xan,bn as Kz,bo as yan,bp as ban,bq as ws,br as qt,bs as DT,bt as oAt,bu as C$e,bv as Q3,bw as wan,bx as b7,by as Bs,bz as Can,bA as Aan,bB as lte,bC as van,bD as V1,bE as zp,bF as MR,bG as F9,bH as hn,bI as rAt,bJ as M1,bK as Sa,bL as $D,bM as aAt,bN as sAt,bO as awe,bP as O4,bQ as Vu,bR as Ry,bS as San,bT as jc,bU as kan,bV as TT,bW as jan,bX as $an,bY as KK,bZ as Ean,b_ as Ian,b$ as ZK,c0 as Dan,c1 as Tan,c2 as R9,c3 as A$e,c4 as Lan,c5 as Ban,c6 as Pan,c7 as Man,c8 as Oan,c9 as Fan,ca as Ran,cb as zy,cc as cte,cd as zan,ce as dte,cf as ute,cg as pte,ch as swe,ci as Gv,cj as qv,ck as Zz,cl as ED,cm as ID,cn as Kv,co as hte,cp as Av,cq as Nan,cr as v$e,cs as _an,ct as Van,cu as Han,cv as Uan,cw as lAt,cx as Wan,cy as Qan,cz as vw,cA as S$e,cB as Yan,cC as Gan,cD as qan,cE as TS,cF as LS,cG as cAt,cH as dAt,cI as uAt,cJ as lwe,cK as Kan,cL as pAt,cM as Zan,cN as JK,cO as hAt,cP as Jan,cQ as mAt,cR as Xan,cS as dO,cT as esn,cU as tsn,cV as k$e,cW as nsn,cX as cwe,cY as dwe,cZ as isn,c_ as osn,c$ as rsn,d0 as asn,d1 as V_,d2 as DD,d3 as H_,d4 as ssn,d5 as lsn,d6 as gAt,d7 as csn,d8 as dsn,d9 as usn,da as psn,db as hsn,dc as fAt,dd as j$e,de as msn,df as uwe,dg as gsn,dh as fsn,di as xsn,dj as xAt,dk as iu,dl as _l,dm as mte,dn as ysn,dp as bsn,dq as $1,dr as yAt,ds as wsn,dt as OR,du as vv,dv as cs,dw as $$e,dx as Csn,dy as Asn,dz as vsn,dA as bAt,dB as pwe,dC as U_,dD as wAt,dE as Ssn,dF as ksn,dG as jsn,dH as $sn,dI as Esn,dJ as gg,dK as Isn,dL as Dsn,dM as Tsn,dN as W_,dO as Zv,dP as gte,dQ as Lsn,dR as Bsn,dS as BS,dT as O1,dU as CAt,dV as AAt,dW as Psn,dX as vAt,dY as Msn,dZ as Osn,d_ as Fsn,d$ as Rsn,e0 as LT,e1 as hwe,e2 as mwe,e3 as zsn,e4 as SAt,e5 as kAt,e6 as jAt,e7 as $At,e8 as EAt,e9 as IAt,ea as Nsn,_ as $d,eb as BT,ec as _sn,ed as E$e,ee as fte,ef as Vsn,eg as Hsn,eh as DAt,ei as Usn,ej as hF,ek as dm,el as Ny,em as TAt,en as LAt,eo as Wsn,ep as BAt,eq as I5e,er as Qsn,es as fq,et as Ysn,eu as Gsn,ev as qsn,ew as Ksn,ex as Zsn,ey as PAt,ez as MAt,eA as Jsn,eB as Xsn,eC as OAt,eD as mF,eE as gF,eF as FAt,eG as eln,eH as tln,eI as gwe,eJ as nln,eK as iln,eL as oln,eM as fwe,eN as RAt,eO as zAt,eP as xwe,eQ as PT,eR as xte,eS as ywe,eT as bwe,eU as wwe,eV as Cwe,eW as rln,eX as aln,eY as NAt,eZ as I$e,e_ as sln,e$ as lln,f0 as F1,f1 as cln,f2 as yte,f3 as _At,f4 as VAt,f5 as dln,f6 as Awe,f7 as vwe,f8 as uln,f9 as pln,fa as hln,fb as mln,fc as gln,fd as fln,fe as Dg,ff as D$e,fg as HAt,fh as xln,fi as yln,fj as bln,fk as UAt,fl as WAt,fm as QAt,fn as YAt,fo as GAt,fp as qAt,fq as wln,fr as TD,fs as Cln,ft as Aln,fu as vln,fv as Sln,fw as KAt,fx as ZAt,fy as T$e,fz as L$e,fA as kln,fB as jln,fC as B$e,fD as P$e,fE as $ln,fF as Eln,fG as D5e,fH as Iln,v as Dln,fI as bte,fJ as Np,fK as JAt,fL as XAt,fM as Tln,fN as Lln,fO as M$e,fP as Bln,fQ as Pln,fR as Mln,fS as Oln,fT as Fln,fU as Rln,fV as zln,fW as Nln,fX as _ln,fY as Vln,fZ as Hln,f_ as Uln,f$ as Wln,g0 as Qln,g1 as Yln,g2 as Gln,g3 as qln,g4 as Kln,g5 as Zln,g6 as O$e,g7 as Jln,g8 as Xln,g9 as ecn,ga as tcn,gb as ncn,gc as evt,gd as wte,ge as Swe,gf as tvt,gg as icn,gh as ocn,gi as rcn,gj as nvt,gk as F$e,gl as ivt,gm as ovt,gn as acn,go as rvt,gp as avt,gq as scn,gr as lcn,gs as T5e,gt as ccn,gu as fF,gv as dcn,gw as ucn,gx as pcn,gy as hcn,gz as mcn,gA as gcn,gB as fcn,gC as xcn,gD as ycn,gE as bcn,gF as wcn,gG as Ccn,gH as svt,gI as Acn,gJ as vcn,gK as Scn,gL as R$e,gM as kcn,gN as jcn,gO as $cn,gP as Ecn,gQ as Icn,gR as Dcn,gS as Tcn,gT as lvt,gU as cvt,gV as Lcn,gW as dvt,gX as Bcn,gY as Pcn,gZ as L5e,g_ as Mcn,g$ as Ocn,h0 as Fcn,h1 as Rcn,h2 as zcn,h3 as Ncn,h4 as z$e,h5 as _cn,h6 as Vcn,h7 as Hcn}from"./zeni-epic-state-9qkFzYai.js";import{j as Mo,c as Ie,k as hi,a as N$e,b as uvt,C as pvt,T as Ucn,M as Wcn,n as a,u as Pe,d as si,e as hvt,G as Cte,A as _$e,R as Qcn,D as Jc,F as Ycn,f as XK,g as B5e,P as Y3,h as Gcn,S as Ate,i as qcn,l as Kcn,m as FR,o as Zcn,s as PS,p as Jcn}from"./mui-B5W8_mOr.js";import{r as Xcn,m as sg}from"./analytics-BSiwA26E.js";import{u as W1}from"./plaid-Cr5PEIle.js";import{D as kwe,H as vte,g as edn,O as tdn,S as ndn,T as idn,u as jwe,a as $we,b as odn}from"./dnd-BrXK45tY.js";import{l as Ewe}from"./stripe-cKAAJElX.js";import{L as NI}from"./lottie-C-ls43Md.js";import{r as Xc}from"./lexical-5AsGuqwY.js";import{D as P5e,P as M5e,_ as mvt,a as gvt}from"./pdf-BZk_6t2l.js";import{R as Jv,G as z9,H as ml,X as Fa,Y as ka,I as $l,J as N9,K as Fg,L as Sv,M as Wc,N as Rg,O as fvt,P as rdn,Q as adn,S as Ste,U as sdn,V as Iwe,W as ldn,Z as cdn,_ as ddn,d as udn}from"./recharts-CA6HYyTi.js";import{r as pdn,n as V$e}from"./utils-CibnWgOj.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]="2096c85c-76f2-4a25-8c3c-038ca6806b7b",e._sentryDebugIdIdentifier="sentry-dbid-2096c85c-76f2-4a25-8c3c-038ca6806b7b")}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 H$e,Q_={},hdn=(function(){if(H$e)return Q_;H$e=1;var e=eAt();return Q_.createRoot=e.createRoot,Q_.hydrateRoot=e.hydrateRoot,Q_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof E5e<"u"?E5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U$e,W$e,Q$e={exports:{}},zL={};function xvt(){return W$e||(W$e=1,Q$e.exports=(function(){if(U$e)return zL;U$e=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return zL.Fragment=i,zL.jsx=c,zL.jsxs=c,zL})()),Q$e.exports}var t=xvt();const mdn=m.createContext(null),hae={didCatch:!1,error:null};let gdn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hae}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(hae)}}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(hae))}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(mdn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Y$e,G$e,q$e,mae,K$e,Z$e,J$e,X$e,eEe,gae={exports:{}};function fdn(){return Y$e||(Y$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(gae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(Y){s=!!Y},d=function(){return s},u=function(Y){r=Y},p=function(){return r};function h(Y){return document.createElement(Y)}function g(Y,X){var pe,xe,Ae=Y.length;for(pe=0;pe<Ae;pe+=1)for(var Ee in xe=Y[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(Y){function X(){}return X.prototype=Y,X}var x=(function(){function Y(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return Y.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 Y}})(),y=(function(){function Y(pe,xe){var Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):Y(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:Y})();function b(Y){return Array.apply(null,{length:Y})}var w=!0,C=null,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(Y,X,pe,xe){this.type=Y,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(Y,X){this.type=Y,this.direction=X<0?-1:1}function _(Y,X,pe,xe){this.type=Y,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(Y,X,pe){this.type=Y,this.firstFrame=X,this.totalFrames=pe}function T(Y,X){this.type=Y,this.target=X}function M(Y,X){this.type="renderFrameError",this.nativeError=Y,this.currentTime=X}function O(Y){this.type="configError",this.nativeError=Y}var H=(function(){var Y=0;return function(){return A+"__lottie_element_"+(Y+=1)}})();function V(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,zt,Jt;switch(Ye=pe*(1-X),zt=pe*(1-(Qe=6*Y-(Re=Math.floor(6*Y)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ae=Jt,Ee=Ye;break;case 1:xe=zt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=zt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=zt}return[xe,Ae,Ee]}function W(Y,X,pe){var xe,Ae=Math.max(Y,X,pe),Ee=Math.min(Y,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){case Ee:xe=0;break;case Y:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-Y+2*Re,xe/=6*Re;break;case pe:xe=Y-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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 G(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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 Y,X,pe=[];for(Y=0;Y<256;Y+=1)X=Y.toString(16),pe[Y]=X.length===1?"0"+X:X})();var K=function(Y){w=!!Y},J=function(){return w},te=function(Y){C=Y},ee=function(){return C},ne=function(Y){E=Y},oe=function(){return E},re=function(Y){A=Y};function se(Y){return document.createElementNS(i,Y)}function ge(Y){return ge=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},ge(Y)}var ue=(function(){var Y,X,pe=1,xe=[],Ae={onmessage:function(){},postMessage:function(pt){Y({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return Y=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,ut,ze,ht,wt,fi,Zo=Vt.length;for(ut=0;ut<Zo;ut+=1)if("ks"in(xt=Vt[ut])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(fi=Po[ze].pt.k.length,wt=0;wt<fi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,ut=Vt.length;for(xt=0;xt<ut;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,ut=xn.length;xt<ut;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,ut;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(ut=Vt[xn].ks.k.length,xt=0;xt<ut;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(ut){var ze=ut.t.d;ut.t.d={k:[{s:ze,t:0}]}}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===5&&xn(ut[ze])}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,ut=xn.chars.length;for(xt=0;xt<ut;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Nt=(function(){var Vt=[5,7,15];function xn(ut){var ze=ut.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===5&&xn(ut[ze])}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(ut){var ze,ht,wt,fi=ut.length;for(ze=0;ze<fi;ze+=1)if(ut[ze].ty==="gr")xn(ut[ze].it);else if(ut[ze].ty==="fl"||ut[ze].ty==="st")if(ut[ze].c.k&&ut[ze].c.k[0].i)for(wt=ut[ze].c.k.length,ht=0;ht<wt;ht+=1)ut[ze].c.k[ht].s&&(ut[ze].c.k[ht].s[0]/=255,ut[ze].c.k[ht].s[1]/=255,ut[ze].c.k[ht].s[2]/=255,ut[ze].c.k[ht].s[3]/=255),ut[ze].c.k[ht].e&&(ut[ze].c.k[ht].e[0]/=255,ut[ze].c.k[ht].e[1]/=255,ut[ze].c.k[ht].e[2]/=255,ut[ze].c.k[ht].e[3]/=255);else ut[ze].c.k[0]/=255,ut[ze].c.k[1]/=255,ut[ze].c.k[2]/=255,ut[ze].c.k[3]/=255}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===4&&xn(ut[ze].shapes)}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(ut){var ze,ht,wt;for(ze=ut.length-1;ze>=0;ze-=1)if(ut[ze].ty==="sh")if(ut[ze].ks.k.i)ut[ze].ks.k.c=ut[ze].closed;else for(wt=ut[ze].ks.k.length,ht=0;ht<wt;ht+=1)ut[ze].ks.k[ht].s&&(ut[ze].ks.k[ht].s[0].c=ut[ze].closed),ut[ze].ks.k[ht].e&&(ut[ze].ks.k[ht].e[0].c=ut[ze].closed);else ut[ze].ty==="gr"&&xn(ut[ze].it)}function xt(ut){var ze,ht,wt,fi,Zo,Po,wa=ut.length;for(ht=0;ht<wa;ht+=1){if((ze=ut[ht]).hasMask){var Jo=ze.masksProperties;for(fi=Jo.length,wt=0;wt<fi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})();function li(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),Nt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=li,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=Nt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function zt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:zt,loadData:Jt,completeAnimation:et}})(),ce=(function(){var Y=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var We=Xe.getContext("2d");return We.fillStyle="rgba(0,0,0,0)",We.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,We,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(We){var ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=se("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",We),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Re(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.src=We;var qe={img:Ne,assetData:Xe};return qe}function Qe(Xe){var We={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){We.img=qe,this._footageLoaded()}).bind(this),(function(){We.img={},this._footageLoaded()}).bind(this)),We}function Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;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 zt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:zt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(Y,X){if(this._cbs[Y])for(var pe=this._cbs[Y],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(Y,X){return this._cbs[Y]||(this._cbs[Y]=[]),this._cbs[Y].push(X),(function(){this.removeEventListener(Y,X)}).bind(this)},removeEventListener:function(Y,X){if(X){if(this._cbs[Y]){for(var pe=0,xe=this._cbs[Y].length;pe<xe;)this._cbs[Y][pe]===X&&(this._cbs[Y].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[Y].length||(this._cbs[Y]=null)}}else this._cbs[Y]=null}};var le=(function(){function Y(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-Cj-eqUB4.js","assets/sentry-BOcQ3kj3.js","assets/core-BLE-efAE.js","assets/index-DvSNyGXH.js","assets/DefaultTenantHome-C9USEe2D.js","assets/mui-DsLgO0pD.js","assets/getLocaleForTenant-DtkHbzuc.js","assets/analytics-DOSt68hW.js","assets/utils-Dl4IzX4w.js","assets/AppDrawer-BNrm6Unj.js","assets/InboxNotificationsProvider-DgU7-WH3.js","assets/useTaskManagerAccess-g91qWg_Z.js","assets/useIsCustomersTabEnabled-DWpqS9JG.js","assets/expenseAutomationHelper-CeE0lEsm.js","assets/ScreenRoutes-CQPbRX2a.js","assets/analyticsHelper-DpuSAcdJ.js","assets/ConnectionAuthScreen-BPHZkh6G.js","assets/AccountMappingScreen-CNps2c4g.js","assets/MobileAppDrawer-QsBOZtGR.js","assets/QBOConnectionScreen-BvJN0vdq.js","assets/empty-DawNxSIf.js","assets/index-CxmRqFuX.js","assets/url-HoGgtb9G.js","assets/index-B_crlpCt.js","assets/decodeURIComponentSafe-Bwl2ftU9.js","assets/accountMappingHelper-eL9XJ0hM.js","assets/SignInScreen-CyZOVBTb.js","assets/useDeviceId-BkdpcqBS.js","assets/MagicLinkSignInScreen-cjFRT0pp.js","assets/NotFoundScreen-62ZwPZD8.js","assets/MagicLinkRoutes-DJxwtwLL.js","assets/PaymentLinkScreen-CtYs51-a.js","assets/WiseConfirmationScreen-BC7k73C3.js","assets/HubSpotOAuthCallbackScreen-CpWODxVs.js","assets/CustomerOnboardingAuthScreen-Cud9qjqo.js","assets/SignOutScreen-BzT1GyXB.js","assets/OAuthConsentScreen-oLGZ4UKO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as E5e,a as m,r as tm,g as ZCt,p as pae,d as x$e,f as Hrn,s as y$e,i as Urn,w as Wrn,j as Qrn,S as Yrn,k as Grn,l as qrn,m as Krn,n as Zrn,o as Jrn,q as Xrn}from"./sentry-BOcQ3kj3.js";import{L as ean,C as b$e,_ as Wp,a as tan,b as Gz,c as nan,d as ate,e as qz,u as JCt,T as ian,f as oan,g as ran,h as aan,i as san,k as XCt,l as lan,m as can,j as on}from"./liveblocks-DsfYQPDU.js";import{f as eAt,r as ja,P as Rl,R as dan,O as uan,N as tAt,u as Pp,g as Hg,h as ste,i as nAt,j as _r,m as rwe,s as qK,k as iAt,l as pan,n as han,o as q1,p as man,B as gan}from"./core-BLE-efAE.js";import{L as w$e,bl as fan,bm as xan,bn as Kz,bo as yan,bp as ban,bq as ws,br as qt,bs as DT,bt as oAt,bu as C$e,bv as Q3,bw as wan,bx as b7,by as Bs,bz as Can,bA as Aan,bB as lte,bC as van,bD as V1,bE as zp,bF as MR,bG as F9,bH as hn,bI as rAt,bJ as M1,bK as Sa,bL as $D,bM as aAt,bN as sAt,bO as awe,bP as O4,bQ as Vu,bR as Ry,bS as San,bT as jc,bU as kan,bV as TT,bW as jan,bX as $an,bY as KK,bZ as Ean,b_ as Ian,b$ as ZK,c0 as Dan,c1 as Tan,c2 as R9,c3 as A$e,c4 as Lan,c5 as Ban,c6 as Pan,c7 as Man,c8 as Oan,c9 as Fan,ca as Ran,cb as zy,cc as cte,cd as zan,ce as dte,cf as ute,cg as pte,ch as swe,ci as Gv,cj as qv,ck as Zz,cl as ED,cm as ID,cn as Kv,co as hte,cp as Av,cq as Nan,cr as v$e,cs as _an,ct as Van,cu as Han,cv as Uan,cw as lAt,cx as Wan,cy as Qan,cz as vw,cA as S$e,cB as Yan,cC as Gan,cD as qan,cE as TS,cF as LS,cG as cAt,cH as dAt,cI as uAt,cJ as lwe,cK as Kan,cL as pAt,cM as Zan,cN as JK,cO as hAt,cP as Jan,cQ as mAt,cR as Xan,cS as dO,cT as esn,cU as tsn,cV as k$e,cW as nsn,cX as cwe,cY as dwe,cZ as isn,c_ as osn,c$ as rsn,d0 as asn,d1 as V_,d2 as DD,d3 as H_,d4 as ssn,d5 as lsn,d6 as gAt,d7 as csn,d8 as dsn,d9 as usn,da as psn,db as hsn,dc as fAt,dd as j$e,de as msn,df as uwe,dg as gsn,dh as fsn,di as xsn,dj as xAt,dk as iu,dl as _l,dm as mte,dn as ysn,dp as bsn,dq as $1,dr as yAt,ds as wsn,dt as OR,du as vv,dv as cs,dw as $$e,dx as Csn,dy as Asn,dz as vsn,dA as bAt,dB as pwe,dC as U_,dD as wAt,dE as Ssn,dF as ksn,dG as jsn,dH as $sn,dI as Esn,dJ as gg,dK as Isn,dL as Dsn,dM as Tsn,dN as W_,dO as Zv,dP as gte,dQ as Lsn,dR as Bsn,dS as BS,dT as O1,dU as CAt,dV as AAt,dW as Psn,dX as vAt,dY as Msn,dZ as Osn,d_ as Fsn,d$ as Rsn,e0 as LT,e1 as hwe,e2 as mwe,e3 as zsn,e4 as SAt,e5 as kAt,e6 as jAt,e7 as $At,e8 as EAt,e9 as IAt,ea as Nsn,_ as $d,eb as BT,ec as _sn,ed as E$e,ee as fte,ef as Vsn,eg as Hsn,eh as DAt,ei as Usn,ej as hF,ek as dm,el as Ny,em as TAt,en as LAt,eo as Wsn,ep as BAt,eq as I5e,er as Qsn,es as fq,et as Ysn,eu as Gsn,ev as qsn,ew as Ksn,ex as Zsn,ey as PAt,ez as MAt,eA as Jsn,eB as Xsn,eC as OAt,eD as mF,eE as gF,eF as FAt,eG as eln,eH as tln,eI as gwe,eJ as nln,eK as iln,eL as oln,eM as fwe,eN as RAt,eO as zAt,eP as xwe,eQ as PT,eR as xte,eS as ywe,eT as bwe,eU as wwe,eV as Cwe,eW as rln,eX as aln,eY as NAt,eZ as I$e,e_ as sln,e$ as lln,f0 as F1,f1 as cln,f2 as yte,f3 as _At,f4 as VAt,f5 as dln,f6 as Awe,f7 as vwe,f8 as uln,f9 as pln,fa as hln,fb as mln,fc as gln,fd as fln,fe as Dg,ff as D$e,fg as HAt,fh as xln,fi as yln,fj as bln,fk as UAt,fl as WAt,fm as QAt,fn as YAt,fo as GAt,fp as qAt,fq as wln,fr as TD,fs as Cln,ft as Aln,fu as vln,fv as Sln,fw as KAt,fx as ZAt,fy as T$e,fz as L$e,fA as kln,fB as jln,fC as B$e,fD as P$e,fE as $ln,fF as Eln,fG as D5e,fH as Iln,v as Dln,fI as bte,fJ as Np,fK as JAt,fL as XAt,fM as Tln,fN as Lln,fO as M$e,fP as Bln,fQ as Pln,fR as Mln,fS as Oln,fT as Fln,fU as Rln,fV as zln,fW as Nln,fX as _ln,fY as Vln,fZ as Hln,f_ as Uln,f$ as Wln,g0 as Qln,g1 as Yln,g2 as Gln,g3 as qln,g4 as Kln,g5 as Zln,g6 as O$e,g7 as Jln,g8 as Xln,g9 as ecn,ga as tcn,gb as ncn,gc as evt,gd as wte,ge as Swe,gf as tvt,gg as icn,gh as ocn,gi as rcn,gj as nvt,gk as F$e,gl as ivt,gm as ovt,gn as acn,go as rvt,gp as avt,gq as scn,gr as lcn,gs as T5e,gt as ccn,gu as fF,gv as dcn,gw as ucn,gx as pcn,gy as hcn,gz as mcn,gA as gcn,gB as fcn,gC as xcn,gD as ycn,gE as bcn,gF as wcn,gG as Ccn,gH as svt,gI as Acn,gJ as vcn,gK as Scn,gL as R$e,gM as kcn,gN as jcn,gO as $cn,gP as Ecn,gQ as Icn,gR as Dcn,gS as Tcn,gT as lvt,gU as cvt,gV as Lcn,gW as dvt,gX as Bcn,gY as Pcn,gZ as L5e,g_ as Mcn,g$ as Ocn,h0 as Fcn,h1 as Rcn,h2 as zcn,h3 as Ncn,h4 as z$e,h5 as _cn,h6 as Vcn,h7 as Hcn}from"./zeni-epic-state-Cj-eqUB4.js";import{j as Mo,c as Ie,k as hi,a as N$e,b as uvt,C as pvt,T as Ucn,M as Wcn,n as a,u as Pe,d as si,e as hvt,G as Cte,A as _$e,R as Qcn,D as Jc,F as Ycn,f as XK,g as B5e,P as Y3,h as Gcn,S as Ate,i as qcn,l as Kcn,m as FR,o as Zcn,s as PS,p as Jcn}from"./mui-DsLgO0pD.js";import{r as Xcn,m as sg}from"./analytics-DOSt68hW.js";import{u as W1}from"./plaid-CsR4G1V6.js";import{D as kwe,H as vte,g as edn,O as tdn,S as ndn,T as idn,u as jwe,a as $we,b as odn}from"./dnd-_7Bcanxg.js";import{l as Ewe}from"./stripe-cKAAJElX.js";import{L as NI}from"./lottie-CvlQ31Z0.js";import{r as Xc}from"./lexical-CRb0eiRh.js";import{D as P5e,P as M5e,_ as mvt,a as gvt}from"./pdf-Nx2bnRAL.js";import{R as Jv,G as z9,H as ml,X as Fa,Y as ka,I as $l,J as N9,K as Fg,L as Sv,M as Wc,N as Rg,O as fvt,P as rdn,Q as adn,S as Ste,U as sdn,V as Iwe,W as ldn,Z as cdn,_ as ddn,d as udn}from"./recharts-BrF9RV-y.js";import{r as pdn,n as V$e}from"./utils-Dl4IzX4w.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]="50724e62-ea2b-4dba-9608-23ac7d075af9",e._sentryDebugIdIdentifier="sentry-dbid-50724e62-ea2b-4dba-9608-23ac7d075af9")}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 H$e,Q_={},hdn=(function(){if(H$e)return Q_;H$e=1;var e=eAt();return Q_.createRoot=e.createRoot,Q_.hydrateRoot=e.hydrateRoot,Q_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof E5e<"u"?E5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U$e,W$e,Q$e={exports:{}},zL={};function xvt(){return W$e||(W$e=1,Q$e.exports=(function(){if(U$e)return zL;U$e=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return zL.Fragment=i,zL.jsx=c,zL.jsxs=c,zL})()),Q$e.exports}var t=xvt();const mdn=m.createContext(null),hae={didCatch:!1,error:null};let gdn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hae}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(hae)}}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(hae))}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(mdn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Y$e,G$e,q$e,mae,K$e,Z$e,J$e,X$e,eEe,gae={exports:{}};function fdn(){return Y$e||(Y$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(gae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(Y){s=!!Y},d=function(){return s},u=function(Y){r=Y},p=function(){return r};function h(Y){return document.createElement(Y)}function g(Y,X){var pe,xe,Ae=Y.length;for(pe=0;pe<Ae;pe+=1)for(var Ee in xe=Y[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(Y){function X(){}return X.prototype=Y,X}var x=(function(){function Y(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return Y.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 Y}})(),y=(function(){function Y(pe,xe){var Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):Y(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:Y})();function b(Y){return Array.apply(null,{length:Y})}var w=!0,C=null,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(Y,X,pe,xe){this.type=Y,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(Y,X){this.type=Y,this.direction=X<0?-1:1}function _(Y,X,pe,xe){this.type=Y,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(Y,X,pe){this.type=Y,this.firstFrame=X,this.totalFrames=pe}function T(Y,X){this.type=Y,this.target=X}function M(Y,X){this.type="renderFrameError",this.nativeError=Y,this.currentTime=X}function O(Y){this.type="configError",this.nativeError=Y}var H=(function(){var Y=0;return function(){return A+"__lottie_element_"+(Y+=1)}})();function V(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,zt,Jt;switch(Ye=pe*(1-X),zt=pe*(1-(Qe=6*Y-(Re=Math.floor(6*Y)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ae=Jt,Ee=Ye;break;case 1:xe=zt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=zt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=zt}return[xe,Ae,Ee]}function W(Y,X,pe){var xe,Ae=Math.max(Y,X,pe),Ee=Math.min(Y,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){case Ee:xe=0;break;case Y:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-Y+2*Re,xe/=6*Re;break;case pe:xe=Y-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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 G(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[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 Y,X,pe=[];for(Y=0;Y<256;Y+=1)X=Y.toString(16),pe[Y]=X.length===1?"0"+X:X})();var K=function(Y){w=!!Y},J=function(){return w},te=function(Y){C=Y},ee=function(){return C},ne=function(Y){E=Y},oe=function(){return E},re=function(Y){A=Y};function se(Y){return document.createElementNS(i,Y)}function ge(Y){return ge=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},ge(Y)}var ue=(function(){var Y,X,pe=1,xe=[],Ae={onmessage:function(){},postMessage:function(pt){Y({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return Y=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,ut,ze,ht,wt,fi,Zo=Vt.length;for(ut=0;ut<Zo;ut+=1)if("ks"in(xt=Vt[ut])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(fi=Po[ze].pt.k.length,wt=0;wt<fi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,ut=Vt.length;for(xt=0;xt<ut;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,ut=xn.length;xt<ut;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,ut;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(ut=Vt[xn].ks.k.length,xt=0;xt<ut;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(ut){var ze=ut.t.d;ut.t.d={k:[{s:ze,t:0}]}}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===5&&xn(ut[ze])}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,ut=xn.chars.length;for(xt=0;xt<ut;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Nt=(function(){var Vt=[5,7,15];function xn(ut){var ze=ut.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===5&&xn(ut[ze])}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(ut){var ze,ht,wt,fi=ut.length;for(ze=0;ze<fi;ze+=1)if(ut[ze].ty==="gr")xn(ut[ze].it);else if(ut[ze].ty==="fl"||ut[ze].ty==="st")if(ut[ze].c.k&&ut[ze].c.k[0].i)for(wt=ut[ze].c.k.length,ht=0;ht<wt;ht+=1)ut[ze].c.k[ht].s&&(ut[ze].c.k[ht].s[0]/=255,ut[ze].c.k[ht].s[1]/=255,ut[ze].c.k[ht].s[2]/=255,ut[ze].c.k[ht].s[3]/=255),ut[ze].c.k[ht].e&&(ut[ze].c.k[ht].e[0]/=255,ut[ze].c.k[ht].e[1]/=255,ut[ze].c.k[ht].e[2]/=255,ut[ze].c.k[ht].e[3]/=255);else ut[ze].c.k[0]/=255,ut[ze].c.k[1]/=255,ut[ze].c.k[2]/=255,ut[ze].c.k[3]/=255}function xt(ut){var ze,ht=ut.length;for(ze=0;ze<ht;ze+=1)ut[ze].ty===4&&xn(ut[ze].shapes)}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(ut){var ze,ht,wt;for(ze=ut.length-1;ze>=0;ze-=1)if(ut[ze].ty==="sh")if(ut[ze].ks.k.i)ut[ze].ks.k.c=ut[ze].closed;else for(wt=ut[ze].ks.k.length,ht=0;ht<wt;ht+=1)ut[ze].ks.k[ht].s&&(ut[ze].ks.k[ht].s[0].c=ut[ze].closed),ut[ze].ks.k[ht].e&&(ut[ze].ks.k[ht].e[0].c=ut[ze].closed);else ut[ze].ty==="gr"&&xn(ut[ze].it)}function xt(ut){var ze,ht,wt,fi,Zo,Po,wa=ut.length;for(ht=0;ht<wa;ht+=1){if((ze=ut[ht]).hasMask){var Jo=ze.masksProperties;for(fi=Jo.length,wt=0;wt<fi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(ut){if(ft(Vt,ut.v)&&(xt(ut.layers),ut.assets)){var ze,ht=ut.assets.length;for(ze=0;ze<ht;ze+=1)ut.assets[ze].layers&&xt(ut.assets[ze].layers)}}})();function li(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),Nt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=li,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=Nt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function zt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:zt,loadData:Jt,completeAnimation:et}})(),ce=(function(){var Y=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var We=Xe.getContext("2d");return We.fillStyle="rgba(0,0,0,0)",We.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,We,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(We){var ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=se("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",We),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Re(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.src=We;var qe={img:Ne,assetData:Xe};return qe}function Qe(Xe){var We={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){We.img=qe,this._footageLoaded()}).bind(this),(function(){We.img={},this._footageLoaded()}).bind(this)),We}function Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;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 zt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:zt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(Y,X){if(this._cbs[Y])for(var pe=this._cbs[Y],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(Y,X){return this._cbs[Y]||(this._cbs[Y]=[]),this._cbs[Y].push(X),(function(){this.removeEventListener(Y,X)}).bind(this)},removeEventListener:function(Y,X){if(X){if(this._cbs[Y]){for(var pe=0,xe=this._cbs[Y].length;pe<xe;)this._cbs[Y][pe]===X&&(this._cbs[Y].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[Y].length||(this._cbs[Y]=null)}}else this._cbs[Y]=null}};var le=(function(){function Y(X){for(var pe,xe=X.split(`\r
|
|
3
3
|
`),Ae={},Ee=0,Re=0;Re<xe.length;Re+=1)(pe=xe[Re].split(":")).length===2&&(Ae[pe[0]]=pe[1].trim(),Ee+=1);if(Ee===0)throw new Error;return Ae}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ae=X[xe],Ee={time:Ae.tm,duration:Ae.dr};try{Ee.payload=JSON.parse(X[xe].cm)}catch{try{Ee.payload=Y(X[xe].cm)}catch{Ee.payload={name:X[xe].cm}}}pe.push(Ee)}return pe}})(),de=(function(){function Y(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=Y,X}})(),he={},me=function(Y,X){he[Y]=X};function ye(Y){return he[Y]}function we(){if(he.canvas)return"canvas";for(var Y in he)if(he[Y])return Y;return""}function be(Y){return be=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},be(Y)}var Se=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 ce,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new F("drawnFrame",0,0,0),this.expressionsPlugin=ee()};g([ie],Se),Se.prototype.setParams=function(Y){(Y.wrapper||Y.container)&&(this.wrapper=Y.wrapper||Y.container);var X="svg";Y.animType?X=Y.animType:Y.renderer&&(X=Y.renderer);var pe=ye(X);this.renderer=new pe(this,Y.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,Y.loop===""||Y.loop===null||Y.loop===void 0||Y.loop===!0?this.loop=!0:Y.loop===!1?this.loop=!1:this.loop=parseInt(Y.loop,10),this.autoplay=!("autoplay"in Y)||Y.autoplay,this.name=Y.name?Y.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(Y,"autoloadSegments")||Y.autoloadSegments,this.assetsPath=Y.assetsPath,this.initialSegment=Y.initialSegment,Y.audioFactory&&this.audioController.setAudioFactory(Y.audioFactory),Y.animationData?this.setupAnimation(Y.animationData):Y.path&&(Y.path.lastIndexOf("\\")!==-1?this.path=Y.path.substr(0,Y.path.lastIndexOf("\\")+1):this.path=Y.path.substr(0,Y.path.lastIndexOf("/")+1),this.fileName=Y.path.substr(Y.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(Y.path,this.configAnimation,this.onSetupError))},Se.prototype.onSetupError=function(){this.trigger("data_failed")},Se.prototype.setupAnimation=function(Y){ue.completeAnimation(Y,this.configAnimation)},Se.prototype.setData=function(Y,X){X&&be(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:Y,animationData:X},xe=Y.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 Ee=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=Ee!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},Se.prototype.includeLayers=function(Y){Y.op>this.animationData.op&&(this.animationData.op=Y.op,this.totalFrames=Math.floor(Y.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,Ae=xe.length,Ee=Y.layers,Re=Ee.length;for(pe=0;pe<Re;pe+=1)for(X=0;X<Ae;){if(xe[X].id===Ee[pe].id){xe[X]=Ee[pe];break}X+=1}if((Y.chars||Y.fonts)&&(this.renderer.globalData.fontManager.addChars(Y.chars),this.renderer.globalData.fontManager.addFonts(Y.fonts,this.renderer.globalData.defs)),Y.assets)for(Ae=Y.assets.length,X=0;X<Ae;X+=1)this.animationData.assets.push(Y.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},Se.prototype.onSegmentComplete=function(Y){this.animationData=Y;var X=ee();X&&X.initExpressions(this),this.loadNextSegment()},Se.prototype.loadNextSegment=function(){var Y=this.animationData.segments;if(!Y||Y.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=Y.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))},Se.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Se.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Se.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Se.prototype.configAnimation=function(Y){if(this.renderer)try{this.animationData=Y,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(Y),Y.assets||(Y.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(Y.assets),this.markers=le(Y.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},Se.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Se.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 Y=ee();Y&&Y.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Se.prototype.resize=function(Y,X){var pe=typeof Y=="number"?Y:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},Se.prototype.setSubframe=function(Y){this.isSubframeEnabled=!!Y},Se.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")},Se.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(Y){this.triggerRenderFrameError(Y)}},Se.prototype.play=function(Y){Y&&this.name!==Y||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Se.prototype.pause=function(Y){Y&&this.name!==Y||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Se.prototype.togglePause=function(Y){Y&&this.name!==Y||(this.isPaused===!0?this.play():this.pause())},Se.prototype.stop=function(Y){Y&&this.name!==Y||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Se.prototype.getMarkerData=function(Y){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===Y)return X;return null},Se.prototype.goToAndStop=function(Y,X,pe){if(!pe||this.name===pe){var xe=Number(Y);if(isNaN(xe)){var Ae=this.getMarkerData(Y);Ae&&this.goToAndStop(Ae.time,!0)}else X?this.setCurrentRawFrameValue(Y):this.setCurrentRawFrameValue(Y*this.frameModifier);this.pause()}},Se.prototype.goToAndPlay=function(Y,X,pe){if(!pe||this.name===pe){var xe=Number(Y);if(isNaN(xe)){var Ae=this.getMarkerData(Y);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()}},Se.prototype.advanceTime=function(Y){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+Y*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"))}},Se.prototype.adjustSegment=function(Y,X){this.playCount=0,Y[1]<Y[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=Y[0]-Y[1],this.timeCompleted=this.totalFrames,this.firstFrame=Y[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):Y[1]>Y[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=Y[1]-Y[0],this.timeCompleted=this.totalFrames,this.firstFrame=Y[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},Se.prototype.setSegment=function(Y,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<Y?pe=Y:this.currentRawFrame+this.firstFrame>X&&(pe=X-Y)),this.firstFrame=Y,this.totalFrames=X-Y,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},Se.prototype.playSegments=function(Y,X){if(X&&(this.segments.length=0),be(Y[0])==="object"){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)this.segments.push(Y[pe])}else this.segments.push(Y);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Se.prototype.resetSegments=function(Y){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),Y&&this.checkSegments(0)},Se.prototype.checkSegments=function(Y){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),Y),!0)},Se.prototype.destroy=function(Y){Y&&this.name!==Y||!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)},Se.prototype.setCurrentRawFrameValue=function(Y){this.currentRawFrame=Y,this.gotoFrame()},Se.prototype.setSpeed=function(Y){this.playSpeed=Y,this.updaFrameModifier()},Se.prototype.setDirection=function(Y){this.playDirection=Y<0?-1:1,this.updaFrameModifier()},Se.prototype.setLoop=function(Y){this.loop=Y},Se.prototype.setVolume=function(Y,X){X&&this.name!==X||this.audioController.setVolume(Y)},Se.prototype.getVolume=function(){return this.audioController.getVolume()},Se.prototype.mute=function(Y){Y&&this.name!==Y||this.audioController.mute()},Se.prototype.unmute=function(Y){Y&&this.name!==Y||this.audioController.unmute()},Se.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Se.prototype.getPath=function(){return this.path},Se.prototype.getAssetsPath=function(Y){var X="";if(Y.e)X=Y.p;else if(this.assetsPath){var pe=Y.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=Y.u?Y.u:"",X+=Y.p;return X},Se.prototype.getAssetData=function(Y){for(var X=0,pe=this.assets.length;X<pe;){if(Y===this.assets[X].id)return this.assets[X];X+=1}return null},Se.prototype.hide=function(){this.renderer.hide()},Se.prototype.show=function(){this.renderer.show()},Se.prototype.getDuration=function(Y){return Y?this.totalFrames:this.totalFrames/this.frameRate},Se.prototype.updateDocumentData=function(Y,X,pe){try{this.renderer.getElementByPath(Y).updateDocumentData(X,pe)}catch{}},Se.prototype.trigger=function(Y){if(this._cbs&&this._cbs[Y])switch(Y){case"enterFrame":this.triggerEvent(Y,new F(Y,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(Y,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(Y,new _(Y,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(Y,new N(Y,this.frameMult));break;case"segmentStart":this.triggerEvent(Y,new z(Y,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(Y,new T(Y,this));break;default:this.triggerEvent(Y)}Y==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new F(Y,this.currentFrame,this.totalFrames,this.frameMult)),Y==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(Y,this.loop,this.playCount,this.frameMult)),Y==="complete"&&this.onComplete&&this.onComplete.call(this,new N(Y,this.frameMult)),Y==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(Y,this.firstFrame,this.totalFrames)),Y==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(Y,this))},Se.prototype.triggerRenderFrameError=function(Y){var X=new M(Y,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},Se.prototype.triggerConfigError=function(Y){var X=new O(Y,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Te=(function(){var Y={},X=[],pe=0,xe=0,Ae=0,Ee=!0,Re=!1;function Qe(xt){for(var ut=0,ze=xt.target;ut<xe;)X[ut].animation===ze&&(X.splice(ut,1),ut-=1,xe-=1,ze.isPaused||et()),ut+=1}function Ye(xt,ut){if(!xt)return null;for(var ze=0;ze<xe;){if(X[ze].elem===xt&&X[ze].elem!==null)return X[ze].animation;ze+=1}var ht=new Se;return pt(ht,xt),ht.setData(xt,ut),ht}function zt(){var xt,ut=X.length,ze=[];for(xt=0;xt<ut;xt+=1)ze.push(X[xt].animation);return ze}function Jt(){Ae+=1,Eo()}function et(){Ae-=1}function pt(xt,ut){xt.addEventListener("destroy",Qe),xt.addEventListener("_active",Jt),xt.addEventListener("_idle",et),X.push({elem:ut,animation:xt}),xe+=1}function At(xt){var ut=new Se;return pt(ut,null),ut.setParams(xt),ut}function Tt(xt,ut){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(xt,ut)}function Kt(xt,ut){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(xt,ut)}function en(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.play(xt)}function Xe(xt){var ut,ze=xt-pe;for(ut=0;ut<xe;ut+=1)X[ut].animation.advanceTime(ze);pe=xt,Ae&&!Re?window.requestAnimationFrame(Xe):Ee=!0}function We(xt){pe=xt,window.requestAnimationFrame(Xe)}function Ne(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.pause(xt)}function qe(xt,ut,ze){var ht;for(ht=0;ht<xe;ht+=1)X[ht].animation.goToAndStop(xt,ut,ze)}function ft(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.stop(xt)}function rn(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.togglePause(xt)}function sn(xt){var ut;for(ut=xe-1;ut>=0;ut-=1)X[ut].animation.destroy(xt)}function Nt(xt,ut,ze){var ht,wt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),fi=wt.length;for(ht=0;ht<fi;ht+=1)ze&&wt[ht].setAttribute("data-bm-type",ze),Ye(wt[ht],xt);if(ut&&fi===0){ze||(ze="svg");var Zo=document.getElementsByTagName("body")[0];Zo.innerText="";var Po=h("div");Po.style.width="100%",Po.style.height="100%",Po.setAttribute("data-bm-type",ze),Zo.appendChild(Po),Ye(Po,xt)}}function po(){var xt;for(xt=0;xt<xe;xt+=1)X[xt].animation.resize()}function Eo(){!Re&&Ae&&Ee&&(window.requestAnimationFrame(We),Ee=!1)}function li(){Re=!0}function Ko(){Re=!1,Eo()}function lo(xt,ut){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(xt,ut)}function Vt(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.mute(xt)}function xn(xt){var ut;for(ut=0;ut<xe;ut+=1)X[ut].animation.unmute(xt)}return Y.registerAnimation=Ye,Y.loadAnimation=At,Y.setSpeed=Tt,Y.setDirection=Kt,Y.play=en,Y.pause=Ne,Y.stop=ft,Y.togglePause=rn,Y.searchAnimations=Nt,Y.resize=po,Y.goToAndStop=qe,Y.destroy=sn,Y.freeze=li,Y.unfreeze=Ko,Y.setVolume=lo,Y.mute=Vt,Y.unmute=xn,Y.getRegisteredAnimations=zt,Y})(),Be=(function(){var Y={};Y.getBezierEasing=pe;var X={};function pe(We,Ne,qe,ft,rn){var sn=rn||("bez_"+We+"_"+Ne+"_"+qe+"_"+ft).replace(/\./g,"p");if(X[sn])return X[sn];var Nt=new Xe([We,Ne,qe,ft]);return X[sn]=Nt,Nt}var xe=4,Ae=.001,Ee=1e-7,Re=10,Qe=11,Ye=1/(Qe-1),zt=typeof Float32Array=="function";function Jt(We,Ne){return 1-3*Ne+3*We}function et(We,Ne){return 3*Ne-6*We}function pt(We){return 3*We}function At(We,Ne,qe){return((Jt(Ne,qe)*We+et(Ne,qe))*We+pt(Ne))*We}function Tt(We,Ne,qe){return 3*Jt(Ne,qe)*We*We+2*et(Ne,qe)*We+pt(Ne)}function Kt(We,Ne,qe,ft,rn){var sn,Nt,po=0;do(sn=At(Nt=Ne+(qe-Ne)/2,ft,rn)-We)>0?qe=Nt:Ne=Nt;while(Math.abs(sn)>Ee&&++po<Re);return Nt}function en(We,Ne,qe,ft){for(var rn=0;rn<xe;++rn){var sn=Tt(Ne,qe,ft);if(sn===0)return Ne;Ne-=(At(Ne,qe,ft)-We)/sn}return Ne}function Xe(We){this._p=We,this._mSampleValues=zt?new Float32Array(Qe):new Array(Qe),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(We){var Ne=this._p[0],qe=this._p[1],ft=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&ft===rn?We:We===0?0:We===1?1:At(this._getTForX(We),qe,rn)},_precompute:function(){var We=this._p[0],Ne=this._p[1],qe=this._p[2],ft=this._p[3];this._precomputed=!0,(We!==Ne||qe!==ft)&&this._calcSampleValues()},_calcSampleValues:function(){for(var We=this._p[0],Ne=this._p[2],qe=0;qe<Qe;++qe)this._mSampleValues[qe]=At(qe*Ye,We,Ne)},_getTForX:function(We){for(var Ne=this._p[0],qe=this._p[2],ft=this._mSampleValues,rn=0,sn=1,Nt=Qe-1;sn!==Nt&&ft[sn]<=We;++sn)rn+=Ye;var po=rn+(We-ft[--sn])/(ft[sn+1]-ft[sn])*Ye,Eo=Tt(po,Ne,qe);return Eo>=Ae?en(We,po,Ne,qe):Eo===0?po:Kt(We,rn,rn+Ye,Ne,qe)}},Y})(),Le=(function(){function Y(X){return X.concat(b(X.length))}return{double:Y}})(),Fe=(function(){return function(Y,X,pe){var xe=0,Ae=Y,Ee=b(Ae);function Re(){return xe?Ee[xe-=1]:X()}function Qe(Ye){xe===Ae&&(Ee=Le.double(Ee),Ae*=2),pe&&pe(Ye),Ee[xe]=Ye,xe+=1}return{newElement:Re,release:Qe}}})(),Me=(function(){function Y(){return{addedLength:0,percents:y("float32",oe()),lengths:y("float32",oe())}}return Fe(8,Y)})(),ke=(function(){function Y(){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,Y,X)})();function Ce(){var Y=Math;function X(pt,At,Tt,Kt,en,Xe){var We=pt*Kt+At*en+Tt*Xe-en*Kt-Xe*pt-Tt*At;return We>-.001&&We<.001}function pe(pt,At,Tt,Kt,en,Xe,We,Ne,qe){if(Tt===0&&Xe===0&&qe===0)return X(pt,At,Kt,en,We,Ne);var ft,rn=Y.sqrt(Y.pow(Kt-pt,2)+Y.pow(en-At,2)+Y.pow(Xe-Tt,2)),sn=Y.sqrt(Y.pow(We-pt,2)+Y.pow(Ne-At,2)+Y.pow(qe-Tt,2)),Nt=Y.sqrt(Y.pow(We-Kt,2)+Y.pow(Ne-en,2)+Y.pow(qe-Xe,2));return(ft=rn>sn?rn>Nt?rn-sn-Nt:Nt-sn-rn:Nt>sn?Nt-sn-rn:sn-rn-Nt)>-1e-4&&ft<1e-4}var xe=(function(){return function(pt,At,Tt,Kt){var en,Xe,We,Ne,qe,ft,rn=oe(),sn=0,Nt=[],po=[],Eo=Me.newElement();for(We=Tt.length,en=0;en<rn;en+=1){for(qe=en/(rn-1),ft=0,Xe=0;Xe<We;Xe+=1)Ne=k(1-qe,3)*pt[Xe]+3*k(1-qe,2)*qe*Tt[Xe]+3*(1-qe)*k(qe,2)*Kt[Xe]+k(qe,3)*At[Xe],Nt[Xe]=Ne,po[Xe]!==null&&(ft+=k(Nt[Xe]-po[Xe],2)),po[Xe]=Nt[Xe];ft&&(sn+=ft=$(ft)),Eo.percents[en]=qe,Eo.lengths[en]=sn}return Eo.addedLength=sn,Eo}})();function Ae(pt){var At,Tt=ke.newElement(),Kt=pt.c,en=pt.v,Xe=pt.o,We=pt.i,Ne=pt._length,qe=Tt.lengths,ft=0;for(At=0;At<Ne-1;At+=1)qe[At]=xe(en[At],en[At+1],Xe[At],We[At+1]),ft+=qe[At].addedLength;return Kt&&Ne&&(qe[At]=xe(en[At],en[0],Xe[At],We[0]),ft+=qe[At].addedLength),Tt.totalLength=ft,Tt}function Ee(pt){this.segmentLength=0,this.points=new Array(pt)}function Re(pt,At){this.partialLength=pt,this.point=At}var Qe=(function(){var pt={};return function(At,Tt,Kt,en){var Xe=(At[0]+"_"+At[1]+"_"+Tt[0]+"_"+Tt[1]+"_"+Kt[0]+"_"+Kt[1]+"_"+en[0]+"_"+en[1]).replace(/\./g,"p");if(!pt[Xe]){var We,Ne,qe,ft,rn,sn,Nt,po=oe(),Eo=0,li=null;At.length===2&&(At[0]!==Tt[0]||At[1]!==Tt[1])&&X(At[0],At[1],Tt[0],Tt[1],At[0]+Kt[0],At[1]+Kt[1])&&X(At[0],At[1],Tt[0],Tt[1],Tt[0]+en[0],Tt[1]+en[1])&&(po=2);var Ko=new Ee(po);for(qe=Kt.length,We=0;We<po;We+=1){for(Nt=b(qe),rn=We/(po-1),sn=0,Ne=0;Ne<qe;Ne+=1)ft=k(1-rn,3)*At[Ne]+3*k(1-rn,2)*rn*(At[Ne]+Kt[Ne])+3*(1-rn)*k(rn,2)*(Tt[Ne]+en[Ne])+k(rn,3)*Tt[Ne],Nt[Ne]=ft,li!==null&&(sn+=k(Nt[Ne]-li[Ne],2));Eo+=sn=$(sn),Ko.points[We]=new Re(sn,Nt),li=Nt}Ko.segmentLength=Eo,pt[Xe]=Ko}return pt[Xe]}})();function Ye(pt,At){var Tt=At.percents,Kt=At.lengths,en=Tt.length,Xe=j((en-1)*pt),We=pt*At.addedLength,Ne=0;if(Xe===en-1||Xe===0||We===Kt[Xe])return Tt[Xe];for(var qe=Kt[Xe]>We?-1:1,ft=!0;ft;)if(Kt[Xe]<=We&&Kt[Xe+1]>We?(Ne=(We-Kt[Xe])/(Kt[Xe+1]-Kt[Xe]),ft=!1):Xe+=qe,Xe<0||Xe>=en-1){if(Xe===en-1)return Tt[Xe];ft=!1}return Tt[Xe]+(Tt[Xe+1]-Tt[Xe])*Ne}function zt(pt,At,Tt,Kt,en,Xe){var We=Ye(en,Xe),Ne=1-We;return[Y.round(1e3*(Ne*Ne*Ne*pt[0]+(We*Ne*Ne+Ne*We*Ne+Ne*Ne*We)*Tt[0]+(We*We*Ne+Ne*We*We+We*Ne*We)*Kt[0]+We*We*We*At[0]))/1e3,Y.round(1e3*(Ne*Ne*Ne*pt[1]+(We*Ne*Ne+Ne*We*Ne+Ne*Ne*We)*Tt[1]+(We*We*Ne+Ne*We*We+We*Ne*We)*Kt[1]+We*We*We*At[1]))/1e3]}var Jt=y("float32",8);function et(pt,At,Tt,Kt,en,Xe,We){en<0?en=0:en>1&&(en=1);var Ne,qe=Ye(en,We),ft=Ye(Xe=Xe>1?1:Xe,We),rn=pt.length,sn=1-qe,Nt=1-ft,po=sn*sn*sn,Eo=qe*sn*sn*3,li=qe*qe*sn*3,Ko=qe*qe*qe,lo=sn*sn*Nt,Vt=qe*sn*Nt+sn*qe*Nt+sn*sn*ft,xn=qe*qe*Nt+sn*qe*ft+qe*sn*ft,xt=qe*qe*ft,ut=sn*Nt*Nt,ze=qe*Nt*Nt+sn*ft*Nt+sn*Nt*ft,ht=qe*ft*Nt+sn*ft*ft+qe*Nt*ft,wt=qe*ft*ft,fi=Nt*Nt*Nt,Zo=ft*Nt*Nt+Nt*ft*Nt+Nt*Nt*ft,Po=ft*ft*Nt+Nt*ft*ft+ft*Nt*ft,wa=ft*ft*ft;for(Ne=0;Ne<rn;Ne+=1)Jt[4*Ne]=Y.round(1e3*(po*pt[Ne]+Eo*Tt[Ne]+li*Kt[Ne]+Ko*At[Ne]))/1e3,Jt[4*Ne+1]=Y.round(1e3*(lo*pt[Ne]+Vt*Tt[Ne]+xn*Kt[Ne]+xt*At[Ne]))/1e3,Jt[4*Ne+2]=Y.round(1e3*(ut*pt[Ne]+ze*Tt[Ne]+ht*Kt[Ne]+wt*At[Ne]))/1e3,Jt[4*Ne+3]=Y.round(1e3*(fi*pt[Ne]+Zo*Tt[Ne]+Po*Kt[Ne]+wa*At[Ne]))/1e3;return Jt}return{getSegmentsLength:Ae,getNewSegment:et,getPointInSegment:zt,buildBezierData:Qe,pointOnLine2D:X,pointOnLine3D:pe}}var De=Ce(),$e=l,Oe=Math.abs;function Ke(Y,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ae,Ee,Re,Qe=X.lastIndex,Ye=Qe,zt=this.keyframes.length-1,Jt=!0;Jt;){if(Ae=this.keyframes[Ye],Ee=this.keyframes[Ye+1],Ye===zt-1&&Y>=Ee.t-xe){Ae.h&&(Ae=Ee),Qe=0;break}if(Ee.t-xe>Y){Qe=Ye;break}Ye<zt-1?Ye+=1:(Qe=0,Jt=!1)}Re=this.keyframesMetadata[Ye]||{};var et,pt,At,Tt,Kt,en,Xe,We=Ee.t-xe,Ne=Ae.t-xe;if(Ae.to){Re.bezierData||(Re.bezierData=De.buildBezierData(Ae.s,Ee.s||Ae.e,Ae.to,Ae.ti));var qe=Re.bezierData;if(Y>=We||Y<Ne){var ft=Y>=We?qe.points.length-1:0;for(pt=qe.points[ft].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[ft].point[et]}else{Re.__fnct?en=Re.__fnct:(en=Be.getBezierEasing(Ae.o.x,Ae.o.y,Ae.i.x,Ae.i.y,Ae.n).get,Re.__fnct=en),At=en((Y-Ne)/(We-Ne));var rn,sn=qe.segmentLength*At,Nt=X.lastFrame<Y&&X._lastKeyframeIndex===Ye?X._lastAddedLength:0;for(Kt=X.lastFrame<Y&&X._lastKeyframeIndex===Ye?X._lastPoint:0,Jt=!0,Tt=qe.points.length;Jt;){if(Nt+=qe.points[Kt].partialLength,sn===0||At===0||Kt===qe.points.length-1){for(pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et];break}if(sn>=Nt&&sn<Nt+qe.points[Kt+1].partialLength){for(rn=(sn-Nt)/qe.points[Kt+1].partialLength,pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et]+(qe.points[Kt+1].point[et]-qe.points[Kt].point[et])*rn;break}Kt<Tt-1?Kt+=1:Jt=!1}X._lastPoint=Kt,X._lastAddedLength=Nt-qe.points[Kt].partialLength,X._lastKeyframeIndex=Ye}}else{var po,Eo,li,Ko,lo;if(zt=Ae.s.length,Xe=Ee.s||Ae.e,this.sh&&Ae.h!==1)Y>=We?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):Y<=Ne?(pe[0]=Ae.s[0],pe[1]=Ae.s[1],pe[2]=Ae.s[2]):Ge(pe,Ue(dt(Ae.s),dt(Xe),(Y-Ne)/(We-Ne)));else for(Ye=0;Ye<zt;Ye+=1)Ae.h!==1&&(Y>=We?At=1:Y<Ne?At=0:(Ae.o.x.constructor===Array?(Re.__fnct||(Re.__fnct=[]),Re.__fnct[Ye]?en=Re.__fnct[Ye]:(po=Ae.o.x[Ye]===void 0?Ae.o.x[0]:Ae.o.x[Ye],Eo=Ae.o.y[Ye]===void 0?Ae.o.y[0]:Ae.o.y[Ye],li=Ae.i.x[Ye]===void 0?Ae.i.x[0]:Ae.i.x[Ye],Ko=Ae.i.y[Ye]===void 0?Ae.i.y[0]:Ae.i.y[Ye],en=Be.getBezierEasing(po,Eo,li,Ko).get,Re.__fnct[Ye]=en)):Re.__fnct?en=Re.__fnct:(po=Ae.o.x,Eo=Ae.o.y,li=Ae.i.x,Ko=Ae.i.y,en=Be.getBezierEasing(po,Eo,li,Ko).get,Ae.keyframeMetadata=en),At=en((Y-Ne)/(We-Ne)))),Xe=Ee.s||Ae.e,lo=Ae.h===1?Ae.s[Ye]:Ae.s[Ye]+(Xe[Ye]-Ae.s[Ye])*At,this.propType==="multidimensional"?pe[Ye]=lo:pe=lo}return X.lastIndex=Qe,pe}function Ue(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye=[],zt=Y[0],Jt=Y[1],et=Y[2],pt=Y[3],At=X[0],Tt=X[1],Kt=X[2],en=X[3];return(Ae=zt*At+Jt*Tt+et*Kt+pt*en)<0&&(Ae=-Ae,At=-At,Tt=-Tt,Kt=-Kt,en=-en),1-Ae>1e-6?(xe=Math.acos(Ae),Ee=Math.sin(xe),Re=Math.sin((1-pe)*xe)/Ee,Qe=Math.sin(pe*xe)/Ee):(Re=1-pe,Qe=pe),Ye[0]=Re*zt+Qe*At,Ye[1]=Re*Jt+Qe*Tt,Ye[2]=Re*et+Qe*Kt,Ye[3]=Re*pt+Qe*en,Ye}function Ge(Y,X){var pe=X[0],xe=X[1],Ae=X[2],Ee=X[3],Re=Math.atan2(2*xe*Ee-2*pe*Ae,1-2*xe*xe-2*Ae*Ae),Qe=Math.asin(2*pe*xe+2*Ae*Ee),Ye=Math.atan2(2*pe*Ee-2*xe*Ae,1-2*pe*pe-2*Ae*Ae);Y[0]=Re/D,Y[1]=Qe/D,Y[2]=Ye/D}function dt(Y){var X=Y[0]*D,pe=Y[1]*D,xe=Y[2]*D,Ae=Math.cos(X/2),Ee=Math.cos(pe/2),Re=Math.cos(xe/2),Qe=Math.sin(X/2),Ye=Math.sin(pe/2),zt=Math.sin(xe/2);return[Qe*Ye*Re+Ae*Ee*zt,Qe*Ee*Re+Ae*Ye*zt,Ae*Ye*Re-Qe*Ee*zt,Ae*Ee*Re-Qe*Ye*zt]}function St(){var Y=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(Y===this._caching.lastFrame||this._caching.lastFrame!==$e&&(this._caching.lastFrame>=pe&&Y>=pe||this._caching.lastFrame<X&&Y<X))){this._caching.lastFrame>=Y&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(Y,this._caching);this.pv=xe}return this._caching.lastFrame=Y,this.pv}function rt(Y){var X;if(this.propType==="unidimensional")X=Y*this.mult,Oe(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=Y[pe]*this.mult,Oe(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function Ct(){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 Y,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(Y=0;Y<X;Y+=1)pe=this.effectsSequence[Y](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function tt(Y){this.effectsSequence.push(Y),this.container.addDynamicProperty(this)}function _e(Y,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=Y,this.container=xe,this.comp=Y.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ct,this.setVValue=rt,this.addEffect=tt}function kt(Y,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Ae,Ee=X.k.length;for(this.v=y("float32",Ee),this.pv=y("float32",Ee),this.vel=y("float32",Ee),Ae=0;Ae<Ee;Ae+=1)this.v[Ae]=X.k[Ae]*this.mult,this.pv[Ae]=X.k[Ae];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ct,this.setVValue=rt,this.addEffect=tt}function vt(Y,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=Y.data.st,this.frameId=-1,this._caching={lastFrame:$e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=X,this.mult=pe||1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.v=$e,this.pv=$e,this._isFirstFrame=!0,this.getValue=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.effectsSequence=[St.bind(this)],this.addEffect=tt}function gt(Y,X,pe,xe){this.propType="multidimensional";var Ae,Ee,Re,Qe,Ye,zt=X.k.length;for(Ae=0;Ae<zt-1;Ae+=1)X.k[Ae].to&&X.k[Ae].s&&X.k[Ae+1]&&X.k[Ae+1].s&&(Ee=X.k[Ae].s,Re=X.k[Ae+1].s,Qe=X.k[Ae].to,Ye=X.k[Ae].ti,(Ee.length===2&&!(Ee[0]===Re[0]&&Ee[1]===Re[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Ee[0]+Qe[0],Ee[1]+Qe[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Re[0]+Ye[0],Re[1]+Ye[1])||Ee.length===3&&!(Ee[0]===Re[0]&&Ee[1]===Re[1]&&Ee[2]===Re[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Ee[0]+Qe[0],Ee[1]+Qe[1],Ee[2]+Qe[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Re[0]+Ye[0],Re[1]+Ye[1],Re[2]+Ye[2]))&&(X.k[Ae].to=null,X.k[Ae].ti=null),Ee[0]===Re[0]&&Ee[1]===Re[1]&&Qe[0]===0&&Qe[1]===0&&Ye[0]===0&&Ye[1]===0&&(Ee.length===2||Ee[2]===Re[2]&&Qe[2]===0&&Ye[2]===0)&&(X.k[Ae].to=null,X.k[Ae].ti=null));this.effectsSequence=[St.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=Y.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.getValue=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.frameId=-1;var Jt=X.k[0].s.length;for(this.v=y("float32",Jt),this.pv=y("float32",Jt),Ae=0;Ae<Jt;Ae+=1)this.v[Ae]=$e,this.pv[Ae]=$e;this._caching={lastFrame:$e,lastIndex:0,value:y("float32",Jt)},this.addEffect=tt}var Ze=(function(){function Y(X,pe,xe,Ae,Ee){var Re;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Re=new kt(X,pe,Ae,Ee);else switch(xe){case 0:Re=new vt(X,pe,Ae,Ee);break;case 1:Re=new gt(X,pe,Ae,Ee)}else Re=new _e(X,pe,Ae,Ee);return Re.effectsSequence.length&&Ee.addDynamicProperty(Re),Re}return{getProp:Y}})();function Ot(){}Ot.prototype={addDynamicProperty:function(Y){this.dynamicProperties.indexOf(Y)===-1&&(this.dynamicProperties.push(Y),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var Y,X=this.dynamicProperties.length;for(Y=0;Y<X;Y+=1)this.dynamicProperties[Y].getValue(),this.dynamicProperties[Y]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(Y){this.container=Y,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qt=(function(){function Y(){return y("float32",2)}return Fe(8,Y)})();function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}bt.prototype.setPathData=function(Y,X){this.c=Y,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},bt.prototype.setLength=function(Y){for(;this._maxLength<Y;)this.doubleArrayLength();this._length=Y},bt.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},bt.prototype.setXYAt=function(Y,X,pe,xe,Ae){var Ee;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":Ee=this.v;break;case"i":Ee=this.i;break;case"o":Ee=this.o;break;default:Ee=[]}(!Ee[xe]||Ee[xe]&&!Ae)&&(Ee[xe]=Qt.newElement()),Ee[xe][0]=Y,Ee[xe][1]=X},bt.prototype.setTripleAt=function(Y,X,pe,xe,Ae,Ee,Re,Qe){this.setXYAt(Y,X,"v",Re,Qe),this.setXYAt(pe,xe,"o",Re,Qe),this.setXYAt(Ae,Ee,"i",Re,Qe)},bt.prototype.reverse=function(){var Y=new bt;Y.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ae=0;this.c&&(Y.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),Ae=1);var Ee,Re=this._length-1,Qe=this._length;for(Ee=Ae;Ee<Qe;Ee+=1)Y.setTripleAt(X[Re][0],X[Re][1],xe[Re][0],xe[Re][1],pe[Re][0],pe[Re][1],Ee,!1),Re-=1;return Y},bt.prototype.length=function(){return this._length};var Mt=(function(){function Y(){return new bt}function X(Ae){var Ee,Re=Ae._length;for(Ee=0;Ee<Re;Ee+=1)Qt.release(Ae.v[Ee]),Qt.release(Ae.i[Ee]),Qt.release(Ae.o[Ee]),Ae.v[Ee]=null,Ae.i[Ee]=null,Ae.o[Ee]=null;Ae._length=0,Ae.c=!1}function pe(Ae){var Ee,Re=xe.newElement(),Qe=Ae._length===void 0?Ae.v.length:Ae._length;for(Re.setLength(Qe),Re.c=Ae.c,Ee=0;Ee<Qe;Ee+=1)Re.setTripleAt(Ae.v[Ee][0],Ae.v[Ee][1],Ae.o[Ee][0],Ae.o[Ee][1],Ae.i[Ee][0],Ae.i[Ee][1],Ee);return Re}var xe=Fe(4,Y,X);return xe.clone=pe,xe})();function cn(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}cn.prototype.addShape=function(Y){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=Y,this._length+=1},cn.prototype.releaseShapes=function(){var Y;for(Y=0;Y<this._length;Y+=1)Mt.release(this.shapes[Y]);this._length=0};var gn=(function(){var Y={newShapeCollection:Ae,release:Ee},X=0,pe=4,xe=b(pe);function Ae(){return X?xe[X-=1]:new cn}function Ee(Re){var Qe,Ye=Re._length;for(Qe=0;Qe<Ye;Qe+=1)Mt.release(Re.shapes[Qe]);Re._length=0,X===pe&&(xe=Le.double(xe),pe*=2),xe[X]=Re,X+=1}return Y})(),at=(function(){var Y=-999999;function X(Xe,We,Ne){var qe,ft,rn,sn,Nt,po,Eo,li,Ko,lo=Ne.lastIndex,Vt=this.keyframes;if(Xe<Vt[0].t-this.offsetTime)qe=Vt[0].s[0],rn=!0,lo=0;else if(Xe>=Vt[Vt.length-1].t-this.offsetTime)qe=Vt[Vt.length-1].s?Vt[Vt.length-1].s[0]:Vt[Vt.length-2].e[0],rn=!0;else{for(var xn,xt,ut,ze=lo,ht=Vt.length-1,wt=!0;wt&&(xn=Vt[ze],!((xt=Vt[ze+1]).t-this.offsetTime>Xe));)ze<ht-1?ze+=1:wt=!1;if(ut=this.keyframesMetadata[ze]||{},lo=ze,!(rn=xn.h===1)){if(Xe>=xt.t-this.offsetTime)li=1;else if(Xe<xn.t-this.offsetTime)li=0;else{var fi;ut.__fnct?fi=ut.__fnct:(fi=Be.getBezierEasing(xn.o.x,xn.o.y,xn.i.x,xn.i.y).get,ut.__fnct=fi),li=fi((Xe-(xn.t-this.offsetTime))/(xt.t-this.offsetTime-(xn.t-this.offsetTime)))}ft=xt.s?xt.s[0]:xn.e[0]}qe=xn.s[0]}for(po=We._length,Eo=qe.i[0].length,Ne.lastIndex=lo,sn=0;sn<po;sn+=1)for(Nt=0;Nt<Eo;Nt+=1)Ko=rn?qe.i[sn][Nt]:qe.i[sn][Nt]+(ft.i[sn][Nt]-qe.i[sn][Nt])*li,We.i[sn][Nt]=Ko,Ko=rn?qe.o[sn][Nt]:qe.o[sn][Nt]+(ft.o[sn][Nt]-qe.o[sn][Nt])*li,We.o[sn][Nt]=Ko,Ko=rn?qe.v[sn][Nt]:qe.v[sn][Nt]+(ft.v[sn][Nt]-qe.v[sn][Nt])*li,We.v[sn][Nt]=Ko}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,We=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==Y&&(qe<We&&Xe<We||qe>Ne&&Xe>Ne)||(this._caching.lastIndex=qe<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,We){if(Xe._length!==We._length||Xe.c!==We.c)return!1;var Ne,qe=Xe._length;for(Ne=0;Ne<qe;Ne+=1)if(Xe.v[Ne][0]!==We.v[Ne][0]||Xe.v[Ne][1]!==We.v[Ne][1]||Xe.o[Ne][0]!==We.o[Ne][0]||Xe.o[Ne][1]!==We.o[Ne][1]||Xe.i[Ne][0]!==We.i[Ne][0]||Xe.i[Ne][1]!==We.i[Ne][1])return!1;return!0}function Ee(Xe){Ae(this.v,Xe)||(this.v=Mt.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Re(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Xe;this.lock=!0,this._mdf=!1,Xe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var We,Ne=this.effectsSequence.length;for(We=0;We<Ne;We+=1)Xe=this.effectsSequence[We](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Qe(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=We,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?We.pt.k:We.ks.k;this.v=Mt.clone(qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Ye(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function zt(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?We.pt.k:We.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=Mt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=Y,this.reset=xe,this._caching={lastFrame:Y,lastIndex:0},this.effectsSequence=[pe.bind(this)]}Qe.prototype.interpolateShape=X,Qe.prototype.getValue=Re,Qe.prototype.setVValue=Ee,Qe.prototype.addEffect=Ye,zt.prototype.getValue=Re,zt.prototype.interpolateShape=X,zt.prototype.setVValue=Ee,zt.prototype.addEffect=Ye;var Jt=(function(){var Xe=L;function We(Ne,qe){this.v=Mt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ze.getProp(Ne,qe.p,1,0,this),this.s=Ze.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return We.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],ft=this.s.v[0]/2,rn=this.s.v[1]/2,sn=this.d!==3,Nt=this.v;Nt.v[0][0]=Ne,Nt.v[0][1]=qe-rn,Nt.v[1][0]=sn?Ne+ft:Ne-ft,Nt.v[1][1]=qe,Nt.v[2][0]=Ne,Nt.v[2][1]=qe+rn,Nt.v[3][0]=sn?Ne-ft:Ne+ft,Nt.v[3][1]=qe,Nt.i[0][0]=sn?Ne-ft*Xe:Ne+ft*Xe,Nt.i[0][1]=qe-rn,Nt.i[1][0]=sn?Ne+ft:Ne-ft,Nt.i[1][1]=qe-rn*Xe,Nt.i[2][0]=sn?Ne+ft*Xe:Ne-ft*Xe,Nt.i[2][1]=qe+rn,Nt.i[3][0]=sn?Ne-ft:Ne+ft,Nt.i[3][1]=qe+rn*Xe,Nt.o[0][0]=sn?Ne+ft*Xe:Ne-ft*Xe,Nt.o[0][1]=qe-rn,Nt.o[1][0]=sn?Ne+ft:Ne-ft,Nt.o[1][1]=qe+rn*Xe,Nt.o[2][0]=sn?Ne-ft*Xe:Ne+ft*Xe,Nt.o[2][1]=qe+rn,Nt.o[3][0]=sn?Ne-ft:Ne+ft,Nt.o[3][1]=qe-rn*Xe}},g([Ot],We),We})(),et=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.setPathData(!0,0),this.elem=We,this.comp=We.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),Ne.sy===1?(this.ir=Ze.getProp(We,Ne.ir,0,0,this),this.is=Ze.getProp(We,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ze.getProp(We,Ne.pt,0,0,this),this.p=Ze.getProp(We,Ne.p,1,0,this),this.r=Ze.getProp(We,Ne.r,0,D,this),this.or=Ze.getProp(We,Ne.or,0,0,this),this.os=Ze.getProp(We,Ne.os,0,.01,this),this.localShapeCollection=gn.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 We,Ne,qe,ft,rn=2*Math.floor(this.pt.v),sn=2*Math.PI/rn,Nt=!0,po=this.or.v,Eo=this.ir.v,li=this.os.v,Ko=this.is.v,lo=2*Math.PI*po/(2*rn),Vt=2*Math.PI*Eo/(2*rn),xn=-Math.PI/2;xn+=this.r.v;var xt=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<rn;We+=1){qe=Nt?li:Ko,ft=Nt?lo:Vt;var ut=(Ne=Nt?po:Eo)*Math.cos(xn),ze=Ne*Math.sin(xn),ht=ut===0&&ze===0?0:ze/Math.sqrt(ut*ut+ze*ze),wt=ut===0&&ze===0?0:-ut/Math.sqrt(ut*ut+ze*ze);ut+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(ut,ze,ut-ht*ft*qe*xt,ze-wt*ft*qe*xt,ut+ht*ft*qe*xt,ze+wt*ft*qe*xt,We,!0),Nt=!Nt,xn+=sn*xt}},convertPolygonToPath:function(){var We,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,ft=this.or.v,rn=this.os.v,sn=2*Math.PI*ft/(4*Ne),Nt=.5*-Math.PI,po=this.data.d===3?-1:1;for(Nt+=this.r.v,this.v._length=0,We=0;We<Ne;We+=1){var Eo=ft*Math.cos(Nt),li=ft*Math.sin(Nt),Ko=Eo===0&&li===0?0:li/Math.sqrt(Eo*Eo+li*li),lo=Eo===0&&li===0?0:-Eo/Math.sqrt(Eo*Eo+li*li);Eo+=+this.p.v[0],li+=+this.p.v[1],this.v.setTripleAt(Eo,li,Eo-Ko*sn*rn*po,li-lo*sn*rn*po,Eo+Ko*sn*rn*po,li+lo*sn*rn*po,We,!0),Nt+=qe*po}this.paths.length=0,this.paths[0]=this.v}},g([Ot],Xe),Xe})(),pt=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.c=!0,this.localShapeCollection=gn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=We,this.comp=We.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),this.p=Ze.getProp(We,Ne.p,1,0,this),this.s=Ze.getProp(We,Ne.s,1,0,this),this.r=Ze.getProp(We,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var We=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,ft=this.s.v[1]/2,rn=I(qe,ft,this.r.v),sn=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,0,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,We+qe,Ne+ft-rn,1,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,2,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,We-qe+rn,Ne+ft,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,4,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,We-qe,Ne-ft+rn,5,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,6,!0),this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,We+qe-rn,Ne-ft,7,!0)):(this.v.setTripleAt(We-qe,Ne+ft,We-qe+sn,Ne+ft,We-qe,Ne+ft,2),this.v.setTripleAt(We-qe,Ne-ft,We-qe,Ne-ft+sn,We-qe,Ne-ft,3))):(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,We+qe,Ne-ft+rn,0,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,1,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,We-qe+rn,Ne-ft,2,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,We-qe,Ne+ft-rn,4,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,5,!0),this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,We+qe-rn,Ne+ft,6,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,7,!0)):(this.v.setTripleAt(We-qe,Ne-ft,We-qe+sn,Ne-ft,We-qe,Ne-ft,1,!0),this.v.setTripleAt(We-qe,Ne+ft,We-qe,Ne+ft-sn,We-qe,Ne+ft,2,!0),this.v.setTripleAt(We+qe,Ne+ft,We+qe-sn,Ne+ft,We+qe,Ne+ft,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([Ot],Xe),Xe})();function At(Xe,We,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?We.pt:We.ks).k.length?new zt(Xe,We,Ne):new Qe(Xe,We,Ne):Ne===5?qe=new pt(Xe,We):Ne===6?qe=new Jt(Xe,We):Ne===7&&(qe=new et(Xe,We)),qe.k&&Xe.addDynamicProperty(qe),qe}function Tt(){return Qe}function Kt(){return zt}var en={};return en.getShapeProp=At,en.getConstructorFunction=Tt,en.getKeyframedConstructorFunction=Kt,en})(),jt=(function(){var Y=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 Ee(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,-wt,0,0,wt,ht,0,0,0,0,1,0,0,0,0,1)}function Re(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(1,0,0,0,0,ht,-wt,0,0,wt,ht,0,0,0,0,1)}function Qe(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,0,wt,0,0,1,0,0,-wt,0,ht,0,0,0,0,1)}function Ye(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,-wt,0,0,wt,ht,0,0,0,0,1,0,0,0,0,1)}function zt(ze,ht){return this._t(1,ht,ze,1,0,0)}function Jt(ze,ht){return this.shear(pe(ze),pe(ht))}function et(ze,ht){var wt=Y(ht),fi=X(ht);return this._t(wt,fi,0,0,-fi,wt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(ze),1,0,0,0,0,1,0,0,0,0,1)._t(wt,-fi,0,0,fi,wt,0,0,0,0,1,0,0,0,0,1)}function pt(ze,ht,wt){return!wt&&wt!==0&&(wt=1),ze===1&&ht===1&&wt===1?this:this._t(ze,0,0,0,0,ht,0,0,0,0,wt,0,0,0,0,1)}function At(ze,ht,wt,fi,Zo,Po,wa,Jo,fl,fa,Xa,$0,b2,E0,I0,th){return this.props[0]=ze,this.props[1]=ht,this.props[2]=wt,this.props[3]=fi,this.props[4]=Zo,this.props[5]=Po,this.props[6]=wa,this.props[7]=Jo,this.props[8]=fl,this.props[9]=fa,this.props[10]=Xa,this.props[11]=$0,this.props[12]=b2,this.props[13]=E0,this.props[14]=I0,this.props[15]=th,this}function Tt(ze,ht,wt){return wt=wt||0,ze!==0||ht!==0||wt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ze,ht,wt,1):this}function Kt(ze,ht,wt,fi,Zo,Po,wa,Jo,fl,fa,Xa,$0,b2,E0,I0,th){var dr=this.props;if(ze===1&&ht===0&&wt===0&&fi===0&&Zo===0&&Po===1&&wa===0&&Jo===0&&fl===0&&fa===0&&Xa===1&&$0===0)return dr[12]=dr[12]*ze+dr[15]*b2,dr[13]=dr[13]*Po+dr[15]*E0,dr[14]=dr[14]*Xa+dr[15]*I0,dr[15]*=th,this._identityCalculated=!1,this;var Lk=dr[0],Bk=dr[1],Cw=dr[2],Yf=dr[3],y5=dr[4],nh=dr[5],U7=dr[6],W7=dr[7],w2=dr[8],Q7=dr[9],C2=dr[10],Aw=dr[11],R_=dr[12],z_=dr[13],N_=dr[14],__=dr[15];return dr[0]=Lk*ze+Bk*Zo+Cw*fl+Yf*b2,dr[1]=Lk*ht+Bk*Po+Cw*fa+Yf*E0,dr[2]=Lk*wt+Bk*wa+Cw*Xa+Yf*I0,dr[3]=Lk*fi+Bk*Jo+Cw*$0+Yf*th,dr[4]=y5*ze+nh*Zo+U7*fl+W7*b2,dr[5]=y5*ht+nh*Po+U7*fa+W7*E0,dr[6]=y5*wt+nh*wa+U7*Xa+W7*I0,dr[7]=y5*fi+nh*Jo+U7*$0+W7*th,dr[8]=w2*ze+Q7*Zo+C2*fl+Aw*b2,dr[9]=w2*ht+Q7*Po+C2*fa+Aw*E0,dr[10]=w2*wt+Q7*wa+C2*Xa+Aw*I0,dr[11]=w2*fi+Q7*Jo+C2*$0+Aw*th,dr[12]=R_*ze+z_*Zo+N_*fl+__*b2,dr[13]=R_*ht+z_*Po+N_*fa+__*E0,dr[14]=R_*wt+z_*wa+N_*Xa+__*I0,dr[15]=R_*fi+z_*Jo+N_*$0+__*th,this._identityCalculated=!1,this}function en(ze){var ht=ze.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[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 We(ze){for(var ht=0;ht<16;){if(ze.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function Ne(ze){var ht;for(ht=0;ht<16;ht+=1)ze.props[ht]=this.props[ht];return ze}function qe(ze){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=ze[ht]}function ft(ze,ht,wt){return{x:ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],y:ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],z:ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}}function rn(ze,ht,wt){return ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12]}function sn(ze,ht,wt){return ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13]}function Nt(ze,ht,wt){return ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}function po(){var ze=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/ze,wt=-this.props[1]/ze,fi=-this.props[4]/ze,Zo=this.props[0]/ze,Po=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ze,wa=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ze,Jo=new jt;return Jo.props[0]=ht,Jo.props[1]=wt,Jo.props[4]=fi,Jo.props[5]=Zo,Jo.props[12]=Po,Jo.props[13]=wa,Jo}function Eo(ze){return this.getInverseMatrix().applyToPointArray(ze[0],ze[1],ze[2]||0)}function li(ze){var ht,wt=ze.length,fi=[];for(ht=0;ht<wt;ht+=1)fi[ht]=Eo(ze[ht]);return fi}function Ko(ze,ht,wt){var fi=y("float32",6);if(this.isIdentity())fi[0]=ze[0],fi[1]=ze[1],fi[2]=ht[0],fi[3]=ht[1],fi[4]=wt[0],fi[5]=wt[1];else{var Zo=this.props[0],Po=this.props[1],wa=this.props[4],Jo=this.props[5],fl=this.props[12],fa=this.props[13];fi[0]=ze[0]*Zo+ze[1]*wa+fl,fi[1]=ze[0]*Po+ze[1]*Jo+fa,fi[2]=ht[0]*Zo+ht[1]*wa+fl,fi[3]=ht[0]*Po+ht[1]*Jo+fa,fi[4]=wt[0]*Zo+wt[1]*wa+fl,fi[5]=wt[0]*Po+wt[1]*Jo+fa}return fi}function lo(ze,ht,wt){return this.isIdentity()?[ze,ht,wt]:[ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]]}function Vt(ze,ht){if(this.isIdentity())return ze+","+ht;var wt=this.props;return Math.round(100*(ze*wt[0]+ht*wt[4]+wt[12]))/100+","+Math.round(100*(ze*wt[1]+ht*wt[5]+wt[13]))/100}function xn(){for(var ze=0,ht=this.props,wt="matrix3d(",fi=1e4;ze<16;)wt+=xe(ht[ze]*fi)/fi,wt+=ze===15?")":",",ze+=1;return wt}function xt(ze){var ht=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*ht)/ht:ze}function ut(){var ze=this.props;return"matrix("+xt(ze[0])+","+xt(ze[1])+","+xt(ze[4])+","+xt(ze[5])+","+xt(ze[12])+","+xt(ze[13])+")"}return function(){this.reset=Ae,this.rotate=Ee,this.rotateX=Re,this.rotateY=Qe,this.rotateZ=Ye,this.skew=Jt,this.skewFromAxis=et,this.shear=zt,this.scale=pt,this.setTransform=At,this.translate=Tt,this.transform=Kt,this.multiply=en,this.applyToPoint=ft,this.applyToX=rn,this.applyToY=sn,this.applyToZ=Nt,this.applyToPointArray=lo,this.applyToTriplePoints=Ko,this.applyToPointStringified=Vt,this.toCSS=xn,this.to2dCSS=ut,this.clone=Ne,this.cloneFromProps=qe,this.equals=We,this.inversePoints=li,this.inversePoint=Eo,this.getInverseMatrix=po,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function bn(Y){return bn=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},bn(Y)}var Yt={};function an(Y){u(Y)}function Zt(){Te.searchAnimations()}function nt(Y){K(Y)}function jn(Y){re(Y)}function Bn(Y){return Te.loadAnimation(Y)}function mi(Y){if(typeof Y=="string")switch(Y){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(Y)&&Y>1&&ne(Y)}function to(){return typeof navigator<"u"}function di(Y,X){Y==="expressions"&&te(X)}function Xt(Y){switch(Y){case"propertyFactory":return Ze;case"shapePropertyFactory":return at;case"matrix":return jt;default:return null}}function Rn(){document.readyState==="complete"&&(clearInterval(Xn),Zt())}function Yn(Y){for(var X=Gn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==Y)return decodeURIComponent(xe[1])}return null}Yt.play=Te.play,Yt.pause=Te.pause,Yt.setLocationHref=an,Yt.togglePause=Te.togglePause,Yt.setSpeed=Te.setSpeed,Yt.setDirection=Te.setDirection,Yt.stop=Te.stop,Yt.searchAnimations=Zt,Yt.registerAnimation=Te.registerAnimation,Yt.loadAnimation=Bn,Yt.setSubframeRendering=nt,Yt.resize=Te.resize,Yt.goToAndStop=Te.goToAndStop,Yt.destroy=Te.destroy,Yt.setQuality=mi,Yt.inBrowser=to,Yt.installPlugin=di,Yt.freeze=Te.freeze,Yt.unfreeze=Te.unfreeze,Yt.setVolume=Te.setVolume,Yt.mute=Te.mute,Yt.unmute=Te.unmute,Yt.getRegisteredAnimations=Te.getRegisteredAnimations,Yt.useWebWorker=c,Yt.setIDPrefix=jn,Yt.__getFactory=Xt,Yt.version="5.13.0";var Gn="",ei=document.getElementsByTagName("script"),ui=ei.length-1,vn=ei[ui]||{src:""};Gn=vn.src?vn.src.replace(/^[^\?]+\??/,""):"",Yn("renderer");var Xn=setInterval(Rn,100);try{bn(n)!=="object"&&(window.bodymovin=Yt)}catch{}var un=(function(){var Y={},X={};function pe(Ae,Ee){X[Ae]||(X[Ae]=Ee)}function xe(Ae,Ee,Re){return new X[Ae](Ee,Re)}return Y.registerModifier=pe,Y.getModifier=xe,Y})();function Tn(){}function It(){}function Rt(){}Tn.prototype.initModifierProperties=function(){},Tn.prototype.addShapeToModifier=function(){},Tn.prototype.addShape=function(Y){if(!this.closed){Y.sh.container.addDynamicProperty(Y.sh);var X={shape:Y.sh,data:Y,localShapeCollection:gn.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&Y.setAsAnimated()}},Tn.prototype.init=function(Y,X){this.shapes=[],this.elem=Y,this.initDynamicPropertyContainer(Y),this.initModifierProperties(Y,X),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Tn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Ot],Tn),g([Tn],It),It.prototype.initModifierProperties=function(Y,X){this.s=Ze.getProp(Y,X.s,0,.01,this),this.e=Ze.getProp(Y,X.e,0,.01,this),this.o=Ze.getProp(Y,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},It.prototype.addShapeToModifier=function(Y){Y.pathsData=[]},It.prototype.calculateShapeEdges=function(Y,X,pe,xe,Ae){var Ee=[];X<=1?Ee.push({s:Y,e:X}):Y>=1?Ee.push({s:Y-1,e:X-1}):(Ee.push({s:Y,e:1}),Ee.push({s:0,e:X-1}));var Re,Qe,Ye=[],zt=Ee.length;for(Re=0;Re<zt;Re+=1)if(!((Qe=Ee[Re]).e*Ae<xe||Qe.s*Ae>xe+pe)){var Jt,et;Jt=Qe.s*Ae<=xe?0:(Qe.s*Ae-xe)/pe,et=Qe.e*Ae>=xe+pe?1:(Qe.e*Ae-xe)/pe,Ye.push([Jt,et])}return Ye.length||Ye.push([0,0]),Ye},It.prototype.releasePathsData=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)ke.release(Y[X]);return Y.length=0,Y},It.prototype.processShapes=function(Y){var X,pe;if(this._mdf||Y){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 Ee,Re,Qe,Ye,zt,Jt,et,pt=this.shapes.length,At=0;if(pe===X)for(Re=0;Re<pt;Re+=1)this.shapes[Re].localShapeCollection.releaseShapes(),this.shapes[Re].shape._mdf=!0,this.shapes[Re].shape.paths=this.shapes[Re].localShapeCollection,this._mdf&&(this.shapes[Re].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Re=0;Re<pt;Re+=1)this.shapes[Re].pathsData.length=0,this.shapes[Re].shape._mdf=!0}else{var Tt,Kt,en=[];for(Re=0;Re<pt;Re+=1)if((Tt=this.shapes[Re]).shape._mdf||this._mdf||Y||this.m===2){if(Ye=(Ee=Tt.shape.paths)._length,et=0,!Tt.shape._mdf&&Tt.pathsData.length)et=Tt.totalShapeLength;else{for(zt=this.releasePathsData(Tt.pathsData),Qe=0;Qe<Ye;Qe+=1)Jt=De.getSegmentsLength(Ee.shapes[Qe]),zt.push(Jt),et+=Jt.totalLength;Tt.totalShapeLength=et,Tt.pathsData=zt}At+=et,Tt.shape._mdf=!0}else Tt.shape.paths=Tt.localShapeCollection;var Xe,We=X,Ne=pe,qe=0;for(Re=pt-1;Re>=0;Re-=1)if((Tt=this.shapes[Re]).shape._mdf){for((Kt=Tt.localShapeCollection).releaseShapes(),this.m===2&&pt>1?(Xe=this.calculateShapeEdges(X,pe,Tt.totalShapeLength,qe,At),qe+=Tt.totalShapeLength):Xe=[[We,Ne]],Ye=Xe.length,Qe=0;Qe<Ye;Qe+=1){We=Xe[Qe][0],Ne=Xe[Qe][1],en.length=0,Ne<=1?en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength*Ne}):We>=1?en.push({s:Tt.totalShapeLength*(We-1),e:Tt.totalShapeLength*(Ne-1)}):(en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength}),en.push({s:0,e:Tt.totalShapeLength*(Ne-1)}));var ft=this.addShapes(Tt,en[0]);if(en[0].s!==en[0].e){if(en.length>1)if(Tt.shape.paths.shapes[Tt.shape.paths._length-1].c){var rn=ft.pop();this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1],rn)}else this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1]);this.addPaths(ft,Kt)}}Tt.shape.paths=Kt}}},It.prototype.addPaths=function(Y,X){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)X.addShape(Y[pe])},It.prototype.addSegment=function(Y,X,pe,xe,Ae,Ee,Re){Ae.setXYAt(X[0],X[1],"o",Ee),Ae.setXYAt(pe[0],pe[1],"i",Ee+1),Re&&Ae.setXYAt(Y[0],Y[1],"v",Ee),Ae.setXYAt(xe[0],xe[1],"v",Ee+1)},It.prototype.addSegmentFromArray=function(Y,X,pe,xe){X.setXYAt(Y[1],Y[5],"o",pe),X.setXYAt(Y[2],Y[6],"i",pe+1),xe&&X.setXYAt(Y[0],Y[4],"v",pe),X.setXYAt(Y[3],Y[7],"v",pe+1)},It.prototype.addShapes=function(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,zt,Jt,et=Y.pathsData,pt=Y.shape.paths.shapes,At=Y.shape.paths._length,Tt=0,Kt=[],en=!0;for(pe?(Qe=pe._length,Jt=pe._length):(pe=Mt.newElement(),Qe=0,Jt=0),Kt.push(pe),xe=0;xe<At;xe+=1){for(Ye=et[xe].lengths,pe.c=pt[xe].c,Ee=pt[xe].c?Ye.length:Ye.length+1,Ae=1;Ae<Ee;Ae+=1)if(Tt+(Re=Ye[Ae-1]).addedLength<X.s)Tt+=Re.addedLength,pe.c=!1;else{if(Tt>X.e){pe.c=!1;break}X.s<=Tt&&X.e>=Tt+Re.addedLength?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[Ae],pt[xe].v[Ae],pe,Qe,en),en=!1):(zt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[Ae],pt[xe].o[Ae-1],pt[xe].i[Ae],(X.s-Tt)/Re.addedLength,(X.e-Tt)/Re.addedLength,Ye[Ae-1]),this.addSegmentFromArray(zt,pe,Qe,en),en=!1,pe.c=!1),Tt+=Re.addedLength,Qe+=1}if(pt[xe].c&&Ye.length){if(Re=Ye[Ae-1],Tt<=X.e){var Xe=Ye[Ae-1].addedLength;X.s<=Tt&&X.e>=Tt+Xe?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[0],pt[xe].v[0],pe,Qe,en),en=!1):(zt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[0],pt[xe].o[Ae-1],pt[xe].i[0],(X.s-Tt)/Xe,(X.e-Tt)/Xe,Ye[Ae-1]),this.addSegmentFromArray(zt,pe,Qe,en),en=!1,pe.c=!1)}else pe.c=!1;Tt+=Re.addedLength,Qe+=1}if(pe._length&&(pe.setXYAt(pe.v[Jt][0],pe.v[Jt][1],"i",Jt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Tt>X.e)break;xe<At-1&&(pe=Mt.newElement(),en=!0,Kt.push(pe),Qe=0)}return Kt},g([Tn],Rt),Rt.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amount=Ze.getProp(Y,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Rt.prototype.processPath=function(Y,X){var pe=X/100,xe=[0,0],Ae=Y._length,Ee=0;for(Ee=0;Ee<Ae;Ee+=1)xe[0]+=Y.v[Ee][0],xe[1]+=Y.v[Ee][1];xe[0]/=Ae,xe[1]/=Ae;var Re,Qe,Ye,zt,Jt,et,pt=Mt.newElement();for(pt.c=Y.c,Ee=0;Ee<Ae;Ee+=1)Re=Y.v[Ee][0]+(xe[0]-Y.v[Ee][0])*pe,Qe=Y.v[Ee][1]+(xe[1]-Y.v[Ee][1])*pe,Ye=Y.o[Ee][0]+(xe[0]-Y.o[Ee][0])*-pe,zt=Y.o[Ee][1]+(xe[1]-Y.o[Ee][1])*-pe,Jt=Y.i[Ee][0]+(xe[0]-Y.i[Ee][0])*-pe,et=Y.i[Ee][1]+(xe[1]-Y.i[Ee][1])*-pe,pt.setTripleAt(Re,Qe,Ye,zt,Jt,et,Ee);return pt},Rt.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=(function(){var Y=[0,0];function X(Ye){var zt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||zt,this.a&&Ye.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Ye.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Ye.skewFromAxis(-this.sk.v,this.sa.v),this.r?Ye.rotate(-this.r.v):Ye.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Ye.translate(this.px.v,this.py.v,-this.pz.v):Ye.translate(this.px.v,this.py.v,0):Ye.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Ye){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Ye){var zt;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 Jt,et;if(zt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Jt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/zt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/zt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Jt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/zt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/zt,0)):(Jt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/zt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Jt=[],et=[];var pt=this.px,At=this.py;pt._caching.lastFrame+pt.offsetTime<=pt.keyframes[0].t?(Jt[0]=pt.getValueAtTime((pt.keyframes[0].t+.01)/zt,0),Jt[1]=At.getValueAtTime((At.keyframes[0].t+.01)/zt,0),et[0]=pt.getValueAtTime(pt.keyframes[0].t/zt,0),et[1]=At.getValueAtTime(At.keyframes[0].t/zt,0)):pt._caching.lastFrame+pt.offsetTime>=pt.keyframes[pt.keyframes.length-1].t?(Jt[0]=pt.getValueAtTime(pt.keyframes[pt.keyframes.length-1].t/zt,0),Jt[1]=At.getValueAtTime(At.keyframes[At.keyframes.length-1].t/zt,0),et[0]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/zt,0),et[1]=At.getValueAtTime((At.keyframes[At.keyframes.length-1].t-.01)/zt,0)):(Jt=[pt.pv,At.pv],et[0]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/zt,pt.offsetTime),et[1]=At.getValueAtTime((At._caching.lastFrame+At.offsetTime-.01)/zt,At.offsetTime))}else Jt=et=Y;this.v.rotate(-Math.atan2(Jt[1]-et[1],Jt[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 Ee(Ye){this._addDynamicProperty(Ye),this.elem.addDynamicProperty(Ye),this._isDirty=!0}function Re(Ye,zt,Jt){if(this.elem=Ye,this.frameId=-1,this.propType="transform",this.data=zt,this.v=new jt,this.pre=new jt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Jt||Ye),zt.p&&zt.p.s?(this.px=Ze.getProp(Ye,zt.p.x,0,0,this),this.py=Ze.getProp(Ye,zt.p.y,0,0,this),zt.p.z&&(this.pz=Ze.getProp(Ye,zt.p.z,0,0,this))):this.p=Ze.getProp(Ye,zt.p||{k:[0,0,0]},1,0,this),zt.rx){if(this.rx=Ze.getProp(Ye,zt.rx,0,D,this),this.ry=Ze.getProp(Ye,zt.ry,0,D,this),this.rz=Ze.getProp(Ye,zt.rz,0,D,this),zt.or.k[0].ti){var et,pt=zt.or.k.length;for(et=0;et<pt;et+=1)zt.or.k[et].to=null,zt.or.k[et].ti=null}this.or=Ze.getProp(Ye,zt.or,1,D,this),this.or.sh=!0}else this.r=Ze.getProp(Ye,zt.r||{k:0},0,D,this);zt.sk&&(this.sk=Ze.getProp(Ye,zt.sk,0,D,this),this.sa=Ze.getProp(Ye,zt.sa,0,D,this)),this.a=Ze.getProp(Ye,zt.a||{k:[0,0,0]},1,0,this),this.s=Ze.getProp(Ye,zt.s||{k:[100,100,100]},1,.01,this),zt.o?this.o=Ze.getProp(Ye,zt.o,0,.01,Ye):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Qe(Ye,zt,Jt){return new Re(Ye,zt,Jt)}return Re.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ae},g([Ot],Re),Re.prototype.addDynamicProperty=Ee,Re.prototype._addDynamicProperty=Ot.prototype.addDynamicProperty,{getTransformProperty:Qe}})();function Fn(){}function _n(){}function Ut(Y,X){return 1e5*Math.abs(Y-X)<=Math.min(Math.abs(Y),Math.abs(X))}function Li(Y){return Math.abs(Y)<=1e-5}function ai(Y,X,pe){return Y*(1-pe)+X*pe}function $o(Y,X,pe){return[ai(Y[0],X[0],pe),ai(Y[1],X[1],pe)]}function qi(Y,X,pe){if(Y===0)return[];var xe=X*X-4*Y*pe;if(xe<0)return[];var Ae=-X/(2*Y);if(xe===0)return[Ae];var Ee=Math.sqrt(xe)/(2*Y);return[Ae-Ee,Ae+Ee]}function Ci(Y,X,pe,xe){return[3*X-Y-3*pe+xe,3*Y-6*X+3*pe,-3*Y+3*X,Y]}function Un(Y){return new pn(Y,Y,Y,Y,!1)}function pn(Y,X,pe,xe,Ae){Ae&&so(Y,X)&&(X=$o(Y,xe,1/3)),Ae&&so(pe,xe)&&(pe=$o(Y,xe,2/3));var Ee=Ci(Y[0],X[0],pe[0],xe[0]),Re=Ci(Y[1],X[1],pe[1],xe[1]);this.a=[Ee[0],Re[0]],this.b=[Ee[1],Re[1]],this.c=[Ee[2],Re[2]],this.d=[Ee[3],Re[3]],this.points=[Y,X,pe,xe]}function Gt(Y,X){var pe=Y.points[0][X],xe=Y.points[Y.points.length-1][X];if(pe>xe){var Ae=xe;xe=pe,pe=Ae}for(var Ee=qi(3*Y.a[X],2*Y.b[X],Y.c[X]),Re=0;Re<Ee.length;Re+=1)if(Ee[Re]>0&&Ee[Re]<1){var Qe=Y.point(Ee[Re])[X];Qe<pe?pe=Qe:Qe>xe&&(xe=Qe)}return{min:pe,max:xe}}function Cn(Y,X,pe){var xe=Y.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:Y,t:(X+pe)/2,t1:X,t2:pe}}function Vn(Y){var X=Y.bez.split(.5);return[Cn(X[0],Y.t1,Y.t),Cn(X[1],Y.t,Y.t2)]}function fn(Y,X){return 2*Math.abs(Y.cx-X.cx)<Y.width+X.width&&2*Math.abs(Y.cy-X.cy)<Y.height+X.height}function Ht(Y,X,pe,xe,Ae,Ee){if(fn(Y,X)){if(pe>=Ee||Y.width<=xe&&Y.height<=xe&&X.width<=xe&&X.height<=xe)return void Ae.push([Y.t,X.t]);var Re=Vn(Y),Qe=Vn(X);Ht(Re[0],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[0],Qe[1],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[1],pe+1,xe,Ae,Ee)}}function Pn(Y,X){return[Y[1]*X[2]-Y[2]*X[1],Y[2]*X[0]-Y[0]*X[2],Y[0]*X[1]-Y[1]*X[0]]}function Ki(Y,X,pe,xe){var Ae=[Y[0],Y[1],1],Ee=[X[0],X[1],1],Re=[pe[0],pe[1],1],Qe=[xe[0],xe[1],1],Ye=Pn(Pn(Ae,Ee),Pn(Re,Qe));return Li(Ye[2])?null:[Ye[0]/Ye[2],Ye[1]/Ye[2]]}function Zi(Y,X,pe){return[Y[0]+Math.cos(X)*pe,Y[1]-Math.sin(X)*pe]}function Qo(Y,X){return Math.hypot(Y[0]-X[0],Y[1]-X[1])}function so(Y,X){return Ut(Y[0],X[0])&&Ut(Y[1],X[1])}function ma(){}function yr(Y,X,pe,xe,Ae,Ee,Re){var Qe=pe-Math.PI/2,Ye=pe+Math.PI/2,zt=X[0]+Math.cos(pe)*xe*Ae,Jt=X[1]-Math.sin(pe)*xe*Ae;Y.setTripleAt(zt,Jt,zt+Math.cos(Qe)*Ee,Jt-Math.sin(Qe)*Ee,zt+Math.cos(Ye)*Re,Jt-Math.sin(Ye)*Re,Y.length())}function Ia(Y,X){var pe=[X[0]-Y[0],X[1]-Y[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 En(Y,X){var pe=X===0?Y.length()-1:X-1,xe=(X+1)%Y.length(),Ae=Ia(Y.v[pe],Y.v[xe]);return Math.atan2(0,1)-Math.atan2(Ae[1],Ae[0])}function Dt(Y,X,pe,xe,Ae,Ee,Re){var Qe=En(X,pe),Ye=X.v[pe%X._length],zt=X.v[pe===0?X._length-1:pe-1],Jt=X.v[(pe+1)%X._length],et=Ee===2?Math.sqrt(Math.pow(Ye[0]-zt[0],2)+Math.pow(Ye[1]-zt[1],2)):0,pt=Ee===2?Math.sqrt(Math.pow(Ye[0]-Jt[0],2)+Math.pow(Ye[1]-Jt[1],2)):0;yr(Y,X.v[pe%X._length],Qe,Re,xe,pt/(2*(Ae+1)),et/(2*(Ae+1)))}function Mn(Y,X,pe,xe,Ae,Ee){for(var Re=0;Re<xe;Re+=1){var Qe=(Re+1)/(xe+1),Ye=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,zt=X.normalAngle(Qe);yr(Y,X.point(Qe),zt,Ee,pe,Ye/(2*(xe+1)),Ye/(2*(xe+1))),Ee=-Ee}return Ee}function wi(Y,X,pe){var xe=Math.atan2(X[0]-Y[0],X[1]-Y[1]);return[Zi(Y,xe,pe),Zi(X,xe,pe)]}function $i(Y,X){var pe,xe,Ae,Ee,Re,Qe,Ye;pe=(Ye=wi(Y.points[0],Y.points[1],X))[0],xe=Ye[1],Ae=(Ye=wi(Y.points[1],Y.points[2],X))[0],Ee=Ye[1],Re=(Ye=wi(Y.points[2],Y.points[3],X))[0],Qe=Ye[1];var zt=Ki(pe,xe,Ae,Ee);zt===null&&(zt=xe);var Jt=Ki(Re,Qe,Ae,Ee);return Jt===null&&(Jt=Re),new pn(pe,zt,Jt,Qe)}function Qi(Y,X,pe,xe,Ae){var Ee=X.points[3],Re=pe.points[0];if(xe===3||so(Ee,Re))return Ee;if(xe===2){var Qe=-X.tangentAngle(1),Ye=-pe.tangentAngle(0)+Math.PI,zt=Ki(Ee,Zi(Ee,Qe+Math.PI/2,100),Re,Zi(Re,Qe+Math.PI/2,100)),Jt=zt?Qo(zt,Ee):Qo(Ee,Re)/2,et=Zi(Ee,Qe,2*Jt*L);return Y.setXYAt(et[0],et[1],"o",Y.length()-1),et=Zi(Re,Ye,2*Jt*L),Y.setTripleAt(Re[0],Re[1],Re[0],Re[1],et[0],et[1],Y.length()),Re}var pt=Ki(so(Ee,X.points[2])?X.points[0]:X.points[2],Ee,Re,so(Re,pe.points[1])?pe.points[3]:pe.points[1]);return pt&&Qo(pt,Ee)<Ae?(Y.setTripleAt(pt[0],pt[1],pt[0],pt[1],pt[0],pt[1],Y.length()),pt):Ee}function vi(Y,X){var pe=Y.intersections(X);return pe.length&&Ut(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Ho(Y,X){var pe=Y.slice(),xe=X.slice(),Ae=vi(Y[Y.length-1],X[0]);return Ae&&(pe[Y.length-1]=Y[Y.length-1].split(Ae[0])[0],xe[0]=X[0].split(Ae[1])[1]),Y.length>1&&X.length>1&&(Ae=vi(Y[0],X[X.length-1]))?[[Y[0].split(Ae[0])[0]],[X[X.length-1].split(Ae[1])[1]]]:[pe,xe]}function gi(Y){for(var X,pe=1;pe<Y.length;pe+=1)X=Ho(Y[pe-1],Y[pe]),Y[pe-1]=X[0],Y[pe]=X[1];return Y.length>1&&(X=Ho(Y[Y.length-1],Y[0]),Y[Y.length-1]=X[0],Y[0]=X[1]),Y}function fo(Y,X){var pe,xe,Ae,Ee,Re=Y.inflectionPoints();if(Re.length===0)return[$i(Y,X)];if(Re.length===1||Ut(Re[1],1))return pe=(Ae=Y.split(Re[0]))[0],xe=Ae[1],[$i(pe,X),$i(xe,X)];pe=(Ae=Y.split(Re[0]))[0];var Qe=(Re[1]-Re[0])/(1-Re[0]);return Ee=(Ae=Ae[1].split(Qe))[0],xe=Ae[1],[$i(pe,X),$i(Ee,X),$i(xe,X)]}function br(){}function _t(Y){for(var X,pe=Y.fStyle?Y.fStyle.split(" "):[],xe="normal",Ae="normal",Ee=pe.length,Re=0;Re<Ee;Re+=1)switch(X=pe[Re].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:Y.fWeight||xe}}g([Tn],Fn),Fn.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.c=Ze.getProp(Y,X.c,0,null,this),this.o=Ze.getProp(Y,X.o,0,null,this),this.tr=Bt.getTransformProperty(Y,X.tr,this),this.so=Ze.getProp(Y,X.tr.so,0,.01,this),this.eo=Ze.getProp(Y,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new jt,this.rMatrix=new jt,this.sMatrix=new jt,this.tMatrix=new jt,this.matrix=new jt},Fn.prototype.applyTransforms=function(Y,X,pe,xe,Ae,Ee){var Re=Ee?-1:1,Qe=xe.s.v[0]+(1-xe.s.v[0])*(1-Ae),Ye=xe.s.v[1]+(1-xe.s.v[1])*(1-Ae);Y.translate(xe.p.v[0]*Re*Ae,xe.p.v[1]*Re*Ae,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Re*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(Ee?1/Qe:Qe,Ee?1/Ye:Ye),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},Fn.prototype.init=function(Y,X,pe,xe){for(this.elem=Y,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(Y),this.initModifierProperties(Y,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Fn.prototype.resetElements=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)Y[X]._processed=!1,Y[X].ty==="gr"&&this.resetElements(Y[X].it)},Fn.prototype.cloneElements=function(Y){var X=JSON.parse(JSON.stringify(Y));return this.resetElements(X),X},Fn.prototype.changeGroupRender=function(Y,X){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)Y[pe]._render=X,Y[pe].ty==="gr"&&this.changeGroupRender(Y[pe].it,X)},Fn.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re=!1;if(this._mdf||Y){var Qe,Ye=Math.ceil(this.c.v);if(this._groups.length<Ye){for(;this._groups.length<Ye;){var zt={it:this.cloneElements(this._elements),ty:"gr"};zt.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,zt),this._groups.splice(0,0,zt),this._currentCopies+=1}this.elem.reloadShapes(),Re=!0}for(Ee=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Qe=Ee<Ye,this._groups[xe]._render=Qe,this.changeGroupRender(this._groups[xe].it,Qe),!Qe){var Jt=this.elemsData[xe].it,et=Jt[Jt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}Ee+=1}this._currentCopies=Ye;var pt=this.o.v,At=pt%1,Tt=pt>0?Math.floor(pt):Math.ceil(pt),Kt=this.pMatrix.props,en=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var We,Ne,qe=0;if(pt>0){for(;qe<Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,At,!1),qe+=At)}else if(pt<0){for(;qe>Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-At,!0),qe-=At)}for(xe=this.data.m===1?0:this._currentCopies-1,Ae=this.data.m===1?1:-1,Ee=this._currentCopies;Ee;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&Ae===1||xe!==this._currentCopies-1&&Ae===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(en[0],en[1],en[2],en[3],en[4],en[5],en[6],en[7],en[8],en[9],en[10],en[11],en[12],en[13],en[14],en[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(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],Kt[8],Kt[9],Kt[10],Kt[11],Kt[12],Kt[13],Kt[14],Kt[15]),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];this.matrix.reset()}else for(this.matrix.reset(),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];qe+=1,Ee-=1,xe+=Ae}}else for(Ee=this._currentCopies,xe=0,Ae=1;Ee;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,Ee-=1,xe+=Ae;return Re},Fn.prototype.addShape=function(){},g([Tn],_n),_n.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.rd=Ze.getProp(Y,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_n.prototype.processPath=function(Y,X){var pe=Mt.newElement();pe.c=Y.c;var xe,Ae,Ee,Re,Qe,Ye,zt,Jt,et,pt,At,Tt,Kt,en=Y._length,Xe=0;for(xe=0;xe<en;xe+=1)Ae=Y.v[xe],Re=Y.o[xe],Ee=Y.i[xe],Ae[0]===Re[0]&&Ae[1]===Re[1]&&Ae[0]===Ee[0]&&Ae[1]===Ee[1]?xe!==0&&xe!==en-1||Y.c?(Qe=xe===0?Y.v[en-1]:Y.v[xe-1],zt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=Tt=Ae[0]+(Qe[0]-Ae[0])*zt,et=Kt=Ae[1]-(Ae[1]-Qe[1])*zt,pt=Jt-(Jt-Ae[0])*L,At=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1,Qe=xe===en-1?Y.v[0]:Y.v[xe+1],zt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=pt=Ae[0]+(Qe[0]-Ae[0])*zt,et=At=Ae[1]+(Qe[1]-Ae[1])*zt,Tt=Jt-(Jt-Ae[0])*L,Kt=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1):(pe.setTripleAt(Ae[0],Ae[1],Re[0],Re[1],Ee[0],Ee[1],Xe),Xe+=1):(pe.setTripleAt(Y.v[xe][0],Y.v[xe][1],Y.o[xe][0],Y.o[xe][1],Y.i[xe][0],Y.i[xe][1],Xe),Xe+=1);return pe},_n.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.rd.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.prototype.point=function(Y){return[((this.a[0]*Y+this.b[0])*Y+this.c[0])*Y+this.d[0],((this.a[1]*Y+this.b[1])*Y+this.c[1])*Y+this.d[1]]},pn.prototype.derivative=function(Y){return[(3*Y*this.a[0]+2*this.b[0])*Y+this.c[0],(3*Y*this.a[1]+2*this.b[1])*Y+this.c[1]]},pn.prototype.tangentAngle=function(Y){var X=this.derivative(Y);return Math.atan2(X[1],X[0])},pn.prototype.normalAngle=function(Y){var X=this.derivative(Y);return Math.atan2(X[0],X[1])},pn.prototype.inflectionPoints=function(){var Y=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Li(Y))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/Y,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/Y;if(pe<0)return[];var xe=Math.sqrt(pe);return Li(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ae){return Ae>0&&Ae<1}))},pn.prototype.split=function(Y){if(Y<=0)return[Un(this.points[0]),this];if(Y>=1)return[this,Un(this.points[this.points.length-1])];var X=$o(this.points[0],this.points[1],Y),pe=$o(this.points[1],this.points[2],Y),xe=$o(this.points[2],this.points[3],Y),Ae=$o(X,pe,Y),Ee=$o(pe,xe,Y),Re=$o(Ae,Ee,Y);return[new pn(this.points[0],X,Ae,Re,!0),new pn(Re,Ee,xe,this.points[3],!0)]},pn.prototype.bounds=function(){return{x:Gt(this,0),y:Gt(this,1)}},pn.prototype.boundingBox=function(){var Y=this.bounds();return{left:Y.x.min,right:Y.x.max,top:Y.y.min,bottom:Y.y.max,width:Y.x.max-Y.x.min,height:Y.y.max-Y.y.min,cx:(Y.x.max+Y.x.min)/2,cy:(Y.y.max+Y.y.min)/2}},pn.prototype.intersections=function(Y,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Ht(Cn(this,0,1),Cn(Y,0,1),0,X,xe,pe),xe},pn.shapeSegment=function(Y,X){var pe=(X+1)%Y.length();return new pn(Y.v[X],Y.o[X],Y.i[pe],Y.v[pe],!0)},pn.shapeSegmentInverted=function(Y,X){var pe=(X+1)%Y.length();return new pn(Y.v[pe],Y.i[pe],Y.o[X],Y.v[X],!0)},g([Tn],ma),ma.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amplitude=Ze.getProp(Y,X.s,0,null,this),this.frequency=Ze.getProp(Y,X.r,0,null,this),this.pointsType=Ze.getProp(Y,X.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ma.prototype.processPath=function(Y,X,pe,xe){var Ae=Y._length,Ee=Mt.newElement();if(Ee.c=Y.c,Y.c||(Ae-=1),Ae===0)return Ee;var Re=-1,Qe=pn.shapeSegment(Y,0);Dt(Ee,Y,0,X,pe,xe,Re);for(var Ye=0;Ye<Ae;Ye+=1)Re=Mn(Ee,Qe,X,pe,xe,-Re),Qe=Ye!==Ae-1||Y.c?pn.shapeSegment(Y,(Ye+1)%Ae):null,Dt(Ee,Y,Ye+1,X,pe,xe,Re);return Ee},ma.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amplitude.v,zt=Math.max(0,Math.round(this.frequency.v)),Jt=this.pointsType.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,zt,Jt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Tn],br),br.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amount=Ze.getProp(Y,X.a,0,null,this),this.miterLimit=Ze.getProp(Y,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},br.prototype.processPath=function(Y,X,pe,xe){var Ae=Mt.newElement();Ae.c=Y.c;var Ee=Y.length();Y.c||(Ee-=1);var Re,Qe,Ye,zt=[];for(Re=0;Re<Ee;Re+=1)Ye=pn.shapeSegment(Y,Re),zt.push(fo(Ye,X));if(!Y.c)for(Re=Ee-1;Re>=0;Re-=1)Ye=pn.shapeSegmentInverted(Y,Re),zt.push(fo(Ye,X));zt=gi(zt);var Jt=null,et=null;for(Re=0;Re<zt.length;Re+=1){var pt=zt[Re];for(et&&(Jt=Qi(Ae,et,pt[0],pe,xe)),et=pt[pt.length-1],Qe=0;Qe<pt.length;Qe+=1)Ye=pt[Qe],Jt&&so(Ye.points[0],Jt)?Ae.setXYAt(Ye.points[1][0],Ye.points[1][1],"o",Ae.length()-1):Ae.setTripleAt(Ye.points[0][0],Ye.points[0][1],Ye.points[1][0],Ye.points[1][1],Ye.points[0][0],Ye.points[0][1],Ae.length()),Ae.setTripleAt(Ye.points[3][0],Ye.points[3][1],Ye.points[3][0],Ye.points[3][1],Ye.points[2][0],Ye.points[2][1],Ae.length()),Jt=Ye.points[3]}return zt.length&&Qi(Ae,et,zt[0][0],pe,xe),Ae},br.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v,zt=this.miterLimit.v,Jt=this.lineJoin;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Jt,zt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ln=(function(){var Y=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,Ee=917601,Re=917626,Qe=65039,Ye=8205,zt=127462,Jt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function pt(xt){var ut,ze=xt.split(","),ht=ze.length,wt=[];for(ut=0;ut<ht;ut+=1)ze[ut]!=="sans-serif"&&ze[ut]!=="monospace"&&wt.push(ze[ut]);return wt.join(",")}function At(xt,ut){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=ut;var ht=h("span");ht.innerText="giItT1WQy@!-/#",ze.style.position="absolute",ze.style.left="-10000px",ze.style.top="-10000px",ze.style.fontSize="300px",ze.style.fontVariant="normal",ze.style.fontStyle="normal",ze.style.fontWeight="normal",ze.style.letterSpacing="0",ze.appendChild(ht),document.body.appendChild(ze);var wt=ht.offsetWidth;return ht.style.fontFamily=pt(xt)+", "+ut,{node:ht,w:wt,parent:ze}}function Tt(){var xt,ut,ze,ht=this.fonts.length,wt=ht;for(xt=0;xt<ht;xt+=1)this.fonts[xt].loaded?wt-=1:this.fonts[xt].fOrigin==="n"||this.fonts[xt].origin===0?this.fonts[xt].loaded=!0:(ut=this.fonts[xt].monoCase.node,ze=this.fonts[xt].monoCase.w,ut.offsetWidth!==ze?(wt-=1,this.fonts[xt].loaded=!0):(ut=this.fonts[xt].sansCase.node,ze=this.fonts[xt].sansCase.w,ut.offsetWidth!==ze&&(wt-=1,this.fonts[xt].loaded=!0)),this.fonts[xt].loaded&&(this.fonts[xt].sansCase.parent.parentNode.removeChild(this.fonts[xt].sansCase.parent),this.fonts[xt].monoCase.parent.parentNode.removeChild(this.fonts[xt].monoCase.parent)));wt!==0&&Date.now()-this.initTime<Y?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Kt(xt,ut){var ze,ht=document.body&&ut?"svg":"canvas",wt=_t(xt);if(ht==="svg"){var fi=se("text");fi.style.fontSize="100px",fi.setAttribute("font-family",xt.fFamily),fi.setAttribute("font-style",wt.style),fi.setAttribute("font-weight",wt.weight),fi.textContent="1",xt.fClass?(fi.style.fontFamily="inherit",fi.setAttribute("class",xt.fClass)):fi.style.fontFamily=xt.fFamily,ut.appendChild(fi),ze=fi}else{var Zo=new OffscreenCanvas(500,500).getContext("2d");Zo.font=wt.style+" "+wt.weight+" 100px "+xt.fFamily,ze=Zo}function Po(wa){return ht==="svg"?(ze.textContent=wa,ze.getComputedTextLength()):ze.measureText(wa).width}return{measureText:Po}}function en(xt,ut){if(xt){if(this.chars)return this.isLoaded=!0,void(this.fonts=xt.list);if(!document.body)return this.isLoaded=!0,xt.list.forEach((function(Xa){Xa.helper=Kt(Xa),Xa.cache={}})),void(this.fonts=xt.list);var ze,ht=xt.list,wt=ht.length,fi=wt;for(ze=0;ze<wt;ze+=1){var Zo,Po,wa=!0;if(ht[ze].loaded=!1,ht[ze].monoCase=At(ht[ze].fFamily,"monospace"),ht[ze].sansCase=At(ht[ze].fFamily,"sans-serif"),ht[ze].fPath){if(ht[ze].fOrigin==="p"||ht[ze].origin===3){if((Zo=document.querySelectorAll('style[f-forigin="p"][f-family="'+ht[ze].fFamily+'"], style[f-origin="3"][f-family="'+ht[ze].fFamily+'"]')).length>0&&(wa=!1),wa){var Jo=h("style");Jo.setAttribute("f-forigin",ht[ze].fOrigin),Jo.setAttribute("f-origin",ht[ze].origin),Jo.setAttribute("f-family",ht[ze].fFamily),Jo.type="text/css",Jo.innerText="@font-face {font-family: "+ht[ze].fFamily+"; font-style: normal; src: url('"+ht[ze].fPath+"');}",ut.appendChild(Jo)}}else if(ht[ze].fOrigin==="g"||ht[ze].origin===1){for(Zo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Po=0;Po<Zo.length;Po+=1)Zo[Po].href.indexOf(ht[ze].fPath)!==-1&&(wa=!1);if(wa){var fl=h("link");fl.setAttribute("f-forigin",ht[ze].fOrigin),fl.setAttribute("f-origin",ht[ze].origin),fl.type="text/css",fl.rel="stylesheet",fl.href=ht[ze].fPath,document.body.appendChild(fl)}}else if(ht[ze].fOrigin==="t"||ht[ze].origin===2){for(Zo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Po=0;Po<Zo.length;Po+=1)ht[ze].fPath===Zo[Po].src&&(wa=!1);if(wa){var fa=h("link");fa.setAttribute("f-forigin",ht[ze].fOrigin),fa.setAttribute("f-origin",ht[ze].origin),fa.setAttribute("rel","stylesheet"),fa.setAttribute("href",ht[ze].fPath),ut.appendChild(fa)}}}else ht[ze].loaded=!0,fi-=1;ht[ze].helper=Kt(ht[ze],ut),ht[ze].cache={},this.fonts.push(ht[ze])}fi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(xt){if(xt){this.chars||(this.chars=[]);var ut,ze,ht,wt=xt.length,fi=this.chars.length;for(ut=0;ut<wt;ut+=1){for(ze=0,ht=!1;ze<fi;)this.chars[ze].style===xt[ut].style&&this.chars[ze].fFamily===xt[ut].fFamily&&this.chars[ze].ch===xt[ut].ch&&(ht=!0),ze+=1;ht||(this.chars.push(xt[ut]),fi+=1)}}}function We(xt,ut,ze){for(var ht=0,wt=this.chars.length;ht<wt;){if(this.chars[ht].ch===xt&&this.chars[ht].style===ut&&this.chars[ht].fFamily===ze)return this.chars[ht];ht+=1}return(typeof xt=="string"&&xt.charCodeAt(0)!==13||!xt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",xt,ut,ze)),X}function Ne(xt,ut,ze){var ht=this.getFontByName(ut),wt=xt;if(!ht.cache[wt]){var fi=ht.helper;if(xt===" "){var Zo=fi.measureText("|"+xt+"|"),Po=fi.measureText("||");ht.cache[wt]=(Zo-Po)/100}else ht.cache[wt]=fi.measureText(xt)/100}return ht.cache[wt]*ze}function qe(xt){for(var ut=0,ze=this.fonts.length;ut<ze;){if(this.fonts[ut].fName===xt)return this.fonts[ut];ut+=1}return this.fonts[0]}function ft(xt){var ut=0,ze=xt.charCodeAt(0);if(ze>=55296&&ze<=56319){var ht=xt.charCodeAt(1);ht>=56320&&ht<=57343&&(ut=1024*(ze-55296)+ht-56320+65536)}return ut}function rn(xt,ut){var ze=xt.toString(16)+ut.toString(16);return et.indexOf(ze)!==-1}function sn(xt){return xt===Ye}function Nt(xt){return xt===Qe}function po(xt){var ut=ft(xt);return ut>=zt&&ut<=Jt}function Eo(xt){return po(xt.substr(0,2))&&po(xt.substr(2,2))}function li(xt){return pe.indexOf(xt)!==-1}function Ko(xt,ut){var ze=ft(xt.substr(ut,2));if(ze!==xe)return!1;var ht=0;for(ut+=2;ht<5;){if((ze=ft(xt.substr(ut,2)))<Ee||ze>Re)return!1;ht+=1,ut+=2}return ft(xt.substr(ut,2))===Ae}function lo(){this.isLoaded=!0}var Vt=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)};Vt.isModifier=rn,Vt.isZeroWidthJoiner=sn,Vt.isFlagEmoji=Eo,Vt.isRegionalCode=po,Vt.isCombinedCharacter=li,Vt.isRegionalFlag=Ko,Vt.isVariationSelector=Nt,Vt.BLACK_FLAG_CODE_POINT=xe;var xn={addChars:Xe,addFonts:en,getCharData:We,getFontByName:qe,measureText:Ne,checkLoadedFonts:Tt,setIsLoaded:lo};return Vt.prototype=xn,Vt})();function nn(Y){this.animationData=Y}function pi(Y){return new nn(Y)}function $n(){}nn.prototype.getProp=function(Y){return this.animationData.slots&&this.animationData.slots[Y.sid]?Object.assign(Y,this.animationData.slots[Y.sid].p):Y},$n.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(Y){this.renderableComponents.indexOf(Y)===-1&&this.renderableComponents.push(Y)},removeRenderableComponent:function(Y){this.renderableComponents.indexOf(Y)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(Y),1)},prepareRenderableFrame:function(Y){this.checkLayerLimits(Y)},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(Y){this.data.ip-this.data.st<=Y&&this.data.op-this.data.st>Y?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 Y,X=this.renderableComponents.length;for(Y=0;Y<X;Y+=1)this.renderableComponents[Y].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 Y={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 Y[X]||""}})();function Pi(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function bo(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function Gi(Y,X,pe){this.p=Ze.getProp(X,Y.v,1,0,pe)}function ro(Y,X,pe){this.p=Ze.getProp(X,Y.v,1,0,pe)}function Pt(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function yi(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function xo(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function Ur(){this.p={}}function wr(Y,X){var pe=Y.ef||[];this.effectElements=[];var xe,Ae,Ee=pe.length;for(xe=0;xe<Ee;xe+=1)Ae=new Cr(pe[xe],X),this.effectElements.push(Ae)}function Cr(Y,X){this.init(Y,X)}function Nn(){}function Ai(){}function rr(Y,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(Y.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(Y,X,pe)}function ga(Y,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(Y.refId),this.initBaseData(Y,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=Y.tm?Ze.getProp(this,Y.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ze.getProp(this,Y.au&&Y.au.lv?Y.au.lv:{k:[100]},1,.01,this)}function al(){}g([Ot],Cr),Cr.prototype.getValue=Cr.prototype.iterateDynamicProperties,Cr.prototype.init=function(Y,X){this.data=Y,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ae=this.data.ef.length,Ee=this.data.ef;for(pe=0;pe<Ae;pe+=1){switch(xe=null,Ee[pe].ty){case 0:xe=new Pi(Ee[pe],X,this);break;case 1:xe=new bo(Ee[pe],X,this);break;case 2:xe=new Gi(Ee[pe],X,this);break;case 3:xe=new ro(Ee[pe],X,this);break;case 4:case 7:xe=new xo(Ee[pe],X,this);break;case 10:xe=new Pt(Ee[pe],X,this);break;case 11:xe=new yi(Ee[pe],X,this);break;case 5:xe=new wr(Ee[pe],X);break;default:xe=new Ur(Ee[pe])}xe&&this.effectElements.push(xe)}},Nn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var Y=0,X=this.data.masksProperties.length;Y<X;){if(this.data.masksProperties[Y].mode!=="n"&&this.data.masksProperties[Y].cl!==!1)return!0;Y+=1}return!1},initExpressions:function(){},setBlendMode:function(){var Y=ni(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=Y},initBaseData:function(Y,X,pe){this.globalData=X,this.comp=pe,this.data=Y,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new wr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(Y,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(Y){this.dynamicProperties.indexOf(Y)===-1&&this.dynamicProperties.push(Y)}},rr.prototype.prepareFrame=function(){},g([$n,Nn,Ai],rr),rr.prototype.getBaseElement=function(){return null},rr.prototype.renderFrame=function(){},rr.prototype.destroy=function(){},rr.prototype.initExpressions=function(){},rr.prototype.getFootageData=function(){return this.footageData},ga.prototype.prepareFrame=function(Y){if(this.prepareRenderableFrame(Y,!0),this.prepareProperties(Y,!0),this.tm._placeholder)this._currentTime=Y/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([$n,Nn,Ai],ga),ga.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))},ga.prototype.show=function(){},ga.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ga.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ga.prototype.resume=function(){this._canPlay=!0},ga.prototype.setRate=function(Y){this.audio.rate(Y)},ga.prototype.volume=function(Y){this._volumeMultiplier=Y,this._previousVolume=Y*this._volume,this.audio.volume(this._previousVolume)},ga.prototype.getBaseElement=function(){return null},ga.prototype.destroy=function(){},ga.prototype.sourceRectAtTime=function(){},ga.prototype.initExpressions=function(){},al.prototype.checkLayers=function(Y){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<=Y-this.layers[X].st&&pe.op-pe.st>Y-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},al.prototype.createItem=function(Y){switch(Y.ty){case 2:return this.createImage(Y);case 0:return this.createComp(Y);case 1:return this.createSolid(Y);case 3:default:return this.createNull(Y);case 4:return this.createShape(Y);case 5:return this.createText(Y);case 6:return this.createAudio(Y);case 13:return this.createCamera(Y);case 15:return this.createFootage(Y)}},al.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},al.prototype.createAudio=function(Y){return new ga(Y,this.globalData,this)},al.prototype.createFootage=function(Y){return new rr(Y,this.globalData,this)},al.prototype.buildAllItems=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)this.buildItem(Y);this.checkPendingElements()},al.prototype.includeLayers=function(Y){this.completeLayers=!1;var X,pe,xe=Y.length,Ae=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ae;){if(this.layers[pe].id===Y[X].id){this.layers[pe]=Y[X];break}pe+=1}},al.prototype.setProjectInterface=function(Y){this.globalData.projectInterface=Y},al.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},al.prototype.buildElementParenting=function(Y,X,pe){for(var xe=this.elements,Ae=this.layers,Ee=0,Re=Ae.length;Ee<Re;)Ae[Ee].ind==X&&(xe[Ee]&&xe[Ee]!==!0?(pe.push(xe[Ee]),xe[Ee].setAsParent(),Ae[Ee].parent!==void 0?this.buildElementParenting(Y,Ae[Ee].parent,pe):Y.setHierarchy(pe)):(this.buildItem(Ee),this.addPendingElement(Y))),Ee+=1},al.prototype.addPendingElement=function(Y){this.pendingElements.push(Y)},al.prototype.searchExtraCompositions=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)if(Y[X].xt){var xe=this.createComp(Y[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},al.prototype.getElementById=function(Y){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===Y)return this.elements[X];return null},al.prototype.getElementByPath=function(Y){var X,pe=Y.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 Y.length===0?X:X.getElementByPath(Y)},al.prototype.setupGlobalData=function(Y,X){this.globalData.fontManager=new ln,this.globalData.slotManager=pi(Y),this.globalData.fontManager.addChars(Y.chars),this.globalData.fontManager.addFonts(Y.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=Y.fr,this.globalData.nm=Y.nm,this.globalData.compSize={w:Y.w,h:Y.h}};var ML={TRANSFORM_EFFECT:"transformEFfect"};function x2(){}function S0(Y,X,pe){this.data=Y,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ae=this.globalData.defs,Ee=this.masksProperties?this.masksProperties.length:0;this.viewData=b(Ee),this.solidPath="";var Re,Qe,Ye,zt,Jt,et,pt,At=this.masksProperties,Tt=0,Kt=[],en=H(),Xe="clipPath",We="clip-path";for(xe=0;xe<Ee;xe+=1)if((At[xe].mode!=="a"&&At[xe].mode!=="n"||At[xe].inv||At[xe].o.k!==100||At[xe].o.x)&&(Xe="mask",We="mask"),At[xe].mode!=="s"&&At[xe].mode!=="i"||Tt!==0?zt=null:((zt=se("rect")).setAttribute("fill","#ffffff"),zt.setAttribute("width",this.element.comp.data.w||0),zt.setAttribute("height",this.element.comp.data.h||0),Kt.push(zt)),Re=se("path"),At[xe].mode==="n")this.viewData[xe]={op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),elem:Re,lastPath:""},Ae.appendChild(Re);else{var Ne;if(Tt+=1,Re.setAttribute("fill",At[xe].mode==="s"?"#000000":"#ffffff"),Re.setAttribute("clip-rule","nonzero"),At[xe].x.k!==0?(Xe="mask",We="mask",pt=Ze.getProp(this.element,At[xe].x,0,null,this.element),Ne=H(),(Jt=se("filter")).setAttribute("id",Ne),(et=se("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Jt.appendChild(et),Ae.appendChild(Jt),Re.setAttribute("stroke",At[xe].mode==="s"?"#000000":"#ffffff")):(et=null,pt=null),this.storedData[xe]={elem:Re,x:pt,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},At[xe].mode==="i"){Ye=Kt.length;var qe=se("g");for(Qe=0;Qe<Ye;Qe+=1)qe.appendChild(Kt[Qe]);var ft=se("mask");ft.setAttribute("mask-type","alpha"),ft.setAttribute("id",en+"_"+Tt),ft.appendChild(Re),Ae.appendChild(ft),qe.setAttribute("mask","url("+p()+"#"+en+"_"+Tt+")"),Kt.length=0,Kt.push(qe)}else Kt.push(Re);At[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Re,lastPath:"",op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),invRect:zt},this.viewData[xe].prop.k||this.drawPath(At[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=se(Xe),Ee=Kt.length,xe=0;xe<Ee;xe+=1)this.maskElement.appendChild(Kt[xe]);Tt>0&&(this.maskElement.setAttribute("id",en),this.element.maskedElement.setAttribute(We,"url("+p()+"#"+en+")"),Ae.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}x2.prototype={initTransform:function(){var Y=new jt;this.finalTransform={mProp:this.data.ks?Bt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:Y,localMat:Y,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 Y,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(Y=this.finalTransform.mProp.v.props,X.cloneFromProps(Y),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 Y=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;Y<X;)this.localTransforms[Y]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[Y]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),Y+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),Y=1;Y<X;Y+=1){var xe=this.localTransforms[Y].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var Ae=this.finalTransform.localOpacity;for(Y=0;Y<X;Y+=1)Ae*=.01*this.localTransforms[Y].opacity;this.finalTransform.localOpacity=Ae}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var Y=this.renderableEffectsManager.getEffects(ML.TRANSFORM_EFFECT);if(Y.length){this.localTransforms=[],this.finalTransform.localMat=new jt;var X=0,pe=Y.length;for(X=0;X<pe;X+=1)this.localTransforms.push(Y[X])}}},globalToLocal:function(Y){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,Ee,Re=X.length;for(Ae=0;Ae<Re;Ae+=1)Ee=X[Ae].mat.applyToPointArray(0,0,0),Y=[Y[0]-Ee[0],Y[1]-Ee[1],0];return Y},mHelper:new jt},S0.prototype.getMaskProperty=function(Y){return this.viewData[Y].prop},S0.prototype.renderFrame=function(Y){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||Y)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||Y)&&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||Y)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||Y))){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))}},S0.prototype.getMaskelement=function(){return this.maskElement},S0.prototype.createLayerSolidPath=function(){var Y="M0,0 ";return Y+=" h"+this.globalData.compSize.w,Y+=" v"+this.globalData.compSize.h,Y+=" h-"+this.globalData.compSize.w,Y+=" v-"+this.globalData.compSize.h+" "},S0.prototype.drawPath=function(Y,X,pe){var xe,Ae,Ee=" M"+X.v[0][0]+","+X.v[0][1];for(Ae=X._length,xe=1;xe<Ae;xe+=1)Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&Ae>1&&(Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==Ee){var Re="";pe.elem&&(X.c&&(Re=Y.inv?this.solidPath+Ee:Ee),pe.elem.setAttribute("d",Re)),pe.lastPath=Ee}},S0.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _7=(function(){var Y={};function X(xe,Ae){var Ee=se("filter");return Ee.setAttribute("id",xe),Ae!==!0&&(Ee.setAttribute("filterUnits","objectBoundingBox"),Ee.setAttribute("x","0%"),Ee.setAttribute("y","0%"),Ee.setAttribute("width","100%"),Ee.setAttribute("height","100%")),Ee}function pe(){var xe=se("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 Y.createFilter=X,Y.createAlphaToLuminanceFilter=pe,Y})(),OL=(function(){var Y={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))&&(Y.maskType=!1),/firefox/i.test(navigator.userAgent)&&(Y.svgLumaHidden=!1),Y})(),FL={},E_="filter_result_";function Dk(Y){var X,pe,xe="SourceGraphic",Ae=Y.data.ef?Y.data.ef.length:0,Ee=H(),Re=_7.createFilter(Ee,!0),Qe=0;for(this.filters=[],X=0;X<Ae;X+=1){pe=null;var Ye=Y.data.ef[X].ty;FL[Ye]&&(pe=new FL[Ye].effect(Re,Y.effectsManager.effectElements[X],Y,E_+Qe,xe),xe=E_+Qe,FL[Ye].countsAsEffect&&(Qe+=1)),pe&&this.filters.push(pe)}Qe&&(Y.globalData.defs.appendChild(Re),Y.layerElement.setAttribute("filter","url("+p()+"#"+Ee+")")),this.filters.length&&Y.addRenderableComponent(this)}function xw(){}function V7(){}function g5(){}function yw(Y,X,pe){this.assetData=X.getAssetData(Y.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(Y,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function aae(Y,X){this.elem=Y,this.pos=X}function I_(){}Dk.prototype.renderFrame=function(Y){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(Y)},Dk.prototype.getEffects=function(Y){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===Y&&xe.push(this.filters[X]);return xe},xw.prototype={initRendererElement:function(){this.layerElement=se("g")},createContainerElements:function(){this.matteElement=se("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var Y=null;if(this.data.td){this.matteMasks={};var X=se("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),Y=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),Y=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=se("clipPath"),xe=se("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 Ee=se("g");Ee.setAttribute("clip-path","url("+p()+"#"+Ae+")"),Ee.appendChild(this.layerElement),this.transformedElement=Ee,Y?Y.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 S0(this.data,this,this.globalData),this.renderableEffectsManager=new Dk(this),this.searchEffectTransforms()},getMatte:function(Y){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[Y]){var X,pe,xe,Ae,Ee=this.layerId+"_"+Y;if(Y===1||Y===3){var Re=se("mask");Re.setAttribute("id",Ee),Re.setAttribute("mask-type",Y===3?"luminance":"alpha"),(xe=se("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Re.appendChild(xe),this.globalData.defs.appendChild(Re),!OL.maskType&&Y===1&&(Re.setAttribute("mask-type","luminance"),X=H(),pe=_7.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(_7.createAlphaToLuminanceFilter()),(Ae=se("g")).appendChild(xe),Re.appendChild(Ae),Ae.setAttribute("filter","url("+p()+"#"+X+")"))}else if(Y===2){var Qe=se("mask");Qe.setAttribute("id",Ee),Qe.setAttribute("mask-type","alpha");var Ye=se("g");Qe.appendChild(Ye),X=H(),pe=_7.createFilter(X);var zt=se("feComponentTransfer");zt.setAttribute("in","SourceGraphic"),pe.appendChild(zt);var Jt=se("feFuncA");Jt.setAttribute("type","table"),Jt.setAttribute("tableValues","1.0 0.0"),zt.appendChild(Jt),this.globalData.defs.appendChild(pe);var et=se("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"),Ye.setAttribute("filter","url("+p()+"#"+X+")"),Ye.appendChild(et),(xe=se("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Ye.appendChild(xe),OL.maskType||(Qe.setAttribute("mask-type","luminance"),pe.appendChild(_7.createAlphaToLuminanceFilter()),Ae=se("g"),Ye.appendChild(et),Ae.appendChild(this.layerElement),Ye.appendChild(Ae)),this.globalData.defs.appendChild(Qe)}this.matteMasks[Y]=Ee}return this.matteMasks[Y]},setMatte:function(Y){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+Y+")")}},V7.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(Y){this.hierarchy=Y},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var Y={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([$n,f(Y)],g5)})(),g([Nn,x2,xw,V7,Ai,g5],yw),yw.prototype.createContent=function(){var Y=this.globalData.getAssetsPath(this.assetData);this.innerElem=se("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",Y),this.layerElement.appendChild(this.innerElem)},yw.prototype.sourceRectAtTime=function(){return this.sourceRect},I_.prototype={addShapeToModifiers:function(Y){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(Y)},isShapeInAnimatedModifiers:function(Y){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(Y))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var Y,X=this.shapes.length;for(Y=0;Y<X;Y+=1)this.shapes[Y].sh.reset();for(Y=(X=this.shapeModifiers.length)-1;Y>=0&&!this.shapeModifiers[Y].processShapes(this._isFirstFrame);Y-=1);}},searchProcessedElement:function(Y){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===Y)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(Y,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===Y)return void(pe[xe].pos=X);pe.push(new aae(Y,X))},prepareFrame:function(Y){this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange)}};var D_={1:"butt",2:"round",3:"square"},T_={1:"miter",2:"round",3:"bevel"};function L_(Y,X,pe){this.caches=[],this.styles=[],this.transformers=Y,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,Ae=Y.length;xe<Ae;){if(Y[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function B_(Y,X){this.data=Y,this.type=Y.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=Y.hd===!0,this.pElem=se("path"),this.msElem=null}function Tk(Y,X,pe,xe){this.elem=Y,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,Ee,Re=X.length||0;for(Ae=0;Ae<Re;Ae+=1)Ee=Ze.getProp(Y,X[Ae].v,0,0,this),this.k=Ee.k||this.k,this.dataProps[Ae]={n:X[Ae].n,p:Ee};this.k||this.getValue(!0),this._isAnimated=this.k}function P_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(Y,X.o,0,.01,this),this.w=Ze.getProp(Y,X.w,0,null,this),this.d=new Tk(Y,X.d||{},"svg",this),this.c=Ze.getProp(Y,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function M_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(Y,X.o,0,.01,this),this.c=Ze.getProp(Y,X.c,1,255,this),this.style=pe}function O_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.style=pe}function bw(Y,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=Ze.getProp(Y,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function k0(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.initGradientData(Y,X,pe)}function F_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.w=Ze.getProp(Y,X.w,0,null,this),this.d=new Tk(Y,X.d||{},"svg",this),this.initGradientData(Y,X,pe),this._isAnimated=!!this._isAnimated}function sae(){this.it=[],this.prevViewData=[],this.gr=se("g")}function lae(Y,X,pe){this.transform={mProps:Y,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}L_.prototype.setAsAnimated=function(){this._isAnimated=!0},B_.prototype.reset=function(){this.d="",this._mdf=!1},Tk.prototype.getValue=function(Y){if((this.elem.globalData.frameId!==this.frameId||Y)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||Y,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([Ot],Tk),g([Ot],P_),g([Ot],M_),g([Ot],O_),bw.prototype.comparePoints=function(Y,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(Y[4*pe]-Y[4*X+2*pe])>.01)return!1;pe+=1}return!0},bw.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var Y=0,X=this.data.k.k.length;Y<X;){if(!this.comparePoints(this.data.k.k[Y].s,this.data.p))return!1;Y+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},bw.prototype.getValue=function(Y){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||Y){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=!Y);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=!Y);this._mdf=!Y}},g([Ot],bw),k0.prototype.initGradientData=function(Y,X,pe){this.o=Ze.getProp(Y,X.o,0,.01,this),this.s=Ze.getProp(Y,X.s,1,null,this),this.e=Ze.getProp(Y,X.e,1,null,this),this.h=Ze.getProp(Y,X.h||{k:0},0,.01,this),this.a=Ze.getProp(Y,X.a||{k:0},0,D,this),this.g=new bw(Y,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},k0.prototype.setGradientData=function(Y,X){var pe=H(),xe=se(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ae,Ee,Re,Qe=[];for(Re=4*X.g.p,Ee=0;Ee<Re;Ee+=4)Ae=se("stop"),xe.appendChild(Ae),Qe.push(Ae);Y.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Qe},k0.prototype.setGradientOpacity=function(Y,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ae,Ee=se("mask"),Re=se("path");Ee.appendChild(Re);var Qe=H(),Ye=H();Ee.setAttribute("id",Ye);var zt=se(Y.t===1?"linearGradient":"radialGradient");zt.setAttribute("id",Qe),zt.setAttribute("spreadMethod","pad"),zt.setAttribute("gradientUnits","userSpaceOnUse"),Ae=Y.g.k.k[0].s?Y.g.k.k[0].s.length:Y.g.k.k.length;var Jt=this.stops;for(xe=4*Y.g.p;xe<Ae;xe+=2)(pe=se("stop")).setAttribute("stop-color","rgb(255,255,255)"),zt.appendChild(pe),Jt.push(pe);Re.setAttribute(Y.ty==="gf"?"fill":"stroke","url("+p()+"#"+Qe+")"),Y.ty==="gs"&&(Re.setAttribute("stroke-linecap",D_[Y.lc||2]),Re.setAttribute("stroke-linejoin",T_[Y.lj||2]),Y.lj===1&&Re.setAttribute("stroke-miterlimit",Y.ml)),this.of=zt,this.ms=Ee,this.ost=Jt,this.maskId=Ye,X.msElem=Re}},g([Ot],k0),g([k0,Ot],F_);var Zn=function(Y,X,pe,xe){if(X===0)return"";var Ae,Ee=Y.o,Re=Y.i,Qe=Y.v,Ye=" M"+xe.applyToPointStringified(Qe[0][0],Qe[0][1]);for(Ae=1;Ae<X;Ae+=1)Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[Ae][0],Re[Ae][1])+" "+xe.applyToPointStringified(Qe[Ae][0],Qe[Ae][1]);return pe&&X&&(Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[0][0],Re[0][1])+" "+xe.applyToPointStringified(Qe[0][0],Qe[0][1]),Ye+="z"),Ye},Sr=(function(){var Y=new jt,X=new jt;function pe(Jt){switch(Jt.ty){case"fl":return Re;case"gf":return Ye;case"gs":return Qe;case"st":return zt;case"sh":case"el":case"rc":case"sr":return Ee;case"tr":return xe;case"no":return Ae;default:return null}}function xe(Jt,et,pt){(pt||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(pt||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function Ae(){}function Ee(Jt,et,pt){var At,Tt,Kt,en,Xe,We,Ne,qe,ft,rn,sn=et.styles.length,Nt=et.lvl;for(We=0;We<sn;We+=1){if(en=et.sh._mdf||pt,et.styles[We].lvl<Nt){for(qe=X.reset(),ft=Nt-et.styles[We].lvl,rn=et.transformers.length-1;!en&&ft>0;)en=et.transformers[rn].mProps._mdf||en,ft-=1,rn-=1;if(en)for(ft=Nt-et.styles[We].lvl,rn=et.transformers.length-1;ft>0;)qe.multiply(et.transformers[rn].mProps.v),ft-=1,rn-=1}else qe=Y;if(Tt=(Ne=et.sh.paths)._length,en){for(Kt="",At=0;At<Tt;At+=1)(Xe=Ne.shapes[At])&&Xe._length&&(Kt+=Zn(Xe,Xe._length,Xe.c,qe));et.caches[We]=Kt}else Kt=et.caches[We];et.styles[We].d+=Jt.hd===!0?"":Kt,et.styles[We]._mdf=en||et.styles[We]._mdf}}function Re(Jt,et,pt){var At=et.style;(et.c._mdf||pt)&&At.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("fill-opacity",et.o.v)}function Qe(Jt,et,pt){Ye(Jt,et,pt),zt(Jt,et,pt)}function Ye(Jt,et,pt){var At,Tt,Kt,en,Xe,We=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,ft=et.e.v;if(et.o._mdf||pt){var rn=Jt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||pt){var sn=Jt.t===1?"x1":"cx",Nt=sn==="x1"?"y1":"cy";We.setAttribute(sn,qe[0]),We.setAttribute(Nt,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(sn,qe[0]),et.of.setAttribute(Nt,qe[1]))}if(et.g._cmdf||pt){At=et.cst;var po=et.g.c;for(Kt=At.length,Tt=0;Tt<Kt;Tt+=1)(en=At[Tt]).setAttribute("offset",po[4*Tt]+"%"),en.setAttribute("stop-color","rgb("+po[4*Tt+1]+","+po[4*Tt+2]+","+po[4*Tt+3]+")")}if(Ne&&(et.g._omdf||pt)){var Eo=et.g.o;for(Kt=(At=et.g._collapsable?et.cst:et.ost).length,Tt=0;Tt<Kt;Tt+=1)en=At[Tt],et.g._collapsable||en.setAttribute("offset",Eo[2*Tt]+"%"),en.setAttribute("stop-opacity",Eo[2*Tt+1])}if(Jt.t===1)(et.e._mdf||pt)&&(We.setAttribute("x2",ft[0]),We.setAttribute("y2",ft[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",ft[0]),et.of.setAttribute("y2",ft[1])));else if((et.s._mdf||et.e._mdf||pt)&&(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)),We.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||pt){Xe||(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)));var li=Math.atan2(ft[1]-qe[1],ft[0]-qe[0]),Ko=et.h.v;Ko>=1?Ko=.99:Ko<=-1&&(Ko=-.99);var lo=Xe*Ko,Vt=Math.cos(li+et.a.v)*lo+qe[0],xn=Math.sin(li+et.a.v)*lo+qe[1];We.setAttribute("fx",Vt),We.setAttribute("fy",xn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Vt),et.of.setAttribute("fy",xn))}}function zt(Jt,et,pt){var At=et.style,Tt=et.d;Tt&&(Tt._mdf||pt)&&Tt.dashStr&&(At.pElem.setAttribute("stroke-dasharray",Tt.dashStr),At.pElem.setAttribute("stroke-dashoffset",Tt.dashoffset[0])),et.c&&(et.c._mdf||pt)&&At.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||pt)&&(At.pElem.setAttribute("stroke-width",et.w.v),At.msElem&&At.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function tr(Y,X,pe){this.shapes=[],this.shapesData=Y.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(Y,X,pe),this.prevViewData=[]}function eh(Y,X,pe,xe,Ae,Ee){this.o=Y,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ae,this.p=Ee,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function nd(Y,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=Y.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=Y,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([Nn,x2,xw,I_,V7,Ai,g5],tr),tr.prototype.initSecondaryElement=function(){},tr.prototype.identityMatrix=new jt,tr.prototype.buildExpressionInterface=function(){},tr.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},tr.prototype.filterUniqueShapes=function(){var Y,X,pe,xe,Ae=this.shapes.length,Ee=this.stylesList.length,Re=[],Qe=!1;for(pe=0;pe<Ee;pe+=1){for(xe=this.stylesList[pe],Qe=!1,Re.length=0,Y=0;Y<Ae;Y+=1)(X=this.shapes[Y]).styles.indexOf(xe)!==-1&&(Re.push(X),Qe=X._isAnimated||Qe);Re.length>1&&Qe&&this.setShapesAsAnimated(Re)}},tr.prototype.setShapesAsAnimated=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)Y[X].setAsAnimated()},tr.prototype.createStyleElement=function(Y,X){var pe,xe=new B_(Y,X),Ae=xe.pElem;return Y.ty==="st"?pe=new P_(this,Y,xe):Y.ty==="fl"?pe=new M_(this,Y,xe):Y.ty==="gf"||Y.ty==="gs"?(pe=new(Y.ty==="gf"?k0:F_)(this,Y,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+")"))):Y.ty==="no"&&(pe=new O_(this,Y,xe)),(Y.ty==="st"||Y.ty==="gs")&&(Ae.setAttribute("stroke-linecap",D_[Y.lc||2]),Ae.setAttribute("stroke-linejoin",T_[Y.lj||2]),Ae.setAttribute("fill-opacity","0"),Y.lj===1&&Ae.setAttribute("stroke-miterlimit",Y.ml)),Y.r===2&&Ae.setAttribute("fill-rule","evenodd"),Y.ln&&Ae.setAttribute("id",Y.ln),Y.cl&&Ae.setAttribute("class",Y.cl),Y.bm&&(Ae.style["mix-blend-mode"]=ni(Y.bm)),this.stylesList.push(xe),this.addToAnimatedContents(Y,pe),pe},tr.prototype.createGroupElement=function(Y){var X=new sae;return Y.ln&&X.gr.setAttribute("id",Y.ln),Y.cl&&X.gr.setAttribute("class",Y.cl),Y.bm&&(X.gr.style["mix-blend-mode"]=ni(Y.bm)),X},tr.prototype.createTransformElement=function(Y,X){var pe=Bt.getTransformProperty(this,Y,this),xe=new lae(pe,pe.o,X);return this.addToAnimatedContents(Y,xe),xe},tr.prototype.createShapeElement=function(Y,X,pe){var xe=4;Y.ty==="rc"?xe=5:Y.ty==="el"?xe=6:Y.ty==="sr"&&(xe=7);var Ae=new L_(X,pe,at.getShapeProp(this,Y,xe,this));return this.shapes.push(Ae),this.addShapeToModifiers(Ae),this.addToAnimatedContents(Y,Ae),Ae},tr.prototype.addToAnimatedContents=function(Y,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:Sr.createRenderFunction(Y),element:X,data:Y})},tr.prototype.setElementStyles=function(Y){var X,pe=Y.styles,xe=this.stylesList.length;for(X=0;X<xe;X+=1)pe.indexOf(this.stylesList[X])===-1&&!this.stylesList[X].closed&&pe.push(this.stylesList[X])},tr.prototype.reloadShapes=function(){this._isFirstFrame=!0;var Y,X=this.itemsData.length;for(Y=0;Y<X;Y+=1)this.prevViewData[Y]=this.itemsData[Y];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,Y=0;Y<X;Y+=1)this.dynamicProperties[Y].getValue();this.renderModifiers()},tr.prototype.searchShapes=function(Y,X,pe,xe,Ae,Ee,Re){var Qe,Ye,zt,Jt,et,pt,At=[].concat(Ee),Tt=Y.length-1,Kt=[],en=[];for(Qe=Tt;Qe>=0;Qe-=1){if((pt=this.searchProcessedElement(Y[Qe]))?X[Qe]=pe[pt-1]:Y[Qe]._render=Re,Y[Qe].ty==="fl"||Y[Qe].ty==="st"||Y[Qe].ty==="gf"||Y[Qe].ty==="gs"||Y[Qe].ty==="no")pt?X[Qe].style.closed=Y[Qe].hd:X[Qe]=this.createStyleElement(Y[Qe],Ae),Y[Qe]._render&&X[Qe].style.pElem.parentNode!==xe&&xe.appendChild(X[Qe].style.pElem),Kt.push(X[Qe].style);else if(Y[Qe].ty==="gr"){if(pt)for(zt=X[Qe].it.length,Ye=0;Ye<zt;Ye+=1)X[Qe].prevViewData[Ye]=X[Qe].it[Ye];else X[Qe]=this.createGroupElement(Y[Qe]);this.searchShapes(Y[Qe].it,X[Qe].it,X[Qe].prevViewData,X[Qe].gr,Ae+1,At,Re),Y[Qe]._render&&X[Qe].gr.parentNode!==xe&&xe.appendChild(X[Qe].gr)}else Y[Qe].ty==="tr"?(pt||(X[Qe]=this.createTransformElement(Y[Qe],xe)),Jt=X[Qe].transform,At.push(Jt)):Y[Qe].ty==="sh"||Y[Qe].ty==="rc"||Y[Qe].ty==="el"||Y[Qe].ty==="sr"?(pt||(X[Qe]=this.createShapeElement(Y[Qe],At,Ae)),this.setElementStyles(X[Qe])):Y[Qe].ty==="tm"||Y[Qe].ty==="rd"||Y[Qe].ty==="ms"||Y[Qe].ty==="pb"||Y[Qe].ty==="zz"||Y[Qe].ty==="op"?(pt?(et=X[Qe]).closed=!1:((et=un.getModifier(Y[Qe].ty)).init(this,Y[Qe]),X[Qe]=et,this.shapeModifiers.push(et)),en.push(et)):Y[Qe].ty==="rp"&&(pt?(et=X[Qe]).closed=!0:(et=un.getModifier(Y[Qe].ty),X[Qe]=et,et.init(this,Y,Qe,X),this.shapeModifiers.push(et),Re=!1),en.push(et));this.addProcessedElement(Y[Qe],Qe+1)}for(Tt=Kt.length,Qe=0;Qe<Tt;Qe+=1)Kt[Qe].closed=!0;for(Tt=en.length,Qe=0;Qe<Tt;Qe+=1)en[Qe].closed=!0},tr.prototype.renderInnerContent=function(){this.renderModifiers();var Y,X=this.stylesList.length;for(Y=0;Y<X;Y+=1)this.stylesList[Y].reset();for(this.renderShape(),Y=0;Y<X;Y+=1)(this.stylesList[Y]._mdf||this._isFirstFrame)&&(this.stylesList[Y].msElem&&(this.stylesList[Y].msElem.setAttribute("d",this.stylesList[Y].d),this.stylesList[Y].d="M0 0"+this.stylesList[Y].d),this.stylesList[Y].pElem.setAttribute("d",this.stylesList[Y].d||"M0 0"))},tr.prototype.renderShape=function(){var Y,X,pe=this.animatedContents.length;for(Y=0;Y<pe;Y+=1)X=this.animatedContents[Y],(this._isFirstFrame||X.element._isAnimated)&&X.data!==!0&&X.fn(X.data,X.element,this._isFirstFrame)},tr.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},eh.prototype.update=function(Y,X,pe,xe,Ae,Ee){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Re=!1;return this.o!==Y&&(this.o=Y,this._mdf.o=!0,Re=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Re=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Re=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Re=!0),this.m!==Ae&&(this.m=Ae,this._mdf.m=!0,Re=!0),Ee.length&&(this.p[0]!==Ee[0]||this.p[1]!==Ee[1]||this.p[4]!==Ee[4]||this.p[5]!==Ee[5]||this.p[12]!==Ee[12]||this.p[13]!==Ee[13])&&(this.p=Ee,this._mdf.p=!0,Re=!0),Re},nd.prototype.defaultBoxWidth=[0,0],nd.prototype.copyData=function(Y,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(Y[pe]=X[pe]);return Y},nd.prototype.setCurrentData=function(Y){Y.__complete||this.completeTextData(Y),this.currentData=Y,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},nd.prototype.searchProperty=function(){return this.searchKeyframes()},nd.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},nd.prototype.addEffect=function(Y){this.effectsSequence.push(Y),this.elem.addDynamicProperty(this)},nd.prototype.getValue=function(Y){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||Y){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,Ee=Y||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ae;xe+=1)Ee=pe!==this.keysIndex?this.effectsSequence[xe](Ee,Ee.t):this.effectsSequence[xe](this.currentData,Ee.t);X!==Ee&&this.setCurrentData(Ee),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},nd.prototype.getKeyframeValue=function(){for(var Y=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=Y.length;pe<=xe-1&&!(pe===xe-1||Y[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},nd.prototype.buildFinalText=function(Y){for(var X,pe,xe=[],Ae=0,Ee=Y.length,Re=!1,Qe=!1,Ye="";Ae<Ee;)Re=Qe,Qe=!1,X=Y.charCodeAt(Ae),Ye=Y.charAt(Ae),ln.isCombinedCharacter(X)?Re=!0:X>=55296&&X<=56319?ln.isRegionalFlag(Y,Ae)?Ye=Y.substr(Ae,14):(pe=Y.charCodeAt(Ae+1))>=56320&&pe<=57343&&(ln.isModifier(X,pe)?(Ye=Y.substr(Ae,2),Re=!0):Ye=ln.isFlagEmoji(Y.substr(Ae,4))?Y.substr(Ae,4):Y.substr(Ae,2)):X>56319?(pe=Y.charCodeAt(Ae+1),ln.isVariationSelector(X)&&(Re=!0)):ln.isZeroWidthJoiner(X)&&(Re=!0,Qe=!0),Re?(xe[xe.length-1]+=Ye,Re=!1):xe.push(Ye),Ae+=Ye.length;return xe},nd.prototype.completeTextData=function(Y){Y.__complete=!0;var X,pe,xe,Ae,Ee,Re,Qe,Ye=this.elem.globalData.fontManager,zt=this.data,Jt=[],et=0,pt=zt.m.g,At=0,Tt=0,Kt=0,en=[],Xe=0,We=0,Ne=Ye.getFontByName(Y.f),qe=0,ft=_t(Ne);Y.fWeight=ft.weight,Y.fStyle=ft.style,Y.finalSize=Y.s,Y.finalText=this.buildFinalText(Y.t),pe=Y.finalText.length,Y.finalLineHeight=Y.lh;var rn,sn=Y.tr/1e3*Y.finalSize;if(Y.sz)for(var Nt,po,Eo=!0,li=Y.sz[0],Ko=Y.sz[1];Eo;){Nt=0,Xe=0,pe=(po=this.buildFinalText(Y.t)).length,sn=Y.tr/1e3*Y.finalSize;var lo=-1;for(X=0;X<pe;X+=1)rn=po[X].charCodeAt(0),xe=!1,po[X]===" "?lo=X:(rn===13||rn===3)&&(Xe=0,xe=!0,Nt+=Y.finalLineHeight||1.2*Y.finalSize),Ye.chars?(Qe=Ye.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Qe.w*Y.finalSize/100):qe=Ye.measureText(po[X],Y.f,Y.finalSize),Xe+qe>li&&po[X]!==" "?(lo===-1?pe+=1:X=lo,Nt+=Y.finalLineHeight||1.2*Y.finalSize,po.splice(X,lo===X?1:0,"\r"),lo=-1,Xe=0):(Xe+=qe,Xe+=sn);Nt+=Ne.ascent*Y.finalSize/100,this.canResize&&Y.finalSize>this.minimumFontSize&&Ko<Nt?(Y.finalSize-=1,Y.finalLineHeight=Y.finalSize*Y.lh/Y.s):(Y.finalText=po,pe=Y.finalText.length,Eo=!1)}Xe=-sn,qe=0;var Vt,xn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Vt=Y.finalText[X]).charCodeAt(0))===13||rn===3?(xn=0,en.push(Xe),We=Xe>We?Xe:We,Xe=-2*sn,Ae="",xe=!0,Kt+=1):Ae=Vt,Ye.chars?(Qe=Ye.getCharData(Vt,Ne.fStyle,Ye.getFontByName(Y.f).fFamily),qe=xe?0:Qe.w*Y.finalSize/100):qe=Ye.measureText(Ae,Y.f,Y.finalSize),Vt===" "?xn+=qe+sn:(Xe+=qe+sn+xn,xn=0),Jt.push({l:qe,an:qe,add:At,n:xe,anIndexes:[],val:Ae,line:Kt,animatorJustifyOffset:0}),pt==2){if(At+=qe,Ae===""||Ae===" "||X===pe-1){for((Ae===""||Ae===" ")&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;et+=1,At=0}}else if(pt==3){if(At+=qe,Ae===""||X===pe-1){for(Ae===""&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;At=0,et+=1}}else Jt[et].ind=et,Jt[et].extra=0,et+=1;if(Y.l=Jt,We=Xe>We?Xe:We,en.push(Xe),Y.sz)Y.boxWidth=Y.sz[0],Y.justifyOffset=0;else switch(Y.boxWidth=We,Y.j){case 1:Y.justifyOffset=-Y.boxWidth;break;case 2:Y.justifyOffset=-Y.boxWidth/2;break;default:Y.justifyOffset=0}Y.lineWidths=en;var xt,ut,ze=zt.a;Re=ze.length;var ht,wt,fi=[];for(Ee=0;Ee<Re;Ee+=1){for((xt=ze[Ee]).a.sc&&(Y.strokeColorAnim=!0),xt.a.sw&&(Y.strokeWidthAnim=!0),(xt.a.fc||xt.a.fh||xt.a.fs||xt.a.fb)&&(Y.fillColorAnim=!0),wt=0,ht=xt.s.b,X=0;X<pe;X+=1)(ut=Jt[X]).anIndexes[Ee]=wt,(ht==1&&ut.val!==""||ht==2&&ut.val!==""&&ut.val!==" "||ht==3&&(ut.n||ut.val==" "||X==pe-1)||ht==4&&(ut.n||X==pe-1))&&(xt.s.rn===1&&fi.push(wt),wt+=1);zt.a[Ee].s.totalChars=wt;var Zo,Po=-1;if(xt.s.rn===1)for(X=0;X<pe;X+=1)Po!=(ut=Jt[X]).anIndexes[Ee]&&(Po=ut.anIndexes[Ee],Zo=fi.splice(Math.floor(Math.random()*fi.length),1)[0]),ut.anIndexes[Ee]=Zo}Y.yOffset=Y.finalLineHeight||1.2*Y.finalSize,Y.ls=Y.ls||0,Y.ascent=Ne.ascent*Y.finalSize/100},nd.prototype.updateDocumentData=function(Y,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,Y),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},nd.prototype.recalculate=function(Y){var X=this.data.d.k[Y].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},nd.prototype.canResizeFont=function(Y){this.canResize=Y,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},nd.prototype.setMinimumFontSize=function(Y){this.minimumFontSize=Math.floor(Y)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var ww=(function(){var Y=Math.max,X=Math.min,pe=Math.floor;function xe(Ee,Re){this._currentTextLength=-1,this.k=!1,this.data=Re,this.elem=Ee,this.comp=Ee.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(Ee),this.s=Ze.getProp(Ee,Re.s||{k:0},0,0,this),this.e="e"in Re?Ze.getProp(Ee,Re.e,0,0,this):{v:100},this.o=Ze.getProp(Ee,Re.o||{k:0},0,0,this),this.xe=Ze.getProp(Ee,Re.xe||{k:0},0,0,this),this.ne=Ze.getProp(Ee,Re.ne||{k:0},0,0,this),this.sm=Ze.getProp(Ee,Re.sm||{k:100},0,0,this),this.a=Ze.getProp(Ee,Re.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function Ae(Ee,Re,Qe){return new xe(Ee,Re)}return xe.prototype={getMult:function(Ee){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Re=0,Qe=0,Ye=1,zt=1;this.ne.v>0?Re=this.ne.v/100:Qe=-this.ne.v/100,this.xe.v>0?Ye=1-this.xe.v/100:zt=1+this.xe.v/100;var Jt=Be.getBezierEasing(Re,Qe,Ye,zt).get,et=0,pt=this.finalS,At=this.finalE,Tt=this.data.sh;if(Tt===2)et=Jt(et=At===pt?Ee>=At?1:0:Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===3)et=Jt(et=At===pt?Ee>=At?0:1:1-Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===4)At===pt?et=0:(et=Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)))<.5?et*=2:et=1-2*(et-.5),et=Jt(et);else if(Tt===5){if(At===pt)et=0;else{var Kt=At-pt,en=-Kt/2+(Ee=X(Y(0,Ee+.5-pt),At-pt)),Xe=Kt/2;et=Math.sqrt(1-en*en/(Xe*Xe))}et=Jt(et)}else Tt===6?(At===pt?et=0:(Ee=X(Y(0,Ee+.5-pt),At-pt),et=(1+Math.cos(Math.PI+2*Math.PI*Ee/(At-pt)))/2),et=Jt(et)):(Ee>=pe(pt)&&(et=Y(0,X(Ee-pt<0?X(At,1)-(pt-Ee):At-Ee,1))),et=Jt(et));if(this.sm.v!==100){var We=.01*this.sm.v;We===0&&(We=1e-8);var Ne=.5-.5*We;et<Ne?et=0:(et=(et-Ne)/We)>1&&(et=1)}return et*this.a.v},getValue:function(Ee){this.iterateDynamicProperties(),this._mdf=Ee||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,Ee&&this.data.r===2&&(this.e.v=this._currentTextLength);var Re=this.data.r===2?1:100/this.data.totalChars,Qe=this.o.v/Re,Ye=this.s.v/Re+Qe,zt=this.e.v/Re+Qe;if(Ye>zt){var Jt=Ye;Ye=zt,zt=Jt}this.finalS=Ye,this.finalE=zt}},g([Ot],xe),{getTextSelectorProp:Ae}})();function cae(Y,X,pe){var xe={propType:!1},Ae=Ze.getProp,Ee=X.a;this.a={r:Ee.r?Ae(Y,Ee.r,0,D,pe):xe,rx:Ee.rx?Ae(Y,Ee.rx,0,D,pe):xe,ry:Ee.ry?Ae(Y,Ee.ry,0,D,pe):xe,sk:Ee.sk?Ae(Y,Ee.sk,0,D,pe):xe,sa:Ee.sa?Ae(Y,Ee.sa,0,D,pe):xe,s:Ee.s?Ae(Y,Ee.s,1,.01,pe):xe,a:Ee.a?Ae(Y,Ee.a,1,0,pe):xe,o:Ee.o?Ae(Y,Ee.o,0,.01,pe):xe,p:Ee.p?Ae(Y,Ee.p,1,0,pe):xe,sw:Ee.sw?Ae(Y,Ee.sw,0,0,pe):xe,sc:Ee.sc?Ae(Y,Ee.sc,1,0,pe):xe,fc:Ee.fc?Ae(Y,Ee.fc,1,0,pe):xe,fh:Ee.fh?Ae(Y,Ee.fh,0,0,pe):xe,fs:Ee.fs?Ae(Y,Ee.fs,0,.01,pe):xe,fb:Ee.fb?Ae(Y,Ee.fb,0,.01,pe):xe,t:Ee.t?Ae(Y,Ee.t,0,0,pe):xe},this.s=ww.getTextSelectorProp(Y,X.s,pe),this.s.t=X.s.t}function y2(Y,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=Y,this._renderType=X,this._elem=pe,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(pe)}function j0(){}y2.prototype.searchProperties=function(){var Y,X,pe=this._textData.a.length,xe=Ze.getProp;for(Y=0;Y<pe;Y+=1)X=this._textData.a[Y],this._animatorsData[Y]=new cae(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)},y2.prototype.getMeasures=function(Y,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ae,Ee,Re,Qe,Ye,zt,Jt,et,pt,At,Tt,Kt,en,Xe,We,Ne,qe,ft=this._moreOptions.alignment.v,rn=this._animatorsData,sn=this._textData,Nt=this.mHelper,po=this._renderType,Eo=this.renderedLetters.length,li=Y.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ko,lo=qe.v;for(this._pathData.r.v&&(lo=lo.reverse()),Re={tLength:0,segments:[]},Ee=lo._length-1,Xe=0,Ae=0;Ae<Ee;Ae+=1)Ko=De.buildBezierData(lo.v[Ae],lo.v[Ae+1],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[Ae+1][0]-lo.v[Ae+1][0],lo.i[Ae+1][1]-lo.v[Ae+1][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength;Ae=Ee,qe.v.c&&(Ko=De.buildBezierData(lo.v[Ae],lo.v[0],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[0][0]-lo.v[0][0],lo.i[0][1]-lo.v[0][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength),this._pathData.pi=Re}if(Re=this._pathData.pi,Qe=this._pathData.f.v,pt=0,et=1,zt=0,Jt=!0,Kt=Re.segments,Qe<0&&qe.v.c)for(Re.tLength<Math.abs(Qe)&&(Qe=-Math.abs(Qe)%Re.tLength),et=(Tt=Kt[pt=Kt.length-1].points).length-1;Qe<0;)Qe+=Tt[et].partialLength,(et-=1)<0&&(et=(Tt=Kt[pt-=1].points).length-1);At=(Tt=Kt[pt].points)[et-1],en=(Ye=Tt[et]).partialLength}Ee=li.length,pe=0,xe=0;var Vt,xn,xt,ut,ze=1.2*Y.finalSize*.714,ht=!0;xt=rn.length;var wt,fi,Zo,Po,wa,Jo,fl,fa,Xa,$0,b2,E0,I0,th=-1,dr=Qe,Lk=pt,Bk=et,Cw=-1,Yf="",y5=this.defaultPropsArray;if(Y.j===2||Y.j===1){var nh=0,U7=0,W7=Y.j===2?-.5:-1,w2=0,Q7=!0;for(Ae=0;Ae<Ee;Ae+=1)if(li[Ae].n){for(nh&&(nh+=U7);w2<Ae;)li[w2].animatorJustifyOffset=nh,w2+=1;nh=0,Q7=!0}else{for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(Q7&&Y.j===2&&(U7+=Vt.t.v*W7),(wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?nh+=Vt.t.v*wt[0]*W7:nh+=Vt.t.v*wt*W7);Q7=!1}for(nh&&(nh+=U7);w2<Ae;)li[w2].animatorJustifyOffset=nh,w2+=1}for(Ae=0;Ae<Ee;Ae+=1){if(Nt.reset(),wa=1,li[Ae].n)pe=0,xe+=Y.yOffset,xe+=ht?1:0,Qe=dr,ht=!1,this._hasMaskedPath&&(et=Bk,At=(Tt=Kt[pt=Lk].points)[et-1],en=(Ye=Tt[et]).partialLength,zt=0),Yf="",E0="",$0="",I0="",y5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Cw!==li[Ae].line){switch(Y.j){case 1:Qe+=Xe-Y.lineWidths[li[Ae].line];break;case 2:Qe+=(Xe-Y.lineWidths[li[Ae].line])/2}Cw=li[Ae].line}th!==li[Ae].ind&&(li[th]&&(Qe+=li[th].extra),Qe+=li[Ae].an/2,th=li[Ae].ind),Qe+=ft[0]*li[Ae].an*.005;var C2=0;for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&((wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?C2+=Vt.p.v[0]*wt[0]:C2+=Vt.p.v[0]*wt),Vt.a.propType&&((wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?C2+=Vt.a.v[0]*wt[0]:C2+=Vt.a.v[0]*wt);for(Jt=!0,this._pathData.a.v&&(Qe=.5*li[0].an+(Xe-this._pathData.f.v-.5*li[0].an-.5*li[li.length-1].an)*th/(Ee-1),Qe+=this._pathData.f.v);Jt;)zt+en>=Qe+C2||!Tt?(We=(Qe+C2-zt)/Ye.partialLength,Zo=At.point[0]+(Ye.point[0]-At.point[0])*We,Po=At.point[1]+(Ye.point[1]-At.point[1])*We,Nt.translate(-ft[0]*li[Ae].an*.005,-ft[1]*ze*.01),Jt=!1):Tt&&(zt+=Ye.partialLength,(et+=1)>=Tt.length&&(et=0,Kt[pt+=1]?Tt=Kt[pt].points:qe.v.c?(et=0,Tt=Kt[pt=0].points):(zt-=Ye.partialLength,Tt=null)),Tt&&(At=Ye,en=(Ye=Tt[et]).partialLength));fi=li[Ae].an/2-li[Ae].add,Nt.translate(-fi,0,0)}else fi=li[Ae].an/2-li[Ae].add,Nt.translate(-fi,0,0),Nt.translate(-ft[0]*li[Ae].an*.005,-ft[1]*ze*.01,0);for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars),(pe!==0||Y.j!==0)&&(this._hasMaskedPath?wt.length?Qe+=Vt.t.v*wt[0]:Qe+=Vt.t.v*wt:wt.length?pe+=Vt.t.v*wt[0]:pe+=Vt.t.v*wt));for(Y.strokeWidthAnim&&(fl=Y.sw||0),Y.strokeColorAnim&&(Jo=Y.sc?[Y.sc[0],Y.sc[1],Y.sc[2]]:[0,0,0]),Y.fillColorAnim&&Y.fc&&(fa=[Y.fc[0],Y.fc[1],Y.fc[2]]),xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).a.propType&&((wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?Nt.translate(-Vt.a.v[0]*wt[0],-Vt.a.v[1]*wt[1],Vt.a.v[2]*wt[2]):Nt.translate(-Vt.a.v[0]*wt,-Vt.a.v[1]*wt,Vt.a.v[2]*wt));for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).s.propType&&((wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?Nt.scale(1+(Vt.s.v[0]-1)*wt[0],1+(Vt.s.v[1]-1)*wt[1],1):Nt.scale(1+(Vt.s.v[0]-1)*wt,1+(Vt.s.v[1]-1)*wt,1));for(xn=0;xn<xt;xn+=1){if(Vt=rn[xn].a,wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars),Vt.sk.propType&&(wt.length?Nt.skewFromAxis(-Vt.sk.v*wt[0],Vt.sa.v*wt[1]):Nt.skewFromAxis(-Vt.sk.v*wt,Vt.sa.v*wt)),Vt.r.propType&&(wt.length?Nt.rotateZ(-Vt.r.v*wt[2]):Nt.rotateZ(-Vt.r.v*wt)),Vt.ry.propType&&(wt.length?Nt.rotateY(Vt.ry.v*wt[1]):Nt.rotateY(Vt.ry.v*wt)),Vt.rx.propType&&(wt.length?Nt.rotateX(Vt.rx.v*wt[0]):Nt.rotateX(Vt.rx.v*wt)),Vt.o.propType&&(wt.length?wa+=(Vt.o.v*wt[0]-wa)*wt[0]:wa+=(Vt.o.v*wt-wa)*wt),Y.strokeWidthAnim&&Vt.sw.propType&&(wt.length?fl+=Vt.sw.v*wt[0]:fl+=Vt.sw.v*wt),Y.strokeColorAnim&&Vt.sc.propType)for(Xa=0;Xa<3;Xa+=1)wt.length?Jo[Xa]+=(Vt.sc.v[Xa]-Jo[Xa])*wt[0]:Jo[Xa]+=(Vt.sc.v[Xa]-Jo[Xa])*wt;if(Y.fillColorAnim&&Y.fc){if(Vt.fc.propType)for(Xa=0;Xa<3;Xa+=1)wt.length?fa[Xa]+=(Vt.fc.v[Xa]-fa[Xa])*wt[0]:fa[Xa]+=(Vt.fc.v[Xa]-fa[Xa])*wt;Vt.fh.propType&&(fa=wt.length?q(fa,Vt.fh.v*wt[0]):q(fa,Vt.fh.v*wt)),Vt.fs.propType&&(fa=wt.length?U(fa,Vt.fs.v*wt[0]):U(fa,Vt.fs.v*wt)),Vt.fb.propType&&(fa=wt.length?G(fa,Vt.fb.v*wt[0]):G(fa,Vt.fb.v*wt))}}for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&(wt=rn[xn].s.getMult(li[Ae].anIndexes[xn],sn.a[xn].s.totalChars),this._hasMaskedPath?wt.length?Nt.translate(0,Vt.p.v[1]*wt[0],-Vt.p.v[2]*wt[1]):Nt.translate(0,Vt.p.v[1]*wt,-Vt.p.v[2]*wt):wt.length?Nt.translate(Vt.p.v[0]*wt[0],Vt.p.v[1]*wt[1],-Vt.p.v[2]*wt[2]):Nt.translate(Vt.p.v[0]*wt,Vt.p.v[1]*wt,-Vt.p.v[2]*wt));if(Y.strokeWidthAnim&&($0=fl<0?0:fl),Y.strokeColorAnim&&(b2="rgb("+Math.round(255*Jo[0])+","+Math.round(255*Jo[1])+","+Math.round(255*Jo[2])+")"),Y.fillColorAnim&&Y.fc&&(E0="rgb("+Math.round(255*fa[0])+","+Math.round(255*fa[1])+","+Math.round(255*fa[2])+")"),this._hasMaskedPath){if(Nt.translate(0,-Y.ls),Nt.translate(0,ft[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Ye.point[1]-At.point[1])/(Ye.point[0]-At.point[0]);var Aw=180*Math.atan(Ne)/Math.PI;Ye.point[0]<At.point[0]&&(Aw+=180),Nt.rotate(-Aw*Math.PI/180)}Nt.translate(Zo,Po,0),Qe-=ft[0]*li[Ae].an*.005,li[Ae+1]&&th!==li[Ae+1].ind&&(Qe+=li[Ae].an/2,Qe+=.001*Y.tr*Y.finalSize)}else{switch(Nt.translate(pe,xe,0),Y.ps&&Nt.translate(Y.ps[0],Y.ps[1]+Y.ascent,0),Y.j){case 1:Nt.translate(li[Ae].animatorJustifyOffset+Y.justifyOffset+(Y.boxWidth-Y.lineWidths[li[Ae].line]),0,0);break;case 2:Nt.translate(li[Ae].animatorJustifyOffset+Y.justifyOffset+(Y.boxWidth-Y.lineWidths[li[Ae].line])/2,0,0)}Nt.translate(0,-Y.ls),Nt.translate(fi,0,0),Nt.translate(ft[0]*li[Ae].an*.005,ft[1]*ze*.01,0),pe+=li[Ae].l+.001*Y.tr*Y.finalSize}po==="html"?Yf=Nt.toCSS():po==="svg"?Yf=Nt.to2dCSS():y5=[Nt.props[0],Nt.props[1],Nt.props[2],Nt.props[3],Nt.props[4],Nt.props[5],Nt.props[6],Nt.props[7],Nt.props[8],Nt.props[9],Nt.props[10],Nt.props[11],Nt.props[12],Nt.props[13],Nt.props[14],Nt.props[15]],I0=wa}Eo<=Ae?(ut=new eh(I0,$0,b2,E0,Yf,y5),this.renderedLetters.push(ut),Eo+=1,this.lettersChangedFlag=!0):(ut=this.renderedLetters[Ae],this.lettersChangedFlag=ut.update(I0,$0,b2,E0,Yf,y5)||this.lettersChangedFlag)}}},y2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},y2.prototype.mHelper=new jt,y2.prototype.defaultPropsArray=[],g([Ot],y2),j0.prototype.initElement=function(Y,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(Y,X,pe),this.textProperty=new nd(this,Y.t,this.dynamicProperties),this.textAnimator=new y2(Y.t,this.renderType,this),this.initTransform(Y,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},j0.prototype.prepareFrame=function(Y){this._mdf=!1,this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange)},j0.prototype.createPathShape=function(Y,X){var pe,xe,Ae=X.length,Ee="";for(pe=0;pe<Ae;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,Ee+=Zn(xe,xe.i.length,!0,Y));return Ee},j0.prototype.updateDocumentData=function(Y,X){this.textProperty.updateDocumentData(Y,X)},j0.prototype.canResizeFont=function(Y){this.textProperty.canResizeFont(Y)},j0.prototype.setMinimumFontSize=function(Y){this.textProperty.setMinimumFontSize(Y)},j0.prototype.applyTextPropertiesToMatrix=function(Y,X,pe,xe,Ae){switch(Y.ps&&X.translate(Y.ps[0],Y.ps[1]+Y.ascent,0),X.translate(0,-Y.ls,0),Y.j){case 1:X.translate(Y.justifyOffset+(Y.boxWidth-Y.lineWidths[pe]),0,0);break;case 2:X.translate(Y.justifyOffset+(Y.boxWidth-Y.lineWidths[pe])/2,0,0)}X.translate(xe,Ae,0)},j0.prototype.buildColor=function(Y){return"rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"},j0.prototype.emptyProp=new eh,j0.prototype.destroy=function(){},j0.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Vrn={shapes:[]};function f5(Y,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(Y,X,pe)}function dae(Y,X,pe){this.initElement(Y,X,pe)}function H7(Y,X,pe){this.initFrame(),this.initBaseData(Y,X,pe),this.initFrame(),this.initTransform(Y,X,pe),this.initHierarchy()}function Md(){}function x5(){}function RL(Y,X,pe){this.layers=Y.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(Y,X,pe),this.tm=Y.tm?Ze.getProp(this,Y.tm,0,X.frameRate,this):{_placeholder:!0}}function uae(Y,X){this.animationItem=Y,this.layers=null,this.renderedFrame=-1,this.svgElement=se("svg");var pe="";if(X&&X.title){var xe=se("title"),Ae=H();xe.setAttribute("id",Ae),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ae}if(X&&X.description){var Ee=se("desc"),Re=H();Ee.setAttribute("id",Re),Ee.textContent=X.description,this.svgElement.appendChild(Ee),pe+=" "+Re}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Qe=se("defs");this.svgElement.appendChild(Qe);var Ye=se("g");this.svgElement.appendChild(Ye),this.layerElement=Ye,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Qe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Nn,x2,xw,V7,Ai,g5,j0],f5),f5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=se("text"))},f5.prototype.buildTextContents=function(Y){for(var X=0,pe=Y.length,xe=[],Ae="";X<pe;)Y[X]==="\r"||Y[X]===""?(xe.push(Ae),Ae=""):Ae+=Y[X],X+=1;return xe.push(Ae),xe},f5.prototype.buildShapeData=function(Y,X){if(Y.shapes&&Y.shapes.length){var pe=Y.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 Y},f5.prototype.buildNewText=function(){this.addDynamicProperty(this);var Y,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,Ee=pe.fStyle;this.layerElement.setAttribute("font-style",Ee),this.layerElement.setAttribute("font-weight",Ae)}this.layerElement.setAttribute("aria-label",pe.t);var Re=pe.l||[],Qe=!!this.globalData.fontManager.chars;X=Re.length;var Ye,zt=this.mHelper,Jt="",et=this.data.singleShape,pt=0,At=0,Tt=!0,Kt=.001*pe.tr*pe.finalSize;if(!et||Qe||pe.sz){var en,Xe=this.textSpans.length;for(Y=0;Y<X;Y+=1){if(this.textSpans[Y]||(this.textSpans[Y]={span:null,childSpan:null,glyph:null}),!Qe||!et||Y===0){if(Ye=Xe>Y?this.textSpans[Y].span:se(Qe?"g":"text"),Xe<=Y){if(Ye.setAttribute("stroke-linecap","butt"),Ye.setAttribute("stroke-linejoin","round"),Ye.setAttribute("stroke-miterlimit","4"),this.textSpans[Y].span=Ye,Qe){var We=se("g");Ye.appendChild(We),this.textSpans[Y].childSpan=We}this.textSpans[Y].span=Ye,this.layerElement.appendChild(Ye)}Ye.style.display="inherit"}if(zt.reset(),et&&(Re[Y].n&&(pt=-Kt,At+=pe.yOffset,At+=Tt?1:0,Tt=!1),this.applyTextPropertiesToMatrix(pe,zt,Re[Y].line,pt,At),pt+=Re[Y].l||0,pt+=Kt),Qe){var Ne;if((en=this.globalData.fontManager.getCharData(pe.finalText[Y],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new RL(en.data,this.globalData,this);else{var qe=Vrn;en.data&&en.data.shapes&&(qe=this.buildShapeData(en.data,pe.finalSize)),Ne=new tr(qe,this.globalData,this)}if(this.textSpans[Y].glyph){var ft=this.textSpans[Y].glyph;this.textSpans[Y].childSpan.removeChild(ft.layerElement),ft.destroy()}this.textSpans[Y].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[Y].childSpan.appendChild(Ne.layerElement),en.t===1&&this.textSpans[Y].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&Ye.setAttribute("transform","translate("+zt.props[12]+","+zt.props[13]+")"),Ye.textContent=Re[Y].val,Ye.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Ye&&Ye.setAttribute("d",Jt)}else{var rn=this.textContainer,sn="start";switch(pe.j){case 1:sn="end";break;case 2:sn="middle";break;default:sn="start"}rn.setAttribute("text-anchor",sn),rn.setAttribute("letter-spacing",Kt);var Nt=this.buildTextContents(pe.finalText);for(X=Nt.length,At=pe.ps?pe.ps[1]+pe.ascent:0,Y=0;Y<X;Y+=1)(Ye=this.textSpans[Y].span||se("tspan")).textContent=Nt[Y],Ye.setAttribute("x",0),Ye.setAttribute("y",At),Ye.style.display="inherit",rn.appendChild(Ye),this.textSpans[Y]||(this.textSpans[Y]={span:null,glyph:null}),this.textSpans[Y].span=Ye,At+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;Y<this.textSpans.length;)this.textSpans[Y].span.style.display="none",Y+=1;this._sizeChanged=!0},f5.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var Y=this.layerElement.getBBox();this.bbox={top:Y.y,left:Y.x,width:Y.width,height:Y.height}}return this.bbox},f5.prototype.getValue=function(){var Y,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,Y=0;Y<pe;Y+=1)(X=this.textSpans[Y].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},f5.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 Y,X,pe,xe,Ae,Ee=this.textAnimator.renderedLetters,Re=this.textProperty.currentData.l;for(X=Re.length,Y=0;Y<X;Y+=1)Re[Y].n||(pe=Ee[Y],xe=this.textSpans[Y].span,(Ae=this.textSpans[Y].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([yw],dae),dae.prototype.createContent=function(){var Y=se("rect");Y.setAttribute("width",this.data.sw),Y.setAttribute("height",this.data.sh),Y.setAttribute("fill",this.data.sc),this.layerElement.appendChild(Y)},H7.prototype.prepareFrame=function(Y){this.prepareProperties(Y,!0)},H7.prototype.renderFrame=function(){},H7.prototype.getBaseElement=function(){return null},H7.prototype.destroy=function(){},H7.prototype.sourceRectAtTime=function(){},H7.prototype.hide=function(){},g([Nn,x2,V7,Ai],H7),g([al],Md),Md.prototype.createNull=function(Y){return new H7(Y,this.globalData,this)},Md.prototype.createShape=function(Y){return new tr(Y,this.globalData,this)},Md.prototype.createText=function(Y){return new f5(Y,this.globalData,this)},Md.prototype.createImage=function(Y){return new yw(Y,this.globalData,this)},Md.prototype.createSolid=function(Y){return new dae(Y,this.globalData,this)},Md.prototype.configAnimation=function(Y){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 "+Y.w+" "+Y.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",Y.w),this.svgElement.setAttribute("height",Y.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(Y,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=Y;var pe=se("clipPath"),xe=se("rect");xe.setAttribute("width",Y.w),xe.setAttribute("height",Y.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=Y.layers,this.elements=b(Y.layers.length)},Md.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var Y,X=this.layers?this.layers.length:0;for(Y=0;Y<X;Y+=1)this.elements[Y]&&this.elements[Y].destroy&&this.elements[Y].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Md.prototype.updateContainerSize=function(){},Md.prototype.findIndexByInd=function(Y){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===Y)return X;return-1},Md.prototype.buildItem=function(Y){var X=this.elements;if(!X[Y]&&this.layers[Y].ty!==99){X[Y]=!0;var pe=this.createItem(this.layers[Y]);if(X[Y]=pe,ee()&&(this.layers[Y].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,Y),this.layers[Y].tt){var xe="tp"in this.layers[Y]?this.findIndexByInd(this.layers[Y].tp):Y-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var Ae=X[xe].getMatte(this.layers[Y].tt);pe.setMatte(Ae)}else this.buildItem(xe),this.addPendingElement(pe)}}},Md.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var Y=this.pendingElements.pop();if(Y.checkParenting(),Y.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===Y){var xe="tp"in Y.data?this.findIndexByInd(Y.data.tp):X-1,Ae=this.elements[xe].getMatte(this.layers[X].tt);Y.setMatte(Ae);break}X+=1}}},Md.prototype.renderFrame=function(Y){if(this.renderedFrame!==Y&&!this.destroyed){Y===null?Y=this.renderedFrame:this.renderedFrame=Y,this.globalData.frameNum=Y,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=Y,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(Y),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(Y-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},Md.prototype.appendElementInPos=function(Y,X){var pe=Y.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)}},Md.prototype.hide=function(){this.layerElement.style.display="none"},Md.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,x2,V7,Ai,g5],x5),x5.prototype.initElement=function(Y,X,pe){this.initFrame(),this.initBaseData(Y,X,pe),this.initTransform(Y,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},x5.prototype.prepareFrame=function(Y){if(this._mdf=!1,this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=Y/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))}},x5.prototype.renderInnerContent=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)(this.completeLayers||this.elements[Y])&&this.elements[Y].renderFrame()},x5.prototype.setElements=function(Y){this.elements=Y},x5.prototype.getElements=function(){return this.elements},x5.prototype.destroyElements=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)this.elements[Y]&&this.elements[Y].destroy()},x5.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Md,x5,xw],RL),RL.prototype.createComp=function(Y){return new RL(Y,this.globalData,this)},g([Md],uae),uae.prototype.createComp=function(Y){return new RL(Y,this.globalData,this)},me("svg",uae),un.registerModifier("tm",It),un.registerModifier("pb",Rt),un.registerModifier("rp",Fn),un.registerModifier("rd",_n),un.registerModifier("zz",ma),un.registerModifier("op",br),Yt})())})(0,gae.exports)),gae.exports}function xdn(){if(K$e)return mae;function e(n){return n instanceof w$e?w$e.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return K$e=1,mae=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 A=b[C],S=x[A];if(typeof S!="object"||S===null)w[A]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[A]=p(S,y);else if(ArrayBuffer.isView(S))w[A]=e(S);else{const k=c.indexOf(S);w[A]=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}},mae}var ydn=(function(){if(eEe)return X$e;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}eEe=1;var n=e(fdn()),i=B,r=e(i),s=e((q$e||(q$e=1,G$e=function g(f,x){if(f===x)return!0;if(f&&x&&typeof f=="object"&&typeof x=="object"){if(f.constructor!==x.constructor)return!1;var y,b,w;if(Array.isArray(f)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(!g(f[b],x[b]))return!1;return!0}if(f instanceof Map&&x instanceof Map){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;for(b of f.entries())if(!g(b[1],x.get(b[0])))return!1;return!0}if(f instanceof Set&&x instanceof Set){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(x)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(f[b]!==x[b])return!1;return!0}if(f.constructor===RegExp)return f.source===x.source&&f.flags===x.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===x.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===x.toString();if((y=(w=Object.keys(f)).length)!==Object.keys(x).length)return!1;for(b=y;b--!=0;)if(!Object.prototype.hasOwnProperty.call(x,w[b]))return!1;for(b=y;b--!=0;){var C=w[b];if(!(C==="_owner"&&f.$$typeof||g(f[C],x[C])))return!1}return!0}return f!=f&&x!=x}),G$e)),l=e((J$e||(J$e=1,Z$e=xdn()()),Z$e));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,A=y.play,S=A===void 0?null:A,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,F=L===void 0?null:L,N=y.useSubframes,_=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,V=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,G=U===void 0?p:U,q=y.onComplete,K=q===void 0?p:q,J=y.onLoopComplete,te=J===void 0?p:J,ee=y.onEnterFrame,ne=ee===void 0?p:ee,oe=y.onSegmentStart,re=oe===void 0?p:oe,se=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),ge=se;if("animationData"in se){var ue=se;w=ue.animationData,ge=d(ue,["animationData"])}if("path"in se){var ce=se;C=ce.path,ge=d(ce,["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}),[]),he=i.useState(!1),me=he[0],ye=he[1],we=i.useState(D),be=we[0],Se=we[1];i.useEffect((function(){s(be,D)||Se(D)}),[D,be]);var Te=i.useState(V),Be=Te[0],Le=Te[1];i.useEffect((function(){s(Be,V)||Le(V)}),[V,Be]),i.useEffect((function(){return function(){return de().removeEventListener("complete",K)}}),[de,K]),i.useEffect((function(){return function(){return de().removeEventListener("loopComplete",te)}}),[de,te]),i.useEffect((function(){return function(){return de().removeEventListener("enterFrame",ne)}}),[de,ne]),i.useEffect((function(){return function(){return de().removeEventListener("segmentStart",re)}}),[de,re]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",G)}}),[de,G]);var Fe=i.useCallback((function(ke){le.current=ke,typeof b=="function"?b(ke):b!=null&&(b.current=ke)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var ke=f(c({animationData:w==null||typeof w!="object"?w:"default"in w&&typeof w.default=="object"?l(w.default):l(w),path:C,container:ie.current,renderer:T,loop:!1,autoplay:!1,rendererSettings:Be},W?{audioFactory:W}:{}));Fe(ke);var Ce=function(){return ye(!0)};return de().addEventListener("DOMLoaded",Ce),function(){de().removeEventListener("DOMLoaded",Ce),ye(!1),de().destroy(),Fe(void 0)}}),[O,T,Be,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",G)}),[de,G]),i.useEffect((function(){de().addEventListener("complete",K)}),[de,K]),i.useEffect((function(){de().addEventListener("loopComplete",te)}),[de,te]),i.useEffect((function(){de().addEventListener("enterFrame",ne)}),[de,ne]),i.useEffect((function(){de().addEventListener("segmentStart",re)}),[de,re]),i.useEffect((function(){me&&(de().loop=O)}),[me,O,de]);var Me=i.useRef(!1);return i.useEffect((function(){if(me)if(S===!0){var ke=!0;be?(de().playSegments(be,ke),Me.current=!0,I===-1&&Ce(typeof be[1]=="number"?be[1]:be[1][1])):(Me.current&&de().resetSegments(ke),Me.current=!1,I===-1?Ce(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function Ce(De){de().goToAndPlay(De,!0),de().setDirection(I)}}),[S,be,me,I,de]),i.useEffect((function(){me&&(Number.isNaN($)||de().setSpeed($))}),[$,me,de]),i.useEffect((function(){me&&de().setDirection(I)}),[I,de,me]),i.useEffect((function(){if(me&&F!=null){var ke=!0;S?de().goToAndPlay(F,ke):de().goToAndStop(F,ke)}}),[de,F,S,me]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},ge,{ref:ie}))})));return x})(n);return X$e=h})();const _s=pr(ydn);var tEe,nEe,fae,iEe,xae,oEe,yae,rEe,bae,aEe,wae,sEe,Cae,lEe,cEe,dEe,uEe,pEe,hEe,mEe,gEe,fEe,xEe,yEe,bEe,wEe,CEe,AEe,vEe,SEe,Aae,kEe,vae,jEe,Sae,$Ee,kae,EEe,jae,IEe,DEe,TEe,$ae,LEe,Eae,BEe,Iae,PEe,MEe,OEe,Dae,FEe,REe,zEe,NEe,_Ee,VEe,HEe,UEe,WEe,Tae,QEe,Lae,YEe,Bae,GEe,qEe,KEe,ZEe,JEe,XEe,eIe,Pae,tIe,Mae,nIe,Oae,iIe,Fae,oIe,Rae,rIe,aIe,sIe,zae,lIe,cIe,dIe,uIe,pIe,hIe,mIe,gIe,fIe,xIe,yIe,Nae,bIe,_ae,wIe,CIe,AIe,vIe,SIe,Vae,kIe,Hae,jIe,Uae,$Ie,EIe,IIe,Wae,DIe,Qae,TIe,LIe,BIe,PIe,MIe,Yae,OIe,Gae,FIe,qae,RIe,zIe,NIe;function kte(){return iEe||(iEe=1,fae=function(e,n){return e===n||e!=e&&n!=n}),fae}function Y_(){if(oEe)return xae;oEe=1;var e=kte();return xae=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},xae}function xq(){if(dEe)return cEe;dEe=1;var e=nEe?tEe:(nEe=1,tEe=function(){this.__data__=[],this.size=0}),n=(function(){if(rEe)return yae;rEe=1;var c=Y_(),d=Array.prototype.splice;return yae=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))},yae})(),i=(function(){if(aEe)return bae;aEe=1;var c=Y_();return bae=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},bae})(),r=(function(){if(sEe)return wae;sEe=1;var c=Y_();return wae=function(d){return c(this.__data__,d)>-1},wae})(),s=(function(){if(lEe)return Cae;lEe=1;var c=Y_();return Cae=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},Cae})();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,cEe=l}function yvt(){if(wEe)return bEe;wEe=1;var e=typeof Hh=="object"&&Hh&&Hh.Object===Object&&Hh;return bEe=e}function I3(){if(AEe)return CEe;AEe=1;var e=yvt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return CEe=i}function LD(){if(SEe)return vEe;SEe=1;var e=I3().Symbol;return vEe=e}function MT(){if($Ee)return Sae;$Ee=1;var e=LD(),n=(function(){if(kEe)return Aae;kEe=1;var s=LD(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return Aae=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},Aae})(),i=(function(){if(jEe)return vae;jEe=1;var s=Object.prototype.toString;return vae=function(l){return s.call(l)},vae})(),r=e?e.toStringTag:void 0;return Sae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},Sae}function G3(){return EEe||(EEe=1,kae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),kae}function bvt(){if(IEe)return jae;IEe=1;var e=MT(),n=G3();return jae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},jae}function bdn(){if(LEe)return $ae;LEe=1;var e=(function(){if(TEe)return DEe;TEe=1;var i=I3()["__core-js_shared__"];return DEe=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return $ae=function(i){return!!n&&n in i},$ae}function wvt(){if(BEe)return Eae;BEe=1;var e=Function.prototype.toString;return Eae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Eae}function kv(){if(FEe)return Dae;FEe=1;var e=(function(){if(PEe)return Iae;PEe=1;var i=bvt(),r=bdn(),s=G3(),l=wvt(),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 Iae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Iae})(),n=(OEe||(OEe=1,MEe=function(i,r){return i?.[r]}),MEe);return Dae=function(i,r){var s=n(i,r);return e(s)?s:void 0},Dae}function Dwe(){if(zEe)return REe;zEe=1;var e=kv()(I3(),"Map");return REe=e}function G_(){if(_Ee)return NEe;_Ee=1;var e=kv()(Object,"create");return NEe=e}function wdn(){if(KEe)return qEe;KEe=1;var e=(function(){if(HEe)return VEe;HEe=1;var c=G_();return VEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(WEe||(WEe=1,UEe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),UEe),i=(function(){if(QEe)return Tae;QEe=1;var c=G_(),d=Object.prototype.hasOwnProperty;return Tae=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},Tae})(),r=(function(){if(YEe)return Lae;YEe=1;var c=G_(),d=Object.prototype.hasOwnProperty;return Lae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Lae})(),s=(function(){if(GEe)return Bae;GEe=1;var c=G_();return Bae=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},Bae})();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,qEe=l}function q_(){if(tIe)return Pae;tIe=1;var e=(eIe||(eIe=1,XEe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),XEe);return Pae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Pae}function Twe(){if(sIe)return aIe;sIe=1;var e=(function(){if(JEe)return ZEe;JEe=1;var c=wdn(),d=xq(),u=Dwe();return ZEe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(nIe)return Mae;nIe=1;var c=q_();return Mae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Mae})(),i=(function(){if(iIe)return Oae;iIe=1;var c=q_();return Oae=function(d){return c(this,d).get(d)},Oae})(),r=(function(){if(oIe)return Fae;oIe=1;var c=q_();return Fae=function(d){return c(this,d).has(d)},Fae})(),s=(function(){if(rIe)return Rae;rIe=1;var c=q_();return Rae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Rae})();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,aIe=l}function Lwe(){if(dIe)return cIe;dIe=1;var e=xq(),n=(function(){if(pEe)return uEe;pEe=1;var d=xq();return uEe=function(){this.__data__=new d,this.size=0}})(),i=(mEe||(mEe=1,hEe=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),hEe),r=(fEe||(fEe=1,gEe=function(d){return this.__data__.get(d)}),gEe),s=(yEe||(yEe=1,xEe=function(d){return this.__data__.has(d)}),xEe),l=(function(){if(lIe)return zae;lIe=1;var d=xq(),u=Dwe(),p=Twe();return zae=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},zae})();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,cIe=c}function Cvt(){if(fIe)return gIe;fIe=1;var e=Twe(),n=(pIe||(pIe=1,uIe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),uIe),i=(mIe||(mIe=1,hIe=function(s){return this.__data__.has(s)}),hIe);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,gIe=r}function Avt(){return bIe||(bIe=1,Nae=function(e,n){return e.has(n)}),Nae}function vvt(){if(wIe)return _ae;wIe=1;var e=Cvt(),n=(yIe||(yIe=1,xIe=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}),xIe),i=Avt();return _ae=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],A=s[y];if(c)var S=p?c(A,C,y,s,r,u):c(C,A,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!==A&&!d(C,A,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},_ae}function Svt(){if(AIe)return CIe;AIe=1;var e=I3().Uint8Array;return CIe=e}function O5e(){return kIe||(kIe=1,Vae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Vae}function Cdn(){if(jIe)return Hae;jIe=1;var e=LD(),n=Svt(),i=kte(),r=vvt(),s=(SIe||(SIe=1,vIe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),vIe),l=O5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Hae=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 A=r(b(u),b(p),g,f,x,y);return y.delete(u),A;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Hae}function Bwe(){return $Ie||($Ie=1,Uae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Uae}function Ju(){if(IIe)return EIe;IIe=1;var e=Array.isArray;return EIe=e}function kvt(){if(DIe)return Wae;DIe=1;var e=Bwe(),n=Ju();return Wae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Wae}function Pwe(){return TIe||(TIe=1,Qae=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}),Qae}function jvt(){return BIe?LIe:(BIe=1,LIe=function(){return[]})}function Mwe(){if(MIe)return PIe;MIe=1;var e=Pwe(),n=jvt(),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 PIe=s}function $vt(){return OIe||(OIe=1,Yae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Yae}function l7(){return FIe||(FIe=1,Gae=function(e){return e!=null&&typeof e=="object"}),Gae}function Owe(){if(NIe)return zIe;NIe=1;var e=(function(){if(RIe)return qae;RIe=1;var c=MT(),d=l7();return qae=function(u){return d(u)&&c(u)=="[object Arguments]"},qae})(),n=l7(),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 zIe=l}var _Ie,VIe,HIe,Kae,UIe,Zae,WIe,Jae,QIe,Xae,YIe,ese={exports:{}};function Fwe(){return HIe||(HIe=1,(function(e,n){var i=I3(),r=VIe?_Ie:(VIe=1,_Ie=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})(ese,ese.exports)),ese.exports}function Jz(){if(UIe)return Kae;UIe=1;var e=/^(?:0|[1-9]\d*)$/;return Kae=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},Kae}function Rwe(){return WIe?Zae:(WIe=1,Zae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Zae)}function jte(){return YIe||(YIe=1,Xae=function(e){return function(n){return e(n)}}),Xae}var GIe,qIe,KIe,tse,ZIe,nse,JIe,ise,XIe,eDe,tDe,ose,nDe,rse,iDe,ase,oDe,sse,rDe,lse,aDe,sDe,lDe,cDe,dDe,uDe,pDe,hDe,mDe,gDe,fDe,cse,xDe,dse,yDe,use,bDe,pse={exports:{}};function zwe(){return GIe||(GIe=1,(function(e,n){var i=yvt(),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})(pse,pse.exports)),pse.exports}function Evt(){if(KIe)return qIe;KIe=1;var e=(function(){if(QIe)return Jae;QIe=1;var l=MT(),c=Rwe(),d=l7(),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,Jae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Jae})(),n=jte(),i=zwe(),r=i&&i.isTypedArray,s=r?n(r):e;return qIe=s}function Ivt(){if(ZIe)return tse;ZIe=1;var e=$vt(),n=Owe(),i=Ju(),r=Fwe(),s=Jz(),l=Evt(),c=Object.prototype.hasOwnProperty;return tse=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},tse}function Nwe(){if(JIe)return nse;JIe=1;var e=Object.prototype;return nse=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},nse}function Dvt(){return XIe||(XIe=1,ise=function(e,n){return function(i){return e(n(i))}}),ise}function Adn(){if(nDe)return ose;nDe=1;var e=Nwe(),n=(function(){if(tDe)return eDe;tDe=1;var r=Dvt()(Object.keys,Object);return eDe=r})(),i=Object.prototype.hasOwnProperty;return ose=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},ose}function OT(){if(iDe)return rse;iDe=1;var e=bvt(),n=Rwe();return rse=function(i){return i!=null&&n(i.length)&&!e(i)},rse}function RR(){if(oDe)return ase;oDe=1;var e=Ivt(),n=Adn(),i=OT();return ase=function(r){return i(r)?e(r):n(r)},ase}function Tvt(){if(rDe)return sse;rDe=1;var e=kvt(),n=Mwe(),i=RR();return sse=function(r){return e(r,i,n)},sse}function Lvt(){if(pDe)return uDe;pDe=1;var e=kv()(I3(),"Set");return uDe=e}function $te(){if(fDe)return gDe;fDe=1;var e=(function(){if(lDe)return sDe;lDe=1;var A=kv()(I3(),"DataView");return sDe=A})(),n=Dwe(),i=(function(){if(dDe)return cDe;dDe=1;var A=kv()(I3(),"Promise");return cDe=A})(),r=Lvt(),s=(function(){if(mDe)return hDe;mDe=1;var A=kv()(I3(),"WeakMap");return hDe=A})(),l=MT(),c=wvt(),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(A){var S=l(A),k=S=="[object Object]"?A.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}),gDe=C}function vdn(){if(xDe)return cse;xDe=1;var e=Lwe(),n=vvt(),i=Cdn(),r=(function(){if(aDe)return lse;aDe=1;var f=Tvt(),x=Object.prototype.hasOwnProperty;return lse=function(y,b,w,C,A,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var F=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var _=y[E=$[I]],z=b[E];if(C)var T=k?C(z,_,E,b,y,S):C(_,z,E,y,b,S);if(!(T===void 0?_===z||A(_,z,w,C,S):T)){F=!1;break}N||(N=E=="constructor")}if(F&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(F=!1)}return S.delete(y),S.delete(b),F},lse})(),s=$te(),l=Ju(),c=Fwe(),d=Evt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return cse=function(f,x,y,b,w,C){var A=l(f),S=l(x),k=A?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;A=!0,j=!1}if(E&&!j)return C||(C=new e),A||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var F=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(F,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},cse}function _we(){if(yDe)return dse;yDe=1;var e=vdn(),n=l7();return dse=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))},dse}var Sdn=(function(){if(bDe)return use;bDe=1;var e=_we();return use=function(n,i){return e(n,i)},use})();const oo=pr(Sdn);var wDe,CDe,hse,ADe,mse,vDe,gse,SDe,fse,kDe,xse,jDe;function kdn(){if(vDe)return mse;vDe=1;var e=(function(){if(ADe)return hse;ADe=1;var i=/\s/;return hse=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},hse})(),n=/^\s+/;return mse=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},mse}function Xz(){if(SDe)return gse;SDe=1;var e=MT(),n=l7();return gse=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},gse}function Bvt(){if(kDe)return fse;kDe=1;var e=kdn(),n=G3(),i=Xz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return fse=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},fse}function Pvt(){if(jDe)return xse;jDe=1;var e=G3(),n=(function(){if(CDe)return wDe;CDe=1;var l=I3();return wDe=function(){return l.Date.now()}})(),i=Bvt(),r=Math.max,s=Math.min;return xse=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 A(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?A(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?A(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),A(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},xse}const As=pr(Pvt());var $De,EDe;function Mvt(){return EDe?$De:(EDe=1,$De=function(){})}const Vwe=pr(Mvt());var yse,IDe,DDe,TDe,bse,LDe,wse,BDe,Cse,PDe,Ase,MDe,ODe,FDe,vse,RDe,Sse,zDe,kse,NDe;function Ovt(){return IDe||(IDe=1,yse=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),yse}function Fvt(){if(TDe)return DDe;TDe=1;var e=kv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return DDe=n}function Hwe(){if(LDe)return bse;LDe=1;var e=Fvt();return bse=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},bse}function Uwe(){if(BDe)return wse;BDe=1;var e=Hwe(),n=kte(),i=Object.prototype.hasOwnProperty;return wse=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)},wse}function uO(){if(PDe)return Cse;PDe=1;var e=Uwe(),n=Hwe();return Cse=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},Cse}function jdn(){if(RDe)return vse;RDe=1;var e=G3(),n=Nwe(),i=(FDe||(FDe=1,ODe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),ODe),r=Object.prototype.hasOwnProperty;return vse=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},vse}function F5e(){if(zDe)return Sse;zDe=1;var e=Ivt(),n=jdn(),i=OT();return Sse=function(r){return i(r)?e(r,!0):n(r)},Sse}var _De,VDe,HDe,jse,UDe,WDe,QDe,YDe,GDe,$se,qDe,Ese,KDe,Ise,ZDe,Dse,JDe,Tse,XDe,Lse,eTe,Bse,tTe,Pse,nTe,Mse,iTe,oTe,rTe,Ose,aTe,Fse,sTe,lTe,cTe,Rse,dTe,uTe,pTe,zse,hTe,Nse,mTe,_se={exports:{}};function Wwe(){if(QDe)return WDe;QDe=1;var e=Dvt()(Object.getPrototypeOf,Object);return WDe=e}function Rvt(){if(GDe)return YDe;GDe=1;var e=Bwe(),n=Wwe(),i=Mwe(),r=jvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return YDe=s}function Qwe(){if(KDe)return Ese;KDe=1;var e=kvt(),n=Rvt(),i=F5e();return Ese=function(r){return e(r,i,n)},Ese}function Vse(){if(JDe)return Dse;JDe=1;var e=Svt();return Dse=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},Dse}function $dn(){if(iTe)return Mse;iTe=1;var e=Vse(),n=(function(){if(XDe)return Tse;XDe=1;var l=Vse();return Tse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},Tse})(),i=(function(){if(eTe)return Lse;eTe=1;var l=/\w*$/;return Lse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Lse})(),r=(function(){if(tTe)return Bse;tTe=1;var l=LD(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Bse=function(u){return d?Object(d.call(u)):{}},Bse})(),s=(function(){if(nTe)return Pse;nTe=1;var l=Vse();return Pse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Pse})();return Mse=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)}},Mse}function Edn(){if(aTe)return Ose;aTe=1;var e=(function(){if(rTe)return oTe;rTe=1;var r=G3(),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 oTe=l})(),n=Wwe(),i=Nwe();return Ose=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Ose}function Idn(){if(cTe)return lTe;cTe=1;var e=(function(){if(sTe)return Fse;sTe=1;var l=$te(),c=l7();return Fse=function(d){return c(d)&&l(d)=="[object Map]"},Fse})(),n=jte(),i=zwe(),r=i&&i.isMap,s=r?n(r):e;return lTe=s}function Ddn(){if(pTe)return uTe;pTe=1;var e=(function(){if(dTe)return Rse;dTe=1;var l=$te(),c=l7();return Rse=function(d){return c(d)&&l(d)=="[object Set]"},Rse})(),n=jte(),i=zwe(),r=i&&i.isSet,s=r?n(r):e;return uTe=s}function zvt(){if(hTe)return zse;hTe=1;var e=Lwe(),n=Ovt(),i=Uwe(),r=(function(){if(MDe)return Ase;MDe=1;var L=uO(),F=RR();return Ase=function(N,_){return N&&L(_,F(_),N)},Ase})(),s=(function(){if(NDe)return kse;NDe=1;var L=uO(),F=F5e();return kse=function(N,_){return N&&L(_,F(_),N)},kse})(),l=(_De||(_De=1,(function(L,F){var N=I3(),_=F&&!F.nodeType&&F,z=_&&L&&!L.nodeType&&L,T=z&&z.exports===_?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var V=O.length,W=M?M(V):new O.constructor(V);return O.copy(W),W}})(_se,_se.exports)),_se.exports),c=(HDe||(HDe=1,VDe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),VDe),d=(function(){if(UDe)return jse;UDe=1;var L=uO(),F=Mwe();return jse=function(N,_){return L(N,F(N),_)},jse})(),u=(function(){if(qDe)return $se;qDe=1;var L=uO(),F=Rvt();return $se=function(N,_){return L(N,F(N),_)},$se})(),p=Tvt(),h=Qwe(),g=$te(),f=(function(){if(ZDe)return Ise;ZDe=1;var L=Object.prototype.hasOwnProperty;return Ise=function(F){var N=F.length,_=new F.constructor(N);return N&&typeof F[0]=="string"&&L.call(F,"index")&&(_.index=F.index,_.input=F.input),_},Ise})(),x=$dn(),y=Edn(),b=Ju(),w=Fwe(),C=Idn(),A=G3(),S=Ddn(),k=RR(),$=F5e(),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,zse=function L(F,N,_,z,T,M){var O,H=1&N,V=2&N,W=4&N;if(_&&(O=T?_(F,z,T,M):_(F)),O!==void 0)return O;if(!A(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var G=g(F),q=G==I||G=="[object GeneratorFunction]";if(w(F))return l(F,H);if(G==E||G==j||q&&!T){if(O=V||q?{}:y(F),!H)return V?u(F,s(O,F)):d(F,r(O,F))}else{if(!D[G])return T?F:{};O=x(F,G,H)}}M||(M=new e);var K=M.get(F);if(K)return K;M.set(F,O),S(F)?F.forEach((function(te){O.add(L(te,N,_,te,F,M))})):C(F)&&F.forEach((function(te,ee){O.set(ee,L(te,N,_,ee,F,M))}));var J=U?void 0:(W?V?h:p:V?$:k)(F);return n(J||F,(function(te,ee){J&&(te=F[ee=te]),i(O,ee,L(te,N,_,ee,F,M))})),O},zse}var Tdn=(function(){if(mTe)return Nse;mTe=1;var e=zvt();return Nse=function(n){return e(n,5)},Nse})();const ds=pr(Tdn);var Hse,gTe,Use,fTe,xTe,yTe,Wse,bTe,wTe,CTe,Qse,ATe,Yse,vTe,Gse,STe,qse,kTe,Kse,jTe,Zse,$Te,Jse,ETe;function Ywe(){if(fTe)return Use;fTe=1;var e=Ju(),n=Xz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Use=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)},Use}function Ldn(){if(bTe)return Wse;bTe=1;var e=(function(){if(yTe)return xTe;yTe=1;var n=Twe();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,xTe=i})();return Wse=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Wse}function MS(){return ATe||(ATe=1,Qse=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}),Qse}function Nvt(){if(vTe)return Yse;vTe=1;var e=LD(),n=MS(),i=Ju(),r=Xz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Yse=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},Yse}function _vt(){if(STe)return Gse;STe=1;var e=Nvt();return Gse=function(n){return n==null?"":e(n)},Gse}function BD(){if(kTe)return qse;kTe=1;var e=Ju(),n=Ywe(),i=(function(){if(CTe)return wTe;CTe=1;var s=Ldn(),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 wTe=d})(),r=_vt();return qse=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},qse}function FT(){if(jTe)return Kse;jTe=1;var e=Xz();return Kse=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Kse}function Vvt(){if($Te)return Zse;$Te=1;var e=BD(),n=Owe(),i=Ju(),r=Jz(),s=Rwe(),l=FT();return Zse=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))},Zse}var Bdn=(function(){if(ETe)return Jse;ETe=1;var e=(function(){if(gTe)return Hse;gTe=1;var i=Object.prototype.hasOwnProperty;return Hse=function(r,s){return r!=null&&i.call(r,s)},Hse})(),n=Vvt();return Jse=function(i,r){return i!=null&&n(i,r,e)},Jse})();const mn=pr(Bdn);var ITe,DTe,Xse,TTe,ele,LTe,tle,BTe,PTe,MTe,OTe,FTe,nle,RTe,zTe,NTe,ile,_Te,VTe,HTe;function RT(){return TTe||(TTe=1,Xse=function(e){return e}),Xse}function Hvt(){return LTe||(LTe=1,ele=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)}),ele}function Uvt(){if(BTe)return tle;BTe=1;var e=Hvt(),n=Math.max;return tle=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)}},tle}function Pdn(){if(FTe)return OTe;FTe=1;var e=(MTe||(MTe=1,PTe=function(s){return function(){return s}}),PTe),n=Fvt(),i=RT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return OTe=r}function Wvt(){if(NTe)return zTe;NTe=1;var e=Pdn(),n=(function(){if(RTe)return nle;RTe=1;var r=Date.now;return nle=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)}},nle})(),i=n(e);return zTe=i}function Qvt(){if(_Te)return ile;_Te=1;var e=RT(),n=Uvt(),i=Wvt();return ile=function(r,s){return i(n(r,s,e),r+"")},ile}var Mdn=(function(){if(HTe)return VTe;HTe=1;var e=(DTe||(DTe=1,ITe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),ITe),n=Qvt()((function(i,r){return e(i,1,r)}));return VTe=n})();const Yi=pr(Mdn);var ole,UTe,rle,WTe;function eN(){if(UTe)return ole;UTe=1;var e=BD(),n=FT();return ole=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},ole}function Yvt(){if(WTe)return rle;WTe=1;var e=eN();return rle=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},rle}const F3=pr(Yvt());var ale,QTe,sle,YTe,lle,GTe,cle,qTe;function Gvt(){if(QTe)return ale;QTe=1;var e=Lwe(),n=_we();return ale=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},ale}function qvt(){if(YTe)return sle;YTe=1;var e=G3();return sle=function(n){return n==n&&!e(n)},sle}function Kvt(){if(GTe)return lle;GTe=1;var e=qvt(),n=RR();return lle=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},lle}var Odn=(function(){if(qTe)return cle;qTe=1;var e=Gvt(),n=Kvt();return cle=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},cle})();const Fdn=pr(Odn);var KTe,ZTe,Rdn=(ZTe||(ZTe=1,KTe=function(e){return e==null}),KTe);const JTe=pr(Rdn);var XTe,eLe,dle,tLe,zdn=(function(){if(tLe)return dle;tLe=1;var e=(eLe||(eLe=1,XTe=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}),XTe),n=RT();return dle=function(i){return i&&i.length?e(i,n):0},dle})();const Ndn=pr(zdn);var ule,nLe,ple,iLe,hle,oLe,mle,rLe,gle,aLe;function Gwe(){return nLe||(nLe=1,ule=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}),ule}function Zvt(){if(iLe)return ple;iLe=1;var e=kte(),n=OT(),i=Jz(),r=G3();return ple=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)},ple}function Ete(){if(rLe)return mle;rLe=1;var e=(function(){if(oLe)return hle;oLe=1;var n=Bvt(),i=1/0;return hle=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},hle})();return mle=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},mle}var _dn=(function(){if(aLe)return gle;aLe=1;var e=Gwe(),n=Zvt(),i=Ete(),r=Math.ceil,s=Math.max;return gle=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},gle})();const Vdn=pr(_dn);var sLe,lLe,Hdn=(lLe||(lLe=1,sLe=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}),sLe);const Udn=pr(Hdn);var cLe,dLe,uLe,pLe,fle,hLe,xle,mLe,gLe,fLe,yle,xLe,ble,yLe,bLe,wLe;function Wdn(){if(pLe)return uLe;pLe=1;var e=(dLe||(dLe=1,cLe=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}}),cLe),n=e();return uLe=n}function Jvt(){if(hLe)return fle;hLe=1;var e=Wdn(),n=RR();return fle=function(i,r){return i&&e(i,r,n)},fle}function tN(){if(fLe)return gLe;fLe=1;var e=Jvt(),n=(function(){if(mLe)return xle;mLe=1;var r=OT();return xle=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}},xle})(),i=n(e);return gLe=i}function Xvt(){if(xLe)return yle;xLe=1;var e=RT();return yle=function(n){return typeof n=="function"?n:e},yle}var Qdn=(wLe||(wLe=1,bLe=(function(){if(yLe)return ble;yLe=1;var e=Ovt(),n=tN(),i=Xvt(),r=Ju();return ble=function(s,l){return(r(s)?e:n)(s,i(l))},ble})()),bLe);const Ydn=pr(Qdn);var CLe,ALe,wle,vLe,Cle,SLe,kLe,jLe,Ale,$Le,vle,ELe,Sle,ILe,kle,DLe,jle,TLe,$le,LLe,BLe,PLe,Ele,MLe;function OLe(){return vLe||(vLe=1,wle=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),wle}function Gdn(){if($Le)return Ale;$Le=1;var e=(jLe||(jLe=1,kLe=function(i,r){return i!=null&&r in Object(i)}),kLe),n=Vvt();return Ale=function(i,r){return i!=null&&n(i,r,e)},Ale}function qwe(){return ILe||(ILe=1,Sle=function(e){return function(n){return n?.[e]}}),Sle}function qdn(){if(TLe)return jle;TLe=1;var e=qwe(),n=(function(){if(DLe)return kle;DLe=1;var s=eN();return kle=function(l){return function(c){return s(c,l)}},kle})(),i=Ywe(),r=FT();return jle=function(s){return i(s)?e(r(s)):n(s)},jle}function u8(){if(LLe)return $le;LLe=1;var e=(function(){if(SLe)return Cle;SLe=1;var l=Gvt(),c=Kvt(),d=OLe();return Cle=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)}},Cle})(),n=(function(){if(ELe)return vle;ELe=1;var l=_we(),c=Yvt(),d=Gdn(),u=Ywe(),p=qvt(),h=OLe(),g=FT();return vle=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)}},vle})(),i=RT(),r=Ju(),s=qdn();return $le=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},$le}var Kdn=(function(){if(MLe)return Ele;MLe=1;var e=(ALe||(ALe=1,CLe=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}),CLe),n=tN(),i=u8(),r=(PLe||(PLe=1,BLe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),BLe),s=Ju();return Ele=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Ele})();const R5e=pr(Kdn);var Ile,FLe,Dle,RLe,Tle,zLe,NLe,_Le;function Zdn(){if(RLe)return Dle;RLe=1;var e=Pwe(),n=MS(),i=qwe(),r=$vt(),s=(function(){if(FLe)return Ile;FLe=1;var c=OT(),d=l7();return Ile=function(u){return d(u)&&c(u)},Ile})(),l=Math.max;return Dle=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))}))},Dle}var Jdn=(function(){if(_Le)return NLe;_Le=1;var e=Qvt(),n=(function(){if(zLe)return Tle;zLe=1;var r=Hvt(),s=MS(),l=Zdn();return Tle=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)}))},Tle})(),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 NLe=i})();const Xdn=pr(Jdn);var Lle,VLe,eun=(function(){if(VLe)return Lle;VLe=1;var e=Jvt(),n=Xvt();return Lle=function(i,r){return i&&e(i,n(r))},Lle})();const eSt=pr(eun);var Ble,HLe,Ple,ULe;function tSt(){if(HLe)return Ble;HLe=1;var e=tN(),n=OT();return Ble=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},Ble}function nSt(){if(ULe)return Ple;ULe=1;var e=MS(),n=u8(),i=tSt(),r=Ju();return Ple=function(s,l){return(r(s)?e:i)(s,n(l,3))},Ple}const Ite=pr(nSt());var Mle,WLe,Ole,QLe,Fle,YLe;function tun(){if(QLe)return Ole;QLe=1;var e=eN(),n=(function(){if(WLe)return Mle;WLe=1;var r=Uwe(),s=BD(),l=Jz(),c=G3(),d=FT();return Mle=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 A=b[w];(C=g?g(A,w,b):void 0)===void 0&&(C=c(A)?A:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},Mle})(),i=BD();return Ole=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},Ole}var nun=(function(){if(YLe)return Fle;YLe=1;var e=MS(),n=u8(),i=tun(),r=Qwe();return Fle=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])}))},Fle})();const eZ=pr(nun);var Rle,GLe,iun=(function(){if(GLe)return Rle;GLe=1;var e=Pvt(),n=G3();return Rle=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})},Rle})();const oun=pr(iun);var zle,qLe,Nle,KLe,run=(function(){if(KLe)return Nle;KLe=1;var e=Pwe(),n=(function(){if(qLe)return zle;qLe=1;var s=tN();return zle=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},zle})(),i=u8(),r=Ju();return Nle=function(s,l){return(r(s)?e:n)(s,i(l,3))},Nle})();const aun=pr(run);var ZLe,JLe,_le,XLe,Vle,eBe,tBe,nBe;function sun(){if(eBe)return Vle;eBe=1;var e=(JLe||(JLe=1,ZLe=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}),ZLe),n=(function(){if(XLe)return _le;XLe=1;var s=tN();return _le=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},_le})(),i=u8(),r=Ju();return Vle=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Vle}var lun=(function(){if(nBe)return tBe;nBe=1;var e=Hwe(),n=sun(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return tBe=r})();const cun=pr(lun);var iBe,oBe,Hle,rBe,Ule,aBe,Wle,sBe,Qle,lBe;function dun(){if(aBe)return Ule;aBe=1;var e=(function(){if(rBe)return Hle;rBe=1;var n=Xz();return Hle=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},Hle})();return Ule=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},Ule}function uun(){if(sBe)return Wle;sBe=1;var e=MS(),n=eN(),i=u8(),r=tSt(),s=(oBe||(oBe=1,iBe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),iBe),l=jte(),c=dun(),d=RT(),u=Ju();return Wle=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(A){return A(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Wle}var pun=(function(){if(lBe)return Qle;lBe=1;var e=uun(),n=Ju();return Qle=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))},Qle})();const Dte=pr(pun);var cBe,dBe,Yle,uBe,Gle,pBe,qle,hBe;function hun(){if(uBe)return Yle;uBe=1;var e=(dBe||(dBe=1,cBe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),cBe),n=Ete();return Yle=function(i){return i?e(n(i),0,4294967295):0},Yle}var mun=(function(){if(hBe)return qle;hBe=1;var e=(function(){if(pBe)return Gle;pBe=1;var i=Ete(),r=hun();return Gle=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},Gle})(),n=Zvt();return qle=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)):[]},qle})();const iSt=pr(mun);var mBe,gBe,Kle,fBe,Zle,xBe,Jle,yBe,Xle,bBe;function oSt(){if(xBe)return Zle;xBe=1;var e=BD(),n=(gBe||(gBe=1,mBe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),mBe),i=(function(){if(fBe)return Kle;fBe=1;var l=eN(),c=Gwe();return Kle=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Kle})(),r=FT(),s=Object.prototype.hasOwnProperty;return Zle=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))]},Zle}var gun=(function(){if(bBe)return Xle;bBe=1;var e=u8(),n=(function(){if(yBe)return Jle;yBe=1;var i=oSt(),r=Jz(),s=Array.prototype.splice;return Jle=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},Jle})();return Xle=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},Xle})();const tZ=pr(gun);var ece,wBe,tce,CBe,nce,ABe,ice,vBe,oce,SBe,rce,kBe,jBe,$Be;function fun(){if(CBe)return tce;CBe=1;var e=(function(){if(wBe)return ece;wBe=1;var n=MT(),i=Wwe(),r=l7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return ece=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},ece})();return tce=function(n){return e(n)?void 0:n},tce}function rSt(){if(vBe)return ice;vBe=1;var e=Bwe(),n=(function(){if(ABe)return nce;ABe=1;var i=LD(),r=Owe(),s=Ju(),l=i?i.isConcatSpreadable:void 0;return nce=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},nce})();return ice=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},ice}function aSt(){if(SBe)return oce;SBe=1;var e=rSt();return oce=function(n){return n!=null&&n.length?e(n,1):[]},oce}var xun=(function(){if($Be)return jBe;$Be=1;var e=MS(),n=zvt(),i=oSt(),r=BD(),s=uO(),l=fun(),c=(function(){if(kBe)return rce;kBe=1;var p=aSt(),h=Uvt(),g=Wvt();return rce=function(f){return g(h(f,void 0,p),f+"")},rce})(),d=Qwe(),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 jBe=u})();const Kwe=pr(xun);var ace,EBe,yun=(function(){if(EBe)return ace;EBe=1;var e=rSt(),n=nSt();return ace=function(i,r){return e(n(i,r),1)},ace})();const sSt=pr(yun);var IBe,DBe,TBe,LBe,BBe,PBe,sce,MBe,lce,OBe,FBe,RBe,zBe,NBe,cce,_Be,dce,VBe;function bun(){if(MBe)return sce;MBe=1;var e=(DBe||(DBe=1,IBe=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}),IBe),n=(LBe||(LBe=1,TBe=function(r){return r!=r}),TBe),i=(PBe||(PBe=1,BBe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),BBe);return sce=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},sce}function lSt(){if(_Be)return cce;_Be=1;var e=Cvt(),n=(function(){if(OBe)return lce;OBe=1;var c=bun();return lce=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},lce})(),i=(RBe||(RBe=1,FBe=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}),FBe),r=Avt(),s=(function(){if(NBe)return zBe;NBe=1;var c=Lvt(),d=Mvt(),u=O5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return zBe=p})(),l=O5e();return cce=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 A=y.length;A--;)if(y[A]===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},cce}var wun=(function(){if(VBe)return dce;VBe=1;var e=u8(),n=lSt();return dce=function(i,r){return i&&i.length?n(i,e(r,2)):[]},dce})();const Cun=pr(wun),Aun=pr(aSt());var uce,HBe,vun=(function(){if(HBe)return uce;HBe=1;var e=lSt();return uce=function(n){return n&&n.length?e(n):[]},uce})();const Sun=pr(vun);var pce,UBe,hce,WBe,mce,QBe,YBe,GBe,gce,qBe,fce,KBe,ZBe,JBe,xce,XBe,yce,ePe,bce,tPe,nPe,iPe;function Zwe(){if(QBe)return mce;QBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return mce=function(n){return e.test(n)},mce}function cSt(){if(KBe)return fce;KBe=1;var e=(function(){if(GBe)return YBe;GBe=1;var r=qwe()("length");return YBe=r})(),n=Zwe(),i=(function(){if(qBe)return gce;qBe=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 gce=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},gce})();return fce=function(r){return n(r)?i(r):e(r)},fce}function kun(){if(ePe)return yce;ePe=1;var e=(JBe||(JBe=1,ZBe=function(r){return r.split("")}),ZBe),n=Zwe(),i=(function(){if(XBe)return xce;XBe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return xce=function(b){return b.match(y)||[]},xce})();return yce=function(r){return n(r)?i(r):e(r)},yce}function jun(){if(tPe)return bce;tPe=1;var e=(function(){if(UBe)return pce;UBe=1;var d=Math.floor;return pce=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},pce})(),n=Nvt(),i=(function(){if(WBe)return hce;WBe=1;var d=Gwe();return hce=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},hce})(),r=Zwe(),s=cSt(),l=kun(),c=Math.ceil;return bce=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)},bce}(function(){if(iPe)return nPe;iPe=1;var e=jun(),n=cSt(),i=Ete(),r=_vt();nPe=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 zR=e=>e.type==="checkbox",JE=e=>e instanceof Date,jp=e=>e==null;const dSt=e=>typeof e=="object";var Ed=e=>!jp(e)&&!Array.isArray(e)&&dSt(e)&&!JE(e),uSt=e=>Ed(e)&&e.target?zR(e.target)?e.target.checked:e.target.value:e,pSt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),Jwe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Oh(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(Jwe&&(e instanceof Blob||e instanceof FileList)||!i&&!Ed(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return Ed(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Oh(e[r]);else n=e}return n}var PD=e=>Array.isArray(e)?e.filter(Boolean):[],hl=e=>e===void 0,Ei=(e,n,i)=>{if(!n||!Ed(e))return i;const r=PD(n.split(/[,[\].]+?/)).reduce(((s,l)=>jp(s)?s:s[l]),e);return hl(r)||r===e?hl(e[n])?i:e[n]:r};const hSt="blur",$un="focusout",Eun="change",Iun="onBlur",mSt="onChange",gSt="onSubmit",Dun="onTouched",MD="all",Tun="max",Lun="min",Bun="maxLength",Pun="minLength",oPe="pattern",rPe="required",Mun="validate",fSt=B.createContext(null),$t=()=>B.useContext(fSt),Dn=e=>{const{children:n,...i}=e;return B.createElement(fSt.Provider,{value:i},n)};var xSt=(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]!==MD&&(n._proxyFormState[c]=!r||MD),i&&(i[c]=!0),e[c]}});return s},Rm=e=>Ed(e)&&!Object.keys(e).length,ySt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return Rm(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||MD)))},Gm=e=>Array.isArray(e)?e:[e],bSt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||Gm(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Tte(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 C4=e=>typeof e=="string",wSt=(e,n,i,r,s)=>C4(e)?(r&&n.watch.add(e),Ei(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Ei(i,l)))):(r&&(n.watchAll=!0),i);function Ga(e){const n=$t(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Tte({disabled:l,subject:i._subjects.values,next:h=>{bSt(d.current,h.name,c)&&p(Oh(wSt(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 Xwe=e=>/^\w*$/.test(e),CSt=e=>PD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Fs(e,n,i){let r=-1;const s=Xwe(n)?[n]:CSt(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=Ed(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Oun(e){const n=$t(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=pSt(r._names.array,i),c=Ga({control:r,name:i,defaultValue:Ei(r._formValues,i,Ei(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=$t(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),A=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,Tte({disabled:f,next:k=>C.current&&bSt(S.current,k.name,y)&&ySt(k,A.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,A.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),xSt(b,g,A.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=Ei(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Oh(Ei(r._options.defaultValues,i));Fs(r._defaultValues,i,g),hl(Ei(r._formValues,i))&&Fs(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:uSt(p),name:i},type:Eun})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Ei(r._formValues,i),name:i},type:hSt})),[i,r]),ref:p=>{const h=Ei(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:()=>!!Ei(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Ei(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Ei(d.touchedFields,i)},error:{enumerable:!0,get:()=>Ei(d.errors,i)}})}}const _i=e=>e.render(Oun(e));var Fun=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const nZ=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Ei(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 Ed(c)&&nZ(c,n)}}};var Y7=()=>{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)}))},wce=(e,n,i={})=>i.shouldFocus||hl(i.shouldFocus)?i.focusName||`${e}.${hl(i.focusIndex)?n:i.focusIndex}.`:"",z5e=e=>({isOnSubmit:!e||e===gSt,isOnBlur:e===Iun,isOnChange:e===mSt,isOnAll:e===MD,isOnTouch:e===Dun}),N5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),ASt=(e,n,i)=>{const r=PD(Ei(e,i));return Fs(r,"root",n[i]),Fs(e,i,r),e},_I=e=>typeof e=="boolean",eCe=e=>e.type==="file",s9=e=>typeof e=="function",iZ=e=>{if(!Jwe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},yq=e=>C4(e),tCe=e=>e.type==="radio",oZ=e=>e instanceof RegExp;const aPe={value:!1,isValid:!1},sPe={value:!0,isValid:!0};var vSt=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&&!hl(e[0].attributes.value)?hl(e[0].value)||e[0].value===""?sPe:{value:e[0].value,isValid:!0}:sPe:aPe}return aPe};const lPe={isValid:!1,value:null};var SSt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),lPe):lPe;function cPe(e,n,i="validate"){if(yq(e)||Array.isArray(e)&&e.every(yq)||_I(e)&&!e)return{type:i,message:yq(e)?e:"",ref:n}}var Pk=e=>Ed(e)&&!oZ(e)?e:{value:e,message:""},_5e=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,A=Ei(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(_I(N)?"":N||""),S.reportValidity())},$={},j=tCe(l),I=zR(l),E=j||I,D=(b||eCe(l))&&hl(l.value)&&hl(A)||iZ(l)&&l.value===""||A===""||Array.isArray(A)&&!A.length,L=Fun.bind(null,y,i,$),F=(N,_,z,T=Bun,M=Pun)=>{const O=N?_:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(A)||!A.length:d&&(!E&&(D||jp(A))||_I(A)&&!A||I&&!vSt(c).isValid||j&&!SSt(c).isValid)){const{value:N,message:_}=yq(d)?{value:!!d,message:d}:Pk(d);if(N&&($[y]={type:rPe,message:_,ref:S,...L(rPe,_)},!i))return k(_),$}if(!(D||jp(h)&&jp(g))){let N,_;const z=Pk(g),T=Pk(h);if(jp(A)||isNaN(A)){const M=l.valueAsDate||new Date(A),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";C4(z.value)&&A&&(N=H?O(A)>O(z.value):V?A>z.value:M>new Date(z.value)),C4(T.value)&&A&&(_=H?O(A)<O(T.value):V?A<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||A&&+A;jp(z.value)||(N=M>z.value),jp(T.value)||(_=M<T.value)}if((N||_)&&(F(!!N,z.message,T.message,Tun,Lun),!i))return k($[y].message),$}if((u||p)&&!D&&(C4(A)||s&&Array.isArray(A))){const N=Pk(u),_=Pk(p),z=!jp(N.value)&&A.length>+N.value,T=!jp(_.value)&&A.length<+_.value;if((z||T)&&(F(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&C4(A)){const{value:N,message:_}=Pk(f);if(oZ(N)&&!A.match(N)&&($[y]={type:oPe,message:_,ref:l,...L(oPe,_)},!i))return k(_),$}if(x){if(s9(x)){const N=cPe(await x(A,n),S);if(N&&($[y]={...N,...L(Mun,N.message)},!i))return k(N.message),$}else if(Ed(x)){let N={};for(const _ in x){if(!Rm(N)&&!i)break;const z=cPe(await x[_](A,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!Rm(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function Cce(e,n){return[...e,...Gm(n)]}var Ace=e=>Array.isArray(e)?e.map((()=>{})):void 0;function vce(e,n,i){return[...e.slice(0,n),...Gm(i),...e.slice(n)]}var Sce=(e,n,i)=>Array.isArray(e)?(hl(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function kce(e,n){return[...Gm(n),...Gm(e)]}var jce=(e,n)=>hl(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return PD(l).length?l:[]})(e,Gm(n).sort(((i,r)=>i-r))),$ce=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Ud(e,n){const i=Array.isArray(n)?n:Xwe(n)?[n]:CSt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=hl(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(Ed(r)&&Rm(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!hl(c[d]))return!1;return!0})(r))&&Ud(e,i.slice(0,-1)),e}var dPe=(e,n,i)=>(e[n]=i,e);function El(e){const n=$t(),{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(Y7)),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),Tte({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Ei(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Y7))}},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,N5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!z5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Ei(x.errors,r),b=Ei(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Fs(i._formState.errors,r,y):Ud(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Ei(i._fields,r);x&&x._f&&_5e(x,i._formValues,i._options.criteriaMode===MD,i._options.shouldUseNativeValidation,!0).then((y=>!Rm(y)&&i._subjects.state.next({errors:ASt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&nZ(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Ei(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);$ce(b,x,y),$ce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,$ce,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);Sce(b,x,y),Sce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,Sce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=Gm(Oh(x)),w=kce(i._getFieldArray(r),b);i._names.focus=wce(r,0,y),u.current=kce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,kce,{argA:Ace(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=Gm(Oh(x)),w=Cce(i._getFieldArray(r),b);i._names.focus=wce(r,w.length-1,y),u.current=Cce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,Cce,{argA:Ace(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=jce(i._getFieldArray(r),x);u.current=jce(u.current,x),f(y),d(y),i._updateFieldArray(r,y,jce,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=Gm(Oh(y)),C=vce(i._getFieldArray(r),x,w);i._names.focus=wce(r,x,b),u.current=vce(u.current,x,w.map(Y7)),f(C),d(C),i._updateFieldArray(r,C,vce,{argA:x,argB:Ace(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Oh(y),w=dPe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,A)=>C&&A!==x?u.current[A]:Y7())),f(w),d([...w]),i._updateFieldArray(r,w,dPe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=Gm(Oh(x));u.current=y.map(Y7),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]||Y7()})))),[c,s])}}function Ece(){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 rZ=e=>jp(e)||!dSt(e);function UA(e,n){if(rZ(e)||rZ(n))return e===n;if(JE(e)&&JE(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(JE(l)&&JE(c)||Ed(l)&&Ed(c)||Array.isArray(l)&&Array.isArray(c)?!UA(l,c):l!==c)return!1}}return!0}var kSt=e=>e.type==="select-multiple",Ice=e=>iZ(e)&&e.isConnected,jSt=e=>{for(const n in e)if(s9(e[n]))return!0;return!1};function aZ(e,n={}){const i=Array.isArray(e);if(Ed(e)||i)for(const r in e)Array.isArray(e[r])||Ed(e[r])&&!jSt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},aZ(e[r],n[r])):jp(e[r])||(n[r]=!0);return n}function $St(e,n,i){const r=Array.isArray(e);if(Ed(e)||r)for(const s in e)Array.isArray(e[s])||Ed(e[s])&&!jSt(e[s])?hl(n)||rZ(i[s])?i[s]=Array.isArray(e[s])?aZ(e[s],[]):{...aZ(e[s])}:$St(e[s],jp(n)?{}:n[s],i[s]):i[s]=!UA(e[s],n[s]);return i}var Dce=(e,n)=>$St(e,n,aZ(n)),ESt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>hl(e)?e:n?e===""?NaN:e&&+e:i&&C4(e)?new Date(e):r?r(e):e;function Tce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return eCe(n)?n.files:tCe(n)?SSt(e.refs).value:kSt(n)?[...n.selectedOptions].map((({value:i})=>i)):zR(n)?vSt(e.refs).value:ESt(hl(n.value)?e.ref.value:n.value,e)}var NL=e=>hl(e)?e:oZ(e)?e.source:Ed(e)?oZ(e.value)?e.value.source:e.value:e;function uPe(e,n,i){const r=Ei(e,i);if(r||Xwe(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Ei(n,l),d=Ei(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 Run={mode:gSt,reValidateMode:mSt,shouldFocusError:!0};function zun(e={},n){let i,r={...Run,...e},s={submitCount:0,isDirty:!1,isLoading:s9(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(Ed(r.defaultValues)||Ed(r.values))&&Oh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Oh(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:Ece(),array:Ece(),state:Ece()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=z5e(r.mode),b=z5e(r.reValidateMode),w=r.criteriaMode===MD,C=async G=>{if(g.isValid||G){const q=r.resolver?Rm((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},A=G=>g.isValidating&&f.state.next({isValidating:G}),S=(G,q,K,J)=>{const te=Ei(l,G);if(te){const ee=Ei(d,G,hl(K)?Ei(c,G):K);hl(ee)||J&&J.defaultChecked||q?Fs(d,G,q?ee:Tce(te._f)):L(G,ee),u.mount&&C()}},k=(G,q,K,J,te)=>{let ee=!1,ne=!1;const oe={name:G};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=oe.isDirty=E(),ee=ne!==oe.isDirty);const re=UA(Ei(c,G),q);ne=Ei(s.dirtyFields,G),re?Ud(s.dirtyFields,G):Fs(s.dirtyFields,G,!0),oe.dirtyFields=s.dirtyFields,ee=ee||g.dirtyFields&&ne!==!re}if(K){const re=Ei(s.touchedFields,G);re||(Fs(s.touchedFields,G,K),oe.touchedFields=s.touchedFields,ee=ee||g.touchedFields&&re!==K)}return ee&&te&&f.state.next(oe),ee?oe:{}},$=(G,q,K,J)=>{const te=Ei(s.errors,G),ee=g.isValid&&_I(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>oe=>{clearTimeout(h),h=setTimeout(ne,oe)})((()=>((ne,oe)=>{Fs(s.errors,ne,oe),f.state.next({errors:s.errors})})(G,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Fs(s.errors,G,K):Ud(s.errors,G)),(K?!UA(te,K):te)||!Rm(J)||ee){const ne={...J,...ee&&_I(q)?{isValid:q}:{},errors:s.errors,name:G};s={...s,...ne},f.state.next(ne)}A(!1)},j=async G=>r.resolver(d,r.context,((q,K,J,te)=>{const ee={};for(const ne of q){const oe=Ei(K,ne);oe&&Fs(ee,ne,oe._f)}return{criteriaMode:J,names:[...q],fields:ee,shouldUseNativeValidation:te}})(G||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(G,q,K={valid:!0})=>{for(const J in G){const te=G[J];if(te){const{_f:ee,...ne}=te;if(ee){const oe=p.array.has(ee.name),re=await _5e(te,d,w,r.shouldUseNativeValidation&&!q,oe);if(re[ee.name]&&(K.valid=!1,q))break;!q&&(Ei(re,ee.name)?oe?ASt(s.errors,re,ee.name):Fs(s.errors,ee.name,re[ee.name]):Ud(s.errors,ee.name))}ne&&await I(ne,q,K)}}return K.valid},E=(G,q)=>(G&&q&&Fs(d,G,q),!UA(T(),c)),D=(G,q,K)=>wSt(G,p,{...u.mount?d:hl(q)?c:C4(G)?{[G]:q}:q},K,q),L=(G,q,K={})=>{const J=Ei(l,G);let te=q;if(J){const ee=J._f;ee&&(!ee.disabled&&Fs(d,G,ESt(q,ee)),te=iZ(ee.ref)&&jp(q)?"":q,kSt(ee.ref)?[...ee.ref.options].forEach((ne=>ne.selected=te.includes(ne.value))):ee.refs?zR(ee.ref)?ee.refs.length>1?ee.refs.forEach((ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(te)?!!te.find((oe=>oe===ne.value)):te===ne.value))):ee.refs[0]&&(ee.refs[0].checked=!!te):ee.refs.forEach((ne=>ne.checked=ne.value===te)):eCe(ee.ref)?ee.ref.value="":(ee.ref.value=te,ee.ref.type||f.values.next({name:G,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(G,te,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(G)},F=(G,q,K)=>{for(const J in q){const te=q[J],ee=`${G}.${J}`,ne=Ei(l,ee);!p.array.has(G)&&rZ(te)&&(!ne||ne._f)||JE(te)?L(ee,te,K):F(ee,te,K)}},N=(G,q,K={})=>{const J=Ei(l,G),te=p.array.has(G),ee=Oh(q);Fs(d,G,ee),te?(f.array.next({name:G,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:G,dirtyFields:Dce(c,d),isDirty:E(G,ee)})):!J||J._f||jp(ee)?L(G,ee,K):F(G,ee,K),N5e(G,p)&&f.state.next({...s}),f.values.next({name:G,values:{...d}}),!u.mount&&n()},_=async G=>{const q=G.target;let K=q.name,J=!0;const te=Ei(l,K);if(te){let ee,ne;const oe=q.type?Tce(te._f):uSt(G),re=G.type===hSt||G.type===$un,se=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(te._f)&&!r.resolver&&!Ei(s.errors,K)&&!te._f.deps||((ie,le,de,he,me)=>!me.isOnAll&&(!de&&me.isOnTouch?!(le||ie):(de?he.isOnBlur:me.isOnBlur)?!ie:!(de?he.isOnChange:me.isOnChange)||ie))(re,Ei(s.touchedFields,K),s.isSubmitted,b,y),ge=N5e(K,p,re);Fs(d,K,oe),re?(te._f.onBlur&&te._f.onBlur(G),i&&i(0)):te._f.onChange&&te._f.onChange(G);const ue=k(K,oe,re,!1),ce=!Rm(ue)||ge;if(!re&&f.values.next({name:K,type:G.type,values:{...d}}),se)return g.isValid&&C(),ce&&f.state.next({name:K,...ge?{}:ue});if(!re&&ge&&f.state.next({...s}),A(!0),r.resolver){const{errors:ie}=await j([K]),le=uPe(s.errors,l,K),de=uPe(ie,l,le.name||K);ee=de.error,K=de.name,ne=Rm(ie)}else ee=(await _5e(te,d,w,r.shouldUseNativeValidation))[K],J=isNaN(oe)||oe===Ei(d,K,oe),J&&(ee?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(te._f.deps&&z(te._f.deps),$(K,ne,ee,ue))}},z=async(G,q={})=>{let K,J;const te=Gm(G);if(A(!0),r.resolver){const ee=await(async ne=>{const{errors:oe}=await j();if(ne)for(const re of ne){const se=Ei(oe,re);se?Fs(s.errors,re,se):Ud(s.errors,re)}else s.errors=oe;return oe})(hl(G)?G:te);K=Rm(ee),J=G?!te.some((ne=>Ei(ee,ne))):K}else G?(J=(await Promise.all(te.map((async ee=>{const ne=Ei(l,ee);return await I(ne&&ne._f?{[ee]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!C4(G)||g.isValid&&K!==s.isValid?{}:{name:G},...r.resolver||!G?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&nZ(l,(ee=>ee&&Ei(s.errors,ee)),G?te:p.mount),J},T=G=>{const q={...c,...u.mount?d:{}};return hl(G)?q:C4(G)?Ei(q,G):G.map((K=>Ei(q,K)))},M=(G,q)=>({invalid:!!Ei((q||s).errors,G),isDirty:!!Ei((q||s).dirtyFields,G),isTouched:!!Ei((q||s).touchedFields,G),error:Ei((q||s).errors,G)}),O=(G,q={})=>{for(const K of G?Gm(G):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Ud(l,K),Ud(d,K)),!q.keepError&&Ud(s.errors,K),!q.keepDirty&&Ud(s.dirtyFields,K),!q.keepTouched&&Ud(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Ud(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(G,q={})=>{let K=Ei(l,G);const J=_I(q.disabled);return Fs(l,G,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:G}},name:G,mount:!0,...q}}),p.mount.add(G),K?J&&Fs(d,G,q.disabled?void 0:Ei(d,G,Tce(K._f))):S(G,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:NL(q.min),max:NL(q.max),minLength:NL(q.minLength),maxLength:NL(q.maxLength),pattern:NL(q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:te=>{if(te){H(G,q),K=Ei(l,G);const ee=hl(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,ne=(re=>tCe(re)||zR(re))(ee),oe=K._f.refs||[];if(ne?oe.find((re=>re===ee)):ee===K._f.ref)return;Fs(l,G,{_f:{...K._f,...ne?{refs:[...oe.filter(Ice),ee,...Array.isArray(Ei(c,G))?[{}]:[]],ref:{type:ee.type,name:G}}:{ref:ee}}}),S(G,!1,void 0,ee)}else K=Ei(l,G,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!pSt(p.array,G)||!u.action)&&p.unMount.add(G)}}},V=()=>r.shouldFocusError&&nZ(l,(G=>G&&Ei(s.errors,G)),p.mount),W=(G,q={})=>{const K=G||c,J=Oh(K),te=G&&!Rm(G)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const ee of p.mount)Ei(s.dirtyFields,ee)?Fs(te,ee,Ei(d,ee)):N(ee,Ei(te,ee));else{if(Jwe&&hl(G))for(const ee of p.mount){const ne=Ei(l,ee);if(ne&&ne._f){const oe=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(iZ(oe)){const re=oe.closest("form");if(re){re.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Oh(c):{}:J,f.array.next({values:{...te}}),f.values.next({values:{...te}})}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||UA(G,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&G?Dce(c,G):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(G,q)=>W(s9(G)?G(d):G,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const G of p.unMount){const q=Ei(l,G);q&&(q._f.refs?q._f.refs.every((K=>!Ice(K))):!Ice(q._f.ref))&&O(G)}p.unMount=new Set},_updateFieldArray:(G,q=[],K,J,te=!0,ee=!0)=>{if(J&&K){if(u.action=!0,ee&&Array.isArray(Ei(l,G))){const ne=K(Ei(l,G),J.argA,J.argB);te&&Fs(l,G,ne)}if(ee&&Array.isArray(Ei(s.errors,G))){const ne=K(Ei(s.errors,G),J.argA,J.argB);te&&Fs(s.errors,G,ne),((oe,re)=>{!PD(Ei(oe,re)).length&&Ud(oe,re)})(s.errors,G)}if(g.touchedFields&&ee&&Array.isArray(Ei(s.touchedFields,G))){const ne=K(Ei(s.touchedFields,G),J.argA,J.argB);te&&Fs(s.touchedFields,G,ne)}g.dirtyFields&&(s.dirtyFields=Dce(c,d)),f.state.next({name:G,isDirty:E(G,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Fs(d,G,q)},_getFieldArray:G=>PD(Ei(u.mount?d:c,G,e.shouldUnregister?Ei(c,G,[]):[])),_reset:W,_resetDefaultValues:()=>s9(r.defaultValues)&&r.defaultValues().then((G=>{U(G,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:G=>{s={...s,...G}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(G){u=G},get _defaultValues(){return c},get _names(){return p},set _names(G){p=G},get _formState(){return s},set _formState(G){s=G},get _options(){return r},set _options(G){r={...r,...G}}},trigger:z,register:H,handleSubmit:(G,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Oh(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:te,values:ee}=await j();s.errors=te,J=ee}else await I(l);Ud(s.errors,"root"),Rm(s.errors)?(f.state.next({errors:{}}),await G(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rm(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(G,q)=>s9(G)?f.values.subscribe({next:K=>G(D(void 0,q),K)}):D(G,q,!0),setValue:N,getValues:T,reset:U,resetField:(G,q={})=>{Ei(l,G)&&(hl(q.defaultValue)?N(G,Ei(c,G)):(N(G,q.defaultValue),Fs(c,G,q.defaultValue)),q.keepTouched||Ud(s.touchedFields,G),q.keepDirty||(Ud(s.dirtyFields,G),s.isDirty=q.defaultValue?E(G,Ei(c,G)):E()),q.keepError||(Ud(s.errors,G),g.isValid&&C()),f.state.next({...s}))},clearErrors:G=>{G&&Gm(G).forEach((q=>Ud(s.errors,q))),f.state.next({errors:G?s.errors:{}})},unregister:O,setError:(G,q,K)=>{const J=(Ei(l,G,{_f:{}})._f||{}).ref;Fs(s.errors,G,{...q,ref:J}),f.state.next({name:G,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(G,q={})=>{const K=Ei(l,G),J=K&&K._f;if(J){const te=J.refs?J.refs[0]:J.ref;te.focus&&(te.focus(),q.shouldSelect&&te.select())}},getFieldState:M}}function kn(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:s9(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:s9(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...zun(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Tte({subject:s._subjects.state,next:l=>{ySt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!UA(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=xSt(i,s),n.current}let $4;$4=typeof window<"u"?window:typeof self<"u"?self:E5e;let V5e=null,H5e=null;const Lce=$4.clearTimeout,pPe=$4.setTimeout,Bce=$4.cancelAnimationFrame||$4.mozCancelAnimationFrame||$4.webkitCancelAnimationFrame,hPe=$4.requestAnimationFrame||$4.mozRequestAnimationFrame||$4.webkitRequestAnimationFrame;function Nun(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,A=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,A.style.width=w.offsetWidth+1+"px",A.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__&&V5e(this.__resizeRAF__),this.__resizeRAF__=H5e((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=$4.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],A=b.createElement("style");A.id="detectElementResize",A.type="text/css",e!=null&&A.setAttribute("nonce",e),A.styleSheet?A.styleSheet.cssText=w:A.appendChild(b.createTextNode(w)),C.appendChild(A)}})(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{}}}}}Bce==null||hPe==null?(V5e=Lce,H5e=function(e){return pPe(e,20)}):(V5e=function([e,n]){Bce(e),Lce(n)},H5e=function(e){const n=hPe((function(){Lce(i),e()})),i=pPe((function(){Bce(n),e()}),20);return[n,i]});let Bo=class extends m.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:i,onResize:r}=this.props;if(this._parentNode){const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(s.paddingLeft||"0"),c=parseFloat(s.paddingRight||"0"),d=parseFloat(s.paddingTop||"0"),u=parseFloat(s.paddingBottom||"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-d-u,g=p.width-l-c;if(!n&&this.state.height!==h||!i&&this.state.width!==g){this.setState({height:h,width:g});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof r=="function"&&r({height:h,width:g,get scaledHeight(){return f(),h},get scaledWidth(){return f(),g}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const i=n.ownerDocument.defaultView.ResizeObserver;i!=null?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(n)):(this._detectElementResize=Nun(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 t0(e){return t0=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},t0(e)}function U5e(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 nCe(e,n){if(e){if(typeof e=="string")return U5e(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)?U5e(e,n):void 0}}function mPe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=nCe(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 Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sZ(e,n){return sZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},sZ(e,n)}function $a(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&&sZ(e,n)}function lZ(e){return lZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lZ(e)}function ISt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(ISt=function(){return!!e})()}function Ea(e){var n=ISt();return function(){var i,r=lZ(e);if(n){var s=lZ(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(t0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(l)})(this,i)}}function ua(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function DSt(e){var n=(function(i,r){if(t0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(t0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return t0(n)=="symbol"?n:n+""}function gPe(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,DSt(r.key),r)}}function pa(e,n,i){return n&&gPe(e.prototype,n),i&&gPe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,n,i){return(n=DSt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function fPe(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),i.push.apply(i,r)}return i}function yo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?fPe(Object(i),!0).forEach((function(r){Si(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):fPe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function eu(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)||nCe(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 cZ(e,n){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function S3(e,n){if(e==null)return{};var i,r,s=cZ(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)i=l[r],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ko.apply(null,arguments)}function VI(e){return(function(n){if(Array.isArray(n))return U5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||nCe(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=>Xh.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
10499
10499
|
`,L0i=a.div``,B0i=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
|
-
`,P0i=a(Us)``,BQe="application/pdf",AFt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],M0i={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function O0i(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 F0i(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===BQe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([$d((()=>import("./pdf-lib-
|
|
10501
|
+
`,P0i=a(Us)``,BQe="application/pdf",AFt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],M0i={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function O0i(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 F0i(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===BQe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([$d((()=>import("./pdf-lib-bba0IcK_.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),$d((()=>import("./pdf-Nx2bnRAL.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 O0i(w,1.5,.7),A=await f.embedJpg(new Uint8Array(C)),S=A.scale(1);f.addPage([S.width,S.height]).drawImage(A,{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:BQe,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(AFt.includes(s.type)===!1)return s;const c=await Du(s,M0i),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 R0i=({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}),kN=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=tAe(HBt),[c]=ea("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(_s,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},KAe=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"}));gvt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${mvt}/pdf.worker.mjs`;const{common:PQe}=ae.getLocalizedStrings(),MQe=(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",OQe=(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}},FQe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,z0i=(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 RQe(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 az(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=fe(),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(OQe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(OQe($.currentTarget,$.clientX,$.clientY))},A=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=FQe(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,F)=>{const N=L.getBoundingClientRect(),_=F!=null?F.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;z0i(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;A();const $=requestAnimationFrame(A),j=window.setTimeout(A,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,A]),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(zQe,{children:j.flatMap(((I,E)=>{const D=RQe(I.polygon,I.pageWidth,I.pageHeight),L=MQe(I,e.selectedStatementTransactionId,d);return t.jsx(NQe,{"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(U1,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Bv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(N0i,{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(_0i,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(V0i,{children:[t.jsx(H0i,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(U0i,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(He,{enterDelay:600,display:"flex",title:PQe.texts.replace,placement:"top-end",children:t.jsx(W0i,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(Y0i,{"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:PQe.delete,placement:"top",children:t.jsx(Q0i,{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(J0i,{children:t.jsxs(X0i,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(egi,{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(zQe,{children:$.flatMap(((j,I)=>{const E=RQe(j.polygon,j.pageWidth,j.pageHeight),D=MQe(j,e.selectedStatementTransactionId,d);return t.jsx(NQe,{"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(P5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(K0i,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(si,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(G0i,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Z0i,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(M5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?FQe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&A()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(q0i,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const N0i=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?Ie`
|
|
23824
23824
|
display: none;
|
|
23825
23825
|
`:null};
|
|
23826
|
-
`,Gve=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)"})))),lJe=m.lazy((()=>$d((()=>import("./index-
|
|
23826
|
+
`,Gve=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)"})))),lJe=m.lazy((()=>$d((()=>import("./index-DvSNyGXH.js")),__vite__mapDeps([3,0,1,2]))));function qve({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=fe(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const A={};i?.youtube&&(A.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?ja.createPortal(t.jsx(pWi,{windowSize:b,role:"presentation",children:t.jsx(si,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(hWi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(mWi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(uWi,{src:h,alt:"Video thumbnail"}),t.jsx(cWi,{onClick:()=>{C(!0),y?.()},children:t.jsx(dWi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(lJe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:A})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(lJe,{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:A})})}const lWi=hi`
|
|
23827
23827
|
0% {
|
|
23828
23828
|
transform: rotate(0deg);
|
|
23829
23829
|
}
|
|
@@ -87282,7 +87282,7 @@ ${KM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
87282
87282
|
color: ${P.tagWarningColorLight};
|
|
87283
87283
|
`,Gds=a(yt)`
|
|
87284
87284
|
color: ${P.tagWarningColorLight};
|
|
87285
|
-
`,{expenseAutomation:{accountRecon:{statementProcessing:$m}},common:zG}=ae.getLocalizedStrings(),G5="statement-processing-page";function qds(){const[e]=ea("AiStar");return t.jsx(Bg,{$slotSize:o.sp4,children:e!=null?t.jsx(WT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(ius,{})})}function Kds({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=$m.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,A]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((ce,ie)=>{A(ce),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[F,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 ce=!1;return N(!1),(async function(ie){if(ie==null)return;if(zin(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 $d((()=>import("./pdf-
|
|
87285
|
+
`,{expenseAutomation:{accountRecon:{statementProcessing:$m}},common:zG}=ae.getLocalizedStrings(),G5="statement-processing-page";function qds(){const[e]=ea("AiStar");return t.jsx(Bg,{$slotSize:o.sp4,children:e!=null?t.jsx(WT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(ius,{})})}function Kds({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=$m.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,A]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((ce,ie)=>{A(ce),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[F,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 ce=!1;return N(!1),(async function(ie){if(ie==null)return;if(zin(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 $d((()=>import("./pdf-Nx2bnRAL.js").then((he=>he.i))),__vite__mapDeps([0,1,2])).then((he=>he.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{ce||(L(ie),N(!0))})),()=>{ce=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!F||_!=null||z((function(ce){return ce==null||ce<=0?125:ce<=2?65:ce<=4?120:ce<=8?160:ce<=12?190:200})(D))}),[F,_,D]);const U=_??125,G=F8e(h),q=1e3*U,K=Math.floor(q/Math.max(G,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const le=(function(de,he,me){const ye=F8e(me);return he*(Math.max(0,Math.min(de,me)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*le,H.current=!0}const ce=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};ce();const ie=setInterval(ce,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,te=_!=null?(function(ce,ie,le){return ie?null:ce<=0?{label:le.takingLongerThanExpected,showClock:!1}:ce<60?{label:le.timeRemainingSeconds(ce),showClock:!0}:{label:le.timeRemainingMinutes(Math.ceil(ce/60)),showClock:!0}})(J,b>=h,$m):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 ee=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const ce=setTimeout((()=>{w((ie=>ie+1))}),ee?300:K);return()=>clearTimeout(ce)}),[b,s,f,g,ee,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const ce=setTimeout(u,1e3);return()=>clearTimeout(ce)}),[b,f,u,h]);const ne=f===!0&&b>=g,oe=m.useCallback((()=>{const ce=O.current??Date.now();d({completedSteps:b,startedAtMs:ce,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 ce=requestAnimationFrame((()=>{const ie=V.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(ce)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const ce=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(ce);const ie=(b+1)/h*100,le=ee?300:K,de=performance.now();let he=0;const me=ye=>{const we=Math.min((ye-de)/le,1);I(ce+(ie-ce)*we),we<1&&(he=requestAnimationFrame(me))};return he=requestAnimationFrame(me),()=>cancelAnimationFrame(he)}),[b,s,f,g,ee,K,h]);const re=Math.min(100,Math.round(j)),se=b>=h?h-1:Math.min(b,$m.stepSubtitles.length-1),ge=r?.accounts.length??0,ue=ne===!0&&ge>0?r?.accountType==="bank"?$m.accountMapping.headerSubtitleAccounts(ge):$m.accountMapping.headerSubtitle(ge):$m.stepSubtitles[se];return t.jsxs(t.Fragment,{children:[t.jsxs(Zds,{ref:V,"data-testid":Q(G5,"container"),children:[t.jsxs(Xds,{"data-testid":Q(G5,"header"),children:[t.jsxs(eus,{children:[t.jsxs(tus,{children:[t.jsxs(nus,{children:[t.jsx(qds,{}),t.jsx(ous,{children:$m.headerTitle})]}),ne===!0?t.jsxs(I9t,{"data-testid":Q(G5,"action-needed"),children:[t.jsx(lus,{}),t.jsx(cus,{children:$m.actionNeeded})]}):te!=null?t.jsxs(I9t,{"data-testid":Q(G5,"time-remaining"),children:[te.showClock?t.jsx(aus,{}):null,t.jsx(sus,{children:te.label})]}):null]}),t.jsx(rus,{children:ue})]}),t.jsxs(dus,{children:[t.jsxs(uus,{children:[t.jsx(pus,{children:$m.stepProgressLabel(b,h)}),t.jsx(hus,{children:`${re}%`})]}),t.jsx(mus,{children:t.jsx(gus,{style:{width:`${j}%`}})})]})]}),t.jsx(Jds,{"data-testid":Q(G5,"steps"),children:$m.steps.map(((ce,ie)=>{const le=ie+1,de=ie===$m.steps.length-1,he=ne===!0&&y!==!0&&de===!0,me=f===!0&&y===!0&&de===!0&&b>=g,ye=he!==!0&&me!==!0&&le<=b,we=me===!0||he!==!0&&le===b+1;return t.jsxs(fus,{"data-testid":Q(G5,`step-${le}`),children:[t.jsxs(xus,{children:[t.jsx(bus,{$isDone:ye,$isInProgress:we,children:le}),de?null:t.jsx(yus,{$isDone:ye})]}),t.jsx(jus,{children:ce}),t.jsx($us,{children:he===!0?t.jsx(vus,{"data-testid":Q(G5,"action-required"),children:t.jsx(Sus,{children:zG.texts.actionRequired})}):ye?t.jsx(wus,{}):we?t.jsxs(Cus,{children:[t.jsx(kus,{}),t.jsx(Aus,{children:zG.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},le)}))}),ne===!0&&r!=null?t.jsx(jds,{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(qn,{formId:G5,showCancel:!0,cancelBtn:{label:$m.continueInBackground,onClick:oe,style:{width:"195px"}},primaryBtn:{label:zG.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:G5,showCancel:!0,cancelBtn:{label:zG.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:$m.continueInBackground,onClick:oe,variant:"secondary",style:{width:"195px"}}})]})}const Zds=a.div`
|
|
87286
87286
|
flex: 1;
|
|
87287
87287
|
display: flex;
|
|
87288
87288
|
flex-direction: column;
|
|
@@ -92523,7 +92523,7 @@ ${KM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92523
92523
|
padding: ${o.sp3} ${o.sp0};
|
|
92524
92524
|
`,fCt=a(ct)`
|
|
92525
92525
|
min-width: 140px;
|
|
92526
|
-
`,PR=ZCt(pdn()),M6s=["sandbox","production"],O6s=["development","staging","production"],F6s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],SD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",t$e="https://zeni-webapp-dev.uc.r.appspot.com",Ul=(e=>b7(e,F6s))("DEV"),jjs=(e=>b7(e,M6s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ul)),xCt=(e=>b7(e,O6s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ul)),R6s=(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"}})(Ul);function Non(e,n){return PR.AES.decrypt(e,n).toString(PR.enc.Utf8)}const _on="ZENI-WEB-APP-",n$e=Ul==="DEV"||Ul==="QA"?.2:.8,Von=n$e,Zs={sentryDsn:"",sentryTraceSamplingRate:n$e,sentryProfileSamplingRate:Von,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let J4,Yz;function z6s(){return J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Hon(e){Zs.sentryDsn=e.keys.SENTRY_DSN,Zs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):n$e,Zs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Von,Zs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Zs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Zs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Zs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Zs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Zs.pusherCluster=e.keys.PUSHER_CLUSTER,Zs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Zs.appUrl=e.keys.WEB_ENDPOINT,Zs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Zs.cardVaultId=e.keys.UNIT_VAULT_ID,Zs.stripeKey=e.keys.STRIPE_KEY,Zs.qboRedirectionUrl=e.keys.QBO_URL,Zs.mixpanelUrl=e.keys.MIXPANEL_URL,Zs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Yz=e.externalEndPoints,J4=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)}})(J4,Yz)}async function yCt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${t$e}/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 bCt=!1;function ZE(){bCt||(sg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:Yz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),bCt=!0)}const N6s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let wCt=!1,CCt=!1;function Z8e(){if(wCt)return;wCt=!0,ZE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),SD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const _6s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function V6s(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||_6s.has(i)));for(const i of n)sg.unregister(i);SD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function ACt(){CCt||(CCt=!0,V6s())}class zI{identify(n,i){if(ZE(),this.#t=n,n!=null&&i!=null&&(zI.#e==null||!Dln({userId:n,traits:i},zI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),zI.#e={userId:n,traits:i},SD()&&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){ZE();const r=N6s.has(n);if(this.#t!=null||r){if(Z8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(ACt(),SD()){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){ZE(),Z8e(),sg.track(n,i),ACt(),SD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){ZE(),sg.alias(n,i)}reset(){ZE(),sg.identify(void 0),this.#t=void 0,zI.#e=void 0}static#e;#t}const J8e=new zI,Uon=new Ni.Analytics(J8e);Uon.trackWithoutUserId=J8e.trackWithoutUserId.bind(J8e);const Ym=Uon,H6s="openAiCfoScope",X8e="openAiCfoScopeOnDashboard";function $js(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[X8e]:!0,...r}})}function Ejs(e){const n=bte(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 i$e(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 Won(e,n){return(e||n?.chatSessionSummary)??null}const Qon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",ite="zeni-ai-cfo-upload-promo-storage-changed",Lr=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(ite)),!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(ite))}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 PR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=PR.AES.decrypt(e,n).toString(PR.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:hn(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=Qon;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]},Ijs=e=>{if(e==null||typeof e!="object")return;const n=e.pathnameStackToGoBack;return Array.isArray(n)&&n.every((i=>typeof i=="string"))?n:void 0},IT=(e,n)=>{const i=[...e??[]];return i.push(n),i},Djs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Tjs=({state:e})=>Lr.isSignedIn()===!0?on.jsx(uan,{}):on.jsx(tAt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),U6s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Yon(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of U6s)delete n[i];return n}function W6s(){const e=Pp(),n=Hg(),i=ste(),{tenantEmailDomain:r}=nAt(),[s,l]=m.useState(!1),c=_r((A=>A.tenantState.fetchState==="Completed"||A.tenantState.activeTenantFetchState.fetchState==="Completed"?Np(A):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=_r((A=>bte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[X8e]!==!0)return;const S=A.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof A.aiCfoInitialSubmissionSource=="string"?A.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof A.aiCfoSuggestionIndex=="number"?A.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Yon(A),[X8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const A=p.current;if(A==null||r==null)return!1;p.current=null;const S=n.state,k=IT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:A.question,aiCfoShouldSubmit:!0,...A.submissionSource!=null?{aiCfoInitialSubmissionSource:A.submissionSource}:{},...A.suggestionIndex!=null?{aiCfoSuggestionIndex:A.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Wt(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const A=IT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:A,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(JAt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(xon,{open:s,onClose:w,children:on.jsxs(fon,{children:[s&&!h?on.jsx(Pve,{analytics:Ym,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(n7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const ewe=m.createContext(void 0);function o$e(){const e=m.useContext(ewe);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const r$e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],a$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Gon=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],qon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Kon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Zon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Jon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Xon=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],ern=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function trn(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 nrn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],irn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],orn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Q6s=[...Gon,...r$e,...a$e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/customers/*","/:tenantEmailDomain/customers","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...nrn,...irn,...orn,...qon,...Kon,...Zon,...Jon,...Xon,...ern];function rrn(){const{pathname:e}=Hg(),n=e??"";return Q6s.some((i=>rwe(i,n)!=null))||trn(e)}function Gd(e){const{pathname:n}=Hg(),i=n??"";return e.some((r=>rwe(r,i)!=null))}const Ljs=27.22,arn=m.createContext(null),srn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Y6s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx(arn.Provider,{value:c,children:e})}function s$e(){const e=m.useContext(arn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function G6s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Fln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Pln(c);u.length!==0&&(e(Mln(u)),e(Oln({sourceChatSessionId:n})),n!=null&&e(M$e({chatSessionId:n,id:V$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Bln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Isa(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const A=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return A==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Esa(A)}}const y=dee(p.vendorPolicy,"allow"),b=dee(p.vendorPolicy,"block"),w=uee(p.categoryPolicy,"allow"),C=uee(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((A=>A.isChecked)).map((A=>A.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:pee(p.limits,Gke),spendLimits:{transaction:pee(p.limits,Yke)}}})({values:c});e(Lln({templates:[u],sourceChatSessionId:n})),n!=null&&e(M$e({chatSessionId:n,id:V$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Tln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(XAt())}:void 0}}const q6s=e=>Yln(e,!1),K6s=e=>Qln(e.name,!1);function Z6s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Rln(r),l=zln(r),c=Nln(r),{creditAccount:d}=_ln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(q6s),cardPolicyVendorSearchOptions:l.map(K6s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Wln(r),cardPolicyUploadedFileName:Uln(r),cardPolicyFormDraft:Hln(e.createCardPolicyState),cardsCreationFormDraft:Vln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const J6s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=qln(e.chargeCardState,i);if(r==null)return;const s=Kln(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}}},X6s=e=>n=>{const i=Gln(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 ebs(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoAnswerExportEnabled);return n&&J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function tbs({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=ns(),{isFeatureEnabled:r}=i(Sl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(Sl.isCardPolicyEnabled),l=_r((x=>Np(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=_r((x=>{const y=Np(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),qK),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(Zln()),n(O$e()),n(Jln("cardHolderCandidate",!1)),n(Xln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(ecn())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(XAt())}),[n,l]);const h=m.useMemo((()=>udn((x=>{n(O$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=_r((x=>tcn(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),qK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const lrn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],crn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],nbs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],ibs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],obs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],rbs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],abs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],drn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],urn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],sbs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function l$e(e){const n=Vh(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":sbs.includes(r)?r:null}const lbs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),cbs=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function c$e(e){const n=Vh(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 prn(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function hrn(e,n,i){return prn(e,n,(r=>!i.has(r)))}function mrn(e){return hrn(e,"bills",lbs)}function grn(e){return hrn(e,"reimbursements",cbs)}function d$e(e){return prn(e,"tasks",(n=>n==="group"))}const dbs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),ubs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function u$e(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return dbs.has(i)?"checking":"checking_details"}function p$e(e){const n=Vh(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 ubs.has(i)?"cards":"cards_detail"}function frn(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function xrn(e){return Vh(e)[1]==="performance"?"performance":void 0}function yrn(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function brn(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function _2(e,n){return n.some((i=>rwe(i,e)!=null))}function pbs(e){return _2(e,r$e)?"reports":_2(e,lrn)?"ap_aging":_2(e,crn)?"ar_aging":c$e(e)!=null?"vendors_tab":_2(e,a$e)?"forecast":l$e(e)!=null?"month_end_close_review":_2(e,drn)?"cash_balance":_2(e,urn)?"card_balance":d$e(e)?"task_checklist":frn(e)!=null?"transaction_detail":xrn(e)!=null?"performance":yrn(e)!=null?"bills_detail":brn(e)!=null?"reimbursement_detail":mrn(e)?"bills_list":grn(e)?"reimbursement_list":_2(e,nbs)?"cash_in_cash_out":_2(e,ibs)?"operating_expenses":_2(e,obs)?"revenue":_2(e,rbs)?"net_burn_or_income":_2(e,abs)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":u$e(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":p$e(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function wrn(e,n){switch(pbs(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 c$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=l$e(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 u$e(e);case"treasury":return"treasury";case"cards":return p$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Crn(){const{pathname:e}=Hg(),n=e??"",i=_r((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>wrn(n,{selectedReportId:i})),[n,i])}function h$e(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoEnabled),i=_r((s=>Np(s))),r=Lr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function hbs(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoNavButtonEnabled),i=h$e();return n&&i}const Arn=m.createContext(void 0),mbs=({children:e})=>{const{tenantEmailDomain:n}=nAt(),i=n!=null?Lr.getSignedInUserTenant(n):void 0,r=_r((u=>Np(u))),s=wte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Arn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},gbs=()=>{const e=m.useContext(Arn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function vrn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Srn(e){const{areTenantIdsInSync:n}=gbs(),i=h$e(),r=hbs();return n&&e&&r&&i}function Bjs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=iAt(),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=Swe(s.getState(),d)?.fetchState;vrn(u,c)&&r(tvt({pageContext:d}))}}),[i,r,n,s])}function krn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=iAt(),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=Swe(c.getState(),i)?.fetchState;vrn(g,p||h)&&l(tvt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Srn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Pjs(e){krn({pageContext:Crn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:fbs,sampleQuestion2:xbs,sampleQuestion3:ybs}}=ae.getLocalizedStrings().aiCfo,bbs=[fbs,xbs,ybs];function wbs(e,n=!1){krn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Srn(!0),r=_r((g=>e!=null&&e!==""?Swe(g,e):void 0)),{useDynamicConfig:s}=ns(),{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:[...bbs]),[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 Cbs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Lr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(ite,l);const c=d=>{d.key===Qon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(ite,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Lr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const jrn=m.createContext(void 0),ote=()=>m.useContext(jrn),vCt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Abs=e=>{const n=Lr.isSignedIn(),i=Lr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=_r((h=>Np(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){vCt(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 acn(Zs.pusherClientSecret,{cluster:Zs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(A){return void console.warn("Failed to initialize Pusher",A)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&kD(C,u),f!=null&&kD(C,f),p!=null&&kD(C,p)))},w=()=>{const C=wte();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),ovt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),vCt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(jrn.Provider,{value:c,children:e.children})};function kD(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 vbs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},$rn=e=>n=>{const i=ote(),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]=vbs(f);if(y==="")return;const b=i.channel(x),w=A=>{r.current(y,A,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 A=()=>{g()};C.bind("pusher:subscription_succeeded",A),p.push((()=>{C.unbind("pusher:subscription_succeeded",A)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},Mjs=210;function Ojs(e){return e?.data.unread!=null&&e?.mode!=null}const m$e=e=>Fci.includes(e),g$e=e=>jOt.includes(e),f$e=e=>Rci.includes(e),Sbs={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"},kbs=e=>{if(f$e(e)){const n=Sbs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return m$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Kve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:g$e(e)?`ai-cfo/${e}`:e},jbs=["dashboard","reports","forecast","vendors","customers","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],Fjs=e=>{if(m$e(e)||g$e(e)||f$e(e))return!0;const n=kbs(e).split("/")[0];return!jbs.includes(n)},SCt=(e,n)=>e.includes(n),kCt=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"customers":return"customers";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(SCt(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&&Kve(s)?Oci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of jOt)if(SCt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function $bs(e){let n=kCt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=kCt(i[r])}return n??"home"}function Rjs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function zjs(e){return e.pathname.split("/")[2]==="invoicing"}function Njs(e){return e.pathname.includes("ai-cfo")}function _js(e,n){const i=$bs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":f$e(i)?`invoicing/${i.replace("invoicing_","")}`:m$e(i)?"settings/my_profile":g$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Kve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Ebs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(rvt(r.tenantId)),e(avt(s.userId,r.tenantId,s.zeniSessionId))),Ym.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Ibs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=ste(),p=Hg(),{setLoading:h}=s$e(),g=Lr.getSignedInUser(),f=Kz(g),{useDynamicConfig:x}=ns(),{configValue:y}=x(n5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),A=_r((O=>O.tenantState)),S=_r((O=>A.fetchState==="Completed"?scn(O):[])),k=_r((O=>e?.tenantId!=null?lcn(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(T5e());const H=IT(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(T5e()),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(evt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=IT(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(srn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Ebs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Jc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(Dbs,{children:[on.jsxs(Tbs,{children:[on.jsx(UNt,{}),on.jsx(r_t,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(Lbs,{children:on.jsx(YNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(Bbs,{children:[g!=null&&on.jsx(RN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(Pbs,{onClick:z,children:on.jsx(Mbs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const Dbs=a.div`
|
|
92526
|
+
`,PR=ZCt(pdn()),M6s=["sandbox","production"],O6s=["development","staging","production"],F6s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],SD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",t$e="https://v2-dot-zeni-webapp.uc.r.appspot.com",Ul=(e=>b7(e,F6s))("NEXT"),jjs=(e=>b7(e,M6s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ul)),xCt=(e=>b7(e,O6s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ul)),R6s=(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"}})(Ul);function Non(e,n){return PR.AES.decrypt(e,n).toString(PR.enc.Utf8)}const _on="ZENI-WEB-APP-",n$e=Ul==="DEV"||Ul==="QA"?.2:.8,Von=n$e,Zs={sentryDsn:"",sentryTraceSamplingRate:n$e,sentryProfileSamplingRate:Von,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let J4,Yz;function z6s(){return J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Hon(e){Zs.sentryDsn=e.keys.SENTRY_DSN,Zs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):n$e,Zs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Von,Zs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Zs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Zs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Zs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Zs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Zs.pusherCluster=e.keys.PUSHER_CLUSTER,Zs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Zs.appUrl=e.keys.WEB_ENDPOINT,Zs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Zs.cardVaultId=e.keys.UNIT_VAULT_ID,Zs.stripeKey=e.keys.STRIPE_KEY,Zs.qboRedirectionUrl=e.keys.QBO_URL,Zs.mixpanelUrl=e.keys.MIXPANEL_URL,Zs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Yz=e.externalEndPoints,J4=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)}})(J4,Yz)}async function yCt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${t$e}/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 bCt=!1;function ZE(){bCt||(sg.init("a9cfa638c9c62aa82fb38cd66d7f717e",{api_host:Yz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),bCt=!0)}const N6s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let wCt=!1,CCt=!1;function Z8e(){if(wCt)return;wCt=!0,ZE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),SD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const _6s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function V6s(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||_6s.has(i)));for(const i of n)sg.unregister(i);SD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function ACt(){CCt||(CCt=!0,V6s())}class zI{identify(n,i){if(ZE(),this.#t=n,n!=null&&i!=null&&(zI.#e==null||!Dln({userId:n,traits:i},zI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),zI.#e={userId:n,traits:i},SD()&&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){ZE();const r=N6s.has(n);if(this.#t!=null||r){if(Z8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(ACt(),SD()){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){ZE(),Z8e(),sg.track(n,i),ACt(),SD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){ZE(),sg.alias(n,i)}reset(){ZE(),sg.identify(void 0),this.#t=void 0,zI.#e=void 0}static#e;#t}const J8e=new zI,Uon=new Ni.Analytics(J8e);Uon.trackWithoutUserId=J8e.trackWithoutUserId.bind(J8e);const Ym=Uon,H6s="openAiCfoScope",X8e="openAiCfoScopeOnDashboard";function $js(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[X8e]:!0,...r}})}function Ejs(e){const n=bte(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 i$e(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 Won(e,n){return(e||n?.chatSessionSummary)??null}const Qon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",ite="zeni-ai-cfo-upload-promo-storage-changed",Lr=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(ite)),!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(ite))}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 PR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=PR.AES.decrypt(e,n).toString(PR.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:hn(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=Qon;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]},Ijs=e=>{if(e==null||typeof e!="object")return;const n=e.pathnameStackToGoBack;return Array.isArray(n)&&n.every((i=>typeof i=="string"))?n:void 0},IT=(e,n)=>{const i=[...e??[]];return i.push(n),i},Djs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Tjs=({state:e})=>Lr.isSignedIn()===!0?on.jsx(uan,{}):on.jsx(tAt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),U6s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Yon(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of U6s)delete n[i];return n}function W6s(){const e=Pp(),n=Hg(),i=ste(),{tenantEmailDomain:r}=nAt(),[s,l]=m.useState(!1),c=_r((A=>A.tenantState.fetchState==="Completed"||A.tenantState.activeTenantFetchState.fetchState==="Completed"?Np(A):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=_r((A=>bte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[X8e]!==!0)return;const S=A.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof A.aiCfoInitialSubmissionSource=="string"?A.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof A.aiCfoSuggestionIndex=="number"?A.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Yon(A),[X8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const A=p.current;if(A==null||r==null)return!1;p.current=null;const S=n.state,k=IT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:A.question,aiCfoShouldSubmit:!0,...A.submissionSource!=null?{aiCfoInitialSubmissionSource:A.submissionSource}:{},...A.suggestionIndex!=null?{aiCfoSuggestionIndex:A.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Wt(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const A=IT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:A,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(JAt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(xon,{open:s,onClose:w,children:on.jsxs(fon,{children:[s&&!h?on.jsx(Pve,{analytics:Ym,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(n7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const ewe=m.createContext(void 0);function o$e(){const e=m.useContext(ewe);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const r$e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],a$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Gon=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],qon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Kon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Zon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Jon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Xon=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],ern=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function trn(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 nrn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],irn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],orn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Q6s=[...Gon,...r$e,...a$e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/customers/*","/:tenantEmailDomain/customers","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...nrn,...irn,...orn,...qon,...Kon,...Zon,...Jon,...Xon,...ern];function rrn(){const{pathname:e}=Hg(),n=e??"";return Q6s.some((i=>rwe(i,n)!=null))||trn(e)}function Gd(e){const{pathname:n}=Hg(),i=n??"";return e.some((r=>rwe(r,i)!=null))}const Ljs=27.22,arn=m.createContext(null),srn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Y6s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx(arn.Provider,{value:c,children:e})}function s$e(){const e=m.useContext(arn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function G6s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Fln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Pln(c);u.length!==0&&(e(Mln(u)),e(Oln({sourceChatSessionId:n})),n!=null&&e(M$e({chatSessionId:n,id:V$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Bln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Isa(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const A=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return A==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Esa(A)}}const y=dee(p.vendorPolicy,"allow"),b=dee(p.vendorPolicy,"block"),w=uee(p.categoryPolicy,"allow"),C=uee(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((A=>A.isChecked)).map((A=>A.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:pee(p.limits,Gke),spendLimits:{transaction:pee(p.limits,Yke)}}})({values:c});e(Lln({templates:[u],sourceChatSessionId:n})),n!=null&&e(M$e({chatSessionId:n,id:V$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Tln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(XAt())}:void 0}}const q6s=e=>Yln(e,!1),K6s=e=>Qln(e.name,!1);function Z6s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Rln(r),l=zln(r),c=Nln(r),{creditAccount:d}=_ln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(q6s),cardPolicyVendorSearchOptions:l.map(K6s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Wln(r),cardPolicyUploadedFileName:Uln(r),cardPolicyFormDraft:Hln(e.createCardPolicyState),cardsCreationFormDraft:Vln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const J6s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=qln(e.chargeCardState,i);if(r==null)return;const s=Kln(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}}},X6s=e=>n=>{const i=Gln(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 ebs(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoAnswerExportEnabled);return n&&J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function tbs({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=ns(),{isFeatureEnabled:r}=i(Sl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(Sl.isCardPolicyEnabled),l=_r((x=>Np(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=_r((x=>{const y=Np(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),qK),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(Zln()),n(O$e()),n(Jln("cardHolderCandidate",!1)),n(Xln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(ecn())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(XAt())}),[n,l]);const h=m.useMemo((()=>udn((x=>{n(O$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=_r((x=>tcn(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),qK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const lrn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],crn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],nbs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],ibs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],obs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],rbs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],abs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],drn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],urn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],sbs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function l$e(e){const n=Vh(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":sbs.includes(r)?r:null}const lbs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),cbs=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function c$e(e){const n=Vh(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 prn(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function hrn(e,n,i){return prn(e,n,(r=>!i.has(r)))}function mrn(e){return hrn(e,"bills",lbs)}function grn(e){return hrn(e,"reimbursements",cbs)}function d$e(e){return prn(e,"tasks",(n=>n==="group"))}const dbs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),ubs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function u$e(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return dbs.has(i)?"checking":"checking_details"}function p$e(e){const n=Vh(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 ubs.has(i)?"cards":"cards_detail"}function frn(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function xrn(e){return Vh(e)[1]==="performance"?"performance":void 0}function yrn(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function brn(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function _2(e,n){return n.some((i=>rwe(i,e)!=null))}function pbs(e){return _2(e,r$e)?"reports":_2(e,lrn)?"ap_aging":_2(e,crn)?"ar_aging":c$e(e)!=null?"vendors_tab":_2(e,a$e)?"forecast":l$e(e)!=null?"month_end_close_review":_2(e,drn)?"cash_balance":_2(e,urn)?"card_balance":d$e(e)?"task_checklist":frn(e)!=null?"transaction_detail":xrn(e)!=null?"performance":yrn(e)!=null?"bills_detail":brn(e)!=null?"reimbursement_detail":mrn(e)?"bills_list":grn(e)?"reimbursement_list":_2(e,nbs)?"cash_in_cash_out":_2(e,ibs)?"operating_expenses":_2(e,obs)?"revenue":_2(e,rbs)?"net_burn_or_income":_2(e,abs)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":u$e(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":p$e(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function wrn(e,n){switch(pbs(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 c$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=l$e(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 u$e(e);case"treasury":return"treasury";case"cards":return p$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Crn(){const{pathname:e}=Hg(),n=e??"",i=_r((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>wrn(n,{selectedReportId:i})),[n,i])}function h$e(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoEnabled),i=_r((s=>Np(s))),r=Lr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function hbs(){const{useFeatureGate:e}=ns(),{isFeatureEnabled:n}=e(Sl.isAiCfoNavButtonEnabled),i=h$e();return n&&i}const Arn=m.createContext(void 0),mbs=({children:e})=>{const{tenantEmailDomain:n}=nAt(),i=n!=null?Lr.getSignedInUserTenant(n):void 0,r=_r((u=>Np(u))),s=wte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Arn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},gbs=()=>{const e=m.useContext(Arn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function vrn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Srn(e){const{areTenantIdsInSync:n}=gbs(),i=h$e(),r=hbs();return n&&e&&r&&i}function Bjs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=iAt(),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=Swe(s.getState(),d)?.fetchState;vrn(u,c)&&r(tvt({pageContext:d}))}}),[i,r,n,s])}function krn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=iAt(),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=Swe(c.getState(),i)?.fetchState;vrn(g,p||h)&&l(tvt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Srn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Pjs(e){krn({pageContext:Crn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:fbs,sampleQuestion2:xbs,sampleQuestion3:ybs}}=ae.getLocalizedStrings().aiCfo,bbs=[fbs,xbs,ybs];function wbs(e,n=!1){krn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Srn(!0),r=_r((g=>e!=null&&e!==""?Swe(g,e):void 0)),{useDynamicConfig:s}=ns(),{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:[...bbs]),[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 Cbs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Lr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(ite,l);const c=d=>{d.key===Qon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(ite,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Lr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const jrn=m.createContext(void 0),ote=()=>m.useContext(jrn),vCt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Abs=e=>{const n=Lr.isSignedIn(),i=Lr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=_r((h=>Np(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){vCt(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 acn(Zs.pusherClientSecret,{cluster:Zs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(A){return void console.warn("Failed to initialize Pusher",A)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&kD(C,u),f!=null&&kD(C,f),p!=null&&kD(C,p)))},w=()=>{const C=wte();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),ovt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),vCt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(jrn.Provider,{value:c,children:e.children})};function kD(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 vbs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},$rn=e=>n=>{const i=ote(),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]=vbs(f);if(y==="")return;const b=i.channel(x),w=A=>{r.current(y,A,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 A=()=>{g()};C.bind("pusher:subscription_succeeded",A),p.push((()=>{C.unbind("pusher:subscription_succeeded",A)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},Mjs=210;function Ojs(e){return e?.data.unread!=null&&e?.mode!=null}const m$e=e=>Fci.includes(e),g$e=e=>jOt.includes(e),f$e=e=>Rci.includes(e),Sbs={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"},kbs=e=>{if(f$e(e)){const n=Sbs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return m$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Kve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:g$e(e)?`ai-cfo/${e}`:e},jbs=["dashboard","reports","forecast","vendors","customers","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],Fjs=e=>{if(m$e(e)||g$e(e)||f$e(e))return!0;const n=kbs(e).split("/")[0];return!jbs.includes(n)},SCt=(e,n)=>e.includes(n),kCt=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"customers":return"customers";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(SCt(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&&Kve(s)?Oci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of jOt)if(SCt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function $bs(e){let n=kCt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=kCt(i[r])}return n??"home"}function Rjs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function zjs(e){return e.pathname.split("/")[2]==="invoicing"}function Njs(e){return e.pathname.includes("ai-cfo")}function _js(e,n){const i=$bs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":f$e(i)?`invoicing/${i.replace("invoicing_","")}`:m$e(i)?"settings/my_profile":g$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Kve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Ebs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(rvt(r.tenantId)),e(avt(s.userId,r.tenantId,s.zeniSessionId))),Ym.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Ibs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=ste(),p=Hg(),{setLoading:h}=s$e(),g=Lr.getSignedInUser(),f=Kz(g),{useDynamicConfig:x}=ns(),{configValue:y}=x(n5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),A=_r((O=>O.tenantState)),S=_r((O=>A.fetchState==="Completed"?scn(O):[])),k=_r((O=>e?.tenantId!=null?lcn(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(T5e());const H=IT(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(T5e()),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(evt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=IT(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(srn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Ebs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Jc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(Dbs,{children:[on.jsxs(Tbs,{children:[on.jsx(UNt,{}),on.jsx(r_t,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(Lbs,{children:on.jsx(YNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(Bbs,{children:[g!=null&&on.jsx(RN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(Pbs,{onClick:z,children:on.jsx(Mbs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const Dbs=a.div`
|
|
92527
92527
|
display: flex;
|
|
92528
92528
|
flex: 1 1 auto;
|
|
92529
92529
|
flex-direction: column;
|
|
@@ -92611,7 +92611,7 @@ ${KM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92611
92611
|
display: flex;
|
|
92612
92612
|
min-height: 100%;
|
|
92613
92613
|
flex-direction: column;
|
|
92614
|
-
`,Kbs=()=>{const[e,n]=m.useState((()=>Lr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=_r((g=>svt(g).fetchState)),u=_r((g=>Np(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Lr.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(kcn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Mve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(Gbs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},$Ct="init-enter",Zbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||$Ct);Jbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||$Ct,c=Xbs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Jbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),Xbs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},cm=e=>m.lazy((async()=>{const n=e.toString(),i=Lr.getForceRefreshedComponents(),r=new Set(i),s=Lr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),Vjs=(e,n,i)=>{const r=hwe(e),s=mte(e),l=mwe(i,e);return(n||i||s||r||l)&&uwe(e.company)},Trn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Lrn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Brn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Prn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(Trn||Lrn||Brn||Prn)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 jD(...e){const n=Ul==="DEV"||Ul==="QA";if(Trn||Lrn||Brn||Prn)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 yE=null,cO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function ECt(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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const e9s={dashboard:function(e){return[...ECt()]},reports:ECt,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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/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:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/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:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/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:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function ICt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,e9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function DCt(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?(wc("[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 jD("[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);wc("[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)=>{wc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),wc(` URL: ${u.url}`)}));const c=wte(),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}}),wc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){jD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else jD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function t9s({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),A=Hg(),S=Lr.getSignedInUser(),{useFeatureGate:k}=ns(),{isFeatureEnabled:$}=k(Sl.isReferralFeatureEnabled),j=Ln(),I=zy(j?.loggedInUserRole??[]),E=_r((_=>Np(_))),{isFeatureEnabled:D}=k(Sl.isDebitCardFeatureEnabled),L=mwe(D,E),F=hwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=ICt({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 wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{DCt(_,r,s).catch((M=>{jD(`[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,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{cO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),cO=!1),yE&&clearTimeout(yE),yE=setTimeout((()=>{cO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),cO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{wc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),yE&&(clearTimeout(yE),yE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),cO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=ICt({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?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),DCt(z,r,s).catch((M=>{jD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):wc(`[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&&(wc("[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;wc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){jD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function n9s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Hg(),u=_r((y=>Np(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=ns(),{isFeatureEnabled:x}=f(Sl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(t9s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function i9s(e,n){const i=Ni.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const o9s=cm((()=>$d((()=>import("./DefaultTenantHome-BMhKHh4Y.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),r9s=cm((()=>$d((()=>import("./AppDrawer-ky_X7SdS.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,13,7,8])))),TCt=cm((()=>$d((()=>import("./ScreenRoutes-n390CBhV.js").then((e=>e.S))),__vite__mapDeps([14,0,1,2,5,15,6,12])))),a9s=cm((()=>$d((()=>import("./ConnectionAuthScreen-D5XNzpDd.js")),__vite__mapDeps([16,1,2,0,5,17,18,10,11,12,19,8,20,21,22,23,24,25,6,7])))),s9s=cm((()=>$d((()=>import("./SignInScreen-U-UH-98t.js")),__vite__mapDeps([26,1,2,0,5,27,15,6,7,8])))),l9s=cm((()=>$d((()=>import("./MagicLinkSignInScreen-DiuwGQZA.js")),__vite__mapDeps([28,1,2,0,5,27,15,6,7,8])))),LCt=cm((()=>$d((()=>import("./NotFoundScreen-BThXAXPU.js")),__vite__mapDeps([29,1,2,0,5,7,8])))),c9s=cm((()=>$d((()=>import("./MagicLinkRoutes-LlQPtwmF.js")),__vite__mapDeps([30,1,2,0,5,29,7,8])))),d9s=cm((()=>$d((()=>import("./PaymentLinkScreen-Xa9F1vkq.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),u9s=cm((()=>$d((()=>import("./WiseConfirmationScreen-B63B7RbG.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),p9s=cm((()=>$d((()=>import("./HubSpotOAuthCallbackScreen-BM3fROhV.js")),__vite__mapDeps([33,1,2,0,5,7,8])))),h9s=cm((()=>$d((()=>import("./CustomerOnboardingAuthScreen-H9oLbmaI.js")),__vite__mapDeps([34,1,2,0,19,8,20,21,22,23,5,24,7])))),m9s=cm((()=>$d((()=>import("./SignOutScreen-Bb8QCtlv.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),g9s=cm((()=>$d((()=>import("./OAuthConsentScreen-QNvpnHLR.js")),__vite__mapDeps([36,1,2,0,5,7,8])))),f9s=()=>{const e=Hg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=i9s("/",n);return on.jsx(tAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function x9s(){const{isOpen:e}=rk(),n=tui(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=o$e(),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 y9s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Lr.isSignedIn(),r=_r((j=>Np(j))),s=Lr.getSignedInUser(),l=i&&Kz(s),c=_r((j=>jcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Pp(),p=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=rrn(),g=h$e(),[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}=ns(),{isFeatureEnabled:A}=C(Sl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u($cn())}),[u,h]);const S=Hg().pathname.includes("/collect-payment/"),k=on.jsx(b9s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(qWe,{children:on.jsx(eft,{children:on.jsx(ewe.Provider,{value:w,children:k})})});const $=on.jsxs(ewe.Provider,{value:w,children:[on.jsx(x9s,{}),on.jsxs(A9s,{children:[on.jsx(r9s,{tenantEmailDomain:e}),on.jsx(w9s,{children:k})]})]});return on.jsx(qWe,{children:r.tenantId!=null?on.jsx(G2a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${J4.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${J4.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(eft,{children:$})})},b9s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=_r((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ns(),{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}=s$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=o$e();return m.useEffect((()=>{h(srn.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(n9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(han,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(c9s,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(d9s,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(u9s,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(LCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(o9s,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(f9s,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(h9s,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(S9s,{children:on.jsxs(mbs,{children:[on.jsxs(k9s,{children:[s!=null?on.jsx(Kbs,{}):null,n?on.jsx(TCt,{setTenantEmailDomain:e}):on.jsx(S5e,{children:on.jsx(TCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(W6s,{}),on.jsx(j9s,{isOpen:g,children:on.jsx(Nbs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(S5e,{children:on.jsx(s9s,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(S5e,{children:on.jsx(l9s,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(m9s,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(a9s,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(p9s,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(g9s,{})}),on.jsx(q1,{path:"*",element:on.jsx(LCt,{})})]})})})},w9s=({children:e})=>{const{isOpen:n,width:i}=rk();return on.jsx(v9s,{commentsDrawerWidth:n?i:0,children:e})},C9s=PS("div")`
|
|
92614
|
+
`,Kbs=()=>{const[e,n]=m.useState((()=>Lr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=_r((g=>svt(g).fetchState)),u=_r((g=>Np(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Lr.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(kcn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Mve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(Gbs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},$Ct="init-enter",Zbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||$Ct);Jbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||$Ct,c=Xbs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Jbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),Xbs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},cm=e=>m.lazy((async()=>{const n=e.toString(),i=Lr.getForceRefreshedComponents(),r=new Set(i),s=Lr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),Vjs=(e,n,i)=>{const r=hwe(e),s=mte(e),l=mwe(i,e);return(n||i||s||r||l)&&uwe(e.company)},Trn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Lrn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Brn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Prn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(Trn||Lrn||Brn||Prn)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 jD(...e){const n=Ul==="DEV"||Ul==="QA";if(Trn||Lrn||Brn||Prn)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 yE=null,cO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function ECt(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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const e9s={dashboard:function(e){return[...ECt()]},reports:ECt,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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/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:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/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:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/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:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function ICt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,e9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function DCt(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?(wc("[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 jD("[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);wc("[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)=>{wc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),wc(` URL: ${u.url}`)}));const c=wte(),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}}),wc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){jD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else jD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function t9s({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),A=Hg(),S=Lr.getSignedInUser(),{useFeatureGate:k}=ns(),{isFeatureEnabled:$}=k(Sl.isReferralFeatureEnabled),j=Ln(),I=zy(j?.loggedInUserRole??[]),E=_r((_=>Np(_))),{isFeatureEnabled:D}=k(Sl.isDebitCardFeatureEnabled),L=mwe(D,E),F=hwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=ICt({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 wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{DCt(_,r,s).catch((M=>{jD(`[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,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{cO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),cO=!1),yE&&clearTimeout(yE),yE=setTimeout((()=>{cO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),cO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{wc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),yE&&(clearTimeout(yE),yE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),cO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=ICt({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?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),DCt(z,r,s).catch((M=>{jD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):wc(`[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&&(wc("[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;wc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){jD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function n9s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Hg(),u=_r((y=>Np(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=ns(),{isFeatureEnabled:x}=f(Sl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(t9s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function i9s(e,n){const i=Ni.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const o9s=cm((()=>$d((()=>import("./DefaultTenantHome-C9USEe2D.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),r9s=cm((()=>$d((()=>import("./AppDrawer-BNrm6Unj.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,13,7,8])))),TCt=cm((()=>$d((()=>import("./ScreenRoutes-CQPbRX2a.js").then((e=>e.S))),__vite__mapDeps([14,0,1,2,5,15,6,12])))),a9s=cm((()=>$d((()=>import("./ConnectionAuthScreen-BPHZkh6G.js")),__vite__mapDeps([16,1,2,0,5,17,18,10,11,12,19,8,20,21,22,23,24,25,6,7])))),s9s=cm((()=>$d((()=>import("./SignInScreen-CyZOVBTb.js")),__vite__mapDeps([26,1,2,0,5,27,15,6,7,8])))),l9s=cm((()=>$d((()=>import("./MagicLinkSignInScreen-cjFRT0pp.js")),__vite__mapDeps([28,1,2,0,5,27,15,6,7,8])))),LCt=cm((()=>$d((()=>import("./NotFoundScreen-62ZwPZD8.js")),__vite__mapDeps([29,1,2,0,5,7,8])))),c9s=cm((()=>$d((()=>import("./MagicLinkRoutes-DJxwtwLL.js")),__vite__mapDeps([30,1,2,0,5,29,7,8])))),d9s=cm((()=>$d((()=>import("./PaymentLinkScreen-CtYs51-a.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),u9s=cm((()=>$d((()=>import("./WiseConfirmationScreen-BC7k73C3.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),p9s=cm((()=>$d((()=>import("./HubSpotOAuthCallbackScreen-CpWODxVs.js")),__vite__mapDeps([33,1,2,0,5,7,8])))),h9s=cm((()=>$d((()=>import("./CustomerOnboardingAuthScreen-Cud9qjqo.js")),__vite__mapDeps([34,1,2,0,19,8,20,21,22,23,5,24,7])))),m9s=cm((()=>$d((()=>import("./SignOutScreen-BzT1GyXB.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),g9s=cm((()=>$d((()=>import("./OAuthConsentScreen-oLGZ4UKO.js")),__vite__mapDeps([36,1,2,0,5,7,8])))),f9s=()=>{const e=Hg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=i9s("/",n);return on.jsx(tAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function x9s(){const{isOpen:e}=rk(),n=tui(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=o$e(),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 y9s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Lr.isSignedIn(),r=_r((j=>Np(j))),s=Lr.getSignedInUser(),l=i&&Kz(s),c=_r((j=>jcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Pp(),p=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=rrn(),g=h$e(),[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}=ns(),{isFeatureEnabled:A}=C(Sl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u($cn())}),[u,h]);const S=Hg().pathname.includes("/collect-payment/"),k=on.jsx(b9s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(qWe,{children:on.jsx(eft,{children:on.jsx(ewe.Provider,{value:w,children:k})})});const $=on.jsxs(ewe.Provider,{value:w,children:[on.jsx(x9s,{}),on.jsxs(A9s,{children:[on.jsx(r9s,{tenantEmailDomain:e}),on.jsx(w9s,{children:k})]})]});return on.jsx(qWe,{children:r.tenantId!=null?on.jsx(G2a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${J4.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${J4.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(eft,{children:$})})},b9s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=_r((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ns(),{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}=s$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=o$e();return m.useEffect((()=>{h(srn.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(n9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(han,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(c9s,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(d9s,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(u9s,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(LCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(o9s,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(f9s,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(h9s,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(S9s,{children:on.jsxs(mbs,{children:[on.jsxs(k9s,{children:[s!=null?on.jsx(Kbs,{}):null,n?on.jsx(TCt,{setTenantEmailDomain:e}):on.jsx(S5e,{children:on.jsx(TCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(W6s,{}),on.jsx(j9s,{isOpen:g,children:on.jsx(Nbs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(S5e,{children:on.jsx(s9s,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(S5e,{children:on.jsx(l9s,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(m9s,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(a9s,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(p9s,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(g9s,{})}),on.jsx(q1,{path:"*",element:on.jsx(LCt,{})})]})})})},w9s=({children:e})=>{const{isOpen:n,width:i}=rk();return on.jsx(v9s,{commentsDrawerWidth:n?i:0,children:e})},C9s=PS("div")`
|
|
92615
92615
|
display:flex;
|
|
92616
92616
|
`,A9s=PS("div")`
|
|
92617
92617
|
display: flex;
|
|
@@ -92733,4 +92733,4 @@ ${KM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92733
92733
|
}
|
|
92734
92734
|
`,W9s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(N9s,{style:n,children:[on.jsxs(_9s,{children:[on.jsx(mq,{children:on.jsx(V0,{width:96,height:20})}),on.jsxs(mq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:78,height:16}),on.jsx(V0,{width:46,height:16})]}),on.jsxs(mq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:110,height:16}),on.jsx(V0,{width:84,height:16})]}),on.jsxs(mq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:84,height:16}),on.jsx(V0,{width:64,height:16})]})]}),on.jsxs(V9s,{children:[on.jsxs(H9s,{children:[on.jsx(V0,{width:106,height:27}),on.jsx(V0,{width:111,height:32})]}),on.jsx(U9s,{children:on.jsx(z9s,{width:96,height:96})})]})]}):null;function Q9s({minDisplayTime:e=0}){const{isLoading:n}=s$e(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Lr.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)i||(r(!0),l.current=Date.now());else if(!n&&i){document.querySelector("#app-shell-loader")?.remove();const c=l.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);s.current=setTimeout((()=>{r(!1),l.current=null}),u)}else r(!1)}}),[n,i,e]),m.useEffect((()=>()=>{s.current&&clearTimeout(s.current)}),[]),!n&&i||!i?null:on.jsx(W9s,{fetchState:"In-Progress"})}const Y9s=()=>{const[e,n]=m.useState((()=>Lr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Lr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},MCt="missing-receipts-batch-completed";let nwe=null,iwe=!1;function Ujs(e,n){if(!n)return nwe=null,void(iwe=!1);nwe=e,iwe=!0}const G9s=()=>{const e=Pp(),{useFeatureGate:n}=ns(),{isFeatureEnabled:i}=n(Sl.isReconV3Enabled),r=_r((l=>lvt(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 iwe&&nwe===p})(l)||u!=="In-Progress"||d!=="Completed"||e(ivt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:ncs(c)},{variableName:"_transaction_count_",variableValue:String(ics(c))}]})),s.current[l]=d}))}),[r,e,i])},OCt="reconciliation-status-updated",FCt="statement-status-updated",RCt="combined-statement-group-updated";function q9s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function K9s(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(cvt(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,A=w?.some((S=>S.accountId===x))===!0;return C===!0||A===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(Lcn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(dvt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function Z9s(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,A){return A!==""?A: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(q9s(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 A=x(y,b);if(A!=null)return A}})(l,i);d!=null&&(e(cvt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Bcn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):dvt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function J9s(){let e=PCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(J4)}`);const n=Lr.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=Lr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Lr.getActiveTenantForUser()?.tenantId})():void 0,r=Ocn(J4,n?.userId,n?.zeniSessionId,i,SD(),t8s);L5e();const s=wte();return s.userId!=null&&Ym.identify(s.userId,{tenant_id:s.tenantId}),r})(),Orn=e,L5e().then((()=>{const n=PCt();n!=null&&(wb.reset(),F9s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),Qrn(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
92735
92735
|
|
|
92736
|
-
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const gq=new Pcn,zCt=()=>{const e=Pp(),n=Lr.getSignedInUser(),i=_r((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=ns(),{configValue:N,isDynamicConfigLoading:_}=F(sAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return xQ;const T=Ipt(N.users_disabled_for_auto_logout),M=Ipt(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:z2e(N.heartbeat_interval_minutes,xQ.heartbeatIntervalMinutes),idleTimeoutMinutes:z2e(N.idle_timeout_minutes,xQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:z2e(N.warning_duration_seconds,xQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Fve,"auto-logout"),sessionStorage.setItem(Rve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(zve,String(Date.now())),HF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(Szt(),HF=void 0),s(null),gq.stop(),e(Fcn()),e(Rcn(!1)),Lr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return gq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(zcn()),onWarningStart:L=>{Ym.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Ym.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>gq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=_r((L=>Ncn(L,i.companyId))),u=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(z$e())}),[]);const h=_r((L=>_cn(L)));(()=>{const L=ote(),F=Pp(),{useFeatureGate:N}=ns(),{isFeatureEnabled:_}=N(Sl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Lr.getSignedInUser()?.userId;if(z==null)return;const T=kD(L,z),M=O=>{F(Tcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(MCt,M),()=>{T.unbind(MCt,M)}}),[L,F,_])})(),(()=>{const L=ote(),F=Pp(),{useFeatureGate:N}=ns(),{isFeatureEnabled:_}=N(Sl.isReconV3Enabled),{isFeatureEnabled:z}=N(Sl.isReconciliationCombinedStatementEnabled),T=_r((G=>Np(G)?.companyId)),M=_r((G=>lvt(G))),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 G={month:V,year:W},q=kD(L,T),K=te=>{K9s(F,G,te??{},_===!0,z===!0,U.current)},J=te=>{Z9s(F,G,te??{},_===!0,z===!0,U.current)};return q.bind(OCt,K),q.bind(FCt,K),q.bind(RCt,J),()=>{q.unbind(OCt,K),q.unbind(FCt,K),q.unbind(RCt,J)}}),[L,F,_,z,T,V,W])})(),G9s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Vcn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Hcn(F))}},y=m.useMemo((()=>Lr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=ns(),{isFeatureEnabled:C}=w(Sl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(Sl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Sl.isInvoicingFeatureEnabled),k=xxa(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&xAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>O9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Ym,sentry:Yrn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(fVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(lVn,{toolkit:D,children:on.jsxs(y_n,{endPoint:{url:t$e},children:[on.jsx(Tsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(z$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx($9s,{...x})]})}),r!=null&&n!=null?on.jsx(v6s,{secondsRemaining:r,onContinueSession:()=>{Ym.trackSessionTimeoutClicked("continue",r),gq.continueSession()},onSignOut:()=>{Ym.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},X9s=()=>{const e=Lr.isSignedIn(),n=_r((d=>Np(d))),i=n.companyId,r=_r((d=>Mcn(d.companyState,i)?.company.featuresActivationInfo.connectedAccountProvider)),s=Y9s(),l=m.useMemo((()=>({companyId:i,tenantId:n.tenantId,connectedAccountProvider:r,userId:s?.userId})),[i,n.tenantId,r,s?.userId]),c=m.useMemo((()=>({currentFeatureEnv:xCt,featureClientSecret:Zs.featureClientSecret,providerEndPoint:Yz.statsigBaseUrl})),[xCt,Zs.featureClientSecret,Yz.statsigBaseUrl]);return i?on.jsx(qWn,{isUserSignedIn:e,featureGateCustomFields:l,zeniFeatureConfig:c,children:on.jsx(zCt,{})}):on.jsx(zCt,{})},e8s=Wrn((function(){const e=m.useMemo((()=>J9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{L5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(E9s,{children:on.jsx(man,{store:e,children:on.jsx(R9s,{value:n,children:on.jsxs(Y6s,{children:[on.jsx(Q9s,{}),on.jsx(Ebn,{children:on.jsx(Abs,{children:on.jsxs(aVn,{children:[r?on.jsx(ndi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(X9s,{})]})})})]})})})})}));function t8s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const n8s=!!(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}$/)),NCt=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function _Ct(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 Rrn="zeni:env-keys:",rte=`${Rrn}${Ul}:5.4.21-dev-c7a677a17`,VCt="zeni.ai";function i8s(e){return zrn(e)}function HCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(i8s)}const k5e="o4504609050525696",o8s={SENTRY_DSN:[`${k5e}.ingest.sentry.io`,`${k5e}.ingest.us.sentry.io`,`${k5e}.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"]},r8s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,a8s=["WEB_ENDPOINT"];function zrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===VCt||n.hostname.endsWith(`.${VCt}`))}const s8s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],l8s=/^[A-Za-z0-9_-]+$/,c8s=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}),d8s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),u8s=/^pk_(live|test)_[A-Za-z0-9]+$/,p8s=/^[A-Za-z0-9_.-]+$/,h8s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function m8s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!HCt(n.apiEndPoints)||!HCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(c8s.some((h=>i[h]==null))||d8s.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(o8s).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=s8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&l8s.test(g)})),u=a8s.every((h=>{const g=l[h];return g==null||(function(f){if(zrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&r8s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&u8s.test(l.STRIPE_KEY))&&h8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&p8s.test(g)}));return c&&d&&u&&p}function j5e(){try{window.localStorage.removeItem(rte)}catch{}}function g8s(e){try{window.localStorage.setItem(rte,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(Rrn)&&r!==rte&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Nrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Non(e,_on+Ul));return m8s(n)?n:null}catch{return null}}function UCt(e){return Nrn(e)!=null&&(g8s(e),!0)}const WCt="zeni-chunk-reload-at",f8s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function QCt(e){try{const n=Number(sessionStorage.getItem(WCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(WCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let $5e=!1,YCt=null;const GCt="//js.hs-scripts.com/5991084.js",qCt="hs-script-loader",x8s=Lr.getSignedInUser(),y8s=x8s?.zeniSessionId;function b8s(){const e=()=>{const n=Zs.sentryDsn?.trim();if(!n)return;const i=Zs.sentryProfileSamplingRate>0,r=Ul==="PROD";Grn({dsn:n,environment:R6s,tracesSampleRate:Zs.sentryTraceSamplingRate,profilesSampleRate:i?Zs.sentryProfileSamplingRate:0,integrations:[qrn(),...i?[Krn()]:[],...r?[Zrn({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)}),Jrn("session-id",y8s),(function(){if(GK==null)return;const s=GK;GK=void 0;try{if(window.sessionStorage.getItem(KCt)!=null)return;window.sessionStorage.setItem(KCt,s)}catch{}Xrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.21-dev-c7a677a17"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function _rn(){hdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(gan,{children:on.jsx(e8s,{})})})),b8s()}let GK;function owe(e){GK=e}const KCt="zeni:env-keys-rejection-reported";function w8s(){const e=(function(){try{const i=window.localStorage.getItem(rte);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return j5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(j5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Nrn(e);return n==null?(owe("untrusted-or-unreadable"),j5e(),!1):(Hon(n),_rn(),!0)}var nA;window.addEventListener("vite:preloadError",(e=>{const n=e;QCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return f8s.some((r=>i.includes(r)))})(e.reason)&&QCt(e.reason)})),(async function(){try{if(w8s())return void(async function(){const i=await yCt();typeof i=="string"&&i.length>0&&!UCt(i)&&owe("refresh-untrusted-payload")})().catch((()=>{}));const e=await yCt(),n=Non(e,_on+Ul);Hon(JSON.parse(n)),UCt(e)||owe("network-untrusted-payload"),_rn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):YCt!==null||(YCt=new Promise((e=>{if($5e)return void e(!0);const n=()=>{$5e?e(!0):($5e=!0,new Promise(((r,s)=>{if(document.getElementById(qCt))return void r();const l=document.createElement("script");l.id=qCt,l.src=GCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${GCt}`)),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;n8s?(e=NCt,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()))})):_Ct(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):_Ct(NCt)}))}})(),(nA=console.log)&&nA instanceof Function&&$d((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(nA),n(nA),i(nA),r(nA),s(nA)}));export{fe as $,Ebs as A,qBi as B,_js as C,N8s as D,o as E,Oci as F,ae as G,Tws as H,Kve as I,cm as J,xxa as K,srn as L,_8s as M,Ul as N,F9s as O,Tjs as P,Ni as Q,IYi as R,eCs as S,PCt as T,$ws as U,Ln as V,Zs as W,tCs as X,Kn as Y,M8s as Z,Sl as _,o$e as a,Hvs as a$,xvs as a0,Hfi as a1,Djs as a2,yvs as a3,bvs as a4,Wbs as a5,Pve as a6,z9s as a7,Aqo as a8,R as a9,Jko as aA,nCs as aB,KAs as aC,qAs as aD,s5 as aE,tqt as aF,ZAs as aG,F8s as aH,ote as aI,vbs as aJ,Qvs as aK,Yvs as aL,jws as aM,jvs as aN,TAs as aO,FAs as aP,ake as aQ,Ivs as aR,Evs as aS,OAs as aT,MAs as aU,kws as aV,$Ot as aW,djs as aX,Wvs as aY,Vvs as aZ,Uvs as a_,wvs as aa,ajs as ab,J4 as ac,P as ad,O8s as ae,nvs as af,Mws as ag,XAs as ah,Xws as ai,jjs as aj,oCs as ak,pbs as al,Srn as am,Bjs as an,gbs as ao,hbs as ap,Pjs as aq,Hws as ar,Lp as as,t$e as at,kCt as au,dks as av,vSs as aw,Di as ax,EAs as ay,$As as az,i9s as b,mjs as b$,PAs as b0,BAs as b1,Jws as b2,Ijs as b3,Zws as b4,SAs as b5,GAs as b6,Vi as b7,lVn as b8,evs as b9,Z8s as bA,UAe as bB,Y8s as bC,uks as bD,DAs as bE,q8s as bF,K8s as bG,G8s as bH,SD as bI,$vs as bJ,UCs as bK,QCs as bL,WCs as bM,_Cs as bN,NCs as bO,YCs as bP,Cvs as bQ,VCs as bR,HCs as bS,qCs as bT,Ps as bU,qvs as bV,Avs as bW,iAs as bX,tAs as bY,wjs as bZ,QAs as b_,nwo as ba,iCs as bb,eIi as bc,c_t as bd,Svs as be,vvs as bf,kvs as bg,Lws as bh,In as bi,da as bj,Crn as bk,n5 as bl,Ejs as bm,Obs as bn,Vws as bo,Uws as bp,Zvs as bq,i$e as br,H6s as bs,Ews as bt,oOi as bu,XBt as bv,rCs as bw,wbs as bx,oAs as by,Q8s as bz,Y9s as c,gjs as c$,sAs as c0,aAs as c1,bAs as c2,yAs as c3,vAs as c4,AAs as c5,KCs as c6,ZCs as c7,JAs as c8,tvs as c9,Iks as cA,_ks as cB,gks as cC,rjs as cD,wks as cE,ejs as cF,jks as cG,lt as cH,bks as cI,Mi as cJ,Yks as cK,Cks as cL,kks as cM,Gks as cN,Fks as cO,Rks as cP,zks as cQ,Oks as cR,Nks as cS,Mks as cT,W9s as cU,tws as cV,kAs as cW,jAs as cX,pks as cY,nAs as cZ,Sjs as c_,JCs as ca,XCs as cb,eAs as cc,CAs as cd,wAs as ce,tjs as cf,Xks as cg,Aks as ch,Dks as ci,vks as cj,LAs as ck,xks as cl,qks as cm,$ks as cn,Hks as co,Uks as cp,Vks as cq,yks as cr,Sks as cs,ojs as ct,njs as cu,ijs as cv,Kks as cw,Eks as cx,Jks as cy,Zks as cz,h$e as d,tui as d$,NAs as d0,HAs as d1,_As as d2,z8s as d3,RAs as d4,zAs as d5,Mve as d6,UAs as d7,YAs as d8,Sgs as d9,Kvs as dA,oSs as dB,Jvs as dC,iSs as dD,gSs as dE,X8s as dF,ews as dG,xSs as dH,hSs as dI,pSs as dJ,eSs as dK,mSs as dL,Gvs as dM,Q2a as dN,aks as dO,cks as dP,mks as dQ,hks as dR,sjs as dS,ncs as dT,H8s as dU,pjs as dV,ujs as dW,Ujs as dX,els as dY,BKi as dZ,IAs as d_,O3s as da,K4e as db,Cjs as dc,Ajs as dd,vjs as de,bjs as df,Bws as dg,uKt as dh,dSs as di,cSs as dj,sSs as dk,uSs as dl,lSs as dm,fjs as dn,aSs as dp,rSs as dq,fSs as dr,Xvs as ds,nSs as dt,J8s as du,VAs as dv,cr as dw,Kqr as dx,tSs as dy,krn as dz,Hjs as e,rk as e0,Xen as e1,kjs as e2,G4o as e3,cjs as e4,rAs as e5,hjs as e6,tcs as e7,iks as e8,ASs as e9,CSs as ea,wSs as eb,ebs as ec,tbs as ed,iz as ee,Cbs as ef,Ibs as eg,Yon as eh,Fbs as ei,n7e as ej,xon as ek,fon as el,V8s as em,Z6s as en,X6s as eo,J6s as ep,z6s as eq,G6s as er,Won as es,Ljs as et,Vjs as f,Wt as g,Ym as h,Ojs as i,IT as j,Njs as k,zjs as l,v as m,Rjs as n,$bs as o,ns as p,Mjs as q,$js as r,Fjs as s,wb as t,s$e as u,eRt as v,$rn as w,kbs as x,g$e as y,Lr as z};
|
|
92736
|
+
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const gq=new Pcn,zCt=()=>{const e=Pp(),n=Lr.getSignedInUser(),i=_r((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=ns(),{configValue:N,isDynamicConfigLoading:_}=F(sAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return xQ;const T=Ipt(N.users_disabled_for_auto_logout),M=Ipt(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:z2e(N.heartbeat_interval_minutes,xQ.heartbeatIntervalMinutes),idleTimeoutMinutes:z2e(N.idle_timeout_minutes,xQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:z2e(N.warning_duration_seconds,xQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Fve,"auto-logout"),sessionStorage.setItem(Rve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(zve,String(Date.now())),HF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(Szt(),HF=void 0),s(null),gq.stop(),e(Fcn()),e(Rcn(!1)),Lr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return gq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(zcn()),onWarningStart:L=>{Ym.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Ym.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>gq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=_r((L=>Ncn(L,i.companyId))),u=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(z$e())}),[]);const h=_r((L=>_cn(L)));(()=>{const L=ote(),F=Pp(),{useFeatureGate:N}=ns(),{isFeatureEnabled:_}=N(Sl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Lr.getSignedInUser()?.userId;if(z==null)return;const T=kD(L,z),M=O=>{F(Tcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(MCt,M),()=>{T.unbind(MCt,M)}}),[L,F,_])})(),(()=>{const L=ote(),F=Pp(),{useFeatureGate:N}=ns(),{isFeatureEnabled:_}=N(Sl.isReconV3Enabled),{isFeatureEnabled:z}=N(Sl.isReconciliationCombinedStatementEnabled),T=_r((G=>Np(G)?.companyId)),M=_r((G=>lvt(G))),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 G={month:V,year:W},q=kD(L,T),K=te=>{K9s(F,G,te??{},_===!0,z===!0,U.current)},J=te=>{Z9s(F,G,te??{},_===!0,z===!0,U.current)};return q.bind(OCt,K),q.bind(FCt,K),q.bind(RCt,J),()=>{q.unbind(OCt,K),q.unbind(FCt,K),q.unbind(RCt,J)}}),[L,F,_,z,T,V,W])})(),G9s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Vcn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Hcn(F))}},y=m.useMemo((()=>Lr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=ns(),{isFeatureEnabled:C}=w(Sl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(Sl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Sl.isInvoicingFeatureEnabled),k=xxa(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&xAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>O9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Ym,sentry:Yrn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(fVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(lVn,{toolkit:D,children:on.jsxs(y_n,{endPoint:{url:t$e},children:[on.jsx(Tsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(z$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx($9s,{...x})]})}),r!=null&&n!=null?on.jsx(v6s,{secondsRemaining:r,onContinueSession:()=>{Ym.trackSessionTimeoutClicked("continue",r),gq.continueSession()},onSignOut:()=>{Ym.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},X9s=()=>{const e=Lr.isSignedIn(),n=_r((d=>Np(d))),i=n.companyId,r=_r((d=>Mcn(d.companyState,i)?.company.featuresActivationInfo.connectedAccountProvider)),s=Y9s(),l=m.useMemo((()=>({companyId:i,tenantId:n.tenantId,connectedAccountProvider:r,userId:s?.userId})),[i,n.tenantId,r,s?.userId]),c=m.useMemo((()=>({currentFeatureEnv:xCt,featureClientSecret:Zs.featureClientSecret,providerEndPoint:Yz.statsigBaseUrl})),[xCt,Zs.featureClientSecret,Yz.statsigBaseUrl]);return i?on.jsx(qWn,{isUserSignedIn:e,featureGateCustomFields:l,zeniFeatureConfig:c,children:on.jsx(zCt,{})}):on.jsx(zCt,{})},e8s=Wrn((function(){const e=m.useMemo((()=>J9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{L5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(E9s,{children:on.jsx(man,{store:e,children:on.jsx(R9s,{value:n,children:on.jsxs(Y6s,{children:[on.jsx(Q9s,{}),on.jsx(Ebn,{children:on.jsx(Abs,{children:on.jsxs(aVn,{children:[r?on.jsx(ndi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(X9s,{})]})})})]})})})})}));function t8s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const n8s=!!(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}$/)),NCt=`/service-worker.js?v=${Date.now()}&env=NEXT&endpoint=${encodeURIComponent("https://v2-dot-zeni-webapp.uc.r.appspot.com")}`;function _Ct(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 Rrn="zeni:env-keys:",rte=`${Rrn}${Ul}:5.4.21-next-19b4f3c72`,VCt="zeni.ai";function i8s(e){return zrn(e)}function HCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(i8s)}const k5e="o4504609050525696",o8s={SENTRY_DSN:[`${k5e}.ingest.sentry.io`,`${k5e}.ingest.us.sentry.io`,`${k5e}.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"]},r8s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,a8s=["WEB_ENDPOINT"];function zrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===VCt||n.hostname.endsWith(`.${VCt}`))}const s8s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],l8s=/^[A-Za-z0-9_-]+$/,c8s=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}),d8s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),u8s=/^pk_(live|test)_[A-Za-z0-9]+$/,p8s=/^[A-Za-z0-9_.-]+$/,h8s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function m8s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!HCt(n.apiEndPoints)||!HCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(c8s.some((h=>i[h]==null))||d8s.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(o8s).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=s8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&l8s.test(g)})),u=a8s.every((h=>{const g=l[h];return g==null||(function(f){if(zrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&r8s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&u8s.test(l.STRIPE_KEY))&&h8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&p8s.test(g)}));return c&&d&&u&&p}function j5e(){try{window.localStorage.removeItem(rte)}catch{}}function g8s(e){try{window.localStorage.setItem(rte,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(Rrn)&&r!==rte&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Nrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Non(e,_on+Ul));return m8s(n)?n:null}catch{return null}}function UCt(e){return Nrn(e)!=null&&(g8s(e),!0)}const WCt="zeni-chunk-reload-at",f8s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function QCt(e){try{const n=Number(sessionStorage.getItem(WCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(WCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let $5e=!1,YCt=null;const GCt="//js.hs-scripts.com/5991084.js",qCt="hs-script-loader",x8s=Lr.getSignedInUser(),y8s=x8s?.zeniSessionId;function b8s(){const e=()=>{const n=Zs.sentryDsn?.trim();if(!n)return;const i=Zs.sentryProfileSamplingRate>0,r=Ul==="PROD";Grn({dsn:n,environment:R6s,tracesSampleRate:Zs.sentryTraceSamplingRate,profilesSampleRate:i?Zs.sentryProfileSamplingRate:0,integrations:[qrn(),...i?[Krn()]:[],...r?[Zrn({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)}),Jrn("session-id",y8s),(function(){if(GK==null)return;const s=GK;GK=void 0;try{if(window.sessionStorage.getItem(KCt)!=null)return;window.sessionStorage.setItem(KCt,s)}catch{}Xrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.21-next-19b4f3c72"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function _rn(){hdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(gan,{children:on.jsx(e8s,{})})})),b8s()}let GK;function owe(e){GK=e}const KCt="zeni:env-keys-rejection-reported";function w8s(){const e=(function(){try{const i=window.localStorage.getItem(rte);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return j5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(j5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Nrn(e);return n==null?(owe("untrusted-or-unreadable"),j5e(),!1):(Hon(n),_rn(),!0)}var nA;window.addEventListener("vite:preloadError",(e=>{const n=e;QCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return f8s.some((r=>i.includes(r)))})(e.reason)&&QCt(e.reason)})),(async function(){try{if(w8s())return void(async function(){const i=await yCt();typeof i=="string"&&i.length>0&&!UCt(i)&&owe("refresh-untrusted-payload")})().catch((()=>{}));const e=await yCt(),n=Non(e,_on+Ul);Hon(JSON.parse(n)),UCt(e)||owe("network-untrusted-payload"),_rn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):YCt!==null||(YCt=new Promise((e=>{if($5e)return void e(!0);const n=()=>{$5e?e(!0):($5e=!0,new Promise(((r,s)=>{if(document.getElementById(qCt))return void r();const l=document.createElement("script");l.id=qCt,l.src=GCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${GCt}`)),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://v2-dot-zeni-webapp-qa.uc.r.appspot.com",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;n8s?(e=NCt,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()))})):_Ct(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):_Ct(NCt)}))}})(),(nA=console.log)&&nA instanceof Function&&$d((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(nA),n(nA),i(nA),r(nA),s(nA)}));export{fe as $,Ebs as A,qBi as B,_js as C,N8s as D,o as E,Oci as F,ae as G,Tws as H,Kve as I,cm as J,xxa as K,srn as L,_8s as M,Ul as N,F9s as O,Tjs as P,Ni as Q,IYi as R,eCs as S,PCt as T,$ws as U,Ln as V,Zs as W,tCs as X,Kn as Y,M8s as Z,Sl as _,o$e as a,Hvs as a$,xvs as a0,Hfi as a1,Djs as a2,yvs as a3,bvs as a4,Wbs as a5,Pve as a6,z9s as a7,Aqo as a8,R as a9,Jko as aA,nCs as aB,KAs as aC,qAs as aD,s5 as aE,tqt as aF,ZAs as aG,F8s as aH,ote as aI,vbs as aJ,Qvs as aK,Yvs as aL,jws as aM,jvs as aN,TAs as aO,FAs as aP,ake as aQ,Ivs as aR,Evs as aS,OAs as aT,MAs as aU,kws as aV,$Ot as aW,djs as aX,Wvs as aY,Vvs as aZ,Uvs as a_,wvs as aa,ajs as ab,J4 as ac,P as ad,O8s as ae,nvs as af,Mws as ag,XAs as ah,Xws as ai,jjs as aj,oCs as ak,pbs as al,Srn as am,Bjs as an,gbs as ao,hbs as ap,Pjs as aq,Hws as ar,Lp as as,t$e as at,kCt as au,dks as av,vSs as aw,Di as ax,EAs as ay,$As as az,i9s as b,mjs as b$,PAs as b0,BAs as b1,Jws as b2,Ijs as b3,Zws as b4,SAs as b5,GAs as b6,Vi as b7,lVn as b8,evs as b9,Z8s as bA,UAe as bB,Y8s as bC,uks as bD,DAs as bE,q8s as bF,K8s as bG,G8s as bH,SD as bI,$vs as bJ,UCs as bK,QCs as bL,WCs as bM,_Cs as bN,NCs as bO,YCs as bP,Cvs as bQ,VCs as bR,HCs as bS,qCs as bT,Ps as bU,qvs as bV,Avs as bW,iAs as bX,tAs as bY,wjs as bZ,QAs as b_,nwo as ba,iCs as bb,eIi as bc,c_t as bd,Svs as be,vvs as bf,kvs as bg,Lws as bh,In as bi,da as bj,Crn as bk,n5 as bl,Ejs as bm,Obs as bn,Vws as bo,Uws as bp,Zvs as bq,i$e as br,H6s as bs,Ews as bt,oOi as bu,XBt as bv,rCs as bw,wbs as bx,oAs as by,Q8s as bz,Y9s as c,gjs as c$,sAs as c0,aAs as c1,bAs as c2,yAs as c3,vAs as c4,AAs as c5,KCs as c6,ZCs as c7,JAs as c8,tvs as c9,Iks as cA,_ks as cB,gks as cC,rjs as cD,wks as cE,ejs as cF,jks as cG,lt as cH,bks as cI,Mi as cJ,Yks as cK,Cks as cL,kks as cM,Gks as cN,Fks as cO,Rks as cP,zks as cQ,Oks as cR,Nks as cS,Mks as cT,W9s as cU,tws as cV,kAs as cW,jAs as cX,pks as cY,nAs as cZ,Sjs as c_,JCs as ca,XCs as cb,eAs as cc,CAs as cd,wAs as ce,tjs as cf,Xks as cg,Aks as ch,Dks as ci,vks as cj,LAs as ck,xks as cl,qks as cm,$ks as cn,Hks as co,Uks as cp,Vks as cq,yks as cr,Sks as cs,ojs as ct,njs as cu,ijs as cv,Kks as cw,Eks as cx,Jks as cy,Zks as cz,h$e as d,tui as d$,NAs as d0,HAs as d1,_As as d2,z8s as d3,RAs as d4,zAs as d5,Mve as d6,UAs as d7,YAs as d8,Sgs as d9,Kvs as dA,oSs as dB,Jvs as dC,iSs as dD,gSs as dE,X8s as dF,ews as dG,xSs as dH,hSs as dI,pSs as dJ,eSs as dK,mSs as dL,Gvs as dM,Q2a as dN,aks as dO,cks as dP,mks as dQ,hks as dR,sjs as dS,ncs as dT,H8s as dU,pjs as dV,ujs as dW,Ujs as dX,els as dY,BKi as dZ,IAs as d_,O3s as da,K4e as db,Cjs as dc,Ajs as dd,vjs as de,bjs as df,Bws as dg,uKt as dh,dSs as di,cSs as dj,sSs as dk,uSs as dl,lSs as dm,fjs as dn,aSs as dp,rSs as dq,fSs as dr,Xvs as ds,nSs as dt,J8s as du,VAs as dv,cr as dw,Kqr as dx,tSs as dy,krn as dz,Hjs as e,rk as e0,Xen as e1,kjs as e2,G4o as e3,cjs as e4,rAs as e5,hjs as e6,tcs as e7,iks as e8,ASs as e9,CSs as ea,wSs as eb,ebs as ec,tbs as ed,iz as ee,Cbs as ef,Ibs as eg,Yon as eh,Fbs as ei,n7e as ej,xon as ek,fon as el,V8s as em,Z6s as en,X6s as eo,J6s as ep,z6s as eq,G6s as er,Won as es,Ljs as et,Vjs as f,Wt as g,Ym as h,Ojs as i,IT as j,Njs as k,zjs as l,v as m,Rjs as n,$bs as o,ns as p,Mjs as q,$js as r,Fjs as s,wb as t,s$e as u,eRt as v,$rn as w,kbs as x,g$e as y,Lr as z};
|