@zeniai/web-app-ui 5.3.83-dev → 5.3.84-dev

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 (117) hide show
  1. package/dist/assets/{AccountMappingScreen-BlAlbrnx.js → AccountMappingScreen-XwNUpw_D.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-BJS18VqA.js → ActualMatchingMatchDetailScreen-C6TYx7q0.js} +1 -1
  3. package/dist/assets/AddressRoutes-CZDMAIjX.js +1 -0
  4. package/dist/assets/{AddressScreen-BaUyC6hl.js → AddressScreen-HJds92dm.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-C2aGObgH.js → AiCfoScreen-Dm7ZIWJ9.js} +1 -1
  6. package/dist/assets/{AppDrawer-B_sqYgfu.js → AppDrawer-qZ43YOIr.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BdAzyIqn.js → BillPayApprovalRoutes-f6lXQ-SQ.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-zkvSlLIB.js → BillPayRoutes-FFgNrzEb.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-DNhcrJIG.js → BusinessVerificationPageScreen-ZVYQrPs9.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-C6zY5aHa.js → CardsAiCfoScreen-BKPLHrMs.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-CUIv6Ff9.js → ChargeCardRoutes-CMxvUfKH.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-2YfwMC3n.js → CompanyPassportScreen-Pu62XQlj.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-Dbf96wBm.js → ConnectionAuthScreen-BhKFUrLT.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-CUOuvre9.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-CmTSBCfZ.js → CustomerOnboardingRoutes-2iEM_X6g.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-ePaa6RzM.js → DashboardRoutes-B2cJBeZt.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-GxNyS_7I.js → DefaultTenantHome-C-C4WYhs.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-DGTecQgJ.js → DomesticWireDetailScreen-94QpW5ka.js} +1 -1
  19. package/dist/assets/{DrawerScreen-Ac2BNHGU.js → DrawerScreen-DLg920NY.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-By8U2MA9.js → EntityDetailRoutes-B8UpFuxx.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-CbAy6bRF.js → ExpenseAutomationRoutes-CVTK9PTD.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-WONNYPz2.js → FeaturePreviewScreen-qiwziA3C.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CFlvNlLf.js → HubSpotOAuthCallbackScreen-B1B5iuzx.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-yQHZ5K7x.js → InboxNotificationsProvider-C--dhzC5.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-7QJOc7_T.js → InvoicingRoutes-lb5UScQT.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-BibsnD1q.js → MagicLinkRoutes-B9-_HvVj.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-BpOShVw6.js → MagicLinkSignInScreen-CqY4g9UV.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-l8XzezC6.js → MobileAppDrawer-Cm07ALiS.js} +1 -1
  29. package/dist/assets/NotFoundScreen-DiLi5Nus.js +1 -0
  30. package/dist/assets/{NotificationRoutes-C4m7rB7l.js → NotificationRoutes-C2rjjCsl.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-CuXtenPv.js → OAuthConsentScreen-1c6jchUq.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-FHrcpjWT.js → PandLWithForecastRoutes-26NaueGJ.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-BSk9RfvR.js → PaymentLinkScreen-DaigjqWQ.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-BxrX1JFh.js → PeopleRoutes-5rEnnUjE.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-u7jsxKOk.js → PerformanceRoutes-ztnbNuKl.js} +1 -1
  36. package/dist/assets/{Preview-B0DOkYjv.js → Preview-D-JUcF07.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-BSw99hss.js → QBOConnectionScreen-w9QXvf5m.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-Q1SCHF1l.js → ReimbursementApprovalRoutes-B29Ws5Vt.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DILlSzn2.js → ReimbursementApprovalRuleDetailScreen-CsfnOJYo.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-6xzsoOoQ.js → ReimbursementRoutes-Coms2O2c.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-BOEFIFhM.js → ReportsRoutes-DNHhT5gw.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-DJDgplhQ.js → RewardsRoutes-DSm0iIIe.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-5-GevFMn.js → ScheduleDetailsPrepaidExpensesScreen-DPe2uUJE.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-C3N1CK9B.js → ScreenRoutes-DFdEOGuo.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-DFwRhTG0.js → SettingsRoutes-RuTsd2Fb.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-Bwcyn81K.js → SetupPagesScreen-C9Q69WwN.js} +1 -1
  47. package/dist/assets/{SignInScreen-VNP75F_z.js → SignInScreen-JQM3c2Lt.js} +1 -1
  48. package/dist/assets/{SignOutScreen-DqT1J3CH.js → SignOutScreen-BPlDZTUu.js} +1 -1
  49. package/dist/assets/{TaskListScreen-vhycpFEZ.js → TaskListScreen-BsFZLVRo.js} +1 -1
  50. package/dist/assets/{TaskRoutes-B6-8g-HW.js → TaskRoutes-Dj6AdTTB.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-BTLEexP-.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-CuKBIwpF.js → TransactionDetailScreen-D2_CoJ-h.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-D-MmK7A2.js → TransactionListRoutes-DlL2sH-I.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-Pqnpfg2v.js → TreasuryRoutes-DuhFshqs.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-CNNCASwJ.js → VendorsRoutes-A3dk-xld.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-Q6839g40.js → WiseConfirmationScreen-DZnU762L.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-5EIDUyAv.js → ZeniAccountRoutes-CG3bljzL.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-DEVWrSPx.js → ZeniAccountStatementScreen-Cxk5LU3F.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-Cmqzt3o8.js → accountMappingHelper-D2fGuMNL.js} +1 -1
  60. package/dist/assets/{analytics-Dk2G_EzJ.js → analytics-C2DEKcgM.js} +1 -1
  61. package/dist/assets/{analyticsHelper-D3Z95hnv.js → analyticsHelper-C0W9bP3B.js} +1 -1
  62. package/dist/assets/{core-C9JgQJB4.js → core-CP1aSAr8.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CYuijBUP.js → decodeURIComponentSafe-B3-i3MYW.js} +1 -1
  64. package/dist/assets/{dnd-C8GpPG0g.js → dnd-Bln0C_Vo.js} +1 -1
  65. package/dist/assets/{empty-BHiRckm6.js → empty-Bqm0AhLe.js} +1 -1
  66. package/dist/assets/{empty-Bn6LwN65.js → empty-Cpj4MUYA.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-WwpOn3mw.js → emptyVideoElement-CVX4pm3K.js} +1 -1
  68. package/dist/assets/{epic-D8O9uIgs.js → epic-BQZc9uPI.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-jtvNac2y.js → expenseAutomationHelper-C7OVSnk0.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-CZcWFJHh.js → getLocaleForTenant-B-maRjtJ.js} +1 -1
  71. package/dist/assets/{index-DF_McIvo.js → index-6AImZ7yw.js} +1 -1
  72. package/dist/assets/{index-B2whCLRz.js → index-BV_a75kn.js} +1 -1
  73. package/dist/assets/{index-e3kLs8y8.js → index-Bs9mFbzG.js} +1 -1
  74. package/dist/assets/{index-BuFdtVKe.js → index-CCJoMRqM.js} +1 -1
  75. package/dist/assets/{index-B68exopT.js → index-CM1JigJN.js} +2 -2
  76. package/dist/assets/{index-CJuvBgOO.js → index-Cnio5X9p.js} +1 -1
  77. package/dist/assets/{index-Dv34Umyu.js → index-DB4ojSnl.js} +1 -1
  78. package/dist/assets/{index-BvMe6BwU.js → index-jetepEFO.js} +7 -7
  79. package/dist/assets/{lexical-DewpM37L.js → lexical-BaDJgXwt.js} +1 -1
  80. package/dist/assets/{liveblocks-QExkfWwX.js → liveblocks-qsICRTxQ.js} +1 -1
  81. package/dist/assets/{lottie-C8c0mGol.js → lottie-Bjt47Zzw.js} +1 -1
  82. package/dist/assets/{mui-DA_IUYGW.js → mui-CDqYWWf8.js} +1 -1
  83. package/dist/assets/{pathToGoBack-Cad-ghSF.js → pathToGoBack-Cg0evV4p.js} +1 -1
  84. package/dist/assets/{pdf-lib-C9IVGH9O.js → pdf-lib-akqQI5pH.js} +1 -1
  85. package/dist/assets/{pdf-CglQcGFZ.js → pdf-nelcWlbV.js} +4 -4
  86. package/dist/assets/{plaid-CG0Jj5NR.js → plaid-DGN2_yvM.js} +1 -1
  87. package/dist/assets/{pusher-BgQJzJsV.js → pusher-DsBjlYrb.js} +1 -1
  88. package/dist/assets/{react-DObiDMcZ.js → react-BNxSkxX_.js} +1 -1
  89. package/dist/assets/{react-BuwGlC3C.js → react-BSf96S7P.js} +1 -1
  90. package/dist/assets/{react-NcjXVgWJ.js → react-BolT16Bi.js} +1 -1
  91. package/dist/assets/{react-Bsg7Q7CB.js → react-DBZGR44k.js} +1 -1
  92. package/dist/assets/{react-7YFwADXn.js → react-DIQC2iCH.js} +1 -1
  93. package/dist/assets/{react-CGoXARef.js → react-DLY8KfWU.js} +1 -1
  94. package/dist/assets/{recharts-ikWEYduq.js → recharts-CqgoPLZp.js} +1 -1
  95. package/dist/assets/{routePaths-CehqSbwZ.js → routePaths-BxW-XuuT.js} +1 -1
  96. package/dist/assets/{sentry-oILOkT84.js → sentry-CH_DDyry.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-DfsbDgo5.js → stripSplatSuffix-49uO8-qN.js} +1 -1
  98. package/dist/assets/{url-DoKU4Zzh.js → url-BDql7gAd.js} +1 -1
  99. package/dist/assets/{url-D33JsTdA.js → url-EW6pXGrk.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-hr4zSrCe.js → useActualMatchingMatchDetail-CodJ5NdS.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-C5O_5leW.js → useAiCfoDashboardSuggestedQuestionsChips-D-YhFhC0.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-BCWJ7jlQ.js → useAskAiCfoHostNavButtonProps-D6HiH_eu.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-C3NE2ZHP.js → useChargeCardPusherEvents-BRxfWHeo.js} +1 -1
  104. package/dist/assets/{useDeviceId-DZAWgg2s.js → useDeviceId-DNy_ZbA_.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-Bv3uwquX.js → useEmailConnectResultRefresh-eX-7YkqU.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-BCD3tBzH.js → useInitialThreadRequest-DeigUgXx.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-BRPFjPMD.js → useTaskManagerAccess-DMgJoDF0.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-6s-T5fU4.js → useTaskManagerPusherEvents-DmZoUYkY.js} +1 -1
  109. package/dist/assets/{utils-A5fkS8h7.js → utils-D5NxkGnw.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-C47wmMlX.js → withTransactionSidePanel-n0-aQni_.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DLEY0NmH.js → zeni-epic-state-BJboEKV6.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AddressRoutes-CjGixOCb.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-CsgeY_a3.js +0 -1
  116. package/dist/assets/NotFoundScreen-azJwEf6u.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-BHcGo7KC.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-DLEY0NmH.js","assets/sentry-oILOkT84.js","assets/core-C9JgQJB4.js","assets/index-B68exopT.js","assets/DefaultTenantHome-GxNyS_7I.js","assets/mui-DA_IUYGW.js","assets/getLocaleForTenant-CZcWFJHh.js","assets/analytics-Dk2G_EzJ.js","assets/utils-A5fkS8h7.js","assets/AppDrawer-B_sqYgfu.js","assets/InboxNotificationsProvider-yQHZ5K7x.js","assets/useTaskManagerAccess-BRPFjPMD.js","assets/expenseAutomationHelper-jtvNac2y.js","assets/ScreenRoutes-C3N1CK9B.js","assets/analyticsHelper-D3Z95hnv.js","assets/ConnectionAuthScreen-Dbf96wBm.js","assets/AccountMappingScreen-BlAlbrnx.js","assets/MobileAppDrawer-l8XzezC6.js","assets/QBOConnectionScreen-BSw99hss.js","assets/empty-Bn6LwN65.js","assets/index-B2whCLRz.js","assets/url-DoKU4Zzh.js","assets/index-BuFdtVKe.js","assets/decodeURIComponentSafe-CYuijBUP.js","assets/accountMappingHelper-Cmqzt3o8.js","assets/SignInScreen-VNP75F_z.js","assets/useDeviceId-DZAWgg2s.js","assets/MagicLinkSignInScreen-BpOShVw6.js","assets/NotFoundScreen-azJwEf6u.js","assets/MagicLinkRoutes-BibsnD1q.js","assets/PaymentLinkScreen-BSk9RfvR.js","assets/WiseConfirmationScreen-Q6839g40.js","assets/HubSpotOAuthCallbackScreen-CFlvNlLf.js","assets/CustomerOnboardingAuthScreen-CsgeY_a3.js","assets/SignOutScreen-DqT1J3CH.js","assets/OAuthConsentScreen-CuXtenPv.js"])))=>i.map(i=>d[i]);
2
- import{R as B,b as h5e,a as m,r as Kh,g as O8t,p as ire,d as Lke,f as nin,s as Bke,i as iin,w as oin,j as rin,S as ain,k as sin,l as lin,m as cin,n as din,o as uin,q as pin}from"./sentry-oILOkT84.js";import{L as hin,C as Pke,_ as Fp,a as min,b as iz,c as gin,d as XX,e as oz,u as F8t,T as fin,f as xin,g as yin,h as bin,i as win,k as R8t,l as Cin,m as vin,j as en}from"./liveblocks-QExkfWwX.js";import{f as z8t,r as Aa,P as Dl,R as Ain,O as Sin,N as N8t,u as Sp,g as Dg,h as eee,i as _8t,j as Rr,m as M9e,s as Wq,k as V8t,l as kin,n as jin,o as R1,p as $in,B as Ein}from"./core-C9JgQJB4.js";import{L as Mke,bl as Iin,bm as Din,bn as rz,bo as Tin,bp as Lin,bq as ps,br as Yt,bs as _D,bt as H8t,bu as T3,bv as Bin,bw as ty,bx as Ss,by as Pin,bz as Min,bA as Oin,bB as L1,bC as Ip,bD as WF,bE as u9,bF as fn,bG as U8t,bH as S1,bI as va,bJ as RI,bK as W8t,bL as Q8t,bM as O9e,bN as A5,bO as Pu,bP as w7,bQ as Fin,bR as wc,bS as Rin,bT as VD,bU as zin,bV as Nin,bW as Qq,bX as _in,bY as Vin,bZ as Yq,b_ as Hin,b$ as Uin,c0 as p9,c1 as Oke,c2 as Win,c3 as Qin,c4 as Yin,c5 as Gin,c6 as qin,c7 as Kin,c8 as Zin,c9 as C7,ca as tee,cb as Jin,cc as nee,cd as iee,ce as oee,cf as F9e,cg as gA,ch as fA,ci as az,cj as zI,ck as NI,cl as xA,cm as ree,cn as _v,co as Xin,cp as Fke,cq as eon,cr as ton,cs as non,ct as ion,cu as Y8t,cv as oon,cw as ron,cx as q8,cy as Rke,cz as aon,cA as son,cB as lon,cC as ZA,cD as JA,cE as G8t,cF as q8t,cG as R9e,cH as con,cI as K8t,cJ as don,cK as Gq,cL as Z8t,cM as uon,cN as J8t,cO as pon,cP as SM,cQ as hon,cR as mon,cS as zke,cT as gon,cU as z9e,cV as N9e,cW as fon,cX as xon,cY as yon,cZ as bon,c_ as GN,c$ as _I,d0 as qN,d1 as won,d2 as Con,d3 as X8t,d4 as von,d5 as Aon,d6 as Son,d7 as kon,d8 as jon,d9 as ewt,da as Nke,db as $on,dc as _9e,dd as Eon,de as Ion,df as Don,dg as twt,dh as qd,di as Bl,dj as aee,dk as Ton,dl as Lon,dm as f1,dn as nwt,dp as Bon,dq as QF,dr as Vv,ds as Ts,dt as _ke,du as Pon,dv as Mon,dw as Oon,dx as iwt,dy as V9e,dz as KN,dA as owt,dB as Fon,dC as Ron,dD as zon,dE as Non,dF as _on,dG as rg,dH as Von,dI as Hon,dJ as Uon,dK as Won,dL as ZN,dM as yA,dN as see,dO as Qon,dP as Yon,dQ as XA,dR as k1,dS as rwt,dT as awt,dU as Gon,dV as swt,dW as qon,dX as Kon,dY as Zon,dZ as Jon,d_ as HD,d$ as H9e,e0 as U9e,e1 as Xon,e2 as W9e,e3 as lwt,e4 as cwt,e5 as dwt,e6 as uwt,e7 as pwt,e8 as hwt,e9 as ern,_ as bd,ea as UD,eb as trn,ec as Vke,ed as lee,ee as nrn,ef as irn,eg as mwt,eh as orn,ei as jO,ej as s0,ek as v7,el as gwt,em as fwt,en as rrn,eo as xwt,ep as m5e,eq as arn,er as uG,es as srn,et as lrn,eu as crn,ev as drn,ew as urn,ex as ywt,ey as bwt,ez as prn,eA as hrn,eB as wwt,eC as $O,eD as EO,eE as Cwt,eF as mrn,eG as grn,eH as Q9e,eI as frn,eJ as xrn,eK as yrn,eL as Y9e,eM as vwt,eN as Awt,eO as G9e,eP as WD,eQ as cee,eR as q9e,eS as K9e,eT as Z9e,eU as J9e,eV as brn,eW as wrn,eX as Swt,eY as Hke,eZ as Crn,e_ as vrn,e$ as j1,f0 as Arn,f1 as dee,f2 as kwt,f3 as jwt,f4 as Srn,f5 as X9e,f6 as e8e,f7 as krn,f8 as jrn,f9 as $rn,fa as Ern,fb as Irn,fc as Drn,fd as bg,fe as Uke,ff as $wt,fg as Trn,fh as Lrn,fi as Brn,fj as Ewt,fk as Iwt,fl as Dwt,fm as Twt,fn as Lwt,fo as Bwt,fp as Prn,fq as VI,fr as Mrn,fs as Orn,ft as Frn,fu as Rrn,fv as Pwt,fw as Mwt,fx as Wke,fy as Qke,fz as zrn,fA as Nrn,fB as Yke,fC as Gke,fD as _rn,fE as Vrn,fF as g5e,fG as Hrn,v as Urn,fH as uee,fI as Dp,fJ as Owt,fK as Fwt,fL as Wrn,fM as Qrn,fN as qke,fO as Yrn,fP as Grn,fQ as qrn,fR as Krn,fS as Zrn,fT as Jrn,fU as Xrn,fV as ean,fW as tan,fX as nan,fY as ian,fZ as oan,f_ as ran,f$ as aan,g0 as san,g1 as lan,g2 as can,g3 as dan,g4 as uan,g5 as Kke,g6 as pan,g7 as han,g8 as man,g9 as gan,ga as fan,gb as Rwt,gc as pee,gd as t8e,ge as zwt,gf as xan,gg as yan,gh as ban,gi as Nwt,gj as Zke,gk as _wt,gl as Vwt,gm as wan,gn as Hwt,go as Uwt,gp as Can,gq as van,gr as f5e,gs as Aan,gt as IO,gu as San,gv as kan,gw as jan,gx as $an,gy as Ean,gz as Ian,gA as Dan,gB as Tan,gC as Lan,gD as Ban,gE as Pan,gF as Man,gG as Wwt,gH as Oan,gI as Fan,gJ as Ran,gK as Jke,gL as zan,gM as Nan,gN as _an,gO as Van,gP as Han,gQ as Uan,gR as Wan,gS as Qwt,gT as Ywt,gU as Qan,gV as Gwt,gW as Yan,gX as Gan,gY as x5e,gZ as qan,g_ as Kan,g$ as Zan,h0 as Jan,h1 as Xan,h2 as esn,h3 as Xke,h4 as tsn,h5 as nsn,h6 as isn}from"./zeni-epic-state-DLEY0NmH.js";import{j as To,c as Ee,k as ui,a as eje,b as qwt,C as Kwt,T as osn,M as rsn,n as a,u as Pe,d as si,e as Zwt,G as hee,A as tje,R as asn,D as Vc,F as ssn,f as qq,g as y5e,P as L3,h as lsn,S as mee,i as csn,l as dsn,m as YF,o as usn,s as eS,p as psn}from"./mui-DA_IUYGW.js";import{r as hsn,m as Xm}from"./analytics-Dk2G_EzJ.js";import{u as P1}from"./plaid-CG0Jj5NR.js";import{D as n8e,H as gee,g as msn,O as gsn,S as fsn,T as xsn,u as i8e,a as o8e,b as ysn}from"./dnd-C8GpPG0g.js";import{l as r8e}from"./stripe-cKAAJElX.js";import{L as eI}from"./lottie-C8c0mGol.js";import{r as Hc}from"./lexical-DewpM37L.js";import{D as b5e,P as w5e,_ as Jwt,a as Xwt}from"./pdf-CglQcGFZ.js";import{R as bA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Hv,M as D1,N as QD,O as eCt,P as bsn,Q as wsn,S as fee,U as Csn,V as a8e,W as vsn,Z as Asn,_ as Ssn,d as ksn}from"./recharts-ikWEYduq.js";import{r as jsn,n as nje}from"./utils-A5fkS8h7.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]="3ebe08f5-716e-4ec4-a0e8-d86313316e59",e._sentryDebugIdIdentifier="sentry-dbid-3ebe08f5-716e-4ec4-a0e8-d86313316e59")}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 ije,JN={},$sn=(function(){if(ije)return JN;ije=1;var e=z8t();return JN.createRoot=e.createRoot,JN.hydrateRoot=e.hydrateRoot,JN})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof h5e<"u"?h5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oje,rje,aje={exports:{}},XT={};function tCt(){return rje||(rje=1,aje.exports=(function(){if(oje)return XT;oje=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 XT.Fragment=i,XT.jsx=c,XT.jsxs=c,XT})()),aje.exports}var t=tCt();const Esn=m.createContext(null),ore={didCatch:!1,error:null};let Isn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ore}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(ore)}}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(ore))}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(Esn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var sje,lje,cje,rre,dje,uje,pje,hje,mje,are={exports:{}};function Dsn(){return sje||(sje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(are.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,ve=G.length;for(pe=0;pe<ve;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var ve,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":ve=1;break;default:ve=1.1}for($e=0;$e<xe;$e+=1)Oe.push(ve);return Oe}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function R(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function V(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function _(G,X,pe){var xe,ve,$e,Oe,He,We,Mt,Kt;switch(We=pe*(1-X),Mt=pe*(1-(He=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-He)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=We;break;case 1:xe=Mt,ve=pe,$e=We;break;case 2:xe=We,ve=pe,$e=Kt;break;case 3:xe=We,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=We,$e=pe;break;case 5:xe=pe,ve=We,$e=Mt}return[xe,ve,$e]}function W(G,X,pe){var xe,ve=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=ve-$e,He=ve===0?0:Oe/ve,We=ve/255;switch(ve){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,He,We]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),_(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),_(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),_(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},oe=function(G){v=G};function le(G){return document.createElementNS(i,G)}function me(G){return me=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},me(G)}var ue=(function(){var G,X,pe=1,xe=[],ve={onmessage:function(){},postMessage:function(dt){G({data:dt})}},$e={postMessage:function(dt){ve.onmessage({data:dt})}};function Oe(dt){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",dt.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=dt,ve}function He(){X||(X=Oe((function(dt){function Ct(){function qt(Nt,gn){var ft,st,Re,pt,bt,mi,qo=Nt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Nt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Do=ft.masksProperties;for(pt=Do.length,Re=0;Re<pt;Re+=1)if(Do[Re].pt.k.i)qe(Do[Re].pt.k);else for(mi=Do[Re].pt.k.length,bt=0;bt<mi;bt+=1)Do[Re].pt.k[bt].s&&qe(Do[Re].pt.k[bt].s[0]),Do[Re].pt.k[bt].e&&qe(Do[Re].pt.k[bt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,gn),qt(ft.layers,gn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Nt,gn){if(Nt){var ft=0,st=Nt.length;for(ft=0;ft<st;ft+=1)Nt[ft].t===1&&(Nt[ft].data.layers=Ve(Nt[ft].data.refId,gn),qt(Nt[ft].data.layers,gn))}}function Xe(Nt,gn){for(var ft=0,st=gn.length;ft<st;){if(gn[ft].id===Nt)return gn[ft];ft+=1}return null}function Ve(Nt,gn){var ft=Xe(Nt,gn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Nt){var gn,ft,st;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)qe(Nt[gn].ks.k);else for(st=Nt[gn].ks.k.length,ft=0;ft<st;ft+=1)Nt[gn].ks.k[ft].s&&qe(Nt[gn].ks.k[ft].s[0]),Nt[gn].ks.k[ft].e&&qe(Nt[gn].ks.k[ft].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function qe(Nt){var gn,ft=Nt.i.length;for(gn=0;gn<ft;gn+=1)Nt.i[gn][0]+=Nt.v[gn][0],Nt.i[gn][1]+=Nt.v[gn][1],Nt.o[gn][0]+=Nt.v[gn][0],Nt.o[gn][1]+=Nt.v[gn][1]}function gt(Nt,gn){var ft=gn?gn.split("."):[100,100,100];return Nt[0]>ft[0]||!(ft[0]>Nt[0])&&(Nt[1]>ft[1]||!(ft[1]>Nt[1])&&(Nt[2]>ft[2]||!(ft[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!gt(Nt,gn.v)){var ft,st=gn.chars.length;for(ft=0;ft<st;ft+=1){var Re=gn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},gn.chars[ft].t||(Re.data.shapes.push({ty:"no"}),Re.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ot=(function(){var Nt=[5,7,15];function gn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(st){var Re,pt,bt,mi=st.length;for(Re=0;Re<mi;Re+=1)if(st[Re].ty==="gr")gn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(bt=st[Re].c.k.length,pt=0;pt<bt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&gn(st[Re].shapes)}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(st){var Re,pt,bt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(bt=st[Re].ks.k.length,pt=0;pt<bt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&gn(st[Re].it)}function ft(st){var Re,pt,bt,mi,qo,Do,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(mi=Ko.length,bt=0;bt<mi;bt+=1)if(Ko[bt].pt.k.i)Ko[bt].pt.k.c=Ko[bt].cl;else for(Do=Ko[bt].pt.k.length,qo=0;qo<Do;qo+=1)Ko[bt].pt.k[qo].s&&(Ko[bt].pt.k[qo].s[0].c=Ko[bt].cl),Ko[bt].pt.k[qo].e&&(Ko[bt].pt.k[qo].e[0].c=Ko[bt].cl)}Re.ty===4&&gn(Re.shapes)}}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function ai(Nt){Nt.__complete||(co(Nt),rn(Nt),ln(Nt),Ot(Nt),So(Nt),qt(Nt.layers,Nt.assets),Jt(Nt.chars,Nt.assets),Nt.__complete=!0)}function Go(Nt){Nt.t.a.length===0&&Nt.t.p}var oo={};return oo.completeData=ai,oo.checkColors=co,oo.checkChars=ln,oo.checkPathProperties=Ot,oo.checkShapes=So,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&me(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,qe){var gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=qt(rn),Ne(gt);else try{gt=qt(rn),Ne(gt)}catch(ln){qe&&qe(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),dt.data.type==="loadAnimation")$e.assetLoader.load(dt.data.path,dt.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:dt.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:dt.data.id,status:"error"})}));else if(dt.data.type==="complete"){var Et=dt.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:dt.data.id,payload:Et,status:"success"})}else dt.data.type==="loadData"&&$e.assetLoader.load(dt.data.path,dt.data.fullPath,(function(qt){$e.postMessage({id:dt.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:dt.data.id,status:"error"})}))})),X.onmessage=function(dt){var Ct=dt.data,Et=Ct.id,qt=xe[Et];xe[Et]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function We(dt,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:dt,onError:Ct},Et}function Mt(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"loadAnimation",path:dt,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"loadData",path:dt,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"complete",animation:dt,id:qt})}return{loadAnimation:Mt,loadData:Kt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Xe,Ve,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=Ve+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function ve(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Oe(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var qe={img:Ne,assetData:Xe};return qe}function He(Xe){var Ve={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){Ve.img=qe,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function We(Xe,Ve){this.imagesLoadedCb=Ve;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 Mt(Xe){this.path=Xe||""}function Kt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function dt(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=ve.bind(this),this.createFootageData=He.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:We,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:Et,destroy:dt,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},Jt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-BJboEKV6.js","assets/sentry-CH_DDyry.js","assets/core-CP1aSAr8.js","assets/index-CM1JigJN.js","assets/DefaultTenantHome-C-C4WYhs.js","assets/mui-CDqYWWf8.js","assets/getLocaleForTenant-B-maRjtJ.js","assets/analytics-C2DEKcgM.js","assets/utils-D5NxkGnw.js","assets/AppDrawer-qZ43YOIr.js","assets/InboxNotificationsProvider-C--dhzC5.js","assets/useTaskManagerAccess-DMgJoDF0.js","assets/expenseAutomationHelper-C7OVSnk0.js","assets/ScreenRoutes-DFdEOGuo.js","assets/analyticsHelper-C0W9bP3B.js","assets/ConnectionAuthScreen-BhKFUrLT.js","assets/AccountMappingScreen-XwNUpw_D.js","assets/MobileAppDrawer-Cm07ALiS.js","assets/QBOConnectionScreen-w9QXvf5m.js","assets/empty-Cpj4MUYA.js","assets/index-BV_a75kn.js","assets/url-BDql7gAd.js","assets/index-CCJoMRqM.js","assets/decodeURIComponentSafe-B3-i3MYW.js","assets/accountMappingHelper-D2fGuMNL.js","assets/SignInScreen-JQM3c2Lt.js","assets/useDeviceId-DNy_ZbA_.js","assets/MagicLinkSignInScreen-CqY4g9UV.js","assets/NotFoundScreen-DiLi5Nus.js","assets/MagicLinkRoutes-B9-_HvVj.js","assets/PaymentLinkScreen-DaigjqWQ.js","assets/WiseConfirmationScreen-DZnU762L.js","assets/HubSpotOAuthCallbackScreen-B1B5iuzx.js","assets/CustomerOnboardingAuthScreen-CUOuvre9.js","assets/SignOutScreen-BPlDZTUu.js","assets/OAuthConsentScreen-1c6jchUq.js"])))=>i.map(i=>d[i]);
2
+ import{R as B,b as h5e,a as m,r as Kh,g as O8t,p as ire,d as Lke,f as nin,s as Bke,i as iin,w as oin,j as rin,S as ain,k as sin,l as lin,m as cin,n as din,o as uin,q as pin}from"./sentry-CH_DDyry.js";import{L as hin,C as Pke,_ as Fp,a as min,b as iz,c as gin,d as XX,e as oz,u as F8t,T as fin,f as xin,g as yin,h as bin,i as win,k as R8t,l as Cin,m as vin,j as en}from"./liveblocks-qsICRTxQ.js";import{f as z8t,r as Aa,P as Dl,R as Ain,O as Sin,N as N8t,u as Sp,g as Dg,h as eee,i as _8t,j as Rr,m as M9e,s as Wq,k as V8t,l as kin,n as jin,o as R1,p as $in,B as Ein}from"./core-CP1aSAr8.js";import{L as Mke,bl as Iin,bm as Din,bn as rz,bo as Tin,bp as Lin,bq as ps,br as Yt,bs as _D,bt as H8t,bu as T3,bv as Bin,bw as ty,bx as Ss,by as Pin,bz as Min,bA as Oin,bB as L1,bC as Ip,bD as WF,bE as u9,bF as fn,bG as U8t,bH as S1,bI as va,bJ as RI,bK as W8t,bL as Q8t,bM as O9e,bN as A5,bO as Pu,bP as w7,bQ as Fin,bR as wc,bS as Rin,bT as VD,bU as zin,bV as Nin,bW as Qq,bX as _in,bY as Vin,bZ as Yq,b_ as Hin,b$ as Uin,c0 as p9,c1 as Oke,c2 as Win,c3 as Qin,c4 as Yin,c5 as Gin,c6 as qin,c7 as Kin,c8 as Zin,c9 as C7,ca as tee,cb as Jin,cc as nee,cd as iee,ce as oee,cf as F9e,cg as gA,ch as fA,ci as az,cj as zI,ck as NI,cl as xA,cm as ree,cn as _v,co as Xin,cp as Fke,cq as eon,cr as ton,cs as non,ct as ion,cu as Y8t,cv as oon,cw as ron,cx as q8,cy as Rke,cz as aon,cA as son,cB as lon,cC as ZA,cD as JA,cE as G8t,cF as q8t,cG as R9e,cH as con,cI as K8t,cJ as don,cK as Gq,cL as Z8t,cM as uon,cN as J8t,cO as pon,cP as SM,cQ as hon,cR as mon,cS as zke,cT as gon,cU as z9e,cV as N9e,cW as fon,cX as xon,cY as yon,cZ as bon,c_ as GN,c$ as _I,d0 as qN,d1 as won,d2 as Con,d3 as X8t,d4 as von,d5 as Aon,d6 as Son,d7 as kon,d8 as jon,d9 as ewt,da as Nke,db as $on,dc as _9e,dd as Eon,de as Ion,df as Don,dg as twt,dh as qd,di as Bl,dj as aee,dk as Ton,dl as Lon,dm as f1,dn as nwt,dp as Bon,dq as QF,dr as Vv,ds as Ts,dt as _ke,du as Pon,dv as Mon,dw as Oon,dx as iwt,dy as V9e,dz as KN,dA as owt,dB as Fon,dC as Ron,dD as zon,dE as Non,dF as _on,dG as rg,dH as Von,dI as Hon,dJ as Uon,dK as Won,dL as ZN,dM as yA,dN as see,dO as Qon,dP as Yon,dQ as XA,dR as k1,dS as rwt,dT as awt,dU as Gon,dV as swt,dW as qon,dX as Kon,dY as Zon,dZ as Jon,d_ as HD,d$ as H9e,e0 as U9e,e1 as Xon,e2 as W9e,e3 as lwt,e4 as cwt,e5 as dwt,e6 as uwt,e7 as pwt,e8 as hwt,e9 as ern,_ as bd,ea as UD,eb as trn,ec as Vke,ed as lee,ee as nrn,ef as irn,eg as mwt,eh as orn,ei as jO,ej as s0,ek as v7,el as gwt,em as fwt,en as rrn,eo as xwt,ep as m5e,eq as arn,er as uG,es as srn,et as lrn,eu as crn,ev as drn,ew as urn,ex as ywt,ey as bwt,ez as prn,eA as hrn,eB as wwt,eC as $O,eD as EO,eE as Cwt,eF as mrn,eG as grn,eH as Q9e,eI as frn,eJ as xrn,eK as yrn,eL as Y9e,eM as vwt,eN as Awt,eO as G9e,eP as WD,eQ as cee,eR as q9e,eS as K9e,eT as Z9e,eU as J9e,eV as brn,eW as wrn,eX as Swt,eY as Hke,eZ as Crn,e_ as vrn,e$ as j1,f0 as Arn,f1 as dee,f2 as kwt,f3 as jwt,f4 as Srn,f5 as X9e,f6 as e8e,f7 as krn,f8 as jrn,f9 as $rn,fa as Ern,fb as Irn,fc as Drn,fd as bg,fe as Uke,ff as $wt,fg as Trn,fh as Lrn,fi as Brn,fj as Ewt,fk as Iwt,fl as Dwt,fm as Twt,fn as Lwt,fo as Bwt,fp as Prn,fq as VI,fr as Mrn,fs as Orn,ft as Frn,fu as Rrn,fv as Pwt,fw as Mwt,fx as Wke,fy as Qke,fz as zrn,fA as Nrn,fB as Yke,fC as Gke,fD as _rn,fE as Vrn,fF as g5e,fG as Hrn,v as Urn,fH as uee,fI as Dp,fJ as Owt,fK as Fwt,fL as Wrn,fM as Qrn,fN as qke,fO as Yrn,fP as Grn,fQ as qrn,fR as Krn,fS as Zrn,fT as Jrn,fU as Xrn,fV as ean,fW as tan,fX as nan,fY as ian,fZ as oan,f_ as ran,f$ as aan,g0 as san,g1 as lan,g2 as can,g3 as dan,g4 as uan,g5 as Kke,g6 as pan,g7 as han,g8 as man,g9 as gan,ga as fan,gb as Rwt,gc as pee,gd as t8e,ge as zwt,gf as xan,gg as yan,gh as ban,gi as Nwt,gj as Zke,gk as _wt,gl as Vwt,gm as wan,gn as Hwt,go as Uwt,gp as Can,gq as van,gr as f5e,gs as Aan,gt as IO,gu as San,gv as kan,gw as jan,gx as $an,gy as Ean,gz as Ian,gA as Dan,gB as Tan,gC as Lan,gD as Ban,gE as Pan,gF as Man,gG as Wwt,gH as Oan,gI as Fan,gJ as Ran,gK as Jke,gL as zan,gM as Nan,gN as _an,gO as Van,gP as Han,gQ as Uan,gR as Wan,gS as Qwt,gT as Ywt,gU as Qan,gV as Gwt,gW as Yan,gX as Gan,gY as x5e,gZ as qan,g_ as Kan,g$ as Zan,h0 as Jan,h1 as Xan,h2 as esn,h3 as Xke,h4 as tsn,h5 as nsn,h6 as isn}from"./zeni-epic-state-BJboEKV6.js";import{j as To,c as Ee,k as ui,a as eje,b as qwt,C as Kwt,T as osn,M as rsn,n as a,u as Pe,d as si,e as Zwt,G as hee,A as tje,R as asn,D as Vc,F as ssn,f as qq,g as y5e,P as L3,h as lsn,S as mee,i as csn,l as dsn,m as YF,o as usn,s as eS,p as psn}from"./mui-CDqYWWf8.js";import{r as hsn,m as Xm}from"./analytics-C2DEKcgM.js";import{u as P1}from"./plaid-DGN2_yvM.js";import{D as n8e,H as gee,g as msn,O as gsn,S as fsn,T as xsn,u as i8e,a as o8e,b as ysn}from"./dnd-Bln0C_Vo.js";import{l as r8e}from"./stripe-cKAAJElX.js";import{L as eI}from"./lottie-Bjt47Zzw.js";import{r as Hc}from"./lexical-BaDJgXwt.js";import{D as b5e,P as w5e,_ as Jwt,a as Xwt}from"./pdf-nelcWlbV.js";import{R as bA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Hv,M as D1,N as QD,O as eCt,P as bsn,Q as wsn,S as fee,U as Csn,V as a8e,W as vsn,Z as Asn,_ as Ssn,d as ksn}from"./recharts-CqgoPLZp.js";import{r as jsn,n as nje}from"./utils-D5NxkGnw.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]="066fbe79-058c-4b82-9a70-9130abc28833",e._sentryDebugIdIdentifier="sentry-dbid-066fbe79-058c-4b82-9a70-9130abc28833")}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 ije,JN={},$sn=(function(){if(ije)return JN;ije=1;var e=z8t();return JN.createRoot=e.createRoot,JN.hydrateRoot=e.hydrateRoot,JN})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof h5e<"u"?h5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oje,rje,aje={exports:{}},XT={};function tCt(){return rje||(rje=1,aje.exports=(function(){if(oje)return XT;oje=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 XT.Fragment=i,XT.jsx=c,XT.jsxs=c,XT})()),aje.exports}var t=tCt();const Esn=m.createContext(null),ore={didCatch:!1,error:null};let Isn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ore}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(ore)}}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(ore))}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(Esn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var sje,lje,cje,rre,dje,uje,pje,hje,mje,are={exports:{}};function Dsn(){return sje||(sje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(are.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,ve=G.length;for(pe=0;pe<ve;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var ve,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":ve=1;break;default:ve=1.1}for($e=0;$e<xe;$e+=1)Oe.push(ve);return Oe}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function R(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function V(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function _(G,X,pe){var xe,ve,$e,Oe,He,We,Mt,Kt;switch(We=pe*(1-X),Mt=pe*(1-(He=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-He)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=We;break;case 1:xe=Mt,ve=pe,$e=We;break;case 2:xe=We,ve=pe,$e=Kt;break;case 3:xe=We,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=We,$e=pe;break;case 5:xe=pe,ve=We,$e=Mt}return[xe,ve,$e]}function W(G,X,pe){var xe,ve=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=ve-$e,He=ve===0?0:Oe/ve,We=ve/255;switch(ve){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,He,We]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),_(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),_(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),_(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},oe=function(G){v=G};function le(G){return document.createElementNS(i,G)}function me(G){return me=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},me(G)}var ue=(function(){var G,X,pe=1,xe=[],ve={onmessage:function(){},postMessage:function(dt){G({data:dt})}},$e={postMessage:function(dt){ve.onmessage({data:dt})}};function Oe(dt){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",dt.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=dt,ve}function He(){X||(X=Oe((function(dt){function Ct(){function qt(Nt,gn){var ft,st,Re,pt,bt,mi,qo=Nt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Nt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Do=ft.masksProperties;for(pt=Do.length,Re=0;Re<pt;Re+=1)if(Do[Re].pt.k.i)qe(Do[Re].pt.k);else for(mi=Do[Re].pt.k.length,bt=0;bt<mi;bt+=1)Do[Re].pt.k[bt].s&&qe(Do[Re].pt.k[bt].s[0]),Do[Re].pt.k[bt].e&&qe(Do[Re].pt.k[bt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,gn),qt(ft.layers,gn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Nt,gn){if(Nt){var ft=0,st=Nt.length;for(ft=0;ft<st;ft+=1)Nt[ft].t===1&&(Nt[ft].data.layers=Ve(Nt[ft].data.refId,gn),qt(Nt[ft].data.layers,gn))}}function Xe(Nt,gn){for(var ft=0,st=gn.length;ft<st;){if(gn[ft].id===Nt)return gn[ft];ft+=1}return null}function Ve(Nt,gn){var ft=Xe(Nt,gn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Nt){var gn,ft,st;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)qe(Nt[gn].ks.k);else for(st=Nt[gn].ks.k.length,ft=0;ft<st;ft+=1)Nt[gn].ks.k[ft].s&&qe(Nt[gn].ks.k[ft].s[0]),Nt[gn].ks.k[ft].e&&qe(Nt[gn].ks.k[ft].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function qe(Nt){var gn,ft=Nt.i.length;for(gn=0;gn<ft;gn+=1)Nt.i[gn][0]+=Nt.v[gn][0],Nt.i[gn][1]+=Nt.v[gn][1],Nt.o[gn][0]+=Nt.v[gn][0],Nt.o[gn][1]+=Nt.v[gn][1]}function gt(Nt,gn){var ft=gn?gn.split("."):[100,100,100];return Nt[0]>ft[0]||!(ft[0]>Nt[0])&&(Nt[1]>ft[1]||!(ft[1]>Nt[1])&&(Nt[2]>ft[2]||!(ft[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!gt(Nt,gn.v)){var ft,st=gn.chars.length;for(ft=0;ft<st;ft+=1){var Re=gn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},gn.chars[ft].t||(Re.data.shapes.push({ty:"no"}),Re.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ot=(function(){var Nt=[5,7,15];function gn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(st){var Re,pt,bt,mi=st.length;for(Re=0;Re<mi;Re+=1)if(st[Re].ty==="gr")gn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(bt=st[Re].c.k.length,pt=0;pt<bt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&gn(st[Re].shapes)}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(st){var Re,pt,bt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(bt=st[Re].ks.k.length,pt=0;pt<bt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&gn(st[Re].it)}function ft(st){var Re,pt,bt,mi,qo,Do,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(mi=Ko.length,bt=0;bt<mi;bt+=1)if(Ko[bt].pt.k.i)Ko[bt].pt.k.c=Ko[bt].cl;else for(Do=Ko[bt].pt.k.length,qo=0;qo<Do;qo+=1)Ko[bt].pt.k[qo].s&&(Ko[bt].pt.k[qo].s[0].c=Ko[bt].cl),Ko[bt].pt.k[qo].e&&(Ko[bt].pt.k[qo].e[0].c=Ko[bt].cl)}Re.ty===4&&gn(Re.shapes)}}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function ai(Nt){Nt.__complete||(co(Nt),rn(Nt),ln(Nt),Ot(Nt),So(Nt),qt(Nt.layers,Nt.assets),Jt(Nt.chars,Nt.assets),Nt.__complete=!0)}function Go(Nt){Nt.t.a.length===0&&Nt.t.p}var oo={};return oo.completeData=ai,oo.checkColors=co,oo.checkChars=ln,oo.checkPathProperties=Ot,oo.checkShapes=So,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&me(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,qe){var gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=qt(rn),Ne(gt);else try{gt=qt(rn),Ne(gt)}catch(ln){qe&&qe(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),dt.data.type==="loadAnimation")$e.assetLoader.load(dt.data.path,dt.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:dt.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:dt.data.id,status:"error"})}));else if(dt.data.type==="complete"){var Et=dt.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:dt.data.id,payload:Et,status:"success"})}else dt.data.type==="loadData"&&$e.assetLoader.load(dt.data.path,dt.data.fullPath,(function(qt){$e.postMessage({id:dt.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:dt.data.id,status:"error"})}))})),X.onmessage=function(dt){var Ct=dt.data,Et=Ct.id,qt=xe[Et];xe[Et]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function We(dt,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:dt,onError:Ct},Et}function Mt(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"loadAnimation",path:dt,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"loadData",path:dt,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(dt,Ct,Et){He();var qt=We(Ct,Et);X.postMessage({type:"complete",animation:dt,id:qt})}return{loadAnimation:Mt,loadData:Kt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Xe,Ve,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=Ve+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function ve(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Oe(Xe){var Ve=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var qe={img:Ne,assetData:Xe};return qe}function He(Xe){var Ve={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){Ve.img=qe,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function We(Xe,Ve){this.imagesLoadedCb=Ve;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 Mt(Xe){this.path=Xe||""}function Kt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function dt(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=ve.bind(this),this.createFootageData=He.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:We,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:Et,destroy:dt,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},Jt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
3
3
  `),ve={},$e=0,Oe=0;Oe<xe.length;Oe+=1)(pe=xe[Oe].split(":")).length===2&&(ve[pe[0]]=pe[1].trim(),$e+=1);if($e===0)throw new Error;return ve}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var ve=X[xe],$e={time:ve.tm,duration:ve.dr};try{$e.payload=JSON.parse(X[xe].cm)}catch{try{$e.payload=G(X[xe].cm)}catch{$e.payload={name:X[xe].cm}}}pe.push($e)}return pe}})(),de=(function(){function G(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,ve=this.compositions.length;xe<ve;){if(this.compositions[xe].data&&this.compositions[xe].data.nm===pe)return this.compositions[xe].prepareFrame&&this.compositions[xe].data.xt&&this.compositions[xe].prepareFrame(this.currentFrame),this.compositions[xe].compInterface;xe+=1}return null}return X.compositions=[],X.currentFrame=0,X.registerComposition=G,X}})(),ge={},he=function(G,X){ge[G]=X};function ye(G){return ge[G]}function Ae(){if(ge.canvas)return"canvas";for(var G in ge)if(ge[G])return G;return""}function Ce(G){return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},Ce(G)}var be=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=H(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=de(),this.imagePreloader=new re,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new R("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],be),be.prototype.setParams=function(G){(G.wrapper||G.container)&&(this.wrapper=G.wrapper||G.container);var X="svg";G.animType?X=G.animType:G.renderer&&(X=G.renderer);var pe=ye(X);this.renderer=new pe(this,G.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,G.loop===""||G.loop===null||G.loop===void 0||G.loop===!0?this.loop=!0:G.loop===!1?this.loop=!1:this.loop=parseInt(G.loop,10),this.autoplay=!("autoplay"in G)||G.autoplay,this.name=G.name?G.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(G,"autoloadSegments")||G.autoloadSegments,this.assetsPath=G.assetsPath,this.initialSegment=G.initialSegment,G.audioFactory&&this.audioController.setAudioFactory(G.audioFactory),G.animationData?this.setupAnimation(G.animationData):G.path&&(G.path.lastIndexOf("\\")!==-1?this.path=G.path.substr(0,G.path.lastIndexOf("\\")+1):this.path=G.path.substr(0,G.path.lastIndexOf("/")+1),this.fileName=G.path.substr(G.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(G.path,this.configAnimation,this.onSetupError))},be.prototype.onSetupError=function(){this.trigger("data_failed")},be.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},be.prototype.setData=function(G,X){X&&Ce(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:G,animationData:X},xe=G.attributes;pe.path=xe.getNamedItem("data-animation-path")?xe.getNamedItem("data-animation-path").value:xe.getNamedItem("data-bm-path")?xe.getNamedItem("data-bm-path").value:xe.getNamedItem("bm-path")?xe.getNamedItem("bm-path").value:"",pe.animType=xe.getNamedItem("data-anim-type")?xe.getNamedItem("data-anim-type").value:xe.getNamedItem("data-bm-type")?xe.getNamedItem("data-bm-type").value:xe.getNamedItem("bm-type")?xe.getNamedItem("bm-type").value:xe.getNamedItem("data-bm-renderer")?xe.getNamedItem("data-bm-renderer").value:xe.getNamedItem("bm-renderer")?xe.getNamedItem("bm-renderer").value:Ae()||"canvas";var ve=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:"";ve==="false"?pe.loop=!1:ve==="true"?pe.loop=!0:ve!==""&&(pe.loop=parseInt(ve,10));var $e=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=$e!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},be.prototype.includeLayers=function(G){G.op>this.animationData.op&&(this.animationData.op=G.op,this.totalFrames=Math.floor(G.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,ve=xe.length,$e=G.layers,Oe=$e.length;for(pe=0;pe<Oe;pe+=1)for(X=0;X<ve;){if(xe[X].id===$e[pe].id){xe[X]=$e[pe];break}X+=1}if((G.chars||G.fonts)&&(this.renderer.globalData.fontManager.addChars(G.chars),this.renderer.globalData.fontManager.addFonts(G.fonts,this.renderer.globalData.defs)),G.assets)for(ve=G.assets.length,X=0;X<ve;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},be.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},be.prototype.loadNextSegment=function(){var G=this.animationData.segments;if(!G||G.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=G.shift();this.timeCompleted=X.time*this.frameRate;var pe=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ue.loadData(pe,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},be.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},be.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},be.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},be.prototype.configAnimation=function(G){if(this.renderer)try{this.animationData=G,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(G),G.assets||(G.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(G.assets),this.markers=ce(G.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},be.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},be.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var G=te();G&&G.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},be.prototype.resize=function(G,X){var pe=typeof G=="number"?G:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},be.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},be.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")},be.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(G){this.triggerRenderFrameError(G)}},be.prototype.play=function(G){G&&this.name!==G||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},be.prototype.pause=function(G){G&&this.name!==G||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},be.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},be.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},be.prototype.getMarkerData=function(G){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===G)return X;return null},be.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var ve=this.getMarkerData(G);ve&&this.goToAndStop(ve.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},be.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var ve=this.getMarkerData(G);ve&&(ve.duration?this.playSegments([ve.time,ve.time+ve.duration],!0):this.goToAndStop(ve.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},be.prototype.advanceTime=function(G){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+G*this.frameModifier,pe=!1;X>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?X>=this.totalFrames?(this.playCount+=1,this.checkSegments(X%this.totalFrames)||(this.setCurrentRawFrameValue(X%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(X):this.checkSegments(X>this.totalFrames?X%this.totalFrames:0)||(pe=!0,X=this.totalFrames-1):X<0?this.checkSegments(X%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(pe=!0,X=0):(this.setCurrentRawFrameValue(this.totalFrames+X%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(X),pe&&(this.setCurrentRawFrameValue(X),this.pause(),this.trigger("complete"))}},be.prototype.adjustSegment=function(G,X){this.playCount=0,G[1]<G[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=G[0]-G[1],this.timeCompleted=this.totalFrames,this.firstFrame=G[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):G[1]>G[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=G[1]-G[0],this.timeCompleted=this.totalFrames,this.firstFrame=G[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},be.prototype.setSegment=function(G,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<G?pe=G:this.currentRawFrame+this.firstFrame>X&&(pe=X-G)),this.firstFrame=G,this.totalFrames=X-G,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},be.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),Ce(G[0])==="object"){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)this.segments.push(G[pe])}else this.segments.push(G);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},be.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},be.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},be.prototype.destroy=function(G){G&&this.name!==G||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},be.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},be.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},be.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},be.prototype.setLoop=function(G){this.loop=G},be.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},be.prototype.getVolume=function(){return this.audioController.getVolume()},be.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},be.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},be.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},be.prototype.getPath=function(){return this.path},be.prototype.getAssetsPath=function(G){var X="";if(G.e)X=G.p;else if(this.assetsPath){var pe=G.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=G.u?G.u:"",X+=G.p;return X},be.prototype.getAssetData=function(G){for(var X=0,pe=this.assets.length;X<pe;){if(G===this.assets[X].id)return this.assets[X];X+=1}return null},be.prototype.hide=function(){this.renderer.hide()},be.prototype.show=function(){this.renderer.show()},be.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},be.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},be.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new R(G,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(G,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(G,new V(G,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(G,new N(G,this.frameMult));break;case"segmentStart":this.triggerEvent(G,new z(G,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(G,new T(G,this));break;default:this.triggerEvent(G)}G==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new R(G,this.currentFrame,this.totalFrames,this.frameMult)),G==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new V(G,this.loop,this.playCount,this.frameMult)),G==="complete"&&this.onComplete&&this.onComplete.call(this,new N(G,this.frameMult)),G==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(G,this.firstFrame,this.totalFrames)),G==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(G,this))},be.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},be.prototype.triggerConfigError=function(G){var X=new O(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Be=(function(){var G={},X=[],pe=0,xe=0,ve=0,$e=!0,Oe=!1;function He(ft){for(var st=0,Re=ft.target;st<xe;)X[st].animation===Re&&(X.splice(st,1),st-=1,xe-=1,Re.isPaused||et()),st+=1}function We(ft,st){if(!ft)return null;for(var Re=0;Re<xe;){if(X[Re].elem===ft&&X[Re].elem!==null)return X[Re].animation;Re+=1}var pt=new be;return dt(pt,ft),pt.setData(ft,st),pt}function Mt(){var ft,st=X.length,Re=[];for(ft=0;ft<st;ft+=1)Re.push(X[ft].animation);return Re}function Kt(){ve+=1,So()}function et(){ve-=1}function dt(ft,st){ft.addEventListener("destroy",He),ft.addEventListener("_active",Kt),ft.addEventListener("_idle",et),X.push({elem:st,animation:ft}),xe+=1}function Ct(ft){var st=new be;return dt(st,null),st.setParams(ft),st}function Et(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setSpeed(ft,st)}function qt(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setDirection(ft,st)}function Jt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.play(ft)}function Xe(ft){var st,Re=ft-pe;for(st=0;st<xe;st+=1)X[st].animation.advanceTime(Re);pe=ft,ve&&!Oe?window.requestAnimationFrame(Xe):$e=!0}function Ve(ft){pe=ft,window.requestAnimationFrame(Xe)}function Ne(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.pause(ft)}function qe(ft,st,Re){var pt;for(pt=0;pt<xe;pt+=1)X[pt].animation.goToAndStop(ft,st,Re)}function gt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.stop(ft)}function rn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.togglePause(ft)}function ln(ft){var st;for(st=xe-1;st>=0;st-=1)X[st].animation.destroy(ft)}function Ot(ft,st,Re){var pt,bt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),mi=bt.length;for(pt=0;pt<mi;pt+=1)Re&&bt[pt].setAttribute("data-bm-type",Re),We(bt[pt],ft);if(st&&mi===0){Re||(Re="svg");var qo=document.getElementsByTagName("body")[0];qo.innerText="";var Do=h("div");Do.style.width="100%",Do.style.height="100%",Do.setAttribute("data-bm-type",Re),qo.appendChild(Do),We(Do,ft)}}function co(){var ft;for(ft=0;ft<xe;ft+=1)X[ft].animation.resize()}function So(){!Oe&&ve&&$e&&(window.requestAnimationFrame(Ve),$e=!1)}function ai(){Oe=!0}function Go(){Oe=!1,So()}function oo(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setVolume(ft,st)}function Nt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.mute(ft)}function gn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.unmute(ft)}return G.registerAnimation=We,G.loadAnimation=Ct,G.setSpeed=Et,G.setDirection=qt,G.play=Jt,G.pause=Ne,G.stop=gt,G.togglePause=rn,G.searchAnimations=Ot,G.resize=co,G.goToAndStop=qe,G.destroy=ln,G.freeze=ai,G.unfreeze=Go,G.setVolume=oo,G.mute=Nt,G.unmute=gn,G.getRegisteredAnimations=Mt,G})(),Le=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(Ve,Ne,qe,gt,rn){var ln=rn||("bez_"+Ve+"_"+Ne+"_"+qe+"_"+gt).replace(/\./g,"p");if(X[ln])return X[ln];var Ot=new Xe([Ve,Ne,qe,gt]);return X[ln]=Ot,Ot}var xe=4,ve=.001,$e=1e-7,Oe=10,He=11,We=1/(He-1),Mt=typeof Float32Array=="function";function Kt(Ve,Ne){return 1-3*Ne+3*Ve}function et(Ve,Ne){return 3*Ne-6*Ve}function dt(Ve){return 3*Ve}function Ct(Ve,Ne,qe){return((Kt(Ne,qe)*Ve+et(Ne,qe))*Ve+dt(Ne))*Ve}function Et(Ve,Ne,qe){return 3*Kt(Ne,qe)*Ve*Ve+2*et(Ne,qe)*Ve+dt(Ne)}function qt(Ve,Ne,qe,gt,rn){var ln,Ot,co=0;do(ln=Ct(Ot=Ne+(qe-Ne)/2,gt,rn)-Ve)>0?qe=Ot:Ne=Ot;while(Math.abs(ln)>$e&&++co<Oe);return Ot}function Jt(Ve,Ne,qe,gt){for(var rn=0;rn<xe;++rn){var ln=Et(Ne,qe,gt);if(ln===0)return Ne;Ne-=(Ct(Ne,qe,gt)-Ve)/ln}return Ne}function Xe(Ve){this._p=Ve,this._mSampleValues=Mt?new Float32Array(He):new Array(He),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(Ve){var Ne=this._p[0],qe=this._p[1],gt=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&gt===rn?Ve:Ve===0?0:Ve===1?1:Ct(this._getTForX(Ve),qe,rn)},_precompute:function(){var Ve=this._p[0],Ne=this._p[1],qe=this._p[2],gt=this._p[3];this._precomputed=!0,(Ve!==Ne||qe!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Ve=this._p[0],Ne=this._p[2],qe=0;qe<He;++qe)this._mSampleValues[qe]=Ct(qe*We,Ve,Ne)},_getTForX:function(Ve){for(var Ne=this._p[0],qe=this._p[2],gt=this._mSampleValues,rn=0,ln=1,Ot=He-1;ln!==Ot&&gt[ln]<=Ve;++ln)rn+=We;var co=rn+(Ve-gt[--ln])/(gt[ln+1]-gt[ln])*We,So=Et(co,Ne,qe);return So>=ve?Jt(Ve,co,Ne,qe):So===0?co:qt(Ve,rn,rn+We,Ne,qe)}},G})(),De=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,ve=G,$e=b(ve);function Oe(){return xe?$e[xe-=1]:X()}function He(We){xe===ve&&($e=De.double($e),ve*=2),pe&&pe(We),$e[xe]=We,xe+=1}return{newElement:Oe,release:He}}})(),Me=(function(){function G(){return{addedLength:0,percents:y("float32",se()),lengths:y("float32",se())}}return Fe(8,G)})(),Se=(function(){function G(){return{lengths:[],totalLength:0}}function X(pe){var xe,ve=pe.lengths.length;for(xe=0;xe<ve;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function we(){var G=Math;function X(dt,Ct,Et,qt,Jt,Xe){var Ve=dt*qt+Ct*Jt+Et*Xe-Jt*qt-Xe*dt-Et*Ct;return Ve>-.001&&Ve<.001}function pe(dt,Ct,Et,qt,Jt,Xe,Ve,Ne,qe){if(Et===0&&Xe===0&&qe===0)return X(dt,Ct,qt,Jt,Ve,Ne);var gt,rn=G.sqrt(G.pow(qt-dt,2)+G.pow(Jt-Ct,2)+G.pow(Xe-Et,2)),ln=G.sqrt(G.pow(Ve-dt,2)+G.pow(Ne-Ct,2)+G.pow(qe-Et,2)),Ot=G.sqrt(G.pow(Ve-qt,2)+G.pow(Ne-Jt,2)+G.pow(qe-Xe,2));return(gt=rn>ln?rn>Ot?rn-ln-Ot:Ot-ln-rn:Ot>ln?Ot-ln-rn:ln-rn-Ot)>-1e-4&&gt<1e-4}var xe=(function(){return function(dt,Ct,Et,qt){var Jt,Xe,Ve,Ne,qe,gt,rn=se(),ln=0,Ot=[],co=[],So=Me.newElement();for(Ve=Et.length,Jt=0;Jt<rn;Jt+=1){for(qe=Jt/(rn-1),gt=0,Xe=0;Xe<Ve;Xe+=1)Ne=k(1-qe,3)*dt[Xe]+3*k(1-qe,2)*qe*Et[Xe]+3*(1-qe)*k(qe,2)*qt[Xe]+k(qe,3)*Ct[Xe],Ot[Xe]=Ne,co[Xe]!==null&&(gt+=k(Ot[Xe]-co[Xe],2)),co[Xe]=Ot[Xe];gt&&(ln+=gt=$(gt)),So.percents[Jt]=qe,So.lengths[Jt]=ln}return So.addedLength=ln,So}})();function ve(dt){var Ct,Et=Se.newElement(),qt=dt.c,Jt=dt.v,Xe=dt.o,Ve=dt.i,Ne=dt._length,qe=Et.lengths,gt=0;for(Ct=0;Ct<Ne-1;Ct+=1)qe[Ct]=xe(Jt[Ct],Jt[Ct+1],Xe[Ct],Ve[Ct+1]),gt+=qe[Ct].addedLength;return qt&&Ne&&(qe[Ct]=xe(Jt[Ct],Jt[0],Xe[Ct],Ve[0]),gt+=qe[Ct].addedLength),Et.totalLength=gt,Et}function $e(dt){this.segmentLength=0,this.points=new Array(dt)}function Oe(dt,Ct){this.partialLength=dt,this.point=Ct}var He=(function(){var dt={};return function(Ct,Et,qt,Jt){var Xe=(Ct[0]+"_"+Ct[1]+"_"+Et[0]+"_"+Et[1]+"_"+qt[0]+"_"+qt[1]+"_"+Jt[0]+"_"+Jt[1]).replace(/\./g,"p");if(!dt[Xe]){var Ve,Ne,qe,gt,rn,ln,Ot,co=se(),So=0,ai=null;Ct.length===2&&(Ct[0]!==Et[0]||Ct[1]!==Et[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Ct[0]+qt[0],Ct[1]+qt[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Et[0]+Jt[0],Et[1]+Jt[1])&&(co=2);var Go=new $e(co);for(qe=qt.length,Ve=0;Ve<co;Ve+=1){for(Ot=b(qe),rn=Ve/(co-1),ln=0,Ne=0;Ne<qe;Ne+=1)gt=k(1-rn,3)*Ct[Ne]+3*k(1-rn,2)*rn*(Ct[Ne]+qt[Ne])+3*(1-rn)*k(rn,2)*(Et[Ne]+Jt[Ne])+k(rn,3)*Et[Ne],Ot[Ne]=gt,ai!==null&&(ln+=k(Ot[Ne]-ai[Ne],2));So+=ln=$(ln),Go.points[Ve]=new Oe(ln,Ot),ai=Ot}Go.segmentLength=So,dt[Xe]=Go}return dt[Xe]}})();function We(dt,Ct){var Et=Ct.percents,qt=Ct.lengths,Jt=Et.length,Xe=j((Jt-1)*dt),Ve=dt*Ct.addedLength,Ne=0;if(Xe===Jt-1||Xe===0||Ve===qt[Xe])return Et[Xe];for(var qe=qt[Xe]>Ve?-1:1,gt=!0;gt;)if(qt[Xe]<=Ve&&qt[Xe+1]>Ve?(Ne=(Ve-qt[Xe])/(qt[Xe+1]-qt[Xe]),gt=!1):Xe+=qe,Xe<0||Xe>=Jt-1){if(Xe===Jt-1)return Et[Xe];gt=!1}return Et[Xe]+(Et[Xe+1]-Et[Xe])*Ne}function Mt(dt,Ct,Et,qt,Jt,Xe){var Ve=We(Jt,Xe),Ne=1-Ve;return[G.round(1e3*(Ne*Ne*Ne*dt[0]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[0]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[0]+Ve*Ve*Ve*Ct[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*dt[1]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[1]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[1]+Ve*Ve*Ve*Ct[1]))/1e3]}var Kt=y("float32",8);function et(dt,Ct,Et,qt,Jt,Xe,Ve){Jt<0?Jt=0:Jt>1&&(Jt=1);var Ne,qe=We(Jt,Ve),gt=We(Xe=Xe>1?1:Xe,Ve),rn=dt.length,ln=1-qe,Ot=1-gt,co=ln*ln*ln,So=qe*ln*ln*3,ai=qe*qe*ln*3,Go=qe*qe*qe,oo=ln*ln*Ot,Nt=qe*ln*Ot+ln*qe*Ot+ln*ln*gt,gn=qe*qe*Ot+ln*qe*gt+qe*ln*gt,ft=qe*qe*gt,st=ln*Ot*Ot,Re=qe*Ot*Ot+ln*gt*Ot+ln*Ot*gt,pt=qe*gt*Ot+ln*gt*gt+qe*Ot*gt,bt=qe*gt*gt,mi=Ot*Ot*Ot,qo=gt*Ot*Ot+Ot*gt*Ot+Ot*Ot*gt,Do=gt*gt*Ot+Ot*gt*gt+gt*Ot*gt,ya=gt*gt*gt;for(Ne=0;Ne<rn;Ne+=1)Kt[4*Ne]=G.round(1e3*(co*dt[Ne]+So*Et[Ne]+ai*qt[Ne]+Go*Ct[Ne]))/1e3,Kt[4*Ne+1]=G.round(1e3*(oo*dt[Ne]+Nt*Et[Ne]+gn*qt[Ne]+ft*Ct[Ne]))/1e3,Kt[4*Ne+2]=G.round(1e3*(st*dt[Ne]+Re*Et[Ne]+pt*qt[Ne]+bt*Ct[Ne]))/1e3,Kt[4*Ne+3]=G.round(1e3*(mi*dt[Ne]+qo*Et[Ne]+Do*qt[Ne]+ya*Ct[Ne]))/1e3;return Kt}return{getSegmentsLength:ve,getNewSegment:et,getPointInSegment:Mt,buildBezierData:He,pointOnLine2D:X,pointOnLine3D:pe}}var Ie=we(),Te=l,ze=Math.abs;function it(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var ve,$e,Oe,He=X.lastIndex,We=He,Mt=this.keyframes.length-1,Kt=!0;Kt;){if(ve=this.keyframes[We],$e=this.keyframes[We+1],We===Mt-1&&G>=$e.t-xe){ve.h&&(ve=$e),He=0;break}if($e.t-xe>G){He=We;break}We<Mt-1?We+=1:(He=0,Kt=!1)}Oe=this.keyframesMetadata[We]||{};var et,dt,Ct,Et,qt,Jt,Xe,Ve=$e.t-xe,Ne=ve.t-xe;if(ve.to){Oe.bezierData||(Oe.bezierData=Ie.buildBezierData(ve.s,$e.s||ve.e,ve.to,ve.ti));var qe=Oe.bezierData;if(G>=Ve||G<Ne){var gt=G>=Ve?qe.points.length-1:0;for(dt=qe.points[gt].point.length,et=0;et<dt;et+=1)pe[et]=qe.points[gt].point[et]}else{Oe.__fnct?Jt=Oe.__fnct:(Jt=Le.getBezierEasing(ve.o.x,ve.o.y,ve.i.x,ve.i.y,ve.n).get,Oe.__fnct=Jt),Ct=Jt((G-Ne)/(Ve-Ne));var rn,ln=qe.segmentLength*Ct,Ot=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastAddedLength:0;for(qt=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastPoint:0,Kt=!0,Et=qe.points.length;Kt;){if(Ot+=qe.points[qt].partialLength,ln===0||Ct===0||qt===qe.points.length-1){for(dt=qe.points[qt].point.length,et=0;et<dt;et+=1)pe[et]=qe.points[qt].point[et];break}if(ln>=Ot&&ln<Ot+qe.points[qt+1].partialLength){for(rn=(ln-Ot)/qe.points[qt+1].partialLength,dt=qe.points[qt].point.length,et=0;et<dt;et+=1)pe[et]=qe.points[qt].point[et]+(qe.points[qt+1].point[et]-qe.points[qt].point[et])*rn;break}qt<Et-1?qt+=1:Kt=!1}X._lastPoint=qt,X._lastAddedLength=Ot-qe.points[qt].partialLength,X._lastKeyframeIndex=We}}else{var co,So,ai,Go,oo;if(Mt=ve.s.length,Xe=$e.s||ve.e,this.sh&&ve.h!==1)G>=Ve?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):G<=Ne?(pe[0]=ve.s[0],pe[1]=ve.s[1],pe[2]=ve.s[2]):Ge(pe,Qe(mt(ve.s),mt(Xe),(G-Ne)/(Ve-Ne)));else for(We=0;We<Mt;We+=1)ve.h!==1&&(G>=Ve?Ct=1:G<Ne?Ct=0:(ve.o.x.constructor===Array?(Oe.__fnct||(Oe.__fnct=[]),Oe.__fnct[We]?Jt=Oe.__fnct[We]:(co=ve.o.x[We]===void 0?ve.o.x[0]:ve.o.x[We],So=ve.o.y[We]===void 0?ve.o.y[0]:ve.o.y[We],ai=ve.i.x[We]===void 0?ve.i.x[0]:ve.i.x[We],Go=ve.i.y[We]===void 0?ve.i.y[0]:ve.i.y[We],Jt=Le.getBezierEasing(co,So,ai,Go).get,Oe.__fnct[We]=Jt)):Oe.__fnct?Jt=Oe.__fnct:(co=ve.o.x,So=ve.o.y,ai=ve.i.x,Go=ve.i.y,Jt=Le.getBezierEasing(co,So,ai,Go).get,ve.keyframeMetadata=Jt),Ct=Jt((G-Ne)/(Ve-Ne)))),Xe=$e.s||ve.e,oo=ve.h===1?ve.s[We]:ve.s[We]+(Xe[We]-ve.s[We])*Ct,this.propType==="multidimensional"?pe[We]=oo:pe=oo}return X.lastIndex=He,pe}function Qe(G,X,pe){var xe,ve,$e,Oe,He,We=[],Mt=G[0],Kt=G[1],et=G[2],dt=G[3],Ct=X[0],Et=X[1],qt=X[2],Jt=X[3];return(ve=Mt*Ct+Kt*Et+et*qt+dt*Jt)<0&&(ve=-ve,Ct=-Ct,Et=-Et,qt=-qt,Jt=-Jt),1-ve>1e-6?(xe=Math.acos(ve),$e=Math.sin(xe),Oe=Math.sin((1-pe)*xe)/$e,He=Math.sin(pe*xe)/$e):(Oe=1-pe,He=pe),We[0]=Oe*Mt+He*Ct,We[1]=Oe*Kt+He*Et,We[2]=Oe*et+He*qt,We[3]=Oe*dt+He*Jt,We}function Ge(G,X){var pe=X[0],xe=X[1],ve=X[2],$e=X[3],Oe=Math.atan2(2*xe*$e-2*pe*ve,1-2*xe*xe-2*ve*ve),He=Math.asin(2*pe*xe+2*ve*$e),We=Math.atan2(2*pe*$e-2*xe*ve,1-2*pe*pe-2*ve*ve);G[0]=Oe/D,G[1]=He/D,G[2]=We/D}function mt(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,ve=Math.cos(X/2),$e=Math.cos(pe/2),Oe=Math.cos(xe/2),He=Math.sin(X/2),We=Math.sin(pe/2),Mt=Math.sin(xe/2);return[He*We*Oe+ve*$e*Mt,He*$e*Oe+ve*We*Mt,ve*We*Oe-He*$e*Mt,ve*$e*Oe-He*We*Mt]}function Ft(){var G=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(G===this._caching.lastFrame||this._caching.lastFrame!==Te&&(this._caching.lastFrame>=pe&&G>=pe||this._caching.lastFrame<X&&G<X))){this._caching.lastFrame>=G&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(G,this._caching);this.pv=xe}return this._caching.lastFrame=G,this.pv}function ct(G){var X;if(this.propType==="unidimensional")X=G*this.mult,ze(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=G[pe]*this.mult,ze(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function St(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var G,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(G=0;G<X;G+=1)pe=this.effectsSequence[G](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ye(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function at(G,X,pe,xe){this.propType="unidimensional",this.mult=pe||1,this.data=X,this.v=pe?X.k*pe:X.k,this.pv=X.k,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=St,this.setVValue=ct,this.addEffect=Ye}function Dt(G,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.frameId=-1;var ve,$e=X.k.length;for(this.v=y("float32",$e),this.pv=y("float32",$e),this.vel=y("float32",$e),ve=0;ve<$e;ve+=1)this.v[ve]=X.k[ve]*this.mult,this.pv[ve]=X.k[ve];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=St,this.setVValue=ct,this.addEffect=Ye}function Ut(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame:Te,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=X,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.v=Te,this.pv=Te,this._isFirstFrame=!0,this.getValue=St,this.setVValue=ct,this.interpolateValue=it,this.effectsSequence=[Ft.bind(this)],this.addEffect=Ye}function vt(G,X,pe,xe){this.propType="multidimensional";var ve,$e,Oe,He,We,Mt=X.k.length;for(ve=0;ve<Mt-1;ve+=1)X.k[ve].to&&X.k[ve].s&&X.k[ve+1]&&X.k[ve+1].s&&($e=X.k[ve].s,Oe=X.k[ve+1].s,He=X.k[ve].to,We=X.k[ve].ti,($e.length===2&&!($e[0]===Oe[0]&&$e[1]===Oe[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],$e[0]+He[0],$e[1]+He[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],Oe[0]+We[0],Oe[1]+We[1])||$e.length===3&&!($e[0]===Oe[0]&&$e[1]===Oe[1]&&$e[2]===Oe[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],$e[0]+He[0],$e[1]+He[1],$e[2]+He[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],Oe[0]+We[0],Oe[1]+We[1],Oe[2]+We[2]))&&(X.k[ve].to=null,X.k[ve].ti=null),$e[0]===Oe[0]&&$e[1]===Oe[1]&&He[0]===0&&He[1]===0&&We[0]===0&&We[1]===0&&($e.length===2||$e[2]===Oe[2]&&He[2]===0&&We[2]===0)&&(X.k[ve].to=null,X.k[ve].ti=null));this.effectsSequence=[Ft.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.getValue=St,this.setVValue=ct,this.interpolateValue=it,this.frameId=-1;var Kt=X.k[0].s.length;for(this.v=y("float32",Kt),this.pv=y("float32",Kt),ve=0;ve<Kt;ve+=1)this.v[ve]=Te,this.pv[ve]=Te;this._caching={lastFrame:Te,lastIndex:0,value:y("float32",Kt)},this.addEffect=Ye}var Ke=(function(){function G(X,pe,xe,ve,$e){var Oe;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Oe=new Dt(X,pe,ve,$e);else switch(xe){case 0:Oe=new Ut(X,pe,ve,$e);break;case 1:Oe=new vt(X,pe,ve,$e)}else Oe=new at(X,pe,ve,$e);return Oe.effectsSequence.length&&$e.addDynamicProperty(Oe),Oe}return{getProp:G}})();function Pt(){}Pt.prototype={addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&(this.dynamicProperties.push(G),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var G,X=this.dynamicProperties.length;for(G=0;G<X;G+=1)this.dynamicProperties[G].getValue(),this.dynamicProperties[G]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(G){this.container=G,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();function xt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}xt.prototype.setPathData=function(G,X){this.c=G,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Qt.newElement(),this.o[pe]=Qt.newElement(),this.i[pe]=Qt.newElement(),pe+=1},xt.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},xt.prototype.doubleArrayLength=function(){this.v=this.v.concat(b(this._maxLength)),this.i=this.i.concat(b(this._maxLength)),this.o=this.o.concat(b(this._maxLength)),this._maxLength*=2},xt.prototype.setXYAt=function(G,X,pe,xe,ve){var $e;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":$e=this.v;break;case"i":$e=this.i;break;case"o":$e=this.o;break;default:$e=[]}(!$e[xe]||$e[xe]&&!ve)&&($e[xe]=Qt.newElement()),$e[xe][0]=G,$e[xe][1]=X},xt.prototype.setTripleAt=function(G,X,pe,xe,ve,$e,Oe,He){this.setXYAt(G,X,"v",Oe,He),this.setXYAt(pe,xe,"o",Oe,He),this.setXYAt(ve,$e,"i",Oe,He)},xt.prototype.reverse=function(){var G=new xt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,ve=0;this.c&&(G.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),ve=1);var $e,Oe=this._length-1,He=this._length;for($e=ve;$e<He;$e+=1)G.setTripleAt(X[Oe][0],X[Oe][1],xe[Oe][0],xe[Oe][1],pe[Oe][0],pe[Oe][1],$e,!1),Oe-=1;return G},xt.prototype.length=function(){return this._length};var It=(function(){function G(){return new xt}function X(ve){var $e,Oe=ve._length;for($e=0;$e<Oe;$e+=1)Qt.release(ve.v[$e]),Qt.release(ve.i[$e]),Qt.release(ve.o[$e]),ve.v[$e]=null,ve.i[$e]=null,ve.o[$e]=null;ve._length=0,ve.c=!1}function pe(ve){var $e,Oe=xe.newElement(),He=ve._length===void 0?ve.v.length:ve._length;for(Oe.setLength(He),Oe.c=ve.c,$e=0;$e<He;$e+=1)Oe.setTripleAt(ve.v[$e][0],ve.v[$e][1],ve.o[$e][0],ve.o[$e][1],ve.i[$e][0],ve.i[$e][1],$e);return Oe}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function Wt(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}Wt.prototype.addShape=function(G){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=G,this._length+=1},Wt.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)It.release(this.shapes[G]);this._length=0};var Zt=(function(){var G={newShapeCollection:ve,release:$e},X=0,pe=4,xe=b(pe);function ve(){return X?xe[X-=1]:new Wt}function $e(Oe){var He,We=Oe._length;for(He=0;He<We;He+=1)It.release(Oe.shapes[He]);Oe._length=0,X===pe&&(xe=De.double(xe),pe*=2),xe[X]=Oe,X+=1}return G})(),Ze=(function(){var G=-999999;function X(Xe,Ve,Ne){var qe,gt,rn,ln,Ot,co,So,ai,Go,oo=Ne.lastIndex,Nt=this.keyframes;if(Xe<Nt[0].t-this.offsetTime)qe=Nt[0].s[0],rn=!0,oo=0;else if(Xe>=Nt[Nt.length-1].t-this.offsetTime)qe=Nt[Nt.length-1].s?Nt[Nt.length-1].s[0]:Nt[Nt.length-2].e[0],rn=!0;else{for(var gn,ft,st,Re=oo,pt=Nt.length-1,bt=!0;bt&&(gn=Nt[Re],!((ft=Nt[Re+1]).t-this.offsetTime>Xe));)Re<pt-1?Re+=1:bt=!1;if(st=this.keyframesMetadata[Re]||{},oo=Re,!(rn=gn.h===1)){if(Xe>=ft.t-this.offsetTime)ai=1;else if(Xe<gn.t-this.offsetTime)ai=0;else{var mi;st.__fnct?mi=st.__fnct:(mi=Le.getBezierEasing(gn.o.x,gn.o.y,gn.i.x,gn.i.y).get,st.__fnct=mi),ai=mi((Xe-(gn.t-this.offsetTime))/(ft.t-this.offsetTime-(gn.t-this.offsetTime)))}gt=ft.s?ft.s[0]:gn.e[0]}qe=gn.s[0]}for(co=Ve._length,So=qe.i[0].length,Ne.lastIndex=oo,ln=0;ln<co;ln+=1)for(Ot=0;Ot<So;Ot+=1)Go=rn?qe.i[ln][Ot]:qe.i[ln][Ot]+(gt.i[ln][Ot]-qe.i[ln][Ot])*ai,Ve.i[ln][Ot]=Go,Go=rn?qe.o[ln][Ot]:qe.o[ln][Ot]+(gt.o[ln][Ot]-qe.o[ln][Ot])*ai,Ve.o[ln][Ot]=Go,Go=rn?qe.v[ln][Ot]:qe.v[ln][Ot]+(gt.v[ln][Ot]-qe.v[ln][Ot])*ai,Ve.v[ln][Ot]=Go}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,Ve=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==G&&(qe<Ve&&Xe<Ve||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 ve(Xe,Ve){if(Xe._length!==Ve._length||Xe.c!==Ve.c)return!1;var Ne,qe=Xe._length;for(Ne=0;Ne<qe;Ne+=1)if(Xe.v[Ne][0]!==Ve.v[Ne][0]||Xe.v[Ne][1]!==Ve.v[Ne][1]||Xe.o[Ne][0]!==Ve.o[Ne][0]||Xe.o[Ne][1]!==Ve.o[Ne][1]||Xe.i[Ne][0]!==Ve.i[Ne][0]||Xe.i[Ne][1]!==Ve.i[Ne][1])return!1;return!0}function $e(Xe){ve(this.v,Xe)||(this.v=It.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Oe(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Xe;this.lock=!0,this._mdf=!1,Xe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var Ve,Ne=this.effectsSequence.length;for(Ve=0;Ve<Ne;Ve+=1)Xe=this.effectsSequence[Ve](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function He(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=Ve,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?Ve.pt.k:Ve.ks.k;this.v=It.clone(qe),this.pv=It.clone(this.v),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function We(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Mt(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?Ve.pt.k:Ve.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=It.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=It.clone(this.v),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=G,this.reset=xe,this._caching={lastFrame:G,lastIndex:0},this.effectsSequence=[pe.bind(this)]}He.prototype.interpolateShape=X,He.prototype.getValue=Oe,He.prototype.setVValue=$e,He.prototype.addEffect=We,Mt.prototype.getValue=Oe,Mt.prototype.interpolateShape=X,Mt.prototype.setVValue=$e,Mt.prototype.addEffect=We;var Kt=(function(){var Xe=L;function Ve(Ne,qe){this.v=It.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ke.getProp(Ne,qe.p,1,0,this),this.s=Ke.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ve.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],gt=this.s.v[0]/2,rn=this.s.v[1]/2,ln=this.d!==3,Ot=this.v;Ot.v[0][0]=Ne,Ot.v[0][1]=qe-rn,Ot.v[1][0]=ln?Ne+gt:Ne-gt,Ot.v[1][1]=qe,Ot.v[2][0]=Ne,Ot.v[2][1]=qe+rn,Ot.v[3][0]=ln?Ne-gt:Ne+gt,Ot.v[3][1]=qe,Ot.i[0][0]=ln?Ne-gt*Xe:Ne+gt*Xe,Ot.i[0][1]=qe-rn,Ot.i[1][0]=ln?Ne+gt:Ne-gt,Ot.i[1][1]=qe-rn*Xe,Ot.i[2][0]=ln?Ne+gt*Xe:Ne-gt*Xe,Ot.i[2][1]=qe+rn,Ot.i[3][0]=ln?Ne-gt:Ne+gt,Ot.i[3][1]=qe+rn*Xe,Ot.o[0][0]=ln?Ne+gt*Xe:Ne-gt*Xe,Ot.o[0][1]=qe-rn,Ot.o[1][0]=ln?Ne+gt:Ne-gt,Ot.o[1][1]=qe+rn*Xe,Ot.o[2][0]=ln?Ne-gt*Xe:Ne+gt*Xe,Ot.o[2][1]=qe+rn,Ot.o[3][0]=ln?Ne-gt:Ne+gt,Ot.o[3][1]=qe-rn*Xe}},g([Pt],Ve),Ve})(),et=(function(){function Xe(Ve,Ne){this.v=It.newElement(),this.v.setPathData(!0,0),this.elem=Ve,this.comp=Ve.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),Ne.sy===1?(this.ir=Ke.getProp(Ve,Ne.ir,0,0,this),this.is=Ke.getProp(Ve,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ke.getProp(Ve,Ne.pt,0,0,this),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,D,this),this.or=Ke.getProp(Ve,Ne.or,0,0,this),this.os=Ke.getProp(Ve,Ne.os,0,.01,this),this.localShapeCollection=Zt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Xe.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Ve,Ne,qe,gt,rn=2*Math.floor(this.pt.v),ln=2*Math.PI/rn,Ot=!0,co=this.or.v,So=this.ir.v,ai=this.os.v,Go=this.is.v,oo=2*Math.PI*co/(2*rn),Nt=2*Math.PI*So/(2*rn),gn=-Math.PI/2;gn+=this.r.v;var ft=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<rn;Ve+=1){qe=Ot?ai:Go,gt=Ot?oo:Nt;var st=(Ne=Ot?co:So)*Math.cos(gn),Re=Ne*Math.sin(gn),pt=st===0&&Re===0?0:Re/Math.sqrt(st*st+Re*Re),bt=st===0&&Re===0?0:-st/Math.sqrt(st*st+Re*Re);st+=+this.p.v[0],Re+=+this.p.v[1],this.v.setTripleAt(st,Re,st-pt*gt*qe*ft,Re-bt*gt*qe*ft,st+pt*gt*qe*ft,Re+bt*gt*qe*ft,Ve,!0),Ot=!Ot,gn+=ln*ft}},convertPolygonToPath:function(){var Ve,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,gt=this.or.v,rn=this.os.v,ln=2*Math.PI*gt/(4*Ne),Ot=.5*-Math.PI,co=this.data.d===3?-1:1;for(Ot+=this.r.v,this.v._length=0,Ve=0;Ve<Ne;Ve+=1){var So=gt*Math.cos(Ot),ai=gt*Math.sin(Ot),Go=So===0&&ai===0?0:ai/Math.sqrt(So*So+ai*ai),oo=So===0&&ai===0?0:-So/Math.sqrt(So*So+ai*ai);So+=+this.p.v[0],ai+=+this.p.v[1],this.v.setTripleAt(So,ai,So-Go*ln*rn*co,ai-oo*ln*rn*co,So+Go*ln*rn*co,ai+oo*ln*rn*co,Ve,!0),Ot+=qe*co}this.paths.length=0,this.paths[0]=this.v}},g([Pt],Xe),Xe})(),dt=(function(){function Xe(Ve,Ne){this.v=It.newElement(),this.v.c=!0,this.localShapeCollection=Zt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ve,this.comp=Ve.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.s=Ke.getProp(Ve,Ne.s,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var Ve=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,gt=this.s.v[1]/2,rn=I(qe,gt,this.r.v),ln=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+ln,0,!0),this.v.setTripleAt(Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-ln,Ve+qe,Ne+gt-rn,1,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne+gt,Ve+qe-rn,Ne+gt,Ve+qe-ln,Ne+gt,2,!0),this.v.setTripleAt(Ve-qe+rn,Ne+gt,Ve-qe+ln,Ne+gt,Ve-qe+rn,Ne+gt,3,!0),this.v.setTripleAt(Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-ln,4,!0),this.v.setTripleAt(Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+ln,Ve-qe,Ne-gt+rn,5,!0),this.v.setTripleAt(Ve-qe+rn,Ne-gt,Ve-qe+rn,Ne-gt,Ve-qe+ln,Ne-gt,6,!0),this.v.setTripleAt(Ve+qe-rn,Ne-gt,Ve+qe-ln,Ne-gt,Ve+qe-rn,Ne-gt,7,!0)):(this.v.setTripleAt(Ve-qe,Ne+gt,Ve-qe+ln,Ne+gt,Ve-qe,Ne+gt,2),this.v.setTripleAt(Ve-qe,Ne-gt,Ve-qe,Ne-gt+ln,Ve-qe,Ne-gt,3))):(this.v.setTripleAt(Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+ln,Ve+qe,Ne-gt+rn,0,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne-gt,Ve+qe-rn,Ne-gt,Ve+qe-ln,Ne-gt,1,!0),this.v.setTripleAt(Ve-qe+rn,Ne-gt,Ve-qe+ln,Ne-gt,Ve-qe+rn,Ne-gt,2,!0),this.v.setTripleAt(Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+ln,3,!0),this.v.setTripleAt(Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-ln,Ve-qe,Ne+gt-rn,4,!0),this.v.setTripleAt(Ve-qe+rn,Ne+gt,Ve-qe+rn,Ne+gt,Ve-qe+ln,Ne+gt,5,!0),this.v.setTripleAt(Ve+qe-rn,Ne+gt,Ve+qe-ln,Ne+gt,Ve+qe-rn,Ne+gt,6,!0),this.v.setTripleAt(Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-ln,7,!0)):(this.v.setTripleAt(Ve-qe,Ne-gt,Ve-qe+ln,Ne-gt,Ve-qe,Ne-gt,1,!0),this.v.setTripleAt(Ve-qe,Ne+gt,Ve-qe,Ne+gt-ln,Ve-qe,Ne+gt,2,!0),this.v.setTripleAt(Ve+qe,Ne+gt,Ve+qe-ln,Ne+gt,Ve+qe,Ne+gt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Pt],Xe),Xe})();function Ct(Xe,Ve,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?Ve.pt:Ve.ks).k.length?new Mt(Xe,Ve,Ne):new He(Xe,Ve,Ne):Ne===5?qe=new dt(Xe,Ve):Ne===6?qe=new Kt(Xe,Ve):Ne===7&&(qe=new et(Xe,Ve)),qe.k&&Xe.addDynamicProperty(qe),qe}function Et(){return He}function qt(){return Mt}var Jt={};return Jt.getShapeProp=Ct,Jt.getConstructorFunction=Et,Jt.getKeyframedConstructorFunction=qt,Jt})(),$t=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function ve(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function $e(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,-bt,0,0,bt,pt,0,0,0,0,1,0,0,0,0,1)}function Oe(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(1,0,0,0,0,pt,-bt,0,0,bt,pt,0,0,0,0,1)}function He(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,0,bt,0,0,1,0,0,-bt,0,pt,0,0,0,0,1)}function We(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,-bt,0,0,bt,pt,0,0,0,0,1,0,0,0,0,1)}function Mt(Re,pt){return this._t(1,pt,Re,1,0,0)}function Kt(Re,pt){return this.shear(pe(Re),pe(pt))}function et(Re,pt){var bt=G(pt),mi=X(pt);return this._t(bt,mi,0,0,-mi,bt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(Re),1,0,0,0,0,1,0,0,0,0,1)._t(bt,-mi,0,0,mi,bt,0,0,0,0,1,0,0,0,0,1)}function dt(Re,pt,bt){return!bt&&bt!==0&&(bt=1),Re===1&&pt===1&&bt===1?this:this._t(Re,0,0,0,0,pt,0,0,0,0,bt,0,0,0,0,1)}function Ct(Re,pt,bt,mi,qo,Do,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp){return this.props[0]=Re,this.props[1]=pt,this.props[2]=bt,this.props[3]=mi,this.props[4]=qo,this.props[5]=Do,this.props[6]=ya,this.props[7]=Ko,this.props[8]=dl,this.props[9]=ha,this.props[10]=Ua,this.props[11]=wm,this.props[12]=a2,this.props[13]=Cm,this.props[14]=vm,this.props[15]=Gp,this}function Et(Re,pt,bt){return bt=bt||0,Re!==0||pt!==0||bt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,pt,bt,1):this}function qt(Re,pt,bt,mi,qo,Do,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp){var cr=this.props;if(Re===1&&pt===0&&bt===0&&mi===0&&qo===0&&Do===1&&ya===0&&Ko===0&&dl===0&&ha===0&&Ua===1&&wm===0)return cr[12]=cr[12]*Re+cr[15]*a2,cr[13]=cr[13]*Do+cr[15]*Cm,cr[14]=cr[14]*Ua+cr[15]*vm,cr[15]*=Gp,this._identityCalculated=!1,this;var ZS=cr[0],JS=cr[1],Y8=cr[2],Tf=cr[3],nx=cr[4],qp=cr[5],$y=cr[6],Ey=cr[7],s2=cr[8],Iy=cr[9],l2=cr[10],G8=cr[11],UN=cr[12],WN=cr[13],QN=cr[14],YN=cr[15];return cr[0]=ZS*Re+JS*qo+Y8*dl+Tf*a2,cr[1]=ZS*pt+JS*Do+Y8*ha+Tf*Cm,cr[2]=ZS*bt+JS*ya+Y8*Ua+Tf*vm,cr[3]=ZS*mi+JS*Ko+Y8*wm+Tf*Gp,cr[4]=nx*Re+qp*qo+$y*dl+Ey*a2,cr[5]=nx*pt+qp*Do+$y*ha+Ey*Cm,cr[6]=nx*bt+qp*ya+$y*Ua+Ey*vm,cr[7]=nx*mi+qp*Ko+$y*wm+Ey*Gp,cr[8]=s2*Re+Iy*qo+l2*dl+G8*a2,cr[9]=s2*pt+Iy*Do+l2*ha+G8*Cm,cr[10]=s2*bt+Iy*ya+l2*Ua+G8*vm,cr[11]=s2*mi+Iy*Ko+l2*wm+G8*Gp,cr[12]=UN*Re+WN*qo+QN*dl+YN*a2,cr[13]=UN*pt+WN*Do+QN*ha+YN*Cm,cr[14]=UN*bt+WN*ya+QN*Ua+YN*vm,cr[15]=UN*mi+WN*Ko+QN*wm+YN*Gp,this._identityCalculated=!1,this}function Jt(Re){var pt=Re.props;return this.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15])}function Xe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Ve(Re){for(var pt=0;pt<16;){if(Re.props[pt]!==this.props[pt])return!1;pt+=1}return!0}function Ne(Re){var pt;for(pt=0;pt<16;pt+=1)Re.props[pt]=this.props[pt];return Re}function qe(Re){var pt;for(pt=0;pt<16;pt+=1)this.props[pt]=Re[pt]}function gt(Re,pt,bt){return{x:Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12],y:Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13],z:Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]}}function rn(Re,pt,bt){return Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12]}function ln(Re,pt,bt){return Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13]}function Ot(Re,pt,bt){return Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]}function co(){var Re=this.props[0]*this.props[5]-this.props[1]*this.props[4],pt=this.props[5]/Re,bt=-this.props[1]/Re,mi=-this.props[4]/Re,qo=this.props[0]/Re,Do=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Re,ya=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Re,Ko=new $t;return Ko.props[0]=pt,Ko.props[1]=bt,Ko.props[4]=mi,Ko.props[5]=qo,Ko.props[12]=Do,Ko.props[13]=ya,Ko}function So(Re){return this.getInverseMatrix().applyToPointArray(Re[0],Re[1],Re[2]||0)}function ai(Re){var pt,bt=Re.length,mi=[];for(pt=0;pt<bt;pt+=1)mi[pt]=So(Re[pt]);return mi}function Go(Re,pt,bt){var mi=y("float32",6);if(this.isIdentity())mi[0]=Re[0],mi[1]=Re[1],mi[2]=pt[0],mi[3]=pt[1],mi[4]=bt[0],mi[5]=bt[1];else{var qo=this.props[0],Do=this.props[1],ya=this.props[4],Ko=this.props[5],dl=this.props[12],ha=this.props[13];mi[0]=Re[0]*qo+Re[1]*ya+dl,mi[1]=Re[0]*Do+Re[1]*Ko+ha,mi[2]=pt[0]*qo+pt[1]*ya+dl,mi[3]=pt[0]*Do+pt[1]*Ko+ha,mi[4]=bt[0]*qo+bt[1]*ya+dl,mi[5]=bt[0]*Do+bt[1]*Ko+ha}return mi}function oo(Re,pt,bt){return this.isIdentity()?[Re,pt,bt]:[Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12],Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13],Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]]}function Nt(Re,pt){if(this.isIdentity())return Re+","+pt;var bt=this.props;return Math.round(100*(Re*bt[0]+pt*bt[4]+bt[12]))/100+","+Math.round(100*(Re*bt[1]+pt*bt[5]+bt[13]))/100}function gn(){for(var Re=0,pt=this.props,bt="matrix3d(",mi=1e4;Re<16;)bt+=xe(pt[Re]*mi)/mi,bt+=Re===15?")":",",Re+=1;return bt}function ft(Re){var pt=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?xe(Re*pt)/pt:Re}function st(){var Re=this.props;return"matrix("+ft(Re[0])+","+ft(Re[1])+","+ft(Re[4])+","+ft(Re[5])+","+ft(Re[12])+","+ft(Re[13])+")"}return function(){this.reset=ve,this.rotate=$e,this.rotateX=Oe,this.rotateY=He,this.rotateZ=We,this.skew=Kt,this.skewFromAxis=et,this.shear=Mt,this.scale=dt,this.setTransform=Ct,this.translate=Et,this.transform=qt,this.multiply=Jt,this.applyToPoint=gt,this.applyToX=rn,this.applyToY=ln,this.applyToZ=Ot,this.applyToPointArray=oo,this.applyToTriplePoints=Go,this.applyToPointStringified=Nt,this.toCSS=gn,this.to2dCSS=st,this.clone=Ne,this.cloneFromProps=qe,this.equals=Ve,this.inversePoints=ai,this.inversePoint=So,this.getInverseMatrix=co,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function xn(G){return xn=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},xn(G)}var Vt={};function nn(G){u(G)}function on(){Be.searchAnimations()}function ot(G){K(G)}function In(G){oe(G)}function $n(G){return Be.loadAnimation(G)}function Ci(G){if(typeof G=="string")switch(G){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(G)&&G>1&&ne(G)}function qi(){return typeof navigator<"u"}function di(G,X){G==="expressions"&&ee(X)}function tn(G){switch(G){case"propertyFactory":return Ke;case"shapePropertyFactory":return Ze;case"matrix":return $t;default:return null}}function Mn(){document.readyState==="complete"&&(clearInterval(ti),on())}function Wn(G){for(var X=Zn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==G)return decodeURIComponent(xe[1])}return null}Vt.play=Be.play,Vt.pause=Be.pause,Vt.setLocationHref=nn,Vt.togglePause=Be.togglePause,Vt.setSpeed=Be.setSpeed,Vt.setDirection=Be.setDirection,Vt.stop=Be.stop,Vt.searchAnimations=on,Vt.registerAnimation=Be.registerAnimation,Vt.loadAnimation=$n,Vt.setSubframeRendering=ot,Vt.resize=Be.resize,Vt.goToAndStop=Be.goToAndStop,Vt.destroy=Be.destroy,Vt.setQuality=Ci,Vt.inBrowser=qi,Vt.installPlugin=di,Vt.freeze=Be.freeze,Vt.unfreeze=Be.unfreeze,Vt.setVolume=Be.setVolume,Vt.mute=Be.mute,Vt.unmute=Be.unmute,Vt.getRegisteredAnimations=Be.getRegisteredAnimations,Vt.useWebWorker=c,Vt.setIDPrefix=In,Vt.__getFactory=tn,Vt.version="5.13.0";var Zn="",Gn=document.getElementsByTagName("script"),fi=Gn.length-1,Ln=Gn[fi]||{src:""};Zn=Ln.src?Ln.src.replace(/^[^\?]+\??/,""):"",Wn("renderer");var ti=setInterval(Mn,100);try{xn(n)!=="object"&&(window.bodymovin=Vt)}catch{}var mn=(function(){var G={},X={};function pe(ve,$e){X[ve]||(X[ve]=$e)}function xe(ve,$e,Oe){return new X[ve]($e,Oe)}return G.registerModifier=pe,G.getModifier=xe,G})();function jn(){}function yt(){}function Bt(){}jn.prototype.initModifierProperties=function(){},jn.prototype.addShapeToModifier=function(){},jn.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:Zt.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},jn.prototype.init=function(G,X){this.shapes=[],this.elem=G,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},jn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Pt],jn),g([jn],yt),yt.prototype.initModifierProperties=function(G,X){this.s=Ke.getProp(G,X.s,0,.01,this),this.e=Ke.getProp(G,X.e,0,.01,this),this.o=Ke.getProp(G,X.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=X.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},yt.prototype.addShapeToModifier=function(G){G.pathsData=[]},yt.prototype.calculateShapeEdges=function(G,X,pe,xe,ve){var $e=[];X<=1?$e.push({s:G,e:X}):G>=1?$e.push({s:G-1,e:X-1}):($e.push({s:G,e:1}),$e.push({s:0,e:X-1}));var Oe,He,We=[],Mt=$e.length;for(Oe=0;Oe<Mt;Oe+=1)if(!((He=$e[Oe]).e*ve<xe||He.s*ve>xe+pe)){var Kt,et;Kt=He.s*ve<=xe?0:(He.s*ve-xe)/pe,et=He.e*ve>=xe+pe?1:(He.e*ve-xe)/pe,We.push([Kt,et])}return We.length||We.push([0,0]),We},yt.prototype.releasePathsData=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)Se.release(G[X]);return G.length=0,G},yt.prototype.processShapes=function(G){var X,pe;if(this._mdf||G){var xe=this.o.v%360/360;if(xe<0&&(xe+=1),(X=this.s.v>1?1+xe:this.s.v<0?0+xe:this.s.v+xe)>(pe=this.e.v>1?1+xe:this.e.v<0?0+xe:this.e.v+xe)){var ve=X;X=pe,pe=ve}X=1e-4*Math.round(1e4*X),pe=1e-4*Math.round(1e4*pe),this.sValue=X,this.eValue=pe}else X=this.sValue,pe=this.eValue;var $e,Oe,He,We,Mt,Kt,et,dt=this.shapes.length,Ct=0;if(pe===X)for(Oe=0;Oe<dt;Oe+=1)this.shapes[Oe].localShapeCollection.releaseShapes(),this.shapes[Oe].shape._mdf=!0,this.shapes[Oe].shape.paths=this.shapes[Oe].localShapeCollection,this._mdf&&(this.shapes[Oe].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Oe=0;Oe<dt;Oe+=1)this.shapes[Oe].pathsData.length=0,this.shapes[Oe].shape._mdf=!0}else{var Et,qt,Jt=[];for(Oe=0;Oe<dt;Oe+=1)if((Et=this.shapes[Oe]).shape._mdf||this._mdf||G||this.m===2){if(We=($e=Et.shape.paths)._length,et=0,!Et.shape._mdf&&Et.pathsData.length)et=Et.totalShapeLength;else{for(Mt=this.releasePathsData(Et.pathsData),He=0;He<We;He+=1)Kt=Ie.getSegmentsLength($e.shapes[He]),Mt.push(Kt),et+=Kt.totalLength;Et.totalShapeLength=et,Et.pathsData=Mt}Ct+=et,Et.shape._mdf=!0}else Et.shape.paths=Et.localShapeCollection;var Xe,Ve=X,Ne=pe,qe=0;for(Oe=dt-1;Oe>=0;Oe-=1)if((Et=this.shapes[Oe]).shape._mdf){for((qt=Et.localShapeCollection).releaseShapes(),this.m===2&&dt>1?(Xe=this.calculateShapeEdges(X,pe,Et.totalShapeLength,qe,Ct),qe+=Et.totalShapeLength):Xe=[[Ve,Ne]],We=Xe.length,He=0;He<We;He+=1){Ve=Xe[He][0],Ne=Xe[He][1],Jt.length=0,Ne<=1?Jt.push({s:Et.totalShapeLength*Ve,e:Et.totalShapeLength*Ne}):Ve>=1?Jt.push({s:Et.totalShapeLength*(Ve-1),e:Et.totalShapeLength*(Ne-1)}):(Jt.push({s:Et.totalShapeLength*Ve,e:Et.totalShapeLength}),Jt.push({s:0,e:Et.totalShapeLength*(Ne-1)}));var gt=this.addShapes(Et,Jt[0]);if(Jt[0].s!==Jt[0].e){if(Jt.length>1)if(Et.shape.paths.shapes[Et.shape.paths._length-1].c){var rn=gt.pop();this.addPaths(gt,qt),gt=this.addShapes(Et,Jt[1],rn)}else this.addPaths(gt,qt),gt=this.addShapes(Et,Jt[1]);this.addPaths(gt,qt)}}Et.shape.paths=qt}}},yt.prototype.addPaths=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)X.addShape(G[pe])},yt.prototype.addSegment=function(G,X,pe,xe,ve,$e,Oe){ve.setXYAt(X[0],X[1],"o",$e),ve.setXYAt(pe[0],pe[1],"i",$e+1),Oe&&ve.setXYAt(G[0],G[1],"v",$e),ve.setXYAt(xe[0],xe[1],"v",$e+1)},yt.prototype.addSegmentFromArray=function(G,X,pe,xe){X.setXYAt(G[1],G[5],"o",pe),X.setXYAt(G[2],G[6],"i",pe+1),xe&&X.setXYAt(G[0],G[4],"v",pe),X.setXYAt(G[3],G[7],"v",pe+1)},yt.prototype.addShapes=function(G,X,pe){var xe,ve,$e,Oe,He,We,Mt,Kt,et=G.pathsData,dt=G.shape.paths.shapes,Ct=G.shape.paths._length,Et=0,qt=[],Jt=!0;for(pe?(He=pe._length,Kt=pe._length):(pe=It.newElement(),He=0,Kt=0),qt.push(pe),xe=0;xe<Ct;xe+=1){for(We=et[xe].lengths,pe.c=dt[xe].c,$e=dt[xe].c?We.length:We.length+1,ve=1;ve<$e;ve+=1)if(Et+(Oe=We[ve-1]).addedLength<X.s)Et+=Oe.addedLength,pe.c=!1;else{if(Et>X.e){pe.c=!1;break}X.s<=Et&&X.e>=Et+Oe.addedLength?(this.addSegment(dt[xe].v[ve-1],dt[xe].o[ve-1],dt[xe].i[ve],dt[xe].v[ve],pe,He,Jt),Jt=!1):(Mt=Ie.getNewSegment(dt[xe].v[ve-1],dt[xe].v[ve],dt[xe].o[ve-1],dt[xe].i[ve],(X.s-Et)/Oe.addedLength,(X.e-Et)/Oe.addedLength,We[ve-1]),this.addSegmentFromArray(Mt,pe,He,Jt),Jt=!1,pe.c=!1),Et+=Oe.addedLength,He+=1}if(dt[xe].c&&We.length){if(Oe=We[ve-1],Et<=X.e){var Xe=We[ve-1].addedLength;X.s<=Et&&X.e>=Et+Xe?(this.addSegment(dt[xe].v[ve-1],dt[xe].o[ve-1],dt[xe].i[0],dt[xe].v[0],pe,He,Jt),Jt=!1):(Mt=Ie.getNewSegment(dt[xe].v[ve-1],dt[xe].v[0],dt[xe].o[ve-1],dt[xe].i[0],(X.s-Et)/Xe,(X.e-Et)/Xe,We[ve-1]),this.addSegmentFromArray(Mt,pe,He,Jt),Jt=!1,pe.c=!1)}else pe.c=!1;Et+=Oe.addedLength,He+=1}if(pe._length&&(pe.setXYAt(pe.v[Kt][0],pe.v[Kt][1],"i",Kt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Et>X.e)break;xe<Ct-1&&(pe=It.newElement(),Jt=!0,qt.push(pe),He=0)}return qt},g([jn],Bt),Bt.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Bt.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],ve=G._length,$e=0;for($e=0;$e<ve;$e+=1)xe[0]+=G.v[$e][0],xe[1]+=G.v[$e][1];xe[0]/=ve,xe[1]/=ve;var Oe,He,We,Mt,Kt,et,dt=It.newElement();for(dt.c=G.c,$e=0;$e<ve;$e+=1)Oe=G.v[$e][0]+(xe[0]-G.v[$e][0])*pe,He=G.v[$e][1]+(xe[1]-G.v[$e][1])*pe,We=G.o[$e][0]+(xe[0]-G.o[$e][0])*-pe,Mt=G.o[$e][1]+(xe[1]-G.o[$e][1])*-pe,Kt=G.i[$e][0]+(xe[0]-G.i[$e][0])*-pe,et=G.i[$e][1]+(xe[1]-G.i[$e][1])*-pe,dt.setTripleAt(Oe,He,We,Mt,Kt,et,$e);return dt},Bt.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,He=this.shapes.length,We=this.amount.v;if(We!==0)for(pe=0;pe<He;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var On=(function(){var G=[0,0];function X(We){var Mt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Mt,this.a&&We.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&We.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&We.skewFromAxis(-this.sk.v,this.sa.v),this.r?We.rotate(-this.r.v):We.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?We.translate(this.px.v,this.py.v,-this.pz.v):We.translate(this.px.v,this.py.v,0):We.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(We){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||We){var Mt;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Kt,et;if(Mt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Kt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Mt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Mt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Kt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Mt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Mt,0)):(Kt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Mt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Kt=[],et=[];var dt=this.px,Ct=this.py;dt._caching.lastFrame+dt.offsetTime<=dt.keyframes[0].t?(Kt[0]=dt.getValueAtTime((dt.keyframes[0].t+.01)/Mt,0),Kt[1]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/Mt,0),et[0]=dt.getValueAtTime(dt.keyframes[0].t/Mt,0),et[1]=Ct.getValueAtTime(Ct.keyframes[0].t/Mt,0)):dt._caching.lastFrame+dt.offsetTime>=dt.keyframes[dt.keyframes.length-1].t?(Kt[0]=dt.getValueAtTime(dt.keyframes[dt.keyframes.length-1].t/Mt,0),Kt[1]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/Mt,0),et[0]=dt.getValueAtTime((dt.keyframes[dt.keyframes.length-1].t-.01)/Mt,0),et[1]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/Mt,0)):(Kt=[dt.pv,Ct.pv],et[0]=dt.getValueAtTime((dt._caching.lastFrame+dt.offsetTime-.01)/Mt,dt.offsetTime),et[1]=Ct.getValueAtTime((Ct._caching.lastFrame+Ct.offsetTime-.01)/Mt,Ct.offsetTime))}else Kt=et=G;this.v.rotate(-Math.atan2(Kt[1]-et[1],Kt[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 ve(){}function $e(We){this._addDynamicProperty(We),this.elem.addDynamicProperty(We),this._isDirty=!0}function Oe(We,Mt,Kt){if(this.elem=We,this.frameId=-1,this.propType="transform",this.data=Mt,this.v=new $t,this.pre=new $t,this.appliedTransformations=0,this.initDynamicPropertyContainer(Kt||We),Mt.p&&Mt.p.s?(this.px=Ke.getProp(We,Mt.p.x,0,0,this),this.py=Ke.getProp(We,Mt.p.y,0,0,this),Mt.p.z&&(this.pz=Ke.getProp(We,Mt.p.z,0,0,this))):this.p=Ke.getProp(We,Mt.p||{k:[0,0,0]},1,0,this),Mt.rx){if(this.rx=Ke.getProp(We,Mt.rx,0,D,this),this.ry=Ke.getProp(We,Mt.ry,0,D,this),this.rz=Ke.getProp(We,Mt.rz,0,D,this),Mt.or.k[0].ti){var et,dt=Mt.or.k.length;for(et=0;et<dt;et+=1)Mt.or.k[et].to=null,Mt.or.k[et].ti=null}this.or=Ke.getProp(We,Mt.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(We,Mt.r||{k:0},0,D,this);Mt.sk&&(this.sk=Ke.getProp(We,Mt.sk,0,D,this),this.sa=Ke.getProp(We,Mt.sa,0,D,this)),this.a=Ke.getProp(We,Mt.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(We,Mt.s||{k:[100,100,100]},1,.01,this),Mt.o?this.o=Ke.getProp(We,Mt.o,0,.01,We):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function He(We,Mt,Kt){return new Oe(We,Mt,Kt)}return Oe.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:ve},g([Pt],Oe),Oe.prototype.addDynamicProperty=$e,Oe.prototype._addDynamicProperty=Pt.prototype.addDynamicProperty,{getTransformProperty:He}})();function ei(){}function Jn(){}function sn(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Vi(G){return Math.abs(G)<=1e-5}function xi(G,X,pe){return G*(1-pe)+X*pe}function Io(G,X,pe){return[xi(G[0],X[0],pe),xi(G[1],X[1],pe)]}function wo(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var ve=-X/(2*G);if(xe===0)return[ve];var $e=Math.sqrt(xe)/(2*G);return[ve-$e,ve+$e]}function pi(G,X,pe,xe){return[3*X-G-3*pe+xe,3*G-6*X+3*pe,-3*G+3*X,G]}function Un(G){return new pn(G,G,G,G,!1)}function pn(G,X,pe,xe,ve){ve&&lo(G,X)&&(X=Io(G,xe,1/3)),ve&&lo(pe,xe)&&(pe=Io(G,xe,2/3));var $e=pi(G[0],X[0],pe[0],xe[0]),Oe=pi(G[1],X[1],pe[1],xe[1]);this.a=[$e[0],Oe[0]],this.b=[$e[1],Oe[1]],this.c=[$e[2],Oe[2]],this.d=[$e[3],Oe[3]],this.points=[G,X,pe,xe]}function _t(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var ve=xe;xe=pe,pe=ve}for(var $e=wo(3*G.a[X],2*G.b[X],G.c[X]),Oe=0;Oe<$e.length;Oe+=1)if($e[Oe]>0&&$e[Oe]<1){var He=G.point($e[Oe])[X];He<pe?pe=He:He>xe&&(xe=He)}return{min:pe,max:xe}}function yn(G,X,pe){var xe=G.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:G,t:(X+pe)/2,t1:X,t2:pe}}function Bn(G){var X=G.bez.split(.5);return[yn(X[0],G.t1,G.t),yn(X[1],G.t,G.t2)]}function vn(G,X){return 2*Math.abs(G.cx-X.cx)<G.width+X.width&&2*Math.abs(G.cy-X.cy)<G.height+X.height}function Gt(G,X,pe,xe,ve,$e){if(vn(G,X)){if(pe>=$e||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void ve.push([G.t,X.t]);var Oe=Bn(G),He=Bn(X);Gt(Oe[0],He[0],pe+1,xe,ve,$e),Gt(Oe[0],He[1],pe+1,xe,ve,$e),Gt(Oe[1],He[0],pe+1,xe,ve,$e),Gt(Oe[1],He[1],pe+1,xe,ve,$e)}}function zn(G,X){return[G[1]*X[2]-G[2]*X[1],G[2]*X[0]-G[0]*X[2],G[0]*X[1]-G[1]*X[0]]}function so(G,X,pe,xe){var ve=[G[0],G[1],1],$e=[X[0],X[1],1],Oe=[pe[0],pe[1],1],He=[xe[0],xe[1],1],We=zn(zn(ve,$e),zn(Oe,He));return Vi(We[2])?null:[We[0]/We[2],We[1]/We[2]]}function Ki(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function No(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function lo(G,X){return sn(G[0],X[0])&&sn(G[1],X[1])}function ua(){}function gr(G,X,pe,xe,ve,$e,Oe){var He=pe-Math.PI/2,We=pe+Math.PI/2,Mt=X[0]+Math.cos(pe)*xe*ve,Kt=X[1]-Math.sin(pe)*xe*ve;G.setTripleAt(Mt,Kt,Mt+Math.cos(He)*$e,Kt-Math.sin(He)*$e,Mt+Math.cos(We)*Oe,Kt-Math.sin(We)*Oe,G.length())}function $a(G,X){var pe=[X[0]-G[0],X[1]-G[1]],xe=.5*-Math.PI;return[Math.cos(xe)*pe[0]-Math.sin(xe)*pe[1],Math.sin(xe)*pe[0]+Math.cos(xe)*pe[1]]}function jt(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),ve=$a(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(ve[1],ve[0])}function cn(G,X,pe,xe,ve,$e,Oe){var He=jt(X,pe),We=X.v[pe%X._length],Mt=X.v[pe===0?X._length-1:pe-1],Kt=X.v[(pe+1)%X._length],et=$e===2?Math.sqrt(Math.pow(We[0]-Mt[0],2)+Math.pow(We[1]-Mt[1],2)):0,dt=$e===2?Math.sqrt(Math.pow(We[0]-Kt[0],2)+Math.pow(We[1]-Kt[1],2)):0;gr(G,X.v[pe%X._length],He,Oe,xe,dt/(2*(ve+1)),et/(2*(ve+1)))}function Vn(G,X,pe,xe,ve,$e){for(var Oe=0;Oe<xe;Oe+=1){var He=(Oe+1)/(xe+1),We=ve===2?Math.sqrt(Math.pow(X.points[3][0]-X.points[0][0],2)+Math.pow(X.points[3][1]-X.points[0][1],2)):0,Mt=X.normalAngle(He);gr(G,X.point(He),Mt,$e,pe,We/(2*(xe+1)),We/(2*(xe+1))),$e=-$e}return $e}function no(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[Ki(G,xe,pe),Ki(X,xe,pe)]}function io(G,X){var pe,xe,ve,$e,Oe,He,We;pe=(We=no(G.points[0],G.points[1],X))[0],xe=We[1],ve=(We=no(G.points[1],G.points[2],X))[0],$e=We[1],Oe=(We=no(G.points[2],G.points[3],X))[0],He=We[1];var Mt=so(pe,xe,ve,$e);Mt===null&&(Mt=xe);var Kt=so(Oe,He,ve,$e);return Kt===null&&(Kt=Oe),new pn(pe,Mt,Kt,He)}function Ti(G,X,pe,xe,ve){var $e=X.points[3],Oe=pe.points[0];if(xe===3||lo($e,Oe))return $e;if(xe===2){var He=-X.tangentAngle(1),We=-pe.tangentAngle(0)+Math.PI,Mt=so($e,Ki($e,He+Math.PI/2,100),Oe,Ki(Oe,He+Math.PI/2,100)),Kt=Mt?No(Mt,$e):No($e,Oe)/2,et=Ki($e,He,2*Kt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=Ki(Oe,We,2*Kt*L),G.setTripleAt(Oe[0],Oe[1],Oe[0],Oe[1],et[0],et[1],G.length()),Oe}var dt=so(lo($e,X.points[2])?X.points[0]:X.points[2],$e,Oe,lo(Oe,pe.points[1])?pe.points[3]:pe.points[1]);return dt&&No(dt,$e)<ve?(G.setTripleAt(dt[0],dt[1],dt[0],dt[1],dt[0],dt[1],G.length()),dt):$e}function Ii(G,X){var pe=G.intersections(X);return pe.length&&sn(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Wo(G,X){var pe=G.slice(),xe=X.slice(),ve=Ii(G[G.length-1],X[0]);return ve&&(pe[G.length-1]=G[G.length-1].split(ve[0])[0],xe[0]=X[0].split(ve[1])[1]),G.length>1&&X.length>1&&(ve=Ii(G[0],X[X.length-1]))?[[G[0].split(ve[0])[0]],[X[X.length-1].split(ve[1])[1]]]:[pe,xe]}function hi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Wo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Wo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function mo(G,X){var pe,xe,ve,$e,Oe=G.inflectionPoints();if(Oe.length===0)return[io(G,X)];if(Oe.length===1||sn(Oe[1],1))return pe=(ve=G.split(Oe[0]))[0],xe=ve[1],[io(pe,X),io(xe,X)];pe=(ve=G.split(Oe[0]))[0];var He=(Oe[1]-Oe[0])/(1-Oe[0]);return $e=(ve=ve[1].split(He))[0],xe=ve[1],[io(pe,X),io($e,X),io(xe,X)]}function fr(){}function Rt(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",ve="normal",$e=pe.length,Oe=0;Oe<$e;Oe+=1)switch(X=pe[Oe].toLowerCase(),X){case"italic":ve="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:ve,weight:G.fWeight||xe}}g([jn],ei),ei.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.c=Ke.getProp(G,X.c,0,null,this),this.o=Ke.getProp(G,X.o,0,null,this),this.tr=On.getTransformProperty(G,X.tr,this),this.so=Ke.getProp(G,X.tr.so,0,.01,this),this.eo=Ke.getProp(G,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new $t,this.rMatrix=new $t,this.sMatrix=new $t,this.tMatrix=new $t,this.matrix=new $t},ei.prototype.applyTransforms=function(G,X,pe,xe,ve,$e){var Oe=$e?-1:1,He=xe.s.v[0]+(1-xe.s.v[0])*(1-ve),We=xe.s.v[1]+(1-xe.s.v[1])*(1-ve);G.translate(xe.p.v[0]*Oe*ve,xe.p.v[1]*Oe*ve,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Oe*ve),X.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2]),pe.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),pe.scale($e?1/He:He,$e?1/We:We),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},ei.prototype.init=function(G,X,pe,xe){for(this.elem=G,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ei.prototype.resetElements=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X]._processed=!1,G[X].ty==="gr"&&this.resetElements(G[X].it)},ei.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},ei.prototype.changeGroupRender=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)G[pe]._render=X,G[pe].ty==="gr"&&this.changeGroupRender(G[pe].it,X)},ei.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe=!1;if(this._mdf||G){var He,We=Math.ceil(this.c.v);if(this._groups.length<We){for(;this._groups.length<We;){var Mt={it:this.cloneElements(this._elements),ty:"gr"};Mt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Mt),this._groups.splice(0,0,Mt),this._currentCopies+=1}this.elem.reloadShapes(),Oe=!0}for($e=0,xe=0;xe<=this._groups.length-1;xe+=1){if(He=$e<We,this._groups[xe]._render=He,this.changeGroupRender(this._groups[xe].it,He),!He){var Kt=this.elemsData[xe].it,et=Kt[Kt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}$e+=1}this._currentCopies=We;var dt=this.o.v,Ct=dt%1,Et=dt>0?Math.floor(dt):Math.ceil(dt),qt=this.pMatrix.props,Jt=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ve,Ne,qe=0;if(dt>0){for(;qe<Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ct,!1),qe+=Ct)}else if(dt<0){for(;qe>Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ct,!0),qe-=Ct)}for(xe=this.data.m===1?0:this._currentCopies-1,ve=this.data.m===1?1:-1,$e=this._currentCopies;$e;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&ve===1||xe!==this._currentCopies-1&&ve===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Jt[0],Jt[1],Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],Jt[8],Jt[9],Jt[10],Jt[11],Jt[12],Jt[13],Jt[14],Jt[15]),this.matrix.transform(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],Xe[8],Xe[9],Xe[10],Xe[11],Xe[12],Xe[13],Xe[14],Xe[15]),this.matrix.transform(qt[0],qt[1],qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],qt[8],qt[9],qt[10],qt[11],qt[12],qt[13],qt[14],qt[15]),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];this.matrix.reset()}else for(this.matrix.reset(),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];qe+=1,$e-=1,xe+=ve}}else for($e=this._currentCopies,xe=0,ve=1;$e;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,$e-=1,xe+=ve;return Oe},ei.prototype.addShape=function(){},g([jn],Jn),Jn.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.rd=Ke.getProp(G,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Jn.prototype.processPath=function(G,X){var pe=It.newElement();pe.c=G.c;var xe,ve,$e,Oe,He,We,Mt,Kt,et,dt,Ct,Et,qt,Jt=G._length,Xe=0;for(xe=0;xe<Jt;xe+=1)ve=G.v[xe],Oe=G.o[xe],$e=G.i[xe],ve[0]===Oe[0]&&ve[1]===Oe[1]&&ve[0]===$e[0]&&ve[1]===$e[1]?xe!==0&&xe!==Jt-1||G.c?(He=xe===0?G.v[Jt-1]:G.v[xe-1],Mt=(We=Math.sqrt(Math.pow(ve[0]-He[0],2)+Math.pow(ve[1]-He[1],2)))?Math.min(We/2,X)/We:0,Kt=Et=ve[0]+(He[0]-ve[0])*Mt,et=qt=ve[1]-(ve[1]-He[1])*Mt,dt=Kt-(Kt-ve[0])*L,Ct=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,dt,Ct,Et,qt,Xe),Xe+=1,He=xe===Jt-1?G.v[0]:G.v[xe+1],Mt=(We=Math.sqrt(Math.pow(ve[0]-He[0],2)+Math.pow(ve[1]-He[1],2)))?Math.min(We/2,X)/We:0,Kt=dt=ve[0]+(He[0]-ve[0])*Mt,et=Ct=ve[1]+(He[1]-ve[1])*Mt,Et=Kt-(Kt-ve[0])*L,qt=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,dt,Ct,Et,qt,Xe),Xe+=1):(pe.setTripleAt(ve[0],ve[1],Oe[0],Oe[1],$e[0],$e[1],Xe),Xe+=1):(pe.setTripleAt(G.v[xe][0],G.v[xe][1],G.o[xe][0],G.o[xe][1],G.i[xe][0],G.i[xe][1],Xe),Xe+=1);return pe},Jn.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,He=this.shapes.length,We=this.rd.v;if(We!==0)for(pe=0;pe<He;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.prototype.point=function(G){return[((this.a[0]*G+this.b[0])*G+this.c[0])*G+this.d[0],((this.a[1]*G+this.b[1])*G+this.c[1])*G+this.d[1]]},pn.prototype.derivative=function(G){return[(3*G*this.a[0]+2*this.b[0])*G+this.c[0],(3*G*this.a[1]+2*this.b[1])*G+this.c[1]]},pn.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},pn.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},pn.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Vi(G))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/G,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/G;if(pe<0)return[];var xe=Math.sqrt(pe);return Vi(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(ve){return ve>0&&ve<1}))},pn.prototype.split=function(G){if(G<=0)return[Un(this.points[0]),this];if(G>=1)return[this,Un(this.points[this.points.length-1])];var X=Io(this.points[0],this.points[1],G),pe=Io(this.points[1],this.points[2],G),xe=Io(this.points[2],this.points[3],G),ve=Io(X,pe,G),$e=Io(pe,xe,G),Oe=Io(ve,$e,G);return[new pn(this.points[0],X,ve,Oe,!0),new pn(Oe,$e,xe,this.points[3],!0)]},pn.prototype.bounds=function(){return{x:_t(this,0),y:_t(this,1)}},pn.prototype.boundingBox=function(){var G=this.bounds();return{left:G.x.min,right:G.x.max,top:G.y.min,bottom:G.y.max,width:G.x.max-G.x.min,height:G.y.max-G.y.min,cx:(G.x.max+G.x.min)/2,cy:(G.y.max+G.y.min)/2}},pn.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Gt(yn(this,0,1),yn(G,0,1),0,X,xe,pe),xe},pn.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},pn.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([jn],ua),ua.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amplitude=Ke.getProp(G,X.s,0,null,this),this.frequency=Ke.getProp(G,X.r,0,null,this),this.pointsType=Ke.getProp(G,X.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ua.prototype.processPath=function(G,X,pe,xe){var ve=G._length,$e=It.newElement();if($e.c=G.c,G.c||(ve-=1),ve===0)return $e;var Oe=-1,He=pn.shapeSegment(G,0);cn($e,G,0,X,pe,xe,Oe);for(var We=0;We<ve;We+=1)Oe=Vn($e,He,X,pe,xe,-Oe),He=We!==ve-1||G.c?pn.shapeSegment(G,(We+1)%ve):null,cn($e,G,We+1,X,pe,xe,Oe);return $e},ua.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,He=this.shapes.length,We=this.amplitude.v,Mt=Math.max(0,Math.round(this.frequency.v)),Kt=this.pointsType.v;if(We!==0)for(pe=0;pe<He;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We,Mt,Kt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([jn],fr),fr.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this.miterLimit=Ke.getProp(G,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},fr.prototype.processPath=function(G,X,pe,xe){var ve=It.newElement();ve.c=G.c;var $e=G.length();G.c||($e-=1);var Oe,He,We,Mt=[];for(Oe=0;Oe<$e;Oe+=1)We=pn.shapeSegment(G,Oe),Mt.push(mo(We,X));if(!G.c)for(Oe=$e-1;Oe>=0;Oe-=1)We=pn.shapeSegmentInverted(G,Oe),Mt.push(mo(We,X));Mt=hi(Mt);var Kt=null,et=null;for(Oe=0;Oe<Mt.length;Oe+=1){var dt=Mt[Oe];for(et&&(Kt=Ti(ve,et,dt[0],pe,xe)),et=dt[dt.length-1],He=0;He<dt.length;He+=1)We=dt[He],Kt&&lo(We.points[0],Kt)?ve.setXYAt(We.points[1][0],We.points[1][1],"o",ve.length()-1):ve.setTripleAt(We.points[0][0],We.points[0][1],We.points[1][0],We.points[1][1],We.points[0][0],We.points[0][1],ve.length()),ve.setTripleAt(We.points[3][0],We.points[3][1],We.points[3][0],We.points[3][1],We.points[2][0],We.points[2][1],ve.length()),Kt=We.points[3]}return Mt.length&&Ti(ve,et,Mt[0][0],pe,xe),ve},fr.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,He=this.shapes.length,We=this.amount.v,Mt=this.miterLimit.v,Kt=this.lineJoin;if(We!==0)for(pe=0;pe<He;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We,Kt,Mt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var dn=(function(){var G=5e3,X={w:0,size:0,shapes:[],data:{shapes:[]}},pe=[];pe=pe.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var xe=127988,ve=917631,$e=917601,Oe=917626,He=65039,We=8205,Mt=127462,Kt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function dt(ft){var st,Re=ft.split(","),pt=Re.length,bt=[];for(st=0;st<pt;st+=1)Re[st]!=="sans-serif"&&Re[st]!=="monospace"&&bt.push(Re[st]);return bt.join(",")}function Ct(ft,st){var Re=h("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=st;var pt=h("span");pt.innerText="giItT1WQy@!-/#",Re.style.position="absolute",Re.style.left="-10000px",Re.style.top="-10000px",Re.style.fontSize="300px",Re.style.fontVariant="normal",Re.style.fontStyle="normal",Re.style.fontWeight="normal",Re.style.letterSpacing="0",Re.appendChild(pt),document.body.appendChild(Re);var bt=pt.offsetWidth;return pt.style.fontFamily=dt(ft)+", "+st,{node:pt,w:bt,parent:Re}}function Et(){var ft,st,Re,pt=this.fonts.length,bt=pt;for(ft=0;ft<pt;ft+=1)this.fonts[ft].loaded?bt-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(st=this.fonts[ft].monoCase.node,Re=this.fonts[ft].monoCase.w,st.offsetWidth!==Re?(bt-=1,this.fonts[ft].loaded=!0):(st=this.fonts[ft].sansCase.node,Re=this.fonts[ft].sansCase.w,st.offsetWidth!==Re&&(bt-=1,this.fonts[ft].loaded=!0)),this.fonts[ft].loaded&&(this.fonts[ft].sansCase.parent.parentNode.removeChild(this.fonts[ft].sansCase.parent),this.fonts[ft].monoCase.parent.parentNode.removeChild(this.fonts[ft].monoCase.parent)));bt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function qt(ft,st){var Re,pt=document.body&&st?"svg":"canvas",bt=Rt(ft);if(pt==="svg"){var mi=le("text");mi.style.fontSize="100px",mi.setAttribute("font-family",ft.fFamily),mi.setAttribute("font-style",bt.style),mi.setAttribute("font-weight",bt.weight),mi.textContent="1",ft.fClass?(mi.style.fontFamily="inherit",mi.setAttribute("class",ft.fClass)):mi.style.fontFamily=ft.fFamily,st.appendChild(mi),Re=mi}else{var qo=new OffscreenCanvas(500,500).getContext("2d");qo.font=bt.style+" "+bt.weight+" 100px "+ft.fFamily,Re=qo}function Do(ya){return pt==="svg"?(Re.textContent=ya,Re.getComputedTextLength()):Re.measureText(ya).width}return{measureText:Do}}function Jt(ft,st){if(ft){if(this.chars)return this.isLoaded=!0,void(this.fonts=ft.list);if(!document.body)return this.isLoaded=!0,ft.list.forEach((function(Ua){Ua.helper=qt(Ua),Ua.cache={}})),void(this.fonts=ft.list);var Re,pt=ft.list,bt=pt.length,mi=bt;for(Re=0;Re<bt;Re+=1){var qo,Do,ya=!0;if(pt[Re].loaded=!1,pt[Re].monoCase=Ct(pt[Re].fFamily,"monospace"),pt[Re].sansCase=Ct(pt[Re].fFamily,"sans-serif"),pt[Re].fPath){if(pt[Re].fOrigin==="p"||pt[Re].origin===3){if((qo=document.querySelectorAll('style[f-forigin="p"][f-family="'+pt[Re].fFamily+'"], style[f-origin="3"][f-family="'+pt[Re].fFamily+'"]')).length>0&&(ya=!1),ya){var Ko=h("style");Ko.setAttribute("f-forigin",pt[Re].fOrigin),Ko.setAttribute("f-origin",pt[Re].origin),Ko.setAttribute("f-family",pt[Re].fFamily),Ko.type="text/css",Ko.innerText="@font-face {font-family: "+pt[Re].fFamily+"; font-style: normal; src: url('"+pt[Re].fPath+"');}",st.appendChild(Ko)}}else if(pt[Re].fOrigin==="g"||pt[Re].origin===1){for(qo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Do=0;Do<qo.length;Do+=1)qo[Do].href.indexOf(pt[Re].fPath)!==-1&&(ya=!1);if(ya){var dl=h("link");dl.setAttribute("f-forigin",pt[Re].fOrigin),dl.setAttribute("f-origin",pt[Re].origin),dl.type="text/css",dl.rel="stylesheet",dl.href=pt[Re].fPath,document.body.appendChild(dl)}}else if(pt[Re].fOrigin==="t"||pt[Re].origin===2){for(qo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Do=0;Do<qo.length;Do+=1)pt[Re].fPath===qo[Do].src&&(ya=!1);if(ya){var ha=h("link");ha.setAttribute("f-forigin",pt[Re].fOrigin),ha.setAttribute("f-origin",pt[Re].origin),ha.setAttribute("rel","stylesheet"),ha.setAttribute("href",pt[Re].fPath),st.appendChild(ha)}}}else pt[Re].loaded=!0,mi-=1;pt[Re].helper=qt(pt[Re],st),pt[Re].cache={},this.fonts.push(pt[Re])}mi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(ft){if(ft){this.chars||(this.chars=[]);var st,Re,pt,bt=ft.length,mi=this.chars.length;for(st=0;st<bt;st+=1){for(Re=0,pt=!1;Re<mi;)this.chars[Re].style===ft[st].style&&this.chars[Re].fFamily===ft[st].fFamily&&this.chars[Re].ch===ft[st].ch&&(pt=!0),Re+=1;pt||(this.chars.push(ft[st]),mi+=1)}}}function Ve(ft,st,Re){for(var pt=0,bt=this.chars.length;pt<bt;){if(this.chars[pt].ch===ft&&this.chars[pt].style===st&&this.chars[pt].fFamily===Re)return this.chars[pt];pt+=1}return(typeof ft=="string"&&ft.charCodeAt(0)!==13||!ft)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ft,st,Re)),X}function Ne(ft,st,Re){var pt=this.getFontByName(st),bt=ft;if(!pt.cache[bt]){var mi=pt.helper;if(ft===" "){var qo=mi.measureText("|"+ft+"|"),Do=mi.measureText("||");pt.cache[bt]=(qo-Do)/100}else pt.cache[bt]=mi.measureText(ft)/100}return pt.cache[bt]*Re}function qe(ft){for(var st=0,Re=this.fonts.length;st<Re;){if(this.fonts[st].fName===ft)return this.fonts[st];st+=1}return this.fonts[0]}function gt(ft){var st=0,Re=ft.charCodeAt(0);if(Re>=55296&&Re<=56319){var pt=ft.charCodeAt(1);pt>=56320&&pt<=57343&&(st=1024*(Re-55296)+pt-56320+65536)}return st}function rn(ft,st){var Re=ft.toString(16)+st.toString(16);return et.indexOf(Re)!==-1}function ln(ft){return ft===We}function Ot(ft){return ft===He}function co(ft){var st=gt(ft);return st>=Mt&&st<=Kt}function So(ft){return co(ft.substr(0,2))&&co(ft.substr(2,2))}function ai(ft){return pe.indexOf(ft)!==-1}function Go(ft,st){var Re=gt(ft.substr(st,2));if(Re!==xe)return!1;var pt=0;for(st+=2;pt<5;){if((Re=gt(ft.substr(st,2)))<$e||Re>Oe)return!1;pt+=1,st+=2}return gt(ft.substr(st,2))===ve}function oo(){this.isLoaded=!0}var Nt=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)};Nt.isModifier=rn,Nt.isZeroWidthJoiner=ln,Nt.isFlagEmoji=So,Nt.isRegionalCode=co,Nt.isCombinedCharacter=ai,Nt.isRegionalFlag=Go,Nt.isVariationSelector=Ot,Nt.BLACK_FLAG_CODE_POINT=xe;var gn={addChars:Xe,addFonts:Jt,getCharData:Ve,getFontByName:qe,measureText:Ne,checkLoadedFonts:Et,setIsLoaded:oo};return Nt.prototype=gn,Nt})();function Xt(G){this.animationData=G}function ci(G){return new Xt(G)}function An(){}Xt.prototype.getProp=function(G){return this.animationData.slots&&this.animationData.slots[G.sid]?Object.assign(G,this.animationData.slots[G.sid].p):G},An.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(G){this.renderableComponents.indexOf(G)===-1&&this.renderableComponents.push(G)},removeRenderableComponent:function(G){this.renderableComponents.indexOf(G)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(G),1)},prepareRenderableFrame:function(G){this.checkLayerLimits(G)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(G){this.data.ip-this.data.st<=G&&this.data.op-this.data.st>G?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var G,X=this.renderableComponents.length;for(G=0;G<X;G+=1)this.renderableComponents[G].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var ni=(function(){var G={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(X){return G[X]||""}})();function Di(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function xo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Hi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Xi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Tt(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function gi(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function go(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function _r(){this.p={}}function xr(G,X){var pe=G.ef||[];this.effectElements=[];var xe,ve,$e=pe.length;for(xe=0;xe<$e;xe+=1)ve=new yr(pe[xe],X),this.effectElements.push(ve)}function yr(G,X){this.init(G,X)}function Rn(){}function bi(){}function nr(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(G,X,pe)}function pa(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.initBaseData(G,X,pe),this._isPlaying=!1,this._canPlay=!1;var xe=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(xe),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ke.getProp(this,G.au&&G.au.lv?G.au.lv:{k:[100]},1,.01,this)}function Js(){}g([Pt],yr),yr.prototype.getValue=yr.prototype.iterateDynamicProperties,yr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,ve=this.data.ef.length,$e=this.data.ef;for(pe=0;pe<ve;pe+=1){switch(xe=null,$e[pe].ty){case 0:xe=new Di($e[pe],X,this);break;case 1:xe=new xo($e[pe],X,this);break;case 2:xe=new Hi($e[pe],X,this);break;case 3:xe=new Xi($e[pe],X,this);break;case 4:case 7:xe=new go($e[pe],X,this);break;case 10:xe=new Tt($e[pe],X,this);break;case 11:xe=new gi($e[pe],X,this);break;case 5:xe=new xr($e[pe],X);break;default:xe=new _r($e[pe])}xe&&this.effectElements.push(xe)}},Rn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var G=0,X=this.data.masksProperties.length;G<X;){if(this.data.masksProperties[G].mode!=="n"&&this.data.masksProperties[G].cl!==!1)return!0;G+=1}return!1},initExpressions:function(){},setBlendMode:function(){var G=ni(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=G},initBaseData:function(G,X,pe){this.globalData=X,this.comp=pe,this.data=G,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new xr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},bi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(G,X){var pe,xe=this.dynamicProperties.length;for(pe=0;pe<xe;pe+=1)(X||this._isParent&&this.dynamicProperties[pe].propType==="transform")&&(this.dynamicProperties[pe].getValue(),this.dynamicProperties[pe]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&this.dynamicProperties.push(G)}},nr.prototype.prepareFrame=function(){},g([An,Rn,bi],nr),nr.prototype.getBaseElement=function(){return null},nr.prototype.renderFrame=function(){},nr.prototype.destroy=function(){},nr.prototype.initExpressions=function(){},nr.prototype.getFootageData=function(){return this.footageData},pa.prototype.prepareFrame=function(G){if(this.prepareRenderableFrame(G,!0),this.prepareProperties(G,!0),this.tm._placeholder)this._currentTime=G/this.data.sr;else{var X=this.tm.v;this._currentTime=X}this._volume=this.lv.v[0];var pe=this._volume*this._volumeMultiplier;this._previousVolume!==pe&&(this._previousVolume=pe,this.audio.volume(pe))},g([An,Rn,bi],pa),pa.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},pa.prototype.show=function(){},pa.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},pa.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},pa.prototype.resume=function(){this._canPlay=!0},pa.prototype.setRate=function(G){this.audio.rate(G)},pa.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*this._volume,this.audio.volume(this._previousVolume)},pa.prototype.getBaseElement=function(){return null},pa.prototype.destroy=function(){},pa.prototype.sourceRectAtTime=function(){},pa.prototype.initExpressions=function(){},Js.prototype.checkLayers=function(G){var X,pe,xe=this.layers.length;for(this.completeLayers=!0,X=xe-1;X>=0;X-=1)this.elements[X]||(pe=this.layers[X]).ip-pe.st<=G-this.layers[X].st&&pe.op-pe.st>G-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},Js.prototype.createItem=function(G){switch(G.ty){case 2:return this.createImage(G);case 0:return this.createComp(G);case 1:return this.createSolid(G);case 3:default:return this.createNull(G);case 4:return this.createShape(G);case 5:return this.createText(G);case 6:return this.createAudio(G);case 13:return this.createCamera(G);case 15:return this.createFootage(G)}},Js.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Js.prototype.createAudio=function(G){return new pa(G,this.globalData,this)},Js.prototype.createFootage=function(G){return new nr(G,this.globalData,this)},Js.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},Js.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,ve=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<ve;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},Js.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},Js.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Js.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,ve=this.layers,$e=0,Oe=ve.length;$e<Oe;)ve[$e].ind==X&&(xe[$e]&&xe[$e]!==!0?(pe.push(xe[$e]),xe[$e].setAsParent(),ve[$e].parent!==void 0?this.buildElementParenting(G,ve[$e].parent,pe):G.setHierarchy(pe)):(this.buildItem($e),this.addPendingElement(G))),$e+=1},Js.prototype.addPendingElement=function(G){this.pendingElements.push(G)},Js.prototype.searchExtraCompositions=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)if(G[X].xt){var xe=this.createComp(G[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},Js.prototype.getElementById=function(G){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===G)return this.elements[X];return null},Js.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,ve=this.elements.length;for(xe=0;xe<ve;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},Js.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new dn,this.globalData.slotManager=ci(G),this.globalData.fontManager.addChars(G.chars),this.globalData.fontManager.addFonts(G.fonts,X),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=G.fr,this.globalData.nm=G.nm,this.globalData.compSize={w:G.w,h:G.h}};var qT={TRANSFORM_EFFECT:"transformEFfect"};function o2(){}function xm(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,ve=this.globalData.defs,$e=this.masksProperties?this.masksProperties.length:0;this.viewData=b($e),this.solidPath="";var Oe,He,We,Mt,Kt,et,dt,Ct=this.masksProperties,Et=0,qt=[],Jt=H(),Xe="clipPath",Ve="clip-path";for(xe=0;xe<$e;xe+=1)if((Ct[xe].mode!=="a"&&Ct[xe].mode!=="n"||Ct[xe].inv||Ct[xe].o.k!==100||Ct[xe].o.x)&&(Xe="mask",Ve="mask"),Ct[xe].mode!=="s"&&Ct[xe].mode!=="i"||Et!==0?Mt=null:((Mt=le("rect")).setAttribute("fill","#ffffff"),Mt.setAttribute("width",this.element.comp.data.w||0),Mt.setAttribute("height",this.element.comp.data.h||0),qt.push(Mt)),Oe=le("path"),Ct[xe].mode==="n")this.viewData[xe]={op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,Ct[xe],3),elem:Oe,lastPath:""},ve.appendChild(Oe);else{var Ne;if(Et+=1,Oe.setAttribute("fill",Ct[xe].mode==="s"?"#000000":"#ffffff"),Oe.setAttribute("clip-rule","nonzero"),Ct[xe].x.k!==0?(Xe="mask",Ve="mask",dt=Ke.getProp(this.element,Ct[xe].x,0,null,this.element),Ne=H(),(Kt=le("filter")).setAttribute("id",Ne),(et=le("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Kt.appendChild(et),ve.appendChild(Kt),Oe.setAttribute("stroke",Ct[xe].mode==="s"?"#000000":"#ffffff")):(et=null,dt=null),this.storedData[xe]={elem:Oe,x:dt,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},Ct[xe].mode==="i"){We=qt.length;var qe=le("g");for(He=0;He<We;He+=1)qe.appendChild(qt[He]);var gt=le("mask");gt.setAttribute("mask-type","alpha"),gt.setAttribute("id",Jt+"_"+Et),gt.appendChild(Oe),ve.appendChild(gt),qe.setAttribute("mask","url("+p()+"#"+Jt+"_"+Et+")"),qt.length=0,qt.push(qe)}else qt.push(Oe);Ct[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Oe,lastPath:"",op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,Ct[xe],3),invRect:Mt},this.viewData[xe].prop.k||this.drawPath(Ct[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Xe),$e=qt.length,xe=0;xe<$e;xe+=1)this.maskElement.appendChild(qt[xe]);Et>0&&(this.maskElement.setAttribute("id",Jt),this.element.maskedElement.setAttribute(Ve,"url("+p()+"#"+Jt+")"),ve.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}o2.prototype={initTransform:function(){var G=new $t;this.finalTransform={mProp:this.data.ks?On.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:G,localMat:G,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var G,X=this.finalTransform.mat,pe=0,xe=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;pe<xe;){if(this.hierarchy[pe].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}pe+=1}if(this.finalTransform._matMdf)for(G=this.finalTransform.mProp.v.props,X.cloneFromProps(G),pe=0;pe<xe;pe+=1)X.multiply(this.hierarchy[pe].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var G=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;G<X;)this.localTransforms[G]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[G]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),G+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),G=1;G<X;G+=1){var xe=this.localTransforms[G].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var ve=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)ve*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=ve}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(qT.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new $t;var X=0,pe=G.length;for(X=0;X<pe;X+=1)this.localTransforms.push(G[X])}}},globalToLocal:function(G){var X=[];X.push(this.finalTransform);for(var pe=!0,xe=this.comp;pe;)xe.finalTransform?(xe.data.hasMask&&X.splice(0,0,xe.finalTransform),xe=xe.comp):pe=!1;var ve,$e,Oe=X.length;for(ve=0;ve<Oe;ve+=1)$e=X[ve].mat.applyToPointArray(0,0,0),G=[G[0]-$e[0],G[1]-$e[1],0];return G},mHelper:new $t},xm.prototype.getMaskProperty=function(G){return this.viewData[G].prop},xm.prototype.renderFrame=function(G){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||G)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||G)&&this.viewData[X].elem.setAttribute("fill-opacity",this.viewData[X].op.v),this.masksProperties[X].mode!=="n"&&(this.viewData[X].invRect&&(this.element.finalTransform.mProp._mdf||G)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||G))){var ve=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+")")),ve.setAttribute("radius",-this.storedData[X].x.v)):(this.storedData[X].lastOperator!=="dilate"&&(this.storedData[X].lastOperator="dilate",this.storedData[X].elem.setAttribute("filter",null)),this.storedData[X].elem.setAttribute("stroke-width",2*this.storedData[X].x.v))}},xm.prototype.getMaskelement=function(){return this.maskElement},xm.prototype.createLayerSolidPath=function(){var G="M0,0 ";return G+=" h"+this.globalData.compSize.w,G+=" v"+this.globalData.compSize.h,G+=" h-"+this.globalData.compSize.w,G+=" v-"+this.globalData.compSize.h+" "},xm.prototype.drawPath=function(G,X,pe){var xe,ve,$e=" M"+X.v[0][0]+","+X.v[0][1];for(ve=X._length,xe=1;xe<ve;xe+=1)$e+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&ve>1&&($e+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==$e){var Oe="";pe.elem&&(X.c&&(Oe=G.inv?this.solidPath+$e:$e),pe.elem.setAttribute("d",Oe)),pe.lastPath=$e}},xm.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Sy=(function(){var G={};function X(xe,ve){var $e=le("filter");return $e.setAttribute("id",xe),ve!==!0&&($e.setAttribute("filterUnits","objectBoundingBox"),$e.setAttribute("x","0%"),$e.setAttribute("y","0%"),$e.setAttribute("width","100%"),$e.setAttribute("height","100%")),$e}function pe(){var xe=le("feColorMatrix");return xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),xe}return G.createFilter=X,G.createAlphaToLuminanceFilter=pe,G})(),KT=(function(){var G={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(G.maskType=!1),/firefox/i.test(navigator.userAgent)&&(G.svgLumaHidden=!1),G})(),ZT={},PN="filter_result_";function qS(G){var X,pe,xe="SourceGraphic",ve=G.data.ef?G.data.ef.length:0,$e=H(),Oe=Sy.createFilter($e,!0),He=0;for(this.filters=[],X=0;X<ve;X+=1){pe=null;var We=G.data.ef[X].ty;ZT[We]&&(pe=new ZT[We].effect(Oe,G.effectsManager.effectElements[X],G,PN+He,xe),xe=PN+He,ZT[We].countsAsEffect&&(He+=1)),pe&&this.filters.push(pe)}He&&(G.globalData.defs.appendChild(Oe),G.layerElement.setAttribute("filter","url("+p()+"#"+$e+")")),this.filters.length&&G.addRenderableComponent(this)}function H8(){}function ky(){}function X5(){}function U8(G,X,pe){this.assetData=X.getAssetData(G.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(G,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Zoe(G,X){this.elem=G,this.pos=X}function MN(){}qS.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},qS.prototype.getEffects=function(G){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===G&&xe.push(this.filters[X]);return xe},H8.prototype={initRendererElement:function(){this.layerElement=le("g")},createContainerElements:function(){this.matteElement=le("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var G=null;if(this.data.td){this.matteMasks={};var X=le("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),G=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),G=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var pe=le("clipPath"),xe=le("path");xe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var ve=H();if(pe.setAttribute("id",ve),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var $e=le("g");$e.setAttribute("clip-path","url("+p()+"#"+ve+")"),$e.appendChild(this.layerElement),this.transformedElement=$e,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+ve+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new xm(this.data,this,this.globalData),this.renderableEffectsManager=new qS(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,ve,$e=this.layerId+"_"+G;if(G===1||G===3){var Oe=le("mask");Oe.setAttribute("id",$e),Oe.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Oe.appendChild(xe),this.globalData.defs.appendChild(Oe),!KT.maskType&&G===1&&(Oe.setAttribute("mask-type","luminance"),X=H(),pe=Sy.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(Sy.createAlphaToLuminanceFilter()),(ve=le("g")).appendChild(xe),Oe.appendChild(ve),ve.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var He=le("mask");He.setAttribute("id",$e),He.setAttribute("mask-type","alpha");var We=le("g");He.appendChild(We),X=H(),pe=Sy.createFilter(X);var Mt=le("feComponentTransfer");Mt.setAttribute("in","SourceGraphic"),pe.appendChild(Mt);var Kt=le("feFuncA");Kt.setAttribute("type","table"),Kt.setAttribute("tableValues","1.0 0.0"),Mt.appendChild(Kt),this.globalData.defs.appendChild(pe);var et=le("rect");et.setAttribute("width",this.comp.data.w),et.setAttribute("height",this.comp.data.h),et.setAttribute("x","0"),et.setAttribute("y","0"),et.setAttribute("fill","#ffffff"),et.setAttribute("opacity","0"),We.setAttribute("filter","url("+p()+"#"+X+")"),We.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),We.appendChild(xe),KT.maskType||(He.setAttribute("mask-type","luminance"),pe.appendChild(Sy.createAlphaToLuminanceFilter()),ve=le("g"),We.appendChild(et),ve.appendChild(this.layerElement),We.appendChild(ve)),this.globalData.defs.appendChild(He)}this.matteMasks[G]=$e}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},ky.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(G){this.hierarchy=G},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var G={initElement:function(X,pe,xe){this.initFrame(),this.initBaseData(X,pe,xe),this.initTransform(X,pe,xe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(X){this._mdf=!1,this.prepareRenderableFrame(X),this.prepareProperties(X,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};g([An,f(G)],X5)})(),g([Rn,o2,H8,ky,bi,X5],U8),U8.prototype.createContent=function(){var G=this.globalData.getAssetsPath(this.assetData);this.innerElem=le("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",G),this.layerElement.appendChild(this.innerElem)},U8.prototype.sourceRectAtTime=function(){return this.sourceRect},MN.prototype={addShapeToModifiers:function(G){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(G)},isShapeInAnimatedModifiers:function(G){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(G))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var G,X=this.shapes.length;for(G=0;G<X;G+=1)this.shapes[G].sh.reset();for(G=(X=this.shapeModifiers.length)-1;G>=0&&!this.shapeModifiers[G].processShapes(this._isFirstFrame);G-=1);}},searchProcessedElement:function(G){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===G)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(G,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===G)return void(pe[xe].pos=X);pe.push(new Zoe(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var ON={1:"butt",2:"round",3:"square"},FN={1:"miter",2:"round",3:"bevel"};function RN(G,X,pe){this.caches=[],this.styles=[],this.transformers=G,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,ve=G.length;xe<ve;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function zN(G,X){this.data=G,this.type=G.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=G.hd===!0,this.pElem=le("path"),this.msElem=null}function KS(G,X,pe,xe){this.elem=G,this.frameId=-1,this.dataProps=b(X.length),this.renderer=pe,this.k=!1,this.dashStr="",this.dashArray=y("float32",X.length?X.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(xe);var ve,$e,Oe=X.length||0;for(ve=0;ve<Oe;ve+=1)$e=Ke.getProp(G,X[ve].v,0,0,this),this.k=$e.k||this.k,this.dataProps[ve]={n:X[ve].n,p:$e};this.k||this.getValue(!0),this._isAnimated=this.k}function NN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.w=Ke.getProp(G,X.w,0,null,this),this.d=new KS(G,X.d||{},"svg",this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function _N(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe}function VN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function W8(G,X,pe){this.data=X,this.c=y("uint8c",4*X.p);var xe=X.k.k[0].s?X.k.k[0].s.length-4*X.p:X.k.k.length-4*X.p;this.o=y("float32",xe),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=xe,this.initDynamicPropertyContainer(pe),this.prop=Ke.getProp(G,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function ym(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function HN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ke.getProp(G,X.w,0,null,this),this.d=new KS(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function Joe(){this.it=[],this.prevViewData=[],this.gr=le("g")}function Xoe(G,X,pe){this.transform={mProps:G,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}RN.prototype.setAsAnimated=function(){this._isAnimated=!0},zN.prototype.reset=function(){this.d="",this._mdf=!1},KS.prototype.getValue=function(G){if((this.elem.globalData.frameId!==this.frameId||G)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||G,this._mdf)){var X=0,pe=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),X=0;X<pe;X+=1)this.dataProps[X].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[X].p.v:this.dashArray[X]=this.dataProps[X].p.v:this.dashoffset[0]=this.dataProps[X].p.v}},g([Pt],KS),g([Pt],NN),g([Pt],_N),g([Pt],VN),W8.prototype.comparePoints=function(G,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(G[4*pe]-G[4*X+2*pe])>.01)return!1;pe+=1}return!0},W8.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var G=0,X=this.data.k.k.length;G<X;){if(!this.comparePoints(this.data.k.k[G].s,this.data.p))return!1;G+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},W8.prototype.getValue=function(G){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||G){var X,pe,xe,ve=4*this.data.p;for(X=0;X<ve;X+=1)pe=X%4==0?100:255,xe=Math.round(this.prop.v[X]*pe),this.c[X]!==xe&&(this.c[X]=xe,this._cmdf=!G);if(this.o.length)for(ve=this.prop.v.length,X=4*this.data.p;X<ve;X+=1)pe=X%2==0?100:1,xe=X%2==0?Math.round(100*this.prop.v[X]):this.prop.v[X],this.o[X-4*this.data.p]!==xe&&(this.o[X-4*this.data.p]=xe,this._omdf=!G);this._mdf=!G}},g([Pt],W8),ym.prototype.initGradientData=function(G,X,pe){this.o=Ke.getProp(G,X.o,0,.01,this),this.s=Ke.getProp(G,X.s,1,null,this),this.e=Ke.getProp(G,X.e,1,null,this),this.h=Ke.getProp(G,X.h||{k:0},0,.01,this),this.a=Ke.getProp(G,X.a||{k:0},0,D,this),this.g=new W8(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},ym.prototype.setGradientData=function(G,X){var pe=H(),xe=le(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var ve,$e,Oe,He=[];for(Oe=4*X.g.p,$e=0;$e<Oe;$e+=4)ve=le("stop"),xe.appendChild(ve),He.push(ve);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=He},ym.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,ve,$e=le("mask"),Oe=le("path");$e.appendChild(Oe);var He=H(),We=H();$e.setAttribute("id",We);var Mt=le(G.t===1?"linearGradient":"radialGradient");Mt.setAttribute("id",He),Mt.setAttribute("spreadMethod","pad"),Mt.setAttribute("gradientUnits","userSpaceOnUse"),ve=G.g.k.k[0].s?G.g.k.k[0].s.length:G.g.k.k.length;var Kt=this.stops;for(xe=4*G.g.p;xe<ve;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Mt.appendChild(pe),Kt.push(pe);Oe.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+He+")"),G.ty==="gs"&&(Oe.setAttribute("stroke-linecap",ON[G.lc||2]),Oe.setAttribute("stroke-linejoin",FN[G.lj||2]),G.lj===1&&Oe.setAttribute("stroke-miterlimit",G.ml)),this.of=Mt,this.ms=$e,this.ost=Kt,this.maskId=We,X.msElem=Oe}},g([Pt],ym),g([ym,Pt],HN);var Qn=function(G,X,pe,xe){if(X===0)return"";var ve,$e=G.o,Oe=G.i,He=G.v,We=" M"+xe.applyToPointStringified(He[0][0],He[0][1]);for(ve=1;ve<X;ve+=1)We+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[ve][0],Oe[ve][1])+" "+xe.applyToPointStringified(He[ve][0],He[ve][1]);return pe&&X&&(We+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[0][0],Oe[0][1])+" "+xe.applyToPointStringified(He[0][0],He[0][1]),We+="z"),We},wr=(function(){var G=new $t,X=new $t;function pe(Kt){switch(Kt.ty){case"fl":return Oe;case"gf":return We;case"gs":return He;case"st":return Mt;case"sh":case"el":case"rc":case"sr":return $e;case"tr":return xe;case"no":return ve;default:return null}}function xe(Kt,et,dt){(dt||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(dt||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function ve(){}function $e(Kt,et,dt){var Ct,Et,qt,Jt,Xe,Ve,Ne,qe,gt,rn,ln=et.styles.length,Ot=et.lvl;for(Ve=0;Ve<ln;Ve+=1){if(Jt=et.sh._mdf||dt,et.styles[Ve].lvl<Ot){for(qe=X.reset(),gt=Ot-et.styles[Ve].lvl,rn=et.transformers.length-1;!Jt&&gt>0;)Jt=et.transformers[rn].mProps._mdf||Jt,gt-=1,rn-=1;if(Jt)for(gt=Ot-et.styles[Ve].lvl,rn=et.transformers.length-1;gt>0;)qe.multiply(et.transformers[rn].mProps.v),gt-=1,rn-=1}else qe=G;if(Et=(Ne=et.sh.paths)._length,Jt){for(qt="",Ct=0;Ct<Et;Ct+=1)(Xe=Ne.shapes[Ct])&&Xe._length&&(qt+=Qn(Xe,Xe._length,Xe.c,qe));et.caches[Ve]=qt}else qt=et.caches[Ve];et.styles[Ve].d+=Kt.hd===!0?"":qt,et.styles[Ve]._mdf=Jt||et.styles[Ve]._mdf}}function Oe(Kt,et,dt){var Ct=et.style;(et.c._mdf||dt)&&Ct.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||dt)&&Ct.pElem.setAttribute("fill-opacity",et.o.v)}function He(Kt,et,dt){We(Kt,et,dt),Mt(Kt,et,dt)}function We(Kt,et,dt){var Ct,Et,qt,Jt,Xe,Ve=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,gt=et.e.v;if(et.o._mdf||dt){var rn=Kt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||dt){var ln=Kt.t===1?"x1":"cx",Ot=ln==="x1"?"y1":"cy";Ve.setAttribute(ln,qe[0]),Ve.setAttribute(Ot,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(ln,qe[0]),et.of.setAttribute(Ot,qe[1]))}if(et.g._cmdf||dt){Ct=et.cst;var co=et.g.c;for(qt=Ct.length,Et=0;Et<qt;Et+=1)(Jt=Ct[Et]).setAttribute("offset",co[4*Et]+"%"),Jt.setAttribute("stop-color","rgb("+co[4*Et+1]+","+co[4*Et+2]+","+co[4*Et+3]+")")}if(Ne&&(et.g._omdf||dt)){var So=et.g.o;for(qt=(Ct=et.g._collapsable?et.cst:et.ost).length,Et=0;Et<qt;Et+=1)Jt=Ct[Et],et.g._collapsable||Jt.setAttribute("offset",So[2*Et]+"%"),Jt.setAttribute("stop-opacity",So[2*Et+1])}if(Kt.t===1)(et.e._mdf||dt)&&(Ve.setAttribute("x2",gt[0]),Ve.setAttribute("y2",gt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",gt[0]),et.of.setAttribute("y2",gt[1])));else if((et.s._mdf||et.e._mdf||dt)&&(Xe=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)),Ve.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||dt){Xe||(Xe=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)));var ai=Math.atan2(gt[1]-qe[1],gt[0]-qe[0]),Go=et.h.v;Go>=1?Go=.99:Go<=-1&&(Go=-.99);var oo=Xe*Go,Nt=Math.cos(ai+et.a.v)*oo+qe[0],gn=Math.sin(ai+et.a.v)*oo+qe[1];Ve.setAttribute("fx",Nt),Ve.setAttribute("fy",gn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Nt),et.of.setAttribute("fy",gn))}}function Mt(Kt,et,dt){var Ct=et.style,Et=et.d;Et&&(Et._mdf||dt)&&Et.dashStr&&(Ct.pElem.setAttribute("stroke-dasharray",Et.dashStr),Ct.pElem.setAttribute("stroke-dashoffset",Et.dashoffset[0])),et.c&&(et.c._mdf||dt)&&Ct.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||dt)&&Ct.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||dt)&&(Ct.pElem.setAttribute("stroke-width",et.w.v),Ct.msElem&&Ct.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function Xo(G,X,pe){this.shapes=[],this.shapesData=G.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(G,X,pe),this.prevViewData=[]}function Yp(G,X,pe,xe,ve,$e){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=ve,this.p=$e,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function Qc(G,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=G.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=G,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([Rn,o2,H8,MN,ky,bi,X5],Xo),Xo.prototype.initSecondaryElement=function(){},Xo.prototype.identityMatrix=new $t,Xo.prototype.buildExpressionInterface=function(){},Xo.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xo.prototype.filterUniqueShapes=function(){var G,X,pe,xe,ve=this.shapes.length,$e=this.stylesList.length,Oe=[],He=!1;for(pe=0;pe<$e;pe+=1){for(xe=this.stylesList[pe],He=!1,Oe.length=0,G=0;G<ve;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Oe.push(X),He=X._isAnimated||He);Oe.length>1&&He&&this.setShapesAsAnimated(Oe)}},Xo.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},Xo.prototype.createStyleElement=function(G,X){var pe,xe=new zN(G,X),ve=xe.pElem;return G.ty==="st"?pe=new NN(this,G,xe):G.ty==="fl"?pe=new _N(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?ym:HN)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),ve.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new VN(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(ve.setAttribute("stroke-linecap",ON[G.lc||2]),ve.setAttribute("stroke-linejoin",FN[G.lj||2]),ve.setAttribute("fill-opacity","0"),G.lj===1&&ve.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&ve.setAttribute("fill-rule","evenodd"),G.ln&&ve.setAttribute("id",G.ln),G.cl&&ve.setAttribute("class",G.cl),G.bm&&(ve.style["mix-blend-mode"]=ni(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},Xo.prototype.createGroupElement=function(G){var X=new Joe;return G.ln&&X.gr.setAttribute("id",G.ln),G.cl&&X.gr.setAttribute("class",G.cl),G.bm&&(X.gr.style["mix-blend-mode"]=ni(G.bm)),X},Xo.prototype.createTransformElement=function(G,X){var pe=On.getTransformProperty(this,G,this),xe=new Xoe(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},Xo.prototype.createShapeElement=function(G,X,pe){var xe=4;G.ty==="rc"?xe=5:G.ty==="el"?xe=6:G.ty==="sr"&&(xe=7);var ve=new RN(X,pe,Ze.getShapeProp(this,G,xe,this));return this.shapes.push(ve),this.addShapeToModifiers(ve),this.addToAnimatedContents(G,ve),ve},Xo.prototype.addToAnimatedContents=function(G,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:wr.createRenderFunction(G),element:X,data:G})},Xo.prototype.setElementStyles=function(G){var X,pe=G.styles,xe=this.stylesList.length;for(X=0;X<xe;X+=1)pe.indexOf(this.stylesList[X])===-1&&!this.stylesList[X].closed&&pe.push(this.stylesList[X])},Xo.prototype.reloadShapes=function(){this._isFirstFrame=!0;var G,X=this.itemsData.length;for(G=0;G<X;G+=1)this.prevViewData[G]=this.itemsData[G];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,G=0;G<X;G+=1)this.dynamicProperties[G].getValue();this.renderModifiers()},Xo.prototype.searchShapes=function(G,X,pe,xe,ve,$e,Oe){var He,We,Mt,Kt,et,dt,Ct=[].concat($e),Et=G.length-1,qt=[],Jt=[];for(He=Et;He>=0;He-=1){if((dt=this.searchProcessedElement(G[He]))?X[He]=pe[dt-1]:G[He]._render=Oe,G[He].ty==="fl"||G[He].ty==="st"||G[He].ty==="gf"||G[He].ty==="gs"||G[He].ty==="no")dt?X[He].style.closed=G[He].hd:X[He]=this.createStyleElement(G[He],ve),G[He]._render&&X[He].style.pElem.parentNode!==xe&&xe.appendChild(X[He].style.pElem),qt.push(X[He].style);else if(G[He].ty==="gr"){if(dt)for(Mt=X[He].it.length,We=0;We<Mt;We+=1)X[He].prevViewData[We]=X[He].it[We];else X[He]=this.createGroupElement(G[He]);this.searchShapes(G[He].it,X[He].it,X[He].prevViewData,X[He].gr,ve+1,Ct,Oe),G[He]._render&&X[He].gr.parentNode!==xe&&xe.appendChild(X[He].gr)}else G[He].ty==="tr"?(dt||(X[He]=this.createTransformElement(G[He],xe)),Kt=X[He].transform,Ct.push(Kt)):G[He].ty==="sh"||G[He].ty==="rc"||G[He].ty==="el"||G[He].ty==="sr"?(dt||(X[He]=this.createShapeElement(G[He],Ct,ve)),this.setElementStyles(X[He])):G[He].ty==="tm"||G[He].ty==="rd"||G[He].ty==="ms"||G[He].ty==="pb"||G[He].ty==="zz"||G[He].ty==="op"?(dt?(et=X[He]).closed=!1:((et=mn.getModifier(G[He].ty)).init(this,G[He]),X[He]=et,this.shapeModifiers.push(et)),Jt.push(et)):G[He].ty==="rp"&&(dt?(et=X[He]).closed=!0:(et=mn.getModifier(G[He].ty),X[He]=et,et.init(this,G,He,X),this.shapeModifiers.push(et),Oe=!1),Jt.push(et));this.addProcessedElement(G[He],He+1)}for(Et=qt.length,He=0;He<Et;He+=1)qt[He].closed=!0;for(Et=Jt.length,He=0;He<Et;He+=1)Jt[He].closed=!0},Xo.prototype.renderInnerContent=function(){this.renderModifiers();var G,X=this.stylesList.length;for(G=0;G<X;G+=1)this.stylesList[G].reset();for(this.renderShape(),G=0;G<X;G+=1)(this.stylesList[G]._mdf||this._isFirstFrame)&&(this.stylesList[G].msElem&&(this.stylesList[G].msElem.setAttribute("d",this.stylesList[G].d),this.stylesList[G].d="M0 0"+this.stylesList[G].d),this.stylesList[G].pElem.setAttribute("d",this.stylesList[G].d||"M0 0"))},Xo.prototype.renderShape=function(){var G,X,pe=this.animatedContents.length;for(G=0;G<pe;G+=1)X=this.animatedContents[G],(this._isFirstFrame||X.element._isAnimated)&&X.data!==!0&&X.fn(X.data,X.element,this._isFirstFrame)},Xo.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},Yp.prototype.update=function(G,X,pe,xe,ve,$e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Oe=!1;return this.o!==G&&(this.o=G,this._mdf.o=!0,Oe=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Oe=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Oe=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Oe=!0),this.m!==ve&&(this.m=ve,this._mdf.m=!0,Oe=!0),$e.length&&(this.p[0]!==$e[0]||this.p[1]!==$e[1]||this.p[4]!==$e[4]||this.p[5]!==$e[5]||this.p[12]!==$e[12]||this.p[13]!==$e[13])&&(this.p=$e,this._mdf.p=!0,Oe=!0),Oe},Qc.prototype.defaultBoxWidth=[0,0],Qc.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},Qc.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Qc.prototype.searchProperty=function(){return this.searchKeyframes()},Qc.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Qc.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},Qc.prototype.getValue=function(G){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||G){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var X=this.currentData,pe=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var xe,ve=this.effectsSequence.length,$e=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<ve;xe+=1)$e=pe!==this.keysIndex?this.effectsSequence[xe]($e,$e.t):this.effectsSequence[xe](this.currentData,$e.t);X!==$e&&this.setCurrentData($e),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Qc.prototype.getKeyframeValue=function(){for(var G=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=G.length;pe<=xe-1&&!(pe===xe-1||G[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},Qc.prototype.buildFinalText=function(G){for(var X,pe,xe=[],ve=0,$e=G.length,Oe=!1,He=!1,We="";ve<$e;)Oe=He,He=!1,X=G.charCodeAt(ve),We=G.charAt(ve),dn.isCombinedCharacter(X)?Oe=!0:X>=55296&&X<=56319?dn.isRegionalFlag(G,ve)?We=G.substr(ve,14):(pe=G.charCodeAt(ve+1))>=56320&&pe<=57343&&(dn.isModifier(X,pe)?(We=G.substr(ve,2),Oe=!0):We=dn.isFlagEmoji(G.substr(ve,4))?G.substr(ve,4):G.substr(ve,2)):X>56319?(pe=G.charCodeAt(ve+1),dn.isVariationSelector(X)&&(Oe=!0)):dn.isZeroWidthJoiner(X)&&(Oe=!0,He=!0),Oe?(xe[xe.length-1]+=We,Oe=!1):xe.push(We),ve+=We.length;return xe},Qc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,ve,$e,Oe,He,We=this.elem.globalData.fontManager,Mt=this.data,Kt=[],et=0,dt=Mt.m.g,Ct=0,Et=0,qt=0,Jt=[],Xe=0,Ve=0,Ne=We.getFontByName(G.f),qe=0,gt=Rt(Ne);G.fWeight=gt.weight,G.fStyle=gt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var rn,ln=G.tr/1e3*G.finalSize;if(G.sz)for(var Ot,co,So=!0,ai=G.sz[0],Go=G.sz[1];So;){Ot=0,Xe=0,pe=(co=this.buildFinalText(G.t)).length,ln=G.tr/1e3*G.finalSize;var oo=-1;for(X=0;X<pe;X+=1)rn=co[X].charCodeAt(0),xe=!1,co[X]===" "?oo=X:(rn===13||rn===3)&&(Xe=0,xe=!0,Ot+=G.finalLineHeight||1.2*G.finalSize),We.chars?(He=We.getCharData(co[X],Ne.fStyle,Ne.fFamily),qe=xe?0:He.w*G.finalSize/100):qe=We.measureText(co[X],G.f,G.finalSize),Xe+qe>ai&&co[X]!==" "?(oo===-1?pe+=1:X=oo,Ot+=G.finalLineHeight||1.2*G.finalSize,co.splice(X,oo===X?1:0,"\r"),oo=-1,Xe=0):(Xe+=qe,Xe+=ln);Ot+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&Go<Ot?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=co,pe=G.finalText.length,So=!1)}Xe=-ln,qe=0;var Nt,gn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Nt=G.finalText[X]).charCodeAt(0))===13||rn===3?(gn=0,Jt.push(Xe),Ve=Xe>Ve?Xe:Ve,Xe=-2*ln,ve="",xe=!0,qt+=1):ve=Nt,We.chars?(He=We.getCharData(Nt,Ne.fStyle,We.getFontByName(G.f).fFamily),qe=xe?0:He.w*G.finalSize/100):qe=We.measureText(ve,G.f,G.finalSize),Nt===" "?gn+=qe+ln:(Xe+=qe+ln+gn,gn=0),Kt.push({l:qe,an:qe,add:Ct,n:xe,anIndexes:[],val:ve,line:qt,animatorJustifyOffset:0}),dt==2){if(Ct+=qe,ve===""||ve===" "||X===pe-1){for((ve===""||ve===" ")&&(Ct-=qe);Et<=X;)Kt[Et].an=Ct,Kt[Et].ind=et,Kt[Et].extra=qe,Et+=1;et+=1,Ct=0}}else if(dt==3){if(Ct+=qe,ve===""||X===pe-1){for(ve===""&&(Ct-=qe);Et<=X;)Kt[Et].an=Ct,Kt[Et].ind=et,Kt[Et].extra=qe,Et+=1;Ct=0,et+=1}}else Kt[et].ind=et,Kt[et].extra=0,et+=1;if(G.l=Kt,Ve=Xe>Ve?Xe:Ve,Jt.push(Xe),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=Ve,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=Jt;var ft,st,Re=Mt.a;Oe=Re.length;var pt,bt,mi=[];for($e=0;$e<Oe;$e+=1){for((ft=Re[$e]).a.sc&&(G.strokeColorAnim=!0),ft.a.sw&&(G.strokeWidthAnim=!0),(ft.a.fc||ft.a.fh||ft.a.fs||ft.a.fb)&&(G.fillColorAnim=!0),bt=0,pt=ft.s.b,X=0;X<pe;X+=1)(st=Kt[X]).anIndexes[$e]=bt,(pt==1&&st.val!==""||pt==2&&st.val!==""&&st.val!==" "||pt==3&&(st.n||st.val==" "||X==pe-1)||pt==4&&(st.n||X==pe-1))&&(ft.s.rn===1&&mi.push(bt),bt+=1);Mt.a[$e].s.totalChars=bt;var qo,Do=-1;if(ft.s.rn===1)for(X=0;X<pe;X+=1)Do!=(st=Kt[X]).anIndexes[$e]&&(Do=st.anIndexes[$e],qo=mi.splice(Math.floor(Math.random()*mi.length),1)[0]),st.anIndexes[$e]=qo}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},Qc.prototype.updateDocumentData=function(G,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,G),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},Qc.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},Qc.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Qc.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Q8=(function(){var G=Math.max,X=Math.min,pe=Math.floor;function xe($e,Oe){this._currentTextLength=-1,this.k=!1,this.data=Oe,this.elem=$e,this.comp=$e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer($e),this.s=Ke.getProp($e,Oe.s||{k:0},0,0,this),this.e="e"in Oe?Ke.getProp($e,Oe.e,0,0,this):{v:100},this.o=Ke.getProp($e,Oe.o||{k:0},0,0,this),this.xe=Ke.getProp($e,Oe.xe||{k:0},0,0,this),this.ne=Ke.getProp($e,Oe.ne||{k:0},0,0,this),this.sm=Ke.getProp($e,Oe.sm||{k:100},0,0,this),this.a=Ke.getProp($e,Oe.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function ve($e,Oe,He){return new xe($e,Oe)}return xe.prototype={getMult:function($e){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Oe=0,He=0,We=1,Mt=1;this.ne.v>0?Oe=this.ne.v/100:He=-this.ne.v/100,this.xe.v>0?We=1-this.xe.v/100:Mt=1+this.xe.v/100;var Kt=Le.getBezierEasing(Oe,He,We,Mt).get,et=0,dt=this.finalS,Ct=this.finalE,Et=this.data.sh;if(Et===2)et=Kt(et=Ct===dt?$e>=Ct?1:0:G(0,X(.5/(Ct-dt)+($e-dt)/(Ct-dt),1)));else if(Et===3)et=Kt(et=Ct===dt?$e>=Ct?0:1:1-G(0,X(.5/(Ct-dt)+($e-dt)/(Ct-dt),1)));else if(Et===4)Ct===dt?et=0:(et=G(0,X(.5/(Ct-dt)+($e-dt)/(Ct-dt),1)))<.5?et*=2:et=1-2*(et-.5),et=Kt(et);else if(Et===5){if(Ct===dt)et=0;else{var qt=Ct-dt,Jt=-qt/2+($e=X(G(0,$e+.5-dt),Ct-dt)),Xe=qt/2;et=Math.sqrt(1-Jt*Jt/(Xe*Xe))}et=Kt(et)}else Et===6?(Ct===dt?et=0:($e=X(G(0,$e+.5-dt),Ct-dt),et=(1+Math.cos(Math.PI+2*Math.PI*$e/(Ct-dt)))/2),et=Kt(et)):($e>=pe(dt)&&(et=G(0,X($e-dt<0?X(Ct,1)-(dt-$e):Ct-$e,1))),et=Kt(et));if(this.sm.v!==100){var Ve=.01*this.sm.v;Ve===0&&(Ve=1e-8);var Ne=.5-.5*Ve;et<Ne?et=0:(et=(et-Ne)/Ve)>1&&(et=1)}return et*this.a.v},getValue:function($e){this.iterateDynamicProperties(),this._mdf=$e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,$e&&this.data.r===2&&(this.e.v=this._currentTextLength);var Oe=this.data.r===2?1:100/this.data.totalChars,He=this.o.v/Oe,We=this.s.v/Oe+He,Mt=this.e.v/Oe+He;if(We>Mt){var Kt=We;We=Mt,Mt=Kt}this.finalS=We,this.finalE=Mt}},g([Pt],xe),{getTextSelectorProp:ve}})();function ere(G,X,pe){var xe={propType:!1},ve=Ke.getProp,$e=X.a;this.a={r:$e.r?ve(G,$e.r,0,D,pe):xe,rx:$e.rx?ve(G,$e.rx,0,D,pe):xe,ry:$e.ry?ve(G,$e.ry,0,D,pe):xe,sk:$e.sk?ve(G,$e.sk,0,D,pe):xe,sa:$e.sa?ve(G,$e.sa,0,D,pe):xe,s:$e.s?ve(G,$e.s,1,.01,pe):xe,a:$e.a?ve(G,$e.a,1,0,pe):xe,o:$e.o?ve(G,$e.o,0,.01,pe):xe,p:$e.p?ve(G,$e.p,1,0,pe):xe,sw:$e.sw?ve(G,$e.sw,0,0,pe):xe,sc:$e.sc?ve(G,$e.sc,1,0,pe):xe,fc:$e.fc?ve(G,$e.fc,1,0,pe):xe,fh:$e.fh?ve(G,$e.fh,0,0,pe):xe,fs:$e.fs?ve(G,$e.fs,0,.01,pe):xe,fb:$e.fb?ve(G,$e.fb,0,.01,pe):xe,t:$e.t?ve(G,$e.t,0,0,pe):xe},this.s=Q8.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function r2(G,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=G,this._renderType=X,this._elem=pe,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(pe)}function bm(){}r2.prototype.searchProperties=function(){var G,X,pe=this._textData.a.length,xe=Ke.getProp;for(G=0;G<pe;G+=1)X=this._textData.a[G],this._animatorsData[G]=new ere(this._elem,X,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:xe(this._elem,this._textData.p.a,0,0,this),f:xe(this._elem,this._textData.p.f,0,0,this),l:xe(this._elem,this._textData.p.l,0,0,this),r:xe(this._elem,this._textData.p.r,0,0,this),p:xe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=xe(this._elem,this._textData.m.a,1,0,this)},r2.prototype.getMeasures=function(G,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,ve,$e,Oe,He,We,Mt,Kt,et,dt,Ct,Et,qt,Jt,Xe,Ve,Ne,qe,gt=this._moreOptions.alignment.v,rn=this._animatorsData,ln=this._textData,Ot=this.mHelper,co=this._renderType,So=this.renderedLetters.length,ai=G.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Go,oo=qe.v;for(this._pathData.r.v&&(oo=oo.reverse()),Oe={tLength:0,segments:[]},$e=oo._length-1,Xe=0,ve=0;ve<$e;ve+=1)Go=Ie.buildBezierData(oo.v[ve],oo.v[ve+1],[oo.o[ve][0]-oo.v[ve][0],oo.o[ve][1]-oo.v[ve][1]],[oo.i[ve+1][0]-oo.v[ve+1][0],oo.i[ve+1][1]-oo.v[ve+1][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength;ve=$e,qe.v.c&&(Go=Ie.buildBezierData(oo.v[ve],oo.v[0],[oo.o[ve][0]-oo.v[ve][0],oo.o[ve][1]-oo.v[ve][1]],[oo.i[0][0]-oo.v[0][0],oo.i[0][1]-oo.v[0][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength),this._pathData.pi=Oe}if(Oe=this._pathData.pi,He=this._pathData.f.v,dt=0,et=1,Mt=0,Kt=!0,qt=Oe.segments,He<0&&qe.v.c)for(Oe.tLength<Math.abs(He)&&(He=-Math.abs(He)%Oe.tLength),et=(Et=qt[dt=qt.length-1].points).length-1;He<0;)He+=Et[et].partialLength,(et-=1)<0&&(et=(Et=qt[dt-=1].points).length-1);Ct=(Et=qt[dt].points)[et-1],Jt=(We=Et[et]).partialLength}$e=ai.length,pe=0,xe=0;var Nt,gn,ft,st,Re=1.2*G.finalSize*.714,pt=!0;ft=rn.length;var bt,mi,qo,Do,ya,Ko,dl,ha,Ua,wm,a2,Cm,vm,Gp=-1,cr=He,ZS=dt,JS=et,Y8=-1,Tf="",nx=this.defaultPropsArray;if(G.j===2||G.j===1){var qp=0,$y=0,Ey=G.j===2?-.5:-1,s2=0,Iy=!0;for(ve=0;ve<$e;ve+=1)if(ai[ve].n){for(qp&&(qp+=$y);s2<ve;)ai[s2].animatorJustifyOffset=qp,s2+=1;qp=0,Iy=!0}else{for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).t.propType&&(Iy&&G.j===2&&($y+=Nt.t.v*Ey),(bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?qp+=Nt.t.v*bt[0]*Ey:qp+=Nt.t.v*bt*Ey);Iy=!1}for(qp&&(qp+=$y);s2<ve;)ai[s2].animatorJustifyOffset=qp,s2+=1}for(ve=0;ve<$e;ve+=1){if(Ot.reset(),ya=1,ai[ve].n)pe=0,xe+=G.yOffset,xe+=pt?1:0,He=cr,pt=!1,this._hasMaskedPath&&(et=JS,Ct=(Et=qt[dt=ZS].points)[et-1],Jt=(We=Et[et]).partialLength,Mt=0),Tf="",Cm="",wm="",vm="",nx=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Y8!==ai[ve].line){switch(G.j){case 1:He+=Xe-G.lineWidths[ai[ve].line];break;case 2:He+=(Xe-G.lineWidths[ai[ve].line])/2}Y8=ai[ve].line}Gp!==ai[ve].ind&&(ai[Gp]&&(He+=ai[Gp].extra),He+=ai[ve].an/2,Gp=ai[ve].ind),He+=gt[0]*ai[ve].an*.005;var l2=0;for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).p.propType&&((bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?l2+=Nt.p.v[0]*bt[0]:l2+=Nt.p.v[0]*bt),Nt.a.propType&&((bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?l2+=Nt.a.v[0]*bt[0]:l2+=Nt.a.v[0]*bt);for(Kt=!0,this._pathData.a.v&&(He=.5*ai[0].an+(Xe-this._pathData.f.v-.5*ai[0].an-.5*ai[ai.length-1].an)*Gp/($e-1),He+=this._pathData.f.v);Kt;)Mt+Jt>=He+l2||!Et?(Ve=(He+l2-Mt)/We.partialLength,qo=Ct.point[0]+(We.point[0]-Ct.point[0])*Ve,Do=Ct.point[1]+(We.point[1]-Ct.point[1])*Ve,Ot.translate(-gt[0]*ai[ve].an*.005,-gt[1]*Re*.01),Kt=!1):Et&&(Mt+=We.partialLength,(et+=1)>=Et.length&&(et=0,qt[dt+=1]?Et=qt[dt].points:qe.v.c?(et=0,Et=qt[dt=0].points):(Mt-=We.partialLength,Et=null)),Et&&(Ct=We,Jt=(We=Et[et]).partialLength));mi=ai[ve].an/2-ai[ve].add,Ot.translate(-mi,0,0)}else mi=ai[ve].an/2-ai[ve].add,Ot.translate(-mi,0,0),Ot.translate(-gt[0]*ai[ve].an*.005,-gt[1]*Re*.01,0);for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).t.propType&&(bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars),(pe!==0||G.j!==0)&&(this._hasMaskedPath?bt.length?He+=Nt.t.v*bt[0]:He+=Nt.t.v*bt:bt.length?pe+=Nt.t.v*bt[0]:pe+=Nt.t.v*bt));for(G.strokeWidthAnim&&(dl=G.sw||0),G.strokeColorAnim&&(Ko=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ha=[G.fc[0],G.fc[1],G.fc[2]]),gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).a.propType&&((bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?Ot.translate(-Nt.a.v[0]*bt[0],-Nt.a.v[1]*bt[1],Nt.a.v[2]*bt[2]):Ot.translate(-Nt.a.v[0]*bt,-Nt.a.v[1]*bt,Nt.a.v[2]*bt));for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).s.propType&&((bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?Ot.scale(1+(Nt.s.v[0]-1)*bt[0],1+(Nt.s.v[1]-1)*bt[1],1):Ot.scale(1+(Nt.s.v[0]-1)*bt,1+(Nt.s.v[1]-1)*bt,1));for(gn=0;gn<ft;gn+=1){if(Nt=rn[gn].a,bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars),Nt.sk.propType&&(bt.length?Ot.skewFromAxis(-Nt.sk.v*bt[0],Nt.sa.v*bt[1]):Ot.skewFromAxis(-Nt.sk.v*bt,Nt.sa.v*bt)),Nt.r.propType&&(bt.length?Ot.rotateZ(-Nt.r.v*bt[2]):Ot.rotateZ(-Nt.r.v*bt)),Nt.ry.propType&&(bt.length?Ot.rotateY(Nt.ry.v*bt[1]):Ot.rotateY(Nt.ry.v*bt)),Nt.rx.propType&&(bt.length?Ot.rotateX(Nt.rx.v*bt[0]):Ot.rotateX(Nt.rx.v*bt)),Nt.o.propType&&(bt.length?ya+=(Nt.o.v*bt[0]-ya)*bt[0]:ya+=(Nt.o.v*bt-ya)*bt),G.strokeWidthAnim&&Nt.sw.propType&&(bt.length?dl+=Nt.sw.v*bt[0]:dl+=Nt.sw.v*bt),G.strokeColorAnim&&Nt.sc.propType)for(Ua=0;Ua<3;Ua+=1)bt.length?Ko[Ua]+=(Nt.sc.v[Ua]-Ko[Ua])*bt[0]:Ko[Ua]+=(Nt.sc.v[Ua]-Ko[Ua])*bt;if(G.fillColorAnim&&G.fc){if(Nt.fc.propType)for(Ua=0;Ua<3;Ua+=1)bt.length?ha[Ua]+=(Nt.fc.v[Ua]-ha[Ua])*bt[0]:ha[Ua]+=(Nt.fc.v[Ua]-ha[Ua])*bt;Nt.fh.propType&&(ha=bt.length?q(ha,Nt.fh.v*bt[0]):q(ha,Nt.fh.v*bt)),Nt.fs.propType&&(ha=bt.length?U(ha,Nt.fs.v*bt[0]):U(ha,Nt.fs.v*bt)),Nt.fb.propType&&(ha=bt.length?Y(ha,Nt.fb.v*bt[0]):Y(ha,Nt.fb.v*bt))}}for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).p.propType&&(bt=rn[gn].s.getMult(ai[ve].anIndexes[gn],ln.a[gn].s.totalChars),this._hasMaskedPath?bt.length?Ot.translate(0,Nt.p.v[1]*bt[0],-Nt.p.v[2]*bt[1]):Ot.translate(0,Nt.p.v[1]*bt,-Nt.p.v[2]*bt):bt.length?Ot.translate(Nt.p.v[0]*bt[0],Nt.p.v[1]*bt[1],-Nt.p.v[2]*bt[2]):Ot.translate(Nt.p.v[0]*bt,Nt.p.v[1]*bt,-Nt.p.v[2]*bt));if(G.strokeWidthAnim&&(wm=dl<0?0:dl),G.strokeColorAnim&&(a2="rgb("+Math.round(255*Ko[0])+","+Math.round(255*Ko[1])+","+Math.round(255*Ko[2])+")"),G.fillColorAnim&&G.fc&&(Cm="rgb("+Math.round(255*ha[0])+","+Math.round(255*ha[1])+","+Math.round(255*ha[2])+")"),this._hasMaskedPath){if(Ot.translate(0,-G.ls),Ot.translate(0,gt[1]*Re*.01+xe,0),this._pathData.p.v){Ne=(We.point[1]-Ct.point[1])/(We.point[0]-Ct.point[0]);var G8=180*Math.atan(Ne)/Math.PI;We.point[0]<Ct.point[0]&&(G8+=180),Ot.rotate(-G8*Math.PI/180)}Ot.translate(qo,Do,0),He-=gt[0]*ai[ve].an*.005,ai[ve+1]&&Gp!==ai[ve+1].ind&&(He+=ai[ve].an/2,He+=.001*G.tr*G.finalSize)}else{switch(Ot.translate(pe,xe,0),G.ps&&Ot.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:Ot.translate(ai[ve].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ai[ve].line]),0,0);break;case 2:Ot.translate(ai[ve].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ai[ve].line])/2,0,0)}Ot.translate(0,-G.ls),Ot.translate(mi,0,0),Ot.translate(gt[0]*ai[ve].an*.005,gt[1]*Re*.01,0),pe+=ai[ve].l+.001*G.tr*G.finalSize}co==="html"?Tf=Ot.toCSS():co==="svg"?Tf=Ot.to2dCSS():nx=[Ot.props[0],Ot.props[1],Ot.props[2],Ot.props[3],Ot.props[4],Ot.props[5],Ot.props[6],Ot.props[7],Ot.props[8],Ot.props[9],Ot.props[10],Ot.props[11],Ot.props[12],Ot.props[13],Ot.props[14],Ot.props[15]],vm=ya}So<=ve?(st=new Yp(vm,wm,a2,Cm,Tf,nx),this.renderedLetters.push(st),So+=1,this.lettersChangedFlag=!0):(st=this.renderedLetters[ve],this.lettersChangedFlag=st.update(vm,wm,a2,Cm,Tf,nx)||this.lettersChangedFlag)}}},r2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},r2.prototype.mHelper=new $t,r2.prototype.defaultPropsArray=[],g([Pt],r2),bm.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new Qc(this,G.t,this.dynamicProperties),this.textAnimator=new r2(G.t,this.renderType,this),this.initTransform(G,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},bm.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},bm.prototype.createPathShape=function(G,X){var pe,xe,ve=X.length,$e="";for(pe=0;pe<ve;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,$e+=Qn(xe,xe.i.length,!0,G));return $e},bm.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},bm.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},bm.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},bm.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,ve){switch(G.ps&&X.translate(G.ps[0],G.ps[1]+G.ascent,0),X.translate(0,-G.ls,0),G.j){case 1:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe]),0,0);break;case 2:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe])/2,0,0)}X.translate(xe,ve,0)},bm.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},bm.prototype.emptyProp=new Yp,bm.prototype.destroy=function(){},bm.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var tin={shapes:[]};function ex(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function tre(G,X,pe){this.initElement(G,X,pe)}function jy(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function jd(){}function tx(){}function JT(G,X,pe){this.layers=G.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(G,X,pe),this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0}}function nre(G,X){this.animationItem=G,this.layers=null,this.renderedFrame=-1,this.svgElement=le("svg");var pe="";if(X&&X.title){var xe=le("title"),ve=H();xe.setAttribute("id",ve),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=ve}if(X&&X.description){var $e=le("desc"),Oe=H();$e.setAttribute("id",Oe),$e.textContent=X.description,this.svgElement.appendChild($e),pe+=" "+Oe}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var He=le("defs");this.svgElement.appendChild(He);var We=le("g");this.svgElement.appendChild(We),this.layerElement=We,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:He,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Rn,o2,H8,ky,bi,X5,bm],ex),ex.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},ex.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],ve="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(ve),ve=""):ve+=G[X],X+=1;return xe.push(ve),xe},ex.prototype.buildShapeData=function(G,X){if(G.shapes&&G.shapes.length){var pe=G.shapes[0];if(pe.it){var xe=pe.it[pe.it.length-1];xe.s&&(xe.s.k[0]=X,xe.s.k[1]=X)}}return G},ex.prototype.buildNewText=function(){this.addDynamicProperty(this);var G,X,pe=this.textProperty.currentData;this.renderedLetters=b(pe?pe.l.length:0),pe.fc?this.layerElement.setAttribute("fill",this.buildColor(pe.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),pe.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(pe.sc)),this.layerElement.setAttribute("stroke-width",pe.sw)),this.layerElement.setAttribute("font-size",pe.finalSize);var xe=this.globalData.fontManager.getFontByName(pe.f);if(xe.fClass)this.layerElement.setAttribute("class",xe.fClass);else{this.layerElement.setAttribute("font-family",xe.fFamily);var ve=pe.fWeight,$e=pe.fStyle;this.layerElement.setAttribute("font-style",$e),this.layerElement.setAttribute("font-weight",ve)}this.layerElement.setAttribute("aria-label",pe.t);var Oe=pe.l||[],He=!!this.globalData.fontManager.chars;X=Oe.length;var We,Mt=this.mHelper,Kt="",et=this.data.singleShape,dt=0,Ct=0,Et=!0,qt=.001*pe.tr*pe.finalSize;if(!et||He||pe.sz){var Jt,Xe=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!He||!et||G===0){if(We=Xe>G?this.textSpans[G].span:le(He?"g":"text"),Xe<=G){if(We.setAttribute("stroke-linecap","butt"),We.setAttribute("stroke-linejoin","round"),We.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=We,He){var Ve=le("g");We.appendChild(Ve),this.textSpans[G].childSpan=Ve}this.textSpans[G].span=We,this.layerElement.appendChild(We)}We.style.display="inherit"}if(Mt.reset(),et&&(Oe[G].n&&(dt=-qt,Ct+=pe.yOffset,Ct+=Et?1:0,Et=!1),this.applyTextPropertiesToMatrix(pe,Mt,Oe[G].line,dt,Ct),dt+=Oe[G].l||0,dt+=qt),He){var Ne;if((Jt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new JT(Jt.data,this.globalData,this);else{var qe=tin;Jt.data&&Jt.data.shapes&&(qe=this.buildShapeData(Jt.data,pe.finalSize)),Ne=new Xo(qe,this.globalData,this)}if(this.textSpans[G].glyph){var gt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(gt.layerElement),gt.destroy()}this.textSpans[G].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[G].childSpan.appendChild(Ne.layerElement),Jt.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&We.setAttribute("transform","translate("+Mt.props[12]+","+Mt.props[13]+")"),We.textContent=Oe[G].val,We.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&We&&We.setAttribute("d",Kt)}else{var rn=this.textContainer,ln="start";switch(pe.j){case 1:ln="end";break;case 2:ln="middle";break;default:ln="start"}rn.setAttribute("text-anchor",ln),rn.setAttribute("letter-spacing",qt);var Ot=this.buildTextContents(pe.finalText);for(X=Ot.length,Ct=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(We=this.textSpans[G].span||le("tspan")).textContent=Ot[G],We.setAttribute("x",0),We.setAttribute("y",Ct),We.style.display="inherit",rn.appendChild(We),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=We,Ct+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},ex.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var G=this.layerElement.getBBox();this.bbox={top:G.y,left:G.x,width:G.width,height:G.height}}return this.bbox},ex.prototype.getValue=function(){var G,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,G=0;G<pe;G+=1)(X=this.textSpans[G].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},ex.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var G,X,pe,xe,ve,$e=this.textAnimator.renderedLetters,Oe=this.textProperty.currentData.l;for(X=Oe.length,G=0;G<X;G+=1)Oe[G].n||(pe=$e[G],xe=this.textSpans[G].span,(ve=this.textSpans[G].glyph)&&ve.renderFrame(),pe._mdf.m&&xe.setAttribute("transform",pe.m),pe._mdf.o&&xe.setAttribute("opacity",pe.o),pe._mdf.sw&&xe.setAttribute("stroke-width",pe.sw),pe._mdf.sc&&xe.setAttribute("stroke",pe.sc),pe._mdf.fc&&xe.setAttribute("fill",pe.fc))}},g([U8],tre),tre.prototype.createContent=function(){var G=le("rect");G.setAttribute("width",this.data.sw),G.setAttribute("height",this.data.sh),G.setAttribute("fill",this.data.sc),this.layerElement.appendChild(G)},jy.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},jy.prototype.renderFrame=function(){},jy.prototype.getBaseElement=function(){return null},jy.prototype.destroy=function(){},jy.prototype.sourceRectAtTime=function(){},jy.prototype.hide=function(){},g([Rn,o2,ky,bi],jy),g([Js],jd),jd.prototype.createNull=function(G){return new jy(G,this.globalData,this)},jd.prototype.createShape=function(G){return new Xo(G,this.globalData,this)},jd.prototype.createText=function(G){return new ex(G,this.globalData,this)},jd.prototype.createImage=function(G){return new U8(G,this.globalData,this)},jd.prototype.createSolid=function(G){return new tre(G,this.globalData,this)},jd.prototype.configAnimation=function(G){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+G.w+" "+G.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",G.w),this.svgElement.setAttribute("height",G.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var X=this.globalData.defs;this.setupGlobalData(G,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=G;var pe=le("clipPath"),xe=le("rect");xe.setAttribute("width",G.w),xe.setAttribute("height",G.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var ve=H();pe.setAttribute("id",ve),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+ve+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},jd.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var G,X=this.layers?this.layers.length:0;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy&&this.elements[G].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},jd.prototype.updateContainerSize=function(){},jd.prototype.findIndexByInd=function(G){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===G)return X;return-1},jd.prototype.buildItem=function(G){var X=this.elements;if(!X[G]&&this.layers[G].ty!==99){X[G]=!0;var pe=this.createItem(this.layers[G]);if(X[G]=pe,te()&&(this.layers[G].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,G),this.layers[G].tt){var xe="tp"in this.layers[G]?this.findIndexByInd(this.layers[G].tp):G-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var ve=X[xe].getMatte(this.layers[G].tt);pe.setMatte(ve)}else this.buildItem(xe),this.addPendingElement(pe)}}},jd.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var G=this.pendingElements.pop();if(G.checkParenting(),G.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===G){var xe="tp"in G.data?this.findIndexByInd(G.data.tp):X-1,ve=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(ve);break}X+=1}}},jd.prototype.renderFrame=function(G){if(this.renderedFrame!==G&&!this.destroyed){G===null?G=this.renderedFrame:this.renderedFrame=G,this.globalData.frameNum=G,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=G,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(G),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(G-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},jd.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,ve=0;ve<X;)this.elements[ve]&&this.elements[ve]!==!0&&this.elements[ve].getBaseElement()&&(xe=this.elements[ve].getBaseElement()),ve+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},jd.prototype.hide=function(){this.layerElement.style.display="none"},jd.prototype.show=function(){this.layerElement.style.display="block"},g([Rn,o2,ky,bi,X5],tx),tx.prototype.initElement=function(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initTransform(G,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},tx.prototype.prepareFrame=function(G){if(this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=G/this.data.sr;else{var X=this.tm.v;X===this.data.op&&(X=this.data.op-1),this.renderedFrame=X}var pe,xe=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),pe=xe-1;pe>=0;pe-=1)(this.completeLayers||this.elements[pe])&&(this.elements[pe].prepareFrame(this.renderedFrame-this.layers[pe].st),this.elements[pe]._mdf&&(this._mdf=!0))}},tx.prototype.renderInnerContent=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)(this.completeLayers||this.elements[G])&&this.elements[G].renderFrame()},tx.prototype.setElements=function(G){this.elements=G},tx.prototype.getElements=function(){return this.elements},tx.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},tx.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([jd,tx,H8],JT),JT.prototype.createComp=function(G){return new JT(G,this.globalData,this)},g([jd],nre),nre.prototype.createComp=function(G){return new JT(G,this.globalData,this)},he("svg",nre),mn.registerModifier("tm",yt),mn.registerModifier("pb",Bt),mn.registerModifier("rp",ei),mn.registerModifier("rd",Jn),mn.registerModifier("zz",ua),mn.registerModifier("op",fr),Vt})())})(0,are.exports)),are.exports}function Tsn(){if(dje)return rre;function e(n){return n instanceof Mke?Mke.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return dje=1,rre=function(n){if(n=n||{},n.circles)return(function(l){const c=[],d=[],u=new Map;if(u.set(Date,(x=>new Date(x))),u.set(Map,((x,y)=>new Map(h(Array.from(x),y)))),u.set(Set,((x,y)=>new Set(h(Array.from(x),y)))),l.constructorHandlers)for(const x of l.constructorHandlers)u.set(x[0],x[1]);let p=null;return l.proto?f:g;function h(x,y){const b=Object.keys(x),w=new Array(b.length);for(let C=0;C<b.length;C++){const v=b[C],S=x[v];if(typeof S!="object"||S===null)w[v]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[v]=p(S,y);else if(ArrayBuffer.isView(S))w[v]=e(S);else{const k=c.indexOf(S);w[v]=k!==-1?d[k]:y(S)}}return w}function g(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,g);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,g);const y={};c.push(x),d.push(y);for(const b in x){if(Object.hasOwnProperty.call(x,b)===!1)continue;const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,g);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:g(w)}}return c.pop(),d.pop(),y}function f(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,f);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,f);const y={};c.push(x),d.push(y);for(const b in x){const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,f);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:f(w)}}return c.pop(),d.pop(),y}})(n);const i=new Map;if(i.set(Date,(l=>new Date(l))),i.set(Map,((l,c)=>new Map(s(Array.from(l),c)))),i.set(Set,((l,c)=>new Set(s(Array.from(l),c)))),n.constructorHandlers)for(const l of n.constructorHandlers)i.set(l[0],l[1]);let r=null;return n.proto?function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d}:function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){if(Object.hasOwnProperty.call(c,u)===!1)continue;const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d};function s(l,c){const d=Object.keys(l),u=new Array(d.length);for(let p=0;p<d.length;p++){const h=d[p],g=l[h];typeof g!="object"||g===null?u[h]=g:g.constructor!==Object&&(r=i.get(g.constructor))?u[h]=r(g,c):ArrayBuffer.isView(g)?u[h]=e(g):u[h]=c(g)}return u}},rre}var Lsn=(function(){if(mje)return hje;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}mje=1;var n=e(Dsn()),i=B,r=e(i),s=e((cje||(cje=1,lje=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}),lje)),l=e((pje||(pje=1,uje=Tsn()()),uje));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,v=y.play,S=v===void 0?null:v,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,R=L===void 0?null:L,N=y.useSubframes,V=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,_=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,Y=U===void 0?p:U,q=y.onComplete,K=q===void 0?p:q,J=y.onLoopComplete,ee=J===void 0?p:J,te=y.onEnterFrame,ne=te===void 0?p:te,se=y.onSegmentStart,oe=se===void 0?p:se,le=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),me=le;if("animationData"in le){var ue=le;w=ue.animationData,me=d(ue,["animationData"])}if("path"in le){var re=le;C=re.path,me=d(re,["path"])}var ie=i.useRef(null),ce=i.useRef(),de=i.useCallback((function(){if(ce.current==null)throw new Error("Lottie ref is not set");return ce.current}),[]),ge=i.useState(!1),he=ge[0],ye=ge[1],Ae=i.useState(D),Ce=Ae[0],be=Ae[1];i.useEffect((function(){s(Ce,D)||be(D)}),[D,Ce]);var Be=i.useState(_),Le=Be[0],De=Be[1];i.useEffect((function(){s(Le,_)||De(_)}),[_,Le]),i.useEffect((function(){return function(){return de().removeEventListener("complete",K)}}),[de,K]),i.useEffect((function(){return function(){return de().removeEventListener("loopComplete",ee)}}),[de,ee]),i.useEffect((function(){return function(){return de().removeEventListener("enterFrame",ne)}}),[de,ne]),i.useEffect((function(){return function(){return de().removeEventListener("segmentStart",oe)}}),[de,oe]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",Y)}}),[de,Y]);var Fe=i.useCallback((function(Se){ce.current=Se,typeof b=="function"?b(Se):b!=null&&(b.current=Se)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var Se=f(c({animationData:w==null||typeof w!="object"?w:"default"in w&&typeof w.default=="object"?l(w.default):l(w),path:C,container:ie.current,renderer:T,loop:!1,autoplay:!1,rendererSettings:Le},W?{audioFactory:W}:{}));Fe(Se);var we=function(){return ye(!0)};return de().addEventListener("DOMLoaded",we),function(){de().removeEventListener("DOMLoaded",we),ye(!1),de().destroy(),Fe(void 0)}}),[O,T,Le,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",Y)}),[de,Y]),i.useEffect((function(){de().addEventListener("complete",K)}),[de,K]),i.useEffect((function(){de().addEventListener("loopComplete",ee)}),[de,ee]),i.useEffect((function(){de().addEventListener("enterFrame",ne)}),[de,ne]),i.useEffect((function(){de().addEventListener("segmentStart",oe)}),[de,oe]),i.useEffect((function(){he&&(de().loop=O)}),[he,O,de]);var Me=i.useRef(!1);return i.useEffect((function(){if(he)if(S===!0){var Se=!0;Ce?(de().playSegments(Ce,Se),Me.current=!0,I===-1&&we(typeof Ce[1]=="number"?Ce[1]:Ce[1][1])):(Me.current&&de().resetSegments(Se),Me.current=!1,I===-1?we(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function we(Ie){de().goToAndPlay(Ie,!0),de().setDirection(I)}}),[S,Ce,he,I,de]),i.useEffect((function(){he&&(Number.isNaN($)||de().setSpeed($))}),[$,he,de]),i.useEffect((function(){he&&de().setDirection(I)}),[I,de,he]),i.useEffect((function(){if(he&&R!=null){var Se=!0;S?de().goToAndPlay(R,Se):de().goToAndStop(R,Se)}}),[de,R,S,he]),i.useEffect((function(){de().setSubframe&&de().setSubframe(V)}),[de,V]),r.createElement("div",c({},me,{ref:ie}))})));return x})(n);return hje=h})();const Ps=ur(Lsn);var gje,fje,sre,xje,lre,yje,cre,bje,dre,wje,ure,Cje,pre,vje,Aje,Sje,kje,jje,$je,Eje,Ije,Dje,Tje,Lje,Bje,Pje,Mje,Oje,Fje,Rje,hre,zje,mre,Nje,gre,_je,fre,Vje,xre,Hje,Uje,Wje,yre,Qje,bre,Yje,wre,Gje,qje,Kje,Cre,Zje,Jje,Xje,e$e,t$e,n$e,i$e,o$e,r$e,vre,a$e,Are,s$e,Sre,l$e,c$e,d$e,u$e,p$e,h$e,m$e,kre,g$e,jre,f$e,$re,x$e,Ere,y$e,Ire,b$e,w$e,C$e,Dre,v$e,A$e,S$e,k$e,j$e,$$e,E$e,I$e,D$e,T$e,L$e,Tre,B$e,Lre,P$e,M$e,O$e,F$e,R$e,Bre,z$e,Pre,N$e,Mre,_$e,V$e,H$e,Ore,U$e,Fre,W$e,Q$e,Y$e,G$e,q$e,Rre,K$e,zre,Z$e,Nre,J$e,X$e,eEe;function xee(){return xje||(xje=1,sre=function(e,n){return e===n||e!=e&&n!=n}),sre}function XN(){if(yje)return lre;yje=1;var e=xee();return lre=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},lre}function pG(){if(Sje)return Aje;Sje=1;var e=fje?gje:(fje=1,gje=function(){this.__data__=[],this.size=0}),n=(function(){if(bje)return cre;bje=1;var c=XN(),d=Array.prototype.splice;return cre=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))},cre})(),i=(function(){if(wje)return dre;wje=1;var c=XN();return dre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},dre})(),r=(function(){if(Cje)return ure;Cje=1;var c=XN();return ure=function(d){return c(this.__data__,d)>-1},ure})(),s=(function(){if(vje)return pre;vje=1;var c=XN();return pre=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},pre})();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,Aje=l}function nCt(){if(Pje)return Bje;Pje=1;var e=typeof Rh=="object"&&Rh&&Rh.Object===Object&&Rh;return Bje=e}function f3(){if(Oje)return Mje;Oje=1;var e=nCt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return Mje=i}function HI(){if(Rje)return Fje;Rje=1;var e=f3().Symbol;return Fje=e}function YD(){if(_je)return gre;_je=1;var e=HI(),n=(function(){if(zje)return hre;zje=1;var s=HI(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return hre=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},hre})(),i=(function(){if(Nje)return mre;Nje=1;var s=Object.prototype.toString;return mre=function(l){return s.call(l)},mre})(),r=e?e.toStringTag:void 0;return gre=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},gre}function B3(){return Vje||(Vje=1,fre=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),fre}function iCt(){if(Hje)return xre;Hje=1;var e=YD(),n=B3();return xre=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},xre}function Bsn(){if(Qje)return yre;Qje=1;var e=(function(){if(Wje)return Uje;Wje=1;var i=f3()["__core-js_shared__"];return Uje=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return yre=function(i){return!!n&&n in i},yre}function oCt(){if(Yje)return bre;Yje=1;var e=Function.prototype.toString;return bre=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},bre}function Uv(){if(Zje)return Cre;Zje=1;var e=(function(){if(Gje)return wre;Gje=1;var i=iCt(),r=Bsn(),s=B3(),l=oCt(),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,h=u.hasOwnProperty,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return wre=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},wre})(),n=(Kje||(Kje=1,qje=function(i,r){return i?.[r]}),qje);return Cre=function(i,r){var s=n(i,r);return e(s)?s:void 0},Cre}function s8e(){if(Xje)return Jje;Xje=1;var e=Uv()(f3(),"Map");return Jje=e}function e_(){if(t$e)return e$e;t$e=1;var e=Uv()(Object,"create");return e$e=e}function Psn(){if(d$e)return c$e;d$e=1;var e=(function(){if(i$e)return n$e;i$e=1;var c=e_();return n$e=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(r$e||(r$e=1,o$e=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),o$e),i=(function(){if(a$e)return vre;a$e=1;var c=e_(),d=Object.prototype.hasOwnProperty;return vre=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},vre})(),r=(function(){if(s$e)return Are;s$e=1;var c=e_(),d=Object.prototype.hasOwnProperty;return Are=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Are})(),s=(function(){if(l$e)return Sre;l$e=1;var c=e_();return Sre=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},Sre})();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,c$e=l}function t_(){if(g$e)return kre;g$e=1;var e=(m$e||(m$e=1,h$e=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),h$e);return kre=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},kre}function l8e(){if(C$e)return w$e;C$e=1;var e=(function(){if(p$e)return u$e;p$e=1;var c=Psn(),d=pG(),u=s8e();return u$e=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(f$e)return jre;f$e=1;var c=t_();return jre=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},jre})(),i=(function(){if(x$e)return $re;x$e=1;var c=t_();return $re=function(d){return c(this,d).get(d)},$re})(),r=(function(){if(y$e)return Ere;y$e=1;var c=t_();return Ere=function(d){return c(this,d).has(d)},Ere})(),s=(function(){if(b$e)return Ire;b$e=1;var c=t_();return Ire=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Ire})();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,w$e=l}function c8e(){if(S$e)return A$e;S$e=1;var e=pG(),n=(function(){if(jje)return kje;jje=1;var d=pG();return kje=function(){this.__data__=new d,this.size=0}})(),i=(Eje||(Eje=1,$je=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),$je),r=(Dje||(Dje=1,Ije=function(d){return this.__data__.get(d)}),Ije),s=(Lje||(Lje=1,Tje=function(d){return this.__data__.has(d)}),Tje),l=(function(){if(v$e)return Dre;v$e=1;var d=pG(),u=s8e(),p=l8e();return Dre=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},Dre})();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,A$e=c}function rCt(){if(D$e)return I$e;D$e=1;var e=l8e(),n=(j$e||(j$e=1,k$e=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),k$e),i=(E$e||(E$e=1,$$e=function(s){return this.__data__.has(s)}),$$e);function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new e;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=n,r.prototype.has=i,I$e=r}function aCt(){return B$e||(B$e=1,Tre=function(e,n){return e.has(n)}),Tre}function sCt(){if(P$e)return Lre;P$e=1;var e=rCt(),n=(L$e||(L$e=1,T$e=function(r,s){for(var l=-1,c=r==null?0:r.length;++l<c;)if(s(r[l],l,r))return!0;return!1}),T$e),i=aCt();return Lre=function(r,s,l,c,d,u){var p=1&l,h=r.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var f=u.get(r),x=u.get(s);if(f&&x)return f==s&&x==r;var y=-1,b=!0,w=2&l?new e:void 0;for(u.set(r,s),u.set(s,r);++y<h;){var C=r[y],v=s[y];if(c)var S=p?c(v,C,y,s,r,u):c(C,v,y,r,s,u);if(S!==void 0){if(S)continue;b=!1;break}if(w){if(!n(s,(function(k,$){if(!i(w,$)&&(C===k||d(C,k,l,c,u)))return w.push($)}))){b=!1;break}}else if(C!==v&&!d(C,v,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},Lre}function lCt(){if(O$e)return M$e;O$e=1;var e=f3().Uint8Array;return M$e=e}function C5e(){return z$e||(z$e=1,Bre=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Bre}function Msn(){if(N$e)return Pre;N$e=1;var e=HI(),n=lCt(),i=xee(),r=sCt(),s=(R$e||(R$e=1,F$e=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),F$e),l=C5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Pre=function(u,p,h,g,f,x,y){switch(h){case"[object DataView]":if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case"[object ArrayBuffer]":return!(u.byteLength!=p.byteLength||!x(new n(u),new n(p)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+p);case"[object Error]":return u.name==p.name&&u.message==p.message;case"[object RegExp]":case"[object String]":return u==p+"";case"[object Map]":var b=s;case"[object Set]":var w=1&g;if(b||(b=l),u.size!=p.size&&!w)return!1;var C=y.get(u);if(C)return C==p;g|=2,y.set(u,p);var v=r(b(u),b(p),g,f,x,y);return y.delete(u),v;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Pre}function d8e(){return _$e||(_$e=1,Mre=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Mre}function Wu(){if(H$e)return V$e;H$e=1;var e=Array.isArray;return V$e=e}function cCt(){if(U$e)return Ore;U$e=1;var e=d8e(),n=Wu();return Ore=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Ore}function u8e(){return W$e||(W$e=1,Fre=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}),Fre}function dCt(){return Y$e?Q$e:(Y$e=1,Q$e=function(){return[]})}function p8e(){if(q$e)return G$e;q$e=1;var e=u8e(),n=dCt(),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(l){return l==null?[]:(l=Object(l),e(r(l),(function(c){return i.call(l,c)})))}:n;return G$e=s}function uCt(){return K$e||(K$e=1,Rre=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Rre}function U7(){return Z$e||(Z$e=1,zre=function(e){return e!=null&&typeof e=="object"}),zre}function h8e(){if(eEe)return X$e;eEe=1;var e=(function(){if(J$e)return Nre;J$e=1;var c=YD(),d=U7();return Nre=function(u){return d(u)&&c(u)=="[object Arguments]"},Nre})(),n=U7(),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 X$e=l}var tEe,nEe,iEe,_re,oEe,Vre,rEe,Hre,aEe,Ure,sEe,Wre={exports:{}};function m8e(){return iEe||(iEe=1,(function(e,n){var i=f3(),r=nEe?tEe:(nEe=1,tEe=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})(Wre,Wre.exports)),Wre.exports}function sz(){if(oEe)return _re;oEe=1;var e=/^(?:0|[1-9]\d*)$/;return _re=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},_re}function g8e(){return rEe?Vre:(rEe=1,Vre=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Vre)}function yee(){return sEe||(sEe=1,Ure=function(e){return function(n){return e(n)}}),Ure}var lEe,cEe,dEe,Qre,uEe,Yre,pEe,Gre,hEe,mEe,gEe,qre,fEe,Kre,xEe,Zre,yEe,Jre,bEe,Xre,wEe,CEe,vEe,AEe,SEe,kEe,jEe,$Ee,EEe,IEe,DEe,eae,TEe,tae,LEe,nae,BEe,iae={exports:{}};function f8e(){return lEe||(lEe=1,(function(e,n){var i=nCt(),r=n&&!n.nodeType&&n,s=r&&e&&!e.nodeType&&e,l=s&&s.exports===r&&i.process,c=(function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(iae,iae.exports)),iae.exports}function pCt(){if(dEe)return cEe;dEe=1;var e=(function(){if(aEe)return Hre;aEe=1;var l=YD(),c=g8e(),d=U7(),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,Hre=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Hre})(),n=yee(),i=f8e(),r=i&&i.isTypedArray,s=r?n(r):e;return cEe=s}function hCt(){if(uEe)return Qre;uEe=1;var e=uCt(),n=h8e(),i=Wu(),r=m8e(),s=sz(),l=pCt(),c=Object.prototype.hasOwnProperty;return Qre=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},Qre}function x8e(){if(pEe)return Yre;pEe=1;var e=Object.prototype;return Yre=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Yre}function mCt(){return hEe||(hEe=1,Gre=function(e,n){return function(i){return e(n(i))}}),Gre}function Osn(){if(fEe)return qre;fEe=1;var e=x8e(),n=(function(){if(gEe)return mEe;gEe=1;var r=mCt()(Object.keys,Object);return mEe=r})(),i=Object.prototype.hasOwnProperty;return qre=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},qre}function GD(){if(xEe)return Kre;xEe=1;var e=iCt(),n=g8e();return Kre=function(i){return i!=null&&n(i.length)&&!e(i)},Kre}function GF(){if(yEe)return Zre;yEe=1;var e=hCt(),n=Osn(),i=GD();return Zre=function(r){return i(r)?e(r):n(r)},Zre}function gCt(){if(bEe)return Jre;bEe=1;var e=cCt(),n=p8e(),i=GF();return Jre=function(r){return e(r,i,n)},Jre}function fCt(){if(jEe)return kEe;jEe=1;var e=Uv()(f3(),"Set");return kEe=e}function bee(){if(DEe)return IEe;DEe=1;var e=(function(){if(vEe)return CEe;vEe=1;var v=Uv()(f3(),"DataView");return CEe=v})(),n=s8e(),i=(function(){if(SEe)return AEe;SEe=1;var v=Uv()(f3(),"Promise");return AEe=v})(),r=fCt(),s=(function(){if(EEe)return $Ee;EEe=1;var v=Uv()(f3(),"WeakMap");return $Ee=v})(),l=YD(),c=oCt(),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",f=c(e),x=c(n),y=c(i),b=c(r),w=c(s),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=g||n&&C(new n)!=d||i&&C(i.resolve())!=u||r&&C(new r)!=p||s&&C(new s)!=h)&&(C=function(v){var S=l(v),k=S=="[object Object]"?v.constructor:void 0,$=k?c(k):"";if($)switch($){case f:return g;case x:return d;case y:return u;case b:return p;case w:return h}return S}),IEe=C}function Fsn(){if(TEe)return eae;TEe=1;var e=c8e(),n=sCt(),i=Msn(),r=(function(){if(wEe)return Xre;wEe=1;var f=gCt(),x=Object.prototype.hasOwnProperty;return Xre=function(y,b,w,C,v,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var R=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var V=y[E=$[I]],z=b[E];if(C)var T=k?C(z,V,E,b,y,S):C(V,z,E,y,b,S);if(!(T===void 0?V===z||v(V,z,w,C,S):T)){R=!1;break}N||(N=E=="constructor")}if(R&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(R=!1)}return S.delete(y),S.delete(b),R},Xre})(),s=bee(),l=Wu(),c=m8e(),d=pCt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return eae=function(f,x,y,b,w,C){var v=l(f),S=l(x),k=v?p:s(f),$=S?p:s(x),j=(k=k==u?h:k)==h,I=($=$==u?h:$)==h,E=k==$;if(E&&c(f)){if(!c(x))return!1;v=!0,j=!1}if(E&&!j)return C||(C=new e),v||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var R=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(R,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},eae}function y8e(){if(LEe)return tae;LEe=1;var e=Fsn(),n=U7();return tae=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))},tae}var Rsn=(function(){if(BEe)return nae;BEe=1;var e=y8e();return nae=function(n,i){return e(n,i)},nae})();const eo=ur(Rsn);var PEe,MEe,oae,OEe,rae,FEe,aae,REe,sae,zEe,lae,NEe;function zsn(){if(FEe)return rae;FEe=1;var e=(function(){if(OEe)return oae;OEe=1;var i=/\s/;return oae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},oae})(),n=/^\s+/;return rae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},rae}function lz(){if(REe)return aae;REe=1;var e=YD(),n=U7();return aae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},aae}function xCt(){if(zEe)return sae;zEe=1;var e=zsn(),n=B3(),i=lz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return sae=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},sae}function yCt(){if(NEe)return lae;NEe=1;var e=B3(),n=(function(){if(MEe)return PEe;MEe=1;var l=f3();return PEe=function(){return l.Date.now()}})(),i=xCt(),r=Math.max,s=Math.min;return lae=function(l,c,d){var u,p,h,g,f,x,y=0,b=!1,w=!1,C=!0;if(typeof l!="function")throw new TypeError("Expected a function");function v(I){var E=u,D=p;return u=p=void 0,y=I,g=l.apply(D,E)}function S(I){var E=I-x;return x===void 0||E>=c||E<0||w&&I-y>=h}function k(){var I=n();if(S(I))return $(I);f=setTimeout(k,(function(E){var D=c-(E-x);return w?s(D,h-(E-y)):D})(I))}function $(I){return f=void 0,C&&u?v(I):(u=p=void 0,g)}function j(){var I=n(),E=S(I);if(u=arguments,p=this,x=I,E){if(f===void 0)return(function(D){return y=D,f=setTimeout(k,c),b?v(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),v(x)}return f===void 0&&(f=setTimeout(k,c)),g}return c=i(c)||0,e(d)&&(b=!!d.leading,h=(w="maxWait"in d)?r(i(d.maxWait)||0,c):h,C="trailing"in d?!!d.trailing:C),j.cancel=function(){f!==void 0&&clearTimeout(f),y=0,u=x=p=f=void 0},j.flush=function(){return f===void 0?g:$(n())},j},lae}const $s=ur(yCt());var _Ee,VEe;function bCt(){return VEe?_Ee:(VEe=1,_Ee=function(){})}const b8e=ur(bCt());var cae,HEe,UEe,WEe,dae,QEe,uae,YEe,pae,GEe,hae,qEe,KEe,ZEe,mae,JEe,gae,XEe,fae,eIe;function wCt(){return HEe||(HEe=1,cae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),cae}function CCt(){if(WEe)return UEe;WEe=1;var e=Uv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return UEe=n}function w8e(){if(QEe)return dae;QEe=1;var e=CCt();return dae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},dae}function C8e(){if(YEe)return uae;YEe=1;var e=w8e(),n=xee(),i=Object.prototype.hasOwnProperty;return uae=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)},uae}function kM(){if(GEe)return pae;GEe=1;var e=C8e(),n=w8e();return pae=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},pae}function Nsn(){if(JEe)return mae;JEe=1;var e=B3(),n=x8e(),i=(ZEe||(ZEe=1,KEe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),KEe),r=Object.prototype.hasOwnProperty;return mae=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},mae}function v5e(){if(XEe)return gae;XEe=1;var e=hCt(),n=Nsn(),i=GD();return gae=function(r){return i(r)?e(r,!0):n(r)},gae}var tIe,nIe,iIe,xae,oIe,rIe,aIe,sIe,lIe,yae,cIe,bae,dIe,wae,uIe,Cae,pIe,vae,hIe,Aae,mIe,Sae,gIe,kae,fIe,jae,xIe,yIe,bIe,$ae,wIe,Eae,CIe,vIe,AIe,Iae,SIe,kIe,jIe,Dae,$Ie,Tae,EIe,Lae={exports:{}};function v8e(){if(aIe)return rIe;aIe=1;var e=mCt()(Object.getPrototypeOf,Object);return rIe=e}function vCt(){if(lIe)return sIe;lIe=1;var e=d8e(),n=v8e(),i=p8e(),r=dCt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return sIe=s}function A8e(){if(dIe)return bae;dIe=1;var e=cCt(),n=vCt(),i=v5e();return bae=function(r){return e(r,i,n)},bae}function Bae(){if(pIe)return Cae;pIe=1;var e=lCt();return Cae=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},Cae}function _sn(){if(xIe)return jae;xIe=1;var e=Bae(),n=(function(){if(hIe)return vae;hIe=1;var l=Bae();return vae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},vae})(),i=(function(){if(mIe)return Aae;mIe=1;var l=/\w*$/;return Aae=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Aae})(),r=(function(){if(gIe)return Sae;gIe=1;var l=HI(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Sae=function(u){return d?Object(d.call(u)):{}},Sae})(),s=(function(){if(fIe)return kae;fIe=1;var l=Bae();return kae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},kae})();return jae=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)}},jae}function Vsn(){if(wIe)return $ae;wIe=1;var e=(function(){if(bIe)return yIe;bIe=1;var r=B3(),s=Object.create,l=(function(){function c(){}return function(d){if(!r(d))return{};if(s)return s(d);c.prototype=d;var u=new c;return c.prototype=void 0,u}})();return yIe=l})(),n=v8e(),i=x8e();return $ae=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},$ae}function Hsn(){if(AIe)return vIe;AIe=1;var e=(function(){if(CIe)return Eae;CIe=1;var l=bee(),c=U7();return Eae=function(d){return c(d)&&l(d)=="[object Map]"},Eae})(),n=yee(),i=f8e(),r=i&&i.isMap,s=r?n(r):e;return vIe=s}function Usn(){if(jIe)return kIe;jIe=1;var e=(function(){if(SIe)return Iae;SIe=1;var l=bee(),c=U7();return Iae=function(d){return c(d)&&l(d)=="[object Set]"},Iae})(),n=yee(),i=f8e(),r=i&&i.isSet,s=r?n(r):e;return kIe=s}function ACt(){if($Ie)return Dae;$Ie=1;var e=c8e(),n=wCt(),i=C8e(),r=(function(){if(qEe)return hae;qEe=1;var L=kM(),R=GF();return hae=function(N,V){return N&&L(V,R(V),N)},hae})(),s=(function(){if(eIe)return fae;eIe=1;var L=kM(),R=v5e();return fae=function(N,V){return N&&L(V,R(V),N)},fae})(),l=(tIe||(tIe=1,(function(L,R){var N=f3(),V=R&&!R.nodeType&&R,z=V&&L&&!L.nodeType&&L,T=z&&z.exports===V?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var _=O.length,W=M?M(_):new O.constructor(_);return O.copy(W),W}})(Lae,Lae.exports)),Lae.exports),c=(iIe||(iIe=1,nIe=function(L,R){var N=-1,V=L.length;for(R||(R=Array(V));++N<V;)R[N]=L[N];return R}),nIe),d=(function(){if(oIe)return xae;oIe=1;var L=kM(),R=p8e();return xae=function(N,V){return L(N,R(N),V)},xae})(),u=(function(){if(cIe)return yae;cIe=1;var L=kM(),R=vCt();return yae=function(N,V){return L(N,R(N),V)},yae})(),p=gCt(),h=A8e(),g=bee(),f=(function(){if(uIe)return wae;uIe=1;var L=Object.prototype.hasOwnProperty;return wae=function(R){var N=R.length,V=new R.constructor(N);return N&&typeof R[0]=="string"&&L.call(R,"index")&&(V.index=R.index,V.input=R.input),V},wae})(),x=_sn(),y=Vsn(),b=Wu(),w=m8e(),C=Hsn(),v=B3(),S=Usn(),k=GF(),$=v5e(),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,Dae=function L(R,N,V,z,T,M){var O,H=1&N,_=2&N,W=4&N;if(V&&(O=T?V(R,z,T,M):V(R)),O!==void 0)return O;if(!v(R))return R;var U=b(R);if(U){if(O=f(R),!H)return c(R,O)}else{var Y=g(R),q=Y==I||Y=="[object GeneratorFunction]";if(w(R))return l(R,H);if(Y==E||Y==j||q&&!T){if(O=_||q?{}:y(R),!H)return _?u(R,s(O,R)):d(R,r(O,R))}else{if(!D[Y])return T?R:{};O=x(R,Y,H)}}M||(M=new e);var K=M.get(R);if(K)return K;M.set(R,O),S(R)?R.forEach((function(ee){O.add(L(ee,N,V,ee,R,M))})):C(R)&&R.forEach((function(ee,te){O.set(te,L(ee,N,V,te,R,M))}));var J=U?void 0:(W?_?h:p:_?$:k)(R);return n(J||R,(function(ee,te){J&&(ee=R[te=ee]),i(O,te,L(ee,N,V,te,R,M))})),O},Dae}var Wsn=(function(){if(EIe)return Tae;EIe=1;var e=ACt();return Tae=function(n){return e(n,5)},Tae})();const es=ur(Wsn);var Pae,IIe,Mae,DIe,TIe,LIe,Oae,BIe,PIe,MIe,Fae,OIe,Rae,FIe,zae,RIe,Nae,zIe,_ae,NIe,Vae,_Ie,Hae,VIe;function S8e(){if(DIe)return Mae;DIe=1;var e=Wu(),n=lz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Mae=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)},Mae}function Qsn(){if(BIe)return Oae;BIe=1;var e=(function(){if(LIe)return TIe;LIe=1;var n=l8e();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,TIe=i})();return Oae=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Oae}function tS(){return OIe||(OIe=1,Fae=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}),Fae}function SCt(){if(FIe)return Rae;FIe=1;var e=HI(),n=tS(),i=Wu(),r=lz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Rae=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},Rae}function kCt(){if(RIe)return zae;RIe=1;var e=SCt();return zae=function(n){return n==null?"":e(n)},zae}function UI(){if(zIe)return Nae;zIe=1;var e=Wu(),n=S8e(),i=(function(){if(MIe)return PIe;MIe=1;var s=Qsn(),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=s((function(u){var p=[];return u.charCodeAt(0)===46&&p.push(""),u.replace(l,(function(h,g,f,x){p.push(f?x.replace(c,"$1"):g||h)})),p}));return PIe=d})(),r=kCt();return Nae=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Nae}function qD(){if(NIe)return _ae;NIe=1;var e=lz();return _ae=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},_ae}function jCt(){if(_Ie)return Vae;_Ie=1;var e=UI(),n=h8e(),i=Wu(),r=sz(),s=g8e(),l=qD();return Vae=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))},Vae}var Ysn=(function(){if(VIe)return Hae;VIe=1;var e=(function(){if(IIe)return Pae;IIe=1;var i=Object.prototype.hasOwnProperty;return Pae=function(r,s){return r!=null&&i.call(r,s)},Pae})(),n=jCt();return Hae=function(i,r){return i!=null&&n(i,r,e)},Hae})();const hn=ur(Ysn);var HIe,UIe,Uae,WIe,Wae,QIe,Qae,YIe,GIe,qIe,KIe,ZIe,Yae,JIe,XIe,eDe,Gae,tDe,nDe,iDe;function KD(){return WIe||(WIe=1,Uae=function(e){return e}),Uae}function $Ct(){return QIe||(QIe=1,Wae=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)}),Wae}function ECt(){if(YIe)return Qae;YIe=1;var e=$Ct(),n=Math.max;return Qae=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)}},Qae}function Gsn(){if(ZIe)return KIe;ZIe=1;var e=(qIe||(qIe=1,GIe=function(s){return function(){return s}}),GIe),n=CCt(),i=KD(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return KIe=r}function ICt(){if(eDe)return XIe;eDe=1;var e=Gsn(),n=(function(){if(JIe)return Yae;JIe=1;var r=Date.now;return Yae=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)}},Yae})(),i=n(e);return XIe=i}function DCt(){if(tDe)return Gae;tDe=1;var e=KD(),n=ECt(),i=ICt();return Gae=function(r,s){return i(n(r,s,e),r+"")},Gae}var qsn=(function(){if(iDe)return nDe;iDe=1;var e=(UIe||(UIe=1,HIe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),HIe),n=DCt()((function(i,r){return e(i,1,r)}));return nDe=n})();const Ni=ur(qsn);var qae,oDe,Kae,rDe;function cz(){if(oDe)return qae;oDe=1;var e=UI(),n=qD();return qae=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},qae}function TCt(){if(rDe)return Kae;rDe=1;var e=cz();return Kae=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Kae}const A3=ur(TCt());var Zae,aDe,Jae,sDe,Xae,lDe,ese,cDe;function LCt(){if(aDe)return Zae;aDe=1;var e=c8e(),n=y8e();return Zae=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},Zae}function BCt(){if(sDe)return Jae;sDe=1;var e=B3();return Jae=function(n){return n==n&&!e(n)},Jae}function PCt(){if(lDe)return Xae;lDe=1;var e=BCt(),n=GF();return Xae=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},Xae}var Ksn=(function(){if(cDe)return ese;cDe=1;var e=LCt(),n=PCt();return ese=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},ese})();const Zsn=ur(Ksn);var dDe,uDe,Jsn=(uDe||(uDe=1,dDe=function(e){return e==null}),dDe);const pDe=ur(Jsn);var hDe,mDe,tse,gDe,Xsn=(function(){if(gDe)return tse;gDe=1;var e=(mDe||(mDe=1,hDe=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}),hDe),n=KD();return tse=function(i){return i&&i.length?e(i,n):0},tse})();const eln=ur(Xsn);var nse,fDe,ise,xDe,ose,yDe,rse,bDe,ase,wDe;function k8e(){return fDe||(fDe=1,nse=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}),nse}function MCt(){if(xDe)return ise;xDe=1;var e=xee(),n=GD(),i=sz(),r=B3();return ise=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)},ise}function wee(){if(bDe)return rse;bDe=1;var e=(function(){if(yDe)return ose;yDe=1;var n=xCt(),i=1/0;return ose=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},ose})();return rse=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},rse}var tln=(function(){if(wDe)return ase;wDe=1;var e=k8e(),n=MCt(),i=wee(),r=Math.ceil,s=Math.max;return ase=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},ase})();const nln=ur(tln);var CDe,vDe,iln=(vDe||(vDe=1,CDe=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}),CDe);const oln=ur(iln);var ADe,SDe,kDe,jDe,sse,$De,lse,EDe,IDe,DDe,cse,TDe,dse,LDe,BDe,PDe;function rln(){if(jDe)return kDe;jDe=1;var e=(SDe||(SDe=1,ADe=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}}),ADe),n=e();return kDe=n}function OCt(){if($De)return sse;$De=1;var e=rln(),n=GF();return sse=function(i,r){return i&&e(i,r,n)},sse}function dz(){if(DDe)return IDe;DDe=1;var e=OCt(),n=(function(){if(EDe)return lse;EDe=1;var r=GD();return lse=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}},lse})(),i=n(e);return IDe=i}function FCt(){if(TDe)return cse;TDe=1;var e=KD();return cse=function(n){return typeof n=="function"?n:e},cse}var aln=(PDe||(PDe=1,BDe=(function(){if(LDe)return dse;LDe=1;var e=wCt(),n=dz(),i=FCt(),r=Wu();return dse=function(s,l){return(r(s)?e:n)(s,i(l))},dse})()),BDe);const sln=ur(aln);var MDe,ODe,use,FDe,pse,RDe,zDe,NDe,hse,_De,mse,VDe,gse,HDe,fse,UDe,xse,WDe,yse,QDe,YDe,GDe,bse,qDe;function KDe(){return FDe||(FDe=1,use=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),use}function lln(){if(_De)return hse;_De=1;var e=(NDe||(NDe=1,zDe=function(i,r){return i!=null&&r in Object(i)}),zDe),n=jCt();return hse=function(i,r){return i!=null&&n(i,r,e)},hse}function j8e(){return HDe||(HDe=1,gse=function(e){return function(n){return n?.[e]}}),gse}function cln(){if(WDe)return xse;WDe=1;var e=j8e(),n=(function(){if(UDe)return fse;UDe=1;var s=cz();return fse=function(l){return function(c){return s(c,l)}},fse})(),i=S8e(),r=qD();return xse=function(s){return i(s)?e(r(s)):n(s)},xse}function _9(){if(QDe)return yse;QDe=1;var e=(function(){if(RDe)return pse;RDe=1;var l=LCt(),c=PCt(),d=KDe();return pse=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)}},pse})(),n=(function(){if(VDe)return mse;VDe=1;var l=y8e(),c=TCt(),d=lln(),u=S8e(),p=BCt(),h=KDe(),g=qD();return mse=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)}},mse})(),i=KD(),r=Wu(),s=cln();return yse=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},yse}var dln=(function(){if(qDe)return bse;qDe=1;var e=(ODe||(ODe=1,MDe=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}),MDe),n=dz(),i=_9(),r=(GDe||(GDe=1,YDe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),YDe),s=Wu();return bse=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},bse})();const A5e=ur(dln);var wse,ZDe,Cse,JDe,vse,XDe,eTe,tTe;function uln(){if(JDe)return Cse;JDe=1;var e=u8e(),n=tS(),i=j8e(),r=uCt(),s=(function(){if(ZDe)return wse;ZDe=1;var c=GD(),d=U7();return wse=function(u){return d(u)&&c(u)},wse})(),l=Math.max;return Cse=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))}))},Cse}var pln=(function(){if(tTe)return eTe;tTe=1;var e=DCt(),n=(function(){if(XDe)return vse;XDe=1;var r=$Ct(),s=tS(),l=uln();return vse=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)}))},vse})(),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 eTe=i})();const hln=ur(pln);var Ase,nTe,mln=(function(){if(nTe)return Ase;nTe=1;var e=OCt(),n=FCt();return Ase=function(i,r){return i&&e(i,n(r))},Ase})();const RCt=ur(mln);var Sse,iTe,kse,oTe;function zCt(){if(iTe)return Sse;iTe=1;var e=dz(),n=GD();return Sse=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},Sse}function NCt(){if(oTe)return kse;oTe=1;var e=tS(),n=_9(),i=zCt(),r=Wu();return kse=function(s,l){return(r(s)?e:i)(s,n(l,3))},kse}const Cee=ur(NCt());var jse,rTe,$se,aTe,Ese,sTe;function gln(){if(aTe)return $se;aTe=1;var e=cz(),n=(function(){if(rTe)return jse;rTe=1;var r=C8e(),s=UI(),l=sz(),c=B3(),d=qD();return jse=function(u,p,h,g){if(!c(u))return u;for(var f=-1,x=(p=s(p,u)).length,y=x-1,b=u;b!=null&&++f<x;){var w=d(p[f]),C=h;if(w==="__proto__"||w==="constructor"||w==="prototype")return u;if(f!=y){var v=b[w];(C=g?g(v,w,b):void 0)===void 0&&(C=c(v)?v:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},jse})(),i=UI();return $se=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},$se}var fln=(function(){if(sTe)return Ese;sTe=1;var e=tS(),n=_9(),i=gln(),r=A8e();return Ese=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])}))},Ese})();const Kq=ur(fln);var Ise,lTe,xln=(function(){if(lTe)return Ise;lTe=1;var e=yCt(),n=B3();return Ise=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})},Ise})();const yln=ur(xln);var Dse,cTe,Tse,dTe,bln=(function(){if(dTe)return Tse;dTe=1;var e=u8e(),n=(function(){if(cTe)return Dse;cTe=1;var s=dz();return Dse=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Dse})(),i=_9(),r=Wu();return Tse=function(s,l){return(r(s)?e:n)(s,i(l,3))},Tse})();const wln=ur(bln);var uTe,pTe,Lse,hTe,Bse,mTe,gTe,fTe;function Cln(){if(mTe)return Bse;mTe=1;var e=(pTe||(pTe=1,uTe=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}),uTe),n=(function(){if(hTe)return Lse;hTe=1;var s=dz();return Lse=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Lse})(),i=_9(),r=Wu();return Bse=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Bse}var vln=(function(){if(fTe)return gTe;fTe=1;var e=w8e(),n=Cln(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return gTe=r})();const Aln=ur(vln);var xTe,yTe,Pse,bTe,Mse,wTe,Ose,CTe,Fse,vTe;function Sln(){if(wTe)return Mse;wTe=1;var e=(function(){if(bTe)return Pse;bTe=1;var n=lz();return Pse=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},Pse})();return Mse=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},Mse}function kln(){if(CTe)return Ose;CTe=1;var e=tS(),n=cz(),i=_9(),r=zCt(),s=(yTe||(yTe=1,xTe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),xTe),l=yee(),c=Sln(),d=KD(),u=Wu();return Ose=function(p,h,g){h=h.length?e(h,(function(y){return u(y)?function(b){return n(b,y.length===1?y[0]:y)}:y})):[d];var f=-1;h=e(h,l(i));var x=r(p,(function(y,b,w){var C=e(h,(function(v){return v(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Ose}var jln=(function(){if(vTe)return Fse;vTe=1;var e=kln(),n=Wu();return Fse=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))},Fse})();const vee=ur(jln);var ATe,STe,Rse,kTe,zse,jTe,Nse,$Te;function $ln(){if(kTe)return Rse;kTe=1;var e=(STe||(STe=1,ATe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),ATe),n=wee();return Rse=function(i){return i?e(n(i),0,4294967295):0},Rse}var Eln=(function(){if($Te)return Nse;$Te=1;var e=(function(){if(jTe)return zse;jTe=1;var i=wee(),r=$ln();return zse=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},zse})(),n=MCt();return Nse=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)):[]},Nse})();const _Ct=ur(Eln);var ETe,ITe,_se,DTe,Vse,TTe,Hse,LTe,Use,BTe;function VCt(){if(TTe)return Vse;TTe=1;var e=UI(),n=(ITe||(ITe=1,ETe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),ETe),i=(function(){if(DTe)return _se;DTe=1;var l=cz(),c=k8e();return _se=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},_se})(),r=qD(),s=Object.prototype.hasOwnProperty;return Vse=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))]},Vse}var Iln=(function(){if(BTe)return Use;BTe=1;var e=_9(),n=(function(){if(LTe)return Hse;LTe=1;var i=VCt(),r=sz(),s=Array.prototype.splice;return Hse=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},Hse})();return Use=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},Use})();const Zq=ur(Iln);var Wse,PTe,Qse,MTe,Yse,OTe,Gse,FTe,qse,RTe,Kse,zTe,NTe,_Te;function Dln(){if(MTe)return Qse;MTe=1;var e=(function(){if(PTe)return Wse;PTe=1;var n=YD(),i=v8e(),r=U7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Wse=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},Wse})();return Qse=function(n){return e(n)?void 0:n},Qse}function HCt(){if(FTe)return Gse;FTe=1;var e=d8e(),n=(function(){if(OTe)return Yse;OTe=1;var i=HI(),r=h8e(),s=Wu(),l=i?i.isConcatSpreadable:void 0;return Yse=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Yse})();return Gse=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},Gse}function UCt(){if(RTe)return qse;RTe=1;var e=HCt();return qse=function(n){return n!=null&&n.length?e(n,1):[]},qse}var Tln=(function(){if(_Te)return NTe;_Te=1;var e=tS(),n=ACt(),i=VCt(),r=UI(),s=kM(),l=Dln(),c=(function(){if(zTe)return Kse;zTe=1;var p=UCt(),h=ECt(),g=ICt();return Kse=function(f){return g(h(f,void 0,p),f+"")},Kse})(),d=A8e(),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 NTe=u})();const $8e=ur(Tln);var Zse,VTe,Lln=(function(){if(VTe)return Zse;VTe=1;var e=HCt(),n=NCt();return Zse=function(i,r){return e(n(i,r),1)},Zse})();const WCt=ur(Lln);var HTe,UTe,WTe,QTe,YTe,GTe,Jse,qTe,Xse,KTe,ZTe,JTe,XTe,eLe,ele,tLe,tle,nLe;function Bln(){if(qTe)return Jse;qTe=1;var e=(UTe||(UTe=1,HTe=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}),HTe),n=(QTe||(QTe=1,WTe=function(r){return r!=r}),WTe),i=(GTe||(GTe=1,YTe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),YTe);return Jse=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},Jse}function QCt(){if(tLe)return ele;tLe=1;var e=rCt(),n=(function(){if(KTe)return Xse;KTe=1;var c=Bln();return Xse=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},Xse})(),i=(JTe||(JTe=1,ZTe=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}),ZTe),r=aCt(),s=(function(){if(eLe)return XTe;eLe=1;var c=fCt(),d=bCt(),u=C5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return XTe=p})(),l=C5e();return ele=function(c,d,u){var p=-1,h=n,g=c.length,f=!0,x=[],y=x;if(u)f=!1,h=i;else if(g>=200){var b=d?null:s(c);if(b)return l(b);f=!1,h=r,y=new e}else y=d?[]:x;e:for(;++p<g;){var w=c[p],C=d?d(w):w;if(w=u||w!==0?w:0,f&&C==C){for(var v=y.length;v--;)if(y[v]===C)continue e;d&&y.push(C),x.push(w)}else h(y,C,u)||(y!==x&&y.push(C),x.push(w))}return x},ele}var Pln=(function(){if(nLe)return tle;nLe=1;var e=_9(),n=QCt();return tle=function(i,r){return i&&i.length?n(i,e(r,2)):[]},tle})();const Mln=ur(Pln),Oln=ur(UCt());var nle,iLe,Fln=(function(){if(iLe)return nle;iLe=1;var e=QCt();return nle=function(n){return n&&n.length?e(n):[]},nle})();const Rln=ur(Fln);var ile,oLe,ole,rLe,rle,aLe,sLe,lLe,ale,cLe,sle,dLe,uLe,pLe,lle,hLe,cle,mLe,dle,gLe,fLe,xLe;function E8e(){if(aLe)return rle;aLe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return rle=function(n){return e.test(n)},rle}function YCt(){if(dLe)return sle;dLe=1;var e=(function(){if(lLe)return sLe;lLe=1;var r=j8e()("length");return sLe=r})(),n=E8e(),i=(function(){if(cLe)return ale;cLe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return ale=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},ale})();return sle=function(r){return n(r)?i(r):e(r)},sle}function zln(){if(mLe)return cle;mLe=1;var e=(pLe||(pLe=1,uLe=function(r){return r.split("")}),uLe),n=E8e(),i=(function(){if(hLe)return lle;hLe=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 lle=function(b){return b.match(y)||[]},lle})();return cle=function(r){return n(r)?i(r):e(r)},cle}function Nln(){if(gLe)return dle;gLe=1;var e=(function(){if(oLe)return ile;oLe=1;var d=Math.floor;return ile=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},ile})(),n=SCt(),i=(function(){if(rLe)return ole;rLe=1;var d=k8e();return ole=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},ole})(),r=E8e(),s=YCt(),l=zln(),c=Math.ceil;return dle=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)},dle}(function(){if(xLe)return fLe;xLe=1;var e=Nln(),n=YCt(),i=wee(),r=kCt();fLe=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 qF=e=>e.type==="checkbox",hE=e=>e instanceof Date,gp=e=>e==null;const GCt=e=>typeof e=="object";var wd=e=>!gp(e)&&!Array.isArray(e)&&GCt(e)&&!hE(e),qCt=e=>wd(e)&&e.target?qF(e.target)?e.target.checked:e.target.value:e,KCt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),I8e=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Th(e){let n;const i=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else{if(I8e&&(e instanceof Blob||e instanceof FileList)||!i&&!wd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return wd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Th(e[r]);else n=e}return n}var WI=e=>Array.isArray(e)?e.filter(Boolean):[],al=e=>e===void 0,Si=(e,n,i)=>{if(!n||!wd(e))return i;const r=WI(n.split(/[,[\].]+?/)).reduce(((s,l)=>gp(s)?s:s[l]),e);return al(r)||r===e?al(e[n])?i:e[n]:r};const ZCt="blur",_ln="focusout",Vln="change",Hln="onBlur",JCt="onChange",XCt="onSubmit",Uln="onTouched",QI="all",Wln="max",Qln="min",Yln="maxLength",Gln="minLength",yLe="pattern",bLe="required",qln="validate",evt=B.createContext(null),At=()=>B.useContext(evt),En=e=>{const{children:n,...i}=e;return B.createElement(evt.Provider,{value:i},n)};var tvt=(e,n,i,r=!0)=>{const s={defaultValues:n._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const c=l;return n._proxyFormState[c]!==QI&&(n._proxyFormState[c]=!r||QI),i&&(i[c]=!0),e[c]}});return s},L0=e=>wd(e)&&!Object.keys(e).length,nvt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return L0(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||QI)))},V0=e=>Array.isArray(e)?e:[e],ivt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||V0(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Aee(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 l5=e=>typeof e=="string",ovt=(e,n,i,r,s)=>l5(e)?(r&&n.watch.add(e),Si(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Si(i,l)))):(r&&(n.watchAll=!0),i);function Qa(e){const n=At(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Aee({disabled:l,subject:i._subjects.values,next:h=>{ivt(d.current,h.name,c)&&p(Th(ovt(d.current,i._names,h.values||i._formValues,!1,s)))}});const[u,p]=B.useState(i._getWatch(r,s));return B.useEffect((()=>i._removeUnmounted())),u}var D8e=e=>/^\w*$/.test(e),rvt=e=>WI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Is(e,n,i){let r=-1;const s=D8e(n)?[n]:rvt(n),l=s.length,c=l-1;for(;++r<l;){const d=s[r];let u=i;if(r!==c){const p=e[d];u=wd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Kln(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=KCt(r._names.array,i),c=Qa({control:r,name:i,defaultValue:Si(r._formValues,i,Si(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=At(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),v=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,Aee({disabled:f,next:k=>C.current&&ivt(S.current,k.name,y)&&nvt(k,v.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,v.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),tvt(b,g,v.current,!1)})({control:r,name:i}),u=B.useRef(r.register(i,{...e.rules,value:c}));return B.useEffect((()=>{const p=r._options.shouldUnregister||s,h=(g,f)=>{const x=Si(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Th(Si(r._options.defaultValues,i));Is(r._defaultValues,i,g),al(Si(r._formValues,i))&&Is(r._formValues,i,g)}return()=>{(l?p&&!r._state.action:p)?r.unregister(i):h(i,!1)}}),[i,r,l,s]),{field:{name:i,value:c,onChange:B.useCallback((p=>u.current.onChange({target:{value:qCt(p),name:i},type:Vln})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Si(r._formValues,i),name:i},type:ZCt})),[i,r]),ref:p=>{const h=Si(r._fields,i);h&&p&&(h._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Si(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Si(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Si(d.touchedFields,i)},error:{enumerable:!0,get:()=>Si(d.errors,i)}})}}const zi=e=>e.render(Kln(e));var Zln=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const Jq=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Si(e,r);if(s){const{_f:l,...c}=s;if(l&&n(l.name)){if(l.ref.focus){l.ref.focus();break}if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else wd(c)&&Jq(c,n)}}};var Dy=()=>{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)}))},ule=(e,n,i={})=>i.shouldFocus||al(i.shouldFocus)?i.focusName||`${e}.${al(i.focusIndex)?n:i.focusIndex}.`:"",S5e=e=>({isOnSubmit:!e||e===XCt,isOnBlur:e===Hln,isOnChange:e===JCt,isOnAll:e===QI,isOnTouch:e===Uln}),k5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),avt=(e,n,i)=>{const r=WI(Si(e,i));return Is(r,"root",n[i]),Is(e,i,r),e},tI=e=>typeof e=="boolean",T8e=e=>e.type==="file",Ob=e=>typeof e=="function",Xq=e=>{if(!I8e)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},hG=e=>l5(e),L8e=e=>e.type==="radio",eK=e=>e instanceof RegExp;const wLe={value:!1,isValid:!1},CLe={value:!0,isValid:!0};var svt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter((i=>i&&i.checked&&!i.disabled)).map((i=>i.value));return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!al(e[0].attributes.value)?al(e[0].value)||e[0].value===""?CLe:{value:e[0].value,isValid:!0}:CLe:wLe}return wLe};const vLe={isValid:!1,value:null};var lvt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),vLe):vLe;function ALe(e,n,i="validate"){if(hG(e)||Array.isArray(e)&&e.every(hG)||tI(e)&&!e)return{type:i,message:hG(e)?e:"",ref:n}}var XS=e=>wd(e)&&!eK(e)?e:{value:e,message:""},j5e=async(e,n,i,r,s)=>{const{ref:l,refs:c,required:d,maxLength:u,minLength:p,min:h,max:g,pattern:f,validate:x,name:y,valueAsNumber:b,mount:w,disabled:C}=e._f,v=Si(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(tI(N)?"":N||""),S.reportValidity())},$={},j=L8e(l),I=qF(l),E=j||I,D=(b||T8e(l))&&al(l.value)&&al(v)||Xq(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=Zln.bind(null,y,i,$),R=(N,V,z,T=Yln,M=Gln)=>{const O=N?V:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(v)||!v.length:d&&(!E&&(D||gp(v))||tI(v)&&!v||I&&!svt(c).isValid||j&&!lvt(c).isValid)){const{value:N,message:V}=hG(d)?{value:!!d,message:d}:XS(d);if(N&&($[y]={type:bLe,message:V,ref:S,...L(bLe,V)},!i))return k(V),$}if(!(D||gp(h)&&gp(g))){let N,V;const z=XS(g),T=XS(h);if(gp(v)||isNaN(v)){const M=l.valueAsDate||new Date(v),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",_=l.type=="week";l5(z.value)&&v&&(N=H?O(v)>O(z.value):_?v>z.value:M>new Date(z.value)),l5(T.value)&&v&&(V=H?O(v)<O(T.value):_?v<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||v&&+v;gp(z.value)||(N=M>z.value),gp(T.value)||(V=M<T.value)}if((N||V)&&(R(!!N,z.message,T.message,Wln,Qln),!i))return k($[y].message),$}if((u||p)&&!D&&(l5(v)||s&&Array.isArray(v))){const N=XS(u),V=XS(p),z=!gp(N.value)&&v.length>+N.value,T=!gp(V.value)&&v.length<+V.value;if((z||T)&&(R(z,N.message,V.message),!i))return k($[y].message),$}if(f&&!D&&l5(v)){const{value:N,message:V}=XS(f);if(eK(N)&&!v.match(N)&&($[y]={type:yLe,message:V,ref:l,...L(yLe,V)},!i))return k(V),$}if(x){if(Ob(x)){const N=ALe(await x(v,n),S);if(N&&($[y]={...N,...L(qln,N.message)},!i))return k(N.message),$}else if(wd(x)){let N={};for(const V in x){if(!L0(N)&&!i)break;const z=ALe(await x[V](v,n),S,V);z&&(N={...z,...L(V,z.message)},k(z.message),i&&($[y]=N))}if(!L0(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function ple(e,n){return[...e,...V0(n)]}var hle=e=>Array.isArray(e)?e.map((()=>{})):void 0;function mle(e,n,i){return[...e.slice(0,n),...V0(i),...e.slice(n)]}var gle=(e,n,i)=>Array.isArray(e)?(al(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function fle(e,n){return[...V0(n),...V0(e)]}var xle=(e,n)=>al(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return WI(l).length?l:[]})(e,V0(n).sort(((i,r)=>i-r))),yle=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Md(e,n){const i=Array.isArray(n)?n:D8e(n)?[n]:rvt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=al(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(wd(r)&&L0(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!al(c[d]))return!1;return!0})(r))&&Md(e,i.slice(0,-1)),e}var SLe=(e,n,i)=>(e[n]=i,e);function bl(e){const n=At(),{control:i=n.control,name:r,keyName:s="id",shouldUnregister:l}=e,[c,d]=B.useState(i._getFieldArray(r)),u=B.useRef(i._getFieldArray(r).map(Dy)),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),Aee({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Si(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Dy))}},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,k5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!S5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Si(x.errors,r),b=Si(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Is(i._formState.errors,r,y):Md(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Si(i._fields,r);x&&x._f&&j5e(x,i._formValues,i._options.criteriaMode===QI,i._options.shouldUseNativeValidation,!0).then((y=>!L0(y)&&i._subjects.state.next({errors:avt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&Jq(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Si(i._formValues,r)&&i._updateFieldArray(r),()=>{(i._options.shouldUnregister||l)&&i.unregister(r)})),[r,i,s,l]),{swap:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);yle(b,x,y),yle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,yle,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);gle(b,x,y),gle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,gle,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=fle(i._getFieldArray(r),b);i._names.focus=ule(r,0,y),u.current=fle(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,fle,{argA:hle(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=ple(i._getFieldArray(r),b);i._names.focus=ule(r,w.length-1,y),u.current=ple(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,ple,{argA:hle(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=xle(i._getFieldArray(r),x);u.current=xle(u.current,x),f(y),d(y),i._updateFieldArray(r,y,xle,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=V0(Th(y)),C=mle(i._getFieldArray(r),x,w);i._names.focus=ule(r,x,b),u.current=mle(u.current,x,w.map(Dy)),f(C),d(C),i._updateFieldArray(r,C,mle,{argA:x,argB:hle(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Th(y),w=SLe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:Dy())),f(w),d([...w]),i._updateFieldArray(r,w,SLe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=V0(Th(x));u.current=y.map(Dy),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]||Dy()})))),[c,s])}}function ble(){let e=[];return{get observers(){return e},next:n=>{for(const i of e)i.next&&i.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter((i=>i!==n))}}),unsubscribe:()=>{e=[]}}}var tK=e=>gp(e)||!GCt(e);function dv(e,n){if(tK(e)||tK(n))return e===n;if(hE(e)&&hE(n))return e.getTime()===n.getTime();const i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;for(const s of i){const l=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const c=n[s];if(hE(l)&&hE(c)||wd(l)&&wd(c)||Array.isArray(l)&&Array.isArray(c)?!dv(l,c):l!==c)return!1}}return!0}var cvt=e=>e.type==="select-multiple",wle=e=>Xq(e)&&e.isConnected,dvt=e=>{for(const n in e)if(Ob(e[n]))return!0;return!1};function nK(e,n={}){const i=Array.isArray(e);if(wd(e)||i)for(const r in e)Array.isArray(e[r])||wd(e[r])&&!dvt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},nK(e[r],n[r])):gp(e[r])||(n[r]=!0);return n}function uvt(e,n,i){const r=Array.isArray(e);if(wd(e)||r)for(const s in e)Array.isArray(e[s])||wd(e[s])&&!dvt(e[s])?al(n)||tK(i[s])?i[s]=Array.isArray(e[s])?nK(e[s],[]):{...nK(e[s])}:uvt(e[s],gp(n)?{}:n[s],i[s]):i[s]=!dv(e[s],n[s]);return i}var Cle=(e,n)=>uvt(e,n,nK(n)),pvt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>al(e)?e:n?e===""?NaN:e&&+e:i&&l5(e)?new Date(e):r?r(e):e;function vle(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return T8e(n)?n.files:L8e(n)?lvt(e.refs).value:cvt(n)?[...n.selectedOptions].map((({value:i})=>i)):qF(n)?svt(e.refs).value:pvt(al(n.value)?e.ref.value:n.value,e)}var eL=e=>al(e)?e:eK(e)?e.source:wd(e)?eK(e.value)?e.value.source:e.value:e;function kLe(e,n,i){const r=Si(e,i);if(r||D8e(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Si(n,l),d=Si(e,l);if(c&&!Array.isArray(c)&&i!==l)return{name:i};if(d&&d.type)return{name:l,error:d};s.pop()}return{name:i}}const Jln={mode:XCt,reValidateMode:JCt,shouldFocusError:!0};function Xln(e={},n){let i,r={...Jln,...e},s={submitCount:0,isDirty:!1,isLoading:Ob(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(wd(r.defaultValues)||wd(r.values))&&Th(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Th(c),u={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:ble(),array:ble(),state:ble()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=S5e(r.mode),b=S5e(r.reValidateMode),w=r.criteriaMode===QI,C=async Y=>{if(g.isValid||Y){const q=r.resolver?L0((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},v=Y=>g.isValidating&&f.state.next({isValidating:Y}),S=(Y,q,K,J)=>{const ee=Si(l,Y);if(ee){const te=Si(d,Y,al(K)?Si(c,Y):K);al(te)||J&&J.defaultChecked||q?Is(d,Y,q?te:vle(ee._f)):L(Y,te),u.mount&&C()}},k=(Y,q,K,J,ee)=>{let te=!1,ne=!1;const se={name:Y};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=se.isDirty=E(),te=ne!==se.isDirty);const oe=dv(Si(c,Y),q);ne=Si(s.dirtyFields,Y),oe?Md(s.dirtyFields,Y):Is(s.dirtyFields,Y,!0),se.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!oe}if(K){const oe=Si(s.touchedFields,Y);oe||(Is(s.touchedFields,Y,K),se.touchedFields=s.touchedFields,te=te||g.touchedFields&&oe!==K)}return te&&ee&&f.state.next(se),te?se:{}},$=(Y,q,K,J)=>{const ee=Si(s.errors,Y),te=g.isValid&&tI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>se=>{clearTimeout(h),h=setTimeout(ne,se)})((()=>((ne,se)=>{Is(s.errors,ne,se),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Is(s.errors,Y,K):Md(s.errors,Y)),(K?!dv(ee,K):ee)||!L0(J)||te){const ne={...J,...te&&tI(q)?{isValid:q}:{},errors:s.errors,name:Y};s={...s,...ne},f.state.next(ne)}v(!1)},j=async Y=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const se=Si(K,ne);se&&Is(te,ne,se._f)}return{criteriaMode:J,names:[...q],fields:te,shouldUseNativeValidation:ee}})(Y||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(Y,q,K={valid:!0})=>{for(const J in Y){const ee=Y[J];if(ee){const{_f:te,...ne}=ee;if(te){const se=p.array.has(te.name),oe=await j5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(oe[te.name]&&(K.valid=!1,q))break;!q&&(Si(oe,te.name)?se?avt(s.errors,oe,te.name):Is(s.errors,te.name,oe[te.name]):Md(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Is(d,Y,q),!dv(T(),c)),D=(Y,q,K)=>ovt(Y,p,{...u.mount?d:al(q)?c:l5(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=Si(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Is(d,Y,pvt(q,te)),ee=Xq(te.ref)&&gp(q)?"":q,cvt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?qF(te.ref)?te.refs.length>1?te.refs.forEach((ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(ee)?!!ee.find((se=>se===ne.value)):ee===ne.value))):te.refs[0]&&(te.refs[0].checked=!!ee):te.refs.forEach((ne=>ne.checked=ne.value===ee)):T8e(te.ref)?te.ref.value="":(te.ref.value=ee,te.ref.type||f.values.next({name:Y,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(Y,ee,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(Y)},R=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=Si(l,te);!p.array.has(Y)&&tK(ee)&&(!ne||ne._f)||hE(ee)?L(te,ee,K):R(te,ee,K)}},N=(Y,q,K={})=>{const J=Si(l,Y),ee=p.array.has(Y),te=Th(q);Is(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:Cle(c,d),isDirty:E(Y,te)})):!J||J._f||gp(te)?L(Y,te,K):R(Y,te,K),k5e(Y,p)&&f.state.next({...s}),f.values.next({name:Y,values:{...d}}),!u.mount&&n()},V=async Y=>{const q=Y.target;let K=q.name,J=!0;const ee=Si(l,K);if(ee){let te,ne;const se=q.type?vle(ee._f):qCt(Y),oe=Y.type===ZCt||Y.type===_ln,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!Si(s.errors,K)&&!ee._f.deps||((ie,ce,de,ge,he)=>!he.isOnAll&&(!de&&he.isOnTouch?!(ce||ie):(de?ge.isOnBlur:he.isOnBlur)?!ie:!(de?ge.isOnChange:he.isOnChange)||ie))(oe,Si(s.touchedFields,K),s.isSubmitted,b,y),me=k5e(K,p,oe);Is(d,K,se),oe?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,se,oe,!1),re=!L0(ue)||me;if(!oe&&f.values.next({name:K,type:Y.type,values:{...d}}),le)return g.isValid&&C(),re&&f.state.next({name:K,...me?{}:ue});if(!oe&&me&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),ce=kLe(s.errors,l,K),de=kLe(ie,l,ce.name||K);te=de.error,K=de.name,ne=L0(ie)}else te=(await j5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(se)||se===Si(d,K,se),J&&(te?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(ee._f.deps&&z(ee._f.deps),$(K,ne,te,ue))}},z=async(Y,q={})=>{let K,J;const ee=V0(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:se}=await j();if(ne)for(const oe of ne){const le=Si(se,oe);le?Is(s.errors,oe,le):Md(s.errors,oe)}else s.errors=se;return se})(al(Y)?Y:ee);K=L0(te),J=Y?!ee.some((ne=>Si(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=Si(l,te);return await I(ne&&ne._f?{[te]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!l5(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&Jq(l,(te=>te&&Si(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return al(Y)?q:l5(Y)?Si(q,Y):Y.map((K=>Si(q,K)))},M=(Y,q)=>({invalid:!!Si((q||s).errors,Y),isDirty:!!Si((q||s).dirtyFields,Y),isTouched:!!Si((q||s).touchedFields,Y),error:Si((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?V0(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Md(l,K),Md(d,K)),!q.keepError&&Md(s.errors,K),!q.keepDirty&&Md(s.dirtyFields,K),!q.keepTouched&&Md(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Md(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=Si(l,Y);const J=tI(q.disabled);return Is(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Is(d,Y,q.disabled?void 0:Si(d,Y,vle(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:eL(q.min),max:eL(q.max),minLength:eL(q.minLength),maxLength:eL(q.maxLength),pattern:eL(q.pattern)}:{},name:Y,onChange:V,onBlur:V,ref:ee=>{if(ee){H(Y,q),K=Si(l,Y);const te=al(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(oe=>L8e(oe)||qF(oe))(te),se=K._f.refs||[];if(ne?se.find((oe=>oe===te)):te===K._f.ref)return;Is(l,Y,{_f:{...K._f,...ne?{refs:[...se.filter(wle),te,...Array.isArray(Si(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=Si(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!KCt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},_=()=>r.shouldFocusError&&Jq(l,(Y=>Y&&Si(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Th(K),ee=Y&&!L0(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)Si(s.dirtyFields,te)?Is(ee,te,Si(d,te)):N(te,Si(ee,te));else{if(I8e&&al(Y))for(const te of p.mount){const ne=Si(l,te);if(ne&&ne._f){const se=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Xq(se)){const oe=se.closest("form");if(oe){oe.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Th(c):{}:J,f.array.next({values:{...ee}}),f.values.next({values:{...ee}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&n(),u.mount=!g.isValid||!!q.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:q.keepSubmitCount?s.submitCount:0,isDirty:q.keepDirty?s.isDirty:!(!q.keepDefaultValues||dv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?Cle(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(Ob(Y)?Y(d):Y,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const Y of p.unMount){const q=Si(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!wle(K))):!wle(q._f.ref))&&O(Y)}p.unMount=new Set},_updateFieldArray:(Y,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(Si(l,Y))){const ne=K(Si(l,Y),J.argA,J.argB);ee&&Is(l,Y,ne)}if(te&&Array.isArray(Si(s.errors,Y))){const ne=K(Si(s.errors,Y),J.argA,J.argB);ee&&Is(s.errors,Y,ne),((se,oe)=>{!WI(Si(se,oe)).length&&Md(se,oe)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(Si(s.touchedFields,Y))){const ne=K(Si(s.touchedFields,Y),J.argA,J.argB);ee&&Is(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=Cle(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Is(d,Y,q)},_getFieldArray:Y=>WI(Si(u.mount?d:c,Y,e.shouldUnregister?Si(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>Ob(r.defaultValues)&&r.defaultValues().then((Y=>{U(Y,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:Y=>{s={...s,...Y}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(Y){u=Y},get _defaultValues(){return c},get _names(){return p},set _names(Y){p=Y},get _formState(){return s},set _formState(Y){s=Y},get _options(){return r},set _options(Y){r={...r,...Y}}},trigger:z,register:H,handleSubmit:(Y,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Th(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:te}=await j();s.errors=ee,J=te}else await I(l);Md(s.errors,"root"),L0(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),_(),setTimeout(_)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:L0(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>Ob(Y)?f.values.subscribe({next:K=>Y(D(void 0,q),K)}):D(Y,q,!0),setValue:N,getValues:T,reset:U,resetField:(Y,q={})=>{Si(l,Y)&&(al(q.defaultValue)?N(Y,Si(c,Y)):(N(Y,q.defaultValue),Is(c,Y,q.defaultValue)),q.keepTouched||Md(s.touchedFields,Y),q.keepDirty||(Md(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,Si(c,Y)):E()),q.keepError||(Md(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&V0(Y).forEach((q=>Md(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(Si(l,Y,{_f:{}})._f||{}).ref;Is(s.errors,Y,{...q,ref:J}),f.state.next({name:Y,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(Y,q={})=>{const K=Si(l,Y),J=K&&K._f;if(J){const ee=J.refs?J.refs[0]:J.ref;ee.focus&&(ee.focus(),q.shouldSelect&&ee.select())}},getFieldState:M}}function kn(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:Ob(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ob(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Xln(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Aee({subject:s._subjects.state,next:l=>{nvt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!dv(e.values,s._defaultValues)?s._reset(e.values,s._options.resetOptions):s._resetDefaultValues()}),[e.values,s]),B.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()})),n.current.formState=tvt(i,s),n.current}let m5;m5=typeof window<"u"?window:typeof self<"u"?self:h5e;let $5e=null,E5e=null;const Ale=m5.clearTimeout,jLe=m5.setTimeout,Sle=m5.cancelAnimationFrame||m5.mozCancelAnimationFrame||m5.webkitCancelAnimationFrame,$Le=m5.requestAnimationFrame||m5.mozRequestAnimationFrame||m5.webkitRequestAnimationFrame;function ecn(e){let n,i,r,s,l,c,d;const u=typeof document<"u"&&document.attachEvent;if(!u){c=function(y){const b=y.__resizeTriggers__,w=b.firstElementChild,C=b.lastElementChild,v=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,v.style.width=w.offsetWidth+1+"px",v.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},l=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},d=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;c(this),this.__resizeRAF__&&$5e(this.__resizeRAF__),this.__resizeRAF__=E5e((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=m5.getComputedStyle(p);f&&f.position==="static"&&(p.style.position="relative"),(function(b){if(!b.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=b.head||b.getElementsByTagName("head")[0],v=b.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=w:v.appendChild(b.createTextNode(w)),C.appendChild(v)}})(g),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const y=g.createElement("div");y.className="contract-trigger",p.__resizeTriggers__.appendChild(x),p.__resizeTriggers__.appendChild(y),p.appendChild(p.__resizeTriggers__),c(p),p.addEventListener("scroll",d,!0),r&&(p.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&c(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(h)}},removeResizeListener:function(p,h){if(u)p.detachEvent("onresize",h);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(h),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",d,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}Sle==null||$Le==null?($5e=Ale,E5e=function(e){return jLe(e,20)}):($5e=function([e,n]){Sle(e),Ale(n)},E5e=function(e){const n=$Le((function(){Ale(i),e()})),i=jLe((function(){Sle(n),e()}),20);return[n,i]});let $o=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=ecn(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:r=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:l=!1,nonce:c,onResize:d,style:u={},tagName:p="div",...h}=this.props,{height:g,width:f}=this.state,x={overflow:"visible"},y={};let b=!1;return r||(g===0&&(b=!0),x.height=0,y.height=g,y.scaledHeight=g),s||(f===0&&(b=!0),x.width=0,y.width=f,y.scaledWidth=f),l&&(b=!1),m.createElement(p,{ref:this._setRef,style:{...x,...u},...h},!b&&e(y))}};function q0(e){return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},q0(e)}function I5e(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 B8e(e,n){if(e){if(typeof e=="string")return I5e(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)?I5e(e,n):void 0}}function ELe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=B8e(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 Ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iK(e,n){return iK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},iK(e,n)}function ka(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&iK(e,n)}function oK(e){return oK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oK(e)}function hvt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(hvt=function(){return!!e})()}function ja(e){var n=hvt();return function(){var i,r=oK(e);if(n){var s=oK(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(q0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ei(l)})(this,i)}}function la(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function mvt(e){var n=(function(i,r){if(q0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(q0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return q0(n)=="symbol"?n:n+""}function ILe(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mvt(r.key),r)}}function ca(e,n,i){return n&&ILe(e.prototype,n),i&&ILe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function wi(e,n,i){return(n=mvt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function DLe(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 fo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?DLe(Object(i),!0).forEach((function(r){wi(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):DLe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Qd(e,n){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,r){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var l,c,d,u,p=[],h=!0,g=!1;try{if(d=(s=s.call(i)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=d.call(s)).done)&&(p.push(l.value),p.length!==r);h=!0);}catch(f){g=!0,c=f}finally{try{if(!h&&s.return!=null&&(u=s.return(),Object(u)!==u))return}finally{if(g)throw c}}return p}})(e,n)||B8e(e,n)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function rK(e,n){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function p3(e,n){if(e==null)return{};var i,r,s=rK(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)i=l[r],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function Ao(){return Ao=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},Ao.apply(null,arguments)}function nI(e){return(function(n){if(Array.isArray(n))return I5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||B8e(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -10498,7 +10498,7 @@ To reactivate your account, please settle the outstanding balance. Contact suppo
10498
10498
  padding-top: ${e=>Gh.ButtonContainerPaddingTop.valuePx(e.windowSize)};
10499
10499
  `,nhi=a.div``,ihi=a((e=>m.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"}))))`
10500
10500
  transform: scale(1, 0.9);
10501
- `,ohi=a(Zs)``,QUe="application/pdf",eMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],rhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function ahi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function shi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===QUe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([bd((()=>import("./pdf-lib-C9IVGH9O.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),bd((()=>import("./pdf-CglQcGFZ.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await ahi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),S=v.scale(1);f.addPage([S.width,S.height]).drawImage(v,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:QUe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(eMt.includes(s.type)===!1)return s;const c=await Au(s,rhi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const lhi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Q("input-file-element-mobile",i),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),Fz=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=Lwe($Tt),[c]=Jr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Ps,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},kCe=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));Xwt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${Jwt}/pdf.worker.mjs`;const{common:YUe}=ae.getLocalizedStrings(),GUe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",qUe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},KUe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,chi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function ZUe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function mR(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=fe(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(qUe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(qUe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=KUe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,R)=>{const N=L.getBoundingClientRect(),V=R!=null?R.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>V.top&&N.top<V.bottom&&N.right>V.left&&N.left<V.right})(D,E))return;chi(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(JUe,{children:j.flatMap(((I,E)=>{const D=ZUe(I.polygon,I.pageWidth,I.pageHeight),L=GUe(I,e.selectedStatementTransactionId,d);return t.jsx(XUe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(Bp,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Jv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(dhi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(uhi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(phi,{children:[t.jsx(hhi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(mhi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(Ue,{enterDelay:600,display:"flex",title:YUe.texts.replace,placement:"top-end",children:t.jsx(ghi,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(xhi,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(Ue,{enterDelay:600,display:"flex",title:YUe.delete,placement:"top",children:t.jsx(fhi,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(vhi,{children:t.jsxs(Ahi,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(Shi,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(JUe,{children:$.flatMap(((j,I)=>{const E=ZUe(j.polygon,j.pageWidth,j.pageHeight),D=GUe(j,e.selectedStatementTransactionId,d);return t.jsx(XUe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs(b5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(whi,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(si,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(yhi,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Chi,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(w5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?KUe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(bhi,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const dhi=a.div`
10501
+ `,ohi=a(Zs)``,QUe="application/pdf",eMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],rhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function ahi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function shi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===QUe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([bd((()=>import("./pdf-lib-akqQI5pH.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),bd((()=>import("./pdf-nelcWlbV.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await ahi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),S=v.scale(1);f.addPage([S.width,S.height]).drawImage(v,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:QUe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(eMt.includes(s.type)===!1)return s;const c=await Au(s,rhi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const lhi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Q("input-file-element-mobile",i),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),Fz=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=Lwe($Tt),[c]=Jr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Ps,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},kCe=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));Xwt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${Jwt}/pdf.worker.mjs`;const{common:YUe}=ae.getLocalizedStrings(),GUe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",qUe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},KUe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,chi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function ZUe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function mR(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=fe(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(qUe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(qUe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=KUe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,R)=>{const N=L.getBoundingClientRect(),V=R!=null?R.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>V.top&&N.top<V.bottom&&N.right>V.left&&N.left<V.right})(D,E))return;chi(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(JUe,{children:j.flatMap(((I,E)=>{const D=ZUe(I.polygon,I.pageWidth,I.pageHeight),L=GUe(I,e.selectedStatementTransactionId,d);return t.jsx(XUe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(Bp,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Jv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(dhi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(uhi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(phi,{children:[t.jsx(hhi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(mhi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(Ue,{enterDelay:600,display:"flex",title:YUe.texts.replace,placement:"top-end",children:t.jsx(ghi,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(xhi,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(Ue,{enterDelay:600,display:"flex",title:YUe.delete,placement:"top",children:t.jsx(fhi,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(vhi,{children:t.jsxs(Ahi,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(Shi,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(JUe,{children:$.flatMap(((j,I)=>{const E=ZUe(j.polygon,j.pageWidth,j.pageHeight),D=GUe(j,e.selectedStatementTransactionId,d);return t.jsx(XUe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs(b5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(whi,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(si,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(yhi,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Chi,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(w5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?KUe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(bhi,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const dhi=a.div`
10502
10502
  max-height: ${e=>e.maxHeight===!0?"650px":"auto"};
10503
10503
  display: flex;
10504
10504
  flex-direction: column;
@@ -23823,7 +23823,7 @@ to {
23823
23823
  ${({isMenuVisible:e})=>e===!1?Ee`
23824
23824
  display: none;
23825
23825
  `:null};
23826
- `,vve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),CKe=m.lazy((()=>bd((()=>import("./index-B68exopT.js")),__vite__mapDeps([3,0,1,2]))));function Ave({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=fe(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?Aa.createPortal(t.jsx(OVi,{windowSize:b,role:"presentation",children:t.jsx(si,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(FVi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(RVi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(MVi,{src:h,alt:"Video thumbnail"}),t.jsx(BVi,{onClick:()=>{C(!0),y?.()},children:t.jsx(PVi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(CKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(CKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:v})})}const LVi=ui`
23826
+ `,vve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),CKe=m.lazy((()=>bd((()=>import("./index-CM1JigJN.js")),__vite__mapDeps([3,0,1,2]))));function Ave({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=fe(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?Aa.createPortal(t.jsx(OVi,{windowSize:b,role:"presentation",children:t.jsx(si,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(FVi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(RVi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(MVi,{src:h,alt:"Video thumbnail"}),t.jsx(BVi,{onClick:()=>{C(!0),y?.()},children:t.jsx(PVi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(CKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(CKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:v})})}const LVi=ui`
23827
23827
  0% {
23828
23828
  transform: rotate(0deg);
23829
23829
  }
@@ -86429,7 +86429,7 @@ ${dM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
86429
86429
  color: ${P.tagWarningColorLight};
86430
86430
  `,Ers=a(wt)`
86431
86431
  color: ${P.tagWarningColorLight};
86432
- `,{expenseAutomation:{accountRecon:{statementProcessing:A0}},common:MY}=ae.getLocalizedStrings(),Tx="statement-processing-page";function Irs(){const[e]=Jr("AiStar");return t.jsx(vg,{$slotSize:o.sp4,children:e!=null?t.jsx(nT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Frs,{})})}function Drs({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=A0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{v(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[R,N]=m.useState(i!=null),[V,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),_=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(itn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await bd((()=>import("./pdf-CglQcGFZ.js").then((ge=>ge.i))),__vite__mapDeps([0,1,2])).then((ge=>ge.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{re||(L(ie),N(!0))})),()=>{re=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!R||V!=null||z((function(re){return re==null||re<=0?125:re<=2?65:re<=4?120:re<=8?160:re<=12?190:200})(D))}),[R,V,D]);const U=V??125,Y=m9e(h),q=1e3*U,K=Math.floor(q/Math.max(Y,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const ce=(function(de,ge,he){const ye=m9e(he);return ge*(Math.max(0,Math.min(de,he)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*ce,H.current=!0}const re=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};re();const ie=setInterval(re,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=V!=null?Math.max(0,V-T):0,ee=V!=null?(function(re,ie,ce){return ie?null:re<=0?{label:ce.takingLongerThanExpected,showClock:!1}:re<60?{label:ce.timeRemainingSeconds(re),showClock:!0}:{label:ce.timeRemainingMinutes(Math.ceil(re/60)),showClock:!0}})(J,b>=h,A0):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const re=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(re)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const re=setTimeout(u,1e3);return()=>clearTimeout(re)}),[b,f,u,h]);const ne=f===!0&&b>=g,se=m.useCallback((()=>{const re=O.current??Date.now();d({completedSteps:b,startedAtMs:re,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const re=requestAnimationFrame((()=>{const ie=_.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(re)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const re=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(re);const ie=(b+1)/h*100,ce=te?300:K,de=performance.now();let ge=0;const he=ye=>{const Ae=Math.min((ye-de)/ce,1);I(re+(ie-re)*Ae),Ae<1&&(ge=requestAnimationFrame(he))};return ge=requestAnimationFrame(he),()=>cancelAnimationFrame(ge)}),[b,s,f,g,te,K,h]);const oe=Math.min(100,Math.round(j)),le=b>=h?h-1:Math.min(b,A0.stepSubtitles.length-1),me=r?.accounts.length??0,ue=ne===!0&&me>0?r?.accountType==="bank"?A0.accountMapping.headerSubtitleAccounts(me):A0.accountMapping.headerSubtitle(me):A0.stepSubtitles[le];return t.jsxs(t.Fragment,{children:[t.jsxs(Trs,{ref:_,"data-testid":Q(Tx,"container"),children:[t.jsxs(Brs,{"data-testid":Q(Tx,"header"),children:[t.jsxs(Prs,{children:[t.jsxs(Mrs,{children:[t.jsxs(Ors,{children:[t.jsx(Irs,{}),t.jsx(Rrs,{children:A0.headerTitle})]}),ne===!0?t.jsxs(S6t,{"data-testid":Q(Tx,"action-needed"),children:[t.jsx(Vrs,{}),t.jsx(Hrs,{children:A0.actionNeeded})]}):ee!=null?t.jsxs(S6t,{"data-testid":Q(Tx,"time-remaining"),children:[ee.showClock?t.jsx(Nrs,{}):null,t.jsx(_rs,{children:ee.label})]}):null]}),t.jsx(zrs,{children:ue})]}),t.jsxs(Urs,{children:[t.jsxs(Wrs,{children:[t.jsx(Qrs,{children:A0.stepProgressLabel(b,h)}),t.jsx(Yrs,{children:`${oe}%`})]}),t.jsx(Grs,{children:t.jsx(qrs,{style:{width:`${j}%`}})})]})]}),t.jsx(Lrs,{"data-testid":Q(Tx,"steps"),children:A0.steps.map(((re,ie)=>{const ce=ie+1,de=ie===A0.steps.length-1,ge=ne===!0&&y!==!0&&de===!0,he=f===!0&&y===!0&&de===!0&&b>=g,ye=ge!==!0&&he!==!0&&ce<=b,Ae=he===!0||ge!==!0&&ce===b+1;return t.jsxs(Krs,{"data-testid":Q(Tx,`step-${ce}`),children:[t.jsxs(Zrs,{children:[t.jsx(Xrs,{$isDone:ye,$isInProgress:Ae,children:ce}),de?null:t.jsx(Jrs,{$isDone:ye})]}),t.jsx(aas,{children:re}),t.jsx(sas,{children:ge===!0?t.jsx(ias,{"data-testid":Q(Tx,"action-required"),children:t.jsx(oas,{children:MY.texts.actionRequired})}):ye?t.jsx(eas,{}):Ae?t.jsxs(tas,{children:[t.jsx(ras,{}),t.jsx(nas,{children:MY.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},ce)}))}),ne===!0&&r!=null?t.jsx(ars,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(qn,{formId:Tx,showCancel:!0,cancelBtn:{label:A0.continueInBackground,onClick:se,style:{width:"195px"}},primaryBtn:{label:MY.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:Tx,showCancel:!0,cancelBtn:{label:MY.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:A0.continueInBackground,onClick:se,variant:"secondary",style:{width:"195px"}}})]})}const Trs=a.div`
86432
+ `,{expenseAutomation:{accountRecon:{statementProcessing:A0}},common:MY}=ae.getLocalizedStrings(),Tx="statement-processing-page";function Irs(){const[e]=Jr("AiStar");return t.jsx(vg,{$slotSize:o.sp4,children:e!=null?t.jsx(nT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Frs,{})})}function Drs({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=A0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{v(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[R,N]=m.useState(i!=null),[V,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),_=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(itn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await bd((()=>import("./pdf-nelcWlbV.js").then((ge=>ge.i))),__vite__mapDeps([0,1,2])).then((ge=>ge.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{re||(L(ie),N(!0))})),()=>{re=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!R||V!=null||z((function(re){return re==null||re<=0?125:re<=2?65:re<=4?120:re<=8?160:re<=12?190:200})(D))}),[R,V,D]);const U=V??125,Y=m9e(h),q=1e3*U,K=Math.floor(q/Math.max(Y,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const ce=(function(de,ge,he){const ye=m9e(he);return ge*(Math.max(0,Math.min(de,he)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*ce,H.current=!0}const re=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};re();const ie=setInterval(re,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=V!=null?Math.max(0,V-T):0,ee=V!=null?(function(re,ie,ce){return ie?null:re<=0?{label:ce.takingLongerThanExpected,showClock:!1}:re<60?{label:ce.timeRemainingSeconds(re),showClock:!0}:{label:ce.timeRemainingMinutes(Math.ceil(re/60)),showClock:!0}})(J,b>=h,A0):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const re=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(re)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const re=setTimeout(u,1e3);return()=>clearTimeout(re)}),[b,f,u,h]);const ne=f===!0&&b>=g,se=m.useCallback((()=>{const re=O.current??Date.now();d({completedSteps:b,startedAtMs:re,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const re=requestAnimationFrame((()=>{const ie=_.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(re)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const re=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(re);const ie=(b+1)/h*100,ce=te?300:K,de=performance.now();let ge=0;const he=ye=>{const Ae=Math.min((ye-de)/ce,1);I(re+(ie-re)*Ae),Ae<1&&(ge=requestAnimationFrame(he))};return ge=requestAnimationFrame(he),()=>cancelAnimationFrame(ge)}),[b,s,f,g,te,K,h]);const oe=Math.min(100,Math.round(j)),le=b>=h?h-1:Math.min(b,A0.stepSubtitles.length-1),me=r?.accounts.length??0,ue=ne===!0&&me>0?r?.accountType==="bank"?A0.accountMapping.headerSubtitleAccounts(me):A0.accountMapping.headerSubtitle(me):A0.stepSubtitles[le];return t.jsxs(t.Fragment,{children:[t.jsxs(Trs,{ref:_,"data-testid":Q(Tx,"container"),children:[t.jsxs(Brs,{"data-testid":Q(Tx,"header"),children:[t.jsxs(Prs,{children:[t.jsxs(Mrs,{children:[t.jsxs(Ors,{children:[t.jsx(Irs,{}),t.jsx(Rrs,{children:A0.headerTitle})]}),ne===!0?t.jsxs(S6t,{"data-testid":Q(Tx,"action-needed"),children:[t.jsx(Vrs,{}),t.jsx(Hrs,{children:A0.actionNeeded})]}):ee!=null?t.jsxs(S6t,{"data-testid":Q(Tx,"time-remaining"),children:[ee.showClock?t.jsx(Nrs,{}):null,t.jsx(_rs,{children:ee.label})]}):null]}),t.jsx(zrs,{children:ue})]}),t.jsxs(Urs,{children:[t.jsxs(Wrs,{children:[t.jsx(Qrs,{children:A0.stepProgressLabel(b,h)}),t.jsx(Yrs,{children:`${oe}%`})]}),t.jsx(Grs,{children:t.jsx(qrs,{style:{width:`${j}%`}})})]})]}),t.jsx(Lrs,{"data-testid":Q(Tx,"steps"),children:A0.steps.map(((re,ie)=>{const ce=ie+1,de=ie===A0.steps.length-1,ge=ne===!0&&y!==!0&&de===!0,he=f===!0&&y===!0&&de===!0&&b>=g,ye=ge!==!0&&he!==!0&&ce<=b,Ae=he===!0||ge!==!0&&ce===b+1;return t.jsxs(Krs,{"data-testid":Q(Tx,`step-${ce}`),children:[t.jsxs(Zrs,{children:[t.jsx(Xrs,{$isDone:ye,$isInProgress:Ae,children:ce}),de?null:t.jsx(Jrs,{$isDone:ye})]}),t.jsx(aas,{children:re}),t.jsx(sas,{children:ge===!0?t.jsx(ias,{"data-testid":Q(Tx,"action-required"),children:t.jsx(oas,{children:MY.texts.actionRequired})}):ye?t.jsx(eas,{}):Ae?t.jsxs(tas,{children:[t.jsx(ras,{}),t.jsx(nas,{children:MY.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},ce)}))}),ne===!0&&r!=null?t.jsx(ars,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(qn,{formId:Tx,showCancel:!0,cancelBtn:{label:A0.continueInBackground,onClick:se,style:{width:"195px"}},primaryBtn:{label:MY.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:Tx,showCancel:!0,cancelBtn:{label:MY.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:A0.continueInBackground,onClick:se,variant:"secondary",style:{width:"195px"}}})]})}const Trs=a.div`
86433
86433
  flex: 1;
86434
86434
  display: flex;
86435
86435
  flex-direction: column;
@@ -91349,7 +91349,7 @@ ${dM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
91349
91349
  display: flex;
91350
91350
  min-height: 100%;
91351
91351
  flex-direction: column;
91352
- `,d4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Wwt(g).fetchState)),u=Rr((g=>Dp(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Er.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(zan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(dve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(l4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},p8t="init-enter",u4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||p8t);p4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||p8t,c=h4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),p4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),h4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),K8s=(e,n,i)=>{const r=H9e(e),s=aee(e),l=U9e(i,e);return(n||i||s||r||l)&&_9e(e.company)},Unn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Wnn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Qnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Ynn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Unn||Wnn||Qnn||Ynn)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 FI(...e){const n=Fl==="DEV"||Fl==="QA";if(Unn||Wnn||Qnn||Ynn)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 L$=null,AM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function h8t(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const m4s={dashboard:function(e){return[...h8t()]},reports:h8t,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function m8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,m4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function g8t(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(mc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void FI("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);mc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=pee(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){FI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else FI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function g4s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Dg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Tn(),I=C7(j?.loggedInUserRole??[]),E=Rr((V=>Dp(V))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=U9e(D,E),R=H9e(E),N=L===!1&&R===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=m8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(V.length===0)return void mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const T=setTimeout((()=>{g8t(V,r,s).catch((M=>{FI(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{AM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),AM=!1),L$&&clearTimeout(L$),L$=setTimeout((()=>{AM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),AM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((_=>{document.addEventListener(_,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),L$&&(clearTimeout(L$),L$=null),H.forEach((_=>{document.removeEventListener(_,O,!0)})),AM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=m8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),g8t(z,r,s).catch((M=>{FI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{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 V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(mc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||V.active;if(!z)return;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){FI("[Prefetch Provider] Failed to notify service worker of refresh:",V)}})())}),[]),en.jsx(en.Fragment,{children:e})}function f4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Dg(),u=Rr((y=>Dp(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(g4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function x4s(e,n){const i=Mi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const y4s=a0((()=>bd((()=>import("./DefaultTenantHome-GxNyS_7I.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),b4s=a0((()=>bd((()=>import("./AppDrawer-B_sqYgfu.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),f8t=a0((()=>bd((()=>import("./ScreenRoutes-C3N1CK9B.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),w4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-Dbf96wBm.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),C4s=a0((()=>bd((()=>import("./SignInScreen-VNP75F_z.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),v4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-BpOShVw6.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),x8t=a0((()=>bd((()=>import("./NotFoundScreen-azJwEf6u.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),A4s=a0((()=>bd((()=>import("./MagicLinkRoutes-BibsnD1q.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),S4s=a0((()=>bd((()=>import("./PaymentLinkScreen-BSk9RfvR.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),k4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-Q6839g40.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),j4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-CFlvNlLf.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),$4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-CsgeY_a3.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),E4s=a0((()=>bd((()=>import("./SignOutScreen-DqT1J3CH.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),I4s=a0((()=>bd((()=>import("./OAuthConsentScreen-CuXtenPv.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),D4s=()=>{const e=Dg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=x4s("/",n);return en.jsx(N8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function T4s(){const{isOpen:e}=jS(),n=kli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=bke(),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 L4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&rz(s),c=Rr((j=>Nan(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=ynn(),g=Eke(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(_an())}),[u,h]);const S=Dg().pathname.includes("/collect-payment/"),k=en.jsx(B4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(lUe,{children:en.jsx(Qgt,{children:en.jsx(D9e.Provider,{value:w,children:k})})});const $=en.jsxs(D9e.Provider,{value:w,children:[en.jsx(T4s,{}),en.jsxs(O4s,{children:[en.jsx(b4s,{tenantEmailDomain:e}),en.jsx(P4s,{children:k})]})]});return en.jsx(lUe,{children:r.tenantId!=null?en.jsx(cpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):en.jsx(Qgt,{children:$})})},B4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(_5.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}=vke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=bke();return m.useEffect((()=>{h(wnn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(f4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(jin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(A4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(S4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(k4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(x8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(y4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(D4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx($4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(R4s,{children:en.jsxs(Efs,{children:[en.jsxs(z4s,{children:[s!=null?en.jsx(d4s,{}):null,n?en.jsx(f8t,{setTenantEmailDomain:e}):en.jsx(c5e,{children:en.jsx(f8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(rfs,{}),en.jsx(N4s,{isOpen:g,children:en.jsx(e4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(c5e,{children:en.jsx(C4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(c5e,{children:en.jsx(v4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(E4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(w4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(j4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(I4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(x8t,{})})]})})})},P4s=({children:e})=>{const{isOpen:n,width:i}=jS();return en.jsx(F4s,{commentsDrawerWidth:n?i:0,children:e})},M4s=eS("div")`
91352
+ `,d4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Wwt(g).fetchState)),u=Rr((g=>Dp(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Er.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(zan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(dve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(l4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},p8t="init-enter",u4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||p8t);p4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||p8t,c=h4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),p4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),h4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),K8s=(e,n,i)=>{const r=H9e(e),s=aee(e),l=U9e(i,e);return(n||i||s||r||l)&&_9e(e.company)},Unn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Wnn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Qnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Ynn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Unn||Wnn||Qnn||Ynn)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 FI(...e){const n=Fl==="DEV"||Fl==="QA";if(Unn||Wnn||Qnn||Ynn)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 L$=null,AM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function h8t(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const m4s={dashboard:function(e){return[...h8t()]},reports:h8t,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function m8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,m4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function g8t(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(mc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void FI("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);mc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=pee(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){FI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else FI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function g4s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Dg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Tn(),I=C7(j?.loggedInUserRole??[]),E=Rr((V=>Dp(V))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=U9e(D,E),R=H9e(E),N=L===!1&&R===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=m8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(V.length===0)return void mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const T=setTimeout((()=>{g8t(V,r,s).catch((M=>{FI(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{AM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),AM=!1),L$&&clearTimeout(L$),L$=setTimeout((()=>{AM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),AM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((_=>{document.addEventListener(_,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),L$&&(clearTimeout(L$),L$=null),H.forEach((_=>{document.removeEventListener(_,O,!0)})),AM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=m8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),g8t(z,r,s).catch((M=>{FI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{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 V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(mc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||V.active;if(!z)return;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){FI("[Prefetch Provider] Failed to notify service worker of refresh:",V)}})())}),[]),en.jsx(en.Fragment,{children:e})}function f4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Dg(),u=Rr((y=>Dp(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(g4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function x4s(e,n){const i=Mi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const y4s=a0((()=>bd((()=>import("./DefaultTenantHome-C-C4WYhs.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),b4s=a0((()=>bd((()=>import("./AppDrawer-qZ43YOIr.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),f8t=a0((()=>bd((()=>import("./ScreenRoutes-DFdEOGuo.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),w4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-BhKFUrLT.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),C4s=a0((()=>bd((()=>import("./SignInScreen-JQM3c2Lt.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),v4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-CqY4g9UV.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),x8t=a0((()=>bd((()=>import("./NotFoundScreen-DiLi5Nus.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),A4s=a0((()=>bd((()=>import("./MagicLinkRoutes-B9-_HvVj.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),S4s=a0((()=>bd((()=>import("./PaymentLinkScreen-DaigjqWQ.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),k4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-DZnU762L.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),j4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-B1B5iuzx.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),$4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-CUOuvre9.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),E4s=a0((()=>bd((()=>import("./SignOutScreen-BPlDZTUu.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),I4s=a0((()=>bd((()=>import("./OAuthConsentScreen-1c6jchUq.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),D4s=()=>{const e=Dg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=x4s("/",n);return en.jsx(N8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function T4s(){const{isOpen:e}=jS(),n=kli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=bke(),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 L4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&rz(s),c=Rr((j=>Nan(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=ynn(),g=Eke(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(_an())}),[u,h]);const S=Dg().pathname.includes("/collect-payment/"),k=en.jsx(B4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(lUe,{children:en.jsx(Qgt,{children:en.jsx(D9e.Provider,{value:w,children:k})})});const $=en.jsxs(D9e.Provider,{value:w,children:[en.jsx(T4s,{}),en.jsxs(O4s,{children:[en.jsx(b4s,{tenantEmailDomain:e}),en.jsx(P4s,{children:k})]})]});return en.jsx(lUe,{children:r.tenantId!=null?en.jsx(cpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):en.jsx(Qgt,{children:$})})},B4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(_5.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}=vke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=bke();return m.useEffect((()=>{h(wnn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(f4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(jin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(A4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(S4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(k4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(x8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(y4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(D4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx($4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(R4s,{children:en.jsxs(Efs,{children:[en.jsxs(z4s,{children:[s!=null?en.jsx(d4s,{}):null,n?en.jsx(f8t,{setTenantEmailDomain:e}):en.jsx(c5e,{children:en.jsx(f8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(rfs,{}),en.jsx(N4s,{isOpen:g,children:en.jsx(e4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(c5e,{children:en.jsx(C4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(c5e,{children:en.jsx(v4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(E4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(w4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(j4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(I4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(x8t,{})})]})})})},P4s=({children:e})=>{const{isOpen:n,width:i}=jS();return en.jsx(F4s,{commentsDrawerWidth:n?i:0,children:e})},M4s=eS("div")`
91353
91353
  display:flex;
91354
91354
  `,O4s=eS("div")`
91355
91355
  display: flex;
@@ -91471,4 +91471,4 @@ ${dM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
91471
91471
  }
91472
91472
  `,r5s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?en.jsxs(e5s,{style:n,children:[en.jsxs(t5s,{children:[en.jsx(cG,{children:en.jsx(Mm,{width:96,height:20})}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:78,height:16}),en.jsx(Mm,{width:46,height:16})]}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:110,height:16}),en.jsx(Mm,{width:84,height:16})]}),en.jsxs(cG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:84,height:16}),en.jsx(Mm,{width:64,height:16})]})]}),en.jsxs(n5s,{children:[en.jsxs(i5s,{children:[en.jsx(Mm,{width:106,height:27}),en.jsx(Mm,{width:111,height:32})]}),en.jsx(o5s,{children:en.jsx(X4s,{width:96,height:96})})]})]}):null;function a5s({minDisplayTime:e=0}){const{isLoading:n}=vke(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Er.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)i||(r(!0),l.current=Date.now());else if(!n&&i){document.querySelector("#app-shell-loader")?.remove();const c=l.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);s.current=setTimeout((()=>{r(!1),l.current=null}),u)}else r(!1)}}),[n,i,e]),m.useEffect((()=>()=>{s.current&&clearTimeout(s.current)}),[]),!n&&i||!i?null:en.jsx(r5s,{fetchState:"In-Progress"})}const s5s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Er.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},w8t="missing-receipts-batch-completed";let L9e=null,B9e=!1;function J8s(e,n){if(!n)return L9e=null,void(B9e=!1);L9e=e,B9e=!0}const l5s=()=>{const e=Sp(),{useFeatureGate:n}=hs(),{isFeatureEnabled:i}=n(gl.isReconV3Enabled),r=Rr((l=>Qwt(l)?.reconciliation?.accountReconciliationsByAccountID)),s=m.useRef({});m.useEffect((()=>{i===!0&&r!=null&&Object.entries(r).forEach((([l,c])=>{const d=c.statementParseStatus.fetchState,u=s.current[l]??"Not-Started";c.statementProcessingDismissedToBackground!==!0||(function(p){return B9e&&L9e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(_wt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Ois(c)},{variableName:"_transaction_count_",variableValue:String(Fis(c))}]})),s.current[l]=d}))}),[r,e,i])},C8t="reconciliation-status-updated",v8t="statement-status-updated",A8t="combined-statement-group-updated";function c5s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function d5s(e,n,i,r,s,l){const c=i.account_id;if(c==null||c==="")return;const d=i.new_statement_data_status?.code;if(d==="deleting"||(e(Ywt(n,c,!0,!0)),r!==!0))return;const u=i.statement_upload_id,p=u!=null&&u!=="",h=d==="parsed_awaiting_mapping"&&s===!0&&p===!0,g=d==="processed"&&p===!0&&(s!==!0||(function(f,x,y){return f!=null&&Object.values(f.accountReconciliationsByAccountID).some((b=>{const w=b.confirmedCombinedStatementUploads;if((w?.length??0)===0)return!1;const C=y!=null&&y!==""&&w?.some((S=>S.statementUploadId===y))===!0,v=w?.some((S=>S.accountId===x))===!0;return C===!0||v===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(Qan({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Gwt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function u5s(e,n,i,r,s,l){if(r!==!0||s!==!0)return;const c=i.group_status;if(c!=="processed"&&c!=="processing_failed")return;const d=(function(u,p){const h=p.combined_statement_group_id?.trim();if(u==null||h==null||h==="")return;const g=p.statement_upload_id?.trim()??"",f=Object.entries(u.accountReconciliationsByAccountID),x=(y,b)=>{const w=(function(C,v){return v!==""?v:C.confirmedCombinedStatementUploads?.find((S=>S.isCombinedStatementAnchor===!0))?.statementUploadId??C.confirmedCombinedStatementUploads?.[0]?.statementUploadId??C.accountReconEntity.statementMetaData?.statementUploadId??C.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??""})(b,g);if(w!=="")return{accountId:y,combinedStatementGroupId:h,statementUploadId:w}};for(const[y,b]of f){if(c5s(b)!==h)continue;const w=x(y,b);if(w!=null)return w}for(const[y,b]of f){const w=(b.confirmedCombinedStatementUploads?.length??0)>0,C=b.localData?.statementAccountScope==="multi_account";if(w!==!0&&C!==!0)continue;const v=x(y,b);if(v!=null)return v}})(l,i);d!=null&&(e(Ywt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Yan({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Gwt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function p5s(){let e=b8t();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(F5)}`);const n=Er.getSignedInUser(),i=n!=null?(function(){const l=window.location.pathname.split("/").filter(Boolean)[0],c=["signin","signout"];if(l!=null&&!c.includes(l)){const u=Er.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Er.getActiveTenantForUser()?.tenantId})():void 0,r=Kan(F5,n?.userId,n?.zeniSessionId,i,MI(),g5s);x5e();const s=pee();return s.userId!=null&&_0.identify(s.userId,{tenant_id:s.tenantId}),r})(),qnn=e,x5e().then((()=>{const n=b8t();n!=null&&(Z6.reset(),Z4s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),rin(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
91473
91473
 
91474
- Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const dG=new Gan,S8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:R}=hs(),{configValue:N,isDynamicConfigLoading:V}=R(Rwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return gW;const T=wut(N.users_disabled_for_auto_logout),M=wut(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),_=!H&&M.includes(L);return{heartbeatIntervalMinutes:jge(N.heartbeat_interval_minutes,gW.heartbeatIntervalMinutes),idleTimeoutMinutes:jge(N.idle_timeout_minutes,gW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:jge(N.warning_duration_seconds,gW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(R){try{sessionStorage.setItem(pve,"auto-logout"),sessionStorage.setItem(hve,String(R.idleTimeoutMinutes)),sessionStorage.setItem(mve,String(Date.now())),nF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(nFt(),nF=void 0),s(null),dG.stop(),e(Zan()),e(Jan(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return dG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Xan()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>dG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>esn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(Xke())}),[]);const h=Rr((L=>tsn(L)));(()=>{const L=ZX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(V!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=OI(L,z),M=O=>{R(Wan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(w8t,M),()=>{T.unbind(w8t,M)}}),[L,R,V])})(),(()=>{const L=ZX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Qwt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,_=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||_==null||W==null)return;const Y={month:_,year:W},q=OI(L,T),K=ee=>{d5s(R,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{u5s(R,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(C8t,K),q.bind(v8t,K),q.bind(A8t,J),()=>{q.unbind(C8t,K),q.unbind(v8t,K),q.unbind(A8t,J)}}),[L,R,V,z,T,_,W])})(),l5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>nsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,R)=>{var N;N=R,N?.data!=null&&e(isn(R))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=L0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>K4s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:ain,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Dzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(vzn,{toolkit:D,children:en.jsxs(LRn,{endPoint:{url:fke},children:[en.jsx(Pnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Xke())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(_4s,{...x})]})}),r!=null&&n!=null?en.jsx(F3s,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),dG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},h5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>qan(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=s5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:n8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:nz.statsigBaseUrl})),[n8t,_s.featureClientSecret,nz.statsigBaseUrl]);return n?en.jsx(cHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(S8t,{})}):en.jsx(S8t,{})},m5s=oin((function(){const e=m.useMemo((()=>p5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{x5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),en.jsx(V4s,{children:en.jsx($in,{store:e,children:en.jsx(J4s,{value:n,children:en.jsxs(sfs,{children:[en.jsx(a5s,{}),en.jsx(V7n,{children:en.jsx(Ofs,{children:en.jsxs(wzn,{children:[r?en.jsx(jsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(h5s,{})]})})})]})})})})}));function g5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const f5s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),k8t=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function j8t(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Znn="zeni:env-keys:",JX=`${Znn}${Fl}:5.3.83-dev-1e0cef3b0`,$8t="zeni.ai";function x5s(e){return Jnn(e)}function E8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(x5s)}const d5e="o4504609050525696",y5s={SENTRY_DSN:[`${d5e}.ingest.sentry.io`,`${d5e}.ingest.us.sentry.io`,`${d5e}.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"]},b5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,w5s=["WEB_ENDPOINT"];function Jnn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===$8t||n.hostname.endsWith(`.${$8t}`))}const C5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],v5s=/^[A-Za-z0-9_-]+$/,A5s=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}),S5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),k5s=/^pk_(live|test)_[A-Za-z0-9]+$/,j5s=/^[A-Za-z0-9_.-]+$/,$5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function E5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!E8t(n.apiEndPoints)||!E8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(A5s.some((h=>i[h]==null))||S5s.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(y5s).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=C5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&v5s.test(g)})),u=w5s.every((h=>{const g=l[h];return g==null||(function(f){if(Jnn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&b5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&k5s.test(l.STRIPE_KEY))&&$5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&j5s.test(g)}));return c&&d&&u&&p}function u5e(){try{window.localStorage.removeItem(JX)}catch{}}function I5s(e){try{window.localStorage.setItem(JX,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(Znn)&&r!==JX&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Xnn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Xtn(e,enn+Fl));return E5s(n)?n:null}catch{return null}}function I8t(e){return Xnn(e)!=null&&(I5s(e),!0)}const D8t="zeni-chunk-reload-at",D5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function T8t(e){try{const n=Number(sessionStorage.getItem(D8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(D8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let p5e=!1,L8t=null;const B8t="//js.hs-scripts.com/5991084.js",P8t="hs-script-loader",T5s=Er.getSignedInUser(),L5s=T5s?.zeniSessionId;function B5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";sin({dsn:n,environment:J3s,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[lin(),...i?[cin()]:[],...r?[din({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)}),uin("session-id",L5s),(function(){if(Uq==null)return;const s=Uq;Uq=void 0;try{if(window.sessionStorage.getItem(M8t)!=null)return;window.sessionStorage.setItem(M8t,s)}catch{}pin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.83-dev-1e0cef3b0"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function ein(){$sn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Ein,{children:en.jsx(m5s,{})})})),B5s()}let Uq;function P9e(e){Uq=e}const M8t="zeni:env-keys-rejection-reported";function P5s(){const e=(function(){try{const i=window.localStorage.getItem(JX);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return u5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(u5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Xnn(e);return n==null?(P9e("untrusted-or-unreadable"),u5e(),!1):(nnn(n),ein(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;T8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return D5s.some((r=>i.includes(r)))})(e.reason)&&T8t(e.reason)})),(async function(){try{if(P5s())return void(async function(){const i=await i8t();typeof i=="string"&&i.length>0&&!I8t(i)&&P9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await i8t(),n=Xtn(e,enn+Fl);nnn(JSON.parse(n)),I8t(e)||P9e("network-untrusted-payload"),ein()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):L8t!==null||(L8t=new Promise((e=>{if(p5e)return void e(!0);const n=()=>{p5e?e(!0):(p5e=!0,new Promise(((r,s)=>{if(document.getElementById(P8t))return void r();const l=document.createElement("script");l.id=P8t,l.src=B8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${B8t}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;f5s?(e=k8t,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):j8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):j8t(k8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(kC),n(kC),i(kC),r(kC),s(kC)}));export{fe as $,gl as A,Dke as B,Vfs as C,L0a as D,Wxs as E,q8s as F,ae as G,o as H,a0 as I,bTi as J,LMt as K,wnn as L,XUi as M,Fl as N,Z4s as O,z8s as P,Mi as Q,p7s as R,b8t as S,Sve as T,_xs as U,Tn as V,hs as W,_s as X,h7s as Y,Kn as Z,q5s as _,bke as a,J6s as a$,j6s as a0,h2i as a1,R8s as a2,$6s as a3,E6s as a4,r4s as a5,cve as a6,X4s as a7,$Uo as a8,F as a9,nCo as aA,m7s as aB,r6s as aC,o6s as aD,U5 as aE,uQt as aF,a6s as aG,Z5s as aH,ZX as aI,Ffs as aJ,tbs as aK,nbs as aL,Nxs as aM,M6s as aN,Hys as aO,Qys as aP,IAe as aQ,R6s as aR,F6s as aS,Wys as aT,Uys as aU,zxs as aV,rPt as aW,w8s as aX,ebs as aY,Z6s as aZ,X6s as a_,I6s as aa,f8s as ab,F5 as ac,P as ad,K5s as ae,u6s as af,qxs as ag,l6s as ah,u7s as ai,M8s as aj,f7s as ak,jfs as al,Fnn as am,_8s as an,Ifs as ao,$fs as ap,V8s as aq,i7s as ar,vp as as,fke as at,d8t as au,b9s as av,Lbs as aw,ji as ax,Nys as ay,zys as az,x4s as b,Mys as b$,Oys as b0,i6s as b1,Oi as b2,vzn as b3,c6s as b4,Q6o as b5,g7s as b6,Sji as b7,_Rt as b8,B6s as b9,cxs as bA,dxs as bB,lxs as bC,MI as bD,O6s as bE,nys as bF,oys as bG,iys as bH,X7s as bI,J7s as bJ,rys as bK,D6s as bL,eys as bM,tys as bN,sys as bO,ks as bP,obs as bQ,T6s as bR,gys as bS,hys as bT,I8s as bU,t6s as bV,A8s as bW,bys as bX,yys as bY,Tys as bZ,Dys as b_,L6s as ba,P6s as bb,Qxs as bc,Dn as bd,Sa as be,Pnn as bf,_5 as bg,F8s as bh,Kfs as bi,n7s as bj,o7s as bk,abs as bl,yke as bm,ifs as bn,Vxs as bo,EBi as bp,FTt as bq,x7s as br,Pfs as bs,fys as bt,axs as bu,uxs as bv,bCe as bw,sxs as bx,w9s as by,Vys as bz,s5s as c,Yys as c$,Pys as c0,lys as c1,cys as c2,s6s as c3,d6s as c4,dys as c5,uys as c6,pys as c7,Bys as c8,Lys as c9,d8s as cA,O9s as cB,ut as cC,I9s as cD,Yi as cE,i8s as cF,T9s as cG,M9s as cH,o8s as cI,Y9s as cJ,G9s as cK,q9s as cL,Q9s as cM,K9s as cN,W9s as cO,r5s as cP,gxs as cQ,Fys as cR,Rys as cS,C9s as cT,mys as cU,B8s as cV,S8s as cW,qys as cX,Jys as cY,Kys as cZ,X5s as c_,u8s as ca,c8s as cb,L9s as cc,N9s as cd,B9s as ce,S9s as cf,$9s as cg,r8s as ch,F9s as ci,X9s as cj,e8s as ck,J9s as cl,E9s as cm,P9s as cn,m8s as co,p8s as cp,h8s as cq,a8s as cr,R9s as cs,l8s as ct,s8s as cu,z9s as cv,Z9s as cw,k9s as cx,g8s as cy,D9s as cz,Eke as d,xys as d$,Gys as d0,dve as d1,Xys as d2,n6s as d3,Rds as d4,K1s as d5,M4e as d6,D8s as d7,T8s as d8,L8s as d9,hxs as dA,mxs as dB,jbs as dC,vbs as dD,Cbs as dE,cbs as dF,Abs as dG,ibs as dH,spa as dI,g9s as dJ,y9s as dK,A9s as dL,v9s as dM,x8s as dN,Ois as dO,ixs as dP,v8s as dQ,C8s as dR,J8s as dS,iGi as dT,_ys as dU,kli as dV,jS as dW,yJt as dX,P8s as dY,z3o as dZ,b8s as d_,E8s as da,Yxs as db,CYt as dc,bbs as dd,ybs as de,fbs as df,wbs as dg,xbs as dh,k8s as di,gbs as dj,mbs as dk,kbs as dl,lbs as dm,ubs as dn,pxs as dp,Zys as dq,lr as dr,mUr as ds,dbs as dt,Rnn as du,rbs as dv,hbs as dw,sbs as dx,pbs as dy,Sbs as dz,Z8s as e,p9s as e0,Tbs as e1,Dbs as e2,Ibs as e3,mfs as e4,gfs as e5,pR as e6,Mfs as e7,Hfs as e8,ann as e9,Zfs as ea,_xe as eb,Dtn as ec,Itn as ed,nxs as ee,ufs as ef,hfs as eg,pfs as eh,X3s as ei,lfs as ej,onn as ek,N8s as el,K8s as f,exs as g,Ht as h,U8s as i,_0 as j,G8s as k,Y8s as l,A as m,Q8s as n,asi as o,ND as p,_fs as q,H8s as r,O8s as s,Z6 as t,vke as u,txs as v,Nnn as w,W8s as x,zfs as y,Er as z};
91474
+ Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const dG=new Gan,S8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:R}=hs(),{configValue:N,isDynamicConfigLoading:V}=R(Rwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return gW;const T=wut(N.users_disabled_for_auto_logout),M=wut(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),_=!H&&M.includes(L);return{heartbeatIntervalMinutes:jge(N.heartbeat_interval_minutes,gW.heartbeatIntervalMinutes),idleTimeoutMinutes:jge(N.idle_timeout_minutes,gW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:jge(N.warning_duration_seconds,gW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(R){try{sessionStorage.setItem(pve,"auto-logout"),sessionStorage.setItem(hve,String(R.idleTimeoutMinutes)),sessionStorage.setItem(mve,String(Date.now())),nF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(nFt(),nF=void 0),s(null),dG.stop(),e(Zan()),e(Jan(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return dG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Xan()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>dG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>esn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(Xke())}),[]);const h=Rr((L=>tsn(L)));(()=>{const L=ZX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(V!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=OI(L,z),M=O=>{R(Wan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(w8t,M),()=>{T.unbind(w8t,M)}}),[L,R,V])})(),(()=>{const L=ZX(),R=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Qwt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,_=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||_==null||W==null)return;const Y={month:_,year:W},q=OI(L,T),K=ee=>{d5s(R,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{u5s(R,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(C8t,K),q.bind(v8t,K),q.bind(A8t,J),()=>{q.unbind(C8t,K),q.unbind(v8t,K),q.unbind(A8t,J)}}),[L,R,V,z,T,_,W])})(),l5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>nsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,R)=>{var N;N=R,N?.data!=null&&e(isn(R))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=L0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>K4s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:ain,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Dzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(vzn,{toolkit:D,children:en.jsxs(LRn,{endPoint:{url:fke},children:[en.jsx(Pnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Xke())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(_4s,{...x})]})}),r!=null&&n!=null?en.jsx(F3s,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),dG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},h5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>qan(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=s5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:n8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:nz.statsigBaseUrl})),[n8t,_s.featureClientSecret,nz.statsigBaseUrl]);return n?en.jsx(cHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(S8t,{})}):en.jsx(S8t,{})},m5s=oin((function(){const e=m.useMemo((()=>p5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{x5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),en.jsx(V4s,{children:en.jsx($in,{store:e,children:en.jsx(J4s,{value:n,children:en.jsxs(sfs,{children:[en.jsx(a5s,{}),en.jsx(V7n,{children:en.jsx(Ofs,{children:en.jsxs(wzn,{children:[r?en.jsx(jsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(h5s,{})]})})})]})})})})}));function g5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const f5s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),k8t=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function j8t(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Znn="zeni:env-keys:",JX=`${Znn}${Fl}:5.3.84-dev-d0c5c1602`,$8t="zeni.ai";function x5s(e){return Jnn(e)}function E8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(x5s)}const d5e="o4504609050525696",y5s={SENTRY_DSN:[`${d5e}.ingest.sentry.io`,`${d5e}.ingest.us.sentry.io`,`${d5e}.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"]},b5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,w5s=["WEB_ENDPOINT"];function Jnn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===$8t||n.hostname.endsWith(`.${$8t}`))}const C5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],v5s=/^[A-Za-z0-9_-]+$/,A5s=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}),S5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),k5s=/^pk_(live|test)_[A-Za-z0-9]+$/,j5s=/^[A-Za-z0-9_.-]+$/,$5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function E5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!E8t(n.apiEndPoints)||!E8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(A5s.some((h=>i[h]==null))||S5s.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(y5s).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=C5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&v5s.test(g)})),u=w5s.every((h=>{const g=l[h];return g==null||(function(f){if(Jnn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&b5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&k5s.test(l.STRIPE_KEY))&&$5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&j5s.test(g)}));return c&&d&&u&&p}function u5e(){try{window.localStorage.removeItem(JX)}catch{}}function I5s(e){try{window.localStorage.setItem(JX,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(Znn)&&r!==JX&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Xnn(e){if(e==null||e==="")return null;try{const n=JSON.parse(Xtn(e,enn+Fl));return E5s(n)?n:null}catch{return null}}function I8t(e){return Xnn(e)!=null&&(I5s(e),!0)}const D8t="zeni-chunk-reload-at",D5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function T8t(e){try{const n=Number(sessionStorage.getItem(D8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(D8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let p5e=!1,L8t=null;const B8t="//js.hs-scripts.com/5991084.js",P8t="hs-script-loader",T5s=Er.getSignedInUser(),L5s=T5s?.zeniSessionId;function B5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";sin({dsn:n,environment:J3s,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[lin(),...i?[cin()]:[],...r?[din({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)}),uin("session-id",L5s),(function(){if(Uq==null)return;const s=Uq;Uq=void 0;try{if(window.sessionStorage.getItem(M8t)!=null)return;window.sessionStorage.setItem(M8t,s)}catch{}pin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.84-dev-d0c5c1602"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function ein(){$sn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Ein,{children:en.jsx(m5s,{})})})),B5s()}let Uq;function P9e(e){Uq=e}const M8t="zeni:env-keys-rejection-reported";function P5s(){const e=(function(){try{const i=window.localStorage.getItem(JX);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return u5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(u5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Xnn(e);return n==null?(P9e("untrusted-or-unreadable"),u5e(),!1):(nnn(n),ein(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;T8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return D5s.some((r=>i.includes(r)))})(e.reason)&&T8t(e.reason)})),(async function(){try{if(P5s())return void(async function(){const i=await i8t();typeof i=="string"&&i.length>0&&!I8t(i)&&P9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await i8t(),n=Xtn(e,enn+Fl);nnn(JSON.parse(n)),I8t(e)||P9e("network-untrusted-payload"),ein()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):L8t!==null||(L8t=new Promise((e=>{if(p5e)return void e(!0);const n=()=>{p5e?e(!0):(p5e=!0,new Promise(((r,s)=>{if(document.getElementById(P8t))return void r();const l=document.createElement("script");l.id=P8t,l.src=B8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${B8t}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;f5s?(e=k8t,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):j8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):j8t(k8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(kC),n(kC),i(kC),r(kC),s(kC)}));export{fe as $,gl as A,Dke as B,Vfs as C,L0a as D,Wxs as E,q8s as F,ae as G,o as H,a0 as I,bTi as J,LMt as K,wnn as L,XUi as M,Fl as N,Z4s as O,z8s as P,Mi as Q,p7s as R,b8t as S,Sve as T,_xs as U,Tn as V,hs as W,_s as X,h7s as Y,Kn as Z,q5s as _,bke as a,J6s as a$,j6s as a0,h2i as a1,R8s as a2,$6s as a3,E6s as a4,r4s as a5,cve as a6,X4s as a7,$Uo as a8,F as a9,nCo as aA,m7s as aB,r6s as aC,o6s as aD,U5 as aE,uQt as aF,a6s as aG,Z5s as aH,ZX as aI,Ffs as aJ,tbs as aK,nbs as aL,Nxs as aM,M6s as aN,Hys as aO,Qys as aP,IAe as aQ,R6s as aR,F6s as aS,Wys as aT,Uys as aU,zxs as aV,rPt as aW,w8s as aX,ebs as aY,Z6s as aZ,X6s as a_,I6s as aa,f8s as ab,F5 as ac,P as ad,K5s as ae,u6s as af,qxs as ag,l6s as ah,u7s as ai,M8s as aj,f7s as ak,jfs as al,Fnn as am,_8s as an,Ifs as ao,$fs as ap,V8s as aq,i7s as ar,vp as as,fke as at,d8t as au,b9s as av,Lbs as aw,ji as ax,Nys as ay,zys as az,x4s as b,Mys as b$,Oys as b0,i6s as b1,Oi as b2,vzn as b3,c6s as b4,Q6o as b5,g7s as b6,Sji as b7,_Rt as b8,B6s as b9,cxs as bA,dxs as bB,lxs as bC,MI as bD,O6s as bE,nys as bF,oys as bG,iys as bH,X7s as bI,J7s as bJ,rys as bK,D6s as bL,eys as bM,tys as bN,sys as bO,ks as bP,obs as bQ,T6s as bR,gys as bS,hys as bT,I8s as bU,t6s as bV,A8s as bW,bys as bX,yys as bY,Tys as bZ,Dys as b_,L6s as ba,P6s as bb,Qxs as bc,Dn as bd,Sa as be,Pnn as bf,_5 as bg,F8s as bh,Kfs as bi,n7s as bj,o7s as bk,abs as bl,yke as bm,ifs as bn,Vxs as bo,EBi as bp,FTt as bq,x7s as br,Pfs as bs,fys as bt,axs as bu,uxs as bv,bCe as bw,sxs as bx,w9s as by,Vys as bz,s5s as c,Yys as c$,Pys as c0,lys as c1,cys as c2,s6s as c3,d6s as c4,dys as c5,uys as c6,pys as c7,Bys as c8,Lys as c9,d8s as cA,O9s as cB,ut as cC,I9s as cD,Yi as cE,i8s as cF,T9s as cG,M9s as cH,o8s as cI,Y9s as cJ,G9s as cK,q9s as cL,Q9s as cM,K9s as cN,W9s as cO,r5s as cP,gxs as cQ,Fys as cR,Rys as cS,C9s as cT,mys as cU,B8s as cV,S8s as cW,qys as cX,Jys as cY,Kys as cZ,X5s as c_,u8s as ca,c8s as cb,L9s as cc,N9s as cd,B9s as ce,S9s as cf,$9s as cg,r8s as ch,F9s as ci,X9s as cj,e8s as ck,J9s as cl,E9s as cm,P9s as cn,m8s as co,p8s as cp,h8s as cq,a8s as cr,R9s as cs,l8s as ct,s8s as cu,z9s as cv,Z9s as cw,k9s as cx,g8s as cy,D9s as cz,Eke as d,xys as d$,Gys as d0,dve as d1,Xys as d2,n6s as d3,Rds as d4,K1s as d5,M4e as d6,D8s as d7,T8s as d8,L8s as d9,hxs as dA,mxs as dB,jbs as dC,vbs as dD,Cbs as dE,cbs as dF,Abs as dG,ibs as dH,spa as dI,g9s as dJ,y9s as dK,A9s as dL,v9s as dM,x8s as dN,Ois as dO,ixs as dP,v8s as dQ,C8s as dR,J8s as dS,iGi as dT,_ys as dU,kli as dV,jS as dW,yJt as dX,P8s as dY,z3o as dZ,b8s as d_,E8s as da,Yxs as db,CYt as dc,bbs as dd,ybs as de,fbs as df,wbs as dg,xbs as dh,k8s as di,gbs as dj,mbs as dk,kbs as dl,lbs as dm,ubs as dn,pxs as dp,Zys as dq,lr as dr,mUr as ds,dbs as dt,Rnn as du,rbs as dv,hbs as dw,sbs as dx,pbs as dy,Sbs as dz,Z8s as e,p9s as e0,Tbs as e1,Dbs as e2,Ibs as e3,mfs as e4,gfs as e5,pR as e6,Mfs as e7,Hfs as e8,ann as e9,Zfs as ea,_xe as eb,Dtn as ec,Itn as ed,nxs as ee,ufs as ef,hfs as eg,pfs as eh,X3s as ei,lfs as ej,onn as ek,N8s as el,K8s as f,exs as g,Ht as h,U8s as i,_0 as j,G8s as k,Y8s as l,A as m,Q8s as n,asi as o,ND as p,_fs as q,H8s as r,O8s as s,Z6 as t,vke as u,txs as v,Nnn as w,W8s as x,zfs as y,Er as z};