@zeniai/web-app-ui 5.4.22-dev → 5.4.22-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/assets/{AccountMappingScreen-C5mOiJ2U.js → AccountMappingScreen-CqBmv3P0.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-wHD8fSWU.js → ActualMatchingMatchDetailScreen-C18ULFui.js} +1 -1
  3. package/dist/assets/{AddressRoutes-CVWN9CJv.js → AddressRoutes-DcrBeuZZ.js} +1 -1
  4. package/dist/assets/{AddressScreen-DgUwrml_.js → AddressScreen-BVizi07H.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-yDQ2sphg.js → AiCfoScreen-DocFe0IU.js} +1 -1
  6. package/dist/assets/{AppDrawer-DzYZBC2G.js → AppDrawer-MZfZEsF3.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BcCgse3-.js → BillPayApprovalRoutes-C0prBF5m.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-HAS0-pNc.js → BillPayRoutes-B0bTM1N1.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-DM_jBIuD.js → BusinessVerificationPageScreen-CdT5YCya.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-yrI2CL7M.js → CardsAiCfoScreen-mC2dN25g.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DgtmFgR6.js → ChargeCardRoutes-snm4_qnH.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BLtXgkEd.js → CompanyPassportScreen-CC7A9ebT.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-CuZmfRIp.js → ConnectionAuthScreen-DyBecMUz.js} +1 -1
  14. package/dist/assets/{CustomerOnboardingAuthScreen-BjmJLllh.js → CustomerOnboardingAuthScreen-CzPQ6hPn.js} +1 -1
  15. package/dist/assets/{CustomerOnboardingRoutes-C0b805o-.js → CustomerOnboardingRoutes-Fqi_xQ8j.js} +1 -1
  16. package/dist/assets/{CustomersRoutes-DD5Gx1mW.js → CustomersRoutes-DHtFoA_j.js} +1 -1
  17. package/dist/assets/{DashboardRoutes-C8RZkkYj.js → DashboardRoutes-DIfQCdfV.js} +1 -1
  18. package/dist/assets/{DefaultTenantHome-C6Ygdgwt.js → DefaultTenantHome-BXHCzE_E.js} +1 -1
  19. package/dist/assets/{DomesticWireDetailScreen-BxClNf2J.js → DomesticWireDetailScreen-pNAj50PJ.js} +1 -1
  20. package/dist/assets/{DrawerScreen-BHaectiO.js → DrawerScreen-Ba5DQb-t.js} +1 -1
  21. package/dist/assets/{EntityDetailRoutes-BJzuW7dq.js → EntityDetailRoutes-CRmd3CZq.js} +1 -1
  22. package/dist/assets/{ExpenseAutomationRoutes-BKrWZyYV.js → ExpenseAutomationRoutes-CqjUPpuq.js} +1 -1
  23. package/dist/assets/{FallBackRoute-DuMHkNqk.js → FallBackRoute-Ba8DnNt0.js} +2 -2
  24. package/dist/assets/{FeaturePreviewScreen-DHt0WFS8.js → FeaturePreviewScreen-C15dgqam.js} +1 -1
  25. package/dist/assets/{HubSpotOAuthCallbackScreen-Di0pbhHE.js → HubSpotOAuthCallbackScreen-Bj536BjH.js} +1 -1
  26. package/dist/assets/{InvoicingRoutes-Bsq4ym98.js → InvoicingRoutes-BjTaT2Ks.js} +1 -1
  27. package/dist/assets/{MagicLinkRoutes-DJX5Nm1n.js → MagicLinkRoutes-DzWLI6xy.js} +1 -1
  28. package/dist/assets/{MagicLinkSignInScreen-CD7Pya_j.js → MagicLinkSignInScreen-IWCCJ9ka.js} +1 -1
  29. package/dist/assets/{MobileAppDrawer-BWNb5zLN.js → MobileAppDrawer-CCAbxLE2.js} +1 -1
  30. package/dist/assets/{NotFoundScreen-DXy-BCit.js → NotFoundScreen-uAMK84U0.js} +1 -1
  31. package/dist/assets/{NotificationRoutes-B2xHVaqf.js → NotificationRoutes-k2xOmZgN.js} +1 -1
  32. package/dist/assets/{OAuthConsentScreen-BA2eBLib.js → OAuthConsentScreen-C_U40gXc.js} +1 -1
  33. package/dist/assets/{PandLWithForecastRoutes-Dm5Vnr71.js → PandLWithForecastRoutes-CWaWZqMn.js} +1 -1
  34. package/dist/assets/{PaymentLinkScreen-CndVAq3p.js → PaymentLinkScreen-BSjOZXP5.js} +1 -1
  35. package/dist/assets/{PeopleRoutes-kralZgbz.js → PeopleRoutes-CGvU4cdC.js} +1 -1
  36. package/dist/assets/{PerformanceRoutes-DJhuo9qY.js → PerformanceRoutes-DBkwWedw.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-DroXrkno.js → QBOConnectionScreen-BcfAhM15.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-B2ftFL0O.js → ReimbursementApprovalRoutes-CujO88Gv.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CHTcY28V.js → ReimbursementApprovalRuleDetailScreen-CHtkyq9-.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-CI3m7PHD.js → ReimbursementRoutes-Df3Aw7DR.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-C7A0Ycu_.js → ReportsRoutes-Ul2BNSj_.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-Dkg4zGB8.js → RewardsRoutes-BdM-p5F5.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-ZwdXW6K5.js → ScheduleDetailsPrepaidExpensesScreen-7Oe1wEIe.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-B_WT7FAm.js → ScreenRoutes-2L_gx3e5.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-_XBnyBgG.js → SettingsRoutes-CfzdYXCx.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-D6ssIWb0.js → SetupPagesScreen-DRxKoFqN.js} +1 -1
  47. package/dist/assets/{SignInScreen-H_SOl_FQ.js → SignInScreen-FEFXu8DO.js} +1 -1
  48. package/dist/assets/{SignOutScreen-OFswrnt8.js → SignOutScreen-Cj5aMtR8.js} +1 -1
  49. package/dist/assets/{TaskListScreen-Bmj5V_dR.js → TaskListScreen-CE88Gj9z.js} +1 -1
  50. package/dist/assets/{TaskRoutes-D6cEqDZN.js → TaskRoutes-C4KiUyaQ.js} +1 -1
  51. package/dist/assets/{TransactionDetailRoutes-D-b6zdg4.js → TransactionDetailRoutes-DU02DHgR.js} +1 -1
  52. package/dist/assets/{TransactionDetailScreen-JBKbtouq.js → TransactionDetailScreen-DjsUNuX8.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-THtfycHC.js → TransactionListRoutes-DouUxWQV.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-CgHwdyKd.js → TreasuryRoutes-B34-6WTm.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-jETcYESc.js → VendorsRoutes-l3RUFxeF.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-BpRHCykr.js → WiseConfirmationScreen-CaYZ0YWP.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-C8cr5UMy.js → ZeniAccountRoutes-D866CG7l.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-DAs1_LIC.js → ZeniAccountStatementScreen-DcZ-Zp7O.js} +1 -1
  59. package/dist/assets/{analyticsHelper-CWMk7_rd.js → analyticsHelper-CVZpPd-a.js} +1 -1
  60. package/dist/assets/{getLocaleForTenant-B8EqveGi.js → getLocaleForTenant-dn31VMO2.js} +1 -1
  61. package/dist/assets/{index-CnIO6_IQ.js → index-DtThPd2q.js} +6 -6
  62. package/dist/assets/{routePaths-CV12X_S-.js → routePaths-DXYV831_.js} +1 -1
  63. package/dist/assets/{useActualMatchingMatchDetail-D-Ym3wTm.js → useActualMatchingMatchDetail-D9tjidmB.js} +1 -1
  64. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dqg5VVaq.js → useAiCfoDashboardSuggestedQuestionsChips-piDOTVXb.js} +1 -1
  65. package/dist/assets/{useAskAiCfoHostNavButtonProps-DXFswt7R.js → useAskAiCfoHostNavButtonProps-DSKusWDa.js} +1 -1
  66. package/dist/assets/{useChargeCardPusherEvents-Cq6Y4mMW.js → useChargeCardPusherEvents-fpHDIIMx.js} +1 -1
  67. package/dist/assets/{useEmailConnectResultRefresh-qgk6N8cm.js → useEmailConnectResultRefresh-DAA2Py_6.js} +1 -1
  68. package/dist/assets/{useInitialThreadRequest-DAUsQlCl.js → useInitialThreadRequest-DrEeSZz_.js} +1 -1
  69. package/dist/assets/{useIsCustomersTabEnabled-C6mkabn2.js → useIsCustomersTabEnabled-C9FFBZXp.js} +1 -1
  70. package/dist/assets/{useTaskManagerAccess-Cm5trA3i.js → useTaskManagerAccess-CT25hqtF.js} +1 -1
  71. package/dist/assets/{useTaskManagerPusherEvents-C1gzc-aA.js → useTaskManagerPusherEvents-DKQsgy5z.js} +1 -1
  72. package/dist/assets/{withTransactionSidePanel-D-hDwbdr.js → withTransactionSidePanel-Dbd91mHL.js} +1 -1
  73. package/dist/index.html +1 -1
  74. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-C5DO1jkr.js","assets/sentry-DWNq3t8E.js","assets/core-CbdTrw7T.js","assets/index-naWU0Itr.js","assets/DefaultTenantHome-C6Ygdgwt.js","assets/mui-DNGY4bFU.js","assets/getLocaleForTenant-B8EqveGi.js","assets/analytics-Vgn85Ur_.js","assets/utils-CrhrpmD8.js","assets/AppDrawer-DzYZBC2G.js","assets/InboxNotificationsProvider-CiKEEv6Q.js","assets/useTaskManagerAccess-Cm5trA3i.js","assets/useIsCustomersTabEnabled-C6mkabn2.js","assets/expenseAutomationHelper-CgTsmmCm.js","assets/ScreenRoutes-B_WT7FAm.js","assets/analyticsHelper-CWMk7_rd.js","assets/FallBackRoute-DuMHkNqk.js","assets/ConnectionAuthScreen-CuZmfRIp.js","assets/AccountMappingScreen-C5mOiJ2U.js","assets/MobileAppDrawer-BWNb5zLN.js","assets/QBOConnectionScreen-DroXrkno.js","assets/empty-CjoB5KP4.js","assets/index-LGKtWUy9.js","assets/url-B2x9G6No.js","assets/index-BNFAuGus.js","assets/decodeURIComponentSafe-D7APy95S.js","assets/accountMappingHelper-DSd2V454.js","assets/SignInScreen-H_SOl_FQ.js","assets/useDeviceId-dj9QS4Ga.js","assets/MagicLinkSignInScreen-CD7Pya_j.js","assets/NotFoundScreen-DXy-BCit.js","assets/MagicLinkRoutes-DJX5Nm1n.js","assets/PaymentLinkScreen-CndVAq3p.js","assets/WiseConfirmationScreen-BpRHCykr.js","assets/HubSpotOAuthCallbackScreen-Di0pbhHE.js","assets/CustomerOnboardingAuthScreen-BjmJLllh.js","assets/SignOutScreen-OFswrnt8.js","assets/OAuthConsentScreen-BA2eBLib.js","assets/DashboardRoutes-C8RZkkYj.js","assets/withTransactionSidePanel-D-hDwbdr.js","assets/useAskAiCfoHostNavButtonProps-DXFswt7R.js","assets/TransactionDetailScreen-JBKbtouq.js","assets/useInitialThreadRequest-DAUsQlCl.js","assets/routePaths-CV12X_S-.js","assets/stripSplatSuffix-DP9nmQOu.js","assets/reportTimeframe-DeLnONFM.js","assets/CompanyPassportScreen-BLtXgkEd.js","assets/useAiCfoDashboardSuggestedQuestionsChips-Dqg5VVaq.js","assets/FeaturePreviewScreen-DHt0WFS8.js","assets/BillPayRoutes-HAS0-pNc.js","assets/AddressScreen-DgUwrml_.js","assets/DomesticWireDetailScreen-BxClNf2J.js","assets/BusinessVerificationPageScreen-DM_jBIuD.js","assets/DrawerScreen-BHaectiO.js","assets/SetupPagesScreen-D6ssIWb0.js","assets/BillPayApprovalRoutes-BcCgse3-.js","assets/useEnsureVendorListLoaded-CIShbpK4.js","assets/ReimbursementApprovalRuleDetailScreen-CHTcY28V.js","assets/ReimbursementRoutes-CI3m7PHD.js","assets/ReimbursementApprovalRoutes-B2ftFL0O.js","assets/TransactionListRoutes-THtfycHC.js","assets/ZeniAccountStatementScreen-DAs1_LIC.js","assets/SettingsRoutes-_XBnyBgG.js","assets/useEmailConnectResultRefresh-qgk6N8cm.js","assets/ReportsRoutes-C7A0Ycu_.js","assets/ChargeCardRoutes-DgtmFgR6.js","assets/useChargeCardPusherEvents-Cq6Y4mMW.js","assets/PeopleRoutes-kralZgbz.js","assets/ExpenseAutomationRoutes-BKrWZyYV.js","assets/useActualMatchingMatchDetail-D-Ym3wTm.js","assets/ScheduleDetailsPrepaidExpensesScreen-ZwdXW6K5.js","assets/pathToGoBack-CJCquoqC.js","assets/TreasuryRoutes-CgHwdyKd.js","assets/VendorsRoutes-jETcYESc.js","assets/ZeniAccountRoutes-C8cr5UMy.js","assets/TaskListScreen-Bmj5V_dR.js","assets/useTaskManagerPusherEvents-C1gzc-aA.js","assets/TaskRoutes-D6cEqDZN.js","assets/PandLWithForecastRoutes-Dm5Vnr71.js"])))=>i.map(i=>d[i]);
2
- import{R as B,b as T5e,a as m,r as tm,g as nAt,p as mae,d as C$e,f as iAt,s as L5e,i as nan,w as ian,j as oan,S as ran,k as aan,l as san,m as lan,n as can,o as U_,q as dan,t as uan,u as pan}from"./sentry-DWNq3t8E.js";import{_ as Wp,a as Kz,b as lte,C as Zz,u as oAt,T as han,c as man,d as gan,L as fan,e as A$e,f as xan,g as yan,h as rAt,i as ban,k as wan,l as Can,m as Aan,j as on}from"./liveblocks-BLpmr1Pv.js";import{f as aAt,r as $a,P as zl,R as van,O as San,N as sAt,u as Pp,g as Hg,h as cte,i as lAt,j as _r,m as cwe,s as JK,k as cAt,l as kan,n as jan,o as q1,p as $an,B as Ean}from"./core-CbdTrw7T.js";import{L as v$e,bl as Ian,bm as Jz,bn as Dan,bo as Tan,bp as As,bq as dAt,br as S$e,bs as Q3,bt as Lan,bu as LT,bv as b7,bw as qt,bx as Ban,by as Pan,bz as dte,bA as Man,bB as V1,bC as zp,bD as FR,bE as O9,bF as hn,bG as uAt,bH as M1,bI as ka,bJ as ED,bK as pAt,bL as hAt,bM as dwe,bN as O4,bO as Vu,bP as Ry,bQ as Oan,bR as $c,bS as Fan,bT as BT,bU as Ms,bV as Ran,bW as zan,bX as XK,bY as Nan,bZ as _an,b_ as eZ,b$ as Van,c0 as Han,c1 as ute,c2 as pte,c3 as hte,c4 as uwe,c5 as qv,c6 as mte,c7 as Kv,c8 as zy,c9 as Xz,ca as ID,cb as DD,cc as Zv,cd as gte,ce as vv,cf as Uan,cg as k$e,ch as Wan,ci as Qan,cj as Yan,ck as Gan,cl as mAt,cm as qan,cn as Kan,co as Aw,cp as j$e,cq as Zan,cr as Jan,cs as Xan,ct as LS,cu as BS,cv as gAt,cw as fAt,cx as xAt,cy as pwe,cz as esn,cA as yAt,cB as tsn,cC as tZ,cD as bAt,cE as nsn,cF as wAt,cG as isn,cH as pO,cI as osn,cJ as rsn,cK as $$e,cL as asn,cM as hwe,cN as mwe,cO as ssn,cP as lsn,cQ as csn,cR as W_,cS as TD,cT as Q_,cU as dsn,cV as usn,cW as CAt,cX as psn,cY as hsn,cZ as msn,c_ as gsn,c$ as fsn,d0 as AAt,d1 as xsn,d2 as iu,d3 as Vl,d4 as fte,d5 as ysn,d6 as bsn,d7 as $1,d8 as vAt,d9 as wsn,da as RR,db as Sv,dc as ds,dd as E$e,de as Csn,df as Asn,dg as vsn,dh as SAt,di as gwe,dj as Y_,dk as I$e,dl as kAt,dm as Ssn,dn as ksn,dp as jsn,dq as $sn,dr as Esn,ds as gg,dt as Isn,du as Dsn,dv as Tsn,dw as G_,dx as Jv,dy as xte,dz as Lsn,dA as Bsn,dB as PS,dC as O1,dD as jAt,dE as $At,dF as Psn,dG as Msn,dH as EAt,dI as Osn,dJ as Fsn,dK as Rsn,dL as zsn,dM as PT,dN as Nsn,dO as D$e,dP as _sn,dQ as Vsn,dR as Hsn,dS as Usn,dT as Wsn,dU as Qsn,dV as Ysn,dW as Gsn,dX as IAt,dY as DAt,dZ as TAt,d_ as LAt,d$ as BAt,e0 as F9,e1 as PAt,e2 as qsn,_ as ya,e3 as MT,e4 as Ksn,e5 as T$e,e6 as yte,e7 as Zsn,e8 as Jsn,e9 as MAt,ea as Xsn,eb as gF,ec as eln,ed as fwe,ee as tln,ef as nln,eg as iln,eh as OAt,ei as dm,ej as Ny,ek as FAt,el as RAt,em as oln,en as zAt,eo as B5e,ep as rln,eq as xwe,er as ywe,es as bq,et as aln,eu as sln,ev as lln,ew as cln,ex as dln,ey as NAt,ez as _At,eA as uln,eB as pln,eC as VAt,eD as fF,eE as xF,eF as HAt,eG as hln,eH as mln,eI as bwe,eJ as gln,eK as fln,eL as xln,eM as wwe,eN as UAt,eO as WAt,eP as Cwe,eQ as OT,eR as bte,eS as Awe,eT as vwe,eU as Swe,eV as kwe,eW as yln,eX as bln,eY as QAt,eZ as L$e,e_ as wln,e$ as Cln,f0 as F1,f1 as Aln,f2 as wte,f3 as YAt,f4 as GAt,f5 as vln,f6 as jwe,f7 as $we,f8 as Sln,f9 as kln,fa as jln,fb as $ln,fc as Eln,fd as Iln,fe as Dg,ff as B$e,fg as qAt,fh as Dln,fi as Tln,fj as Lln,fk as KAt,fl as ZAt,fm as JAt,fn as XAt,fo as evt,fp as tvt,fq as Bln,fr as LD,fs as Pln,ft as Mln,fu as Oln,fv as Fln,fw as nvt,fx as ivt,fy as P$e,fz as M$e,fA as Rln,fB as zln,fC as O$e,fD as F$e,fE as Nln,fF as _ln,fG as P5e,fH as Vln,v as Hln,fI as Cte,fJ as Np,fK as ovt,fL as rvt,fM as Uln,fN as Wln,fO as R$e,fP as Qln,fQ as Yln,fR as Gln,fS as qln,fT as Kln,fU as Zln,fV as Jln,fW as Xln,fX as ecn,fY as tcn,fZ as ncn,f_ as icn,f$ as ocn,g0 as rcn,g1 as acn,g2 as scn,g3 as lcn,g4 as ccn,g5 as dcn,g6 as z$e,g7 as ucn,g8 as pcn,g9 as hcn,ga as mcn,gb as gcn,gc as avt,gd as Ate,ge as Ewe,gf as svt,gg as fcn,gh as xcn,gi as ycn,gj as lvt,gk as N$e,gl as cvt,gm as dvt,gn as bcn,go as uvt,gp as pvt,gq as wcn,gr as Ccn,gs as M5e,gt as Acn,gu as yF,gv as vcn,gw as Scn,gx as kcn,gy as jcn,gz as $cn,gA as Ecn,gB as Icn,gC as Dcn,gD as Tcn,gE as Lcn,gF as Bcn,gG as Pcn,gH as hvt,gI as Mcn,gJ as Ocn,gK as Fcn,gL as _$e,gM as Rcn,gN as zcn,gO as Ncn,gP as _cn,gQ as Vcn,gR as Hcn,gS as Ucn,gT as mvt,gU as gvt,gV as Wcn,gW as fvt,gX as Qcn,gY as Ycn,gZ as O5e,g_ as Gcn,g$ as qcn,h0 as Kcn,h1 as Zcn,h2 as Jcn,h3 as Xcn,h4 as V$e,h5 as edn,h6 as tdn,h7 as ndn}from"./zeni-epic-state-C5DO1jkr.js";import{j as Mo,c as Ie,k as hi,a as H$e,b as xvt,C as yvt,T as idn,M as odn,n as a,u as Pe,D as Xc,d as bvt,e as si,f as nZ,F as rdn,g as F5e,P as Y3,G as vte,S as Ste,h as adn,i as sdn,A as U$e,R as ldn,l as zR,m as cdn,o as ddn,s as MS,p as udn}from"./mui-DNGY4bFU.js";import{r as pdn,m as sg}from"./analytics-Vgn85Ur_.js";import{u as W1}from"./plaid-DhfTjhua.js";import{D as Iwe,H as kte,g as hdn,O as mdn,S as gdn,T as fdn,u as Dwe,a as Twe,b as xdn}from"./dnd-DuiAlI7w.js";import{l as Lwe}from"./stripe-cKAAJElX.js";import{L as _I}from"./lottie-Lb1ftKY1.js";import{r as ed}from"./lexical-B-vxEaRQ.js";import{D as R5e,P as z5e,_ as wvt,a as Cvt}from"./pdf-B1uD4Ovv.js";import{R as Xv,G as R9,H as gl,X as Ra,Y as ja,I as El,J as z9,K as Fg,L as kv,M as Qc,N as Rg,O as Avt,P as ydn,Q as bdn,S as jte,U as wdn,V as Bwe,W as Cdn,Z as Adn,_ as vdn,d as Sdn}from"./recharts-CTh_JhT_.js";import{r as kdn,n as W$e}from"./utils-CrhrpmD8.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]="cb8d4ab5-9f01-4844-9bb6-108dc0c58249",e._sentryDebugIdIdentifier="sentry-dbid-cb8d4ab5-9f01-4844-9bb6-108dc0c58249")}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 Q$e,q_={},jdn=(function(){if(Q$e)return q_;Q$e=1;var e=aAt();return q_.createRoot=e.createRoot,q_.hydrateRoot=e.hydrateRoot,q_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof T5e<"u"?T5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y$e,G$e,q$e={exports:{}},_L={};function vvt(){return G$e||(G$e=1,q$e.exports=(function(){if(Y$e)return _L;Y$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 _L.Fragment=i,_L.jsx=c,_L.jsxs=c,_L})()),q$e.exports}var t=vvt();const $dn=m.createContext(null),gae={didCatch:!1,error:null};let Edn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=gae}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(gae)}}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(gae))}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($dn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var K$e,Z$e,J$e,fae,X$e,eEe,tEe,nEe,iEe,xae={exports:{}};function Idn(){return K$e||(K$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(xae.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,Ca=ut.length;for(ht=0;ht<Ca;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-C5DO1jkr.js","assets/sentry-DWNq3t8E.js","assets/core-CbdTrw7T.js","assets/index-naWU0Itr.js","assets/DefaultTenantHome-BXHCzE_E.js","assets/mui-DNGY4bFU.js","assets/getLocaleForTenant-dn31VMO2.js","assets/analytics-Vgn85Ur_.js","assets/utils-CrhrpmD8.js","assets/AppDrawer-MZfZEsF3.js","assets/InboxNotificationsProvider-CiKEEv6Q.js","assets/useTaskManagerAccess-CT25hqtF.js","assets/useIsCustomersTabEnabled-C9FFBZXp.js","assets/expenseAutomationHelper-CgTsmmCm.js","assets/ScreenRoutes-2L_gx3e5.js","assets/analyticsHelper-CVZpPd-a.js","assets/FallBackRoute-Ba8DnNt0.js","assets/ConnectionAuthScreen-DyBecMUz.js","assets/AccountMappingScreen-CqBmv3P0.js","assets/MobileAppDrawer-CCAbxLE2.js","assets/QBOConnectionScreen-BcfAhM15.js","assets/empty-CjoB5KP4.js","assets/index-LGKtWUy9.js","assets/url-B2x9G6No.js","assets/index-BNFAuGus.js","assets/decodeURIComponentSafe-D7APy95S.js","assets/accountMappingHelper-DSd2V454.js","assets/SignInScreen-FEFXu8DO.js","assets/useDeviceId-dj9QS4Ga.js","assets/MagicLinkSignInScreen-IWCCJ9ka.js","assets/NotFoundScreen-uAMK84U0.js","assets/MagicLinkRoutes-DzWLI6xy.js","assets/PaymentLinkScreen-BSjOZXP5.js","assets/WiseConfirmationScreen-CaYZ0YWP.js","assets/HubSpotOAuthCallbackScreen-Bj536BjH.js","assets/CustomerOnboardingAuthScreen-CzPQ6hPn.js","assets/SignOutScreen-Cj5aMtR8.js","assets/OAuthConsentScreen-C_U40gXc.js","assets/DashboardRoutes-DIfQCdfV.js","assets/withTransactionSidePanel-Dbd91mHL.js","assets/useAskAiCfoHostNavButtonProps-DSKusWDa.js","assets/TransactionDetailScreen-DjsUNuX8.js","assets/useInitialThreadRequest-DrEeSZz_.js","assets/routePaths-DXYV831_.js","assets/stripSplatSuffix-DP9nmQOu.js","assets/reportTimeframe-DeLnONFM.js","assets/CompanyPassportScreen-CC7A9ebT.js","assets/useAiCfoDashboardSuggestedQuestionsChips-piDOTVXb.js","assets/FeaturePreviewScreen-C15dgqam.js","assets/BillPayRoutes-B0bTM1N1.js","assets/AddressScreen-BVizi07H.js","assets/DomesticWireDetailScreen-pNAj50PJ.js","assets/BusinessVerificationPageScreen-CdT5YCya.js","assets/DrawerScreen-Ba5DQb-t.js","assets/SetupPagesScreen-DRxKoFqN.js","assets/BillPayApprovalRoutes-C0prBF5m.js","assets/useEnsureVendorListLoaded-CIShbpK4.js","assets/ReimbursementApprovalRuleDetailScreen-CHtkyq9-.js","assets/ReimbursementRoutes-Df3Aw7DR.js","assets/ReimbursementApprovalRoutes-CujO88Gv.js","assets/TransactionListRoutes-DouUxWQV.js","assets/ZeniAccountStatementScreen-DcZ-Zp7O.js","assets/SettingsRoutes-CfzdYXCx.js","assets/useEmailConnectResultRefresh-DAA2Py_6.js","assets/ReportsRoutes-Ul2BNSj_.js","assets/ChargeCardRoutes-snm4_qnH.js","assets/useChargeCardPusherEvents-fpHDIIMx.js","assets/PeopleRoutes-CGvU4cdC.js","assets/ExpenseAutomationRoutes-CqjUPpuq.js","assets/useActualMatchingMatchDetail-D9tjidmB.js","assets/ScheduleDetailsPrepaidExpensesScreen-7Oe1wEIe.js","assets/pathToGoBack-CJCquoqC.js","assets/TreasuryRoutes-B34-6WTm.js","assets/VendorsRoutes-l3RUFxeF.js","assets/ZeniAccountRoutes-D866CG7l.js","assets/TaskListScreen-CE88Gj9z.js","assets/useTaskManagerPusherEvents-DKQsgy5z.js","assets/TaskRoutes-C4KiUyaQ.js","assets/PandLWithForecastRoutes-CWaWZqMn.js"])))=>i.map(i=>d[i]);
2
+ import{R as B,b as T5e,a as m,r as tm,g as nAt,p as mae,d as C$e,f as iAt,s as L5e,i as nan,w as ian,j as oan,S as ran,k as aan,l as san,m as lan,n as can,o as U_,q as dan,t as uan,u as pan}from"./sentry-DWNq3t8E.js";import{_ as Wp,a as Kz,b as lte,C as Zz,u as oAt,T as han,c as man,d as gan,L as fan,e as A$e,f as xan,g as yan,h as rAt,i as ban,k as wan,l as Can,m as Aan,j as on}from"./liveblocks-BLpmr1Pv.js";import{f as aAt,r as $a,P as zl,R as van,O as San,N as sAt,u as Pp,g as Hg,h as cte,i as lAt,j as _r,m as cwe,s as JK,k as cAt,l as kan,n as jan,o as q1,p as $an,B as Ean}from"./core-CbdTrw7T.js";import{L as v$e,bl as Ian,bm as Jz,bn as Dan,bo as Tan,bp as As,bq as dAt,br as S$e,bs as Q3,bt as Lan,bu as LT,bv as b7,bw as qt,bx as Ban,by as Pan,bz as dte,bA as Man,bB as V1,bC as zp,bD as FR,bE as O9,bF as hn,bG as uAt,bH as M1,bI as ka,bJ as ED,bK as pAt,bL as hAt,bM as dwe,bN as O4,bO as Vu,bP as Ry,bQ as Oan,bR as $c,bS as Fan,bT as BT,bU as Ms,bV as Ran,bW as zan,bX as XK,bY as Nan,bZ as _an,b_ as eZ,b$ as Van,c0 as Han,c1 as ute,c2 as pte,c3 as hte,c4 as uwe,c5 as qv,c6 as mte,c7 as Kv,c8 as zy,c9 as Xz,ca as ID,cb as DD,cc as Zv,cd as gte,ce as vv,cf as Uan,cg as k$e,ch as Wan,ci as Qan,cj as Yan,ck as Gan,cl as mAt,cm as qan,cn as Kan,co as Aw,cp as j$e,cq as Zan,cr as Jan,cs as Xan,ct as LS,cu as BS,cv as gAt,cw as fAt,cx as xAt,cy as pwe,cz as esn,cA as yAt,cB as tsn,cC as tZ,cD as bAt,cE as nsn,cF as wAt,cG as isn,cH as pO,cI as osn,cJ as rsn,cK as $$e,cL as asn,cM as hwe,cN as mwe,cO as ssn,cP as lsn,cQ as csn,cR as W_,cS as TD,cT as Q_,cU as dsn,cV as usn,cW as CAt,cX as psn,cY as hsn,cZ as msn,c_ as gsn,c$ as fsn,d0 as AAt,d1 as xsn,d2 as iu,d3 as Vl,d4 as fte,d5 as ysn,d6 as bsn,d7 as $1,d8 as vAt,d9 as wsn,da as RR,db as Sv,dc as ds,dd as E$e,de as Csn,df as Asn,dg as vsn,dh as SAt,di as gwe,dj as Y_,dk as I$e,dl as kAt,dm as Ssn,dn as ksn,dp as jsn,dq as $sn,dr as Esn,ds as gg,dt as Isn,du as Dsn,dv as Tsn,dw as G_,dx as Jv,dy as xte,dz as Lsn,dA as Bsn,dB as PS,dC as O1,dD as jAt,dE as $At,dF as Psn,dG as Msn,dH as EAt,dI as Osn,dJ as Fsn,dK as Rsn,dL as zsn,dM as PT,dN as Nsn,dO as D$e,dP as _sn,dQ as Vsn,dR as Hsn,dS as Usn,dT as Wsn,dU as Qsn,dV as Ysn,dW as Gsn,dX as IAt,dY as DAt,dZ as TAt,d_ as LAt,d$ as BAt,e0 as F9,e1 as PAt,e2 as qsn,_ as ya,e3 as MT,e4 as Ksn,e5 as T$e,e6 as yte,e7 as Zsn,e8 as Jsn,e9 as MAt,ea as Xsn,eb as gF,ec as eln,ed as fwe,ee as tln,ef as nln,eg as iln,eh as OAt,ei as dm,ej as Ny,ek as FAt,el as RAt,em as oln,en as zAt,eo as B5e,ep as rln,eq as xwe,er as ywe,es as bq,et as aln,eu as sln,ev as lln,ew as cln,ex as dln,ey as NAt,ez as _At,eA as uln,eB as pln,eC as VAt,eD as fF,eE as xF,eF as HAt,eG as hln,eH as mln,eI as bwe,eJ as gln,eK as fln,eL as xln,eM as wwe,eN as UAt,eO as WAt,eP as Cwe,eQ as OT,eR as bte,eS as Awe,eT as vwe,eU as Swe,eV as kwe,eW as yln,eX as bln,eY as QAt,eZ as L$e,e_ as wln,e$ as Cln,f0 as F1,f1 as Aln,f2 as wte,f3 as YAt,f4 as GAt,f5 as vln,f6 as jwe,f7 as $we,f8 as Sln,f9 as kln,fa as jln,fb as $ln,fc as Eln,fd as Iln,fe as Dg,ff as B$e,fg as qAt,fh as Dln,fi as Tln,fj as Lln,fk as KAt,fl as ZAt,fm as JAt,fn as XAt,fo as evt,fp as tvt,fq as Bln,fr as LD,fs as Pln,ft as Mln,fu as Oln,fv as Fln,fw as nvt,fx as ivt,fy as P$e,fz as M$e,fA as Rln,fB as zln,fC as O$e,fD as F$e,fE as Nln,fF as _ln,fG as P5e,fH as Vln,v as Hln,fI as Cte,fJ as Np,fK as ovt,fL as rvt,fM as Uln,fN as Wln,fO as R$e,fP as Qln,fQ as Yln,fR as Gln,fS as qln,fT as Kln,fU as Zln,fV as Jln,fW as Xln,fX as ecn,fY as tcn,fZ as ncn,f_ as icn,f$ as ocn,g0 as rcn,g1 as acn,g2 as scn,g3 as lcn,g4 as ccn,g5 as dcn,g6 as z$e,g7 as ucn,g8 as pcn,g9 as hcn,ga as mcn,gb as gcn,gc as avt,gd as Ate,ge as Ewe,gf as svt,gg as fcn,gh as xcn,gi as ycn,gj as lvt,gk as N$e,gl as cvt,gm as dvt,gn as bcn,go as uvt,gp as pvt,gq as wcn,gr as Ccn,gs as M5e,gt as Acn,gu as yF,gv as vcn,gw as Scn,gx as kcn,gy as jcn,gz as $cn,gA as Ecn,gB as Icn,gC as Dcn,gD as Tcn,gE as Lcn,gF as Bcn,gG as Pcn,gH as hvt,gI as Mcn,gJ as Ocn,gK as Fcn,gL as _$e,gM as Rcn,gN as zcn,gO as Ncn,gP as _cn,gQ as Vcn,gR as Hcn,gS as Ucn,gT as mvt,gU as gvt,gV as Wcn,gW as fvt,gX as Qcn,gY as Ycn,gZ as O5e,g_ as Gcn,g$ as qcn,h0 as Kcn,h1 as Zcn,h2 as Jcn,h3 as Xcn,h4 as V$e,h5 as edn,h6 as tdn,h7 as ndn}from"./zeni-epic-state-C5DO1jkr.js";import{j as Mo,c as Ie,k as hi,a as H$e,b as xvt,C as yvt,T as idn,M as odn,n as a,u as Pe,D as Xc,d as bvt,e as si,f as nZ,F as rdn,g as F5e,P as Y3,G as vte,S as Ste,h as adn,i as sdn,A as U$e,R as ldn,l as zR,m as cdn,o as ddn,s as MS,p as udn}from"./mui-DNGY4bFU.js";import{r as pdn,m as sg}from"./analytics-Vgn85Ur_.js";import{u as W1}from"./plaid-DhfTjhua.js";import{D as Iwe,H as kte,g as hdn,O as mdn,S as gdn,T as fdn,u as Dwe,a as Twe,b as xdn}from"./dnd-DuiAlI7w.js";import{l as Lwe}from"./stripe-cKAAJElX.js";import{L as _I}from"./lottie-Lb1ftKY1.js";import{r as ed}from"./lexical-B-vxEaRQ.js";import{D as R5e,P as z5e,_ as wvt,a as Cvt}from"./pdf-B1uD4Ovv.js";import{R as Xv,G as R9,H as gl,X as Ra,Y as ja,I as El,J as z9,K as Fg,L as kv,M as Qc,N as Rg,O as Avt,P as ydn,Q as bdn,S as jte,U as wdn,V as Bwe,W as Cdn,Z as Adn,_ as vdn,d as Sdn}from"./recharts-CTh_JhT_.js";import{r as kdn,n as W$e}from"./utils-CrhrpmD8.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]="1530033c-b7bd-4e43-8725-7436ef2a031f",e._sentryDebugIdIdentifier="sentry-dbid-1530033c-b7bd-4e43-8725-7436ef2a031f")}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 Q$e,q_={},jdn=(function(){if(Q$e)return q_;Q$e=1;var e=aAt();return q_.createRoot=e.createRoot,q_.hydrateRoot=e.hydrateRoot,q_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof T5e<"u"?T5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y$e,G$e,q$e={exports:{}},_L={};function vvt(){return G$e||(G$e=1,q$e.exports=(function(){if(Y$e)return _L;Y$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 _L.Fragment=i,_L.jsx=c,_L.jsxs=c,_L})()),q$e.exports}var t=vvt();const $dn=m.createContext(null),gae={didCatch:!1,error:null};let Edn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=gae}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(gae)}}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(gae))}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($dn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var K$e,Z$e,J$e,fae,X$e,eEe,tEe,nEe,iEe,xae={exports:{}};function Idn(){return K$e||(K$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(xae.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,Ca=ut.length;for(ht=0;ht<Ca;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,Ca=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]+Ca*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,Ca,Jo,xl,fa,es,$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]=Ca,this.props[7]=Jo,this.props[8]=xl,this.props[9]=fa,this.props[10]=es,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,Ca,Jo,xl,fa,es,$0,b2,E0,I0,th){var dr=this.props;if(ze===1&&ht===0&&wt===0&&fi===0&&Zo===0&&Po===1&&Ca===0&&Jo===0&&xl===0&&fa===0&&es===1&&$0===0)return dr[12]=dr[12]*ze+dr[15]*b2,dr[13]=dr[13]*Po+dr[15]*E0,dr[14]=dr[14]*es+dr[15]*I0,dr[15]*=th,this._identityCalculated=!1,this;var Bk=dr[0],Pk=dr[1],ww=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],Cw=dr[11],N_=dr[12],__=dr[13],V_=dr[14],H_=dr[15];return dr[0]=Bk*ze+Pk*Zo+ww*xl+Yf*b2,dr[1]=Bk*ht+Pk*Po+ww*fa+Yf*E0,dr[2]=Bk*wt+Pk*Ca+ww*es+Yf*I0,dr[3]=Bk*fi+Pk*Jo+ww*$0+Yf*th,dr[4]=y5*ze+nh*Zo+U7*xl+W7*b2,dr[5]=y5*ht+nh*Po+U7*fa+W7*E0,dr[6]=y5*wt+nh*Ca+U7*es+W7*I0,dr[7]=y5*fi+nh*Jo+U7*$0+W7*th,dr[8]=w2*ze+Q7*Zo+C2*xl+Cw*b2,dr[9]=w2*ht+Q7*Po+C2*fa+Cw*E0,dr[10]=w2*wt+Q7*Ca+C2*es+Cw*I0,dr[11]=w2*fi+Q7*Jo+C2*$0+Cw*th,dr[12]=N_*ze+__*Zo+V_*xl+H_*b2,dr[13]=N_*ht+__*Po+V_*fa+H_*E0,dr[14]=N_*wt+__*Ca+V_*es+H_*I0,dr[15]=N_*fi+__*Jo+V_*$0+H_*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,Ca=-(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]=Ca,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],Ca=this.props[4],Jo=this.props[5],xl=this.props[12],fa=this.props[13];fi[0]=ze[0]*Zo+ze[1]*Ca+xl,fi[1]=ze[0]*Po+ze[1]*Jo+fa,fi[2]=ht[0]*Zo+ht[1]*Ca+xl,fi[3]=ht[0]*Po+ht[1]*Jo+fa,fi[4]=wt[0]*Zo+wt[1]*Ca+xl,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 Da(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=Da(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(Ca){return ht==="svg"?(ze.textContent=Ca,ze.getComputedTextLength()):ze.measureText(Ca).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(es){es.helper=Kt(es),es.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,Ca=!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&&(Ca=!1),Ca){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&&(Ca=!1);if(Ca){var xl=h("link");xl.setAttribute("f-forigin",ht[ze].fOrigin),xl.setAttribute("f-origin",ht[ze].origin),xl.type="text/css",xl.rel="stylesheet",xl.href=ht[ze].fPath,document.body.appendChild(xl)}}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&&(Ca=!1);if(Ca){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 sl(){}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(){},sl.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()},sl.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)}},sl.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},sl.prototype.createAudio=function(Y){return new ga(Y,this.globalData,this)},sl.prototype.createFootage=function(Y){return new rr(Y,this.globalData,this)},sl.prototype.buildAllItems=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)this.buildItem(Y);this.checkPendingElements()},sl.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}},sl.prototype.setProjectInterface=function(Y){this.globalData.projectInterface=Y},sl.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},sl.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},sl.prototype.addPendingElement=function(Y){this.pendingElements.push(Y)},sl.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)}},sl.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},sl.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)},sl.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 FL={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(FL.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})(),RL=(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})(),zL={},D_="filter_result_";function Tk(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;zL[Ye]&&(pe=new zL[Ye].effect(Re,Y.effectsManager.effectElements[X],Y,D_+Qe,xe),xe=D_+Qe,zL[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 fw(){}function V7(){}function g5(){}function xw(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 lae(Y,X){this.elem=Y,this.pos=X}function T_(){}Tk.prototype.renderFrame=function(Y){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(Y)},Tk.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},fw.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 Tk(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),!RL.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),RL.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,fw,V7,Ai,g5],xw),xw.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)},xw.prototype.sourceRectAtTime=function(){return this.sourceRect},T_.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 lae(Y,X))},prepareFrame:function(Y){this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange)}};var L_={1:"butt",2:"round",3:"square"},B_={1:"miter",2:"round",3:"bevel"};function P_(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 M_(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 Lk(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 O_(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 Lk(Y,X.d||{},"svg",this),this.c=Ze.getProp(Y,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function F_(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 R_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.style=pe}function yw(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 z_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.w=Ze.getProp(Y,X.w,0,null,this),this.d=new Lk(Y,X.d||{},"svg",this),this.initGradientData(Y,X,pe),this._isAnimated=!!this._isAnimated}function cae(){this.it=[],this.prevViewData=[],this.gr=se("g")}function dae(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}P_.prototype.setAsAnimated=function(){this._isAnimated=!0},M_.prototype.reset=function(){this.d="",this._mdf=!1},Lk.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],Lk),g([Ot],O_),g([Ot],F_),g([Ot],R_),yw.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},yw.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},yw.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],yw),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 yw(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",L_[Y.lc||2]),Re.setAttribute("stroke-linejoin",B_[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],z_);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},kr=(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 id(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,fw,T_,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 M_(Y,X),Ae=xe.pElem;return Y.ty==="st"?pe=new O_(this,Y,xe):Y.ty==="fl"?pe=new F_(this,Y,xe):Y.ty==="gf"||Y.ty==="gs"?(pe=new(Y.ty==="gf"?k0:z_)(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 R_(this,Y,xe)),(Y.ty==="st"||Y.ty==="gs")&&(Ae.setAttribute("stroke-linecap",L_[Y.lc||2]),Ae.setAttribute("stroke-linejoin",B_[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 cae;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 dae(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 P_(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:kr.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},id.prototype.defaultBoxWidth=[0,0],id.prototype.copyData=function(Y,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(Y[pe]=X[pe]);return Y},id.prototype.setCurrentData=function(Y){Y.__complete||this.completeTextData(Y),this.currentData=Y,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},id.prototype.searchProperty=function(){return this.searchKeyframes()},id.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},id.prototype.addEffect=function(Y){this.effectsSequence.push(Y),this.elem.addDynamicProperty(this)},id.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}},id.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},id.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},id.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},id.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)},id.prototype.recalculate=function(Y){var X=this.data.d.k[Y].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},id.prototype.canResizeFont=function(Y){this.canResize=Y,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},id.prototype.setMinimumFontSize=function(Y){this.minimumFontSize=Math.floor(Y)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var bw=(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 uae(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=bw.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 uae(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,Ca,Jo,xl,fa,es,$0,b2,E0,I0,th=-1,dr=Qe,Bk=pt,Pk=et,ww=-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(),Ca=1,li[Ae].n)pe=0,xe+=Y.yOffset,xe+=ht?1:0,Qe=dr,ht=!1,this._hasMaskedPath&&(et=Pk,At=(Tt=Kt[pt=Bk].points)[et-1],en=(Ye=Tt[et]).partialLength,zt=0),Yf="",E0="",$0="",I0="",y5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ww!==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}ww=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&&(xl=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?Ca+=(Vt.o.v*wt[0]-Ca)*wt[0]:Ca+=(Vt.o.v*wt-Ca)*wt),Y.strokeWidthAnim&&Vt.sw.propType&&(wt.length?xl+=Vt.sw.v*wt[0]:xl+=Vt.sw.v*wt),Y.strokeColorAnim&&Vt.sc.propType)for(es=0;es<3;es+=1)wt.length?Jo[es]+=(Vt.sc.v[es]-Jo[es])*wt[0]:Jo[es]+=(Vt.sc.v[es]-Jo[es])*wt;if(Y.fillColorAnim&&Y.fc){if(Vt.fc.propType)for(es=0;es<3;es+=1)wt.length?fa[es]+=(Vt.fc.v[es]-fa[es])*wt[0]:fa[es]+=(Vt.fc.v[es]-fa[es])*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=xl<0?0:xl),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 Cw=180*Math.atan(Ne)/Math.PI;Ye.point[0]<At.point[0]&&(Cw+=180),Nt.rotate(-Cw*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=Ca}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 id(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 tan={shapes:[]};function f5(Y,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(Y,X,pe)}function pae(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 NL(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 hae(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,fw,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 NL(en.data,this.globalData,this);else{var qe=tan;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([xw],pae),pae.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([sl],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 xw(Y,this.globalData,this)},Md.prototype.createSolid=function(Y){return new pae(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,fw],NL),NL.prototype.createComp=function(Y){return new NL(Y,this.globalData,this)},g([Md],hae),hae.prototype.createComp=function(Y){return new NL(Y,this.globalData,this)},me("svg",hae),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,xae.exports)),xae.exports}function Ddn(){if(X$e)return fae;function e(n){return n instanceof v$e?v$e.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return X$e=1,fae=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}},fae}var Tdn=(function(){if(iEe)return nEe;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}iEe=1;var n=e(Idn()),i=B,r=e(i),s=e((J$e||(J$e=1,Z$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}),Z$e)),l=e((tEe||(tEe=1,eEe=Ddn()()),eEe));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 nEe=h})();const Hs=pr(Tdn);var oEe,rEe,yae,aEe,bae,sEe,wae,lEe,Cae,cEe,Aae,dEe,vae,uEe,pEe,hEe,mEe,gEe,fEe,xEe,yEe,bEe,wEe,CEe,AEe,vEe,SEe,kEe,jEe,$Ee,Sae,EEe,kae,IEe,jae,DEe,$ae,TEe,Eae,LEe,BEe,PEe,Iae,MEe,Dae,OEe,Tae,FEe,REe,zEe,Lae,NEe,_Ee,VEe,HEe,UEe,WEe,QEe,YEe,GEe,Bae,qEe,Pae,KEe,Mae,ZEe,JEe,XEe,eIe,tIe,nIe,iIe,Oae,oIe,Fae,rIe,Rae,aIe,zae,sIe,Nae,lIe,cIe,dIe,_ae,uIe,pIe,hIe,mIe,gIe,fIe,xIe,yIe,bIe,wIe,CIe,Vae,AIe,Hae,vIe,SIe,kIe,jIe,$Ie,Uae,EIe,Wae,IIe,Qae,DIe,TIe,LIe,Yae,BIe,Gae,PIe,MIe,OIe,FIe,RIe,qae,zIe,Kae,NIe,Zae,_Ie,VIe,HIe;function $te(){return aEe||(aEe=1,yae=function(e,n){return e===n||e!=e&&n!=n}),yae}function K_(){if(sEe)return bae;sEe=1;var e=$te();return bae=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},bae}function wq(){if(hEe)return pEe;hEe=1;var e=rEe?oEe:(rEe=1,oEe=function(){this.__data__=[],this.size=0}),n=(function(){if(lEe)return wae;lEe=1;var c=K_(),d=Array.prototype.splice;return wae=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))},wae})(),i=(function(){if(cEe)return Cae;cEe=1;var c=K_();return Cae=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},Cae})(),r=(function(){if(dEe)return Aae;dEe=1;var c=K_();return Aae=function(d){return c(this.__data__,d)>-1},Aae})(),s=(function(){if(uEe)return vae;uEe=1;var c=K_();return vae=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},vae})();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,pEe=l}function Svt(){if(vEe)return AEe;vEe=1;var e=typeof Hh=="object"&&Hh&&Hh.Object===Object&&Hh;return AEe=e}function I3(){if(kEe)return SEe;kEe=1;var e=Svt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return SEe=i}function BD(){if($Ee)return jEe;$Ee=1;var e=I3().Symbol;return jEe=e}function FT(){if(DEe)return jae;DEe=1;var e=BD(),n=(function(){if(EEe)return Sae;EEe=1;var s=BD(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return Sae=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},Sae})(),i=(function(){if(IEe)return kae;IEe=1;var s=Object.prototype.toString;return kae=function(l){return s.call(l)},kae})(),r=e?e.toStringTag:void 0;return jae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},jae}function G3(){return TEe||(TEe=1,$ae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),$ae}function kvt(){if(LEe)return Eae;LEe=1;var e=FT(),n=G3();return Eae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},Eae}function Ldn(){if(MEe)return Iae;MEe=1;var e=(function(){if(PEe)return BEe;PEe=1;var i=I3()["__core-js_shared__"];return BEe=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return Iae=function(i){return!!n&&n in i},Iae}function jvt(){if(OEe)return Dae;OEe=1;var e=Function.prototype.toString;return Dae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Dae}function jv(){if(NEe)return Lae;NEe=1;var e=(function(){if(FEe)return Tae;FEe=1;var i=kvt(),r=Ldn(),s=G3(),l=jvt(),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 Tae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Tae})(),n=(zEe||(zEe=1,REe=function(i,r){return i?.[r]}),REe);return Lae=function(i,r){var s=n(i,r);return e(s)?s:void 0},Lae}function Pwe(){if(VEe)return _Ee;VEe=1;var e=jv()(I3(),"Map");return _Ee=e}function Z_(){if(UEe)return HEe;UEe=1;var e=jv()(Object,"create");return HEe=e}function Bdn(){if(XEe)return JEe;XEe=1;var e=(function(){if(QEe)return WEe;QEe=1;var c=Z_();return WEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(GEe||(GEe=1,YEe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),YEe),i=(function(){if(qEe)return Bae;qEe=1;var c=Z_(),d=Object.prototype.hasOwnProperty;return Bae=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},Bae})(),r=(function(){if(KEe)return Pae;KEe=1;var c=Z_(),d=Object.prototype.hasOwnProperty;return Pae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Pae})(),s=(function(){if(ZEe)return Mae;ZEe=1;var c=Z_();return Mae=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},Mae})();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,JEe=l}function J_(){if(oIe)return Oae;oIe=1;var e=(iIe||(iIe=1,nIe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),nIe);return Oae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Oae}function Mwe(){if(dIe)return cIe;dIe=1;var e=(function(){if(tIe)return eIe;tIe=1;var c=Bdn(),d=wq(),u=Pwe();return eIe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(rIe)return Fae;rIe=1;var c=J_();return Fae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Fae})(),i=(function(){if(aIe)return Rae;aIe=1;var c=J_();return Rae=function(d){return c(this,d).get(d)},Rae})(),r=(function(){if(sIe)return zae;sIe=1;var c=J_();return zae=function(d){return c(this,d).has(d)},zae})(),s=(function(){if(lIe)return Nae;lIe=1;var c=J_();return Nae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Nae})();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,cIe=l}function Owe(){if(hIe)return pIe;hIe=1;var e=wq(),n=(function(){if(gEe)return mEe;gEe=1;var d=wq();return mEe=function(){this.__data__=new d,this.size=0}})(),i=(xEe||(xEe=1,fEe=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),fEe),r=(bEe||(bEe=1,yEe=function(d){return this.__data__.get(d)}),yEe),s=(CEe||(CEe=1,wEe=function(d){return this.__data__.has(d)}),wEe),l=(function(){if(uIe)return _ae;uIe=1;var d=wq(),u=Pwe(),p=Mwe();return _ae=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},_ae})();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,pIe=c}function $vt(){if(bIe)return yIe;bIe=1;var e=Mwe(),n=(gIe||(gIe=1,mIe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),mIe),i=(xIe||(xIe=1,fIe=function(s){return this.__data__.has(s)}),fIe);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,yIe=r}function Evt(){return AIe||(AIe=1,Vae=function(e,n){return e.has(n)}),Vae}function Ivt(){if(vIe)return Hae;vIe=1;var e=$vt(),n=(CIe||(CIe=1,wIe=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}),wIe),i=Evt();return Hae=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},Hae}function Dvt(){if(kIe)return SIe;kIe=1;var e=I3().Uint8Array;return SIe=e}function N5e(){return EIe||(EIe=1,Uae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Uae}function Pdn(){if(IIe)return Wae;IIe=1;var e=BD(),n=Dvt(),i=$te(),r=Ivt(),s=($Ie||($Ie=1,jIe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),jIe),l=N5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Wae=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},Wae}function Fwe(){return DIe||(DIe=1,Qae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Qae}function Ju(){if(LIe)return TIe;LIe=1;var e=Array.isArray;return TIe=e}function Tvt(){if(BIe)return Yae;BIe=1;var e=Fwe(),n=Ju();return Yae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Yae}function Rwe(){return PIe||(PIe=1,Gae=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}),Gae}function Lvt(){return OIe?MIe:(OIe=1,MIe=function(){return[]})}function zwe(){if(RIe)return FIe;RIe=1;var e=Rwe(),n=Lvt(),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 FIe=s}function Bvt(){return zIe||(zIe=1,qae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),qae}function l7(){return NIe||(NIe=1,Kae=function(e){return e!=null&&typeof e=="object"}),Kae}function Nwe(){if(HIe)return VIe;HIe=1;var e=(function(){if(_Ie)return Zae;_Ie=1;var c=FT(),d=l7();return Zae=function(u){return d(u)&&c(u)=="[object Arguments]"},Zae})(),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 VIe=l}var UIe,WIe,QIe,Jae,YIe,Xae,GIe,ese,qIe,tse,KIe,nse={exports:{}};function _we(){return QIe||(QIe=1,(function(e,n){var i=I3(),r=WIe?UIe:(WIe=1,UIe=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})(nse,nse.exports)),nse.exports}function eN(){if(YIe)return Jae;YIe=1;var e=/^(?:0|[1-9]\d*)$/;return Jae=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},Jae}function Vwe(){return GIe?Xae:(GIe=1,Xae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Xae)}function Ete(){return KIe||(KIe=1,tse=function(e){return function(n){return e(n)}}),tse}var ZIe,JIe,XIe,ise,eDe,ose,tDe,rse,nDe,iDe,oDe,ase,rDe,sse,aDe,lse,sDe,cse,lDe,dse,cDe,dDe,uDe,pDe,hDe,mDe,gDe,fDe,xDe,yDe,bDe,use,wDe,pse,CDe,hse,ADe,mse={exports:{}};function Hwe(){return ZIe||(ZIe=1,(function(e,n){var i=Svt(),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})(mse,mse.exports)),mse.exports}function Pvt(){if(XIe)return JIe;XIe=1;var e=(function(){if(qIe)return ese;qIe=1;var l=FT(),c=Vwe(),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,ese=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},ese})(),n=Ete(),i=Hwe(),r=i&&i.isTypedArray,s=r?n(r):e;return JIe=s}function Mvt(){if(eDe)return ise;eDe=1;var e=Bvt(),n=Nwe(),i=Ju(),r=_we(),s=eN(),l=Pvt(),c=Object.prototype.hasOwnProperty;return ise=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},ise}function Uwe(){if(tDe)return ose;tDe=1;var e=Object.prototype;return ose=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},ose}function Ovt(){return nDe||(nDe=1,rse=function(e,n){return function(i){return e(n(i))}}),rse}function Mdn(){if(rDe)return ase;rDe=1;var e=Uwe(),n=(function(){if(oDe)return iDe;oDe=1;var r=Ovt()(Object.keys,Object);return iDe=r})(),i=Object.prototype.hasOwnProperty;return ase=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},ase}function RT(){if(aDe)return sse;aDe=1;var e=kvt(),n=Vwe();return sse=function(i){return i!=null&&n(i.length)&&!e(i)},sse}function NR(){if(sDe)return lse;sDe=1;var e=Mvt(),n=Mdn(),i=RT();return lse=function(r){return i(r)?e(r):n(r)},lse}function Fvt(){if(lDe)return cse;lDe=1;var e=Tvt(),n=zwe(),i=NR();return cse=function(r){return e(r,i,n)},cse}function Rvt(){if(gDe)return mDe;gDe=1;var e=jv()(I3(),"Set");return mDe=e}function Ite(){if(bDe)return yDe;bDe=1;var e=(function(){if(uDe)return dDe;uDe=1;var A=jv()(I3(),"DataView");return dDe=A})(),n=Pwe(),i=(function(){if(hDe)return pDe;hDe=1;var A=jv()(I3(),"Promise");return pDe=A})(),r=Rvt(),s=(function(){if(xDe)return fDe;xDe=1;var A=jv()(I3(),"WeakMap");return fDe=A})(),l=FT(),c=jvt(),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}),yDe=C}function Odn(){if(wDe)return use;wDe=1;var e=Owe(),n=Ivt(),i=Pdn(),r=(function(){if(cDe)return dse;cDe=1;var f=Fvt(),x=Object.prototype.hasOwnProperty;return dse=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},dse})(),s=Ite(),l=Ju(),c=_we(),d=Pvt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return use=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))},use}function Wwe(){if(CDe)return pse;CDe=1;var e=Odn(),n=l7();return pse=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))},pse}var Fdn=(function(){if(ADe)return hse;ADe=1;var e=Wwe();return hse=function(n,i){return e(n,i)},hse})();const oo=pr(Fdn);var vDe,SDe,gse,kDe,fse,jDe,xse,$De,yse,EDe,bse,IDe;function Rdn(){if(jDe)return fse;jDe=1;var e=(function(){if(kDe)return gse;kDe=1;var i=/\s/;return gse=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},gse})(),n=/^\s+/;return fse=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},fse}function tN(){if($De)return xse;$De=1;var e=FT(),n=l7();return xse=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},xse}function zvt(){if(EDe)return yse;EDe=1;var e=Rdn(),n=G3(),i=tN(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return yse=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},yse}function Nvt(){if(IDe)return bse;IDe=1;var e=G3(),n=(function(){if(SDe)return vDe;SDe=1;var l=I3();return vDe=function(){return l.Date.now()}})(),i=zvt(),r=Math.max,s=Math.min;return bse=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},bse}const Ss=pr(Nvt());var DDe,TDe;function _vt(){return TDe?DDe:(TDe=1,DDe=function(){})}const Qwe=pr(_vt());var wse,LDe,BDe,PDe,Cse,MDe,Ase,ODe,vse,FDe,Sse,RDe,zDe,NDe,kse,_De,jse,VDe,$se,HDe;function Vvt(){return LDe||(LDe=1,wse=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),wse}function Hvt(){if(PDe)return BDe;PDe=1;var e=jv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return BDe=n}function Ywe(){if(MDe)return Cse;MDe=1;var e=Hvt();return Cse=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},Cse}function Gwe(){if(ODe)return Ase;ODe=1;var e=Ywe(),n=$te(),i=Object.prototype.hasOwnProperty;return Ase=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)},Ase}function hO(){if(FDe)return vse;FDe=1;var e=Gwe(),n=Ywe();return vse=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},vse}function zdn(){if(_De)return kse;_De=1;var e=G3(),n=Uwe(),i=(NDe||(NDe=1,zDe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),zDe),r=Object.prototype.hasOwnProperty;return kse=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},kse}function _5e(){if(VDe)return jse;VDe=1;var e=Mvt(),n=zdn(),i=RT();return jse=function(r){return i(r)?e(r,!0):n(r)},jse}var UDe,WDe,QDe,Ese,YDe,GDe,qDe,KDe,ZDe,Ise,JDe,Dse,XDe,Tse,eTe,Lse,tTe,Bse,nTe,Pse,iTe,Mse,oTe,Ose,rTe,Fse,aTe,sTe,lTe,Rse,cTe,zse,dTe,uTe,pTe,Nse,hTe,mTe,gTe,_se,fTe,Vse,xTe,Hse={exports:{}};function qwe(){if(qDe)return GDe;qDe=1;var e=Ovt()(Object.getPrototypeOf,Object);return GDe=e}function Uvt(){if(ZDe)return KDe;ZDe=1;var e=Fwe(),n=qwe(),i=zwe(),r=Lvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return KDe=s}function Kwe(){if(XDe)return Dse;XDe=1;var e=Tvt(),n=Uvt(),i=_5e();return Dse=function(r){return e(r,i,n)},Dse}function Use(){if(tTe)return Lse;tTe=1;var e=Dvt();return Lse=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},Lse}function Ndn(){if(aTe)return Fse;aTe=1;var e=Use(),n=(function(){if(nTe)return Bse;nTe=1;var l=Use();return Bse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},Bse})(),i=(function(){if(iTe)return Pse;iTe=1;var l=/\w*$/;return Pse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Pse})(),r=(function(){if(oTe)return Mse;oTe=1;var l=BD(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Mse=function(u){return d?Object(d.call(u)):{}},Mse})(),s=(function(){if(rTe)return Ose;rTe=1;var l=Use();return Ose=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Ose})();return Fse=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)}},Fse}function _dn(){if(cTe)return Rse;cTe=1;var e=(function(){if(lTe)return sTe;lTe=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 sTe=l})(),n=qwe(),i=Uwe();return Rse=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Rse}function Vdn(){if(pTe)return uTe;pTe=1;var e=(function(){if(dTe)return zse;dTe=1;var l=Ite(),c=l7();return zse=function(d){return c(d)&&l(d)=="[object Map]"},zse})(),n=Ete(),i=Hwe(),r=i&&i.isMap,s=r?n(r):e;return uTe=s}function Hdn(){if(gTe)return mTe;gTe=1;var e=(function(){if(hTe)return Nse;hTe=1;var l=Ite(),c=l7();return Nse=function(d){return c(d)&&l(d)=="[object Set]"},Nse})(),n=Ete(),i=Hwe(),r=i&&i.isSet,s=r?n(r):e;return mTe=s}function Wvt(){if(fTe)return _se;fTe=1;var e=Owe(),n=Vvt(),i=Gwe(),r=(function(){if(RDe)return Sse;RDe=1;var L=hO(),F=NR();return Sse=function(N,_){return N&&L(_,F(_),N)},Sse})(),s=(function(){if(HDe)return $se;HDe=1;var L=hO(),F=_5e();return $se=function(N,_){return N&&L(_,F(_),N)},$se})(),l=(UDe||(UDe=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}})(Hse,Hse.exports)),Hse.exports),c=(QDe||(QDe=1,WDe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),WDe),d=(function(){if(YDe)return Ese;YDe=1;var L=hO(),F=zwe();return Ese=function(N,_){return L(N,F(N),_)},Ese})(),u=(function(){if(JDe)return Ise;JDe=1;var L=hO(),F=Uvt();return Ise=function(N,_){return L(N,F(N),_)},Ise})(),p=Fvt(),h=Kwe(),g=Ite(),f=(function(){if(eTe)return Tse;eTe=1;var L=Object.prototype.hasOwnProperty;return Tse=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),_},Tse})(),x=Ndn(),y=_dn(),b=Ju(),w=_we(),C=Vdn(),A=G3(),S=Hdn(),k=NR(),$=_5e(),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,_se=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},_se}var Udn=(function(){if(xTe)return Vse;xTe=1;var e=Wvt();return Vse=function(n){return e(n,5)},Vse})();const us=pr(Udn);var Wse,yTe,Qse,bTe,wTe,CTe,Yse,ATe,vTe,STe,Gse,kTe,qse,jTe,Kse,$Te,Zse,ETe,Jse,ITe,Xse,DTe,ele,TTe;function Zwe(){if(bTe)return Qse;bTe=1;var e=Ju(),n=tN(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Qse=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)},Qse}function Wdn(){if(ATe)return Yse;ATe=1;var e=(function(){if(CTe)return wTe;CTe=1;var n=Mwe();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,wTe=i})();return Yse=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Yse}function OS(){return kTe||(kTe=1,Gse=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}),Gse}function Qvt(){if(jTe)return qse;jTe=1;var e=BD(),n=OS(),i=Ju(),r=tN(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return qse=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},qse}function Yvt(){if($Te)return Kse;$Te=1;var e=Qvt();return Kse=function(n){return n==null?"":e(n)},Kse}function PD(){if(ETe)return Zse;ETe=1;var e=Ju(),n=Zwe(),i=(function(){if(STe)return vTe;STe=1;var s=Wdn(),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 vTe=d})(),r=Yvt();return Zse=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Zse}function zT(){if(ITe)return Jse;ITe=1;var e=tN();return Jse=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Jse}function Gvt(){if(DTe)return Xse;DTe=1;var e=PD(),n=Nwe(),i=Ju(),r=eN(),s=Vwe(),l=zT();return Xse=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))},Xse}var Qdn=(function(){if(TTe)return ele;TTe=1;var e=(function(){if(yTe)return Wse;yTe=1;var i=Object.prototype.hasOwnProperty;return Wse=function(r,s){return r!=null&&i.call(r,s)},Wse})(),n=Gvt();return ele=function(i,r){return i!=null&&n(i,r,e)},ele})();const mn=pr(Qdn);var LTe,BTe,tle,PTe,nle,MTe,ile,OTe,FTe,RTe,zTe,NTe,ole,_Te,VTe,HTe,rle,UTe,WTe,QTe;function NT(){return PTe||(PTe=1,tle=function(e){return e}),tle}function qvt(){return MTe||(MTe=1,nle=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)}),nle}function Kvt(){if(OTe)return ile;OTe=1;var e=qvt(),n=Math.max;return ile=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)}},ile}function Ydn(){if(NTe)return zTe;NTe=1;var e=(RTe||(RTe=1,FTe=function(s){return function(){return s}}),FTe),n=Hvt(),i=NT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return zTe=r}function Zvt(){if(HTe)return VTe;HTe=1;var e=Ydn(),n=(function(){if(_Te)return ole;_Te=1;var r=Date.now;return ole=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)}},ole})(),i=n(e);return VTe=i}function Jvt(){if(UTe)return rle;UTe=1;var e=NT(),n=Kvt(),i=Zvt();return rle=function(r,s){return i(n(r,s,e),r+"")},rle}var Gdn=(function(){if(QTe)return WTe;QTe=1;var e=(BTe||(BTe=1,LTe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),LTe),n=Jvt()((function(i,r){return e(i,1,r)}));return WTe=n})();const Yi=pr(Gdn);var ale,YTe,sle,GTe;function nN(){if(YTe)return ale;YTe=1;var e=PD(),n=zT();return ale=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},ale}function Xvt(){if(GTe)return sle;GTe=1;var e=nN();return sle=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},sle}const F3=pr(Xvt());var lle,qTe,cle,KTe,dle,ZTe,ule,JTe;function eSt(){if(qTe)return lle;qTe=1;var e=Owe(),n=Wwe();return lle=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},lle}function tSt(){if(KTe)return cle;KTe=1;var e=G3();return cle=function(n){return n==n&&!e(n)},cle}function nSt(){if(ZTe)return dle;ZTe=1;var e=tSt(),n=NR();return dle=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},dle}var qdn=(function(){if(JTe)return ule;JTe=1;var e=eSt(),n=nSt();return ule=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},ule})();const Kdn=pr(qdn);var XTe,eLe,Zdn=(eLe||(eLe=1,XTe=function(e){return e==null}),XTe);const tLe=pr(Zdn);var nLe,iLe,ple,oLe,Jdn=(function(){if(oLe)return ple;oLe=1;var e=(iLe||(iLe=1,nLe=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}),nLe),n=NT();return ple=function(i){return i&&i.length?e(i,n):0},ple})();const Xdn=pr(Jdn);var hle,rLe,mle,aLe,gle,sLe,fle,lLe,xle,cLe;function Jwe(){return rLe||(rLe=1,hle=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}),hle}function iSt(){if(aLe)return mle;aLe=1;var e=$te(),n=RT(),i=eN(),r=G3();return mle=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)},mle}function Dte(){if(lLe)return fle;lLe=1;var e=(function(){if(sLe)return gle;sLe=1;var n=zvt(),i=1/0;return gle=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},gle})();return fle=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},fle}var eun=(function(){if(cLe)return xle;cLe=1;var e=Jwe(),n=iSt(),i=Dte(),r=Math.ceil,s=Math.max;return xle=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},xle})();const tun=pr(eun);var dLe,uLe,nun=(uLe||(uLe=1,dLe=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}),dLe);const iun=pr(nun);var pLe,hLe,mLe,gLe,yle,fLe,ble,xLe,yLe,bLe,wle,wLe,Cle,CLe,ALe,vLe;function oun(){if(gLe)return mLe;gLe=1;var e=(hLe||(hLe=1,pLe=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}}),pLe),n=e();return mLe=n}function oSt(){if(fLe)return yle;fLe=1;var e=oun(),n=NR();return yle=function(i,r){return i&&e(i,r,n)},yle}function iN(){if(bLe)return yLe;bLe=1;var e=oSt(),n=(function(){if(xLe)return ble;xLe=1;var r=RT();return ble=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}},ble})(),i=n(e);return yLe=i}function rSt(){if(wLe)return wle;wLe=1;var e=NT();return wle=function(n){return typeof n=="function"?n:e},wle}var run=(vLe||(vLe=1,ALe=(function(){if(CLe)return Cle;CLe=1;var e=Vvt(),n=iN(),i=rSt(),r=Ju();return Cle=function(s,l){return(r(s)?e:n)(s,i(l))},Cle})()),ALe);const aun=pr(run);var SLe,kLe,Ale,jLe,vle,$Le,ELe,ILe,Sle,DLe,kle,TLe,jle,LLe,$le,BLe,Ele,PLe,Ile,MLe,OLe,FLe,Dle,RLe;function zLe(){return jLe||(jLe=1,Ale=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),Ale}function sun(){if(DLe)return Sle;DLe=1;var e=(ILe||(ILe=1,ELe=function(i,r){return i!=null&&r in Object(i)}),ELe),n=Gvt();return Sle=function(i,r){return i!=null&&n(i,r,e)},Sle}function Xwe(){return LLe||(LLe=1,jle=function(e){return function(n){return n?.[e]}}),jle}function lun(){if(PLe)return Ele;PLe=1;var e=Xwe(),n=(function(){if(BLe)return $le;BLe=1;var s=nN();return $le=function(l){return function(c){return s(c,l)}},$le})(),i=Zwe(),r=zT();return Ele=function(s){return i(s)?e(r(s)):n(s)},Ele}function d8(){if(MLe)return Ile;MLe=1;var e=(function(){if($Le)return vle;$Le=1;var l=eSt(),c=nSt(),d=zLe();return vle=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)}},vle})(),n=(function(){if(TLe)return kle;TLe=1;var l=Wwe(),c=Xvt(),d=sun(),u=Zwe(),p=tSt(),h=zLe(),g=zT();return kle=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)}},kle})(),i=NT(),r=Ju(),s=lun();return Ile=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},Ile}var cun=(function(){if(RLe)return Dle;RLe=1;var e=(kLe||(kLe=1,SLe=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}),SLe),n=iN(),i=d8(),r=(FLe||(FLe=1,OLe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),OLe),s=Ju();return Dle=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Dle})();const V5e=pr(cun);var Tle,NLe,Lle,_Le,Ble,VLe,HLe,ULe;function dun(){if(_Le)return Lle;_Le=1;var e=Rwe(),n=OS(),i=Xwe(),r=Bvt(),s=(function(){if(NLe)return Tle;NLe=1;var c=RT(),d=l7();return Tle=function(u){return d(u)&&c(u)},Tle})(),l=Math.max;return Lle=function(c){if(!c||!c.length)return[];var d=0;return c=e(c,(function(u){if(s(u))return d=l(u.length,d),!0})),r(d,(function(u){return n(c,i(u))}))},Lle}var uun=(function(){if(ULe)return HLe;ULe=1;var e=Jvt(),n=(function(){if(VLe)return Ble;VLe=1;var r=qvt(),s=OS(),l=dun();return Ble=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)}))},Ble})(),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 HLe=i})();const pun=pr(uun);var Ple,WLe,hun=(function(){if(WLe)return Ple;WLe=1;var e=oSt(),n=rSt();return Ple=function(i,r){return i&&e(i,n(r))},Ple})();const aSt=pr(hun);var Mle,QLe,Ole,YLe;function sSt(){if(QLe)return Mle;QLe=1;var e=iN(),n=RT();return Mle=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},Mle}function lSt(){if(YLe)return Ole;YLe=1;var e=OS(),n=d8(),i=sSt(),r=Ju();return Ole=function(s,l){return(r(s)?e:i)(s,n(l,3))},Ole}const Tte=pr(lSt());var Fle,GLe,Rle,qLe,zle,KLe;function mun(){if(qLe)return Rle;qLe=1;var e=nN(),n=(function(){if(GLe)return Fle;GLe=1;var r=Gwe(),s=PD(),l=eN(),c=G3(),d=zT();return Fle=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},Fle})(),i=PD();return Rle=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},Rle}var gun=(function(){if(KLe)return zle;KLe=1;var e=OS(),n=d8(),i=mun(),r=Kwe();return zle=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])}))},zle})();const iZ=pr(gun);var Nle,ZLe,fun=(function(){if(ZLe)return Nle;ZLe=1;var e=Nvt(),n=G3();return Nle=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})},Nle})();const xun=pr(fun);var _le,JLe,Vle,XLe,yun=(function(){if(XLe)return Vle;XLe=1;var e=Rwe(),n=(function(){if(JLe)return _le;JLe=1;var s=iN();return _le=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},_le})(),i=d8(),r=Ju();return Vle=function(s,l){return(r(s)?e:n)(s,i(l,3))},Vle})();const bun=pr(yun);var eBe,tBe,Hle,nBe,Ule,iBe,oBe,rBe;function wun(){if(iBe)return Ule;iBe=1;var e=(tBe||(tBe=1,eBe=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}),eBe),n=(function(){if(nBe)return Hle;nBe=1;var s=iN();return Hle=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Hle})(),i=d8(),r=Ju();return Ule=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Ule}var Cun=(function(){if(rBe)return oBe;rBe=1;var e=Ywe(),n=wun(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return oBe=r})();const Aun=pr(Cun);var aBe,sBe,Wle,lBe,Qle,cBe,Yle,dBe,Gle,uBe;function vun(){if(cBe)return Qle;cBe=1;var e=(function(){if(lBe)return Wle;lBe=1;var n=tN();return Wle=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},Wle})();return Qle=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},Qle}function Sun(){if(dBe)return Yle;dBe=1;var e=OS(),n=nN(),i=d8(),r=sSt(),s=(sBe||(sBe=1,aBe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),aBe),l=Ete(),c=vun(),d=NT(),u=Ju();return Yle=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)}))},Yle}var kun=(function(){if(uBe)return Gle;uBe=1;var e=Sun(),n=Ju();return Gle=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))},Gle})();const Lte=pr(kun);var pBe,hBe,qle,mBe,Kle,gBe,Zle,fBe;function jun(){if(mBe)return qle;mBe=1;var e=(hBe||(hBe=1,pBe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),pBe),n=Dte();return qle=function(i){return i?e(n(i),0,4294967295):0},qle}var $un=(function(){if(fBe)return Zle;fBe=1;var e=(function(){if(gBe)return Kle;gBe=1;var i=Dte(),r=jun();return Kle=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},Kle})(),n=iSt();return Zle=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)):[]},Zle})();const cSt=pr($un);var xBe,yBe,Jle,bBe,Xle,wBe,ece,CBe,tce,ABe;function dSt(){if(wBe)return Xle;wBe=1;var e=PD(),n=(yBe||(yBe=1,xBe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),xBe),i=(function(){if(bBe)return Jle;bBe=1;var l=nN(),c=Jwe();return Jle=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Jle})(),r=zT(),s=Object.prototype.hasOwnProperty;return Xle=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))]},Xle}var Eun=(function(){if(ABe)return tce;ABe=1;var e=d8(),n=(function(){if(CBe)return ece;CBe=1;var i=dSt(),r=eN(),s=Array.prototype.splice;return ece=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},ece})();return tce=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},tce})();const oZ=pr(Eun);var nce,vBe,ice,SBe,oce,kBe,rce,jBe,ace,$Be,sce,EBe,IBe,DBe;function Iun(){if(SBe)return ice;SBe=1;var e=(function(){if(vBe)return nce;vBe=1;var n=FT(),i=qwe(),r=l7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return nce=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},nce})();return ice=function(n){return e(n)?void 0:n},ice}function uSt(){if(jBe)return rce;jBe=1;var e=Fwe(),n=(function(){if(kBe)return oce;kBe=1;var i=BD(),r=Nwe(),s=Ju(),l=i?i.isConcatSpreadable:void 0;return oce=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},oce})();return rce=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},rce}function pSt(){if($Be)return ace;$Be=1;var e=uSt();return ace=function(n){return n!=null&&n.length?e(n,1):[]},ace}var Dun=(function(){if(DBe)return IBe;DBe=1;var e=OS(),n=Wvt(),i=dSt(),r=PD(),s=hO(),l=Iun(),c=(function(){if(EBe)return sce;EBe=1;var p=pSt(),h=Kvt(),g=Zvt();return sce=function(f){return g(h(f,void 0,p),f+"")},sce})(),d=Kwe(),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 IBe=u})();const eCe=pr(Dun);var lce,TBe,Tun=(function(){if(TBe)return lce;TBe=1;var e=uSt(),n=lSt();return lce=function(i,r){return e(n(i,r),1)},lce})();const hSt=pr(Tun);var LBe,BBe,PBe,MBe,OBe,FBe,cce,RBe,dce,zBe,NBe,_Be,VBe,HBe,uce,UBe,pce,WBe;function Lun(){if(RBe)return cce;RBe=1;var e=(BBe||(BBe=1,LBe=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}),LBe),n=(MBe||(MBe=1,PBe=function(r){return r!=r}),PBe),i=(FBe||(FBe=1,OBe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),OBe);return cce=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},cce}function mSt(){if(UBe)return uce;UBe=1;var e=$vt(),n=(function(){if(zBe)return dce;zBe=1;var c=Lun();return dce=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},dce})(),i=(_Be||(_Be=1,NBe=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}),NBe),r=Evt(),s=(function(){if(HBe)return VBe;HBe=1;var c=Rvt(),d=_vt(),u=N5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return VBe=p})(),l=N5e();return uce=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},uce}var Bun=(function(){if(WBe)return pce;WBe=1;var e=d8(),n=mSt();return pce=function(i,r){return i&&i.length?n(i,e(r,2)):[]},pce})();const Pun=pr(Bun),Mun=pr(pSt());var hce,QBe,Oun=(function(){if(QBe)return hce;QBe=1;var e=mSt();return hce=function(n){return n&&n.length?e(n):[]},hce})();const Fun=pr(Oun);var mce,YBe,gce,GBe,fce,qBe,KBe,ZBe,xce,JBe,yce,XBe,ePe,tPe,bce,nPe,wce,iPe,Cce,oPe,rPe,aPe;function tCe(){if(qBe)return fce;qBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return fce=function(n){return e.test(n)},fce}function gSt(){if(XBe)return yce;XBe=1;var e=(function(){if(ZBe)return KBe;ZBe=1;var r=Xwe()("length");return KBe=r})(),n=tCe(),i=(function(){if(JBe)return xce;JBe=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){for(var w=y.lastIndex=0;y.test(b);)++w;return w},xce})();return yce=function(r){return n(r)?i(r):e(r)},yce}function Run(){if(iPe)return wce;iPe=1;var e=(tPe||(tPe=1,ePe=function(r){return r.split("")}),ePe),n=tCe(),i=(function(){if(nPe)return bce;nPe=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 bce=function(b){return b.match(y)||[]},bce})();return wce=function(r){return n(r)?i(r):e(r)},wce}function zun(){if(oPe)return Cce;oPe=1;var e=(function(){if(YBe)return mce;YBe=1;var d=Math.floor;return mce=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},mce})(),n=Qvt(),i=(function(){if(GBe)return gce;GBe=1;var d=Jwe();return gce=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},gce})(),r=tCe(),s=gSt(),l=Run(),c=Math.ceil;return Cce=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)},Cce}(function(){if(aPe)return rPe;aPe=1;var e=zun(),n=gSt(),i=Dte(),r=Yvt();rPe=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 _R=e=>e.type==="checkbox",XE=e=>e instanceof Date,jp=e=>e==null;const fSt=e=>typeof e=="object";var Ed=e=>!jp(e)&&!Array.isArray(e)&&fSt(e)&&!XE(e),xSt=e=>Ed(e)&&e.target?_R(e.target)?e.target.checked:e.target.value:e,ySt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),nCe=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(nCe&&(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 MD=e=>Array.isArray(e)?e.filter(Boolean):[],ml=e=>e===void 0,Ei=(e,n,i)=>{if(!n||!Ed(e))return i;const r=MD(n.split(/[,[\].]+?/)).reduce(((s,l)=>jp(s)?s:s[l]),e);return ml(r)||r===e?ml(e[n])?i:e[n]:r};const bSt="blur",Nun="focusout",_un="change",Vun="onBlur",wSt="onChange",CSt="onSubmit",Hun="onTouched",OD="all",Uun="max",Wun="min",Qun="maxLength",Yun="minLength",sPe="pattern",lPe="required",Gun="validate",ASt=B.createContext(null),$t=()=>B.useContext(ASt),Dn=e=>{const{children:n,...i}=e;return B.createElement(ASt.Provider,{value:i},n)};var vSt=(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]!==OD&&(n._proxyFormState[c]=!r||OD),i&&(i[c]=!0),e[c]}});return s},Rm=e=>Ed(e)&&!Object.keys(e).length,SSt=(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||OD)))},Gm=e=>Array.isArray(e)?e:[e],kSt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||Gm(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Bte(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",jSt=(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 qa(e){const n=$t(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Bte({disabled:l,subject:i._subjects.values,next:h=>{kSt(d.current,h.name,c)&&p(Oh(jSt(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 iCe=e=>/^\w*$/.test(e),$St=e=>MD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function zs(e,n,i){let r=-1;const s=iCe(n)?[n]:$St(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 qun(e){const n=$t(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=ySt(r._names.array,i),c=qa({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,Bte({disabled:f,next:k=>C.current&&kSt(S.current,k.name,y)&&SSt(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]),vSt(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));zs(r._defaultValues,i,g),ml(Ei(r._formValues,i))&&zs(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:xSt(p),name:i},type:_un})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Ei(r._formValues,i),name:i},type:bSt})),[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(qun(e));var Kun=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const rZ=(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)&&rZ(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)}))},Ace=(e,n,i={})=>i.shouldFocus||ml(i.shouldFocus)?i.focusName||`${e}.${ml(i.focusIndex)?n:i.focusIndex}.`:"",H5e=e=>({isOnSubmit:!e||e===CSt,isOnBlur:e===Vun,isOnChange:e===wSt,isOnAll:e===OD,isOnTouch:e===Hun}),U5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),ESt=(e,n,i)=>{const r=MD(Ei(e,i));return zs(r,"root",n[i]),zs(e,i,r),e},VI=e=>typeof e=="boolean",oCe=e=>e.type==="file",a9=e=>typeof e=="function",aZ=e=>{if(!nCe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},Cq=e=>C4(e),rCe=e=>e.type==="radio",sZ=e=>e instanceof RegExp;const cPe={value:!1,isValid:!1},dPe={value:!0,isValid:!0};var ISt=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&&!ml(e[0].attributes.value)?ml(e[0].value)||e[0].value===""?dPe:{value:e[0].value,isValid:!0}:dPe:cPe}return cPe};const uPe={isValid:!1,value:null};var DSt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),uPe):uPe;function pPe(e,n,i="validate"){if(Cq(e)||Array.isArray(e)&&e.every(Cq)||VI(e)&&!e)return{type:i,message:Cq(e)?e:"",ref:n}}var Mk=e=>Ed(e)&&!sZ(e)?e:{value:e,message:""},W5e=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(VI(N)?"":N||""),S.reportValidity())},$={},j=rCe(l),I=_R(l),E=j||I,D=(b||oCe(l))&&ml(l.value)&&ml(A)||aZ(l)&&l.value===""||A===""||Array.isArray(A)&&!A.length,L=Kun.bind(null,y,i,$),F=(N,_,z,T=Qun,M=Yun)=>{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))||VI(A)&&!A||I&&!ISt(c).isValid||j&&!DSt(c).isValid)){const{value:N,message:_}=Cq(d)?{value:!!d,message:d}:Mk(d);if(N&&($[y]={type:lPe,message:_,ref:S,...L(lPe,_)},!i))return k(_),$}if(!(D||jp(h)&&jp(g))){let N,_;const z=Mk(g),T=Mk(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,Uun,Wun),!i))return k($[y].message),$}if((u||p)&&!D&&(C4(A)||s&&Array.isArray(A))){const N=Mk(u),_=Mk(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:_}=Mk(f);if(sZ(N)&&!A.match(N)&&($[y]={type:sPe,message:_,ref:l,...L(sPe,_)},!i))return k(_),$}if(x){if(a9(x)){const N=pPe(await x(A,n),S);if(N&&($[y]={...N,...L(Gun,N.message)},!i))return k(N.message),$}else if(Ed(x)){let N={};for(const _ in x){if(!Rm(N)&&!i)break;const z=pPe(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 vce(e,n){return[...e,...Gm(n)]}var Sce=e=>Array.isArray(e)?e.map((()=>{})):void 0;function kce(e,n,i){return[...e.slice(0,n),...Gm(i),...e.slice(n)]}var jce=(e,n,i)=>Array.isArray(e)?(ml(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function $ce(e,n){return[...Gm(n),...Gm(e)]}var Ece=(e,n)=>ml(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return MD(l).length?l:[]})(e,Gm(n).sort(((i,r)=>i-r))),Ice=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Ud(e,n){const i=Array.isArray(n)?n:iCe(n)?[n]:$St(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=ml(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(!ml(c[d]))return!1;return!0})(r))&&Ud(e,i.slice(0,-1)),e}var hPe=(e,n,i)=>(e[n]=i,e);function Il(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),Bte({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,U5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!H5e(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?zs(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&&W5e(x,i._formValues,i._options.criteriaMode===OD,i._options.shouldUseNativeValidation,!0).then((y=>!Rm(y)&&i._subjects.state.next({errors:ESt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&rZ(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);Ice(b,x,y),Ice(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,Ice,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);jce(b,x,y),jce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,jce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=Gm(Oh(x)),w=$ce(i._getFieldArray(r),b);i._names.focus=Ace(r,0,y),u.current=$ce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,$ce,{argA:Sce(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=Gm(Oh(x)),w=vce(i._getFieldArray(r),b);i._names.focus=Ace(r,w.length-1,y),u.current=vce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,vce,{argA:Sce(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=Ece(i._getFieldArray(r),x);u.current=Ece(u.current,x),f(y),d(y),i._updateFieldArray(r,y,Ece,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=Gm(Oh(y)),C=kce(i._getFieldArray(r),x,w);i._names.focus=Ace(r,x,b),u.current=kce(u.current,x,w.map(Y7)),f(C),d(C),i._updateFieldArray(r,C,kce,{argA:x,argB:Sce(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Oh(y),w=hPe(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,hPe,{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 Dce(){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 lZ=e=>jp(e)||!fSt(e);function UA(e,n){if(lZ(e)||lZ(n))return e===n;if(XE(e)&&XE(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(XE(l)&&XE(c)||Ed(l)&&Ed(c)||Array.isArray(l)&&Array.isArray(c)?!UA(l,c):l!==c)return!1}}return!0}var TSt=e=>e.type==="select-multiple",Tce=e=>aZ(e)&&e.isConnected,LSt=e=>{for(const n in e)if(a9(e[n]))return!0;return!1};function cZ(e,n={}){const i=Array.isArray(e);if(Ed(e)||i)for(const r in e)Array.isArray(e[r])||Ed(e[r])&&!LSt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},cZ(e[r],n[r])):jp(e[r])||(n[r]=!0);return n}function BSt(e,n,i){const r=Array.isArray(e);if(Ed(e)||r)for(const s in e)Array.isArray(e[s])||Ed(e[s])&&!LSt(e[s])?ml(n)||lZ(i[s])?i[s]=Array.isArray(e[s])?cZ(e[s],[]):{...cZ(e[s])}:BSt(e[s],jp(n)?{}:n[s],i[s]):i[s]=!UA(e[s],n[s]);return i}var Lce=(e,n)=>BSt(e,n,cZ(n)),PSt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>ml(e)?e:n?e===""?NaN:e&&+e:i&&C4(e)?new Date(e):r?r(e):e;function Bce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return oCe(n)?n.files:rCe(n)?DSt(e.refs).value:TSt(n)?[...n.selectedOptions].map((({value:i})=>i)):_R(n)?ISt(e.refs).value:PSt(ml(n.value)?e.ref.value:n.value,e)}var VL=e=>ml(e)?e:sZ(e)?e.source:Ed(e)?sZ(e.value)?e.value.source:e.value:e;function mPe(e,n,i){const r=Ei(e,i);if(r||iCe(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 Zun={mode:CSt,reValidateMode:wSt,shouldFocusError:!0};function Jun(e={},n){let i,r={...Zun,...e},s={submitCount:0,isDirty:!1,isLoading:a9(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:Dce(),array:Dce(),state:Dce()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=H5e(r.mode),b=H5e(r.reValidateMode),w=r.criteriaMode===OD,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,ml(K)?Ei(c,G):K);ml(ee)||J&&J.defaultChecked||q?zs(d,G,q?ee:Bce(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):zs(s.dirtyFields,G,!0),oe.dirtyFields=s.dirtyFields,ee=ee||g.dirtyFields&&ne!==!re}if(K){const re=Ei(s.touchedFields,G);re||(zs(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&&VI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>oe=>{clearTimeout(h),h=setTimeout(ne,oe)})((()=>((ne,oe)=>{zs(s.errors,ne,oe),f.state.next({errors:s.errors})})(G,K))),i(e.delayError)):(clearTimeout(h),i=null,K?zs(s.errors,G,K):Ud(s.errors,G)),(K?!UA(te,K):te)||!Rm(J)||ee){const ne={...J,...ee&&VI(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&&zs(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 W5e(te,d,w,r.shouldUseNativeValidation&&!q,oe);if(re[ee.name]&&(K.valid=!1,q))break;!q&&(Ei(re,ee.name)?oe?ESt(s.errors,re,ee.name):zs(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&&zs(d,G,q),!UA(T(),c)),D=(G,q,K)=>jSt(G,p,{...u.mount?d:ml(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&&zs(d,G,PSt(q,ee)),te=aZ(ee.ref)&&jp(q)?"":q,TSt(ee.ref)?[...ee.ref.options].forEach((ne=>ne.selected=te.includes(ne.value))):ee.refs?_R(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)):oCe(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)&&lZ(te)&&(!ne||ne._f)||XE(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);zs(d,G,ee),te?(f.array.next({name:G,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:G,dirtyFields:Lce(c,d),isDirty:E(G,ee)})):!J||J._f||jp(ee)?L(G,ee,K):F(G,ee,K),U5e(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?Bce(te._f):xSt(G),re=G.type===bSt||G.type===Nun,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=U5e(K,p,re);zs(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=mPe(s.errors,l,K),de=mPe(ie,l,le.name||K);ee=de.error,K=de.name,ne=Rm(ie)}else ee=(await W5e(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?zs(s.errors,re,se):Ud(s.errors,re)}else s.errors=oe;return oe})(ml(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&&rZ(l,(ee=>ee&&Ei(s.errors,ee)),G?te:p.mount),J},T=G=>{const q={...c,...u.mount?d:{}};return ml(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=VI(q.disabled);return zs(l,G,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:G}},name:G,mount:!0,...q}}),p.mount.add(G),K?J&&zs(d,G,q.disabled?void 0:Ei(d,G,Bce(K._f))):S(G,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:VL(q.min),max:VL(q.max),minLength:VL(q.minLength),maxLength:VL(q.maxLength),pattern:VL(q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:te=>{if(te){H(G,q),K=Ei(l,G);const ee=ml(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,ne=(re=>rCe(re)||_R(re))(ee),oe=K._f.refs||[];if(ne?oe.find((re=>re===ee)):ee===K._f.ref)return;zs(l,G,{_f:{...K._f,...ne?{refs:[...oe.filter(Tce),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)&&(!ySt(p.array,G)||!u.action)&&p.unMount.add(G)}}},V=()=>r.shouldFocusError&&rZ(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)?zs(te,ee,Ei(d,ee)):N(ee,Ei(te,ee));else{if(nCe&&ml(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(aZ(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?Lce(c,G):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(G,q)=>W(a9(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=>!Tce(K))):!Tce(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&&zs(l,G,ne)}if(ee&&Array.isArray(Ei(s.errors,G))){const ne=K(Ei(s.errors,G),J.argA,J.argB);te&&zs(s.errors,G,ne),((oe,re)=>{!MD(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&&zs(s.touchedFields,G,ne)}g.dirtyFields&&(s.dirtyFields=Lce(c,d)),f.state.next({name:G,isDirty:E(G,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else zs(d,G,q)},_getFieldArray:G=>MD(Ei(u.mount?d:c,G,e.shouldUnregister?Ei(c,G,[]):[])),_reset:W,_resetDefaultValues:()=>a9(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)=>a9(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)&&(ml(q.defaultValue)?N(G,Ei(c,G)):(N(G,q.defaultValue),zs(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;zs(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:a9(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:a9(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Jun(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Bte({subject:s._subjects.state,next:l=>{SSt(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=vSt(i,s),n.current}let $4;$4=typeof window<"u"?window:typeof self<"u"?self:T5e;let Q5e=null,Y5e=null;const Pce=$4.clearTimeout,gPe=$4.setTimeout,Mce=$4.cancelAnimationFrame||$4.mozCancelAnimationFrame||$4.webkitCancelAnimationFrame,fPe=$4.requestAnimationFrame||$4.mozRequestAnimationFrame||$4.webkitRequestAnimationFrame;function Xun(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__&&Q5e(this.__resizeRAF__),this.__resizeRAF__=Y5e((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{}}}}}Mce==null||fPe==null?(Q5e=Pce,Y5e=function(e){return gPe(e,20)}):(Q5e=function([e,n]){Mce(e),Pce(n)},Y5e=function(e){const n=fPe((function(){Pce(i),e()})),i=gPe((function(){Mce(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=Xun(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 G5e(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 aCe(e,n){if(e){if(typeof e=="string")return G5e(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)?G5e(e,n):void 0}}function xPe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=aCe(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 dZ(e,n){return dZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},dZ(e,n)}function Ea(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&&dZ(e,n)}function uZ(e){return uZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uZ(e)}function MSt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(MSt=function(){return!!e})()}function Ia(e){var n=MSt();return function(){var i,r=uZ(e);if(n){var s=uZ(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 OSt(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 yPe(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,OSt(r.key),r)}}function pa(e,n,i){return n&&yPe(e.prototype,n),i&&yPe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,n,i){return(n=OSt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function bPe(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?bPe(Object(i),!0).forEach((function(r){Si(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):bPe(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)||aCe(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 pZ(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=pZ(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 HI(e){return(function(n){if(Array.isArray(n))return G5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||aCe(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -92523,7 +92523,7 @@ ${JM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
92523
92523
  padding: ${o.sp3} ${o.sp0};
92524
92524
  `,wCt=a(ct)`
92525
92525
  min-width: 140px;
92526
- `,OR=nAt(kdn()),Z6s=["sandbox","production"],J6s=["development","staging","production"],X6s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],kD=()=>Wl==="DEV"||Wl==="QA"||Wl==="PUNE"||Wl==="SUNNYVALE"||Wl==="DELHI"||Wl==="MOHALI",r$e="https://zeni-webapp-dev.uc.r.appspot.com",Wl=(e=>b7(e,X6s))("DEV"),Wjs=(e=>b7(e,Z6s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Wl)),CCt=(e=>b7(e,J6s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Wl)),ebs=(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"}})(Wl);function Zon(e,n){return OR.AES.decrypt(e,n).toString(OR.enc.Utf8)}const Jon="ZENI-WEB-APP-",a$e=Wl==="DEV"||Wl==="QA"?.2:.8,Xon=a$e,ws={sentryDsn:"",sentryTraceSamplingRate:a$e,sentryProfileSamplingRate:Xon,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",statsigNonBlockingInit:!1,cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let J4,qz;function tbs(){return J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function ern(e){ws.sentryDsn=e.keys.SENTRY_DSN,ws.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):a$e,ws.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Xon,ws.googleClientId=e.keys.GOOGLE_CLIENT_ID,ws.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ws.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ws.mixpanelToken=e.keys.MIXPANEL_TOKEN,ws.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ws.pusherCluster=e.keys.PUSHER_CLUSTER,ws.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ws.appUrl=e.keys.WEB_ENDPOINT,ws.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ws.statsigNonBlockingInit=e.keys.STATSIG_NON_BLOCKING_INIT==="true",ws.cardVaultId=e.keys.UNIT_VAULT_ID,ws.stripeKey=e.keys.STRIPE_KEY,ws.qboRedirectionUrl=e.keys.QBO_URL,ws.mixpanelUrl=e.keys.MIXPANEL_URL,ws.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,qz=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,qz)}async function ACt(){const e={environment:Wl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${r$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 vCt=!1;function JE(){vCt||(sg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:qz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),vCt=!0)}const nbs=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let SCt=!1,kCt=!1;function twe(){if(SCt)return;SCt=!0,JE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),kD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const ibs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function obs(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||ibs.has(i)));for(const i of n)sg.unregister(i);kD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function jCt(){kCt||(kCt=!0,obs())}class NI{identify(n,i){if(JE(),this.#t=n,n!=null&&i!=null&&(NI.#e==null||!Hln({userId:n,traits:i},NI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),NI.#e={userId:n,traits:i},kD()&&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){JE();const r=nbs.has(n);if(this.#t!=null||r){if(twe(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(jCt(),kD()){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){JE(),twe(),sg.track(n,i),jCt(),kD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){JE(),sg.alias(n,i)}reset(){JE(),sg.identify(void 0),this.#t=void 0,NI.#e=void 0}static#e;#t}const nwe=new NI,trn=new Ni.Analytics(nwe);trn.trackWithoutUserId=nwe.trackWithoutUserId.bind(nwe);const Ym=trn,rbs="openAiCfoScope",iwe="openAiCfoScopeOnDashboard";function Qjs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[iwe]:!0,...r}})}function Yjs(e){const n=Cte(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 s$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 nrn(e,n){return(e||n?.chatSessionSummary)??null}const irn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",rte="zeni-ai-cfo-upload-promo-storage-changed",vr=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))}getConnectedAccountProvider(e){const n=window.localStorage.getItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS);if(n!=null)try{const i=JSON.parse(n),r=i!==null&&typeof i=="object"?i[e]:void 0;return typeof r=="string"?r:void 0}catch{return void window.localStorage.removeItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS)}}saveConnectedAccountProvider(e,n){const i=window.localStorage.getItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]!==n&&(r[e]=n,window.localStorage.setItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS,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(rte)),!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(rte))}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 OR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=OR.AES.decrypt(e,n).toString(OR.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_CONNECTED_ACCOUNT_PROVIDERS="ZENI_CONNECTED_ACCOUNT_PROVIDERS";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=irn;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_CONNECTED_ACCOUNT_PROVIDERS,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]},Gjs=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},TT=(e,n)=>{const i=[...e??[]];return i.push(n),i},qjs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Kjs=({state:e})=>vr.isSignedIn()===!0?on.jsx(San,{}):on.jsx(sAt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),abs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function orn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of abs)delete n[i];return n}function sbs(){const e=Pp(),n=Hg(),i=cte(),{tenantEmailDomain:r}=lAt(),[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=>Cte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[iwe]!==!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:{...orn(A),[iwe]: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=TT(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=TT(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(ovt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(Eon,{open:s,onClose:w,children:on.jsxs($on,{children:[s&&!h?on.jsx(Rve,{analytics:Ym,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(a7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const owe=m.createContext(void 0);function l$e(){const e=m.useContext(owe);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const c$e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],d$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],rrn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],arn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],srn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],lrn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],crn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],drn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],urn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function prn(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 hrn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],mrn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],grn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],lbs=[...rrn,...c$e,...d$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",...hrn,...mrn,...grn,...arn,...srn,...lrn,...crn,...drn,...urn];function frn(){const{pathname:e}=Hg(),n=e??"";return lbs.some((i=>cwe(i,n)!=null))||prn(e)}function Gd(e){const{pathname:n}=Hg(),i=n??"";return e.some((r=>cwe(r,i)!=null))}const Zjs=27.22,xrn=m.createContext(null),yrn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function cbs({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(xrn.Provider,{value:c,children:e})}function u$e(){const e=m.useContext(xrn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function dbs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Kln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Yln(c);u.length!==0&&(e(Gln(u)),e(qln({sourceChatSessionId:n})),n!=null&&e(R$e({chatSessionId:n,id:W$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Qln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Wsa(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,...Usa(A)}}const y=pee(p.vendorPolicy,"allow"),b=pee(p.vendorPolicy,"block"),w=hee(p.categoryPolicy,"allow"),C=hee(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:mee(p.limits,Jke),spendLimits:{transaction:mee(p.limits,Zke)}}})({values:c});e(Wln({templates:[u],sourceChatSessionId:n})),n!=null&&e(R$e({chatSessionId:n,id:W$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Uln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(rvt())}:void 0}}const ubs=e=>acn(e,!1),pbs=e=>rcn(e.name,!1);function hbs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Zln(r),l=Jln(r),c=Xln(r),{creditAccount:d}=ecn(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(ubs),cardPolicyVendorSearchOptions:l.map(pbs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:ocn(r),cardPolicyUploadedFileName:icn(r),cardPolicyFormDraft:ncn(e.createCardPolicyState),cardsCreationFormDraft:tcn(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const mbs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=lcn(e.chargeCardState,i);if(r==null)return;const s=ccn(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}}},gbs=e=>n=>{const i=scn(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 fbs(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoAnswerExportEnabled);return n&&J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function xbs({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=is(),{isFeatureEnabled:r}=i(kl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(kl.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}}),JK),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(dcn()),n(z$e()),n(ucn("cardHolderCandidate",!1)),n(pcn(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(hcn())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(rvt())}),[n,l]);const h=m.useMemo((()=>Sdn((x=>{n(z$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=_r((x=>mcn(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),JK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const brn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],wrn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],ybs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],bbs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],wbs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Cbs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Abs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Crn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Arn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],vbs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function p$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":vbs.includes(r)?r:null}const Sbs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),kbs=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function h$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 vrn(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Srn(e,n,i){return vrn(e,n,(r=>!i.has(r)))}function krn(e){return Srn(e,"bills",Sbs)}function jrn(e){return Srn(e,"reimbursements",kbs)}function m$e(e){return vrn(e,"tasks",(n=>n==="group"))}const jbs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),$bs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function g$e(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return jbs.has(i)?"checking":"checking_details"}function f$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 $bs.has(i)?"cards":"cards_detail"}function $rn(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Ern(e){return Vh(e)[1]==="performance"?"performance":void 0}function Irn(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Drn(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=>cwe(i,e)!=null))}function Ebs(e){return _2(e,c$e)?"reports":_2(e,brn)?"ap_aging":_2(e,wrn)?"ar_aging":h$e(e)!=null?"vendors_tab":_2(e,d$e)?"forecast":p$e(e)!=null?"month_end_close_review":_2(e,Crn)?"cash_balance":_2(e,Arn)?"card_balance":m$e(e)?"task_checklist":$rn(e)!=null?"transaction_detail":Ern(e)!=null?"performance":Irn(e)!=null?"bills_detail":Drn(e)!=null?"reimbursement_detail":krn(e)?"bills_list":jrn(e)?"reimbursement_list":_2(e,ybs)?"cash_in_cash_out":_2(e,bbs)?"operating_expenses":_2(e,wbs)?"revenue":_2(e,Cbs)?"net_burn_or_income":_2(e,Abs)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":g$e(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":f$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 Trn(e,n){switch(Ebs(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 h$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=p$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 g$e(e);case"treasury":return"treasury";case"cards":return f$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Lrn(){const{pathname:e}=Hg(),n=e??"",i=_r((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Trn(n,{selectedReportId:i})),[n,i])}function x$e(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoEnabled),i=_r((s=>Np(s))),r=vr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Ibs(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoNavButtonEnabled),i=x$e();return n&&i}const Brn=m.createContext(void 0),Dbs=({children:e})=>{const{tenantEmailDomain:n}=lAt(),i=n!=null?vr.getSignedInUserTenant(n):void 0,r=_r((u=>Np(u))),s=Ate().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Brn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Tbs=()=>{const e=m.useContext(Brn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Prn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Mrn(e){const{areTenantIdsInSync:n}=Tbs(),i=x$e(),r=Ibs();return n&&e&&r&&i}function Jjs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=cAt(),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=Ewe(s.getState(),d)?.fetchState;Prn(u,c)&&r(svt({pageContext:d}))}}),[i,r,n,s])}function Orn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=cAt(),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=Ewe(c.getState(),i)?.fetchState;Prn(g,p||h)&&l(svt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Mrn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Xjs(e){Orn({pageContext:Lrn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Lbs,sampleQuestion2:Bbs,sampleQuestion3:Pbs}}=ae.getLocalizedStrings().aiCfo,Mbs=[Lbs,Bbs,Pbs];function Obs(e,n=!1){Orn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Mrn(!0),r=_r((g=>e!=null&&e!==""?Ewe(g,e):void 0)),{useDynamicConfig:s}=is(),{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:[...Mbs]),[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 Fbs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!vr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(rte,l);const c=d=>{d.key===irn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(rte,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&vr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Frn=m.createContext(void 0),ate=()=>m.useContext(Frn),$Ct=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Rbs=e=>{const n=vr.isSignedIn(),i=vr.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){$Ct(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 bcn(ws.pusherClientSecret,{cluster:ws.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&&jD(C,u),f!=null&&jD(C,f),p!=null&&jD(C,p)))},w=()=>{const C=Ate();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),dvt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),$Ct(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Frn.Provider,{value:c,children:e.children})};function jD(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 zbs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Rrn=e=>n=>{const i=ate(),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]=zbs(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})},e$s=210;function t$s(e){return e?.data.unread!=null&&e?.mode!=null}const y$e=e=>Xci.includes(e),b$e=e=>FOt.includes(e),w$e=e=>edi.includes(e),Nbs={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"},_bs=e=>{if(w$e(e)){const n=Nbs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return y$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":eSe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:b$e(e)?`ai-cfo/${e}`:e},Vbs=["dashboard","reports","forecast","vendors","customers","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],n$s=e=>{if(y$e(e)||b$e(e)||w$e(e))return!0;const n=_bs(e).split("/")[0];return!Vbs.includes(n)},ECt=(e,n)=>e.includes(n),ICt=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(ECt(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&&eSe(s)?Jci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of FOt)if(ECt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function Hbs(e){let n=ICt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=ICt(i[r])}return n??"home"}function i$s(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function o$s(e){return e.pathname.split("/")[2]==="invoicing"}function r$s(e){return e.pathname.includes("ai-cfo")}function a$s(e,n){const i=Hbs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":w$e(i)?`invoicing/${i.replace("invoicing_","")}`:y$e(i)?"settings/my_profile":b$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":eSe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Ubs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(uvt(r.tenantId)),e(pvt(s.userId,r.tenantId,s.zeniSessionId))),Ym.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Wbs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=cte(),p=Hg(),{setLoading:h}=u$e(),g=vr.getSignedInUser(),f=Jz(g),{useDynamicConfig:x}=is(),{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"?wcn(O):[])),k=_r((O=>e?.tenantId!=null?Ccn(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(M5e());const H=TT(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(M5e()),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(avt({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=TT(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(yrn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Ubs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Xc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(Qbs,{children:[on.jsxs(Ybs,{children:[on.jsx(t_t,{}),on.jsx(f_t,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(Gbs,{children:on.jsx(o_t,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(qbs,{children:[g!=null&&on.jsx(NN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(Kbs,{onClick:z,children:on.jsx(Zbs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const Qbs=a.div`
92526
+ `,OR=nAt(kdn()),Z6s=["sandbox","production"],J6s=["development","staging","production"],X6s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],kD=()=>Wl==="DEV"||Wl==="QA"||Wl==="PUNE"||Wl==="SUNNYVALE"||Wl==="DELHI"||Wl==="MOHALI",r$e="https://zeni-webapp-qa.uc.r.appspot.com",Wl=(e=>b7(e,X6s))("QA"),Wjs=(e=>b7(e,Z6s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Wl)),CCt=(e=>b7(e,J6s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Wl)),ebs=(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"}})(Wl);function Zon(e,n){return OR.AES.decrypt(e,n).toString(OR.enc.Utf8)}const Jon="ZENI-WEB-APP-",a$e=Wl==="DEV"||Wl==="QA"?.2:.8,Xon=a$e,ws={sentryDsn:"",sentryTraceSamplingRate:a$e,sentryProfileSamplingRate:Xon,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",statsigNonBlockingInit:!1,cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let J4,qz;function tbs(){return J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function ern(e){ws.sentryDsn=e.keys.SENTRY_DSN,ws.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):a$e,ws.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Xon,ws.googleClientId=e.keys.GOOGLE_CLIENT_ID,ws.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ws.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ws.mixpanelToken=e.keys.MIXPANEL_TOKEN,ws.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ws.pusherCluster=e.keys.PUSHER_CLUSTER,ws.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ws.appUrl=e.keys.WEB_ENDPOINT,ws.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ws.statsigNonBlockingInit=e.keys.STATSIG_NON_BLOCKING_INIT==="true",ws.cardVaultId=e.keys.UNIT_VAULT_ID,ws.stripeKey=e.keys.STRIPE_KEY,ws.qboRedirectionUrl=e.keys.QBO_URL,ws.mixpanelUrl=e.keys.MIXPANEL_URL,ws.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,qz=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,qz)}async function ACt(){const e={environment:Wl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${r$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 vCt=!1;function JE(){vCt||(sg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:qz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),vCt=!0)}const nbs=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let SCt=!1,kCt=!1;function twe(){if(SCt)return;SCt=!0,JE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),kD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const ibs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function obs(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||ibs.has(i)));for(const i of n)sg.unregister(i);kD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function jCt(){kCt||(kCt=!0,obs())}class NI{identify(n,i){if(JE(),this.#t=n,n!=null&&i!=null&&(NI.#e==null||!Hln({userId:n,traits:i},NI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),NI.#e={userId:n,traits:i},kD()&&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){JE();const r=nbs.has(n);if(this.#t!=null||r){if(twe(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(jCt(),kD()){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){JE(),twe(),sg.track(n,i),jCt(),kD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){JE(),sg.alias(n,i)}reset(){JE(),sg.identify(void 0),this.#t=void 0,NI.#e=void 0}static#e;#t}const nwe=new NI,trn=new Ni.Analytics(nwe);trn.trackWithoutUserId=nwe.trackWithoutUserId.bind(nwe);const Ym=trn,rbs="openAiCfoScope",iwe="openAiCfoScopeOnDashboard";function Qjs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[iwe]:!0,...r}})}function Yjs(e){const n=Cte(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 s$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 nrn(e,n){return(e||n?.chatSessionSummary)??null}const irn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",rte="zeni-ai-cfo-upload-promo-storage-changed",vr=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))}getConnectedAccountProvider(e){const n=window.localStorage.getItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS);if(n!=null)try{const i=JSON.parse(n),r=i!==null&&typeof i=="object"?i[e]:void 0;return typeof r=="string"?r:void 0}catch{return void window.localStorage.removeItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS)}}saveConnectedAccountProvider(e,n){const i=window.localStorage.getItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]!==n&&(r[e]=n,window.localStorage.setItem(this.ZENI_CONNECTED_ACCOUNT_PROVIDERS,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(rte)),!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(rte))}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 OR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=OR.AES.decrypt(e,n).toString(OR.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_CONNECTED_ACCOUNT_PROVIDERS="ZENI_CONNECTED_ACCOUNT_PROVIDERS";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=irn;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_CONNECTED_ACCOUNT_PROVIDERS,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]},Gjs=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},TT=(e,n)=>{const i=[...e??[]];return i.push(n),i},qjs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Kjs=({state:e})=>vr.isSignedIn()===!0?on.jsx(San,{}):on.jsx(sAt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),abs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function orn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of abs)delete n[i];return n}function sbs(){const e=Pp(),n=Hg(),i=cte(),{tenantEmailDomain:r}=lAt(),[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=>Cte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[iwe]!==!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:{...orn(A),[iwe]: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=TT(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=TT(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(ovt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(Eon,{open:s,onClose:w,children:on.jsxs($on,{children:[s&&!h?on.jsx(Rve,{analytics:Ym,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(a7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const owe=m.createContext(void 0);function l$e(){const e=m.useContext(owe);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const c$e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],d$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],rrn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],arn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],srn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],lrn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],crn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],drn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],urn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function prn(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 hrn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],mrn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],grn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],lbs=[...rrn,...c$e,...d$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",...hrn,...mrn,...grn,...arn,...srn,...lrn,...crn,...drn,...urn];function frn(){const{pathname:e}=Hg(),n=e??"";return lbs.some((i=>cwe(i,n)!=null))||prn(e)}function Gd(e){const{pathname:n}=Hg(),i=n??"";return e.some((r=>cwe(r,i)!=null))}const Zjs=27.22,xrn=m.createContext(null),yrn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function cbs({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(xrn.Provider,{value:c,children:e})}function u$e(){const e=m.useContext(xrn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function dbs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Kln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Yln(c);u.length!==0&&(e(Gln(u)),e(qln({sourceChatSessionId:n})),n!=null&&e(R$e({chatSessionId:n,id:W$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Qln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Wsa(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,...Usa(A)}}const y=pee(p.vendorPolicy,"allow"),b=pee(p.vendorPolicy,"block"),w=hee(p.categoryPolicy,"allow"),C=hee(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:mee(p.limits,Jke),spendLimits:{transaction:mee(p.limits,Zke)}}})({values:c});e(Wln({templates:[u],sourceChatSessionId:n})),n!=null&&e(R$e({chatSessionId:n,id:W$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Uln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(rvt())}:void 0}}const ubs=e=>acn(e,!1),pbs=e=>rcn(e.name,!1);function hbs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Zln(r),l=Jln(r),c=Xln(r),{creditAccount:d}=ecn(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(ubs),cardPolicyVendorSearchOptions:l.map(pbs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:ocn(r),cardPolicyUploadedFileName:icn(r),cardPolicyFormDraft:ncn(e.createCardPolicyState),cardsCreationFormDraft:tcn(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const mbs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=lcn(e.chargeCardState,i);if(r==null)return;const s=ccn(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}}},gbs=e=>n=>{const i=scn(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 fbs(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoAnswerExportEnabled);return n&&J4?.aiCfoMicroServiceBaseUrl!=null?`${J4.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function xbs({isHydrationEnabled:e=!0}={}){const n=Pp(),{useFeatureGate:i}=is(),{isFeatureEnabled:r}=i(kl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(kl.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}}),JK),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(dcn()),n(z$e()),n(ucn("cardHolderCandidate",!1)),n(pcn(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(hcn())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(rvt())}),[n,l]);const h=m.useMemo((()=>Sdn((x=>{n(z$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=_r((x=>mcn(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),JK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const brn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],wrn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],ybs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],bbs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],wbs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Cbs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Abs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Crn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Arn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],vbs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function p$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":vbs.includes(r)?r:null}const Sbs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),kbs=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function h$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 vrn(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Srn(e,n,i){return vrn(e,n,(r=>!i.has(r)))}function krn(e){return Srn(e,"bills",Sbs)}function jrn(e){return Srn(e,"reimbursements",kbs)}function m$e(e){return vrn(e,"tasks",(n=>n==="group"))}const jbs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),$bs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function g$e(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return jbs.has(i)?"checking":"checking_details"}function f$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 $bs.has(i)?"cards":"cards_detail"}function $rn(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Ern(e){return Vh(e)[1]==="performance"?"performance":void 0}function Irn(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Drn(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=>cwe(i,e)!=null))}function Ebs(e){return _2(e,c$e)?"reports":_2(e,brn)?"ap_aging":_2(e,wrn)?"ar_aging":h$e(e)!=null?"vendors_tab":_2(e,d$e)?"forecast":p$e(e)!=null?"month_end_close_review":_2(e,Crn)?"cash_balance":_2(e,Arn)?"card_balance":m$e(e)?"task_checklist":$rn(e)!=null?"transaction_detail":Ern(e)!=null?"performance":Irn(e)!=null?"bills_detail":Drn(e)!=null?"reimbursement_detail":krn(e)?"bills_list":jrn(e)?"reimbursement_list":_2(e,ybs)?"cash_in_cash_out":_2(e,bbs)?"operating_expenses":_2(e,wbs)?"revenue":_2(e,Cbs)?"net_burn_or_income":_2(e,Abs)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":g$e(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":f$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 Trn(e,n){switch(Ebs(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 h$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=p$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 g$e(e);case"treasury":return"treasury";case"cards":return f$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Lrn(){const{pathname:e}=Hg(),n=e??"",i=_r((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Trn(n,{selectedReportId:i})),[n,i])}function x$e(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoEnabled),i=_r((s=>Np(s))),r=vr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Ibs(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(kl.isAiCfoNavButtonEnabled),i=x$e();return n&&i}const Brn=m.createContext(void 0),Dbs=({children:e})=>{const{tenantEmailDomain:n}=lAt(),i=n!=null?vr.getSignedInUserTenant(n):void 0,r=_r((u=>Np(u))),s=Ate().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Brn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Tbs=()=>{const e=m.useContext(Brn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Prn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Mrn(e){const{areTenantIdsInSync:n}=Tbs(),i=x$e(),r=Ibs();return n&&e&&r&&i}function Jjs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Pp(),s=cAt(),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=Ewe(s.getState(),d)?.fetchState;Prn(u,c)&&r(svt({pageContext:d}))}}),[i,r,n,s])}function Orn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Pp(),c=cAt(),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=Ewe(c.getState(),i)?.fetchState;Prn(g,p||h)&&l(svt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Mrn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Xjs(e){Orn({pageContext:Lrn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Lbs,sampleQuestion2:Bbs,sampleQuestion3:Pbs}}=ae.getLocalizedStrings().aiCfo,Mbs=[Lbs,Bbs,Pbs];function Obs(e,n=!1){Orn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Mrn(!0),r=_r((g=>e!=null&&e!==""?Ewe(g,e):void 0)),{useDynamicConfig:s}=is(),{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:[...Mbs]),[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 Fbs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!vr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(rte,l);const c=d=>{d.key===irn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(rte,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&vr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Frn=m.createContext(void 0),ate=()=>m.useContext(Frn),$Ct=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Rbs=e=>{const n=vr.isSignedIn(),i=vr.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){$Ct(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 bcn(ws.pusherClientSecret,{cluster:ws.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&&jD(C,u),f!=null&&jD(C,f),p!=null&&jD(C,p)))},w=()=>{const C=Ate();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),dvt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),$Ct(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Frn.Provider,{value:c,children:e.children})};function jD(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 zbs=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Rrn=e=>n=>{const i=ate(),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]=zbs(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})},e$s=210;function t$s(e){return e?.data.unread!=null&&e?.mode!=null}const y$e=e=>Xci.includes(e),b$e=e=>FOt.includes(e),w$e=e=>edi.includes(e),Nbs={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"},_bs=e=>{if(w$e(e)){const n=Nbs[e];return n??`invoicing/${e.replace("invoicing_","")}`}return y$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":eSe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:b$e(e)?`ai-cfo/${e}`:e},Vbs=["dashboard","reports","forecast","vendors","customers","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],n$s=e=>{if(y$e(e)||b$e(e)||w$e(e))return!0;const n=_bs(e).split("/")[0];return!Vbs.includes(n)},ECt=(e,n)=>e.includes(n),ICt=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(ECt(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&&eSe(s)?Jci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of FOt)if(ECt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function Hbs(e){let n=ICt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=ICt(i[r])}return n??"home"}function i$s(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function o$s(e){return e.pathname.split("/")[2]==="invoicing"}function r$s(e){return e.pathname.includes("ai-cfo")}function a$s(e,n){const i=Hbs(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":w$e(i)?`invoicing/${i.replace("invoicing_","")}`:y$e(i)?"settings/my_profile":b$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":eSe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function Ubs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(uvt(r.tenantId)),e(pvt(s.userId,r.tenantId,s.zeniSessionId))),Ym.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function Wbs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Pp(),u=cte(),p=Hg(),{setLoading:h}=u$e(),g=vr.getSignedInUser(),f=Jz(g),{useDynamicConfig:x}=is(),{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"?wcn(O):[])),k=_r((O=>e?.tenantId!=null?Ccn(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(M5e());const H=TT(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(M5e()),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(avt({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=TT(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(yrn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;Ubs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Xc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(Qbs,{children:[on.jsxs(Ybs,{children:[on.jsx(t_t,{}),on.jsx(f_t,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(Gbs,{children:on.jsx(o_t,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(qbs,{children:[g!=null&&on.jsx(NN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(Kbs,{onClick:z,children:on.jsx(Zbs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const Qbs=a.div`
92527
92527
  display: flex;
92528
92528
  flex: 1 1 auto;
92529
92529
  flex-direction: column;
@@ -92611,7 +92611,7 @@ ${JM.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
- `,p9s=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=_r((g=>hvt(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=vr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{r&&u?.companyId!=null&&d==="Not-Started"&&i(Rcn(u.companyId))}),[r,d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(zve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(d9s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},TCt="init-enter",h9s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||TCt);m9s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||TCt,c=g9s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),m9s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),g9s=()=>{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=vr.getForceRefreshedComponents(),r=new Set(i),s=vr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),s$s=(e,n,i)=>{const r=xwe(e),s=fte(e),l=ywe(i,e);return(n||i||s||r||l)&&fwe(e.company)},Vrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Hrn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Urn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Wrn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Cc(...e){const n=Wl==="DEV"||Wl==="QA";if(Vrn||Hrn||Urn||Wrn)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 $D(...e){const n=Wl==="DEV"||Wl==="QA";if(Vrn||Hrn||Urn||Wrn)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 bE=null,uO=!1;const Ac=Wl==="PROD"?"https://api.zeni.ai":Wl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function LCt(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:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const f9s={dashboard:function(e){return[...LCt()]},reports:LCt,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:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Ac}/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:`${Ac}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Ac}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Ac}/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:`${Ac}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Ac}/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:`${Ac}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Ac}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Ac}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Ac}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function BCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,f9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return Cc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function PCt(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?(Cc("[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 $D("[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);Cc("[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)=>{Cc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Cc(` URL: ${u.url}`)}));const c=Ate(),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}}),Cc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){$D("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else $D("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function x9s({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=vr.getSignedInUser(),{useFeatureGate:k}=is(),{isFeatureEnabled:$}=k(kl.isReferralFeatureEnabled),j=Ln(),I=zy(j?.loggedInUserRole??[]),E=_r((_=>Np(_))),{isFeatureEnabled:D}=k(kl.isDebitCardFeatureEnabled),L=ywe(D,E),F=xwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=BCt({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 Cc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);Cc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{PCt(_,r,s).catch((M=>{$D(`[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;Cc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;Cc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{uO&&(Cc("[Idle Detection - Service Worker] 🏃 User became active again"),uO=!1),bE&&clearTimeout(bE),bE=setTimeout((()=>{uO||(Cc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),uO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{Cc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),bE&&(clearTimeout(bE),bE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),uO=!1}})({timeout:h,onIdle:()=>{if(b)return;Cc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=BCt({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?(Cc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),PCt(z,r,s).catch((M=>{$D(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):Cc(`[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&&(Cc("[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;Cc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){$D("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function y9s({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}=is(),{isFeatureEnabled:x}=f(kl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(x9s,{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 b9s(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 w9s=cm((()=>ya((()=>import("./DefaultTenantHome-C6Ygdgwt.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),C9s=cm((()=>ya((()=>import("./AppDrawer-DzYZBC2G.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,13,7,8])))),MCt=cm((()=>ya((()=>import("./ScreenRoutes-B_WT7FAm.js")),__vite__mapDeps([14,0,1,2,5,15,6,12,16,7,8])))),A9s=cm((()=>ya((()=>import("./ConnectionAuthScreen-CuZmfRIp.js")),__vite__mapDeps([17,1,2,0,5,18,19,10,11,12,20,8,21,22,23,24,25,26,6,7])))),v9s=cm((()=>ya((()=>import("./SignInScreen-H_SOl_FQ.js")),__vite__mapDeps([27,1,2,0,5,28,15,6,7,8])))),S9s=cm((()=>ya((()=>import("./MagicLinkSignInScreen-CD7Pya_j.js")),__vite__mapDeps([29,1,2,0,5,28,15,6,7,8])))),OCt=cm((()=>ya((()=>import("./NotFoundScreen-DXy-BCit.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),k9s=cm((()=>ya((()=>import("./MagicLinkRoutes-DJX5Nm1n.js")),__vite__mapDeps([31,1,2,0,5,30,7,8])))),j9s=cm((()=>ya((()=>import("./PaymentLinkScreen-CndVAq3p.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),$9s=cm((()=>ya((()=>import("./WiseConfirmationScreen-BpRHCykr.js")),__vite__mapDeps([33,1,2,0,5,7,8])))),E9s=cm((()=>ya((()=>import("./HubSpotOAuthCallbackScreen-Di0pbhHE.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),I9s=cm((()=>ya((()=>import("./CustomerOnboardingAuthScreen-BjmJLllh.js")),__vite__mapDeps([35,1,2,0,20,8,21,22,23,24,5,25,7])))),D9s=cm((()=>ya((()=>import("./SignOutScreen-OFswrnt8.js")),__vite__mapDeps([36,1,2,0,5,7,8])))),T9s=cm((()=>ya((()=>import("./OAuthConsentScreen-BA2eBLib.js")),__vite__mapDeps([37,1,2,0,5,7,8])))),L9s=()=>{const e=Hg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=b9s("/",n);return on.jsx(sAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function B9s(){const{isOpen:e}=ak(),n=xui(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=l$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 P9s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=vr.isSignedIn(),r=_r((j=>Np(j))),s=vr.getSignedInUser(),l=i&&Jz(s),c=_r((j=>zcn(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=frn(),g=x$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}=is(),{isFeatureEnabled:A}=C(kl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Ncn())}),[u,h]);const S=Hg().pathname.includes("/collect-payment/"),k=on.jsx(M9s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(XWe,{children:on.jsx(oft,{children:on.jsx(owe.Provider,{value:w,children:k})})});const $=on.jsxs(owe.Provider,{value:w,children:[on.jsx(B9s,{}),on.jsxs(R9s,{children:[on.jsx(C9s,{tenantEmailDomain:e}),on.jsx(O9s,{children:k})]})]});return on.jsx(XWe,{children:r.tenantId!=null?on.jsx(d3a,{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(oft,{children:$})})},M9s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=_r((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=is(),{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}=u$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=l$e();return m.useEffect((()=>{h(yrn.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(y9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(jan,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(k9s,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(j9s,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx($9s,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(OCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(w9s,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(L9s,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(I9s,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(N9s,{children:on.jsxs(Dbs,{children:[on.jsxs(_9s,{children:[s!=null?on.jsx(p9s,{}):null,n?on.jsx(MCt,{setTenantEmailDomain:e}):on.jsx(j5e,{children:on.jsx(MCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(sbs,{}),on.jsx(V9s,{isOpen:g,children:on.jsx(n9s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(j5e,{children:on.jsx(v9s,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(j5e,{children:on.jsx(S9s,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(D9s,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(A9s,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(E9s,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(T9s,{})}),on.jsx(q1,{path:"*",element:on.jsx(OCt,{})})]})})})},O9s=({children:e})=>{const{isOpen:n,width:i}=ak();return on.jsx(z9s,{commentsDrawerWidth:n?i:0,children:e})},F9s=MS("div")`
92614
+ `,p9s=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser())),i=Pp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=_r((g=>hvt(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=vr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{r&&u?.companyId!=null&&d==="Not-Started"&&i(Rcn(u.companyId))}),[r,d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(zve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(d9s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},TCt="init-enter",h9s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||TCt);m9s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||TCt,c=g9s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),m9s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),g9s=()=>{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=vr.getForceRefreshedComponents(),r=new Set(i),s=vr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),s$s=(e,n,i)=>{const r=xwe(e),s=fte(e),l=ywe(i,e);return(n||i||s||r||l)&&fwe(e.company)},Vrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Hrn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Urn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Wrn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Cc(...e){const n=Wl==="DEV"||Wl==="QA";if(Vrn||Hrn||Urn||Wrn)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 $D(...e){const n=Wl==="DEV"||Wl==="QA";if(Vrn||Hrn||Urn||Wrn)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 bE=null,uO=!1;const Ac=Wl==="PROD"?"https://api.zeni.ai":Wl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function LCt(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:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Ac}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const f9s={dashboard:function(e){return[...LCt()]},reports:LCt,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:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Ac}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Ac}/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:`${Ac}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Ac}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Ac}/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:`${Ac}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Ac}/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:`${Ac}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Ac}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Ac}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Ac}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function BCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,f9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(Cc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return Cc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function PCt(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?(Cc("[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 $D("[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);Cc("[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)=>{Cc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Cc(` URL: ${u.url}`)}));const c=Ate(),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}}),Cc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){$D("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else $D("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function x9s({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=vr.getSignedInUser(),{useFeatureGate:k}=is(),{isFeatureEnabled:$}=k(kl.isReferralFeatureEnabled),j=Ln(),I=zy(j?.loggedInUserRole??[]),E=_r((_=>Np(_))),{isFeatureEnabled:D}=k(kl.isDebitCardFeatureEnabled),L=ywe(D,E),F=xwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=BCt({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 Cc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);Cc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{PCt(_,r,s).catch((M=>{$D(`[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;Cc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;Cc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{uO&&(Cc("[Idle Detection - Service Worker] 🏃 User became active again"),uO=!1),bE&&clearTimeout(bE),bE=setTimeout((()=>{uO||(Cc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),uO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{Cc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),bE&&(clearTimeout(bE),bE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),uO=!1}})({timeout:h,onIdle:()=>{if(b)return;Cc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=BCt({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?(Cc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),PCt(z,r,s).catch((M=>{$D(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):Cc(`[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&&(Cc("[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;Cc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){$D("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function y9s({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}=is(),{isFeatureEnabled:x}=f(kl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(x9s,{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 b9s(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 w9s=cm((()=>ya((()=>import("./DefaultTenantHome-BXHCzE_E.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),C9s=cm((()=>ya((()=>import("./AppDrawer-MZfZEsF3.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,13,7,8])))),MCt=cm((()=>ya((()=>import("./ScreenRoutes-2L_gx3e5.js")),__vite__mapDeps([14,0,1,2,5,15,6,12,16,7,8])))),A9s=cm((()=>ya((()=>import("./ConnectionAuthScreen-DyBecMUz.js")),__vite__mapDeps([17,1,2,0,5,18,19,10,11,12,20,8,21,22,23,24,25,26,6,7])))),v9s=cm((()=>ya((()=>import("./SignInScreen-FEFXu8DO.js")),__vite__mapDeps([27,1,2,0,5,28,15,6,7,8])))),S9s=cm((()=>ya((()=>import("./MagicLinkSignInScreen-IWCCJ9ka.js")),__vite__mapDeps([29,1,2,0,5,28,15,6,7,8])))),OCt=cm((()=>ya((()=>import("./NotFoundScreen-uAMK84U0.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),k9s=cm((()=>ya((()=>import("./MagicLinkRoutes-DzWLI6xy.js")),__vite__mapDeps([31,1,2,0,5,30,7,8])))),j9s=cm((()=>ya((()=>import("./PaymentLinkScreen-BSjOZXP5.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),$9s=cm((()=>ya((()=>import("./WiseConfirmationScreen-CaYZ0YWP.js")),__vite__mapDeps([33,1,2,0,5,7,8])))),E9s=cm((()=>ya((()=>import("./HubSpotOAuthCallbackScreen-Bj536BjH.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),I9s=cm((()=>ya((()=>import("./CustomerOnboardingAuthScreen-CzPQ6hPn.js")),__vite__mapDeps([35,1,2,0,20,8,21,22,23,24,5,25,7])))),D9s=cm((()=>ya((()=>import("./SignOutScreen-Cj5aMtR8.js")),__vite__mapDeps([36,1,2,0,5,7,8])))),T9s=cm((()=>ya((()=>import("./OAuthConsentScreen-C_U40gXc.js")),__vite__mapDeps([37,1,2,0,5,7,8])))),L9s=()=>{const e=Hg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=b9s("/",n);return on.jsx(sAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function B9s(){const{isOpen:e}=ak(),n=xui(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=l$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 P9s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=vr.isSignedIn(),r=_r((j=>Np(j))),s=vr.getSignedInUser(),l=i&&Jz(s),c=_r((j=>zcn(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=frn(),g=x$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}=is(),{isFeatureEnabled:A}=C(kl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Ncn())}),[u,h]);const S=Hg().pathname.includes("/collect-payment/"),k=on.jsx(M9s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(XWe,{children:on.jsx(oft,{children:on.jsx(owe.Provider,{value:w,children:k})})});const $=on.jsxs(owe.Provider,{value:w,children:[on.jsx(B9s,{}),on.jsxs(R9s,{children:[on.jsx(C9s,{tenantEmailDomain:e}),on.jsx(O9s,{children:k})]})]});return on.jsx(XWe,{children:r.tenantId!=null?on.jsx(d3a,{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(oft,{children:$})})},M9s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=_r((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=is(),{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}=u$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=l$e();return m.useEffect((()=>{h(yrn.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(y9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(jan,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(k9s,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(j9s,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx($9s,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(OCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(w9s,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(L9s,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(I9s,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(N9s,{children:on.jsxs(Dbs,{children:[on.jsxs(_9s,{children:[s!=null?on.jsx(p9s,{}):null,n?on.jsx(MCt,{setTenantEmailDomain:e}):on.jsx(j5e,{children:on.jsx(MCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(sbs,{}),on.jsx(V9s,{isOpen:g,children:on.jsx(n9s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(j5e,{children:on.jsx(v9s,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(j5e,{children:on.jsx(S9s,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(D9s,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(A9s,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(E9s,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(T9s,{})}),on.jsx(q1,{path:"*",element:on.jsx(OCt,{})})]})})})},O9s=({children:e})=>{const{isOpen:n,width:i}=ak();return on.jsx(z9s,{commentsDrawerWidth:n?i:0,children:e})},F9s=MS("div")`
92615
92615
  display:flex;
92616
92616
  `,R9s=MS("div")`
92617
92617
  display: flex;
@@ -92731,6 +92731,6 @@ ${JM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
92731
92731
  0%, 100% { fill: ${e=>e.theme.colors.grey2}; }
92732
92732
  50% { fill: ${e=>e.theme.colors.grey3}; }
92733
92733
  }
92734
- `,s8s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(n8s,{style:n,children:[on.jsxs(i8s,{children:[on.jsx(xq,{children:on.jsx(V0,{width:96,height:20})}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:78,height:16}),on.jsx(V0,{width:46,height:16})]}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:110,height:16}),on.jsx(V0,{width:84,height:16})]}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:84,height:16}),on.jsx(V0,{width:64,height:16})]})]}),on.jsxs(o8s,{children:[on.jsxs(r8s,{children:[on.jsx(V0,{width:106,height:27}),on.jsx(V0,{width:111,height:32})]}),on.jsx(a8s,{children:on.jsx(t8s,{width:96,height:96})})]})]}):null;function l8s({minDisplayTime:e=0}){const{isLoading:n}=u$e(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),vr.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(s8s,{fetchState:"In-Progress"})}const c8s=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(vr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},zCt="missing-receipts-batch-completed";let awe=null,swe=!1;function c$s(e,n){if(!n)return awe=null,void(swe=!1);awe=e,swe=!0}const d8s=()=>{const e=Pp(),{useFeatureGate:n}=is(),{isFeatureEnabled:i}=n(kl.isReconV3Enabled),r=_r((l=>mvt(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 swe&&awe===p})(l)||u!=="In-Progress"||d!=="Completed"||e(cvt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:ycs(c)},{variableName:"_transaction_count_",variableValue:String(bcs(c))}]})),s.current[l]=d}))}),[r,e,i])},NCt="reconciliation-status-updated",_Ct="statement-status-updated",VCt="combined-statement-group-updated";function u8s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function p8s(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(gvt(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(Wcn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(fvt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function h8s(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(u8s(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(gvt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Qcn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):fvt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}const Krn={dashboard:()=>ya((()=>import("./DashboardRoutes-C8RZkkYj.js")),__vite__mapDeps([38,1,2,0,5,39,40,41,25,42,43,13,8,44,12,30,7,45,15,46,19,10,11,47,48])),bills:()=>ya((()=>import("./BillPayRoutes-HAS0-pNc.js")),__vite__mapDeps([49,1,2,0,5,50,30,7,8,51,40,42,52,43,19,10,11,12,53,48,54,15,55,56,57,16])),reimbursement:()=>ya((()=>import("./ReimbursementRoutes-CI3m7PHD.js")),__vite__mapDeps([58,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,48,40,42,53,16,59,56,57])),transactions:()=>ya((()=>import("./TransactionListRoutes-THtfycHC.js")),__vite__mapDeps([60,1,2,0,5,39,40,41,25,42,43,13,8,44,61,7])),settings:()=>ya((()=>import("./SettingsRoutes-_XBnyBgG.js")),__vite__mapDeps([62,1,2,0,5,11,18,19,10,12,20,8,21,22,23,24,25,26,50,30,7,15,52,43,46,63,55,56,57,59])),reports:()=>ya((()=>import("./ReportsRoutes-C7A0Ycu_.js")),__vite__mapDeps([64,1,2,0,5,30,7,8,48,42,43,45,19,10,11,12])),chargeCards:()=>ya((()=>import("./ChargeCardRoutes-DgtmFgR6.js")),__vite__mapDeps([65,1,2,0,5,40,19,10,11,12,54,52,43,30,7,8,15,42,66,50])),people:()=>ya((()=>import("./PeopleRoutes-kralZgbz.js")),__vite__mapDeps([67,1,2,0,5,30,7,8,40,19,10,11,12])),expenseAutomation:()=>ya((()=>import("./ExpenseAutomationRoutes-BKrWZyYV.js")),__vite__mapDeps([68,1,2,0,30,5,7,8,40,41,25,42,43,13,69,44,39,70,71,26,53])),treasury:()=>ya((()=>import("./TreasuryRoutes-CgHwdyKd.js")),__vite__mapDeps([72,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,40,42,48])),vendors:()=>ya((()=>import("./VendorsRoutes-jETcYESc.js")),__vite__mapDeps([73,1,2,0,5,50,30,7,8,48,70,71,69,44,25,43,40,19,10,11,12,53,26])),zeniAccounts:()=>ya((()=>import("./ZeniAccountRoutes-C8cr5UMy.js")),__vite__mapDeps([74,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,48,51,50,40,61])),taskList:()=>ya((()=>import("./TaskListScreen-Bmj5V_dR.js").then((e=>e.f))),__vite__mapDeps([75,1,2,0,5,40,19,10,11,12,76])),tasks:()=>ya((()=>import("./TaskRoutes-D6cEqDZN.js")),__vite__mapDeps([77,1,2,0,30,5,7,8,42,19,10,11,12,75,40,76])),forecast:()=>ya((()=>import("./PandLWithForecastRoutes-Dm5Vnr71.js")),__vite__mapDeps([78,1,2,0,5,30,7,8,48,40,42,43,19,10,11,12]))},m8s={"":"dashboard",dashboard:"dashboard",bill:"bills",bills:"bills",cards:"chargeCards",checking:"zeniAccounts",forecast:"forecast",month_end_close_checks:"expenseAutomation",people:"people",reimbursement:"reimbursement",reimbursements:"reimbursement",reports:"reports",settings:"settings",tasks:"tasks",transactions:"transactions",treasury:"treasury",vendors:"vendors"},g8s=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],$5e=e=>{"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,100)};function d$s(e=g8s,n=3e3){setTimeout((()=>{const i=r=>{if(r>=e.length)return;const s=e[r],l=Krn[s];l!=null?l().then((()=>$5e((()=>i(r+1))))).catch((()=>$5e((()=>i(r+1))))):i(r+1)};$5e((()=>i(0)))}),n)}function f8s(){let e=RCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(J4)}`);const n=vr.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=vr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return vr.getActiveTenantForUser()?.tenantId})():void 0,r=qcn(J4,n?.userId,n?.zeniSessionId,i,kD(),b8s);O5e();const s=Ate();return s.userId!=null&&Ym.identify(s.userId,{tenant_id:s.tenantId}),r})(),Yrn=e,performance.mark("zeni:boot_store_ready"),Grn(e)&&(ya((()=>import("./ScreenRoutes-B_WT7FAm.js")),__vite__mapDeps([14,0,1,2,5,15,6,12,16,7,8])).catch((()=>{})),(function(n){const[,i="",r]=n.split("/").filter(Boolean),s=i==="tasks"&&r==null?"taskList":m8s[i];s!=null&&Krn[s]().catch((()=>{}))})(window.location.pathname)),O5e().then((()=>{const n=RCt();n!=null&&X9s(n)})).catch((n=>{console.error("Failed to load feature epics:",n),oan(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
92734
+ `,s8s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(n8s,{style:n,children:[on.jsxs(i8s,{children:[on.jsx(xq,{children:on.jsx(V0,{width:96,height:20})}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:78,height:16}),on.jsx(V0,{width:46,height:16})]}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:110,height:16}),on.jsx(V0,{width:84,height:16})]}),on.jsxs(xq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:84,height:16}),on.jsx(V0,{width:64,height:16})]})]}),on.jsxs(o8s,{children:[on.jsxs(r8s,{children:[on.jsx(V0,{width:106,height:27}),on.jsx(V0,{width:111,height:32})]}),on.jsx(a8s,{children:on.jsx(t8s,{width:96,height:96})})]})]}):null;function l8s({minDisplayTime:e=0}){const{isLoading:n}=u$e(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),vr.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(s8s,{fetchState:"In-Progress"})}const c8s=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(vr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},zCt="missing-receipts-batch-completed";let awe=null,swe=!1;function c$s(e,n){if(!n)return awe=null,void(swe=!1);awe=e,swe=!0}const d8s=()=>{const e=Pp(),{useFeatureGate:n}=is(),{isFeatureEnabled:i}=n(kl.isReconV3Enabled),r=_r((l=>mvt(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 swe&&awe===p})(l)||u!=="In-Progress"||d!=="Completed"||e(cvt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:ycs(c)},{variableName:"_transaction_count_",variableValue:String(bcs(c))}]})),s.current[l]=d}))}),[r,e,i])},NCt="reconciliation-status-updated",_Ct="statement-status-updated",VCt="combined-statement-group-updated";function u8s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function p8s(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(gvt(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(Wcn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(fvt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function h8s(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(u8s(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(gvt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Qcn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):fvt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}const Krn={dashboard:()=>ya((()=>import("./DashboardRoutes-DIfQCdfV.js")),__vite__mapDeps([38,1,2,0,5,39,40,41,25,42,43,13,8,44,12,30,7,45,15,46,19,10,11,47,48])),bills:()=>ya((()=>import("./BillPayRoutes-B0bTM1N1.js")),__vite__mapDeps([49,1,2,0,5,50,30,7,8,51,40,42,52,43,19,10,11,12,53,48,54,15,55,56,57,16])),reimbursement:()=>ya((()=>import("./ReimbursementRoutes-Df3Aw7DR.js")),__vite__mapDeps([58,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,48,40,42,53,16,59,56,57])),transactions:()=>ya((()=>import("./TransactionListRoutes-DouUxWQV.js")),__vite__mapDeps([60,1,2,0,5,39,40,41,25,42,43,13,8,44,61,7])),settings:()=>ya((()=>import("./SettingsRoutes-CfzdYXCx.js")),__vite__mapDeps([62,1,2,0,5,11,18,19,10,12,20,8,21,22,23,24,25,26,50,30,7,15,52,43,46,63,55,56,57,59])),reports:()=>ya((()=>import("./ReportsRoutes-Ul2BNSj_.js")),__vite__mapDeps([64,1,2,0,5,30,7,8,48,42,43,45,19,10,11,12])),chargeCards:()=>ya((()=>import("./ChargeCardRoutes-snm4_qnH.js")),__vite__mapDeps([65,1,2,0,5,40,19,10,11,12,54,52,43,30,7,8,15,42,66,50])),people:()=>ya((()=>import("./PeopleRoutes-CGvU4cdC.js")),__vite__mapDeps([67,1,2,0,5,30,7,8,40,19,10,11,12])),expenseAutomation:()=>ya((()=>import("./ExpenseAutomationRoutes-CqjUPpuq.js")),__vite__mapDeps([68,1,2,0,30,5,7,8,40,41,25,42,43,13,69,44,39,70,71,26,53])),treasury:()=>ya((()=>import("./TreasuryRoutes-B34-6WTm.js")),__vite__mapDeps([72,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,40,42,48])),vendors:()=>ya((()=>import("./VendorsRoutes-l3RUFxeF.js")),__vite__mapDeps([73,1,2,0,5,50,30,7,8,48,70,71,69,44,25,43,40,19,10,11,12,53,26])),zeniAccounts:()=>ya((()=>import("./ZeniAccountRoutes-D866CG7l.js")),__vite__mapDeps([74,1,2,0,5,30,7,8,54,52,43,19,10,11,12,15,48,51,50,40,61])),taskList:()=>ya((()=>import("./TaskListScreen-CE88Gj9z.js").then((e=>e.f))),__vite__mapDeps([75,1,2,0,5,40,19,10,11,12,76])),tasks:()=>ya((()=>import("./TaskRoutes-C4KiUyaQ.js")),__vite__mapDeps([77,1,2,0,30,5,7,8,42,19,10,11,12,75,40,76])),forecast:()=>ya((()=>import("./PandLWithForecastRoutes-CWaWZqMn.js")),__vite__mapDeps([78,1,2,0,5,30,7,8,48,40,42,43,19,10,11,12]))},m8s={"":"dashboard",dashboard:"dashboard",bill:"bills",bills:"bills",cards:"chargeCards",checking:"zeniAccounts",forecast:"forecast",month_end_close_checks:"expenseAutomation",people:"people",reimbursement:"reimbursement",reimbursements:"reimbursement",reports:"reports",settings:"settings",tasks:"tasks",transactions:"transactions",treasury:"treasury",vendors:"vendors"},g8s=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],$5e=e=>{"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,100)};function d$s(e=g8s,n=3e3){setTimeout((()=>{const i=r=>{if(r>=e.length)return;const s=e[r],l=Krn[s];l!=null?l().then((()=>$5e((()=>i(r+1))))).catch((()=>$5e((()=>i(r+1))))):i(r+1)};$5e((()=>i(0)))}),n)}function f8s(){let e=RCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(J4)}`);const n=vr.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=vr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return vr.getActiveTenantForUser()?.tenantId})():void 0,r=qcn(J4,n?.userId,n?.zeniSessionId,i,kD(),b8s);O5e();const s=Ate();return s.userId!=null&&Ym.identify(s.userId,{tenant_id:s.tenantId}),r})(),Yrn=e,performance.mark("zeni:boot_store_ready"),Grn(e)&&(ya((()=>import("./ScreenRoutes-2L_gx3e5.js")),__vite__mapDeps([14,0,1,2,5,15,6,12,16,7,8])).catch((()=>{})),(function(n){const[,i="",r]=n.split("/").filter(Boolean),s=i==="tasks"&&r==null?"taskList":m8s[i];s!=null&&Krn[s]().catch((()=>{}))})(window.location.pathname)),O5e().then((()=>{const n=RCt();n!=null&&X9s(n)})).catch((n=>{console.error("Failed to load feature epics:",n),oan(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 yq=new Ycn,HCt=()=>{const e=Pp(),n=vr.getSignedInUser(),i=_r((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=is(),{configValue:N,isDynamicConfigLoading:_}=F(uAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return wQ;const T=Bpt(N.users_disabled_for_auto_logout),M=Bpt(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:_2e(N.heartbeat_interval_minutes,wQ.heartbeatIntervalMinutes),idleTimeoutMinutes:_2e(N.idle_timeout_minutes,wQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:_2e(N.warning_duration_seconds,wQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(_ve,"auto-logout"),sessionStorage.setItem(Vve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Hve,String(Date.now())),WF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(Mzt(),WF=void 0),s(null),yq.stop(),e(Kcn()),e(Zcn(!1)),vr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return yq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Jcn()),onWarningStart:L=>{Ym.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Ym.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>yq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=_r((L=>Xcn(L,i.companyId))),u=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(V$e())}),[]);const h=_r((L=>edn(L)));(()=>{const L=ate(),F=Pp(),{useFeatureGate:N}=is(),{isFeatureEnabled:_}=N(kl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=vr.getSignedInUser()?.userId;if(z==null)return;const T=jD(L,z),M=O=>{F(Ucn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(zCt,M),()=>{T.unbind(zCt,M)}}),[L,F,_])})(),(()=>{const L=ate(),F=Pp(),{useFeatureGate:N}=is(),{isFeatureEnabled:_}=N(kl.isReconV3Enabled),{isFeatureEnabled:z}=N(kl.isReconciliationCombinedStatementEnabled),T=_r((G=>Np(G)?.companyId)),M=_r((G=>mvt(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=jD(L,T),K=te=>{p8s(F,G,te??{},_===!0,z===!0,U.current)},J=te=>{h8s(F,G,te??{},_===!0,z===!0,U.current)};return q.bind(NCt,K),q.bind(_Ct,K),q.bind(VCt,J),()=>{q.unbind(NCt,K),q.unbind(_Ct,K),q.unbind(VCt,J)}}),[L,F,_,z,T,V,W])})(),d8s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>tdn(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(ndn(F))}},y=m.useMemo((()=>vr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=is(),{isFeatureEnabled:C}=w(kl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(kl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(kl.isInvoicingFeatureEnabled),k=Bxa(),$=i?.userRole!=null&&As(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Wl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&OAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>J9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Ym,sentry:ran,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(IVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(CVn,{toolkit:D,children:on.jsxs(T_n,{endPoint:{url:r$e},children:[on.jsx(Ysr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(V$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(H9s,{...x})]})}),r!=null&&n!=null?on.jsx(z6s,{secondsRemaining:r,onContinueSession:()=>{Ym.trackSessionTimeoutClicked("continue",r),yq.continueSession()},onSignOut:()=>{Ym.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},x8s=()=>{const e=vr.isSignedIn(),n=_r((p=>Np(p))),i=n.companyId,r=_r((p=>Gcn(p.companyState,i)?.company.featuresActivationInfo.connectedAccountProvider)),s=m.useMemo((()=>i?vr.getConnectedAccountProvider(i):void 0),[i]),l=r!==void 0?r??"":s;m.useEffect((()=>{i&&r!==void 0&&vr.saveConnectedAccountProvider(i,r??"")}),[i,r]);const c=c8s(),d=m.useMemo((()=>({companyId:i,tenantId:n.tenantId,connectedAccountProvider:l,userId:c?.userId})),[i,n.tenantId,l,c?.userId]),u=m.useMemo((()=>({currentFeatureEnv:CCt,featureClientSecret:ws.featureClientSecret,providerEndPoint:qz.statsigBaseUrl,nonBlockingInit:ws.statsigNonBlockingInit})),[CCt,ws.featureClientSecret,ws.statsigNonBlockingInit,qz.statsigBaseUrl]);return i?on.jsx(uQn,{isUserSignedIn:e,featureGateCustomFields:d,zeniFeatureConfig:u,children:on.jsx(HCt,{})}):on.jsx(HCt,{})},y8s=ian((function(){const e=m.useMemo((()=>f8s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{O5e().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(U9s,{children:on.jsx($an,{store:e,children:on.jsx(e8s,{value:n,children:on.jsxs(cbs,{children:[on.jsx(l8s,{}),on.jsx(_bn,{children:on.jsx(Rbs,{children:on.jsxs(bVn,{children:[r?on.jsx(ydi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(x8s,{})]})})})]})})})})}));function b8s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const w8s=!!(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}$/)),UCt=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function WCt(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 Zrn="zeni:env-keys:",ste=`${Zrn}${Wl}:5.4.22-dev-39b93d260`,QCt="zeni.ai";function C8s(e){return Jrn(e)}function YCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(C8s)}const E5e="o4504609050525696",A8s={SENTRY_DSN:[`${E5e}.ingest.sentry.io`,`${E5e}.ingest.us.sentry.io`,`${E5e}.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"]},v8s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,S8s=["WEB_ENDPOINT"];function Jrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===QCt||n.hostname.endsWith(`.${QCt}`))}const k8s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],j8s=/^[A-Za-z0-9_-]+$/,$8s=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}),E8s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),I8s=/^pk_(live|test)_[A-Za-z0-9]+$/,D8s=/^[A-Za-z0-9_.-]+$/,T8s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function L8s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!YCt(n.apiEndPoints)||!YCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if($8s.some((h=>i[h]==null))||E8s.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(A8s).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=k8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&j8s.test(g)})),u=S8s.every((h=>{const g=l[h];return g==null||(function(f){if(Jrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&v8s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&I8s.test(l.STRIPE_KEY))&&T8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&D8s.test(g)}));return c&&d&&u&&p}function I5e(){try{window.localStorage.removeItem(ste)}catch{}}function B8s(e){try{window.localStorage.setItem(ste,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(Zrn)&&r!==ste&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Xrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Zon(e,Jon+Wl));return L8s(n)?n:null}catch{return null}}function GCt(e){return Xrn(e)!=null&&(B8s(e),!0)}const qCt="zeni-chunk-reload-at",P8s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function KCt(e){try{const n=Number(sessionStorage.getItem(qCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(qCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let D5e=!1,ZCt=null;const JCt="//js.hs-scripts.com/5991084.js",XCt="hs-script-loader";function M8s(e,n){"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:n}):setTimeout(e,50)}const O8s=vr.getSignedInUser(),F8s=O8s?.zeniSessionId;function R8s(){const e=()=>{const n=ws.sentryDsn?.trim();if(!n)return;const i=ws.sentryProfileSamplingRate>0,r=Wl==="PROD";aan({dsn:n,environment:ebs,tracesSampleRate:ws.sentryTraceSamplingRate,profilesSampleRate:i?ws.sentryProfileSamplingRate:0,integrations:[san(),...i?[lan()]:[],...r?[can({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)}),U_("session-id",F8s),(function(){if(ZK==null)return;const s=ZK;ZK=void 0;try{if(window.sessionStorage.getItem(tAt)!=null)return;window.sessionStorage.setItem(tAt,s)}catch{}dan("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.22-dev-39b93d260"}})})(),(function(){const s=window.location.pathname.split("/").filter(Boolean),l=s[0]?.includes(".")===!0;U_("landing_route",(l?s[1]:s[0])??"root");const c=()=>{const h=uan();return h!=null&&L5e(iAt(h)).op==="pageload"};if(!c())return;const d=new Set,u=h=>{h.filter((g=>g.name.startsWith(eAt)&&!d.has(g.name))).forEach((g=>{d.add(g.name);const f=g.name.slice(eAt.length);f==="boot_tenant_cache_miss"?U_("tenant_cache","miss"):f==="boot_early_calls_sent"&&U_("tenant_cache","hit"),pan(f,g.startTime,"millisecond")}))};u(performance.getEntriesByType("mark"));const p=new PerformanceObserver((h=>{c()?u(h.getEntries()):p.disconnect()}));p.observe({type:"mark"})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}const eAt="zeni:";function ean(){jdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Ean,{children:on.jsx(y8s,{})})})),R8s()}let ZK;function lwe(e){ZK=e}const tAt="zeni:env-keys-rejection-reported";function z8s(){const e=(function(){try{const i=window.localStorage.getItem(ste);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return I5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(I5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Xrn(e);return n==null?(lwe("untrusted-or-unreadable"),I5e(),!1):(ern(n),ean(),!0)}var nA;window.addEventListener("vite:preloadError",(e=>{const n=e;KCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return P8s.some((r=>i.includes(r)))})(e.reason)&&KCt(e.reason)})),(async function(){try{if(z8s())return void(async function(){const i=await ACt();typeof i=="string"&&i.length>0&&!GCt(i)&&lwe("refresh-untrusted-payload")})().catch((()=>{}));const e=await ACt(),n=Zon(e,Jon+Wl);ern(JSON.parse(n)),GCt(e)||lwe("network-untrusted-payload"),ean()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):ZCt!==null||(ZCt=new Promise((e=>{if(D5e)return void e(!0);const n=()=>{D5e?e(!0):(D5e=!0,new Promise(((r,s)=>{if(document.getElementById(XCt))return void r();const l=document.createElement("script");l.id=XCt,l.src=JCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${JCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{M8s((()=>{setTimeout(n,7e3)}),3e3)};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;w8s?(e=UCt,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()))})):WCt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):WCt(UCt)}))}})(),(nA=console.log)&&nA instanceof Function&&ya((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{wCs as $,o$s as A,i$s as B,Hbs as C,e$s as D,Qjs as E,n$s as F,ae as G,_bs as H,b$e as I,Ubs as J,WYi as K,yrn as L,a$s as M,o as N,eSe as O,Kjs as P,X9s as Q,Ni as R,RCt as S,bCs as T,Qws as U,Ln as V,ws as W,Jci as X,uPi as Y,s8s as Z,kl as _,x$e as a,pAs as a$,Kn as a0,ews as a1,fe as a2,Ovs as a3,rxi as a4,qjs as a5,Fvs as a6,Rvs as a7,s9s as a8,Rve as a9,cCs as aA,fSs as aB,Tbs as aC,s$e as aD,rbs as aE,Yws as aF,wOi as aG,vAs as aH,uws as aI,fws as aJ,GAe as aK,Di as aL,dke as aM,pws as aN,Dks as aO,qAs as aP,mws as aQ,gws as aR,hws as aS,kD as aT,Qvs as aU,cAs as aV,uAs as aW,dAs as aX,aAs as aY,rPt as aZ,rAs as a_,t8s as aa,Rqo as ab,R as ac,zvs as ad,kjs as ae,J4 as af,P as ag,tws as ah,Cvs as ai,r$e as aj,Hvs as ak,Xjs as al,Vvs as am,Uvs as an,Zws as ao,In as ap,da as aq,Ibs as ar,Lrn as as,Mrn as at,n5 as au,Yjs as av,Jbs as aw,Lp as ax,sCs as ay,eCs as az,d$s as b,mjo as b$,_vs as b0,wws as b1,UAs as b2,WAs as b3,Tks as b4,CAs as b5,Jws as b6,gAs as b7,fAs as b8,xvs as b9,SSs as bA,zve as bB,MSs as bC,ySs as bD,CSs as bE,xws as bF,svs as bG,Os as bH,cr as bI,pKr as bJ,wSs as bK,Orn as bL,gSs as bM,vSs as bN,xSs as bO,ASs as bP,PSs as bQ,yws as bR,bws as bS,OSs as bT,LSs as bU,TSs as bV,bSs as bW,BSs as bX,hSs as bY,YAs as bZ,QAs as b_,wvs as ba,xAs as bb,yAs as bc,bAs as bd,yvs as be,SCs as bf,s5 as bg,jAs as bh,kAs as bi,RAs as bj,FAs as bk,NAs as bl,zAs as bm,VAs as bn,_As as bo,Ebs as bp,Jjs as bq,lCs as br,AKt as bs,ISs as bt,ESs as bu,jSs as bv,DSs as bw,$Ss as bx,Mjs as by,kSs as bz,Ym as c,AAs as c$,Lks as c0,jjs as c1,ycs as c2,lws as c3,Tjs as c4,Djs as c5,c$s as c6,w_t as c7,fls as c8,qKi as c9,nvs as cA,Gvs as cB,Yvs as cC,tvs as cD,evs as cE,Uws as cF,ROt as cG,Ijs as cH,dSs as cI,sSs as cJ,cSs as cK,lSs as cL,Hjs as cM,Pjs as cN,rvs as cO,lvs as cP,avs as cQ,ows as cR,ivs as cS,ovs as cT,cvs as cU,Nvs as cV,sAs as cW,lAs as cX,pvs as cY,mAs as cZ,mSs as c_,GAs as ca,xui as cb,ak as cc,dtn as cd,Ujs as ce,d5o as cf,Vi as cg,CVn as ch,Gjs as ci,bvs as cj,Ejs as ck,SAs as cl,Ljs as cm,xcs as cn,Ngs as co,J3s as cp,J4e as cq,Njs as cr,_js as cs,Vjs as ct,Rjs as cu,uSs as cv,pSs as cw,Wws as cx,Wvs as cy,KAs as cz,iQn as d,pjs as d$,wAs as d0,zjs as d1,uvs as d2,Bjs as d3,Wjs as d4,yCs as d5,vCs as d6,ICt as d7,Iks as d8,fIi as d9,Vks as dA,ZAs as dB,Oks as dC,mjs as dD,Qks as dE,ljs as dF,cjs as dG,sjs as dH,Fks as dI,Hks as dJ,vjs as dK,Cjs as dL,Ajs as dM,gjs as dN,Yks as dO,xjs as dP,fjs as dQ,Gks as dR,ajs as dS,Pks as dT,Sjs as dU,zks as dV,bjs as dW,Wks as dX,lt as dY,Rks as dZ,Mi as d_,Obs as da,VSs as db,HAs as dc,hvs as dd,ywo as de,nws as df,ate as dg,zbs as dh,zSs as di,_Ss as dj,NSs as dk,CCs as dl,gvs as dm,mvs as dn,pqt as dp,fvs as dq,XAs as dr,JAs as ds,xCs as dt,fCs as du,ACs as dv,wjs as dw,yjs as dx,_ks as dy,qks as dz,b9s as e,Nks as e0,Uks as e1,hjs as e2,njs as e3,ijs as e4,ojs as e5,tjs as e6,rjs as e7,ejs as e8,l3a as e9,kks as ea,Eks as eb,Bks as ec,Aks as ed,fbs as ee,xbs as ef,rz as eg,Fbs as eh,Wbs as ei,orn as ej,Xbs as ek,a7e as el,Eon as em,$on as en,sws as eo,hbs as ep,gbs as eq,mbs as er,tbs as es,dbs as et,nrn as eu,Zjs as ev,t$s as f,l$e as g,Bxa as h,s$s as i,uRt as j,c8s as k,cm as l,l$s as m,aws as n,Wt as o,is as p,rws as q,M8s as r,TT as s,tA as t,u$e as u,v,Rrn as w,r$s as x,Kws as y,vr as z};
92736
+ Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const yq=new Ycn,HCt=()=>{const e=Pp(),n=vr.getSignedInUser(),i=_r((L=>Np(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=is(),{configValue:N,isDynamicConfigLoading:_}=F(uAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return wQ;const T=Bpt(N.users_disabled_for_auto_logout),M=Bpt(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:_2e(N.heartbeat_interval_minutes,wQ.heartbeatIntervalMinutes),idleTimeoutMinutes:_2e(N.idle_timeout_minutes,wQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:_2e(N.warning_duration_seconds,wQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(_ve,"auto-logout"),sessionStorage.setItem(Vve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Hve,String(Date.now())),WF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(Mzt(),WF=void 0),s(null),yq.stop(),e(Kcn()),e(Zcn(!1)),vr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return yq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Jcn()),onWarningStart:L=>{Ym.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Ym.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>yq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=_r((L=>Xcn(L,i.companyId))),u=Gd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(V$e())}),[]);const h=_r((L=>edn(L)));(()=>{const L=ate(),F=Pp(),{useFeatureGate:N}=is(),{isFeatureEnabled:_}=N(kl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=vr.getSignedInUser()?.userId;if(z==null)return;const T=jD(L,z),M=O=>{F(Ucn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(zCt,M),()=>{T.unbind(zCt,M)}}),[L,F,_])})(),(()=>{const L=ate(),F=Pp(),{useFeatureGate:N}=is(),{isFeatureEnabled:_}=N(kl.isReconV3Enabled),{isFeatureEnabled:z}=N(kl.isReconciliationCombinedStatementEnabled),T=_r((G=>Np(G)?.companyId)),M=_r((G=>mvt(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=jD(L,T),K=te=>{p8s(F,G,te??{},_===!0,z===!0,U.current)},J=te=>{h8s(F,G,te??{},_===!0,z===!0,U.current)};return q.bind(NCt,K),q.bind(_Ct,K),q.bind(VCt,J),()=>{q.unbind(NCt,K),q.unbind(_Ct,K),q.unbind(VCt,J)}}),[L,F,_,z,T,V,W])})(),d8s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>tdn(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(ndn(F))}},y=m.useMemo((()=>vr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=is(),{isFeatureEnabled:C}=w(kl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(kl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(kl.isInvoicingFeatureEnabled),k=Bxa(),$=i?.userRole!=null&&As(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Wl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&OAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>J9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Ym,sentry:ran,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(IVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(CVn,{toolkit:D,children:on.jsxs(T_n,{endPoint:{url:r$e},children:[on.jsx(Ysr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(V$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(H9s,{...x})]})}),r!=null&&n!=null?on.jsx(z6s,{secondsRemaining:r,onContinueSession:()=>{Ym.trackSessionTimeoutClicked("continue",r),yq.continueSession()},onSignOut:()=>{Ym.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},x8s=()=>{const e=vr.isSignedIn(),n=_r((p=>Np(p))),i=n.companyId,r=_r((p=>Gcn(p.companyState,i)?.company.featuresActivationInfo.connectedAccountProvider)),s=m.useMemo((()=>i?vr.getConnectedAccountProvider(i):void 0),[i]),l=r!==void 0?r??"":s;m.useEffect((()=>{i&&r!==void 0&&vr.saveConnectedAccountProvider(i,r??"")}),[i,r]);const c=c8s(),d=m.useMemo((()=>({companyId:i,tenantId:n.tenantId,connectedAccountProvider:l,userId:c?.userId})),[i,n.tenantId,l,c?.userId]),u=m.useMemo((()=>({currentFeatureEnv:CCt,featureClientSecret:ws.featureClientSecret,providerEndPoint:qz.statsigBaseUrl,nonBlockingInit:ws.statsigNonBlockingInit})),[CCt,ws.featureClientSecret,ws.statsigNonBlockingInit,qz.statsigBaseUrl]);return i?on.jsx(uQn,{isUserSignedIn:e,featureGateCustomFields:d,zeniFeatureConfig:u,children:on.jsx(HCt,{})}):on.jsx(HCt,{})},y8s=ian((function(){const e=m.useMemo((()=>f8s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{O5e().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(U9s,{children:on.jsx($an,{store:e,children:on.jsx(e8s,{value:n,children:on.jsxs(cbs,{children:[on.jsx(l8s,{}),on.jsx(_bn,{children:on.jsx(Rbs,{children:on.jsxs(bVn,{children:[r?on.jsx(ydi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(x8s,{})]})})})]})})})})}));function b8s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const w8s=!!(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}$/)),UCt=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function WCt(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 Zrn="zeni:env-keys:",ste=`${Zrn}${Wl}:5.4.22-qa-39b93d260`,QCt="zeni.ai";function C8s(e){return Jrn(e)}function YCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(C8s)}const E5e="o4504609050525696",A8s={SENTRY_DSN:[`${E5e}.ingest.sentry.io`,`${E5e}.ingest.us.sentry.io`,`${E5e}.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"]},v8s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,S8s=["WEB_ENDPOINT"];function Jrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===QCt||n.hostname.endsWith(`.${QCt}`))}const k8s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],j8s=/^[A-Za-z0-9_-]+$/,$8s=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}),E8s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),I8s=/^pk_(live|test)_[A-Za-z0-9]+$/,D8s=/^[A-Za-z0-9_.-]+$/,T8s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function L8s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!YCt(n.apiEndPoints)||!YCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if($8s.some((h=>i[h]==null))||E8s.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(A8s).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=k8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&j8s.test(g)})),u=S8s.every((h=>{const g=l[h];return g==null||(function(f){if(Jrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&v8s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&I8s.test(l.STRIPE_KEY))&&T8s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&D8s.test(g)}));return c&&d&&u&&p}function I5e(){try{window.localStorage.removeItem(ste)}catch{}}function B8s(e){try{window.localStorage.setItem(ste,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(Zrn)&&r!==ste&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Xrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Zon(e,Jon+Wl));return L8s(n)?n:null}catch{return null}}function GCt(e){return Xrn(e)!=null&&(B8s(e),!0)}const qCt="zeni-chunk-reload-at",P8s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function KCt(e){try{const n=Number(sessionStorage.getItem(qCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(qCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let D5e=!1,ZCt=null;const JCt="//js.hs-scripts.com/5991084.js",XCt="hs-script-loader";function M8s(e,n){"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:n}):setTimeout(e,50)}const O8s=vr.getSignedInUser(),F8s=O8s?.zeniSessionId;function R8s(){const e=()=>{const n=ws.sentryDsn?.trim();if(!n)return;const i=ws.sentryProfileSamplingRate>0,r=Wl==="PROD";aan({dsn:n,environment:ebs,tracesSampleRate:ws.sentryTraceSamplingRate,profilesSampleRate:i?ws.sentryProfileSamplingRate:0,integrations:[san(),...i?[lan()]:[],...r?[can({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)}),U_("session-id",F8s),(function(){if(ZK==null)return;const s=ZK;ZK=void 0;try{if(window.sessionStorage.getItem(tAt)!=null)return;window.sessionStorage.setItem(tAt,s)}catch{}dan("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.22-qa-39b93d260"}})})(),(function(){const s=window.location.pathname.split("/").filter(Boolean),l=s[0]?.includes(".")===!0;U_("landing_route",(l?s[1]:s[0])??"root");const c=()=>{const h=uan();return h!=null&&L5e(iAt(h)).op==="pageload"};if(!c())return;const d=new Set,u=h=>{h.filter((g=>g.name.startsWith(eAt)&&!d.has(g.name))).forEach((g=>{d.add(g.name);const f=g.name.slice(eAt.length);f==="boot_tenant_cache_miss"?U_("tenant_cache","miss"):f==="boot_early_calls_sent"&&U_("tenant_cache","hit"),pan(f,g.startTime,"millisecond")}))};u(performance.getEntriesByType("mark"));const p=new PerformanceObserver((h=>{c()?u(h.getEntries()):p.disconnect()}));p.observe({type:"mark"})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}const eAt="zeni:";function ean(){jdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Ean,{children:on.jsx(y8s,{})})})),R8s()}let ZK;function lwe(e){ZK=e}const tAt="zeni:env-keys-rejection-reported";function z8s(){const e=(function(){try{const i=window.localStorage.getItem(ste);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return I5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(I5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Xrn(e);return n==null?(lwe("untrusted-or-unreadable"),I5e(),!1):(ern(n),ean(),!0)}var nA;window.addEventListener("vite:preloadError",(e=>{const n=e;KCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return P8s.some((r=>i.includes(r)))})(e.reason)&&KCt(e.reason)})),(async function(){try{if(z8s())return void(async function(){const i=await ACt();typeof i=="string"&&i.length>0&&!GCt(i)&&lwe("refresh-untrusted-payload")})().catch((()=>{}));const e=await ACt(),n=Zon(e,Jon+Wl);ern(JSON.parse(n)),GCt(e)||lwe("network-untrusted-payload"),ean()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):ZCt!==null||(ZCt=new Promise((e=>{if(D5e)return void e(!0);const n=()=>{D5e?e(!0):(D5e=!0,new Promise(((r,s)=>{if(document.getElementById(XCt))return void r();const l=document.createElement("script");l.id=XCt,l.src=JCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${JCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{M8s((()=>{setTimeout(n,7e3)}),3e3)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;w8s?(e=UCt,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()))})):WCt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):WCt(UCt)}))}})(),(nA=console.log)&&nA instanceof Function&&ya((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{wCs as $,o$s as A,i$s as B,Hbs as C,e$s as D,Qjs as E,n$s as F,ae as G,_bs as H,b$e as I,Ubs as J,WYi as K,yrn as L,a$s as M,o as N,eSe as O,Kjs as P,X9s as Q,Ni as R,RCt as S,bCs as T,Qws as U,Ln as V,ws as W,Jci as X,uPi as Y,s8s as Z,kl as _,x$e as a,pAs as a$,Kn as a0,ews as a1,fe as a2,Ovs as a3,rxi as a4,qjs as a5,Fvs as a6,Rvs as a7,s9s as a8,Rve as a9,cCs as aA,fSs as aB,Tbs as aC,s$e as aD,rbs as aE,Yws as aF,wOi as aG,vAs as aH,uws as aI,fws as aJ,GAe as aK,Di as aL,dke as aM,pws as aN,Dks as aO,qAs as aP,mws as aQ,gws as aR,hws as aS,kD as aT,Qvs as aU,cAs as aV,uAs as aW,dAs as aX,aAs as aY,rPt as aZ,rAs as a_,t8s as aa,Rqo as ab,R as ac,zvs as ad,kjs as ae,J4 as af,P as ag,tws as ah,Cvs as ai,r$e as aj,Hvs as ak,Xjs as al,Vvs as am,Uvs as an,Zws as ao,In as ap,da as aq,Ibs as ar,Lrn as as,Mrn as at,n5 as au,Yjs as av,Jbs as aw,Lp as ax,sCs as ay,eCs as az,d$s as b,mjo as b$,_vs as b0,wws as b1,UAs as b2,WAs as b3,Tks as b4,CAs as b5,Jws as b6,gAs as b7,fAs as b8,xvs as b9,SSs as bA,zve as bB,MSs as bC,ySs as bD,CSs as bE,xws as bF,svs as bG,Os as bH,cr as bI,pKr as bJ,wSs as bK,Orn as bL,gSs as bM,vSs as bN,xSs as bO,ASs as bP,PSs as bQ,yws as bR,bws as bS,OSs as bT,LSs as bU,TSs as bV,bSs as bW,BSs as bX,hSs as bY,YAs as bZ,QAs as b_,wvs as ba,xAs as bb,yAs as bc,bAs as bd,yvs as be,SCs as bf,s5 as bg,jAs as bh,kAs as bi,RAs as bj,FAs as bk,NAs as bl,zAs as bm,VAs as bn,_As as bo,Ebs as bp,Jjs as bq,lCs as br,AKt as bs,ISs as bt,ESs as bu,jSs as bv,DSs as bw,$Ss as bx,Mjs as by,kSs as bz,Ym as c,AAs as c$,Lks as c0,jjs as c1,ycs as c2,lws as c3,Tjs as c4,Djs as c5,c$s as c6,w_t as c7,fls as c8,qKi as c9,nvs as cA,Gvs as cB,Yvs as cC,tvs as cD,evs as cE,Uws as cF,ROt as cG,Ijs as cH,dSs as cI,sSs as cJ,cSs as cK,lSs as cL,Hjs as cM,Pjs as cN,rvs as cO,lvs as cP,avs as cQ,ows as cR,ivs as cS,ovs as cT,cvs as cU,Nvs as cV,sAs as cW,lAs as cX,pvs as cY,mAs as cZ,mSs as c_,GAs as ca,xui as cb,ak as cc,dtn as cd,Ujs as ce,d5o as cf,Vi as cg,CVn as ch,Gjs as ci,bvs as cj,Ejs as ck,SAs as cl,Ljs as cm,xcs as cn,Ngs as co,J3s as cp,J4e as cq,Njs as cr,_js as cs,Vjs as ct,Rjs as cu,uSs as cv,pSs as cw,Wws as cx,Wvs as cy,KAs as cz,iQn as d,pjs as d$,wAs as d0,zjs as d1,uvs as d2,Bjs as d3,Wjs as d4,yCs as d5,vCs as d6,ICt as d7,Iks as d8,fIi as d9,Vks as dA,ZAs as dB,Oks as dC,mjs as dD,Qks as dE,ljs as dF,cjs as dG,sjs as dH,Fks as dI,Hks as dJ,vjs as dK,Cjs as dL,Ajs as dM,gjs as dN,Yks as dO,xjs as dP,fjs as dQ,Gks as dR,ajs as dS,Pks as dT,Sjs as dU,zks as dV,bjs as dW,Wks as dX,lt as dY,Rks as dZ,Mi as d_,Obs as da,VSs as db,HAs as dc,hvs as dd,ywo as de,nws as df,ate as dg,zbs as dh,zSs as di,_Ss as dj,NSs as dk,CCs as dl,gvs as dm,mvs as dn,pqt as dp,fvs as dq,XAs as dr,JAs as ds,xCs as dt,fCs as du,ACs as dv,wjs as dw,yjs as dx,_ks as dy,qks as dz,b9s as e,Nks as e0,Uks as e1,hjs as e2,njs as e3,ijs as e4,ojs as e5,tjs as e6,rjs as e7,ejs as e8,l3a as e9,kks as ea,Eks as eb,Bks as ec,Aks as ed,fbs as ee,xbs as ef,rz as eg,Fbs as eh,Wbs as ei,orn as ej,Xbs as ek,a7e as el,Eon as em,$on as en,sws as eo,hbs as ep,gbs as eq,mbs as er,tbs as es,dbs as et,nrn as eu,Zjs as ev,t$s as f,l$e as g,Bxa as h,s$s as i,uRt as j,c8s as k,cm as l,l$s as m,aws as n,Wt as o,is as p,rws as q,M8s as r,TT as s,tA as t,u$e as u,v,Rrn as w,r$s as x,Kws as y,vr as z};