1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WebAppLayout-vn-muaXq.js","assets/vue-core-DyuT5pY9.js","assets/Select-uGJD_bcq.js","assets/chevron-down-BjdlQ6uN.js","assets/check-DuSiD6QP.js","assets/Select-CE-FhLTG.css","assets/useAppShellRuntime-DRj3lyvZ.js","assets/Dropdown-Cwj-nRGV.js","assets/Dropdown-rQ_-eJxW.css","assets/notification-topics-CWOWGaeH.js","assets/LoadErrorState-rJVYLmRP.js","assets/rotate-cw-DahWzGw1.js","assets/LoadErrorState-CS-N9TpS.css","assets/ErrorMessages-Bb4v_XVS.js","assets/ErrorMessages-ChIIPBx5.css","assets/AcquisitionQuestion-y--Ho_n3.js","assets/Input-ESlHpQcn.js","assets/eye-off-mAsiQKHu.js","assets/Input-CKmHAavb.css","assets/AcquisitionQuestion-Cq8sURVy.css","assets/signals-BkJ1cCUj.js","assets/circle-Dn2ZjNn4.js","assets/message-circle-DHj_aea7.js","assets/notification-topics-utgesE_U.css","assets/MenuItem-D-CDeyL0.js","assets/MenuItem-DrfSgbcJ.css","assets/circle-play-DkyXf1Wf.js","assets/rocket-ljM-cfK_.js","assets/refresh-cw-CiwStX4P.js","assets/list-checks-Dpc1SoFF.js","assets/external-link-HmsDsynf.js","assets/life-buoy-CZt-BTTj.js","assets/helpVideos-CUHl9Zcq.js","assets/Drawer-Clsz-8tn.js","assets/Drawer-VvYMUhN-.css","assets/Tabs-C-Tr-k6D.js","assets/UnreadBadge-CDL5uimw.js","assets/UnreadBadge-ZF_2Ljq1.css","assets/Tabs-CRXPw6kx.css","assets/ConfirmPopup-B5qYg1_l.js","assets/trash-2-Bc-KRuQx.js","assets/ConfirmPopup-D6KIuxv7.css","assets/check-check-Cyt4qqIy.js","assets/EmptyState.vue_vue_type_script_setup_true_lang-C0nBvB04.js","assets/NoDataMessage-Dc9LLQNy.js","assets/NoDataMessage-Cl2FpO_D.css","assets/SegmentedControl-Dv1NM9eR.js","assets/SegmentedControl-G6i41OyE.css","assets/StatusAccent-DzWFErvT.js","assets/StatusAccent-0XYNIW6Q.css","assets/StatusPill-0qhM36iF.js","assets/StatusPill-DvhZPihx.css","assets/TimePicker-BmR09g3R.js","assets/TimePicker-BvxPsxxD.css","assets/user-round-DAHxgtvD.js","assets/ellipsis-vertical-BysxQUm2.js","assets/play-DhUtOSwy.js","assets/receipt-Csesy_32.js","assets/sessionBoundary-nxkBYpVk.js","assets/profilesStatus-CLHWRl3M.js","assets/useAbortable-Bhvp7jWH.js","assets/useAsyncResourceState-FEv7IIT4.js","assets/sectionAttention-CvSHmGGj.js","assets/usePermissions-C5Os4oVT.js","assets/postAuthNavigate-CzjsT-ZQ.js","assets/useAuthEntrance-Di-iTXl3.js","assets/credit-card-Bw7py8jB.js","assets/apiError-aoDaZr77.js","assets/YandexCaptcha-DXoySFj2.js","assets/YandexCaptcha-L7PxnMBU.css","assets/chartColors-Bg7rvGHZ.js","assets/charts-BjJfG0fB.js","assets/Tooltip-CEFnD-tb.js","assets/circle-question-mark-BrFDoRVC.js","assets/Tooltip-CQI7pH_K.css","assets/plus-D3gUcM4G.js","assets/smartphone-BZikeOKp.js","assets/chevron-right-ClYdanW_.js","assets/useAttentionHighlight-ClVzgrF6.js","assets/coins-CmD59wid.js","assets/history-By-oR1ny.js","assets/gift-CIB3C8l2.js","assets/ticket-7M4IhP1H.js","assets/rotate-ccw-B-nty9mP.js","assets/layers-B59b7t13.js","assets/messages-GznqgLjG.js","assets/calls-C5Vj95f8.js","assets/useMessengerApi-yQ1wTi9F.js","assets/requestGeneration-BS8fAcOb.js","assets/hard-drive-9C-1tiD7.js","assets/user-plus-D6_KoMdY.js","assets/link-2-DRCakg91.js","assets/shield-off-CzTzCh5O.js","assets/user-minus-BuMp3gUY.js","assets/package-BaB7xDtW.js","assets/phone-missed-DUKBfhHf.js","assets/battery-charging-DlOpUGUc.js","assets/boardReports-JQFKfYIa.js","assets/reports-B5VtAqpi.js","assets/reportFormat-CAq95tYI.js","assets/useAppShellRuntime-DNQVNOdl.css","assets/useMenu-HYkj-1S7.js","assets/mainMenu-CPy4fOvc.js","assets/activity-B9qcWzF6.js","assets/calculator-CHQHBeh2.js","assets/chart-no-axes-combined-BiMcypF0.js","assets/messages-square-CZ7HRcGw.js","assets/user-search-DQEe0kDJ.js","assets/refresh-ccw-t-q_q7H8.js","assets/mail-CNB74EgG.js","assets/network-xlzcvrnZ.js","assets/SetThemeButton-BbtSbPB3.js","assets/moon-epYvSJuT.js","assets/sun-efbDL79M.js","assets/SetThemeButton-B43y4-NJ.css","assets/avatar-placeholder-MmQ9fg6u.js","assets/openExternalLink-4gnCjS57.js","assets/lightbulb-BvkxJ21w.js","assets/send-NEJXANVL.js","assets/log-out-BCpgNJRF.js","assets/Card-BS8-h7VX.js","assets/Card-BnFBAqBT.css","assets/logo_dark-CFesk_Yt.js","assets/WebAppLayout-CcMOJs8b.css","assets/MainLayout-6VuOU2Io.js","assets/useToast-D5kgw8Fn.js","assets/LongInput-C6j3xxtr.js","assets/LongInput-BWrM7qRI.css","assets/menu-Bobs6Qyw.js","assets/headset-CjMNGWNn.js","assets/chevron-up-B89NDuMR.js","assets/MenuSeparator-DzSBuu_g.js","assets/MenuSeparator-
1Bmg9iVoi.css","assets/installGuides-tJ_bIt_u.js","assets/installGuides-CFwfEdgt.css","assets/cable-CNzB1vn6.js","assets/monitor-DZB8ktS_.js","assets/settings-2-C31YzAKn.js","assets/download-QoTK8cJ3.js","assets/InviteUsers-vmEJySgu.js","assets/Search-fEBLen_4.js","assets/search-BfSYtcEK.js","assets/Search-BB8MwAmr.css","assets/clipboard-B0ZuWCKg.js","assets/InviteUsers-Dcz-j5eO.css","assets/MainLayout-CnkxV8wh.css","assets/MainPage-BPX1aTUi.js","assets/AvitoProfiles-6d0NDRNX.js","assets/useFilters-CAez1jcl.js","assets/Accordion-i381y1VI.js","assets/Accordion-a95i_hhL.css","assets/apiErrors-5QjOq92y.js","assets/circle-check-big-Cl6PcApN.js","assets/Table-DNnq5qXG.js","assets/CopyButton.vue_vue_type_script_setup_true_lang-w208UOQa.js","assets/ProfileAvatar-C_PkanGz.js","assets/ProfileAvatar-CmdQOyz7.css","assets/url-CWxeLruK.js","assets/index-D7G35Jwl.js","assets/Table-1-YdDWFV.css","assets/OpenInAdsPowerButton-JkXR_mhY.js","assets/adspower-BUJoLs05.js","assets/useAdspower-aiE7gtZu.js","assets/OpenInAdsPowerButton-BWgVH6L4.css","assets/AdsPowerSetup-Bi0WkNP0.js","assets/SpaceSelector-B-HI5xEz.js","assets/SpaceSelector-Bq4tpmav.css","assets/AutoSaveStatus-CiyRarG1.js","assets/AutoSaveStatus-BTdeZvj8.css","assets/profilePages-CS4RuggS.js","assets/plural-Du9-2EcG.js","assets/AdsPowerSetup-DeAs0Wy5.css","assets/AvitoConnectModal-kab2Q6HV.js","assets/AvitoConnectModal-DOvt0ing.css","assets/Switch-DRZXaAc_.js","assets/Switch-Bu3nGgfi.css","assets/MAX-DOpL0oMs.js","assets/unlink-BIx5Ja_G.js","assets/users-round-CaA-LEVF.js","assets/AdvanceTopupModal-Bev4Wr3V.js","assets/AdvanceTopupModal-D7kvF9Ss.css","assets/DataGatheringNotice-BKgh5Nhd.js","assets/loader-circle-DRsvzZ1g.js","assets/DataGatheringNotice-D-IirYiH.css","assets/ProfileBusinessSettings-ChjyjYCO.js","assets/ProfileBusinessSettings-DPUXp_7U.css","assets/pencil-D4PLm8yO.js","assets/calendar-CuCgHQEq.js","assets/log-in-r-s3JV9E.js","assets/key-round-Bs07Jn2h.js","assets/phone-call-ChhS0Xyd.js","assets/link-B0dG2TvI.js","assets/useCollapsibleHeader-CK-5PGtz.js","assets/useHidingChrome-DzDYjaE3.js","assets/CollapsibleRow-D9C99mYO.js","assets/CollapsibleRow-Cw6SNSPQ.css","assets/notificationLink-Cc4oAImR.js","assets/useProfileDataGathering-CHnhnEp_.js","assets/useVisiblePolling-DnCV-ez_.js","assets/profileFolders-LxBJP_G3.js","assets/camera-CuFABRPx.js","assets/arrow-right-left-39il-WcB.js","assets/tableColumnFit-NkMf2lTt.js","assets/useSelectionMode-KIPzp69s.js","assets/power-vcxJeg9d.js","assets/AvitoProfiles-9RId39yr.css","assets/Assistant-DIi-gfMj.js","assets/PageToolbar-B93uny5g.js","assets/PageToolbar-DQUm46lQ.css","assets/MainSwitchBar-UAiS5PTN.js","assets/MainSwitchBar-CPbJd2tg.css","assets/ProfileNavigator-DtRvAjj0.js","assets/ProfileNavigator-DZlSjzJ_.css","assets/NoProfilesPlaceholder-BEQvz3LU.js","assets/NoProfilesPlaceholder-6LU6QNEm.css","assets/minus-Dvv6FRku.js","assets/Assistant-2gAboSp1.css","assets/ProfileChecks-CPqHjn80.js","assets/percent-BSjIKlSF.js","assets/megaphone-CzqCM2rG.js","assets/ProfileChecks-CF_yQkeM.css","assets/ReportsPage-BQl1L5qv.js","assets/analyticsContext-CZmXBWRT.js","assets/useProfileQuery-PJnxeFE8.js","assets/MonthNavigator-DIPvU-Jb.js","assets/MonthNavigator-BydglCzF.css","assets/Calendar-9yhl3jui.js","assets/datepicker-_BVViKkX.js","assets/datepicker-CWmBI_q2.css","assets/Calendar-BWsdCQZp.css","assets/useContainerWidth-H1rOVEWS.js","assets/AiIcon.vue_vue_type_script_setup_true_lang-CrowUM77.js","assets/reportPreviewDocument-Dq1027uZ.js","assets/useAiPricing-_5QrfVi9.js","assets/reportSettings-DNFzrKvG.js","assets/idempotency-CRXeX8ld.js","assets/ReportsPage-DcMK6WBf.css","assets/Messages-D7294v9t.js","assets/useFocusTarget-CxscPQvb.js","assets/VoiceWaveform-Cp7PZ-wF.js","assets/whatsapp-BhmmD2EF.js","assets/CustomerCardDrawer-Cot5X_OM.js","assets/TagInput-61j9TxgG.js","assets/TagInput-FkV_jbV1.css","assets/pause-gXZCgDxQ.js","assets/arrow-right-Dtsb6x5a.js","assets/user-85vUIfQY.js","assets/ban-0Szu4Fx2.js","assets/useDateTimeFormat-D1MoROzE.js","assets/CustomerCardDrawer-DnYI7cpG.css","assets/VoiceWaveform-DVT3oFuu.css","assets/avito-Bc8xx6M3.js","assets/map-pin-D1NkvgFi.js","assets/useLongPress-drsNE8kr.js","assets/arrow-left-Th7XDuAc.js","assets/ImageViewerModal-CORj7O3A.js","assets/ImageViewerModal-B1tzlYP7.css","assets/useRelativeTime-Dq4Edywg.js","assets/arrow-down-BSNq6M7q.js","assets/paperclip-BU1iszXM.js","assets/Messages-BsRRqMxB.css","assets/AnalyticsLayout-hCNW63LP.js","assets/AnalyticsLayout-maqotDJs.css","assets/Dashboard-C57zCGOC.js","assets/useBoardNavigation-d84JUwVI.js","assets/DashboardKpiCard-Cdf8295N.js","assets/DashboardKpiCard-BLeqaEVE.css","assets/ServiceLevelTrendPopup-B3adR8fm.js","assets/ServiceLevelTrendPopup-BwdAGX1c.css","assets/thumbs-up-D4uBJfkR.js","assets/arrow-up-Dimvvlsp.js","assets/arrow-left-right-ASx6Prdc.js","assets/arrow-up-right-CyGorvx6.js","assets/Dashboard-Cqmk-Vlr.css","assets/LeadboardAnalytics-DmZPfmsf.js","assets/MetricCard-DEVYiQY6.js","assets/timer-Ch6GIZMO.js","assets/phone-incoming-Bac_b0LX.js","assets/MetricCard-BKsQMiv9.css","assets/useMetricStatus-BAFVT43g.js","assets/useMetricStatus-ie1Fi9dZ.css","assets/LeadboardAnalytics-DK-J1ruP.css","assets/SpendboardPage-C4dMLD3L.js","assets/CompareProfilesToolbar-Cq7hHYVZ.js","assets/CompareProfilesToolbar-CHF0YlD0.css","assets/DevelopmentWarningPopup-MlKo9vPo.js","assets/DevelopmentWarningPopup-BLsWlGKG.css","assets/trophy-Ch0Fr0uG.js","assets/SpendboardPage-R03s5v9m.css","assets/TeamboardPage-CL0daodz.js","assets/TeamboardPage-DNbsT_K3.css","assets/Calculators-CxwKTK6W.js","assets/Calculators-3UTIaJVA.css","assets/History-CuJM-zHr.js","assets/arrow-up-from-line-sdYn8ZSh.js","assets/History-DKksgN9p.css","assets/Contacts-Cifjqy-5.js","assets/Contacts-DeMmpLZt.css","assets/UnderConstruction-Bf6QEOP3.js","assets/Calls-DckkJvQc.js","assets/Calls-ZCxbBLtP.css","assets/ChatAutoReply-DPWUIGe6.js","assets/RuleRow-B-MMTzO3.js","assets/RuleRow-HmK9LhTP.css","assets/useSanitize-C9TCCVlU.js","assets/purify.es-CN9ksZfV.js","assets/toggle-left-DC77XgNL.js","assets/ChatAutoReply-Dj0HN8dN.css","assets/ReviewsAutoReply-C-N1SQYE.js","assets/ReviewsAutoReply-TpjTy5Xg.css","assets/BidManagerCustomerPage-dHqc3GxC.js","assets/save-BXqemMto.js","assets/circle-pause-BZUyz7JA.js","assets/BidManagerCustomerPage-CWtBVyC_.css","assets/Autoload-CCWuE6vF.js","assets/Autoload-z6Qqj7RL.css","assets/Studio-CbowoPs0.js","assets/useImageAttachments-BhWbErr2.js","assets/useImageAttachments-BvQ-83go.css","assets/integrations-DSvKXxwk.js","assets/Studio-QRLK6JNr.css","assets/SupportTickets-hMZNukcg.js","assets/SupportTickets-CE6W-VdX.css","assets/NoAccess-Duu9ur92.js","assets/NoAccess-VQhU79dg.css","assets/AdminLayout-xSGkmLQy.js","assets/store-CxOfBY-n.js","assets/AdminLayout-BzE_EXsP.css","assets/AdminDashboard-Ds31Mfzj.js","assets/mail-x-Cxw3Q_Gz.js","assets/AdminDashboard-BNjahn9-.css","assets/AdminFunnel-DsSCspW0.js","assets/useAdminApi-C_SBGKTP.js","assets/archive-C28VupsF.js","assets/AdminFunnel-CGeFqZeX.css","assets/AdminServices-B5a7LTEh.js","assets/useAdminRealtime-DGqflZDy.js","assets/AdminServices-cV489jos.css","assets/AdminTokens-DQWG-k4t.js","assets/AdminTokens-CpfDmoKC.css","assets/AiPricing-6uxp49Up.js","assets/AiPricing-BoH7uUAa.
1css","assets/AdminUsers-Bt5z02il.js","assets/UserDetailDrawer-CQcQVt7y.js","assets/UserDetailDrawer-Cy1YvHER.css","assets/AdminUsers-PJIIV2IS.css","assets/AdminUserDetail-DRvWUZmR.js","assets/AdminUserDetail-DyHyfQE-.css","assets/AdminAvitoProfiles-CMb0mgFC.js","assets/SpaceDetailDrawer-DhDk3DDy.js","assets/SpaceDetailDrawer-BxI5x_kq.css","assets/AdminAvitoProfiles-DPoBDout.css","assets/AdminBidderFleet-BlHJyqKI.js","assets/AdminBidderFleet-D0A6OHOH.css","assets/AdminSpaces-DhhIQSC_.js","assets/AdminSpaces-OyIJX_G4.css","assets/AdminWallets-DIbfrsCv.js","assets/AdminWallets-C_GMfpW1.css","assets/AdminSubscriptions-B4Ncbt-E.js","assets/AdminSubscriptions-dGyRXmIX.css","assets/AdminPayments-W4SwXjn2.js","assets/AdminPayments-FwZS-71Q.css","assets/AdminPromoCodes-Cmls4w_x.js","assets/AdminPromoCodes-3Nqg1ApP.css","assets/AdminBroadcasts-2EuiaPUu.js","assets/channelLabels-B0Qnyhza.js","assets/AdminBroadcasts-CJxlxAVv.css","assets/AdminBroadcastDetail-Dgr-BuBP.js","assets/AdminBroadcastDetail-VhblcPfC.css","assets/AdminEmails-Blhiz41g.js","assets/AdminEmails-9aVtjexo.css","assets/AdminTickets-rioVi1Xs.js","assets/AdminTickets-j3Qk2w0b.css","assets/AdminTicketDetail-BdVVpNWx.js","assets/AdminTicketDetail-DAjMGdUS.css","assets/AdminHelpVideos-DRWt504c.js","assets/AdminHelpVideos-BLsjnSh8.css","assets/AdminAudit-DIHDSs55.js","assets/AdminAudit-B7S48ihl.css","assets/PublicReportPage-DMcE0xYc.js","assets/PublicReportPage-RJUANo7b.css","assets/OauthPage-DbCed0oj.js","assets/OauthPage-DV4U7Yda.css","assets/BillingPaymentResult-DshDErlW.js","assets/BillingPaymentResult-dO8gQ4Nf.css","assets/AuthLayout-BTAJF4HZ.js","assets/AuthLayout-Dsulu4C_.css","assets/AuthPage-C-PdYHKm.js","assets/YandexIdButton-BDSIrSuf.js","assets/authYandex-C51oGbPG.js","assets/YandexIdButton-ByPmSxIa.css","assets/useAuthEmail-B1CSvWF9.js","assets/validation-BYDbOnq1.js","assets/AuthPage-Dh8cZ2SK.css","assets/SignUp-BzmqYCPe.js","assets/SignupConsents-CKGEd2rM.js","assets/SignupConsents-DzBSdLo2.css","assets/consents-CFP3EqOe.js","assets/useLegalManifests-C1jCM5Lk.js","assets/SignUp-B12iwyt1.css","assets/InstallApp-BlCs4l-n.js","assets/InstallApp-CEiStpoc.css","assets/ConfirmEmail-B_5KkiW1.js","assets/ConfirmEmail-D24FqQYP.css","assets/ResetPassword-psRvYd_-.js","assets/lock-open-CNpYesui.js","assets/ResetPassword-B1Mibq78.css","assets/MagicLink-CGMtbZua.js","assets/MagicLink-sSt805fE.css","assets/YandexCallback-CfCwp6sv.js","assets/YandexCallback-CRKi64yL.css","assets/RegisterComplete-leUu1FRH.js","assets/RegisterComplete-DEs8bYBY.css","assets/SignupConfirm-ZQAhx8Q4.js","assets/SignupConfirm-BARcAOku.css","assets/ResetPasswordConfirm-BecYH7W3.js","assets/ResetPasswordConfirm-3fEfc-7D.css","assets/EmailChangeConfirm-txiWZ3Vc.js","assets/EmailChangeConfirm-7h3h9q6L.css","assets/Onboarding-DrWqPDFX.js","assets/Onboarding-CZqC0OQJ.css","assets/workingRoutes-BXQICzR2.js"])))=>i.map(i=>d[i]); 2var Ml=Object.defineProperty;var Pl=(e,t,n)=>t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>Pl(e,typeof t!="symbol"?t+"":t,n);import{s as at,Y as k,O as Qt,d as B,X as bo,aq as Ce,P as Zt,W as Kn,ag as fs,ah as no,t as Il,y as Dl,E as Un,x as it,r as Ee,ac as ie,U as V,i as re,I as Dt,G as We,o as fe,h as Te,g as Pe,a2 as Hn,f as X,a6 as Me,$ as je,ar as Bl,as as xe,n as tt,b as mn,ai as Nl,Q as sa,T as ia,ae as $l,av as cr,F as qn,aj as js,J as Fl,_ as ps,a4 as Ko,M as Ul,a0 as Hl,q as ql,B as zl,a8 as Vl,k as jl,p as Wl,aa as Gl,e as Kl,j as Xl}from"./vue-core-DyuT5pY9.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const Ye="avibox:",Yl=Ye;let Ir=null;const Jl=new Set([Ye+"dark_theme",Ye+"theme_mode",Ye+"session_id"]),Z={get(e,t){try{const n=localStorage.getItem(Ye+e);return n===null?t:JSON.parse(n)}catch{return t}},set(e,t){try{localStorage.setItem(Ye+e,JSON.stringify(t))}catch{}},remove(e){try{localStorage.removeItem(Ye+e)}catch{}},getRaw(e,t=null){try{const n=localStorage.getItem(Ye+e);return n===null?t:n}catch{return t}},setRaw(e,t){try{localStorage.setItem(Ye+e,t)}catch{}},clearAll(){try{const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n&&n.startsWith(Ye)&&!Jl.has(n)&&e.push(n)}e.forEach(t=>localStorage.removeItem(t))}catch{}},getLegacy(e,t){try{const n=localStorage.getItem(e);if(n===null)return t;try{return JSON.parse(n)}catch{return n}}catch{return t}},removeLegacy(e){try{localStorage.removeItem(e)}catch{}},migrate(e,t){try{if(localStorage.getItem(Ye+t)!==null){this.removeLegacy(e);return}const n=localStorage.getItem(e);if(n===null)return;localStorage.setItem(Ye+t,n),this.removeLegacy(e)}catch{}}},Ql=[["userspace","userspace"],["userspaceName","userspaceName"],["userspaceAvatar","userspaceAvatar"],["avaLink","avaLink"],["user_role","user_role"],["is_admin","is_admin"],["dark_theme","dark_theme"],["settings","settings"],["autoload_filter","autoload_filter"],["template_usage_counts","template_usage_counts"],["hub_messenger_preferences","messenger_preferences"],["hub_template_usage","template_usage"],["analytics:hiddenMetrics","analytics_hidden_metrics"],["analytics:hiddenCharts","analytics_hidden_charts"],["monitoring:hiddenChecks","monitoring_hidden_checks"],["communications-analytics-settings","communications_analytics_settings"],["avibox:dashboard-intro-hidden","intro_dashboard_hidden"],["avibox:leadboard-intro-hidden","intro_leadboard_hidden"],["avibox:chat-autoreply-intro-hidden","intro_chat_autoreply_hidden"],["avibox:reviews-autoreply-intro-hidden","intro_reviews_autoreply_hidden"],["avibox:monitoring-intro-hidden","intro_monitoring_hidden"],["avibox:last-selected-profile","last_selected_profile"],["avibox:notification-sound","notification_sound"]];function Zl(){try{Ir=localStorage.getItem("refresh_token")??localStorage.getItem(Ye+"refresh_token"),localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem(Ye+"access_token"),localStorage.removeItem(Ye+"refresh_token")}catch{Ir=null}}function ec(){const e=Ir;return Ir=null,e}function tc(){Zl();for(const[e,t]of Ql)Z.migrate(e,t)}const nc="modulepreload",rc=function(e){return"/"+e},Ws={}
2,P=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=i(n.map(c=>{if(c=rc(c),c in Ws)return;Ws[c]=!0;const d=c.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":nc,d||(m.as="script"),m.crossOrigin="",m.href=c,l&&m.setAttribute("nonce",l),document.head.appendChild(m),d)return new Promise((g,y)=>{m.addEventListener("load",g),m.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function aa(e,t){return function(){return e.apply(t,arguments)}}const{toString:oc}=Object.prototype,{getPrototypeOf:Bt}=Object,{iterator:Xn,toStringTag:la}=Symbol,zn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ca=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),ua=(e,t,n)=>e===Object.prototype||!n&&t===null,sc=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(ca(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},Vn=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Bt(n);if(ua(n,o,n===e))return!1;if(zn(n,t))return!0;n=o}return!1},ic=(e,t)=>e!=null&&Vn(e,t)?e[t]:void 0,ac=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Bt(e);if(t===null&&sc(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let s=e;for(;s!=null&&o.indexOf(s)===-1;){o.push(s);const i=s===e?t:Bt(s);if(ua(s,i,s===e))break;const a=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(s));for(const l of a)ca(l)||zn(r,l)||(n[l]=e[l],r[l]=!0);s=i}return n},hs=(e=>t=>{const n=oc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>hs(t)===e),ro=e=>t=>typeof t===e,{isArray:Xt}=Array,Yt=ro("undefined");function yn(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&Qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const da=lt("ArrayBuffer");function lc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&da(e.buffer),t}const cc=ro("string"),Qe=ro("function"),fa=ro("number"),gn=e=>e!==null&&typeof e=="object",uc=e=>e===!0||e===!1,Sr=e=>{if(!gn(e))return!1;const t=Bt(e);return(t===null||t===Object.prototype||Bt(t)===null)&&!Vn(e,la)&&!Vn(e,Xn)},dc=e=>{if(!gn(e)||yn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fc=lt("Date"),pc=lt("File"),hc=e=>!!(e&&typeof e.uri<"u"),mc=e=>e&&typeof e.getParts<"u",yc=lt("Blob"),gc=lt("FileList"),vc=lt("Set"),_c=e=>gn(e)&&Qe(e.pipe);function bc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Gs=bc(),Ks=typeof Gs.FormData<"u"?Gs.FormData:void 0,wc=e=>{if(!e)return!1;if(Ks&&e instanceof Ks)return!0;const t=Bt(e);if(!t||t===Object.prototype||!Qe(e.append))return!1;const n=hs(e);return n==="formdata"||n==="object"&&Qe(e.toString)&&e.toString()==="[object FormData]"},Ec=lt("URLSearchParams"),[Sc,kc,Ac,Tc]=["ReadableStream","Request","Response","Headers"].map(lt),Rc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Xt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(yn(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function pa(e,t){if(yn(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ha=e=>!Yt(e)&&e!==zt;function Xo(...e){const{caseless:t,skipUndefined:n}=ha(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&typeof i=="string"&&pa(r,i)||i,l=zn(r,a)?r[a]:void 0;Sr(l)&&Sr(s)?r[a]=Xo(l,s):Sr(s)?r[a]=Xo({},s):Xt(s)?r[a]=s.slice():(!n||!Yt(s))&&(r[a]=s)};for(let s=0,i=e.length;s<i;s++){const a=e[s];if(!a||yn(a)||(Yn(a,o),typeof a!="object"||Xt(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let c=0;c<l.length;c++){const d=l[c];Fc.call(a,d)&&o(a[d],d)}}return r}const xc=(e,t,n,{allOwnKeys:r}={})=>(Yn(t,(o,s)=>{n&&Qe(o)?Object.defineProperty(e,s,{__proto__:null,value:aa(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Lc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oc=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,081 bytes, lines 2-3
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Cc=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Bt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mc=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Pc=e=>{if(!e)return null;if(Xt(e))return e;let t=e.length;if(!fa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ic=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bt(Uint8Array)),Dc=(e,t)=>{const r=(e&&e[Xn]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Bc=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Nc=lt("HTMLFormElement"),$c=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:Fc}=Object.prototype,Uc=lt("RegExp"),ma=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yn(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Hc=e=>{ma(e,(t,n)=>{if(Qe(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qc=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Xt(e)?r(e):r(String(e).split(t)),n},zc=()=>{},Vc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jc(e){return!!(e&&Qe(e.append)&&e[la]==="FormData"&&e[Xn])}const Wc=e=>{const t=new WeakSet,n=r=>{if(gn(r)){if(t.has(r))return;if(yn(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(vc(r)){o=[];for(const s of r){const i=n(s);!Yt(i)&&o.push(i)}}else o=Xt(r)?[]:{},Yn(r,(s,i)=>{const a=n(s);!Yt(a)&&(o[i]=a)});return t.delete(r),o}}return r};return n(e)},Gc=lt("AsyncFunction"),Kc=e=>e&&(gn(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),ya=((e,t)=>e?setImmediate:t?((n,r)=>(zt.addEventListener("message",({source:o,data:s})=>{o===zt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),zt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qe(zt.postMessage)),Xc=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ya,ga=e=>e!=null&&Qe(e[Xn]),Yc=e=>e!=null&&Vn(e,Xn)&&ga(e),f={isArray:Xt,isArrayBuffer:da,isBuffer:yn,isFormData:wc,isArrayBufferView:lc,isString:cc,isNumber:fa,isBoolean:uc,isObject:gn,isPlainObject:Sr,isEmptyObject:dc,isReadableStream:Sc,isRequest:kc,isResponse:Ac,isHeaders:Tc,isUndefined:Yt,isDate:fc,isFile:pc,isReactNativeBlob:hc,isReactNative:mc,isBlob:yc,isRegExp:Uc,isFunction:Qe,isStream:_c,isURLSearchParams:Ec,isTypedArray:Ic,isFileList:gc,forEach:Yn,merge:Xo,extend:xc,trim:Rc,stripBOM:Lc,inherits:Oc,toFlatObject:Cc,kindOf:hs,kindOfTest:lt,endsWith:Mc,toArray:Pc,forEachEntry:Dc,matchAll:Bc,isHTMLForm:Nc,hasOwnProperty:zn,hasOwnProp:zn,hasOwnInPrototypeChain:Vn,getSafeProp:ic,toSafeFlatObject:ac,reduceDescriptors:ma,freezeMethods:Hc,toObjectSet:qc,toCamelCase:$c,noop:zc,toFiniteNumber:Vc,findKey:pa,global:zt,isContextDefined:ha,isSpecCompliantForm:jc,toJSONObject:Wc,isAsyncFn:Gc,isThenable:Kc,setImmediate:ya,asap:Xc,isIterable:ga,isSafeIterable:Yc},Jc=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qc=e=>{const t={};let n,r,o;return e&&e.split(` 3`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim();const a=f.hasOwnProp(t,n);!n||a&&f.hasOwnProp(Jc,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function Zc(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}
3const eu=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),tu=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ms(e,t){return f.isArray(e)?e.map(n=>ms(n,t)):Zc(String(e).replace(t,""))}const nu=e=>ms(e,eu),ru=e=>ms(e,tu);function va(e){const t=Object.create(null);return f.forEach(e.toJSON(),(n,r)=>{t[r]=ru(n)}),t}const Xs=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function kr(e){return e===!1||e==null?e:f.isArray(e)?e.map(kr):nu(String(e))}function ou(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const su=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function wo(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function iu(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(o===34||o===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function au(e){const t=Object.create(null),n=String(e);let r=0,o=!1,s=!1;function i(a){const l=wo(n.slice(r,a)),c=l.indexOf("=");if(c<1)return;const d=wo(l.slice(0,c));if(!su.test(d))return;const h=d.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=wo(l.slice(c+1));t[h]=iu(m)}for(let a=0;a<n.length;a++){const l=n.charCodeAt(a);o?s?s=!1:l===92?s=!0:l===34&&(o=!1):l===34?o=!0:(l===44||l===59)&&(i(a),r=a+1)}return i(n.length),t}const lu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Eo(e,t,n,r,o){if(f.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!f.isString(t)){if(f.isString(r))return t.indexOf(r)!==-1;if(f.isRegExp(r))return r.test(t)}}function cu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uu(e,t){const n=f.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let Ge=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const d=Tn(l);if(!d)return;const h=f.findKey(o,d);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||l]=kr(a))}const i=(a,l)=>f.forEach(a,(c,d)=>s(c,d,l));if(f.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(f.isString(t)&&(t=t.trim())&&!lu(t))i(Qc(t),n);else if(f.isObject(t)&&f.isSafeIterable(t)){let a=Object.create(null),l,c;for(const d of t){if(!f.isArray(d))throw new TypeError("Object iterator must return a key-value pair");c=d[0],f.hasOwnProp(a,c)?(l=a[c],a[c]=f.isArray(l)?[...l,d[1]]:[l,d[1]]):a[c]=d[1]}i(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Tn(t),t){const r=f.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return ou(o);if(f.isFunction(n))return n.call(this,o,r);if(f.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=f.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Eo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Tn(i),i){const a=f.findKey(r,i);a&&(!n||Eo(r,r[a],a,n))&&(delete r[a],o=!0)}}return f.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Eo(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return f.forEach(this,(o,s)=>{const i=f.findKey(r,s);if(i){n[i]=kr(o),delete n[s];return}const a=t?cu(s):String(s).trim();a!==s&&delete n[s],n[a]=kr(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return f.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&f.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 4`)}getSetCookie(){const t=this.get("set-cookie");return f.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return au(t)}static concat(t,...n){const r=new this(t);
4return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Xs]=this[Xs]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Tn(i);r[a]||(uu(o,i),r[a]=!0)}return f.isArray(t)?t.forEach(s):s(t),this}};Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.reduceDescriptors(Ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});f.freezeMethods(Ge);const Dr="[REDACTED ****]";function du(e){if(f.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(f.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function fu(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||f.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Ge&&(s=s.toJSON()),r.push(s);let i;if(f.isArray(s))i=[],s.forEach((a,l)=>{const c=o(a);f.isUndefined(c)||(i[l]=c)});else{if(!f.isPlainObject(s)&&du(s))return r.pop(),s;i=Object.create(null);for(const[a,l]of Object.entries(s)){const c=n.has(a.toLowerCase())?Dr:o(l);f.isUndefined(c)||(i[a]=c)}}return r.pop(),i};return o(e)}function Ys(e){try{return String(e)}catch{return""}}function pu(e){return e.errors.map(n=>{try{return n&&n.message?Ys(n.message):Ys(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}
4let C=class _a extends Error{static from(t,n,r,o,s,i){let a=t.message;!a&&f.isArray(t.errors)&&t.errors.length&&(a=pu(t));const l=new _a(a,n||t.code,r,o,s);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&f.hasOwnProp(t,"redact")?t.redact:void 0,r=f.isArray(n)&&n.length>0?fu(t,n):f.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};C.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";C.ERR_BAD_OPTION="ERR_BAD_OPTION";C.ECONNABORTED="ECONNABORTED";C.ETIMEDOUT="ETIMEDOUT";C.ECONNREFUSED="ECONNREFUSED";C.ERR_NETWORK="ERR_NETWORK";C.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";C.ERR_DEPRECATED="ERR_DEPRECATED";C.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";C.ERR_BAD_REQUEST="ERR_BAD_REQUEST";C.ERR_CANCELED="ERR_CANCELED";C.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";C.ERR_INVALID_URL="ERR_INVALID_URL";C.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const hu=null,ba=100;function Yo(e){return f.isPlainObject(e)||f.isArray(e)}function wa(e){return f.endsWith(e,"[]")?e.slice(0,-2):e}function So(e,t,n){return e?e.concat(t).map(function(o,s){return o=wa(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function mu(e){return f.isArray(e)&&!e.some(Yo)}const yu=f.toFlatObject(f,{},null,function(t){return/^is[A-Z]/.test(t)});function oo(e,t,n){if(!f.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(b,O)=>{const A=f.getSafeProp(n,b);return f.isUndefined(A)?O:A},o=r("metaTokens",!0),s=r("visitor")||S,i=r("dots",!1),a=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,c=r("maxDepth",ba),d=l&&f.isSpecCompliantForm(t),h=[];if(!f.isFunction(s))throw new TypeError("visitor must be a function");function m(b){if(b===null)return"";if(f.isDate(b))return b.toISOString();if(f.isBoolean(b))return b.toString();if(!d&&f.isBlob(b))throw new C("Blob is not supported. Use a Buffer instead.");if(f.isArrayBuffer(b)||f.isTypedArray(b)){if(d&&typeof l=="function")return new l([b]);throw new C("Blob is not supported. Use a Buffer instead.",C.ERR_NOT_SUPPORT)}return b}function g(b){if(b>c)throw new C("Object is too deeply nested ("+b+" levels). Max depth: "+c,C.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(b,O){if(c===1/0)return JSON.stringify(b);const A=[];return JSON.stringify(b,function(q,K){if(!f.isObject(K))return K;for(;A.length&&A[A.length-1]!==this;)A.pop();return A.push(K),g(O+A.length-1),K})}function S(b,O,A){let N=b;if(f.isReactNative(t)&&f.isReactNativeBlob(b))return t.append(So(A,O,i),m(b)),!1;if(b&&!A&&typeof b=="object"){if(f.endsWith(O,"{}"))O=o?O:O.slice(0,-2),b=y(b,1);else if(f.isArray(b)&&mu(b)||(f.isFileList(b)||f.endsWith(O,"[]"))&&(N=f.toArray(b)))return O=wa(O),N.forEach(function(K,ke){!(f.isUndefined(K)||K===null)&&t.append(a===!0?So([O],ke,i):a===null?O:O+"[]",m(K))}),!1}return Yo(b)?!0:(t.append(So(A,O,i),m(b)),!1)}const w=Object.assign(yu,{defaultVisitor:S,convertValue:m,isVisitable:Yo});function p(b,O,A=0){if(!f.isUndefined(b)){if(g(A),h.indexOf(b)!==-1)throw new Error("Circular reference detected in "+O.join("."));h.push(b),f.forEach(b,function(q,K){(!(f.isUndefined(q)||q===null)&&s.call(t,q,f.isString(K)?K.trim():K,O,w))===!0&&p(q,O?O.concat(K):[K],A+1)}),h.pop()}}if(!f.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Js(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function ys(e,t){this._pairs=[],e&&oo(e,this,t)}const Ea=ys.prototype;Ea.append=function(t,n){this._pairs.push([t,n])};Ea.toString=function(t){const n=t?r=>
4t.call(this,r,Js):Js;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sa(e,t,n){if(!t)return e;e=e||"";const r=f.isFunction(n)?{serialize:n}:n,o=f.getSafeProp(r,"encode")||gu,s=f.getSafeProp(r,"serialize");let i;if(s?i=s(t,r):i=f.isURLSearchParams(t)?t.toString():new ys(t,r).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const Rn=Symbol("internals");function ka(e){return e?e.length:0}function Qs(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function xn(e,t){const n=e.handlers,r=ka(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(s,i){n[s.index]!==s.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=r}class Zs{constructor(){this.handlers=[],this[Rn]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},s=this[Rn];this.handlers==null&&(this.handlers=[]),xn(this,s);const i=s.nextId++;return this.handlers.push(o),s.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),s.handlersLength=this.handlers.length,i}eject(t){const n=this[Rn];xn(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(Qs(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],xn(this,this[Rn]))}forEach(t){const n=this[Rn];xn(this,n),n.iterationDepth++;try{f.forEach(this.handlers,function(o){o!==null&&t(o)})}finally{--n.iterationDepth||(xn(this,n),Qs(this.handlers),n.handlersLength=ka(this.handlers))}}}const gs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},vu=typeof URLSearchParams<"u"?URLSearchParams:ys,_u=typeof FormData<"u"?FormData:null,bu=typeof Blob<"u"?Blob:null,wu={isBrowser:!0,classes:{URLSearchParams:vu,FormData:_u,Blob:bu},protocols:["http","https","file","blob","url","data"]},vs=typeof window<"u"&&typeof document<"u",Jo=typeof navigator=="object"&&navigator||void 0,Eu=vs&&(!Jo||["ReactNative","NativeScript","NS"].indexOf(Jo.product)<0),Su=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ku=vs&&window.location.href||"http://localhost",Au=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vs,hasStandardBrowserEnv:Eu,hasStandardBrowserWebWorkerEnv:Su,navigator:Jo,origin:ku},Symbol.toStringTag,{value:"Module"})),Ue={...Au,...wu};function Tu(e,t){return oo(e,new Ue.classes.URLSearchParams,{visitor:function(n,r,o,s){return Ue.isNode&&f.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const ei=ba;function Aa(e){if(e>ei)throw new C("FormData field is too deeply nested ("+e+" levels). Max depth: "+ei,C.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ru(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Aa(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function xu(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Ta(e){function t(n,r,o,s){Aa(s);let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&f.isArray(o)?o.length:i,l?(f.hasOwnProp(o,i)?o[i]=f.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!f.hasOwnProp(o,i)||!f.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&f.isArray(o[i])&&(o[i]=xu(o[i])),!a)}if(f.isFormData(e)&&f.isFunction(e.entries)){const n={};return f.forEachEntry(e,(r,o)=>{t(Ru(r),o,n,0)}),n}return null}const Ra=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),on=(e,t)=>e!=null&&f.hasOwnProp(e,t)?e[t]:void 0;function Lu(e,t,n){if(f.isString(e))try{return(t||JSON.parse)(e),f.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Jn={transitional:gs,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=f.isObject(t);
4if(s&&f.isHTMLForm(t)&&(t=new FormData(t)),f.isFormData(t))return o?JSON.stringify(Ta(t)):t;if(f.isArrayBuffer(t)||f.isBuffer(t)||f.isStream(t)||f.isFile(t)||f.isBlob(t)||f.isReadableStream(t))return t;if(f.isArrayBufferView(t))return t.buffer;if(f.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const l=on(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tu(t,l).toString();if((a=f.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=on(this,"env"),d=c&&c.FormData;return oo(a?{"files[]":t}:t,d&&new d,l)}}return s||o?(n.setContentType("application/json",!1),Lu(t)):t}],transformResponse:[function(t){const n=on(this,"transitional")||Jn.transitional,r=n&&n.forcedJSONParsing,o=on(this,"responseType"),s=o==="json";if(f.isResponse(t)||f.isReadableStream(t))return t;if(t&&f.isString(t)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,on(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?C.from(l,C.ERR_BAD_RESPONSE,this,null,on(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(Ra,e=>{Jn.headers[e]={}});function ko(e,t){const n=this||Jn,r=t||n,o=Ge.from(r.headers);let s=r.data;return f.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function xa(e){return!!(e&&e.__CANCEL__)}let Qn=class extends C{constructor(t,n,r){super(t??"canceled",C.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function La(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new C("Request failed with status code "+n.status,n.status>=400&&n.status<500?C.ERR_BAD_REQUEST:C.ERR_BAD_RESPONSE,n.config,n.request,n))}const Ou=/[\t\n\r]/g;function Oa(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Ou,"")}function Ao(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Cu(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[s];i||(i=c),n[o]=l,r[o]=c;let h=s,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const g=d&&c-d;return g?Math.round(m*1e3/g):void 0}}function Mu(e,t){let n=0,r=1e3/t,o,s;const i=(d,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const h=Date.now(),m=h-n;m>=r?i(d,h):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o),(...d)=>i(d)]}const Br=(e,t,n=3)=>{let r=0;const o=Cu(50,250);return Mu(s=>{if(!s||!f.isNumber(s.loaded))return;const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=Math.max(0,a!=null?Math.min(i,a):i),c=Math.max(0,l-r),d=o(c);r=Math.max(r,l);const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},ti=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ni=(e,t=f.asap)=>(...n)=>t(()=>e(...n)),Pu=Ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Iu=Ue.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];f.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),f.isString(r)&&a.push(`path=${r}`),f.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),f.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Du(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bu(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const Nu=/^https?:(?!\/\/)/i;function $u(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Dr}`)}function Fu(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Dr}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Dr}`);return n===-1?o:`${o}#${$u(t.slice(n+1))}`}function ri(e,t){if(typeof e=="string"){const n=Oa(e);if(Nu.test(n))throw new C(`Invalid URL ${JSON.stringify(Fu(n))}: missing "//" after protocol`,C.ERR_INVALID_URL,t)}}function Ca(e,t,n,r){ri(t,r);let o=!Du(t);return e&&(o||n===!1)?(ri(e,r),Bu(e,t)):t}const oi=e=>e instanceof Ge?{...e}:e,Uu=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Jt(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,h,m,g){return f.isPlainObject(d)&&f.isPlainObject(h)?f.merge.call({caseless:g},d,h):f.isPlainObject(h)?f.merge({},h):f.isArray(h)?h.slice():h}function o(d,h,m,g){if(f.isUndefined(h)){if(!f.isUndefined(d))return r(void 0,d,m,g)}else return r(d,h,m,g)}function s(d,h){if(!f.isUndefined(h))return r(void 0,h)}function i(d,h){if(f.isUndefined(h)){if(!f.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function a(d){const h=f.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!f.isUndefined(h))if(f.isPlainObject(h)){if(f.hasOwnProp(h,d))return h[d]}else return;const m=f.hasOwnProp(e,"transitional")?e.transitional:void 0;if(f.isPlainObject(m)&&f.hasOwnProp(m,d))return m[d]}function l(d,h,m){if(f.hasOwnProp(t,m))return r(d,h);if(f.hasOwnProp(e,m))return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutErrorMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(d,h,m)=>o(oi(d),oi(h),m,!0)};return f.forEach(Uu({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=f.hasOwnProp(c,h)?c[h]:o,g=f.hasOwnProp(e,h)?e[h]:void 0,y=f.hasOwnProp(t,h)?t[h]:void 0,S=m(g,y,h);f.isUndefined(S)&&m!==l||(n[h]=S)}),f.hasOwnProp(t,"validateStatus")&&f.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(f.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
4idateStatus),n}const Hu=["content-type","content-length"];function qu(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{Hu.includes(r.toLowerCase())&&e.set(r,o)})}const zu=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Ma(e){const t=Jt({},e),n=m=>f.hasOwnProp(t,m)?t[m]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=Ge.from(a),t.url=Sa(Ca(c,h,d,t),n("params"),n("paramsSerializer")),l){const m=f.getSafeProp(l,"username")||"",g=f.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(m+":"+(g?zu(g):"")))}catch(y){throw C.from(y,C.ERR_BAD_OPTION_VALUE,e)}}if(f.isFormData(r)){const m=f.getSafeProp(r,"getHeaders");Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv||f.isReactNative(r)?a.setContentType(void 0):f.isFunction(m)&&qu(a,m.call(r),n("formDataHeaderPolicy"))}if(Ue.hasStandardBrowserEnv&&(f.isFunction(o)&&(o=o(t)),o===!0||o==null&&Pu(t.url))){const g=s&&i&&Iu.read(i);g&&a.set(s,g)}return t}const Vu=typeof XMLHttpRequest<"u",ju=Vu&&function(e){return new Promise(function(n,r){const o=Ma(e);let s=o.data;const i=Ge.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,d,h,m,g,y,S;function w(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function b(A){if(!p)return;if(p.status===0&&(Ao(Oa(o.url))||Ao(Ue.origin))!=="file"&&!(p.responseURL&&p.responseURL.startsWith("file:"))){r(new C("Request aborted",C.ECONNABORTED,e,p)),w(),p=null;return}try{A?S&&S(A):y&&y()}catch(ke){setTimeout(()=>{throw ke})}if(!p)return;const N=Ge.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),K={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:N,config:e,request:p};La(function(Ie){n(Ie),w()},function(Ie){r(Ie),w()},K),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(b)},p.onabort=function(){p&&(r(new C("Request aborted",C.ECONNABORTED,e,p)),w(),p=null)},p.onerror=function(N){const q=N&&N.message?N.message:"Network Error",K=new C(q,C.ERR_NETWORK,e,p);K.event=N||null,r(K),w(),p=null},p.ontimeout=function(){let N=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const q=o.transitional||gs;o.timeoutErrorMessage&&(N=o.timeoutErrorMessage),r(new C(N,q.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,p)),w(),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&f.forEach(va(i),function(N,q){p.setRequestHeader(q,N)}),f.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),c&&([m,y,S]=Br(c,!0),p.addEventListener("progress",m)),l&&p.upload&&([h,g]=Br(l),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=A=>{p&&(r(!A||A.type?new Qn(null,e,p):A),p.abort(),w(),p=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const O=Ao(o.url);if(O&&!Ue.protocols.includes(O)){r(new C("Unsupported protocol "+O+":",C.ERR_BAD_REQUEST,e)),w();return}p.send(s||null)})},Wu=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(l){if(!r){r=!0,i();const c=l instanceof Error?l:this.reason;n.abort(c instanceof C?c:new Qn(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new C(`timeout of ${t}ms exceeded`,C.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){o.call(l);return}l.addEventListener("abort",o,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>f.asap(i),a},Gu=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o}
4,Ku=async function*(e,t){for await(const n of Xu(e))yield*Gu(n,t)},Xu=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},si=(e,t,n,r)=>{const o=Ku(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await o.next();if(c){a(),l.close();return}let h=d.byteLength;if(n){let m=s+=h;n(m)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},ii=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Pa=(e,t,n)=>t+2<n&&ii(e.charCodeAt(t+1))&&ii(e.charCodeAt(t+2)),ai=e=>e<=57?e-48:(e&223)-55,Yu=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Ju=e=>e===9||e===10||e===12||e===13||e===32,Qu=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Zu=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},ed=e=>{const t=e.length;let n=0,r=0,o=!1;for(let s=0;s<t;s++){let i=e.charCodeAt(s);if(i===37&&Pa(e,s,t)&&(i=ai(e.charCodeAt(s+1))*16+ai(e.charCodeAt(s+2)),s+=2),!Ju(i)){if(i===61){r++;continue}if(!Yu(i)||r>0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?Zu(e):Qu(n)},td=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let i=0;for(let a=0,l=o.length;a<l;a++){const c=o.charCodeAt(a);if(c===37&&Pa(o,a,l))i+=1,a+=2;else if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&a+1<l){const d=o.charCodeAt(a+1);d>=56320&&d<=57343?(i+=4,a++):i+=3}else i+=3}return i};function nd(e){const t=typeof e=="string"?e.indexOf("#"):-1;return td(t===-1?e:e.slice(0,t),ed)}const _s="1.20.0",li=64*1024,rd={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ur}=f,od=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),ci=e=>{if(!f.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},ui=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sd=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},id=e=>{const t=f.global!==void 0&&f.global!==null?f.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=f.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?ur(o):typeof fetch=="function",l=ur(s),c=ur(i);if(!a)return!1;const d=a&&ur(n),h=a&&(typeof r=="function"?(p=>b=>p.encode(b))(new r):async p=>new Uint8Array(await new s(p).arrayBuffer())),m=l&&d&&ui(()=>{let p=!1;const b=new s(Ue.origin,{body:new n,method:"POST",get duplex(){return p=!0,"half"}}),O=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),p&&!O}),g=c&&d&&ui(()=>f.isReadableStream(new i("").body)),y={stream:g&&(p=>p.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!y[p]&&(y[p]=(b,O)=>{let A=b&&b[p];if(A)return A.call(b);throw new C(`Response type '${p}' is not supported`,C.ERR_NOT_SUPPORT,O)})});const S=async p=>{if(p==null)return 0;if(f.isBlob(p))return p.size;if(f.isSpecCompliantForm(p))return(await new s(Ue.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(f.isArrayBufferView(p)||f.isArrayBuffer(p))return p.byteLength;if(f.isURLSearchParams(p)&&(p=p+""),f.isString(p))return(await h(p)).byteLength},w=async(p,b)=>{const O=f.toFiniteNumber(p.getContentLength());return O??S(b)};return async p=>{let{url:b,method:O,data:A,signal:N,cancelToken:q,timeout:K,onDownloadProgress:ke,onUploadProgress:Ie,responseType:M,headers:ee,withCredentials:ue="same-origin",fetchOptions:U,maxContentLength:Q,maxBodyLength:G,maxRedirects:j}=Ma(p);const ne=f.isNumber(Q)&&Q>-1,he=f.isNumber(G)&&G>-1,ve=I=>f.hasOwnProp(p,I)?p[I]:void 0;let Ke=o||fetch;M=M?(M+"").toLowerCase():"text";let $e=Wu([N,q&&q.toAbortSignal()],K),_e=null;const le=$e&&$e.unsubscribe&&(()=>{$e.unsubscribe()});let be,Oe=null;const E=()=>new C("Request body larger than maxBodyLength limit",C.ERR_BAD_REQUEST,p,_e);try{let I;const J=ve("auth");if(J){const H=f.getSafeProp(J,"username")||"",Ae=f.getSafeProp(J,"password")||"";I={username:H,password:Ae}}if(sd(b)){const H=new URL(b,Ue.origin);if(!I&&(H.username||H.password)){const Ae=ci(H.username),z=ci(H.password);I={username:Ae,password:z}}(H.username||H.password)&&(H.username="",H.password="",b=H.href)}if(I&&(ee.delete("authorization"),ee.set("Authorization","Basic "+btoa(od((I.username||"")+":"+(I.password||""))))),ne&&typeof b=="string"&&b.startsWith("data:")&&nd(b)>Q)throw new C("maxContentLength size of "+Q+" exceeded",C.ERR_BAD_RESPONSE,p,_e);if(he&&O!=="get"&&O!=="head"){const H=await S(A);if(typeof H=="number"&&isFinite(H)&&(be=H,H>G))throw E()}const we=he&&(f.isReadableStream(A)||f.isStream(A)),me=(H,Ae,z)=>si(H,li,De=>{if(he&&De>G)throw Oe=E();Ae&&Ae(De)},z);if(m&&O!=="get"&&O!=="head"&&(Ie||we)){if(be=be??await w(ee,A),be!==0||we){let H=new s(b,{method:"POST",body:A,duplex:"half"}),Ae;
vendor: 4,541 bytes, lines 4-6
4if(f.isFormData(A)&&(Ae=H.headers.get("content-type"))&&ee.setContentType(Ae),H.body){const[z,De]=Ie&&ti(be,Br(ni(Ie)))||[];A=me(H.body,z,De)}}}else if(we&&!l&&d&&O!=="get"&&O!=="head")A=me(A);else if(we&&l&&!m&&O!=="get"&&O!=="head")throw new C("Stream request bodies are not supported by the current fetch implementation",C.ERR_NOT_SUPPORT,p,_e);f.isString(ue)||(ue=ue?"include":"omit");const Ne=l&&"credentials"in s.prototype;if(f.isFormData(A)){const H=ee.getContentType();H&&/^multipart\/form-data/i.test(H)&&!/boundary=/i.test(H)&&ee.delete("content-type")}ee.set("User-Agent","axios/"+_s,!1);const Se=U==null?U:Object.assign(Object.create(null),U);Se&&(delete Se.body,delete Se.headers,delete Se.method,delete Se.signal,delete Se.duplex,delete Se.credentials);const Re=Object.assign(Object.create(null),Se,{signal:$e,method:O.toUpperCase(),headers:va(ee.normalize()),body:A,duplex:"half",credentials:Ne?ue:void 0});l&&(f.forEach(rd,(H,Ae)=>{Re[Ae]===void 0&&(Re[Ae]=H)}),Re.signal===void 0&&(Re.signal=null),Re.body===void 0&&(Re.body=null)),j===0&&(Re.redirect="manual",Se&&(Se.redirect="manual")),_e=l&&new s(b,Re);let L=await(l?Ke(_e,Se):Ke(b,Re));const W=Ge.from(L.headers);if(ne){const H=f.toFiniteNumber(W.getContentLength());if(H!=null&&H>Q)throw new C("maxContentLength size of "+Q+" exceeded",C.ERR_BAD_RESPONSE,p,_e)}const de=g&&(M==="stream"||M==="response");if(g&&L.body&&(ke||ne||de&&le)){const H={};["status","statusText","headers"].forEach(ce=>{H[ce]=L[ce]});const Ae=f.toFiniteNumber(W.getContentLength()),[z,De]=ke&&ti(Ae,Br(ni(ke),!0))||[];let Fe=0;const Je=ce=>{if(ne&&(Fe=ce,Fe>Q))throw new C("maxContentLength size of "+Q+" exceeded",C.ERR_BAD_RESPONSE,p,_e);z&&z(ce)};L=new i(si(L.body,li,Je,()=>{De&&De(),le&&le()}),H)}M=M||"text";let ye=await y[f.findKey(y,M)||"text"](L,p);if(ne&&!g&&!de){let H;if(ye!=null&&(typeof ye.byteLength=="number"?H=ye.byteLength:typeof ye.size=="number"?H=ye.size:typeof ye=="string"&&(H=typeof r=="function"?new r().encode(ye).byteLength:ye.length)),typeof H=="number"&&H>Q)throw new C("maxContentLength size of "+Q+" exceeded",C.ERR_BAD_RESPONSE,p,_e)}return!de&&le&&le(),await new Promise((H,Ae)=>{La(H,Ae,{data:ye,headers:Ge.from(L.headers),status:L.status,statusText:L.statusText,config:p,request:_e})})}catch(I){if(le&&le(),$e&&$e.aborted&&$e.reason instanceof C){const J=$e.reason;throw J.config=p,_e&&(J.request=_e),I!==J&&Object.defineProperty(J,"cause",{__proto__:null,value:I,writable:!0,enumerable:!1,configurable:!0}),J}if(Oe)throw _e&&!Oe.request&&(Oe.request=_e),Oe;if(I instanceof C)throw _e&&!I.request&&(I.request=_e),I;if(I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)){const J=new C("Network Error",C.ERR_NETWORK,p,_e,I&&I.response);throw Object.defineProperty(J,"cause",{__proto__:null,value:I.cause||I,writable:!0,enumerable:!1,configurable:!0}),J}throw C.from(I,I&&I.code,p,_e,I&&I.response)}}},ad=new Map,Ia=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,a=i,l,c,d=ad;for(;a--;)l=s[a],c=d.get(l),c===void 0&&d.set(l,c=a?new Map:id(t)),d=c;return c};Ia();const bs={http:hu,xhr:ju,fetch:{get:Ia}};f.forEach(bs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const di=e=>`- ${e}`,ld=e=>f.isFunction(e)||e===null||e===!1;function cd(e,t){e=f.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let a;if(o=r,!ld(r)&&(o=bs[(a=String(r)).toLowerCase()],o===void 0))throw new C(`Unknown adapter '${a}'`);if(o&&(f.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since : 5`+i.map(di).join(` 6`):" "+di(i[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+a,C.ERR_NOT_SUPPORT)}return o}const Da={getAdapter:cd,adapters:bs};function To(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qn(null,e)}function Ro(e){const t=f.toSafeFlatObject(e);return To(t),t.headers=Ge.from(f.getSafeProp(t,"headers")),t.data=ko.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Da.getAdapter(t.adapter||Jn.adapter,t)(t).then(function(o){To(t),t.response=o;try{o.data=ko.call(t,t.transformResponse,o)}finally{delete t.response}return o.headers=Ge.from(o.headers),o}
6,function(o){if(!xa(o)&&(To(t),o&&o.response)){t.response=o.response;try{o.response.data=ko.call(t,t.transformResponse,o.response)}finally{delete t.response}o.response.headers=Ge.from(o.response.headers)}return Promise.reject(o)})}const so={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{so[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fi={};so.transitional=function(t,n,r){function o(s,i){return"[Axios v"+_s+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new C(o(i," has been removed"+(n?" in "+n:"")),C.ERR_DEPRECATED);return n&&!fi[i]&&(fi[i]=!0),t?t(s,i,a):!0}};so.spelling=function(t){return(n,r)=>!0};function ud(e,t,n){if(typeof e!="object"||e===null)throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new C("option "+s+" must be "+l,C.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new C("Unknown option "+s,C.ERR_BAD_OPTION)}}const Ar={assertOptions:ud,validators:so},qe=Ar.validators;let jt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Zs,response:new Zs}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack;let i="";if(typeof s=="string"){const a=s.indexOf(` 7`);i=a===-1?"":s.slice(a+1)}if(!r.stack)r.stack=i;else if(i){const a=i.indexOf(` 8`),l=a===-1?-1:i.indexOf(` 9`,a+1),c=l===-1?"":i.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=` 10`+i)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ar.assertOptions(r,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean),legacyInterceptorReqResOrdering:qe.transitional(qe.boolean),advertiseZstdAcceptEncoding:qe.transitional(qe.boolean),validateStatusUndefinedResolves:qe.transitional(qe.boolean)},!1),o!=null&&(f.isFunction(o)?n.paramsSerializer={serialize:o}:Ar.assertOptions(o,{encode:qe.function,serialize:qe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ar.assertOptions(n,{baseUrl:qe.spelling("baseURL"),withXsrfToken:qe.spelling("withXSRFToken")},!0),n.method=(f.getSafeProp(n,"method")||f.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=s&&f.merge(s.common,s[n.method]);s&&f.forEach(Ra.concat("common"),y=>{delete s[y]}),n.headers=Ge.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;l=l&&S.synchronous;const w=n.transitional||gs;w&&w.legacyInterceptorReqResOrdering?a.unshift(S.fulfilled,S.rejected):a.push(S.fulfilled,S.rejected)});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let d,h=0,m;if(!l){const y=[Ro.bind(this),void 0];for(y.unshift(...a),y.push(...c),m=y.length,d=Promise.resolve(n);h<m;)d=d.then(y[h++],y[h++]);return d}m=a.length;let g=n;for(;h<m;){const y=a[h++],S=a[h++];try{g=y?y(g):g}catch(w){if(!S){d=Promise.reject(w);break}try{const p=S.call(this,w);f.isThenable(p)&&(d=Promise.resolve(p).then(()=>Ro.call(this,g)))}catch(p){d=Promise.reject(p)}break}}if(!d)try{d=Ro.call(this,g)}catch(y){d=Promise.reject(y)}for(h=0,m=c.length;h<m;)d=d.then(c[h++],c[h++]);return d}getUri(t){t=Jt(this.defaults,t);const n=Ca(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Sa(n,t.params,t.paramsSerializer)}};f.forEach(["delete","get","head","options"],function(t){jt.prototype[t]=function(n,r){return this.request(Jt(r||{},{method:t,url:n,data:r&&f.hasOwnProp(r,"data")?r.data:void 0}))}});f.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,i,a){return this.request(Jt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}jt.prototype[t]=n(),t!=="query"&&(jt.prototype[t+"Form"]=n(!0))});let dd=class Ba{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Qn(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
vendor: 2,510 bytes, line 10
10subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ba(function(o){t=o}),cancel:t}}};function fd(e){return function(n){return e.apply(null,n)}}function pd(e){return f.isObject(e)&&e.isAxiosError===!0}const Tr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tr).forEach(([e,t])=>{Tr[t]===void 0&&(Tr[t]=e)});function Na(e){const t=new jt(e),n=aa(jt.prototype.request,t);return f.extend(n,jt.prototype,t,{allOwnKeys:!0}),f.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Na(Jt(e,o))},n}const Le=Na(Jn);Le.Axios=jt;Le.CanceledError=Qn;Le.CancelToken=dd;Le.isCancel=xa;Le.VERSION=_s;Le.toFormData=oo;Le.AxiosError=C;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=fd;Le.isAxiosError=pd;Le.mergeConfig=Jt;Le.AxiosHeaders=Ge;Le.formToJSON=e=>
10Ta(f.isHTMLForm(e)?new FormData(e):e);Le.getAdapter=Da.getAdapter;Le.HttpStatusCode=Tr;Le.default=Le;const{Axios:e0,AxiosError:t0,CanceledError:n0,isCancel:r0,CancelToken:o0,VERSION:s0,all:i0,Cancel:a0,isAxiosError:l0,spread:c0,toFormData:u0,AxiosHeaders:d0,HttpStatusCode:f0,formToJSON:p0,getAdapter:h0,mergeConfig:m0,create:y0}=Le,$a="https://api.avibox.ru",hd="api.avibox.ru",md="avibox-auth-refresh",Nr="avibox:refresh-cooldown-until",io="avibox:refresh-inflight-at",ws="avibox:refresh-done-at",yd=15e3,gd=2e4,vd=3e3,_d=3e3,Fa=3e4;let dr=null,$r=null,Wt=[];function Es(e){try{return localStorage.getItem(e)}catch{return null}}function Ss(e,t){try{localStorage.setItem(e,t)}catch{}}function Pn(e){try{localStorage.removeItem(e)}catch{}}function Zn(){return typeof BroadcastChannel>"u"?null:(dr||(dr=new BroadcastChannel(md),dr.onmessage=e=>{const t=e.data;if((t==null?void 0:t.type)!=="refreshed"||typeof t.accessToken!="string"||!Number.isFinite(t.at))return;$r={accessToken:t.accessToken,at:t.at};const n=Wt;Wt=[],n.forEach(r=>r())}),dr)}function bd(){Zn()}function wd(e){const t=Number.isFinite(e)?Math.min(Math.max(0,e),Fa):0,n=Date.now()+t,r=Date.now()+Ua();Ss(Nr,String(Math.max(n,r)))}function Ua(){const e=Es(Nr);if(e===null)return 0;const t=Number(e)-Date.now();return!Number.isFinite(t)||t<=0||t>Fa?(Pn(Nr),0):t}function Ed(e){var n;const t=Date.now();Ss(ws,String(t)),(n=Zn())==null||n.postMessage({type:"refreshed",accessToken:e,at:t})}function Sd(e){if(!Zn())return!1;const t=Number(Es(ws));return Number.isFinite(t)&&t>=e&&t<=Date.now()}function Qo(e){Zn();const t=$r;return!t||($r=null,t.at<e||Date.now()-t.at>yd)?null:t.accessToken}async function kd(e,t){if(!Zn())return null;const n=Date.now()+t;for(;;){const r=Qo(e);if(r)return r;const o=n-Date.now();if(o<=0)return null;await new Promise(s=>{const i=()=>{clearTimeout(a),s()},a=setTimeout(()=>{Wt=Wt.filter(l=>l!==i),s()},o);Wt.push(i)})}}function Ad(){Ss(io,String(Date.now()))}function xo(){Pn(io)}function Td(){const e=Date.now()-Number(Es(io));return Number.isFinite(e)&&e>=0&&e<=gd}function Rd(){$r=null;const e=Wt;Wt=[],e.forEach(t=>t()),Pn(Nr),Pn(io),Pn(ws)}const Pt=at("auth",()=>{const e=k(null);return{accessToken:e,setAccessToken:o=>{e.value=o},clear:()=>{e.value=null},isAuthenticated:()=>!!e.value}});function Ha(e){Z.set("dark_theme",e),lo().setValue("ui","darkTheme",e),As().setMode(e?"dark":"light")}const st=k("browser"),Et=k("browser"),Fr=k("");let pi=!1;function hi(e){if(window.parent===window||!document.referrer)return!1;try{const t=new URL(document.referrer).hostname;return(e==="telegram"?/(^|\.)telegram\.org$/i:/(^|\.)(max\.ru|oneme\.ru)$/i).test(t)}catch{return!1}}function qa(){var o,s,i,a,l;const e=window,t=typeof((o=e.TelegramWebviewProxy)==null?void 0:o.postEvent)=="function"||typeof((s=e.TelegramWebviewProxyProto)==null?void 0:s.postEvent)=="function"||typeof((i=e.external)==null?void 0:i.notify)=="function",n=(a=window.Telegram)==null?void 0:a.WebApp,r=e.WebApp;return r!=null&&r.initData&&(typeof((l=e.WebViewHandler)==null?void 0:l.postEvent)=="function"||hi("max"))?"max":n!=null&&n.initData&&(t||hi("telegram"))?"telegram":"browser"}function za(){return qa()!=="browser"}function vn(){return!!(navigator.standalone===!0||window.matchMedia("(display-mode: standalone)").matches||document.referrer.startsWith("android-app://"))}function ao(){var t,n,r;if(pi)return;const e=qa();if(st.value=e,Et.value=e==="browser"&&vn()?"pwa":e,e==="max"?Fr.value=((t=window.WebApp)==null?void 0:t.initData)??"":e==="telegram"&&(Fr.value=((r=(n=window.Telegram)==null?void 0:n.WebApp)==null?void 0:r.initData)??""),e!=="browser"){const o=Va();Ha(o==="dark")}pi=!0}function mi(){const e=xt(),t=e==null?void 0:e.themeParams;if(!t)return;const n=document.documentElement.style;t.bg_color&&n.setProperty("--webapp-bg",t.bg_color),t.text_color&&n.setProperty("--webapp-text",t.text_color),t.hint_color&&n.setProperty("--webapp-hint",t.hint_color),t.button_color&&n.setProperty("--webapp-button",t.button_color),t.button_text_color&&n.setProperty("--webapp-button-text",t.button_text_color),t.secondary_bg_color&&n.setProperty("--webapp-secondary-bg",t.secondary_bg_color),t.header_bg_color&&n.setProperty("--webapp-header-bg",t.header_bg_color),t.accent_text_color&&n.setProperty("--webapp-accent",t.accent_text_color)}
10function xt(){var e;return st.value==="telegram"?((e=window.Telegram)==null?void 0:e.WebApp)??null:st.value==="max"?window.WebApp??null:null}function yi(){const e=xt(),t=(e==null?void 0:e.viewportStableHeight)||(e==null?void 0:e.viewportHeight);typeof t=="number"&&t>0&&document.documentElement.style.setProperty("--webapp-vh",`${t}px`)}function Va(){var t;const e=(t=xt())==null?void 0:t.colorScheme;return e==="light"||e==="dark"?e:"light"}function Lo(){const e=xt(),t=e==null?void 0:e.safeAreaInset,n=e==null?void 0:e.contentSafeAreaInset,r=document.documentElement.style;for(const o of["top","right","bottom","left"]){const s=[t==null?void 0:t[o],n==null?void 0:n[o]].filter(i=>typeof i=="number"&&i>=0);s.length?r.setProperty(`--webapp-safe-area-${o}`,`${s.reduce((i,a)=>i+a,0)}px`):r.removeProperty(`--webapp-safe-area-${o}`)}}let gi=!1,vi=!1;function xd(){var t,n,r,o,s,i,a,l;if(gi||st.value==="browser")return;const e=xt();if(e){try{(t=e.ready)==null||t.call(e),(n=e.expand)==null||n.call(e),(r=e.enableClosingConfirmation)==null||r.call(e),(o=e.disableVerticalSwipes)==null||o.call(e)}catch{}if(mi(),yi(),Lo(),!vi)try{(s=e.onEvent)==null||s.call(e,"themeChanged",()=>{mi();const c=Va();Ha(c==="dark"),c==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),(i=e.onEvent)==null||i.call(e,"viewportChanged",()=>{yi()}),(a=e.onEvent)==null||a.call(e,"safeAreaChanged",Lo),(l=e.onEvent)==null||l.call(e,"contentSafeAreaChanged",Lo),vi=!0}catch{}gi=!0}}function Ld(){Qt(()=>{ao(),xd()});const e=B(()=>Et.value!=="browser"&&Et.value!=="pwa"),t=B(()=>Et.value==="telegram"),n=B(()=>Et.value==="max"),r=B(()=>Et.value==="pwa"),o=B(()=>Et.value==="browser"),s=B(()=>Et.value!=="browser"),i=B(()=>{var g;return st.value==="telegram"?((g=window.Telegram)==null?void 0:g.WebApp)??null:st.value==="max"?window.WebApp??null:null}),a=B(()=>{var g,y,S;return st.value==="telegram"?((y=(g=window.Telegram)==null?void 0:g.WebApp)==null?void 0:y.colorScheme)??"light":st.value==="max"?((S=window.WebApp)==null?void 0:S.colorScheme)??"light":"light"}),l=B(()=>{var g,y,S,w,p;return st.value==="telegram"?((S=(y=(g=window.Telegram)==null?void 0:g.WebApp)==null?void 0:y.initDataUnsafe)==null?void 0:S.user)??null:st.value==="max"?((p=(w=window.WebApp)==null?void 0:w.initDataUnsafe)==null?void 0:p.user)??null:null}),c=(g="light")=>{var S,w;const y=xt();(w=(S=y==null?void 0:y.HapticFeedback)==null?void 0:S.impactOccurred)==null||w.call(S,g)},d=(g="success")=>{var S,w;const y=xt();(w=(S=y==null?void 0:y.HapticFeedback)==null?void 0:S.notificationOccurred)==null||w.call(S,g)},h=()=>{var y,S;const g=xt();(S=(y=g==null?void 0:g.HapticFeedback)==null?void 0:y.selectionChanged)==null||S.call(y)},m=(g,y,S)=>{var b,O,A;const w=xt(),p=w==null?void 0:w.MainButton;if(!p)return()=>{};try{(b=p.setText)==null||b.call(p,g),S!=null&&S.color&&(p.color=S.color),S!=null&&S.textColor&&(p.textColor=S.textColor),(O=p.onClick)==null||O.call(p,y),(A=p.show)==null||A.call(p)}catch{}return()=>{var N,q;try{(N=p.offClick)==null||N.call(p,y),(q=p.hide)==null||q.call(p)}catch{}}};return{platform:bo(st),appMode:bo(Et),initData:bo(Fr),isWebApp:e,isTelegram:t,isMax:n,isPwa:r,isBrowser:o,useMobileLayout:s,webApp:i,colorScheme:a,user:l,hapticFeedback:c,hapticNotification:d,hapticSelection:h,showMainButton:m}}function ks(){return ao(),st.value}function ja(){return ao(),Et.value}function Od(){return za()||vn()}function Ht(){return za()}function Cd(){return ao(),Fr.value}const Mt=k(!1),In=k(null),_i=2e4;function Md(e){if(typeof AbortSignal.timeout=="function")return AbortSignal.timeout(e);const t=new AbortController;return setTimeout(()=>t.abort(new DOMException("Web Lock wait timed out","TimeoutError")),e),t.signal}const Pd=3,Id=400;class Dd{constructor(){oe(this,"api");oe(this,"domain");oe(this,"isRefreshing",!1);oe(this,"refreshSubscribers",[]);oe(this,"activeControllers",new Set);oe(this,"activeAuthControllers",new Set);oe(this,"authSessionEpoch",0);oe(this,"spaceIdResolver",null);oe(this,"spaceIdUpdater",null);oe(this,"accessTokenResolver",null);this.domain=$a,this.api=Le.create({baseURL:this.domain,timeout:15e3,withCredentials:!0,headers:{"X-Where-From":"Vue"}}),this.api.interceptors.request.use(t=>{var s,i;const n=((s=this.accessTokenResolver)==null?void 0:s.call(this))??null,r=((i=this.spaceIdResolver)==null?void 0:i.call(this))??Z.getRaw("userspace");return n&&(t.headers.Authorization=`Bearer ${n}`),r&&!t.headers["X-Space-Id"]&&(t.headers["X-Space-Id"]=`${r}`),!(typeof FormData<"u"&&t.data instanceof FormData)&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/json"),t}),this.api.interceptors.response.use(t=>t,async t=>{var l,c,d,h;const n=t.config,r=(n==null?void 0:n.url)??"",o=(l=t.response)==null?void 0:l.status,s=((n==null?void 0:n.method)??"get").toLowerCase();if((o===502||o===503)&&(s==="get"||s==="head"||s==="options"||n!=null&&n._retryOnGatewayError)&&(n._retryCount??0)<2)return n._retryCount=(n._retryCount??0)+1,await new Promise(m=>setTimeout(m,3e3)),this.api.request(n);if(o===429&&!(n!=null&&n._silentRateLimit)&&!(n!=null&&n._noRateLimitRetry)&&!(n!=null&&n._businessRateLimit)&&((n==null?void 0:n._rlRetryCount)??0)<Pd){n._rlRetryCount=(n._rlRetryCount??0)+1;const m=Number((d=(c=t.response)==null?void 0:c.headers)==null?void 0:d["retry-after"]),g=Number.isFinite(m)&&m>0?m*1e3:Id*2**(n._rlRetryCount-1);return await new Promise(y=>setTimeout(y,g+Math.random()*250)),this.api.request(n)}if(o===429&&!(n!=null&&n._silentRateLimit)&&!(n!=null&&n._noRateLimitRetry)&&!(n!=null&&n._businessRateLimit))try{const{useGlobalNoticeStore:m}=await P(async()=>{const{useGlobalNoticeStore:g}=await Promise.resolve().then(()=>Nh);return{useGlobalNoticeStore:g}},void 0);m().notify("СлиÑком много запÑоÑов подÑÑд â ÑаÑÑÑ Ð´Ð°Ð½Ð½ÑÑ
могла не загÑÑзиÑÑÑÑ. ÐбновиÑе ÑÑÑаниÑÑ.",{severity:"warning",key:"rate-limited"})}catch{}try{await this.handleBillingError(o,(h=t.response)==null?void 0:h.data,n==null?void 0:n._routePath)}catch{}const a=/\/auth\/(?:webapp|token|link|logout|unlink|magic_link\/verify|password_reset\/verify|signup_confirm\/verify|register\/complete|yandex\/(?:complete|confirm|signup|link-confirm))|\/user\/me\/email_change\/verify/.test(r);if(o===401&&!n._isRetry&&!a){n._isRetry=!0;try{const m=await this.refreshToken();return m?(n.headers.Authorization=`Bearer ${m}`,this.api.request(n)):Promise.reject(t)}catch(m){return Promise.reject(m)}}return Promise.reject(t)})}async refreshToken(t={}){if(this.isRefreshing)return new Promise((n,r)=>{this.refreshSubscribers.push(o=>{o?n(o):r(new Error("Ðе ÑдалоÑÑ Ð¾Ð±Ð½Ð¾Ð²Ð¸ÑÑ Ñокен"))})});this.isRefreshing=!0;try{const n=await this.doRefreshLocked();
10return this.refreshSubscribers.forEach(r=>r(n)),this.refreshSubscribers=[],n}catch(n){if(this.refreshSubscribers.forEach(o=>o("")),this.refreshSubscribers=[],!this.isConfirmedRefreshRejection(n))throw n;const r=Pt().isAuthenticated();throw Rd(),Pt().clear(),Z.clearAll(),!t.silent&&!Ht()&&r&&(window.location.href="/login"),n}finally{this.isRefreshing=!1}}isConfirmedRefreshRejection(t){var r;const n=(r=t==null?void 0:t.response)==null?void 0:r.status;return n===401||n===403}isRefreshTransportError(t){var r;const n=(r=t==null?void 0:t.response)==null?void 0:r.status;return n===void 0||n===408||n===429||n>=500}refreshRetryAfterMs(t){var o,s;const n=(s=(o=t==null?void 0:t.response)==null?void 0:o.headers)==null?void 0:s["retry-after"],r=Number(n);return Number.isFinite(r)&&r>0?r*1e3:null}async doRefreshLocked(){const t=Date.now();if(!Ht()&&Td()){const i=await this.awaitNeighborToken(t);if(i)return i}const n=async()=>{if(!Ht()){const i=Qo(t);if(i)return this.applyNeighborToken(i);if(Sd(t))return null}return r()},r=async()=>{var c;const i=Pt(),a=this.authSessionEpoch,l=new AbortController;this.activeAuthControllers.add(l);try{if(Ht()){const y=Cd();if(!y)throw new Error("ÐÐµÑ initData Ð´Ð»Ñ WebApp re-auth");const{data:S}=await Le.post(`${this.domain}/auth/webapp`,{init_data:y,platform:ks()},{timeout:15e3,signal:l.signal});if(a!==this.authSessionEpoch)throw new Error("Auth session changed during refresh");return S.space_id&&!Z.getRaw("userspace")&&this.setCurrentSpaceId(S.space_id),i.setAccessToken(S.access_token),S.access_token}const d=Qo(t);if(d)return this.applyNeighborToken(d);const h=Ua();if(h>0)throw{response:{status:429,headers:{"retry-after":String(Math.ceil(h/1e3))}}};const m=ec();let g;Ad();try{({data:g}=await Le.post(`${this.domain}/auth/refresh`,m?{refresh_token:m}:{},{withCredentials:!0,timeout:15e3,signal:l.signal}))}catch(y){throw xo(),((c=y==null?void 0:y.response)==null?void 0:c.status)===429&&wd(this.refreshRetryAfterMs(y)??_d),y}if(a!==this.authSessionEpoch)throw xo(),new Error("Auth session changed during refresh");return Ed(g.access_token),xo(),i.setAccessToken(g.access_token),g.access_token}finally{this.activeAuthControllers.delete(l)}},o=await this.withAuthSessionLock(n,_i);if(o!==null)return o;const s=await this.awaitNeighborToken(t);return s||this.withAuthSessionLock(r,_i)}async awaitNeighborToken(t){const n=this.authSessionEpoch,r=await kd(t,vd);return!r||n!==this.authSessionEpoch?null:this.applyNeighborToken(r)}applyNeighborToken(t){return Pt().setAccessToken(t),t}async withAuthSessionLock(t,n){return typeof navigator<"u"&&navigator.locks?n===void 0?navigator.locks.request("avibox-refresh",t):navigator.locks.request("avibox-refresh",{signal:Md(n)},t):t()}async restoreSession(){var t;if(!Ht())try{await this.refreshToken({silent:!0}),Mt.value=!1,In.value=null}catch(n){if(this.isRefreshTransportError(n))throw Mt.value=!0,In.value=((t=n==null?void 0:n.response)==null?void 0:t.status)===429?Math.ceil((this.refreshRetryAfterMs(n)??3e3)/1e3):null,n;Mt.value=!1,In.value=null}}setSpaceIdResolver(t){this.spaceIdResolver=t}setSpaceIdUpdater(t){this.spaceIdUpdater=t}setCurrentSpaceId(t){this.spaceIdUpdater?this.spaceIdUpdater(t):Z.setRaw("userspace",t)}setAccessTokenResolver(t){this.accessTokenResolver=t}async handleBillingError(t,n,r){var d,h,m,g,y,S,w,p,b,O,A;if(t!==402&&t!==403&&t!==413||r&&r!==this.getCurrentRoutePath())return;const o=(((d=n==null?void 0:n.detail)==null?void 0:d.errorCode)??((h=n==null?void 0:n.detail)==null?void 0:h.code)??((m=n==null?void 0:n.error)==null?void 0:m.code)??(n==null?void 0:n.code)??"").toString().toUpperCase(),s=((g=n==null?void 0:n.detail)==null?void 0:g.message)??(n==null?void 0:n.message)??(n==null?void 0:n.detail),{useBillingErrorsStore:i}=await P(async()=>{const{useBillingErrorsStore:N}=await Promise.resolve().then(()=>Rh);return{useBillingErrorsStore:N}},void 0),a=i(),l=n==null?void 0:n.detail,c=l&&typeof l=="object"?l:typeof s=="string"?{message:s}:n;if(o==="INPUT_TOO_LARGE"){a.show("input_too_large",c);return}if(t===413){const N=((S=(y=n==null?void 0:n.error)==null?void 0:y.details)==null?void 0:S.limit_bytes)??((b=(p=(w=n==null?void 0:n.detail)==null?void 0:w.error)==null?void 0:p.details)==null?void 0:b.limit_bytes)??((A=(O=n==null?void 0:n.detail)==null?void 0:O.details)==null?void 0:A.limit_bytes),q=N===void 0?c:{...c&&typeof c=="object"?c:{},limit_bytes:N};a.show("file_too_large",q);return}if(o==="FEATURE_NOT_ENABLED"){a.show("feature_not_enabled",c);return}if(o==="BIDDER_NOT_ALLOWED"){a.show("bidder_not_allowed",c);return}if(o!=="AVITO_MESSENGER_SUBSCRIPTION_REQUIRED"){if(t===402||o==="INSUFFICIENT_FUNDS"){a.show("wallet_empty",c);return}if(t===403){if(o==="BILLING_SUSPENDED"){a.show("feature_locked",c);return}if(o==="NO_PRICING"){a.show("no_pricing",c);return}}}}withAbortTracking(t){const n=this.getCurrentRoutePath();if(t!=null&&t.signal)return{...t,_routePath:n};const r=new AbortController;this.activeControllers.add(r);const o=()=>this.activeControllers.delete(r);return r.signal.addEventListener("abort",o,{once:!0}),{...t,signal:r.signal,_routePath:n,abortCleanup:o}}getCurrentRoutePath(){if(!(typeof window>"u"))return window.location.pathname}abortAll(t={}){for(const n of this.activeControllers)n.abort();if(this.activeControllers.clear(),t.includeAuth){this.authSessionEpoch+=1;for(const n of this.activeAuthControllers)n.abort();this.activeAuthControllers.clear()}}get(t,n,r){const o=this.withAbortTracking(r);return this.api.get(t,{params:n,...o}).finally(o.abortCleanup)}post(t,n,r,o){const s=this.withAbortTracking(o);return this.api.post(t,n,{params:r,...s}).finally(s.abortCleanup)}put(t,n,r,o){const s=this.withAbortTracking(o);return this.api.put(t,n,{params:r,...s}).finally(s.abortCleanup)}patch(t,n,r,o){const s=this.withAbortTracking(o);return this.api.patch(t,n,{params:r,...s}).finally(s.abortCleanup)}delete(t,n,r){const o=this.withAbortTracking(r);return this.api.delete(t,{params:n,...o}).finally(o.abortCleanup)}getCallsFeed(t){return this.get("/profiles/calls/feed",t)}getCallsStatistics(t){return this.get("/profiles/calls/statistics",t)}getCallRecord(t,n){return this.get(`/profiles/${t}/calls/${n}/record`,void 0,{responseType:"blob"})}analyzeCall(t,n){return this.post(`/profiles/${t}/calls/${n}/analyze`,void 0,void 0,{timeout:18e4})}getCallAnalysis(t,n){return this.get(`/profiles/${t}/calls/${n}/analysis`)}transcribeCall(t,n){return this.post(`/profiles/${t}/calls/${n}/transcribe`,void 0,void 0,{timeout:18e4})}setCallOutcome(t,n,r){return this.put(`/profiles/${t}/calls/${n}/outcome`,{outcome_status:r})}getCallsAttention(t){return this.get("/profiles/calls/attention",t)}dismissCallAttention(t,n){return this.post(`/profiles/calls/attention/${t}/dismiss`,{call_time:n})}getCallsAttentionSettings(){return this.get("/profiles/calls/attention/settings")}updateCallsAttentionSettings(t){return this.put("/profiles/calls/attention/settings",t)}getCallsBackfillEstimate(t){return this.get("/profiles/calls/auto-triage/estimate",{from_month:t})}getCallScript(){return this.get("/profiles/calls/script")}saveSpaceCallScript(t){return this.put("/profiles/calls/script",t)}saveProfileCallScript(t,n){return this.put(`/profiles/${t}/calls/script`,n)}deleteSpaceCallScript(){return this.delete("/profiles/calls/script")}deleteProfileCallScript(t){return this.delete(`/profiles/${t}/calls/script`)}getCallsUnseenCount(){return this.get("/profiles/calls/unseen-count")}markCallsProfileSeen(t){return this.post("/profiles/calls/seen",{profile_id:t})}getHelpVideos(){return this.get("/help/videos")}
10adminListHelpVideos(){return this.get("/admin/help-videos")}adminUpsertHelpVideo(t){return this.put("/admin/help-videos",t)}getGreyAccounts(t){return this.get("/grey-api/accounts",{space_id:t},{headers:{"X-Space-Id":t}})}startGreyConnect(t){return this.post("/grey-api/accounts/connect/start",t,void 0,{timeout:1e5,headers:{"X-Space-Id":t.space_id},_noRateLimitRetry:!0})}requestGreyConnectCode(t,n){return this.post("/grey-api/accounts/connect/request-code",n,void 0,{timeout:7e4,headers:{"X-Space-Id":t}})}verifyGreyConnect(t,n){return this.post("/grey-api/accounts/connect/verify",n,void 0,{timeout:8e4,headers:{"X-Space-Id":t}})}landGreyConnect(t,n){return this.post("/grey-api/accounts/connect/land",n,void 0,{timeout:8e4,headers:{"X-Space-Id":t},_noRateLimitRetry:!0})}expandGreyConnect(t){return this.post("/grey-api/accounts/connect/expand",t,void 0,{timeout:1e5,headers:{"X-Space-Id":t.space_id}})}disconnectGreyAccount(t,n){return this.post(`/grey-api/accounts/${n}/disconnect`,void 0,void 0,{headers:{"X-Space-Id":t}})}getProfileReputationCurrent(t){return this.get(`/profiles/${t}/reputation/current`)}getProfileReputationTrend(t,n=90){return this.get(`/profiles/${t}/reputation/trend`,{days:n})}getProfileTariffCurrent(t){return this.get(`/profiles/${t}/tariff/current`)}setProfileTariffLimit(t,n){return this.post(`/profiles/${t}/tariff/limit`,{value:n},void 0,{_silentRateLimit:!0})}cancelProfileTariffLimit(t){return this.delete(`/profiles/${t}/tariff/limit`,void 0,{_silentRateLimit:!0})}setProfileTariffAdvance(t,n){return this.post(`/profiles/${t}/tariff/advance`,{value:n},void 0,{_silentRateLimit:!0})}withdrawProfileTariffAdvance(t,n){return this.post(`/profiles/${t}/tariff/advance/refund`,{value:n},void 0,{_silentRateLimit:!0})}setProfileCanToday(t,n){return this.post(`/profiles/${t}/can-today`,{enabled:n})}getProfileCanToday(t){return this.get(`/profiles/${t}/can-today`)}getProfileNightMode(t){return this.get(`/profiles/${t}/night-mode`)}setProfileNightMode(t,n){return this.post(`/profiles/${t}/night-mode`,n,void 0,{timeout:13e4})}getProfileAutoTopup(t){return this.get(`/profiles/${t}/auto-topup`)}setProfileAutoTopup(t,n){return this.post(`/profiles/${t}/auto-topup`,n,void 0,{timeout:13e4})}}const $=new Dd;bd();function g0(e,t){}function Lt(e,...t){}const fr="preferences_pending";function Bd(e,t){let n=null,r=null;const o=()=>r||(r=e().finally(()=>{r=null}),r),s=()=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,o()},t)};return s.cancel=()=>{n!==null&&clearTimeout(n),n=null},s.flush=async()=>{if(n!==null){clearTimeout(n),n=null,await o();return}r?await r:await o()},s}function Dn(e,t){const n={...e};for(const r of Object.keys(t)){const o=t[r],s=e[r];o!==null&&typeof o=="object"&&!Array.isArray(o)&&s!==null&&typeof s=="object"&&!Array.isArray(s)?n[r]=Dn(s,o):n[r]=o}return n}function Oo(e){return Dn({},e)}const lo=at("preferences",()=>{const e=Z.get(fr,{}),t=k(Oo(e)),n=k(!1),r=k(!1);let o=Oo(e),s=Object.keys(o).length>0?1:0,i=0,a=null;const l=B(()=>t.value.dashboard??{}),c=()=>Object.keys(o).length>0,d=()=>{c()?Z.set(fr,o):Z.remove(fr)},m=Bd(async()=>{if(!n.value||!c())return;const A=i,N=s,q=Oo(t.value);try{if(await $.put("/user/preferences",{preferences:q}),A!==i)return;N===s?(o={},d()):m()}catch{}},600),g=A=>{o=Dn(o,A),s+=1,d(),n.value&&m()};function y(){if(n.value)return Promise.resolve();if(a)return a;if(!Pt().isAuthenticated())return Promise.resolve();const A=i;r.value=!0;const N=(async()=>{try{const{data:q}=await $.get("/user/preferences");if(A!==i)return;const K=q.preferences??{};t.value=Dn(K,o),n.value=!0,c()&&m()}catch{}finally{A===i&&(r.value=!1,a=null)}})();return a=N,N}function S(A){const N=t.value.dashboard??{};t.value={...t.value,dashboard:Dn(N,A)},g({dashboard:A})}function w(A,N){var q;return(q=t.value[A])==null?void 0:q[N]}function p(A,N,q){const K={...t.value[A]??{}};K[N]=q,t.value={...t.value,[A]:K},g({[A]:{[N]:q}})}async function b(){await m.flush()}function O(A={}){i+=1,m.cancel(),a=null,o={},s=0,t.value={},n.value=!1,r.value=!1,A.clearPersisted!==!1&&Z.remove(fr)}return{preferences:t,loaded:n,loading:r,dashboard:l,ensureLoaded:y,patchDashboard:S,getValue:w,setValue:p,flushPending:b,$reset:O}});function Nd(e=window.location.search){const t=new URLSearchParams(e);if(t.get("entry")!=="site")return null;const n=t.get("theme");return n==="dark"||n==="light"?n:null}function v0(e,t){return Math.min(Math.hypot(Math.min(e-32,400),560)/2+28,Math.max(e,t)*.46)}const pr="ui",bi="themeMode",wi="darkTheme",Co="theme_mode",hr="dark_theme",Wa=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-color-scheme: dark)"):void 0,$d=()=>{var e;return((e=Wa())==null?void 0:e.matches)===!0},Ei=e=>e==="system"?$d():e==="dark",As=at("theme",()=>{var g,y;const e=lo(),t=Z.get(Co,null),n=Z.get(hr,null),r=t===null&&n===null?Nd():null;r&&(Z.set(Co,r),Z.set(hr,r==="dark"));const o=t??r??(n?"dark":"light"),s=k(o),i=k(Ei(o));e.ensureLoaded(),(y=(g=Wa())==null?void 0:g.addEventListener)==null||y.call(g,"change",S=>{s.value==="system"&&(i.value=S.matches,Z.set(hr,S.matches))}),Ce(()=>e.loaded,S=>{if(!S)return;const w=e.getValue(pr,bi);if(w==="light"||w==="dark"||w==="system"){a(w,{persistServer:!1});return}const p=e.getValue(pr,wi);
10if(p!==void 0){a(p?"dark":"light",{persistServer:!0});return}a(s.value,{persistServer:!0})},{immediate:!0});function a(S,w={}){const{persistServer:p=!0}=w;s.value=S,i.value=Ei(S),Z.set(Co,S),Z.set(hr,i.value),p&&(e.setValue(pr,bi,S),e.setValue(pr,wi,i.value))}return{mode:s,isDark:i,setMode:S=>a(S),setDarkTheme:()=>a("dark"),setLightTheme:()=>a("light"),setSystemTheme:()=>a("system"),toggleTheme:()=>a(i.value?"light":"dark")}});function Fd(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e;let a,l,c;const d=async(m=!0)=>{await l,c==null||c()};async function h(){if("serviceWorker"in navigator){if(a=await P(async()=>{const{Workbox:m}=await import("./workbox-window.prod.es5-BqEJf4Xk.js");return{Workbox:m}},[]).then(({Workbox:m})=>new m("/sw.js",{scope:"/",type:"classic"})).catch(m=>{i==null||i(m)}),!a)return;c=()=>{a==null||a.messageSkipWaiting()};{let m=!1;const g=()=>{m=!0,a==null||a.addEventListener("controlling",y=>{y.isUpdate&&window.location.reload()}),n==null||n()};a.addEventListener("installed",y=>{typeof y.isUpdate>"u"?typeof y.isExternal<"u"&&y.isExternal?g():!m&&(r==null||r()):y.isUpdate||r==null||r()}),a.addEventListener("waiting",g)}a.register({immediate:t}).then(m=>{s?s("/sw.js",m):o==null||o(m)}).catch(m=>{i==null||i(m)})}}return l=h(),d}function Ud(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e,a=k(!1),l=k(!1);return{updateServiceWorker:Fd({immediate:t,onNeedRefresh(){a.value=!0,n==null||n()},onOfflineReady(){l.value=!0,r==null||r()},onRegistered:o,onRegisteredSW:s,onRegisterError:i}),offlineReady:l,needRefresh:a}}function Hd(){const e=k(!1),t=()=>{e.value=!1};if(Ht())return{showUpdatePrompt:e,update:async()=>{},dismiss:t};const{needRefresh:n,updateServiceWorker:r}=Ud({onNeedRefresh(){e.value=!0},onRegisteredSW(s,i){i&&setInterval(()=>i.update(),60*60*1e3)}});return Ce(n,s=>{s&&(e.value=!0)}),{showUpdatePrompt:e,update:async()=>{await r(),e.value=!1},dismiss:t}}const qd="OPEN_URL";function zd(e){var r;const t=typeof navigator>"u"?void 0:navigator.serviceWorker;if(!t)return;const n=o=>{var a;const s=o.data;if((s==null?void 0:s.type)!==qd||typeof s.url!="string")return;const i=new URL(s.url,window.location.origin);i.origin===window.location.origin&&((a=o.ports[0])==null||a.postMessage(!0),e(`${i.pathname}${i.search}${i.hash}`))};t.addEventListener("message",n),(r=t.startMessages)==null||r.call(t),Zt(()=>t.removeEventListener("message",n))}const Mo=["profile","integrations","notifications","interface","security","consents","autopayments","workspace","members","invitations","workspace-groups"],Vd=Symbol("settingsPopup");function _0(){const e=fs(),t=no(),n=Mo.includes(e.query.settings)?e.query.settings:"profile",r=Mo.includes(e.query.settings),o=Kn({visible:r,activeTab:n,subTab:typeof e.query.sub=="string"?e.query.sub:null,eventKey:typeof e.query.event=="string"?e.query.event:null,groupId:typeof e.query.group_id=="string"?e.query.group_id:null,openRequestId:0});function s(a="profile",l=null){o.activeTab=a,o.subTab=l,o.visible=!0,o.openRequestId+=1}function i(){o.visible=!1}return Ce(()=>[e.query.settings,e.query.sub,e.query.event,e.query.group_id],([a,l,c,d],[h,m,g,y])=>{!Mo.includes(a)||o.visible&&a===o.activeTab&&a!==h&&l===m&&c===g&&d===y||(o.activeTab=a,o.subTab=typeof l=="string"?l:null,o.eventKey=typeof c=="string"?c:null,o.groupId=typeof d=="string"?d:null,o.visible=!0,o.openRequestId+=1)}),Ce(()=>o.visible,a=>{const l={...e.query};a?l.settings=o.activeTab:delete l.settings,t.replace({query:l})}),Ce(()=>o.activeTab,a=>{o.visible&&t.replace({query:{...e.query,settings:a}})}),{state:o,open:s,close:i}}const co=at("billingDrawer",()=>{const e=k(!1),t=k("wallet"),n=k("wallet"),r=k(null);function o(c="wallet",d){t.value=c,n.value=c,r.value=c==="tariffs"?(d==null?void 0:d.focus)??null:null,e.value=!0}function s(){e.value=!1}function i(c){e.value?s():o(c??t.value)}function a(c){t.value=c}function l(){r.value=null}return{isOpen:e,activeTab:t,entryTab:n,focus:r,open:o,close:s,toggle:i,setTab:a,clearFocus:l}}),Ts=at("user",()=>{const e=k(null),t=k(!1),n=k(Z.getRaw("avaLink")),r=k(Z.getRaw("user_role")),o=B(()=>{var y;return!!((y=e.value)!=null&&y.is_admin)}),s=B(()=>{var y;return!!((y=e.value)!=null&&y.is_tester)}),i=y=>
10{n.value=y,y?Z.setRaw("avaLink",y):Z.remove("avaLink"),e.value&&(e.value={...e.value,avatar_url:y})},a=y=>{r.value=y,y?Z.setRaw("user_role",y):Z.remove("user_role"),e.value&&(e.value={...e.value,role:y??""})},l=y=>{const S=n.value??y.avatar_url??null;e.value={...y,avatar_url:S},Z.setRaw("is_admin",String(y.is_admin)),Z.setRaw("is_tester",String(y.is_tester)),a(y.role),y.avatar_url&&y.avatar_url!==n.value&&i(y.avatar_url),P(async()=>{const{identify:w}=await Promise.resolve().then(()=>Qr);return{identify:w}},void 0).then(({identify:w})=>w(y.id))},c=async y=>{const S=!!(y!=null&&y.silent);if(!S){if(t.value)return;t.value=!0}try{const{data:w}=await $.get("/user/info");l(w)}catch{}finally{S||(t.value=!1)}};return{user:e,isLoading:t,avatarLink:n,userRole:r,isAdmin:o,isTester:s,fetchUser:c,setAvatarLink:y=>{i(y)},setUserRole:y=>{a(y)},refreshUserAfterAvatarChange:async()=>{await c({silent:!0})},$reset:()=>{e.value=null,t.value=!1,n.value=null,r.value=null,P(async()=>{const{resetIdentity:y}=await Promise.resolve().then(()=>Qr);return{resetIdentity:y}},void 0).then(({resetIdentity:y})=>y())}}}),Si=Object.freeze(Object.defineProperty({__proto__:null,useUserStore:Ts},Symbol.toStringTag,{value:"Module"})),jn={profile_slot:{title:"Ð¡Ð»Ð¾Ñ Ð¿ÑоÑÐ¸Ð»Ñ ÐвиÑо",description:"ÐополниÑелÑнÑй пÑоÑÐ¸Ð»Ñ ÐвиÑо в ваÑей ÑабоÑей зоне",per_unit:!0,min_quantity:1},dashboard:{title:"ÐаÑбоÑд",description:"Ðинамика ÑазвиÑÐ¸Ñ Ð¸ ÑоÑÑоÑÐ½Ð¸Ñ Ð¿ÑоÑилÑ"},auto_reply:{title:"ÐвÑооÑÐ²ÐµÑ Ð² ÑÐ°Ñ + на оÑзÑвÑ",description:"ÐÑÑÑÑÑе оÑвеÑÑ Ð² ÑаÑаÑ
и на оÑзÑвÑ"},ai_assistant:{title:"AI-аÑÑиÑÑенÑ",description:"СамоÑÑоÑÑелÑнÑй модÑÐ»Ñ Ð² закÑÑÑой беÑе"},leaderboard:{title:"ÐидбоÑд",description:"Сводка ÑаÑов, звонков и SLA по опеÑаÑоÑам"},teamboard:{title:"ТимбоÑд",description:"ÐÑÑекÑивноÑÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ: каÑеÑÑво звонков и ÑабоÑа в ÑаÑаÑ
"},spendboard:{title:"СпендбоÑд",description:"ÐналиÑика ÑаÑÑ
одов на пÑодвижение по пÑоÑилÑм"},message_center:{title:"ЦенÑÑ ÑообÑений",description:"ÐÐ´Ð¸Ð½Ð°Ñ Ð»ÐµÐ½Ñа диалогов вÑеÑ
пÑоÑилей"},call_center:{title:"ЦенÑÑ Ð·Ð²Ð¾Ð½ÐºÐ¾Ð²",description:"ÐналиÑика звонков и запиÑÑ ÑазговоÑов"},pro:{title:"ÐÐ Ð",description:"ÐÑе доÑÑÑпнÑе ÑÑнкÑии · 30 пÑоÑилей вклÑÑено"},pro_plus:{title:"ÐÐ Ð+",description:"ÐÐµÐ·Ð»Ð¸Ð¼Ð¸Ñ Ð¿ÑоÑилей · ÑамÑе бÑÑÑÑÑе Ð±Ð¸Ð´Ñ Ð´ÐµÑевле"},bid_slot:{title:"Ðид-ÑлоÑ",description:"Ð¡Ð»Ð¾Ñ Ð±Ð¸Ð´-менеджеÑа (авÑомаÑиÑеÑкие ÑÑавки CPX)",per_unit:!0,min_quantity:1},client_reports:{title:"ÐÑÑÑÑÑ Ð´Ð»Ñ ÐºÐ»Ð¸ÐµÐ½Ñов",description:"ÐжемеÑÑÑнÑй оÑÑÑÑ Ð¾ ÑабоÑе по пÑоÑилÑ: PDF и ÑÑÑлка Ð´Ð»Ñ ÐºÐ»Ð¸ÐµÐ½Ñа"}},Bn=[{key:"profile_slot",title:"Ð¡Ð»Ð¾Ñ Ð¿ÑоÑÐ¸Ð»Ñ ÐвиÑо",description:"ÐополниÑелÑнÑй пÑоÑÐ¸Ð»Ñ ÐвиÑо в ваÑей ÑабоÑей зоне",monthly_price_rub:100,per_unit:!0,min_quantity:1,sortOrder:0},{key:"dashboard",title:"ÐаÑбоÑд",description:"Ðинамика ÑазвиÑÐ¸Ñ Ð¸ ÑоÑÑоÑÐ½Ð¸Ñ Ð¿ÑоÑилÑ",monthly_price_rub:1e3,sortOrder:23},{key:"auto_reply",title:"ÐвÑооÑÐ²ÐµÑ Ð² ÑÐ°Ñ + на оÑзÑвÑ",description:"ÐÑÑÑÑÑе оÑвеÑÑ Ð² ÑаÑаÑ
и на оÑзÑвÑ",monthly_price_rub:600,sortOrder:30},{key:"ai_assistant",title:"AI-аÑÑиÑÑенÑ",description:"СамоÑÑоÑÑелÑнÑй модÑÐ»Ñ Ð² закÑÑÑой беÑе",monthly_price_rub:0,free:!1,comingSoon:!0,sortOrder:40},{key:"leaderboard",title:"ÐидбоÑд",description:"Сводка ÑаÑов, звонков и SLA по опеÑаÑоÑам",monthly_price_rub:1e3,sortOrder:50},{key:"teamboard",title:"ТимбоÑд",description:"ÐÑÑекÑивноÑÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ: каÑеÑÑво звонков и ÑабоÑа в ÑаÑаÑ
",monthly_price_rub:1e3,sortOrder:51},{key:"spendboard",title:"СпендбоÑд",description:"ÐналиÑика ÑаÑÑ
одов на пÑодвижение по пÑоÑилÑм",monthly_price_rub:1e3,sortOrder:52},{key:"message_center",title:"ЦенÑÑ ÑообÑений",description:"ÐÐ´Ð¸Ð½Ð°Ñ Ð»ÐµÐ½Ñа диалогов вÑеÑ
пÑоÑилей",monthly_price_rub:0,free:!0,sortOrder:60},{key:"call_center",title:"ЦенÑÑ Ð·Ð²Ð¾Ð½ÐºÐ¾Ð²",description:"ÐналиÑика звонков и запиÑÑ ÑазговоÑов",monthly_price_rub:0,free:!0,sortOrder:70},{key:"pro",title:"ÐÐ Ð",description:"ÐÑе доÑÑÑпнÑе ÑÑнкÑии · 30 пÑоÑилей вклÑÑено",monthly_price_rub:3990,sortOrder:80},{key:"pro_plus",title:"ÐÐ Ð+",description:"ÐÐµÐ·Ð»Ð¸Ð¼Ð¸Ñ Ð¿ÑоÑилей · ÑамÑе бÑÑÑÑÑе Ð±Ð¸Ð´Ñ Ð´ÐµÑевле",monthly_price_rub:6990,sortOrder:90},{key:"bid_slot",title:"Ðид-ÑлоÑ",description:"Ð¡Ð»Ð¾Ñ Ð±Ð¸Ð´-менеджеÑа (авÑомаÑиÑеÑкие ÑÑавки CPX)",monthly_price_rub:150,per_unit:!0,min_quantity:1,managedSeparately:!0,sortOrder:100}],jd=new Set(Bn.map(e=>e.key));function Wd(e){return e.key!=="ai_assistant"?e:{...e,title:jn.ai_assistant.title,de
10scription:jn.ai_assistant.description,monthly_price_rub:0,free:!1,comingSoon:!0}}function Gd(e){const t=e==null?void 0:e.features;if(!(t!=null&&t.length))return Bn;const n=[];for(const r of t){const o=r.feature;if(!jd.has(o))continue;const s=jn[o],i=Number.parseFloat(r.price_rub),a=Bn.find(l=>l.key===o);n.push(Wd({key:o,title:r.label||s.title,description:s.description,monthly_price_rub:Number.isFinite(i)?i:0,per_unit:s.per_unit,min_quantity:s.min_quantity,free:r.is_free,comingSoon:r.coming_soon,sortOrder:r.sort_order,managedSeparately:a==null?void 0:a.managedSeparately}))}return n.length?n.sort((r,o)=>(r.sortOrder??0)-(o.sortOrder??0)):Bn}const Kd=at("paymentSuccess",()=>{const e=k(!1),t=k(0),n=new Set;function r(s,i){if(!(!Number.isFinite(s)||s<=0)){if(i){if(n.has(i))return;n.add(i)}t.value=s,e.value=!0}}function o(){e.value=!1}return{visible:e,amountRub:t,show:r,close:o}});function _n(e,t){return{...e,profileId:t!==void 0?String(t):e.profileId!=null?String(e.profileId):void 0,adId:e.adId??null,scrapeQuery:e.scrapeQuery??null,nextTriggerAt:e.nextTickAt??e.nextTriggerAt??null,lastExecutedAt:e.lastTickAt??e.lastExecutedAt??null}}function Xd(e){const t={updatedAt:e.updatedAt};typeof e.scrapeQuery=="string"&&e.scrapeQuery.trim().length>=2&&(t.scrapeQuery=e.scrapeQuery.trim());const n=["targetPosition","dailyLimitPenny","maxBidPenny","weekdaysMask","nightOffEnabled","nightOffFrom","nightOffTo","nightBidPenny","timezone","strategyMode","targetCplPenny","cplMinPosition","enabled","cycleMinutesPref","adId"];for(const r of n)e[r]!==void 0&&(t[r]=e[r]);return t}function Yd(e){const t={adIds:e.adIds};return e.strategyMode!==void 0&&(t.strategyMode=e.strategyMode),e.targetCplPenny!==void 0&&e.targetCplPenny!==null&&(t.targetCplPenny=e.targetCplPenny),t}async function b0(e,t){const n=e!==void 0?{profileId:e}:{},{data:r}=await $.get("/v2/bid/schedules",n);let o=r.map(s=>_n(s,e));return t!==void 0&&(o=o.filter(s=>s.enabled===t)),o}async function Jd(){const{data:e}=await $.get("/v2/bid/schedules/slots-summary");return e}async function w0(e,t){const{data:n}=await $.post("/v2/bid/schedules/bulk",Yd(t),{profileId:e});return n.map(r=>_n(r,e))}async function E0(e,t){const{data:n}=await $.get(`/v2/bid/schedules/${t}`);return _n(n,e)}async function S0(e,t,n){const{data:r}=await $.patch(`/v2/bid/schedules/${t}`,Xd(n));return _n(r,e)}async function k0(e,t){await $.delete(`/v2/bid/schedules/${t}`)}async function A0(e,t,n){const{data:r}=await $.patch(`/v2/bid/schedules/${t}/toggle`,{enabled:n});return _n(r,e)}async function T0(e){const{data:t}=await $.get(`/v2/bid/schedules/${e}/bid-bounds`);return t}async function R0(e,t=14){const{data:n}=await $.get(`/v2/bid/schedules/${e}/sparkline`,{days:t});return n}async function x0(e,t=7){const{data:n}=await $.get(`/v2/bid/schedules/${e}/timeline`,{days:t});return n}async function L0(e){var t;try{const{data:n}=await $.get(`/v1/bid/deactivation-rules/${e}`);return Array.isArray(n)?n:[]}catch(n){if(n&&typeof n=="object"&&"response"in n&&((t=n.response)==null?void 0:t.status)===404)return[];throw n}}async function O0(e,t){const{data:n}=await $.put(`/v1/bid/deactivation-rules/${e}`,{rules:t});return Array.isArray(n)?n:[]}async function C0(e,t){const n={};(t==null?void 0:t.adId)!==void 0&&(n.ad_id=t.adId),t!=null&&t.since&&(n.since=t.since),t!=null&&t.source&&(n.source=t.source),(t==null?void 0:t.limit)!==void 0&&(n.limit=t.limit),(t==null?void 0:t.offset)!==void 0&&(n.offset=t.offset);const{data:r}=await $.get(`/v1/bid/history/${e}`,n);return r}async function M0(e,t={}){var a;const n={limit:t.limit??200};t.offset&&(n.offset=t.offset),t.q&&(n.q=t.q),(a=t.adIds)!=null&&a.length&&(n.ad_ids=t.adIds.join(","));const{data:r,headers:o}=await $.get(`/v1/bid/ads/${e}`,n),s=Array.isArray(r)?r:[],i=Number(o==null?void 0:o["x-total-count"]);return{items:s,total:Number.isFinite(i)&&i>=0?i:s.length}}async function P0(e,t,n){const r={};n!=null&&n.since&&(r.since=n.since),n!=null&&n.until&&(r.until=n.until),n!=null&&n.bucket&&(r.bucket=n.bucket);const{data:o}=await $.get(`/v1/bid/positions/${e}/${t}`,r);return o}const Qd={low:20,normal:50,high:90};async function I0(e){const t={profile_id:Number(e.profileId),ad_id:e.adId,priority:Qd[e.priority??"normal"],scheduled_at:e.scheduleAt??null},{data:n}=await $.post("/bid/scrape/enqueue",t);return n}async function D0(e){const t={profile_id:Number(e.profileId),ad_id:e.adId},{data:n}=await $.post("/bid/scrape/run-now",t);return n}async function B0(e){const{data:t}=await $.get("/v2/bid/profile-settings",{profileId:e});return t}async function N0(e){if(e.length===0)return[];const{data:t}=await $.post("/v2/bid/profile-settings/batch",{profileIds:e.map(Number)});return t}async function $0(e,t){const{data:n}=await $.patch("/v2/bid/profile-settings",{profileId:Number(e),isEnabled:t});return n}async function F0(e,t,n,r){const{data:o}=await $.post(`/v2/bid/schedules/${e}/copy`,{targetProfileIds:t,copySchedule:n,copyBudget:r});return o}async function U0(e,t){const{data:n}=await $.post(`/v2/bid/schedules/${t}/duplicate`,{});return _n(n,e)}const Po="session_id",cn="ad_promo_code",Zd=30*24*60*60*1e3,Ga=/^[A-Za-z0-9]{4,32}$/,Wn=["utm_source","utm_medium","utm_campaign","utm_content"],Ka="analytics_referrer",ef=128,tf=64;function Rs(e){return e!==null&&e.length>0&&e.length<=ef}function Ur(e){return e!==null&&e.length>0&&e.length<=tf}function Xa(){try{for(const e of Wn){const t=localStorage.getItem(e);t!==null&&!Rs(t)&&localStorage.removeItem(e)}}catch{}}function H0(e){return e.trim().toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_-]/g,"")}function Ya(){try{if(Xa(),Wn.some(n=>localStorage.getItem(n)!==null))return;const e=new URLSearchParams(window.location.search);let t=!1;for(const n of Wn){const r=e.get(n);Rs(r)&&(localStorage.setItem(n,r),t=!0)}t&&document.referrer&&localStorage.setItem(Ka,document.referrer)}catch{}}function nf(){try{const e=new URLSearchParams(window.location.search).get("promo");if(!e||!Ga.test(e))return;localStorage.setItem(cn,JSON.stringify({code:e.toUpperCase(),saved_at:Date.now()}))}catch{}}function q0(){try{const e=localStorage.getItem(cn);if(!e)return null;const t=JSON.parse(e);if(typeof t!="object"||t===null||typeof t.code!="string"||typeof t.saved_at!="number")return localStorage.removeItem(cn),null;const{code:n,saved_at:r}=t;return!Ga.test(n)||!Number.isFinite(r)||r<0||Date.now()-r>Zd?(localStorage.removeItem(cn),null):n.toUpperCase()}catch{try{localStorage.removeItem(cn)}catch{}return null}}function ki(){try{localStorage.removeItem(cn)}catch{}}function rf(){Ya(),nf();try{const e=new URLSearchParams(window.location.search).get("landing_sid");if(Ur(e))Z.setRaw(Po,e);else if(!Ur(Z.getRaw(Po))){const t=typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`;Z.setRaw(Po,t)}}catch{}setTimeout(()=>{P(async()=>{const{initAnalyticsFlush:e}=await Promise.resolve().then(()=>Qr);return{initAnalyticsFlush:e}},void 0).then(({initAnalyticsFlush:e})=>e())},0)}
10const Io=20,mr=new Intl.NumberFormat("ru-RU",{style:"currency",currency:"RUB",minimumFractionDigits:2,maximumFractionDigits:2}),Ln=e=>e==null?0:Number(e),Ja=at("billing",()=>{const e=k(null),t=k([]),n=k([]),r=k(0),o=k(1),s=k({}),i=k(!1),a=k([]),l=k(null),c=k(null),d=k(null),h=k(!1),m=k(null),g=k(null),y=k(!1),S=k(null),w=k(Bn),p=k(!1),b=k(!1),O=k(null),A=k(null),N=k(null),q=k(null),K=k("week"),ke=new Map,Ie=new Set,M=k("idle"),ee=k(!1),ue=k(!1),U=k(!1),Q=k(!1),G=k(!1),j=k(!1),ne=k(!1),he=B(()=>{var u;return Ln((u=e.value)==null?void 0:u.balance_rub)}),ve=B(()=>{var u;return Ln((u=e.value)==null?void 0:u.bonus_balance_rub)}),Ke=B(()=>he.value+ve.value),$e=B(()=>mr.format(Ke.value)),_e=B(()=>mr.format(he.value)),le=B(()=>mr.format(ve.value)),be=B(()=>{var u;return((u=l.value)==null?void 0:u.billing_status)==="suspended"||t.value.some(v=>v.status==="suspended")}),Oe=B(()=>{var u;return((u=l.value)==null?void 0:u.billing_status)==="grace"}),E=B(()=>{const u=Date.now();return t.value.filter(v=>v.status==="active"?!0:v.status==="cancelled"?(v.expires_at?Date.parse(v.expires_at):0)>u:!1)}),I=B(()=>q.value?q.value.can_use_ai:e.value?e.value.can_use_ai&&Ke.value>0:Ke.value>0),J=B(()=>{var u;return((u=q.value)==null?void 0:u.estimated_days_left)??null}),we=B(()=>{var u;return Ln((u=q.value)==null?void 0:u.avg_daily_spend)}),me=B(()=>{var u;return Ln((u=q.value)==null?void 0:u.forecast_daily_spend)}),Ne=B(()=>Math.max(1,Math.ceil(r.value/Io))),Se=B(()=>n.value.length<r.value),Re=u=>mr.format(Ln(u));async function L(){ee.value=!0;try{const{data:u}=await $.get("/billing/me");u.wallet!=null&&(e.value=u.wallet),u.subscriptions!=null&&(t.value=u.subscriptions),u.perms!=null&&(l.value=u.perms)}finally{ee.value=!1}}async function W(){ue.value=!0;try{const{data:u}=await $.get("/billing/wallet");e.value=u}finally{ue.value=!1}}const de=W;async function ye(){const{data:u}=await $.get("/billing/perms");l.value=u}async function H(){try{c.value=await Jd()}catch{}}async function Ae(){h.value=!0;try{const{data:u}=await $.get("/billing/space-entitlements");d.value=u}finally{h.value=!1}}async function z(u=1,v){var x;U.value=!0,v&&(s.value=v);try{const D={page:u,per_page:Io},se=s.value;(x=se.type)!=null&&x.length&&(D.type=se.type.join(",")),se.dateFrom&&(D.date_from=se.dateFrom),se.dateTo&&(D.date_to=se.dateTo);const{data:ge}=await $.get("/billing/transactions",D);n.value=ge.items,r.value=ge.total,o.value=ge.page}finally{U.value=!1}}async function De(){var u;if(!(U.value||i.value||!Se.value)){i.value=!0;try{const v={page:o.value+1,per_page:Io},x=s.value;(u=x.type)!=null&&u.length&&(v.type=x.type.join(",")),x.dateFrom&&(v.date_from=x.dateFrom),x.dateTo&&(v.date_to=x.dateTo);const{data:D}=await $.get("/billing/transactions",v),se=new Set(n.value.map(nt=>nt.id)),ge=D.items.filter(nt=>!se.has(nt.id));n.value=[...n.value,...ge],r.value=D.total,o.value=D.page}finally{i.value=!1}}}async function Fe(u){const v=u??K.value;K.value=v,Q.value=!0;try{const{data:x}=await $.get("/billing/wallet/usage",{period:v});if(K.value!==v)return;q.value=x}finally{K.value===v&&(Q.value=!1)}}async function Je(u=50,v=0){G.value=!0;try{const{data:x}=await $.get("/billing/payments",{limit:u,offset:v});a.value=x}finally{G.value=!1}}async function ce(){j.value=!0;try{const{data:u}=await $.get("/billing/subscriptions");t.value=u}finally{j.value=!1}}async function ct(){ne.value=!0;try{const{data:u}=await $.get("/billing/referrals");m.value=u}finally{ne.value=!1}}async function gt(){y.value=!0;try{const{data:u}=await $.get("/billing/payment-methods/me");g.value={...u,title:u.title??null,card_first6:u.card_first6??null,card_last4:u.card_last4??null,card_type:u.card_type??null}}catch{g.value=null}finally{y.value=!1}}async function tn(){await $.delete("/billing/payment-methods/me"),g.value=null}const Tt=k(null),$t=k(!1),er=u=>({...u,last_auto_topup_at:u.last_auto_topup_at??null,paused_until:u.paused_until??null,paused_reason:u.paused_reason??null,consent_offer_version:u.consent_offer_version??null,consent_accepted_at:u.consent_accepted_at??null,forecast_days_left:u.forecast_days_left??null});async function tr(){$t.value=!0;try{const{data:u}=await $.get("/billing/auto-topup/settings"),v=er(u);return Tt.value=v,v}catch{return Tt.value=null,null}finally{$t.value=!1}}async function po(u){const{data:v}=await $.put("/billing/auto-topup/settings",{...u,consent_accepted:u.consent_accepted??!1}),x=er(v);return Tt.value=x,x}async function nn(){const{data:u}=await $.post("/billing/auto-topup/preview",{});return u}async function Ft(u=20){const{data:v}=await $.get("/billing/auto-topup/log",{limit:u});return v.map(x=>({...x,payment_id:x.payment_id??null,daily_rate_rub:x.daily_rate_rub??null,days_left_at_trigger:x.days_left_at_trigger??null,balance_at_trigger_rub:x.balance_at_trigger_rub??null,error_code:x.error_code??null,result:x.result}))}async function En(u,v){const{data:x}=await $.post("/billing/payments",{...u,description:u.description??"Ðополнение коÑелÑка",save_payment_method:u.save_payment_method??!1,use_saved_method:u.use_saved_method??!1,captcha_token:v??null},void 0,{_noRateLimitRetry:!0}),D=Number(x.amount_rub);return x.payment_id&&Number.isFinite(D)&&D>0&&ke.set(x.payment_id,D),W(),x}function nr(u,v){if(e.value==null){W();return}const x={...e.value};u!=null&&(x.balance_rub=String(u)),v!=null&&(x.bonus_balance_rub=String(v)),e.value=x}function rr(u,v){if(u){if(Ie.has(u))return;Ie.add(u)}const x=u?ke.get(u):void 0,D=Number(v??x??0);Kd().show(D,u??void 0),bt(),ki(),L(),gt(),u&&ke.delete(u)}async function Sn(){try{const{data:u}=await $.get("/billing/billing-email");S.value=u.email??null}catch{S.value=null}}async function or(u=!1){if(!b.value&&!(p.value&&!u)){b.value=!0;try{const{data:v}=await $.get("/billing/catalog");w.value=Gd(v),p.value=!0}catch{}finally{b.value=!1}}}async function ho(){const{data:u}=await $.get("/billing/payments/pending");return u??null}async function mo(u){const{data:v}=await $.get(`/billing/payments/${u}/status`);return v}async function vt(u){try{return await u()}catch(v){throw L().catch(()=>{}),v}}async function yo(u,v=1,x,D){return vt(async()=>{const se={feature:u,quantity:v,idempotency_key:x??null,cycle_minutes:D??null},{data:ge}=await $.post("/billing/subscriptions",se);return await Promise.all([W(),ce()]),ge})}async function _t(u,v){return vt(async()=>{const{data:x}=await $.patch("/billing/subscriptions/bid-slot/cycle",{new_cycle:u,idempotency_key:v??null});return await Promise.all([W(),ce()]),x})}async function kn(u){return vt(async()=>{await $.delete(`/billing/subscriptions/${u}`),await Promise.all([ce(),W()])})}async function Xe(u){return vt(async()=>{const{data:v}=await $.post(`/billing/subscriptions/${u}/restore`);return await Promise.all([ce(),W()]),v})}async function go(u,v,x,D){return vt(async()=>{const{data:se}=await $.patch(`/billing/subscriptions/${u}/quantity`,{new_quantity:v,idempotency_key:x??null,pause_profile_ids:(D==null?void 0:D.pauseIds)??null,unpause_profile_ids:(D==null?void 0:D.unpauseIds)??null});return await Promise.all([W(),ce()]),se})}async function vo(u,v){const{data:x}=await $.post("/billing/subscriptions/switch",{target:u,items:v??null,dry_run:!0});return x}async function _o(u,v,x,D){return vt(async()=>{const{data:se}=await $.post("/billing/subscriptions/switch",{target:u,items:v??null,dry_run:!1,idempotency_key:x??null,pause_profile_ids:(D==null?void 0:D.pauseIds)??null,unpause_profile_ids:(D==null?void 0:D.unpauseIds)??null});return await L(),se})}async function sr(u,v){const{data:x}=await $.post("/billing/subscriptions/builder/apply",{items:u,bid_slot:v,dry_run:!0});return x}async function Rt(u,v,x,D){return vt(async()=>{const{data:se}=await $.post("/billing/subscriptions/builder/apply",{items:u,bid_slot:v,pause_profile_ids:(D==null?void 0:D.pauseIds)??null,unpause_profile_ids:(D==null?void 0:D.unpauseIds)??null,idempotency_key:x??null,dry_run:!1});return await L(),se})}async function Ut(u,v,x){return vt(async()=>{const{data:D}=await $.post("/billing/subscriptions/restore-suspended",{subscription_ids:u??null,idempotency_key:v??null,unpause_profile_ids:x??null});return await L(),D})}async function An(u,v,x){const D={code:u,amount_rub:v!=null&&v!==""?v:void 0,captcha_token:x||void 0},{data:se}=await $.post("/billing/promo/apply",D,void 0,{_businessRateLimit:!0});return v==null&&se.promo_type==="percent"?(O.value=se.code,A.value=se.promo_value,N.value=se.max_discount_rub??null):await W(),se}function bt(){O.value=null,A.value=null,N.value=null}function ir(){bt(),ki(),M.value="idle"}async function ar(u,v,x){const D={code:u,amount_rub:v,captcha_token:x||void 0},{data:se}=await $.post("/billing/promo/apply",D);return se}async function T(u,v){await $.post("/billing/referrals/bind",{referral_code:u,captcha_token:v}),await ct()}async function R(u){const{data:v}=await $.put("/billing/referrals/code",{code:u});return m.value&&(m.value={...m.value,referral_code:v.referral_code}),v.referral_code}function _(){e.value=null,t.value=[],n.value=[],r.value=0,o.value=1,s.value={},a.value=[],l.value=null,c.value=null,d.value=null,m.value=null,q.value=null,g.value=null,ke.clear(),Ie.clear(),M.value="idle",bt()}return{wallet:e,subscriptions:t,transactions:n,transactionsTotal:r,transactionsPage:o,transactionsFilters:s,payments:a,perms:l,bidSlotsUsage:c,entitlements:d,isLoadingEntitlements:h,referrals:m,usage:q,usagePeriod:K,isLoadingMe:ee,isLoadingWallet:ue,isLoadingTx:U,isLoadingTransactions:U,isLoadingMoreTransactions:i,isLoadingUsage:Q,isLoadingPayments:G,isLoadingSubscriptions:j,isLoadingReferrals:ne,isLoadingSavedPaymentMethod:y,savedPaymentMethod:g,billingEmail:S,catalog:w,catalogLoaded:p,isLoadingCatalog:b,pendingPromoCode:O,pendingPromoValue:A,pendingPromoMaxDiscount:N,adPromoStatus:M,balanceRub:he,bonusRub:ve,totalRub:Ke,formattedBalance:$e,formattedMainBalance:_e,formattedBonus:le,isSuspended:be,isInGrace:Oe,entitledSubscriptions:E,canUseAi:I,estimatedDays:J,avgDailySpend:we,forecastDailySpend:me,transactionsTotalPages:Ne,hasMoreTransactions:Se,formatRub:Re,fetch
10Me:L,fetchWallet:W,fetchBalance:de,fetchPerms:ye,fetchBidSlotsUsage:H,fetchSpaceEntitlements:Ae,fetchTransactions:z,loadMoreTransactions:De,fetchUsage:Fe,fetchPayments:Je,fetchSubscriptions:ce,fetchReferrals:ct,createPayment:En,applyWalletDelta:nr,notifyTopupSucceeded:rr,fetchBillingEmail:Sn,fetchCatalog:or,getPendingPayment:ho,getPaymentStatus:mo,fetchSavedPaymentMethod:gt,unbindSavedPaymentMethod:tn,autoTopupSettings:Tt,isLoadingAutoTopup:$t,fetchAutoTopupSettings:tr,updateAutoTopupSettings:po,previewAutoTopupDefaults:nn,fetchAutoTopupLog:Ft,subscribe:yo,changeBidSlotCycle:_t,cancelSubscription:kn,restoreSubscription:Xe,changeQuantity:go,previewSwitch:vo,switchTariff:_o,previewBuilderApply:sr,applyBuilderPlan:Rt,restoreSuspended:Ut,applyPromo:An,previewPromo:ar,clearPendingPromo:bt,dismissPromo:ir,bindReferral:T,updateReferralCode:R,reset:_}}),of=()=>{const e=Date.now(),t=Math.floor(Math.random()*1e4);return`${e}${t}`};class Ai{constructor(){oe(this,"queue",[]);oe(this,"locked",!1)}lock(){return this.locked?new Promise(t=>{this.queue.push(t)}):(this.locked=!0,Promise.resolve())}unlock(){if(this.queue.length>0){const t=this.queue.shift();t&&t()}else this.locked=!1}async runExclusive(t){await this.lock();try{return await t()}finally{this.unlock()}}}const qt=class qt{constructor(){oe(this,"socket",null);oe(this,"url",`wss://${hd}/ws`);oe(this,"requestRegister",new Map);oe(this,"responseRegister",new Map);oe(this,"eventListeners",new Map);oe(this,"requestRegisterMutex",new Ai);oe(this,"responseRegisterMutex",new Ai);oe(this,"queueMessages",[]);oe(this,"reconnectAttempts",0);oe(this,"maxReconnectAttempts",3);oe(this,"reconnectDelay",7e3);oe(this,"longReconnectDelay",9e4);oe(this,"reconnectTimeout",null);oe(this,"authAckTimeout",null);oe(this,"isAuthConfirmed",!1);oe(this,"isOnline",navigator.onLine);oe(this,"state",Kn({isConnected:!1}));oe(this,"lastRxAt",0);oe(this,"watchdogTimer",null);oe(this,"reconnectListeners",new Set);oe(this,"onOnline",()=>{this.isOnline=!0,this.reconnect()});oe(this,"onOffline",()=>{var t;this.isOnline=!1,this.state.isConnected=!1,(t=this.socket)==null||t.close()});oe(this,"onVisible",()=>{var n;if(document.visibilityState!=="visible")return;const t=!this.isOnline;if(this.isOnline=navigator.onLine,!!this.isOnline){if(t){this.forceReconnect();return}this.state.isConnected&&((n=this.socket)==null?void 0:n.readyState)===WebSocket.OPEN?Date.now()-this.lastRxAt>qt.STALE_MS&&(Lt(),this.forceReconnect()):this.connect()}});oe(this,"onStorageChange",t=>{var n;t.key===`${Yl}userspace`&&t.newValue&&(Lt(),(n=this.socket)==null||n.close())});window.addEventListener("online",this.onOnline),window.addEventListener("offline",this.onOffline),window.addEventListener("storage",this.onStorageChange),document.addEventListener("visibilitychange",this.onVisible),window.addEventListener("pageshow",this.onVisible),window.addEventListener("focus",this.onVisible)}connect(){if(!this.isOnline||this.socket&&this.socket.readyState<=WebSocket.OPEN||this.reconnectTimeout)return;const t=Pt().accessToken,n=Il()?uo().currentSpaceId:Z.getRaw("userspace");!t||!n||(this.socket=new WebSocket(this.url,["avibox.v1",t,n]),this.socket.onopen=()=>{this.state.isConnected=!0,this.lastRxAt=Date.now(),this.waitForAck(),this.startWatchdog(),this.reconnectAttempts=0,this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.queueMessages.forEach(([r,o])=>this.send(r,o)),this.queueMessages=[],this.reconnectListeners.forEach(r=>{try{r()}catch(o){Lt("WS re-hydration callback failed:",o)}})},this.socket.onmessage=r=>{this.lastRxAt=Date.now();let o;try{o=JSON.parse(r.data)}catch(s){Lt("WS dropped non-JSON frame:",s);return}this.handleMessage(o)},this.socket.onerror=()=>{var r;(r=this.socket)==null||r.close()},this.socket.onclose=()=>{this.state.isConnected=!1,this.stopWatchdog(),this.reconnect()})}waitForAck(){this.isAuthConfirmed=!1,this.authAckTimeout=setTimeout(()=>{var t;this.isAuthConfirmed||(Lt(),(t=this.socket)==null||t.close())},1500)}async handle401(){var t;try{await $.refreshToken()}catch{return}(t=this.socket)==null||t.close()}handleMessage(t){var a;const{messageType:n,requestId:r,body:o,method:s,status:i}=t;if(s==="/ping"){(a=this.socket)==null||a.send(JSON.stringify({msg:"pong"}));return}if(s==="/auth/ack"){this.isAuthConfirmed=!0,this.authAckTimeout&&clearTimeout(this.authAckTimeout);return}if(i===401){this.handle401();return}n==="response"?this.handleResponse(r,o):this.handleEvent(s,r,o)}handleResponse(t,n){this.responseRegisterMutex.runExclusive(()=>{const r=this.responseRegister.get(t);r&&r(JSON.parse(n)),this.responseRegister.delete(t)})}handleEvent(t,n,r){let o=r;if(typeof r=="string")try{o=JSON.parse(r)}
10catch{Lt("WS body is not valid JSON:",r)}const s=this.eventListeners.get(t);if(s)for(const i of s)i(o);this.requestRegisterMutex.runExclusive(()=>{this.requestRegister.delete(n)})}send(t,n){var r;if(!this.isOnline){this.queueMessages.push([t,n]);return}if(this.state.isConnected&&((r=this.socket)==null?void 0:r.readyState)===WebSocket.OPEN){const o={messageType:t.messageType,requestId:t.requestId||of(),method:t.method,body:JSON.stringify(t.body)};this.socket.send(JSON.stringify(o)),o.messageType==="requestWithResponse"&&n&&(this.responseRegister.set(o.requestId,n),setTimeout(()=>{this.responseRegisterMutex.runExclusive(()=>{const s=this.responseRegister.get(o.requestId);s&&s(null,new Error("WS timeout")),this.responseRegister.delete(o.requestId)})},1e3))}else this.queueMessages.push([t,n]),(!this.socket||this.socket.readyState===WebSocket.CLOSED)&&this.connect()}reconnect(){this.reconnectTimeout||!this.isOnline||(this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.connect()},this.reconnectAttempts<this.maxReconnectAttempts?this.reconnectDelay:this.longReconnectDelay),this.reconnectAttempts=this.reconnectAttempts<this.maxReconnectAttempts?this.reconnectAttempts+1:0)}startWatchdog(){this.stopWatchdog(),this.watchdogTimer=setInterval(()=>{var t;this.state.isConnected&&Date.now()-this.lastRxAt>qt.STALE_MS&&(Lt(`WS silent ${Math.round((Date.now()-this.lastRxAt)/1e3)}s (no server ping/traffic) â assume dead, reconnect`),(t=this.socket)==null||t.close())},qt.WATCHDOG_MS)}stopWatchdog(){this.watchdogTimer&&(clearInterval(this.watchdogTimer),this.watchdogTimer=null)}onReconnect(t){if(this.reconnectListeners.add(t),this.state.isConnected)try{t()}catch(n){Lt("WS re-hydration immediate callback failed:",n)}}offReconnect(t){this.reconnectListeners.delete(t)}on(t,n){let r=this.eventListeners.get(t);r||(r=new Set,this.eventListeners.set(t,r)),r.add(n)}off(t,n){if(n===void 0){this.eventListeners.delete(t);return}const r=this.eventListeners.get(t);r&&(r.delete(n),r.size===0&&this.eventListeners.delete(t))}forceReconnect(){var n;this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),setTimeout(()=>{this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.connect()},0),(n=this.socket)==null||n.close()}destroy(){var t;window.removeEventListener("online",this.onOnline),window.removeEventListener("offline",this.onOffline),window.removeEventListener("storage",this.onStorageChange),document.removeEventListener("visibilitychange",this.onVisible),window.removeEventListener("pageshow",this.onVisible),window.removeEventListener("focus",this.onVisible),this.stopWatchdog(),this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.authAckTimeout&&(clearTimeout(this.authAckTimeout),this.authAckTimeout=null),(t=this.socket)==null||t.close(),this.socket=null,this.state.isConnected=!1}};oe(qt,"STALE_MS",6e4),oe(qt,"WATCHDOG_MS",15e3);let Zo=qt;const xs=new Zo;function es(){window.location.reload()}function sf(e){window.location.replace(e)}const uo=at("userspace",()=>{const e=k(null),t=k(null),n=k(!1);let r=0,o=0,s=0,i=0;const a=k([]),l=k(Z.getRaw("userspaceAvatar")),c=k(Z.getRaw("userspace")),d=M=>{c.value!==M&&(r+=1,s=0,i=0,e.value=null,t.value=null,n.value=!1),c.value=M,M?Z.setRaw("userspace",M):Z.remove("userspace")},h=B(()=>{var ee;if(t.value===c.value&&((ee=e.value)!=null&&ee.user_role))return e.value.user_role;const M=a.value.find(ue=>ue.space_id===c.value);return(M==null?void 0:M.user_role)??null}),m=B(()=>h.value==="owner"),g=B(()=>{var M;return t.value===c.value?((M=e.value)==null?void 0:M.permissions)??[]:[]}),y=M=>{l.value=M,M?Z.setRaw("userspaceAvatar",M):Z.remove("userspaceAvatar"),e.value&&(e.value={...e.value,avatar_url:M})},S=(M,ee=c.value)=>{if(!ee||ee!==c.value)return;const ue=l.value??M.avatar_url??null;e.value={...M,avatar_url:ue},t.value=ee,M.avatar_url&&M.avatar_url!==l.value&&y(M.avatar_url),Z.setRaw("userspaceName",M.name)},w=async M=>{const ee=!!(M!=null&&M.silent),ue=c.value;if(!ue)return;const U=r,Q=++o;ee||(i+=1,n.value=!0);try{const{data:G}=await $.get("/userspace/info");if(U!==r||c.value!==ue||Q<s)return;s=Q,S(G,ue)}catch{}finally{!ee&&U===r&&(i=Math.max(0,i-1),n.value=i>0)}},p=k(!1);let b=!1;const O=async()=>
10{if(!p.value){p.value=!0;try{const{data:M}=await $.get("/userspace/list");a.value=M;const ee=c.value;if(!(ee&&M.some(U=>U.space_id===ee))){const U=M.find(Q=>Q.is_main);if(U){if(d(U.space_id),b&&ee){es();return}await w()}}b=!0}catch{}finally{p.value=!1}}},A=M=>{c.value===M.id&&e.value&&(e.value={...e.value,...M.name!==void 0?{name:M.name}:{},...M.description!==void 0?{description:M.description??""}:{}},M.name!==void 0&&Z.setRaw("userspaceName",M.name)),a.value=a.value.map(ee=>ee.space_id===M.id&&M.name!==void 0?{...ee,name:M.name}:ee)},N=(M,ee)=>{c.value===M&&e.value&&(e.value={...e.value,permissions:ee})},q=async M=>{if(c.value===M)return;$.abortAll(),d(M),l.value=null,Z.remove("userspaceAvatar"),e.value=null,t.value=null,xs.forceReconnect();const ee=Ts(),ue=Ja();await Promise.all([w(),ee.fetchUser(),ue.fetchSpaceEntitlements().catch(()=>{})])};return{mainSpaceInfo:e,isLoading:n,spaces:a,avatarLink:l,currentSpaceId:c,currentUserRole:h,isOwner:m,currentPermissions:g,setCurrentSpaceId:d,fetchMainSpaceInfo:w,fetchSpaces:O,setMainSpaceInfo:S,switchSpace:async M=>{if(c.value!==M){await q(M);try{await O()}catch{}es()}},openSpaceFromLink:async M=>c.value===M?"same":(a.value.length||await O(),a.value.some(ee=>ee.space_id===M)?(d(M),"switched"):"denied"),persistAvatar:y,applySpacePatch:A,applyMyPermissionsPatch:N,$reset:()=>{r+=1,s=0,i=0,e.value=null,t.value=null,a.value=[],l.value=null,c.value=null,n.value=!1,p.value=!1}}}),af=new Set(["profile","integrations","notifications","security","consents","autopayments","workspace","members","invitations","workspace-groups"]),lf=new Set(["autopayments","security","invitations","members"]),cf=new Set(["wallet","history","tariffs","partner"]),uf=new Set(["hub.avibox.ru"]),df=new Set(["wallet","history","tariffs"]);function ff(){const e=no(),t=Dl(Vd,null);async function n(r){const o=typeof r=="string"||r===null?r:r.action_url;if(!o)return;const s=co(),i=uo(),a=new URL(o,window.location.origin);if(a.origin!==window.location.origin&&!uf.has(a.host))return;const l=a.searchParams.get("settings"),c=a.searchParams.get("open")==="billing"?a.searchParams.get("tab")??"wallet":null,d=l!==null&&lf.has(l)||c!==null&&df.has(c);d&&a.searchParams.set("from","notification");const h=a.searchParams.get("space");if(h&&h!==i.currentSpaceId){if((l!==null||a.searchParams.has("open"))&&a.pathname==="/"){const g=e.currentRoute.value;await e.push({path:g.path,query:{...g.query,...Object.fromEntries(a.searchParams)},hash:g.hash});return}await e.push(`${a.pathname}${a.search}${a.hash}`);return}if(l&&af.has(l)){t==null||t.open(l,a.searchParams.get("sub"));const m=e.currentRoute.value,g=Object.fromEntries(a.searchParams);delete g.space,await e.replace({path:m.path,query:{...m.query,...g},hash:m.hash});return}if(c!==null){const m=cf.has(c)?c:"wallet";if(d){const g=e.currentRoute.value;await e.replace({path:g.path,query:{...g.query,from:"notification"},hash:g.hash}),s.isOpen&&s.activeTab===m&&(s.close(),await Un())}s.open(m);return}if(a.searchParams.get("open")==="avito-connect"){await e.push(`${a.pathname}${a.search}${a.hash}`);return}await e.push(`${a.pathname}${a.search}${a.hash}`)}return{openAction:n}}const pf=150,Rr=Kn({isKeyboardOpen:!1}),hf=()=>{var e;return navigator.maxTouchPoints>0||((e=window.matchMedia)==null?void 0:e.call(window,"(pointer: coarse)").matches)===!0};function mf(){if(typeof window>"u"||!window.visualViewport)return Rr.isKeyboardOpen=!1,()=>{};const e=window.visualViewport,t=hf();let n=null,r=e.width,o=Math.max(e.height,window.innerHeight),s=-1,i=-1;const a=()=>{n=null;const c=e.height,d=e.width;c===s&&d===i||(s=c,i=d,document.documentElement.style.setProperty("--visual-viewport-height",`${c}px`),Math.abs(d-r)>1?(r=d,o=c):o=Math.max(o,c),Rr.isKeyboardOpen=t&&o-c>pf)},l=()=>{n===null&&(n=window.requestAnimationFrame(a))};return a(),e.addEventListener("resize",l),e.addEventListener("scroll",l),()=>{e.removeEventListener("resize",l),e.removeEventListener("scroll",l),n!==null&&window.cancelAnimationFrame(n),Rr.isKeyboardOpen=!1}}const ts=new Set(["/","/avito_profiles","/messages","/analytics/dashboard","/monitoring"]),yf=k(0),gf=k(0),ht=[];let St=null,Gt=0,vf=0,Ti=!1,Hr=!1,qr=!1,Mn=null,ns=0,yr=null,zr=!1,Vr=!1;const _f=()=>{var t;const e=(t=history.state)==null?void 0:t.position;return typeof e=="number"&&Number.isFinite(e)?e:null},Ls=()=>{const e=ja();return e==="browser"||e==="pwa"},rs=()=>{yf.value=ht.length},Qa=()=>ht.filter(e=>e.marked).length,Os=e=>{Ls()&&(history.pushState({...history.state,avbLayer:e},""),Gt++)},bf=()=>{queueMicrotask(()=>
10{if(!Ls()||Hr)return;const e=Gt-Qa();e<=0||(Hr=!0,qr=!0,history.go(-e))})};function Za(e,t,n={}){const r=`avb-layer-${++vf}`;let o=!1;const s=()=>{if(o)return;o=!0;const a=!zr;ht.push({id:r,onBack:e,blocking:n.blocking??!1,backHandler:n.backHandler,marked:a}),rs(),a&&Os(r)},i=()=>{if(!o)return;o=!1;const a=ht.findIndex(l=>l.id===r);a!==-1&&ht.splice(a,1),rs(),bf()};return t.value&&s(),{enable:s,disable:i}}function z0(e,t,n={}){const r=Za(e,t,n);Ce(t,o=>o?r.enable():r.disable()),Zt(r.disable)}function el(e=!1){var n;const t=ht.at(-1);return t?(n=t.backHandler)!=null&&n.call(t)||t.blocking?(e&&t.marked&&Os(t.id),"layer"):(t.onBack(),"layer"):!St||ja()==="pwa"&&ts.has(St.currentRoute.value.path)?"root":ns>0?(St.back(),"route"):Vr?(Vr=!1,St.back(),"route"):ts.has(St.currentRoute.value.path)?"root":(St.replace("/"),"route")}const Ri=()=>{zr=!1;for(const e of ht)e.marked||(e.marked=!0,Os(e.id))};function wf(e){St=e,e.onError(Ri),e.afterEach((t,n,r)=>{if(r){Ri();return}zr=!1;const o=_f();o!==null&&((yr===null||o<yr)&&(yr=o),ns=o-yr,gf.value=ns)}),e.beforeEach(async(t,n)=>{if(t.path===n.path||(zr=!0,!ht.length))return;const r=[...ht].reverse();ht.splice(0),rs();for(const o of r)o.onBack();if(Gt>0&&Ls()){const o=Gt;Hr=!0,qr=!0,await new Promise(s=>{Mn=s,history.go(-o)})}})}const xi=()=>{const e=St==null?void 0:St.currentRoute.value.fullPath;e&&e!==`${location.pathname}${location.search}${location.hash}`&&history.replaceState(history.state,"",e)};function Ef(){Ti||typeof window>"u"||(Ti=!0,window.addEventListener("popstate",e=>{if(qr){e.stopImmediatePropagation(),qr=!1,Hr=!1,Gt=Qa(),xi(),Mn==null||Mn(),Mn=null;return}if(!ht.at(-1)){e.state===null&&(Vr=!1);return}e.stopImmediatePropagation(),Gt=Math.max(0,Gt-1),el(!0),xi()},{capture:!0}))}function Sf(){if(!(typeof window>"u"||!vn()||history.state!==null)&&!ts.has(location.pathname)){const e=`${location.pathname}${location.search}${location.hash}`;history.replaceState(null,"","/avito_profiles"),history.pushState(null,"",e),Vr=!0}}const Li=24,kf=10,Af=64,Tf=40,Rf=250,Ve=Kn({active:!1,side:"left",y:0,progress:0,armed:!1}),xf=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Lf=()=>/Android/i.test(navigator.userAgent),Of=()=>{Ve.active=!1,Ve.progress=0,Ve.armed=!1},Cf=e=>e instanceof Element&&!!e.closest("[data-no-edge-swipe]"),Mf=(e,t)=>{if(!(e instanceof Element))return!1;for(let n=e;n;n=n.parentElement){const{overflowX:r}=window.getComputedStyle(n);if(!["auto","scroll"].includes(r)||n.scrollWidth<=n.clientWidth)continue;const o=n.scrollWidth-n.clientWidth;if(t==="left"?n.scrollLeft>0:n.scrollLeft<o)return!0}return!1};function Pf(){if(typeof window>"u"||ks()!=="browser"||Lf()||xf()&&!vn())return()=>{};let e=null;const t=()=>{e=null,Of()},n=s=>{if(s.touches.length!==1||Cf(s.target))return;const i=s.touches[0],a=i.clientX<=Li?"left":i.clientX>=window.innerWidth-Li?"right":null;a&&(Mf(s.target,a)||(e={side:a,startX:i.clientX,startY:i.clientY,startedAt:Date.now(),locked:!1}))},r=s=>{if(!e||s.touches.length!==1){e&&t();return}const i=s.touches[0],a=i.clientX-e.startX,l=i.clientY-e.startY,c=e.side==="left"?a:-a;if(!e.locked){if(Math.max(Math.abs(a),Math.abs(l))<kf)return;if(Math.abs(l)>=Math.abs(a)||c<=0){t();return}e.locked=!0,Ve.active=!0,Ve.side=e.side}s.preventDefault(),Ve.y=i.clientY,Ve.progress=Math.min(1,Math.max(0,c/Af)),Ve.armed=Ve.progress>=1},o=s=>{if(!e)return;const i=s.changedTouches[0],a=i?e.side==="left"?i.clientX-e.startX:e.startX-i.clientX:0,l=e.locked&&a>=Tf&&Date.now()-e.startedAt<Rf,c=Ve.armed||l;t(),c&&el()};return document.addEventListener("touchstart",n,{capture:!0,passive:!0}),document.addEventListener("touchmove",r,{capture:!0,passive:!1}),document.addEventListener("touchend",o,{capture:!0,passive:!0}),document.addEventListener("touchcancel",t,{capture:!0,passive:!0}),()=>{document.removeEventListener("touchstart",n,!0),document.removeEventListener("touchmove",r,!0),document.removeEventListener("touchend",o,!0),document.removeEventListener("touchcancel",t,!0),t()}}/** 11 * @license lucide-vue-next v0.575.0 - ISC 12 * 13 * This source code is licensed under the ISC license. 14 * See the LICENSE file in the root directory of this source tree. 15 */const If=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** 16 * @license lucide-vue-next v0.575.0 - ISC 17 * 18 * This source code is licensed under the ISC license. 19 * See the LICENSE file in the root directory of this source tree. 20 */const Oi=e=>e==="";/** 21 * @license lucide-vue-next v0.575.0 - ISC 22 * 23 * This source code is licensed under the ISC license. 24 * See the LICENSE file in the root directory of this source tree. 25 */const Df=(...e)=>
25e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 26 * @license lucide-vue-next v0.575.0 - ISC 27 * 28 * This source code is licensed under the ISC license. 29 * See the LICENSE file in the root directory of this source tree. 30 */const Ci=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** 31 * @license lucide-vue-next v0.575.0 - ISC 32 * 33 * This source code is licensed under the ISC license. 34 * See the LICENSE file in the root directory of this source tree. 35 */const Bf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** 36 * @license lucide-vue-next v0.575.0 - ISC 37 * 38 * This source code is licensed under the ISC license. 39 * See the LICENSE file in the root directory of this source tree. 40 */const Nf=e=>{const t=Bf(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** 41 * @license lucide-vue-next v0.575.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */var On={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** 46 * @license lucide-vue-next v0.575.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */const $f=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:o,"stroke-width":s,size:i=On.width,color:a=On.stroke,...l},{slots:c})=>it("svg",{...On,...l,width:i,height:i,stroke:a,"stroke-width":Oi(n)||Oi(r)||n===!0||r===!0?Number(o||s||On["stroke-width"])*24/Number(i):o||s||On["stroke-width"],class:Df("lucide",l.class,...e?[`lucide-${Ci(Nf(e))}-icon`,`lucide-${Ci(e)}`]:["lucide-icon"]),...!c.default&&!If(l)&&{"aria-hidden":"true"}},[...t.map(d=>it(...d)),...c.default?[c.default()]:[]]);/** 51 * @license lucide-vue-next v0.575.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Y=(e,t)=>(n,{slots:r,attrs:o})=>it($f,{...o,...n,iconNode:t,name:e},r);/** 56 * @license lucide-vue-next v0.575.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Ff=Y("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/** 61 * @license lucide-vue-next v0.575.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Uf=Y("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 66 * @license lucide-vue-next v0.575.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const xr=Y("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 71 * @license lucide-vue-next v0.575.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Mi=Y("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 76 * @license lucide-vue-next v0.575.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const Pi=Y("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 81 * @license lucide-vue-next v0.575.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Ii=Y("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 86 * @license lucide-vue-next v0.575.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Hf=Y("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 91 * @license lucide-vue-next v0.575.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const tl=Y("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 96 * @license lucide-vue-next v0.575.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const nl=Y("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 101 * @license lucide-vue-next v0.575.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const qf=Y("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 106 * @license lucide-vue-next v0.575.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const Di=Y("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/** 111 * @license lucide-vue-next v0.575.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const zf=Y("contact-round",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M17.915 22a6 6 0 0 0-12 0",key:"suqz9p"}
115],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 116 * @license lucide-vue-next v0.575.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const Bi=Y("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 121 * @license lucide-vue-next v0.575.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const Vf=Y("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 126 * @license lucide-vue-next v0.575.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const jf=Y("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 131 * @license lucide-vue-next v0.575.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Wf=Y("file-down",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 136 * @license lucide-vue-next v0.575.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const Lr=Y("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 141 * @license lucide-vue-next v0.575.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Gf=Y("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/** 146 * @license lucide-vue-next v0.575.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const Kf=Y("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/** 151 * @license lucide-vue-next v0.575.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const Do=Y("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 156 * @license lucide-vue-next v0.575.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const Ni=Y("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/** 161 * @license lucide-vue-next v0.575.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const Xf=Y("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]);/** 166 * @license lucide-vue-next v0.575.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const Yf=Y("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 171 * @license lucide-vue-next v0.575.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const Bo=Y("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 176 * @license lucide-vue-next v0.575.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const Jf=Y("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",ke
180y:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]);/** 181 * @license lucide-vue-next v0.575.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const rl=Y("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 186 * @license lucide-vue-next v0.575.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Qf=Y("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 191 * @license lucide-vue-next v0.575.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const Zf=Y("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 196 * @license lucide-vue-next v0.575.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const ep=Y("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 201 * @license lucide-vue-next v0.575.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const No=Y("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** 206 * @license lucide-vue-next v0.575.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const tp=Y("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);/** 211 * @license lucide-vue-next v0.575.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const np=Y("piggy-bank",[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]]);/** 216 * @license lucide-vue-next v0.575.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const gr=Y("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** 221 * @license lucide-vue-next v0.575.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const $o=Y("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 226 * @license lucide-vue-next v0.575.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const rp=Y("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
230y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 231 * @license lucide-vue-next v0.575.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const op=Y("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 236 * @license lucide-vue-next v0.575.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const Fo=Y("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 241 * @license lucide-vue-next v0.575.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const Nn=Y("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
245],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** 246 * @license lucide-vue-next v0.575.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const $i=Y("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 251 * @license lucide-vue-next v0.575.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const sp=Y("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);/** 256 * @license lucide-vue-next v0.575.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const ip=Y("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 261 * @license lucide-vue-next v0.575.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const Fi=Y("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 266 * @license lucide-vue-next v0.575.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const ap=Y("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]);/** 271 * @license lucide-vue-next v0.575.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const Uo=Y("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);/** 276 * @license lucide-vue-next v0.575.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const Cs=Y("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 281 * @license lucide-vue-next v0.575.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const lp=Y("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);/** 286 * @license lucide-vue-next v0.575.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const Ui=Y("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/** 291 * @license lucide-vue-next v0.575.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const cp=Y("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/** 296 * @license lucide-vue-next v0.575.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const Hi=Y("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 301 * @license lucide-vue-next v0.575.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const up=Y("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}
305],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 306 * @license lucide-vue-next v0.575.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const ol=Y("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 311 * @license lucide-vue-next v0.575.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const qi=Y("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),dp=Ee({__name:"EdgeBackIndicator",setup(e){const t=B(()=>({top:`${Ve.y}px`,opacity:String(.35+Ve.progress*.65),"--edge-back-offset":`${-28+Ve.progress*36}px`}));return(n,r)=>ie(Ve).active?(V(),re("div",{key:0,class:We(["edge-back-indicator",[`edge-back-indicator--${ie(Ve).side}`,{"edge-back-indicator--armed":ie(Ve).armed}]]),style:Dt(t.value),"aria-hidden":"true"},[fe(ie(Hf),{size:24,"stroke-width":2.5})],6)):Te("",!0)}}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},fp=Be(dp,[["__scopeId","data-v-db4a7df4"]]),pp=["role"],hp={class:"notice__content"},mp={key:0,class:"notice__title"},yp={key:0,class:"notice__action"},gp=Ee({__name:"Notice",props:{tone:{default:"info"},title:{},icon:{},live:{type:Boolean,default:!1}},setup(e){const t=e,n={info:rl,warning:Cs,danger:tl,success:nl},r=B(()=>t.icon??n[t.tone]),o=B(()=>t.live?t.tone==="warning"||t.tone==="danger"?"alert":"status":void 0);return(s,i)=>(V(),re("div",{class:We(["notice",`notice--${s.tone}`]),role:o.value},[(V(),Pe(Hn(r.value),{class:"notice__icon",size:16,"aria-hidden":"true"})),X("div",hp,[s.title?(V(),re("div",mp,Me(s.title),1)):Te("",!0),je(s.$slots,"default",{},void 0,!0)]),s.$slots.action?(V(),re("div",yp,[je(s.$slots,"action",{},void 0,!0)])):Te("",!0)],10,pp))}}),sl=Be(gp,[["__scopeId","data-v-b571945a"]]),vp=["type","disabled","aria-busy","aria-disabled","aria-label"],_p={key:0,class:"button-main__spinner","aria-hidden":"true"},bp={key:1,class:"button-main__icon-slot","aria-hidden":"true"},wp={key:2,class:"button-main__text"},Ep=Ee({__name:"ButtonCommon",props:{kind:{},type:{default:"button"},isActive:{type:Boolean},isDisabled:{type:Boolean},size:{default:"md"},iconOnly:{type:Boolean},icon:{default:""},ariaLabel:{},ai:{type:Boolean},aiState:{}},setup(e){const t=e,n=B(()=>[`button-main--${t.kind??"primary"}`,`button-main--${t.size}`,{"button-main--icon-only":t.iconOnly},{"button-main--ai":t.ai,"button-main--ai-busy":t.ai&&t.aiState==="busy","button-main--ai-done":t.ai&&t.aiState==="done"}]);return Bl(()=>{}),(r,o)=>(V(),re("button",{type:r.type,class:We(["button-main",n.value]),disabled:r.isDisabled||r.isActive,"aria-busy":r.isActive||void 0,"aria-disabled":r.
315isDisabled||void 0,"aria-label":r.ariaLabel||void 0},[r.isActive?(V(),re("span",_p)):Te("",!0),(r.icon||r.$slots.icon)&&!r.isActive?(V(),re("div",bp,[je(r.$slots,"icon",{},()=>[X("i",{class:We(r.icon)},null,2)],!0)])):Te("",!0),r.iconOnly?Te("",!0):(V(),re("span",wp,[je(r.$slots,"text",{},()=>[je(r.$slots,"default",{},void 0,!0)],!0)]))],10,vp))}}),At=Be(Ep,[["__scopeId","data-v-bbb361fc"]]),Sp={key:0,class:"pwa-update-banner"},kp={class:"pwa-update-banner__actions"},Ap=Ee({__name:"PwaUpdateBanner",props:{visible:{type:Boolean}},emits:["dismiss","update"],setup(e,{emit:t}){const n=t;return(r,o)=>(V(),Pe(mn,{name:"slide-up"},{default:xe(()=>[r.visible?(V(),re("div",Sp,[fe(sl,{class:"pwa-update-banner__notice",tone:"info",role:"status","aria-live":"polite"},{action:xe(()=>[X("div",kp,[fe(At,{class:"pwa-update-banner__dismiss",onClick:o[0]||(o[0]=s=>n("dismiss")),kind:"secondary",size:"sm"},{default:xe(()=>o[2]||(o[2]=[tt("Ðозже")])),_:1}),fe(At,{class:"pwa-update-banner__update",onClick:o[1]||(o[1]=s=>n("update")),size:"sm",kind:"primary"},{default:xe(()=>o[3]||(o[3]=[tt("ÐбновиÑÑ")])),_:1})])]),default:xe(()=>[o[4]||(o[4]=tt(" ÐоÑÑÑпно обновление "))]),_:1})])):Te("",!0)]),_:1}))}}),Tp=Be(Ap,[["__scopeId","data-v-bf7a8bcf"]]),jr=k(typeof navigator<"u"?navigator.onLine:!0);let Wr=!1,vr=0;const Rp=5e3;let $n=null;function il(){$n!==null&&(clearInterval($n),$n=null)}function ft(){typeof navigator>"u"||(jr.value=navigator.onLine,jr.value?il():$n===null&&($n=setInterval(ft,Rp)))}function al(){document.visibilityState==="visible"&&ft()}function xp(){Wr||typeof window>"u"||(window.addEventListener("online",ft,{passive:!0}),window.addEventListener("offline",ft,{passive:!0}),window.addEventListener("pageshow",ft,{passive:!0}),window.addEventListener("focus",ft,{passive:!0}),document.addEventListener("visibilitychange",al,{passive:!0}),Wr=!0,ft())}function Lp(){!Wr||typeof window>"u"||(window.removeEventListener("online",ft),window.removeEventListener("offline",ft),window.removeEventListener("pageshow",ft),window.removeEventListener("focus",ft),document.removeEventListener("visibilitychange",al),il(),Wr=!1)}function Op(){xp(),vr++,Zt(()=>{vr=Math.max(0,vr-1),vr===0&&Lp()});const e=B(()=>!jr.value);return{isOnline:jr,isOffline:e}}const Cp=2e3,Mp=3e4,os="avibox:session-retry";function Pp(e){return new Promise(t=>{const n=()=>{window.clearTimeout(r),window.removeEventListener("online",n),window.removeEventListener(os,n),t()},r=window.setTimeout(n,e);window.addEventListener("online",n,{once:!0}),window.addEventListener(os,n,{once:!0})})}function Ip(e,t){const n=Math.min(Mp,Cp*2**e);return Math.max(n,t??0)}async function Dp(e){const t=e.wait??Pp;for(let n=0;;n++)try{await e.restore();break}catch(r){if(!e.isRetryable(r))break;await t(Ip(n,e.retryAfterMs(r)))}e.onReady()}const Bp={class:"offline-banner__text"},Np=Ee({__name:"OfflineBanner",setup(e){const{isOnline:t}=Op();function n(){window.dispatchEvent(new Event(os))}const r=k(!t.value),o=k(!1);let s=null;return Ce(t,i=>{if(s&&(clearTimeout(s),s=null),!i){o.value=!1,r.value=!0;return}r.value=!0,s=setTimeout(()=>{r.value=!1,s=null},2500)},{immediate:!1}),(i,a)=>(V(),Pe(mn,{name:"offline-slide"},{default:xe(()=>[r.value&&!o.value||ie(Mt)?(V(),Pe(sl,{key:0,icon:ie(up),tone:!ie(Mt)&&ie(t)?"success":"warning",class:We(["offline-banner",{"offline-banner--interactive":ie(Mt)}]),role:"status","aria-live":"polite"},{action:xe(()=>[ie(Mt)?(V(),Pe(At,{key:0,class:"offline-banner__retry",type:"button",onClick:n,kind:"secondary",size:"sm"},{default:xe(()=>a[1]||(a[1]=[tt(" ÐовÑоÑиÑÑ ")])),_:1})):(V(),Pe(At,{key:1,class:"offline-banner__close",type:"button",ariaLabel:"СкÑÑÑÑ Ñведомление о ÑвÑзи",onClick:a[0]||(a[0]=l=>o.value=!0),iconOnly:"",kind:"quiet",size:"sm"},{icon:xe(()=>[fe(ie(ol),{size:14,"aria-hidden":"true"})]),_:1}))]),default:xe(()=>[X("span",Bp,Me(ie(Mt)?ie(In)?`СлиÑком много попÑÑок вÑ
ода â повÑоÑим ÑеÑез ${ie(In)} Ñ`:"ÐÐµÑ ÑвÑзи Ñ AviBOX HUB":ie(t)?"Соединение воÑÑÑановлено":"ÐÐµÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑÐµÐ½Ð¸Ñ Ðº инÑеÑнеÑÑ"),1)]),_:1},8,["icon","tone","class"])):Te("",!0)]),_:1}))}}),$p=Be(Np,[["__scopeId","data-v-e75d3ea4"]]),Fp=["aria-label"],Up=Ee({__name:"ClBtn",props:{ariaLabel:{default:"ÐакÑÑÑÑ"}},setup(e){return(t,n)=>(V(),re("button",{class:"cl-btn",type:"button","aria-label":t.ariaLabel},[fe(ie(ol),{size:16,"aria-hidden":"true"})],8,Fp))}}),Hp=Be(Up,[["__scopeId","data-v-374f5047"]]),te={mobileS:320,mobile:480,tablet:768,tabletL:1024,desktop:1280,desktopL:1536,desktopXl:1920},qp=1280,zi=e=>e<te.mobile?"mobile-s":e<te.tablet?"mobile":e<te.tabletL?"tablet":e<te.desktop?"tablet-l":e<te.desktopL?"de
315sktop":e<te.desktopXl?"desktop-l":"desktop-xl";let ot=null,Or=null,_r=0;const zp=()=>{const e=typeof window<"u"?window.innerWidth:qp,t={isMobileS:k(e<te.mobile),isMobile:k(e<te.tablet),isTablet:k(e>=te.tablet&&e<te.tabletL),isTabletL:k(e>=te.tabletL&&e<te.desktop),isDesktop:k(e>=te.desktop&&e<te.desktopL),isDesktopL:k(e>=te.desktopL&&e<te.desktopXl),isDesktopXl:k(e>=te.desktopXl),isTouch:k(!1),currentBreakpoint:k(zi(e))};if(typeof window>"u")return t;const n=()=>{const l=window.innerWidth;t.isMobileS.value=l<te.mobile,t.isMobile.value=l<te.tablet,t.isTablet.value=l>=te.tablet&&l<te.tabletL,t.isTabletL.value=l>=te.tabletL&&l<te.desktop,t.isDesktop.value=l>=te.desktop&&l<te.desktopL,t.isDesktopL.value=l>=te.desktopL&&l<te.desktopXl,t.isDesktopXl.value=l>=te.desktopXl,t.currentBreakpoint.value=zi(l)},r=window.matchMedia("(hover: none) and (pointer: coarse)");t.isTouch.value=r.matches;const o=l=>{t.isTouch.value=l.matches};r.addEventListener("change",o);const s=[window.matchMedia(`(max-width: ${te.mobile-1}px)`),window.matchMedia(`(min-width: ${te.mobile}px) and (max-width: ${te.tablet-1}px)`),window.matchMedia(`(min-width: ${te.tablet}px) and (max-width: ${te.tabletL-1}px)`),window.matchMedia(`(min-width: ${te.tabletL}px) and (max-width: ${te.desktop-1}px)`),window.matchMedia(`(min-width: ${te.desktop}px) and (max-width: ${te.desktopL-1}px)`),window.matchMedia(`(min-width: ${te.desktopL}px) and (max-width: ${te.desktopXl-1}px)`),window.matchMedia(`(min-width: ${te.desktopXl}px)`)];s.forEach(l=>l.addEventListener("change",n));const i=()=>n();window.addEventListener("resize",i,{passive:!0});const a=()=>n();return window.addEventListener("pageshow",a),Or=()=>
315{r.removeEventListener("change",o),s.forEach(l=>l.removeEventListener("change",n)),window.removeEventListener("resize",i),window.removeEventListener("pageshow",a)},t},Vp=()=>(ot||(ot=zp()),_r+=1,Zt(()=>{_r-=1,_r<=0&&(_r=0,Or&&Or(),Or=null,ot=null)}),{isMobileS:ot.isMobileS,isMobile:ot.isMobile,isTablet:ot.isTablet,isTabletL:ot.isTabletL,isDesktop:ot.isDesktop,isDesktopL:ot.isDesktopL,isDesktopXl:ot.isDesktopXl,isTouch:ot.isTouch,currentBreakpoint:ot.currentBreakpoint,BREAKPOINTS:te}),ll=e=>{const t=typeof window<"u"?window.matchMedia(e).matches:!1,n=k(t);if(typeof window>"u")return n;const r=window.matchMedia(e),o=s=>{n.value=s.matches};return r.addEventListener("change",o),Zt(()=>{r.removeEventListener("change",o)}),n},V0=()=>typeof window>"u"?!1:window.matchMedia("(hover: none) and (pointer: coarse)").matches;let fn=0,Fn=0;const jp={position:"fixed",left:"0",right:"0",width:"100%",overflow:"hidden"},Gr=new Map;let ss="";const kt=[];let Kr=!1,Xr=null;const Wp=e=>{Xr=e.pointerType},Gp=()=>{Xr=null};typeof document<"u"&&(document.addEventListener("pointerdown",Wp,!0),document.addEventListener("keydown",Gp,!0));const cl=()=>Xr!==null&&Xr!=="mouse",ul=()=>kt.length>0,Ms=k(0),j0=()=>fn>0,Kp=()=>
315{if(fn===0){const e=document.body.style;Fn=window.scrollY,Gr.clear();for(const[t,n]of Object.entries({...jp,top:`-${Fn}px`}))Gr.set(t,e.getPropertyValue(t)),e.setProperty(t,n);ss=document.documentElement.style.getPropertyValue("overscroll-behavior"),document.documentElement.style.setProperty("overscroll-behavior","none")}fn++},Xp=()=>{if(fn!==0&&(fn--,fn===0)){const e=document.body.style;for(const[t,n]of Gr)n?e.setProperty(t,n):e.removeProperty(t);Gr.clear(),ss?document.documentElement.style.setProperty("overscroll-behavior",ss):document.documentElement.style.removeProperty("overscroll-behavior"),Fn>0&&window.scrollTo({top:Fn,behavior:"instant"}),Fn=0}},dl=e=>{e.key!=="Escape"||kt.length===0||(e.preventDefault(),e.stopImmediatePropagation(),kt[kt.length-1]())},Yp=e=>{kt.push(e),Ms.value=kt.length,Kr||(document.addEventListener("keydown",dl),Kr=!0)},Jp=e=>{const t=kt.lastIndexOf(e);t!==-1&&kt.splice(t,1),Ms.value=kt.length,kt.length===0&&Kr&&(document.removeEventListener("keydown",dl),Kr=!1)};function Qp(e,t,n={}){const r=n.lockScroll??!0;let o=!1;const s=t??{value:!1},i=n.back===!1?null:Za(e,s,n),a=()=>{o||(o=!0,Yp(e),i==null||i.enable(),r&&Kp())},l=()=>{o&&(o=!1,Jp(e),i==null||i.disable(),r&&Xp())};t?Ce(t,c=>c?a():l(),{immediate:!0}):Qt(a),Zt(l)}const fl=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(","),mt=[];let sn=null,Yr=null,Vt=null;const W0=e=>{Vt!==null&&clearTimeout(Vt),Yr=e,Vt=e?setTimeout(()=>{Yr=null,Vt=null},0):null},Zp=()=>{const e=Yr;return Vt!==null&&clearTimeout(Vt),Yr=null,Vt=null,e},Vi=e=>{var t;e.key==="Tab"&&((t=mt.at(-1))==null||t.onTab(e))},pl=()=>{const e=typeof document>"u"?null:document;sn&&(mt.length===0||sn!==e)&&(sn.removeEventListener("keydown",Vi,!0),sn=null),mt.length>0&&e&&!sn&&(e.addEventListener("keydown",Vi,!0),sn=e)},eh=e=>{const t=mt.indexOf(e);t!==-1&&mt.splice(t,1),mt.push(e),pl()},th=e=>{const t=mt.lastIndexOf(e);t!==-1&&mt.splice(t,1),pl()},bn=e=>{if(e.matches('[hidden], [aria-hidden="true"], [inert]')||e.closest('[hidden], [aria-hidden="true"], [inert]'))return!1;let t=e;for(;t;){const r=getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!1;t=t.parentElement}const n=e.closest("fieldset[disabled]");if(n){const r=Array.from(n.children).find(o=>o instanceof HTMLLegendElement);if(!(r!=null&&r.contains(e)))return!1}return!0},nh=(e,t)=>{if(!(e instanceof HTMLInputElement)||e.type!=="radio"||!e.name)return!0;const n=Array.from(t.querySelectorAll('input[type="radio"]')).filter(o=>o.name===e.name&&o.form===e.form&&!o.disabled&&bn(o)),r=n.find(o=>o.checked);return r?r===e:n[0]===e},Cr=e=>Array.from(e.querySelectorAll(fl)).filter(t=>t.tabIndex>=0&&bn(t)&&nh(t,e)),Ot=(e,t=!1)=>{const n=t?{preventScroll:!0,focusVisible:!1}:{preventScroll:!0};try{e.focus(n)}catch{e.focus()}return document.activeElement===e},is=e=>!!e&&e.isConnected&&!e.matches("body, html, :disabled")&&bn(e),rh=e=>{if(!e)return!1;if(e.isContentEditable)return!0;const t=e.tagName;if(t==="TEXTAREA"||t==="SELECT")return!0;if(t!=="INPUT")return!1;const n=e.type;return!["button","submit","reset","checkbox","radio","file","image","range","color"].includes(n)},Jr=e=>(e.classList.add("js-silent-focus"),e.addEventListener("blur",()=>e.classList.remove("js-silent-focus"),{once:!0}),Ot(e)),oh=()=>{const e=document.querySelector('#main-content, main, [role="main"]');return!e||!bn(e)?!1:(e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),Jr(e))},sh='[role="list"], [role="rowgroup"], ul, tbody',ih='li, tr, [role="listitem"], [role="row"]',ji=e=>e.matches(fl)&&e.tabIndex>=0&&bn(e)?e:Cr(e)[0]??null,ah=(e,t)=>{const n=e.closest(ih);if(n&&t.contains(n))return n;let r=e;for(;r.parentElement&&r.parentElement!==t;)r=r.parentElement;return r.parentElement===t?r:null},lh=e=>{if(!e)return null;const t=e.closest(sh);if(!t)return null;const n=ah(e,t);if(!n)return null;const r=Array.from(t.children).filter(a=>a instanceof HTMLElement),o=r.indexOf(n);if(o===-1)return null;let s=null;for(const a of r.slice(o+1))if(s=ji(a),s)break;let i=null;for(const a of r.slice(0,o).reverse())if(i=ji(a),i)break;return{next:s,previous:i,container:t}},ch=e=>{for(const t of[e.next,e.previous])if(is(t)&&Ot(t,cl()))return!0;return is(e.container)?(e.container.hasAttribute("tabindex")||e.container.setAttribute("tabindex","-1"),Jr(e.container)):!1};function uh(e,t,n={}){const{restoreFocus:r=!0,initialFocus:o,restoreFocusTo:s}=n,i=k(null);let a=!1,l=0,c=!1,d=null;const h=()=>{const w=e.value;if(!w)return;const p=Cr(w)[0]??w;if(p===w){w.hasAttribute("tabindex")||(w.setAttribute("tabindex","-1"),c=!0),Jr(p);return}Ot(p)},m={containerRef:e,focusFallback:h,onTab:w=>{const p=e.value;if(!p)return;const b=Cr(p);if(b.length===0){w.preventDefault(),h();return}const O=b[0],A=b[b.length-1],N=document.activeElement,q=!!N&&p.contains(N);if(N===p){w.preventDefault(),Ot(w.shiftKey?A:O);return}w.shiftKey&&(N===O||!q)?(w.preventDefault(),Ot(A)):!w.shiftKey&&(N===A||!q)&&(w.preventDefault(),Ot(O))}},g=async w=>{var K;if(await Un(),!t.value||l!==w||mt.at(-1)!==m)return;const p=e.value;if(!p)return;const b=(o==null?void 0:o())??null,O=b&&p.contains(b)&&bn(b)?b:null,A=Cr(p)[0]??null,N=!((K=window.matchMedia)!=null&&K.call(window,"(pointer: coarse)").matches),q=O??(N&&rh(A)?A:p);if(q===p){p.hasAttribute("tabindex")||(p.setAttribute("tabindex","-1"),c=!0),Jr(q);return}Ot(q)},y=()=>{a||typeof document>"u"||(a=!0,l+=1,i.value=Zp()??(document.activeElement instanceof HTMLElement?document.activeElement:null),d=lh(i.value),eh(m),g(l))},S=()=>
315{if(!a||typeof document>"u")return;const w=mt.at(-1)===m;a=!1,l+=1,th(m);const p=e.value;c&&(p==null?void 0:p.getAttribute("tabindex"))==="-1"&&p.removeAttribute("tabindex"),c=!1;const b=(s==null?void 0:s())??i.value,O=!!i.value&&!i.value.isConnected;if(i.value=null,!w)return;const A=mt.at(-1),N=A==null?void 0:A.containerRef.value,q=!N||!!b&&N.contains(b);if(!(r&&is(b)&&q&&Ot(b,cl()))&&!(!A&&r&&O&&d&&ch(d))){if(d=null,A){A.focusFallback();return}r&&oh()}};Ce(t,w=>w?y():S(),{immediate:!0,flush:"post"}),Zt(S)}const dh=["aria-labelledby","aria-label","aria-busy"],fh=["hidden","inert"],ph={key:2,class:"popup-component-pending",role:"status"},hh=["hidden","inert"],mh=["hidden","inert"],yh=["hidden","inert"],gh=["hidden","inert"],vh=["hidden","inert"],_h=100,bh=10,wh=Ee({__name:"Popup",props:{visibleClBtn:{type:Boolean,default:!0},maxWidth:{default:"520px"},size:{},reveal:{type:Boolean,default:!0},bottomSheet:{type:[Boolean,null],default:null},raw:{type:Boolean,default:!1},bodyHeaderPlacement:{default:"auto"},smoothResize:{type:Boolean,default:!1},topAnchored:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{},footerDivider:{type:Boolean,default:!0},blocking:{type:Boolean},backHandler:{}},emits:["clPopup"],setup(e,{emit:t}){const n={xs:"460px",sm:"520px",md:"700px",lg:"1000px",xl:"1200px",full:"95vw"},{isMobile:r,isTablet:o}=Vp(),s=e,i=B(()=>s.reveal),a=B(()=>s.bottomSheet!==null?s.bottomSheet:r.value||o.value),l=B(()=>a.value?"100vw":s.size?n[s.size]:s.maxWidth),c=t,d=()=>{s.blocking||c("clPopup")};let h=!1,m=!1;const g=()=>{h=!0,m=!1},y=L=>{m=((typeof document.elementFromPoint=="function"?document.elementFromPoint(L.clientX,L.clientY):null)??L.target)===L.currentTarget},S=()=>{h=!1,m=!1},w=()=>{const L=h&&m;h=!1,m=!1,L&&d()},p=Nl(),b=B(()=>!!p.title),O=()=>!!p.titleTrailing,A=()=>!!(p["body-header"]??p.bodyHeader),N=()=>!!p.footer,q=`popup-title-${$l()}`,K=B(()=>!s.raw&&b.value),ke=B(()=>i.value?s.ariaLabelledby||(K.value?q:void 0):void 0),Ie=B(()=>{var L,W;if(!i.value)return(L=s.ariaLabel)!=null&&L.trim()?`${s.ariaLabel.trim()}: загÑÑзка`:"ÐагÑÑзка ÑодеÑжимого";if(!ke.value)return((W=s.ariaLabel)==null?void 0:W.trim())||void 0});Qt(()=>{var L;(L=s.ariaLabel)!=null&&L.trim()||s.ariaLabelledby||K.value});const M=k(null),ee=k(!0);uh(M,ee);const ue=k(0),U=k(!1);let Q=0,G=0,j="pending";const ne=(L,W)=>{let de=L instanceof Element?L:null;for(;de&&de!==W;){if(de instanceof HTMLElement){const ye=getComputedStyle(de).overflowY;if((ye==="auto"||ye==="scroll")&&de.scrollHeight>de.clientHeight)return de}de=de.parentElement}return W.scrollHeight>W.clientHeight?W:null},he=L=>{if(!a.value)return;const W=M.value;if(!W)return;const de=ne(L.target,W);de&&de.scrollTop>0||(G=L.touches[0].clientX,Q=L.touches[0].clientY,j="pending",U.value=!0,ue.value=0)},ve=L=>{if(!U.value)return;const W=L.touches[0].clientX-G,de=L.touches[0].clientY-Q;if(j==="pending"){if(Math.max(Math.abs(W),Math.abs(de))<bh)return;if(j=Math.abs(de)>=Math.abs(W)?"y":"x",j==="y"&&de<0){U.value=!1,j="pending",ue.value=0;return}}j!=="x"&&(L.preventDefault(),ue.value=Math.max(0,de))},Ke=()=>{U.value&&(U.value=!1,j="pending",ue.value>_h&&d(),ue.value=0)},$e=B(()=>!a.value||ue.value===0?{}:{transform:`translateY(${ue.value}px)`,transition:U.value?"none":"transform 0.25s ease"}),_e=B(()=>({maxWidth:l.value,width:a.value?"100vw":"95vw",...$e.value})),le=k(null);let be=null,Oe=-1,E=null;const I=()=>typeof matchMedia>"u"||!matchMedia("(prefers-reduced-motion: reduce)").matches;function J(){const L=le.value;L&&(L.style.height="",L.style.overflowY="",L.style.transition="")}function we(){E&&(E(),E=null),J()}function me(){we(),be&&(be.disconnect(),be=null),Oe=-1}function Ne(){if(!s.smoothResize||!i.value||s.raw)return;const L=le.value;L&&(be&&be.disconnect(),be=new ResizeObserver(W=>{Se(W)}),be.observe(L,{box:"border-box"}))}function Se(L){var ce,ct;if(!s.smoothResize||!i.value||s.raw)return;const W=le.value;if(!W||L.length===0)return;const de=(ct=(ce=L[0].borderBoxSize)==null?void 0:ce[0])==null?void 0:ct.blockSize,ye=Math.round(de??L[0].contentRect.height);if(Oe<0){Oe=ye;return}if(!I()){Oe=ye;return}const H=Oe;if(Math.abs(ye-H)<2){Oe=ye;return}we(),be&&(be.disconnect(),be=null);const Ae=W.style.overflowY,z=W.style.height,De=W.style.transition;W.style.overflowY="hidden",W.style.height=`${H}px`,W.style.transition="height 0.28s cubic-bezier(0.4, 0, 0.2, 1)",W.offsetHeight,W.style.height=`${ye}px`;const Fe=()=>{W.style.height=z,W.style.overflowY=Ae,W.style.transition=De,requestAnimationFrame(()=>{requestAnimationFrame(()=>{!le.value||!s.smoothResize||!i.value||s.raw||(Oe=Math.round(le.value.getBoundingClientRect().height),Ne())})})},Je=gt=>{gt.propertyName==="height"&&(W.removeEventListener("transitionend",Je),E=null,Fe())};E=()=>{W.removeEventListener("transitionend",Je),Fe()},W.addEventListener("transitionend",Je)}function Re(){me(),le.value&&(Oe=-1,Ne())}return Ce(()=>[s.smoothResize,i.value,s.raw],async([L,W,de])=>{me(),!(!L||!W||de)&&(await Un(),await Un(),Re())},{flush:"post"}),Qp(d,void 0,{blocking:s.blocking===!0,backHandler:()=>{var L;return((L=s.backHandler)==null?void 0:L.call(s))??!1}}),sa(()=>{me()}),(L,W)=>(V(),Pe(ia,{to:"body"},[fe(mn,{name:"popup-backdrop",appear:""},{default:xe(()=>[X("div",{class:We(["popup-component-wrapper",{"popup-component-wrapper--bottom-sheet":a.value,"popup-component-wrapper--top":s.topAnchored&&!a.value}]),role:"presentation",onPointerdown:cr(g,["self"]),onPointerup:y,onPointercancel:S,onClick:cr(w,["self"])},[fe(mn,{name:a.value?"popup-slide":"popup",appear:""},{default:xe(()=>[X("div",{ref_key:"sheetEl",ref:M,class:We(["popup-component",{"popup-component--bottom-sheet":a.value,"popup-component--raw":L.raw&&i.value,"popup-component--pending":!i.value,"popup-component--body-header-top":s.bodyHeaderPlacement==="top"}]),role:"dialog","aria-modal":"true","aria-labelledby":ke.value,"aria-label":Ie.value,"aria-busy":!i.value||void 0,tabindex:"-1",style:Dt(_e.value),onMousedown:W[0]||(W[0]=cr(()=>{},["stop"])),onTouchstart:cr(he,["stop"]),onTouchmove:ve,onTouchend:Ke},[L.visibleClBtn?(V(),Pe(Hp,{key:0,class:"popup-clBtn","aria-label":"ÐакÑÑÑÑ",onClick:d})):Te("",!0),O()?(V(),re("div",{key:1,class:"popup-component-title-trailing",hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"titleTrailing",{},void 0,!0)],8,fh)):Te("",!0),i.value?Te("",!0):(V(),re("div",ph,W[1]||(W[1]=[X("span",{class:"popup-component-pending__spinner","aria-hidden":"true"},null,-1),X("span",null,"ÐагÑÑзкаâ¦",-1)]))),L.raw?(V(),re("div",{key:4,class:"popup-component-raw-slot",hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"default",{},void 0,!0)],8,gh)):(V(),re(qn,{key:3},[L.$slots.title?(V(),re("h4",{key:0,id:q,class:"popup-component-title",hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"title",{},void 0,!0)],8,hh)):Te("",!0),A()?(V(),re("div",{key:1,class:"popup-component-body-header",hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"body-header",{},void 0,!0)],8,mh)):Te("",!0),X("div",{ref_key:"bodyScrollEl",ref:le,class:"popup-component-body",hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"default",{},void 0,!0)],8,yh)],64)),N()?(V(),re("footer",{key:5,class:We(["popup-component-footer",{"popup-component-footer--plain":!L.footerDivi
315der}]),hidden:!i.value,inert:!i.value||void 0},[je(L.$slots,"footer",{},void 0,!0)],10,vh)):Te("",!0)],46,dh)]),_:3},8,["name"])],34)]),_:3})]))}}),Eh=Be(wh,[["__scopeId","data-v-5a538440"]]),en=1024*1024,G0=20*en,K0=24*en,X0=24*en,Y0=50*en,J0=10*en,Q0=5*en;function Sh(e){const t=e/en;return`${Number.isInteger(t)?t:t.toFixed(1)} ÐÐ`}function Z0(e,t){return e.size>t}const kh={wallet_empty:"ÐедоÑÑаÑоÑно ÑÑедÑÑв",feature_locked:"ÐоÑÑÑп огÑаниÑен",feature_not_enabled:"ФÑнкÑÐ¸Ñ Ð½ÐµÐ´Ð¾ÑÑÑпна на ваÑем ÑаÑиÑе",bidder_not_allowed:"Ðид-Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð½ÐµÐ´Ð¾ÑÑÑпен",no_pricing:"ТаÑÐ¸Ñ Ð½Ðµ наÑÑÑоен",input_too_large:"СлиÑком болÑÑой запÑоÑ",file_too_large:"Файл ÑлиÑком болÑÑой"},hl={wallet_empty:"Ðа баланÑе недоÑÑаÑоÑно ÑÑедÑÑв Ð´Ð»Ñ Ð²ÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð·Ð°Ð¿ÑоÑа. ÐополниÑе ÑÑÑÑ, ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ.",feature_locked:"Ðиллинг пÑиоÑÑановлен â опеÑаÑии вÑеменно недоÑÑÑпнÑ. ÐополниÑе ÑÑÑÑ.",feature_not_enabled:"ÐÑа ÑÑнкÑÐ¸Ñ Ð´Ð¾ÑÑÑпна на более ÑÑаÑÑÐ¸Ñ ÑаÑиÑÐ°Ñ AviBOX HUB. ÐодклÑÑиÑе еÑ, ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ.",bidder_not_allowed:"Ðид-Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð´Ð¾ÑÑÑпен на ÑаÑиÑÐ°Ñ ÐÐ Ð, ÐÐ Ð+ или ÐонÑÑÑÑкÑоÑ. РаÑÑиÑÑÑе ÑаÑиÑ, ÑÑÐ¾Ð±Ñ ÑпÑавлÑÑÑ ÑÑавками.",no_pricing:"ÐÐ»Ñ Ð²ÑбÑанной модели не наÑÑÑоен ÑаÑиÑ. ÐбÑаÑиÑеÑÑ Ð² поддеÑжкÑ.",input_too_large:"Ð Ð°Ð·Ð¼ÐµÑ Ð·Ð°Ð¿ÑоÑа пÑевÑÑÐ°ÐµÑ Ð´Ð¾Ð¿ÑÑÑимÑй лимиÑ. СокÑаÑиÑе ÑодеÑжимое.",file_too_large:"Файл болÑÑе допÑÑÑимого ÑазмеÑа. УменÑÑиÑе его и попÑобÑйÑе Ñнова."};function Ah(e,t){const n=o=>{var s;return(s=jn[o])==null?void 0:s.title};let r=e;if(t){const o=n(t);o&&(r=r.split(t).join(o))}return r.replace(/[a-z][a-z_]+/g,o=>n(o)??o)}function Th(e){const t=e==null?void 0:e.details,n=(e==null?void 0:e.limit_bytes)??(t&&typeof t=="object"?t.limit_bytes:void 0);return typeof n=="number"&&Number.isFinite(n)&&n>0?`ÐакÑималÑнÑй ÑÐ°Ð·Ð¼ÐµÑ Ñайла â ${Sh(n)}. УменÑÑиÑе Ñайл и попÑобÑйÑе Ñнова.`:hl.file_too_large}const ml=at("billingErrors",()=>{const e=k(null),t=k({}),n=5e3;function r(s,i){const a=Date.now();if(a-(t.value[s]??0)<n)return;t.value[s]=a;const l=s==="file_too_large"?Th(i):Ah(typeof(i==null?void 0:i.message)=="string"&&i.message||hl[s],typeof(i==null?void 0:i.feature)=="string"?i.feature:void 0);let c;s==="wallet_empty"||s==="feature_locked"?c={label:"ÐополниÑÑ",drawerTab:"wallet"}:(s==="feature_not_enabled"||s==="bidder_not_allowed")&&(c={label:"РаÑÑиÑиÑÑ ÑаÑиÑ",drawerTab:"tariffs"}),e.value={kind:s,title:kh[s],message:l,cta:c,raw:i}}function o(){e.value=null}return{current:e,show:r,dismiss:o}}),Rh=Object.freeze(Object.defineProperty({__proto__:null,useBillingErrorsStore:ml},Symbol.toStringTag,{value:"Module"})),xh={class:"billing-error"},Lh={class:"billing-error__icon","aria-hidden":"true"},Oh={class:"billing-error__message"},Ch={class:"billing-error__actions"},Mh=Ee({__name:"BillingErrorModal",setup(e){const t=ml(),n=co(),r=no(),o=B(()=>t.current!==null),s=B(()=>t.current);function i(){t.dismiss()}function a(){var c;const l=(c=s.value)==null?void 0:c.cta;if(!l){i();return}l.drawerTab?n.open(l.drawerTab):l.route?r.push(l.route):l.href&&(window.location.href=l.href),i()}return(l,c)=>o.value&&s.value?(V(),Pe(Eh,{key:0,size:"xs",onClPopup:i},{title:xe(()=>[tt(Me(s.value.title),1)]),default:xe(()=>[X("div",xh,[X("div",Lh,[fe(ie(Cs),{size:24})]),X("p",Oh,Me(s.value.message),1),X("div",Ch,[fe(At,{kind:"secondary",onClick:i},{text:xe(()=>c[0]||(c[0]=[tt("ÐакÑÑÑÑ")])),_:1}),s.value.cta?(V(),Pe(At,{key:0,kind:"primary",onClick:a},{text:xe(()=>[tt(Me(s.value.cta.label),1)]),_:1})):Te("",!0)])])]),_:1})):Te("",!0)}}),Ph=Be(Mh,[["__scopeId","data-v-3fb0508f"]]),Ih={class:"toast__body"},Dh=Ee({__name:"Toast",props:{visible:{type:Boolean},text:{},duration:{default:2400},severity:{default:"info"},hideIcon:{type:Boolean,default:!1}},emits:["update:visible","close"],setup(e,{emit:t}){const n=e,r=B(()=>n.hideIcon?null:n.severity==="success"?nl:n.severity==="error"?qf:n.severity==="warning"?Cs:rl),o=t;let s=null;const i=()=>{s&&(window.clearTimeout(s),s=null)},a=()=>{i(),o("update:visible",!1),o("close")};return Ce(()=>n.visible,l=>{i(),l&&(n.duration??0)>0&&(s=window.setTimeout(a,n.duration))},{immediate:!0}),(l,c)=>(V(),Pe(ia,{to:"body"},[fe(mn,{name:"toast-slide"},{default:xe(()=>[l.visible?(V(),re("div",{key:0,class:We(["toast",`toast--${l.severity}`]),role:"status","aria-live":"polite",onClick:a},[r.value?(V(),Pe(Hn(r.value),{key:0,size:18,class:"toast__icon"})):Te("",!0),X("div",Ih,[je(l.$slots,"default",{},()=>[tt(Me(l.text),1)],!0)])],2)):Te("",!0)]),_:3})]))}}),Bh=Be(Dh,[["__scopeId","data-v-004ab4b9"]]),Ps=at("globalNotice",()=>{const e=k(!1),t=k(""),n=k("info"),r=new Map,o=1e4;function s(a,l={}){const c=l.key??a,d=Date.now();d-(r.get(c)??0)<o||(r.set(c,d),t.value=a,n.value=l.severity??"info",e.value=!0)}function i(){e.value=!1}return{visible:e,text:t,severity:n,notify:s,dismiss:i}}),Nh=Object.freeze(Object.defineProperty({__proto__:null,useGlobalNoticeStore:Ps},Symbol.toStringTag,{value:"Module"})),$h=Ee({__name:"GlobalNotice",setup(e){const t=Ps();return(n,r)=>(V(),Pe(Bh,{visible:ie(t).visible,"onUpdate:visible":r[0]||(r[0]=o=>ie(t).visible=o),text:ie(t).text,severity:ie(t).severity,duration:5e3},null,8,["visible","text","severity"]))}}),Wi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21.13 12.55"> 316 <title>AviBOX HUB</title> 317 <defs> 318 <linearGradient id="hub-plate" x1="0.11" y1="0" x2="21.02" y2="0" gradientUnits="userSpaceOnUse"> 319 <stop offset="0" stop-color="#0098FF"/> 320 <stop offset="1" stop-color="#0077FF"/> 321 </linearGradient> 322 </defs> 323 <path fill="url(#hub-plate)" d="M1.18 0.11l18.78 0c0.59,0 1.07,0.48 1.07,1.07l0 10.19c0,0.59 -0.48,1.07 -1.07,1.07l-18.78 0c-0.59,0 -1.07,-0.48 -1.07,-1.07l0 -10.19c0,-0.59 0.48,-1.07 1.07,-1.07z"/> 324 <path fill="#FAFAFC" d="M7.05 8.99l-1.44 0 0 -2.28 -2 0 0 2.28 -1.44 0 0 -5.6 1.44
3240 0 2.2 2 0 0 -2.2 1.44 0 0 5.6zm4.56 -5.6l1.44 0 0 4.08c0,0.56 -0.13,0.97 -0.38,1.22 -0.25,0.25 -0.66,0.38 -1.22,0.38l-1.84 0c-0.56,0 -0.97,-0.13 -1.22,-0.38 -0.25,-0.25 -0.38,-0.66 -0.38,-1.22l0 -4.08 1.44 0 0 4.08c0,0.32 0.16,0.48 0.48,0.48l1.2 0c0.32,0 0.48,-0.16 0.48,-0.48l0 -4.08zm2.4 0l3.2 0c0.52,0 0.91,0.12 1.15,0.36 0.25,0.24 0.37,0.6 0.37,1.08 0,0.32 -0.07,0.58 -0.21,0.78 -0.14,0.2 -0.31,0.34 -0.51,0.42 0.43,0.12 0.72,0.41 0.88,0.86 0.05,0.17 0.08,0.36 0.08,0.58 0,0.52 -0.12,0.91 -0.37,1.15 -0.25,0.25 -0.63,0.37 -1.15,0.37l-3.44 0 0 -5.6zm3.52 3.84c0,-0.32 -0.16,-0.48 -0.48,-0.48l-1.6 0 0 1.12 1.6 0c0.32,0 0.48,-0.16 0.48,-0.48l0 -0.16zm-0.24 -2.24c0,-0.32 -0.16,-0.48 -0.48,-0.48l-1.36 0 0 1.12 1.36 0c0.32,0 0.48,-0.16 0.48,-0.48l0 -0.16z"/> 325</svg> 326`,Fh={class:"hub-volume__body"},Uh=["viewBox"],Hh=["d"],qh=Ee({__name:"HubMarkVolume",props:{moving:{type:Boolean}},setup(e){var r,o;const t=((r=/viewBox="([^"]+)"/.exec(Wi))==null?void 0:r[1])??"0 0 21.13 12.55",n=((o=/<path fill="#FAFAFC" d="([^"]+)"/.exec(Wi))==null?void 0:o[1])??"";return(s,i)=>(V(),re("div",{class:We(["hub-volume",{"hub-volume--moving":s.moving}]),"data-testid":"hub-mark","aria-hidden":"true"},[X("div",Fh,[i[0]||(i[0]=X("div",{class:"hub-volume__plate"},[X("span",{class:"hub-volume__sheen"})],-1)),(V(),re("svg",{class:"hub-volume__letters",viewBox:ie(t)},[X("path",{fill:"#FAFAFC",d:ie(n)},null,8,Hh)],8,Uh))])],2))}}),zh=Be(qh,[["__scopeId","data-v-c653f349"]]),Vh=1700,jh=170,Gi=2.39996,Wh=Ee({__name:"LoaderSynapse",props:{dark:{type:Boolean},anchor:{type:Function},entering:{type:Boolean},pageKey:{},seed:{}},emits:["entered","progress"],setup(e,{emit:t}){var ue;const n=e,r=t,o=ll("(prefers-reduced-motion: reduce)"),s=!!((ue=navigator.connection)!=null&&ue.saveData),i=B(()=>o.value||s),a={line:[0,150,255],node:[70,170,255],nodeHi:[190,225,255],core:[0,136,255],coreHi:[200,230,255],spark:[120,200,255],sparkHi:[235,245,255],head:[255,255,255],lineA:.28,fieldA:.28,atmA:.17,rimA:.3,pill:"rgba(30,32,36,.88)",pillText:"#e8f2ff",pillBorder:"rgba(0,136,255,.45)"},l={line:[128,152,190],node:[128,156,200],nodeHi:[92,126,182],core:[110,150,215],coreHi:[70,108,170],spark:[0,118,245],sparkHi:[0,96,225],head:[0,110,240],lineA:.2,fieldA:.5,atmA:.07,rimA:.34,pill:"rgba(255,255,255,.96)",pillText:"#1d3a6b",pillBorder:"rgba(96,130,186,.35)"},c=(U,Q)=>U+Math.floor(Math.random()*(Q-U+1)),d=[()=>`ÐÑоÑмоÑÑÑ +${c(400,4200).toLocaleString("ru-RU")}`,()=>`ÐÑÐ²ÐµÑ Ð·Ð° ${c(1,4)} мин`,()=>`Ðвонки +${c(4,40)}`,()=>`РейÑинг 4,${c(7,9)}`,()=>`ÐозиÑÐ¸Ñ â${c(1,6)}`,()=>`+${c(5,40)} обÑÑвлений`],h=Array.from({length:190},(U,Q)=>{const G=1-Q/189*2,j=Math.sqrt(1-G*G),ne=Math.PI*(3-Math.sqrt(5))*Q;return[Math.cos(ne)*j,G,Math.sin(ne)*j]}),m=[];for(let U=0;U<h.length;U++)for(let Q=U+1;Q<h.length;Q++){const G=h[U],j=h[Q];Math.hypot(G[0]-j[0],G[1]-j[1],G[2]-j[2])<.27&&m.push([U,Q])}const g=[{x:30,y:25,r:640,color:"108 120 244",breath:35,drift:70,dx:8,dy:5},{x:72,y:55,r:560,color:"0 136 255",breath:26,drift:84,dx:-7,dy:4},{x:45,y:80,r:480,color:"6 182 212",breath:30,drift:76,dx:5,dy:-6}],y=U=>({left:`${U.x}%`,top:`${U.y}%`,"--syn-glow-r":`${U.r}px`,"--syn-glow-color":U.color,"--syn-glow-breath":`${U.breath}s`,"--syn-glow-drift":`${U.drift}s`,"--syn-glow-dx":`${U.dx}vw`,"--syn-glow-dy":`${U.dy}vh`}),S=k(1),w=js("bgCanvas"),p=js("overlayCanvas");let b=null,O=!1,A=null;const N=(U,Q)=>`rgba(${U[0]},${U[1]},${U[2]},${Math.max(0,Math.min(1,Q)).toFixed(3)})`,q=U=>Math.max(0,Math.min(1,U)),K=(U,Q,G)=>U+(Q-U)*G,ke=U=>U<.5?4*U*U*U:1-(-2*U+2)**3/2,Ie=()=>({x:0,y:0,z:0,bx:0,by:0});function M(U,Q,G){var ar;const j=U.getContext("2d"),ne=Q.getContext("2d");if(!j||!ne)return null;let he=0,ve=0,Ke=0,$e=0,_e=0,le=0,be=null,Oe=!1,E=-1,I=0,J=Math.random()*Math.PI*2,we=-1e9;const me=[],Ne=[],Se=[],Re=h.map(()=>Ie()),L=[],W=[],de=[],ye=[],H={cx:0,cy:0,r:0,a:1};let Ae=!1;const z={cx:0,cy:0,r:0,a:1},De={x:0,y:0},Fe={x:0,y:0},Je={x:0,y:0},ce=Ie();let ct=1,gt=0;const tn=Math.cos(.35),Tt=Math.sin(.35),$t=(T,R=0)=>{const _=document.createElement("canvas");_.width=_.height=128;const u=_.getContext("2d");if(u){const v=u.createRadialGradient(64,64,64*R,64,64,64);v.addColorStop(0,N(T,R?0:1)),R&&(v.addColorStop(.5,N(T,1)),v.addColorStop(.6,N(T,.47))),v.addColorStop(1,N(T,0)),u.fillStyle=v,u.fillRect(0,0,128,128)}return _}
326,er=$t(G.node),tr=$t(G.sparkHi),po=$t(G.core,.86/1.14),nn=(T,R,_,u,v)=>{j.globalAlpha=q(v),j.drawImage(T,R-u,_-u,u*2,u*2),j.globalAlpha=1},Ft=(T,R,_,u,v)=>{j.beginPath(),j.arc(T,R,_,0,Math.PI*2),j.fillStyle=N(u,v),j.fill()},En=(T,R)=>{const _=T[0]*ct+T[2]*gt,u=-T[0]*gt+T[2]*ct;R.bx=_,R.by=T[1]*tn-u*Tt,R.z=T[1]*Tt+u*tn,R.x=z.cx+_*z.r,R.y=z.cy+R.by*z.r},nr=(T,R)=>{const _=T.id<R.id?T:R,u=_===T?R:T,v=((_.id*31+u.id*17)%2?1:-1)*.17;Je.x=(_.x+u.x)/2-(u.y-_.y)*v,Je.y=(_.y+u.y)/2+(u.x-_.x)*v},rr=(T,R)=>{let _=0;for(const u of W){const v=u.t/80,x=Math.hypot(T-u.x,R-u.y)/z.r;v<1&&(_+=Math.exp(-(((x-v*1.6)/.1)**2))*(1-v)*.8+Math.exp(-((x/.16)**2))*Math.max(0,1-v*2.5))}return _},Sn=T=>.6+1.2*(T.bx*T.bx+T.by*T.by)**2,or=(T,R,_,u)=>{j.beginPath(),j.moveTo(T.x,T.y),j.lineTo(R.x,R.y),j.strokeStyle=N(u?G.head:G.nodeHi,_*z.a),j.lineWidth=u?1:.7,j.stroke()},ho=()=>{nn(po,z.cx,z.cy,z.r*1.14,G.atmA*z.a),ct=Math.cos(le*12e-5),gt=Math.sin(le*12e-5);for(let R=0;R<Re.length;R++)En(h[R],Re[R]);for(const[R,_]of m){const u=Re[R],v=Re[_],x=(Math.min(u.z,v.z)+1)/2,D=rr((u.x+v.x)/2,(u.y+v.y)/2);or(u,v,(.03+x*.24)*Sn(u)+D*.4,D>.15)}for(const R of L)En(R.p,R.s);for(const R of L){const _=Math.min(1,(le-R.born)/2200),u=(R.s.z+1)/2;for(const v of R.links)or(R.s,typeof v=="number"?Re[v]:v.s,(.05+u*.3)*(_<1?1.8-_:1)*R.life,_<1);_<1&&nn(tr,R.s.x,R.s.y,10*(1-_)+3,.8*(1-_)*z.a*R.life)}const T=Math.max(.55,Math.min(1.1,z.r/220));for(const R of Re){const _=(R.z+1)/2,u=rr(R.x,R.y);Ft(R.x,R.y,(.8+_*1.2+u*1.1)*T,u>.15?G.head:G.nodeHi,((.05+_*G.fieldA)*Sn(R)+u*.7)*z.a)}for(const R of L){const _=Math.min(1,(le-R.born)/2200),u=(R.s.z+1)/2;Ft(R.s.x,R.s.y,(1+u*1.4+(1-_)*1.2)*T,_<1?G.head:G.nodeHi,((.12+u*G.fieldA*1.1)*Sn(R.s)+(1-_)*.5)*R.life*z.a)}j.beginPath(),j.arc(z.cx,z.cy,z.r,0,Math.PI*2),j.strokeStyle=N(n.dark?G.coreHi:G.core,G.rimA*z.a),j.lineWidth=1,j.stroke()},mo=(T,R)=>{let _=0,u=0,v=1/0,x=1/0,D=null,se=.5;for(let ge=0;ge<h.length;ge++){const nt=h[ge],rn=Math.hypot(T[0]-nt[0],T[1]-nt[1],T[2]-nt[2]);rn<v?(u=_,x=v,_=ge,v=rn):rn<x&&(u=ge,x=rn)}for(const ge of L)if(ge.mod===R&&!ge.dying){const nt=Math.hypot(T[0]-ge.p[0],T[1]-ge.p[1],T[2]-ge.p[2]);nt<se&&(se=nt,D=ge)}return D?[_,u,D]:[_,u]},vt=T=>{const R=c(0,d.length-1),_=mo(T.tp,R);L.push({p:T.tp,s:Ie(),born:le,mod:R,life:1,dying:!1,links:_});let u=0;for(const v of L)v.dying||u++;if(u>jh){const v=L.find(x=>!x.dying);v&&(v.dying=!0)}W.push({x:ce.x,y:ce.y,t:0}),z.r>90&&le-we>1400&&(we=le,de.push({ang:Math.atan2(ce.y-z.cy,ce.x-z.cx),t:0,text:d[R]()}))},yo=(T,R)=>{const _=Math.atan2(R-z.cy,T-z.cx),u=.62+Math.random()*.3,v=Math.cos(_)*u,x=Math.sin(_)*u,D=Math.sqrt(1-u*u),se=x*tn+D*Tt,ge=-x*Tt+D*tn;return[v*ct-ge*gt,se,v*gt+ge*ct]},_t=T=>Math.hypot(T.x-z.cx,T.y-z.cy),kn=(T,R)=>{const _=Math.atan2(T.y-z.cy,T.x-z.cx)-R;return Math.abs(Math.atan2(Math.sin(_),Math.cos(_)))},Xe=[],go=T=>{Xe.length=0;const R=_t(T.from),_=R<z.r*1.8;for(const u of T.from.adj)u!==T.prev&&_t(u)>z.r*1.08&&_t(u)<R-18&&kn(u,T.want)<.8&&Xe.push(u);return _&&(!Xe.length||R<z.r*1.4||Math.random()<.3)?"sphere":(Xe.sort((u,v)=>_t(u)-_t(v)),Xe.length?Xe[c(0,Math.min(3,Xe.length)-1)]:_?"sphere":null)},vo=()=>{Xe.length=0,J+=Gi;for(const T of me)_t(T)>z.r*1.15&&_t(T)<z.r*4&&T.x>-160&&T.x<he+160&&T.y>-160&&T.y<ve+160&&Xe.push(T);Xe.length&&(Xe.sort((T,R)=>kn(T,J)-kn(R,J)),ye.push({from:Xe[c(0,Math.min(3,Xe.length)-1)],prev:null,to:null,u:0,born:le,fade:1,dying:!1,want:J,tp:[0,0,1],hist:new Float64Array(20),head:0,size:0}))},_o=T=>{ye.length<4&&le-I>=900&&(I=le,vo());for(let R=ye.length-1;R>=0;R--){const _=ye[R];if(!_.to&&!_.dying&&(_.to=go(_),_.to==="sphere"&&(_.tp=yo(_.from.x,_.from.y)),_.to||(_.dying=!0)),_.dying&&(_.fade-=.03*T,_.fade<=0)){ye.splice(R,1);continue}De.x=_.from.x,De.y=_.from.y;const u=_.to==="sphere";if(u)En(_.tp,ce),Fe.x=ce.x,Fe.y=ce.y;else{const D=typeof _.to=="object"&&_.to?_.to:_.from;Fe.x=D.x,Fe.y=D.y}const v=Math.max(1,Math.hypot(Fe.x-De.x,Fe.y-De.y));if(_.dying||(_.u+=(u?1.5*(.8+_.u*2.6):1.5)*T/v),_.u>=1){if(u){vt(_),ye.splice(R,1);continue}typeof _.to=="object"&&_.to&&(_.prev=_.from,_.from=_.to,_.to=null,_.u=0);continue}if(!u&&typeof _.to=="object"&&_.to){nr(_.from,_.to);const D=1-_.u;ce.x=D*D*De.x+2*D*_.u*Je.x+_.u*_.u*Fe.x,ce.y=D*D*De.y+2*D*_.u*Je.y+_.u*_.u*Fe.y}else ce.x=K(De.x,Fe.x,_.u),ce.y=K(De.y,Fe.y,_.u);const x=q((le-_.born)/500)*_.fade;_.head=(_.head+1)%10,_.hist[_.head*2]=ce.x,_.hist[_.head*2+1]=ce.y,_.size=Math.min(10,_.size+1);for(let D=1;D<_.size;D++){const se=(_.head-D+10)%10,ge=1-D/_.size;Ft(_.hist[se*2],_.hist[se*2+1],1.9*ge,G.spark,ge*.4*x)}nn(tr,ce.x,ce.y,u?7+_.u*6:7,(.45+(u?_.u*.4:0))*x),Ft(ce.x,ce.y,2,G.head,.95*x)}},sr=()=>{var D,se;const T=(se=(D=n.anchor)==null?void 0:D.call(n))==null?void 0:se.getBoundingClientRect(),R=Math.min(Math.min(he,ve)*.42,440),_=R*(.5*Math.hypot(1,12.55/21.13)+.08),u=T?T.left+T.width/2:he/2,v=T?T.top+T.height/2:ve/2,x=T?Math.min(Math.hypot(T.width,T.height)/2+28,Math.max(he,ve)*.46):_;Rt.cx=u,Rt.cy=v,Rt.r=x},Rt={cx:0,cy:0,r:0,a:1},Ut=T=>{const R=_e?Math.max(0,T-_e):0,_=Math.min(R/16.667,3);_e=T,le+=i.value?0:Math.min(R,50),n.entering&&be===null&&(be=T),n.entering||(be=null,Oe=!1);
326const u=n.anchor&&be!==null?i.value?1:q((T-be)/Vh):n.anchor?0:1,v=ke(q(u/.62)),x=ke(q((u-.42)/.58));n.anchor&&x!==E&&(E=x,r("progress",x)),n.entering||sr();const D=Ae?0:i.value?1:Math.min(1,.15*(_||1));Ae=!1,H.cx=K(H.cx,Rt.cx,D),H.cy=K(H.cy,Rt.cy,D),H.r=K(H.r,Rt.r,D),z.cx=H.cx,z.cy=H.cy,z.r=K(H.r,Math.hypot(he,ve)*.85,v),z.a=n.anchor?1-q((u-.28)/.42):0;const se=Math.min(Math.min(he,ve)*.42,440),ge=se*(.5*Math.hypot(1,12.55/21.13)+.08),nt=K(H.cx,he/2,x),rn=K(H.cy,ve/2,x),qs=K(H.r,ge,x)*(1+1.4*v*(1-x)),lr=K(.9,1,x);j.clearRect(0,0,he,ve),ne.clearRect(0,0,he,ve);for(const F of me){F.ang+=i.value?0:F.w*_;const ae=F.dist0+Math.sin(le*45e-5+F.ph)*.05;F.x=nt+Math.cos(F.ang)*ae*qs,F.y=rn+Math.sin(F.ang)*ae*qs,F.prox=Math.max(0,1-(ae-1.1)/1.6),F.adj.length=0}Se.length=0;for(const F of Ne)F.d=Math.hypot(F.a.x-F.b.x,F.a.y-F.b.y),F.d<Ke&&Se.push(F);Se.sort((F,ae)=>F.d-ae.d),j.lineCap="round";for(const{a:F,b:ae,d:Ze}of Se){if(F.adj.length>=3||ae.adj.length>=3)continue;F.adj.push(ae),ae.adj.push(F),nr(F,ae);const rt=Math.max(F.prox,ae.prox),ut=Math.min(.5,(1-Ze/Ke*.55)*G.lineA*Math.min(F.a,ae.a)*lr*(.55+1.7*rt)),dt=j.createLinearGradient(F.x,F.y,ae.x,ae.y);dt.addColorStop(0,N(G.line,ut)),dt.addColorStop(.5,N(G.line,ut*.7)),dt.addColorStop(1,N(G.line,ut)),j.beginPath(),j.moveTo(F.x,F.y),j.quadraticCurveTo(Je.x,Je.y,ae.x,ae.y),j.strokeStyle=dt,j.lineWidth=.55+rt*.9,j.stroke()}if(z.a>.01){for(const F of me){const ae=_t(F);if(ae<=z.r||ae>z.r*1.8)continue;const Ze=z.cx+(F.x-z.cx)/ae*z.r,rt=z.cy+(F.y-z.cy)/ae*z.r,ut=(1-(ae/z.r-1)/.8)*.16*F.a*lr*z.a,dt=j.createLinearGradient(F.x,F.y,Ze,rt);dt.addColorStop(0,N(G.line,ut)),dt.addColorStop(1,N(G.line,0)),j.beginPath(),j.moveTo(Ze,rt),j.lineTo(F.x,F.y),j.strokeStyle=dt,j.lineWidth=.7,j.stroke()}ho()}n.anchor&&!n.entering&&!i.value?_o(_):ye.length=0;for(const F of me){const ae=F.r*(.8+.5*F.prox);F.r>2.6&&nn(er,F.x,F.y,ae*4.5,.16*(.4+F.prox)*lr),Ft(F.x,F.y,ae,G.node,F.a*(.45+.65*F.prox)*lr)}for(let F=L.length-1;F>=0;F--)if(L[F].dying&&(L[F].life-=.006*_,L[F].life<=0)){const ae=L[F];for(const Ze of L)for(let rt=Ze.links.length-1;rt>=0;rt--)Ze.links[rt]===ae&&Ze.links.splice(rt,1);L.splice(F,1)}for(let F=W.length-1;F>=0;F--)W[F].t+=_,W[F].t>90&&W.splice(F,1);ne.font="600 12px Inter, system-ui, sans-serif",ne.textAlign="center",ne.textBaseline="middle";for(let F=de.length-1;F>=0;F--){const ae=de[F];if(ae.t+=_,ae.t>85||n.entering){de.splice(F,1);continue}const Ze=ae.t/85,rt=Ze<.15?Ze/.15:Ze>.65?1-(Ze-.65)/.35:1,ut=ne.measureText(ae.text).width+16,dt=Math.cos(ae.ang),zs=Math.sin(ae.ang),Vs=z.r+12+Math.abs(dt)*ut/2+Math.abs(zs)*12,Ol=Math.min(Math.max(z.cx+dt*Vs,ut/2+8),he-ut/2-8),Cl=Math.min(Math.max(z.cy+zs*Vs,16),ve-16);ne.save(),ne.globalAlpha=rt,ne.translate(Ol,Cl),ne.beginPath(),ne.roundRect(-ut/2,-11,ut,22,7),ne.fillStyle=G.pill,ne.fill(),ne.strokeStyle=G.pillBorder,ne.lineWidth=1,ne.stroke(),ne.fillStyle=G.pillText,ne.fillText(ae.text,0,.5),ne.restore()}n.entering&&u>=1&&!Oe&&(Oe=!0,r("entered")),i.value||($e=requestAnimationFrame(Ut))},An=()=>{const T=Math.min(window.devicePixelRatio||1,2);he=window.innerWidth,ve=window.innerHeight,Ke=Math.max(110,Math.min(he,ve)*.2),S.value=Math.max(.3,Math.min(1.2,Math.sqrt(he*ve/(1920*1080)))),U.width=Q.width=Math.round(he*T),U.height=Q.height=Math.round(ve*T),j.setTransform(T,0,0,T,0,0),ne.setTransform(T,0,0,T,0,0);let R=20261001;const _=()=>{R=R+1831565813>>>0;let v=Math.imul(R^R>>>15,1|R);return v=v+Math.imul(v^v>>>7,61|v)^v,((v^v>>>14)>>>0)/4294967296};me.length=0,Ne.length=0,ye.length=0;const u=Math.round(Math.max(44,Math.min(100,he*ve/12500)));for(let v=0;v<u;v++)me.push({id:v,ang:v*Gi+_()*.25,dist0:1.1+_()**2.2*2.6,w:(_()-.5)*3e-4,ph:_()*6.28,x:0,y:0,prox:0,r:1.3+v%3*.8+_()*.8,a:[.45,.7,1][v%3],adj:[]});for(let v=0;v<u;v++)for(let x=v+1;x<u;x++)Ne.push({a:me[v],b:me[x],d:0});sr(),Object.assign(H,Rt),n.seed&&!O&&!i.value&&(O=!0,Ae=!0,H.cx=n.seed.cx,H.cy=n.seed.cy,H.r=n.seed.r),i.value&&Ut(0)};An(),A=()=>{i.value?Ut(0):n.anchor&&!n.entering&&W.push({x:H.cx,y:H.cy,t:0})};const bt=i.value&&n.anchor?new ResizeObserver(()=>Ut(0)):null,ir=(ar=n.anchor)==null?void 0:ar.call(n);return bt&&ir&&bt.observe(ir),window.addEventListener("resize",An),i.value||($e=requestAnimationFrame(Ut)),()=>{cancelAnimationFrame($e),window.removeEventListener("resize",An),bt==null||bt.disconnect(),A=null}}function ee(){b==null||b(),b=null,w.value&&p.value&&(b=M(w.value,p.value,
326n.dark?a:l))}return Qt(ee),Ce([()=>n.dark,i,()=>!!n.anchor],ee),Ce(()=>n.pageKey,()=>A==null?void 0:A(),{flush:"post"}),Ce(()=>n.entering,()=>{i.value&&ee()}),Fl(()=>{b==null||b(),b=null}),(U,Q)=>(V(),re(qn,null,[X("div",{class:We(["loader-synapse loader-synapse--glows",{"loader-synapse--still":i.value}]),style:Dt({"--syn-glow-a":U.dark?.07:.025,"--syn-scale":S.value}),"aria-hidden":"true"},[(V(),re(qn,null,ps(g,(G,j)=>X("span",{key:j,class:"loader-synapse__glow",style:Dt(y(G))},null,4)),64))],6),X("canvas",{ref_key:"bgCanvas",ref:w,class:"loader-synapse loader-synapse--bg","aria-hidden":"true"},null,512),X("canvas",{ref_key:"overlayCanvas",ref:p,class:"loader-synapse loader-synapse--overlay","aria-hidden":"true"},null,512)],64))}}),Gh=Be(Wh,[["__scopeId","data-v-19299111"]]),Kh={key:0,class:"app-splash",role:"status","aria-label":"ÐагÑÑзка","data-testid":"startup-shell"},Xh=Ee({__name:"Loader",props:{isLoading:{type:Boolean}},setup(e){var s;const t=As(),n=ll("(prefers-reduced-motion: reduce)"),r=!!((s=navigator.connection)!=null&&s.saveData),o=B(()=>!n.value&&!r);return(i,a)=>(V(),Pe(mn,{name:"app-splash"},{default:xe(()=>[i.isLoading?(V(),re("div",Kh,[fe(Gh,{dark:ie(t).isDark},null,8,["dark"]),fe(zh,{class:"app-splash__mark",moving:o.value},null,8,["moving"])])):Te("",!0)]),_:1}))}}),Yh=Be(Xh,[["__scopeId","data-v-50c019ec"]]),Jh=["aria-busy"],Qh={key:0,class:"error-state__icon","aria-hidden":"true"},Zh={class:"error-state__body"},em={class:"error-state__title"},tm={key:0,class:"error-state__description"},nm=Ee({__name:"ErrorState",props:{title:{default:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð°Ð½Ð½Ñе"},description:{default:""},inline:{type:Boolean,default:!1},size:{default:"md"},hideIcon:{type:Boolean,default:!1},showRetry:{type:Boolean,default:!0},retryText:{default:"ÐовÑоÑиÑÑ"},retryLabel:{default:"ÐовÑоÑиÑÑ Ð·Ð°Ð³ÑÑзкÑ"},retryDisabled:{type:Boolean,default:!1},retrying:{type:Boolean,default:!1},retryingText:{default:"ÐагÑÑжаемâ¦"},retryingLabel:{default:"ÐовÑоÑÐ½Ð°Ñ Ð·Ð°Ð³ÑÑзка даннÑÑ
"}},emits:["retry"],setup(e,{emit:t}){const n=e,r=t,o=B(()=>n.size==="sm"?20:24);return(s,i)=>(V(),re("div",{class:We(["error-state",{"error-state--inline":s.inline,[`error-state--${s.size}`]:!0}]),role:"alert","aria-live":"assertive","aria-atomic":"true","aria-busy":s.retrying||void 0},[s.hideIcon?Te("",!0):(V(),re("div",Qh,[fe(ie(tl),{size:o.value},null,8,["size"])])),X("div",Zh,[X("div",em,Me(s.title),1),s.description?(V(),re("p",tm,Me(s.description),1)):Te("",!0)]),s.showRetry?(V(),Pe(At,{key:1,class:"error-state__retry",type:"button",kind:"secondary",size:"sm","is-active":s.retrying,"is-disabled":s.retryDisabled||s.retrying,"aria-label":s.retrying?s.retryingLabel:s.retryLabel,onClick:i[0]||(i[0]=a=>r("retry"))},{text:xe(()=>[tt(Me(s.retrying?s.retryingText:s.retryText),1)]),_:1},8,["is-active","is-disabled","aria-label"])):Te("",!0)],10,Jh))}}),yl=Be(nm,[["__scopeId","data-v-c50db8cd"]]),Mr="session_id";let Is=null;const as=[];let Pr=!1;function rm(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function om(){try{const t=new URLSearchParams(window.location.search).get("landing_sid");if(Ur(t)){Z.setRaw(Mr,t);return}Ur(Z.getRaw(Mr))||Z.setRaw(Mr,rm())}catch{}}function gl(){try{return Z.getRaw(Mr)}catch{return null}}function sm(){Ya()}function im(){try{Xa();const e={};for(const t of Wn){const n=localStorage.getItem(t);Rs(n)&&(e[t]=n)}return e}catch{return{}}}function am(){try{for(const e of Wn)localStorage.removeItem(e);localStorage.removeItem(Ka)}catch{}}function lm(e){Is=e}function cm(){Is=null}function um(){return window.matchMedia("(pointer: coarse)").matches&&Math.min(window.screen.width,window.screen.height)<820?"mobile":"desktop"}function dm(){return vn()?"pwa":window.innerWidth<te.tablet?"phone":window.innerWidth<te.desktop?"tablet":"desktop"}function He(e,t={}){try{const n={name:e,props:{...t,device:um()},session_id:gl(),user_id:Is,occurred_at:new Date().toISOString()};as.push(n),fm()}catch{}}function fm(){Pr||(Pr=!0,setTimeout(()=>{Pr=!1,vl()},0))}function vl(){if(as.length===0)return;const e=as.splice(0,100);pm(e).catch(t=>void 0)}async function pm(e){const t=`${$a}/events`,n=JSON.stringify({events:e}),r=new Blob([n],{type:"application/json"});typeof navigator<"u"&&navigator.sendBeacon&&navigator.sendBeacon(t,r)||await fetch(t,{method:"POST",body:n,headers:{"Content-Type":"application/json"},keepalive:!0})}function ls(){Pr=!1,vl()}function hm(){try{document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ls()}),window.addEventListener("pagehide",()=>ls())}catch{}}const Qr=Object.freeze(Object.defineProperty({__proto__:null,captureUtmFromUrl:sm,clearStoredUtm:am,flushEvents:ls,getLayoutMode:dm,getSessionId:gl,getStoredUtm:im,identify:lm,initAnalyticsFlush:hm,initSession:om,resetIdentity:cm,track:He},Symbol.toStringTag,{value:"Module"})),mm=Ee({__name:"ErrorBoundary",props:{fallbackTitle:{default:"ЧÑо-Ñо поÑло Ð
326½Ðµ Ñак"},fallbackDescription:{default:"ÐопÑобÑйÑе обновиÑÑ Ð±Ð»Ð¾Ðº или пеÑезагÑÑзиÑÑ ÑÑÑаниÑÑ."},inlineFallback:{type:Boolean,default:!1},resetKey:{}},setup(e){const t=e,n=Ko(null),r=Ko(0),o=new Set(["0","1","15"]),s=new Set(["setup function","render function","component update"]);function i(d){var m;const h=(m=/#runtime-(\w+)$/.exec(d))==null?void 0:m[1];return h===void 0?s.has(d):o.has(h)}const a=fs();function l(d,h,m){const g=(h==null?void 0:h.$options.name)??(h==null?void 0:h.$options.__name)??"";He("render_error",{component:g,info:m,section:String((a==null?void 0:a.name)??""),message:d.message.slice(0,200),stack:(d.stack??"").slice(0,800)})}Ul((d,h,m)=>{if(!i(m))return;const g=d instanceof Error?d:new Error(String(d));return n.value=g,l(g,h,m),!1});const c=()=>{n.value=null,r.value++};return Ce(()=>t.resetKey,()=>{n.value&&c()}),(d,h)=>n.value?je(d.$slots,"fallback",{key:1,error:n.value,reset:c},()=>[fe(yl,{title:d.fallbackTitle,description:d.fallbackDescription,inline:d.inlineFallback,onRetry:c},null,8,["title","description","inline"])],!0):(V(),re("div",{key:r.value,class:"error-boundary"},[je(d.$slots,"default",{},void 0,!0)]))}}),ym=Be(mm,[["__scopeId","data-v-f667a5e5"]]),gm=Ee({__name:"App",setup(e){const t=As(),n=no(),r=fs(),{useMobileLayout:o}=Ld(),{showUpdatePrompt:s,dismiss:i,update:a}=Hd(),{openAction:l}=ff();zd(l);const c=mf(),d=Pf(),h=k(!1),m=k(!1);let g;const y=w=>{document.documentElement.classList.add("no-transitions"),w?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.documentElement.classList.remove("no-transitions")})})},S=w=>{document.documentElement.classList.toggle("app-mobile-layout",w)};return Qt(()=>{y(t.isDark),S(o.value),g=setTimeout(()=>{h.value||(m.value=!0)},300),n.isReady().catch(()=>{}).then(()=>{h.value=!0,g&&clearTimeout(g),m.value=!1})}),Ce(()=>t.isDark,w=>{y(w)}),Ce(o,w=>{S(w)}),Ce(()=>Rr.isKeyboardOpen,w=>{document.documentElement.classList.toggle("keyboard-open",w)},{immediate:!0}),sa(()=>{g&&clearTimeout(g),c(),d()}),(w,p)=>{const b=Hl("router-view");return V(),re("div",{class:We(["app",{dark:ie(t).isDark,"app--webapp":ie(o)}])},[fe(ym,{"reset-key":ie(r).fullPath,"fallback-title":"Ðе ÑдалоÑÑ Ð¾ÑкÑÑÑÑ Ñаздел","fallback-description":"ÐопÑобÑйÑе оÑкÑÑÑÑ Ñаздел еÑÑ Ñаз."},{default:xe(()=>[fe(b)]),_:1},8,["reset-key"]),fe(Yh,{"is-loading":m.value},null,8,["is-loading"]),fe(fp),fe(Tp,{visible:ie(s),onDismiss:ie(i),onUpdate:ie(a)},null,8,["visible","onDismiss","onUpdate"]),fe($p),fe(Ph),fe($h)],2)}}});let _l;const vm=new Promise(e=>{_l=e});function _m(){_l()}const bm={key:0,class:"skeleton-lines","aria-hidden":"true"},wm=Ee({__name:"Skeleton",props:{variant:{default:"text"},width:{},height:{},rounded:{type:Boolean,default:!1},radius:{},lines:{default:1},lastLineWidth:{default:"60%"}},setup(e){const t=e,n=i=>typeof i=="number"?`${i}px`:i;function r(i,a){const l={},c=n(i),d=n(t.height);return c&&(l.width=c),d&&(l.height=d,l.minHeight="0"),a==="circle"&&(c||d)&&(l.width=c||d||"",l.height=d||c||""),t.radius&&(l.borderRadius=`var(--radius-${t.radius})`),l}const o=B(()=>r(t.width,t.variant)),s=i=>r(i===t.lines?t.lastLineWidth:t.width??"100%","text");return(i,a)=>i.lines>1?(V(),re("span",bm,[(V(!0),re(qn,null,ps(i.lines,l=>(V(),re("span",{key:l,class:We(["skeleton","skeleton--text",{"skeleton--rounded":i.rounded}]),style:Dt(s(l)),"aria-hidden":"true"},null,6))),128))])):(V(),re("span",{key:1,class:We(["skeleton",`skeleton--${i.variant}`,{"skeleton--rounded":i.rounded}]),style:Dt(o.value),"aria-hidden":"true"},null,6))}}),Em=Be(wm,[["__scopeId","data-v-8275bd2e"]]),Sm={class:"route-skeleton",role:"status","aria-busy":"true","aria-label":"ÐагÑÑзка ÑÑÑаниÑÑ","aria-live":"polite"},km={class:"route-skeleton__toolbar"},Am={class:"route-skeleton__line"},Tm=Ee({__name:"RouteSkeleton",setup(e){return(t,n)=>(V(),re("div",Sm,[X("div",km,[X("div",Am,[fe(Em,{variant:"text",width:"18ch"})])]),n[0]||(n[0]=X("div",{class:"route-skeleton__body"},null,-1))]))}}),Rm=Be(Tm,[["__scopeId","data-v-2712e36a"]]),pe=e=>ql({loader:e,loadingComponent:zl(Rm),delay:150,timeout:2e4,errorComponent:Ee({name:"RouteLoadError",setup(){return()=>it(yl,{title:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ñаздел",description:"ÐÑовеÑÑÑе подклÑÑение и повÑоÑиÑе попÑÑкÑ.",onRetry:es})}})}),bl=Ee({__name:"Spinner",props:{size:{default:"md"},color:{},inline:{type:Boolean,default:!1}},setup(e){const t=e,n={xs:14,sm:20,md:32,lg:48,xl:64},r=B(()=>typeof t.size=="number"?t.size:n[t.size]),o=B(()=>({"--spinner-size":`${r.value}px`,"--spinner-color":t.color||"var(--color-primary)"})),s=B(()=>t.inline?{display:"inline-flex",padding:0}:{});return(i,a)=>(V(),re("div",{class:"g-spinner-container",style:Dt(s.value)},[X("div",{class:"g-spinner",style:Dt(o.value),role:"status","aria-label":"ÐагÑÑзка"},null,4)],4))}});function xm(){const e=Ja(),t=B(()=>e.entitlements!==null),n=B(()=>{var i;return((i=e.entitlements)==null?void 0:i.is_pro)===!0});function r(){e.entitlements===null&&!e.isLoadingEntitlements&&e.fetchSpaceEntitlements().catch(()=>{})}function o(i){const a=e.entitlements;return a?a.is_pro?!0:a.features[i]===!0:!1}const s=B(()=>{var i;return((i=e.entitlements)==null?void 0:i.bidder_allowed)===!0});return{can:o,canBidder:s,isPro:n,permsLoaded:t,ensureLoaded:r}}const wl="https://avibox.ru",Lm={bidSlots:"/kb/bid-manager/bid-slots",team:"/kb/account/team",messengerTariff:"/kb/messages/avito-messenger-tariff",topupWallet:"/kb/billing/topup-wallet",referral:"/kb/billing/referral"};
326function Om(e){return`${wl}${Lm[e]}`}const Ki={"/avito_profiles":"/kb/profiles/screen","/history":"/kb/history/screen","/monitoring":"/kb/monitoring/screen","/calculators":"/kb/calculators/screen","/analytics/dashboard":"/kb/analytics/dashboard-screen","/analytics/leadboard":"/kb/analytics/leadboard-screen","/analytics/teamboard":"/kb/analytics/teamboard-screen","/analytics/spendboard":"/kb/analytics/spendboard-screen","/messages":"/kb/messages/messages-screen","/chat-auto-reply":"/kb/messages/chat-auto-reply-screen","/reviews-auto-reply":"/kb/reviews/screen","/calls":"/kb/calls/screen","/contacts":"/kb/contacts/screen","/assistant":"/kb/assistant/screen","/bid-manager":"/kb/bid-manager/screen","/autoload":"/kb/autoload/screen"};function eg(e){const t=Object.keys(Ki).filter(n=>e.path===n||e.path.startsWith(`${n}/`)).sort((n,r)=>r.length-n.length)[0];return`${wl}${t?Ki[t]:"/kb"}`}const El={client_reports:{icon:Lr,title:"ÐÑÑÑÑÑ ÐºÐ»Ð¸ÐµÐ½Ñам",subtitle:"ÐÑÑÑÑÑ ÐºÐ»Ð¸ÐµÐ½Ñам Ñ Ð²Ð°Ñим логоÑипом и ÑÑÑлкой Ð´Ð»Ñ ÐºÐ»Ð¸ÐµÐ½Ñа. ÐоÑÑÑпно в ÐРРи ÐÐ Ð+.",cards:[{icon:Lr,title:"ÐÑÑÑÑ Ð¾ ÑабоÑе",desc:"РезÑлÑÑаÑÑ Ð¾Ð´Ð½Ð¾Ð³Ð¾ пÑоÑÐ¸Ð»Ñ Ð·Ð° меÑÑÑ, вÑполненнÑе ÑабоÑÑ, бÑÐ´Ð¶ÐµÑ Ð¸ план"},{icon:Wf,title:"PDF и ÑÑÑлка",desc:"СкаÑивание докÑменÑа и веÑÑÐ¸Ñ Ð´Ð»Ñ ÑелеÑона без вÑ
ода"},{icon:Ui,title:"ÐÑÐ²ÐµÑ ÐºÐ»Ð¸ÐµÐ½Ñа",desc:"ÐÑоÑмоÑÑÑ ÑÑÑлки, подÑвеÑждение бÑджеÑа и вопÑоÑÑ"},{icon:Bo,title:"ÐаÑе оÑоÑмление",desc:"ÐогоÑип, название, акÑÐµÐ½Ñ Ð¸ конÑакÑÑ Ð² оÑÑÑÑе"},{icon:Mi,title:"ЧеÑновики 1-го ÑиÑла",desc:"ÐвÑомаÑиÑеÑÐºÐ°Ñ Ð¿Ð¾Ð´Ð³Ð¾Ñовка оÑÑÑÑов за пÑоÑлÑй меÑÑÑ"},{icon:$o,title:"ÐбÑий Ñаблон",desc:"ÐÐ°Ð±Ð¾Ñ ÑÑÑÐ°Ð½Ð¸Ñ Ð¿Ð¾ ÑмолÑÐ°Ð½Ð¸Ñ Ð¸ ÑÑÑнÑе даннÑе меÑÑÑа"}]},dashboard:{icon:Qf,title:"ÐаÑбоÑд аналиÑики",subtitle:"ÐÐ¾Ð»Ð½Ð°Ñ ÐºÐ°ÑÑина по пÑоÑÐ¸Ð»Ñ â пÑоÑмоÑÑÑ, конÑакÑÑ, бÑджеÑ, конвеÑÑии и ÑÑоимоÑÑÑ Ð»Ð¸Ð´Ð° Ñ Ñазбивкой по днÑм, ÑакÑ, пÑогноз и план в одном меÑÑе",cards:[{icon:jf,title:"ÐÑ
Ð²Ð°Ñ Ð¸ вовлеÑение",desc:"ÐоказÑ, пÑоÑмоÑÑÑ Ð¸ конвеÑÑÐ¸Ñ â наÑколÑко обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð·Ð°Ð¼ÐµÑÐ½Ñ Ð¸ инÑеÑеÑÐ½Ñ Ð¿Ð¾ÐºÑпаÑелÑм"},{icon:cp,title:"ÐбÑаÑÐµÐ½Ð¸Ñ Ð¸ лидÑ",desc:"ÐонÑакÑÑ, звонки, ÑаÑÑ, конвеÑÑии и ÑÑоимоÑÑÑ ÐºÐ°Ð¶Ð´Ð¾Ð³Ð¾ лида"},{icon:Hi,title:"РаÑÑ
од бÑджеÑа",desc:"ÐжедневнÑй ÑаÑÑ
од на пÑодвижение, пÑогноз до конÑа меÑÑÑа и ÑÑоимоÑÑÑ Ð¿Ð¾ÐºÐ°Ð·Ð°"},{icon:Uo,title:"ÐÐ¶ÐµÐ´Ð½ÐµÐ²Ð½Ð°Ñ Ð´Ð¸Ð½Ð°Ð¼Ð¸ÐºÐ°",desc:"Разбивка по днÑм Ñ Ð¸Ñогами по неделÑм â видно, когда бÑл ÑоÑÑ Ð¸ когда Ñпад"},{icon:Ni,title:"СÑавнение пÑоÑилей",desc:"СопоÑÑавлÑйÑе показаÑели неÑколÑкиÑ
пÑоÑилей, ÑÑÐ¾Ð±Ñ Ð½Ð°Ð¹Ñи ÑоÑки ÑоÑÑа"},{icon:Fi,title:"ФакÑ, пÑогноз, план",desc:"ТекÑÑие знаÑениÑ, пÑогноз до конÑа меÑÑÑа и план на оÑнове пÑедÑдÑÑиÑ
пеÑиодов"},{icon:Ii,title:"ÐÑаÑики и ÑÑендÑ",desc:"ÐизÑализаÑÐ¸Ñ Ð¿Ð¾ÐºÐ°Ð·Ð¾Ð², пÑоÑмоÑÑов, конÑакÑов и бÑджеÑа Ñ ÑÑавнением по меÑÑÑам"},{icon:$o,title:"ÐÐ¸Ð±ÐºÐ°Ñ Ð½Ð°ÑÑÑойка",desc:"ÐакÑепиÑе KPI в Ñапке, ÑкÑÑвайÑе лиÑние меÑÑики и гÑаÑики, менÑйÑе поÑÑдок под ÑебÑ"}]},leaderboard:{icon:Pi,title:"ÐидбоÑд аналиÑики обÑаÑений",subtitle:"ЧаÑÑ, звонки и AI-аÑÑиÑÑÐµÐ½Ñ â ÑкоÑоÑÑÑ Ð¾ÑвеÑа, пÑопÑÑеннÑе лидÑ, ÑÐµÐ¿Ð»Ð¾Ð²Ð°Ñ ÐºÐ°ÑÑа нагÑÑзки и SLA-Ñели в одном меÑÑе",cards:[{icon:No,title:"ÐналиÑика ÑаÑов",desc:"ÐÑ
одÑÑие ÑаÑÑ, ÑкоÑоÑÑÑ Ð¿ÐµÑвого оÑвеÑа и пÑоÑÐµÐ½Ñ Ð¿ÑопÑÑеннÑÑ
обÑаÑений"},{icon:tp,title:"ÐналиÑика звонков",desc:"ÐÑинÑÑÑе и пÑопÑÑеннÑе звонки, вÑÐµÐ¼Ñ Ð¾Ð¶Ð¸Ð´Ð°Ð½Ð¸Ñ, динамика по днÑм"},{icon:xr,title:"AI-аÑÑиÑÑенÑ",desc:"ÐкÑивнÑе аÑÑиÑÑенÑÑ, ÑобÑаннÑе конÑакÑÑ, конвеÑÑÐ¸Ñ Ð¸ воÑонка диалогов"},{icon:op,title:"SLA-Ñели",desc:"ÐадайÑе ÑелевÑе показаÑели ÑкоÑоÑÑи оÑвеÑа и Ð´Ð¾Ð»Ñ Ð´Ð¾Ð¿ÑÑÑимÑÑ
пÑопÑÑков"},{icon:Zf,title:"Ð¢ÐµÐ¿Ð»Ð¾Ð²Ð°Ñ ÐºÐ°ÑÑа",desc:"ÐагÑÑзка по днÑм и ÑаÑам â планиÑÑйÑе ÑÐ¼ÐµÐ½Ñ Ð¿Ð¾Ð´ пиковÑе ÑаÑÑ"},{icon:Vf,title:"Топ обÑÑвлений",desc:"Ðакие обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð¿ÑиноÑÑÑ Ð±Ð¾Ð»ÑÑе вÑего обÑаÑений â ÑокÑÑ Ð±ÑджеÑа на лидеÑаÑ
"},{icon:Di,title:"РабоÑие ÑаÑÑ",desc:"ФилÑÑÑÑйÑе аналиÑÐ¸ÐºÑ ÑолÑко за ÑабоÑее вÑÐµÐ¼Ñ Ð´Ð»Ñ ÑеÑÑной оÑенки командÑ"},{icon:Ni,title:"СÑавнение пÑоÑилей",desc:"СопоÑÑавлÑйÑе показаÑели ÑазнÑÑ
пÑоÑилей и пеÑиодов Ð¼ÐµÐ¶Ð´Ñ Ñобой"}]},spendboard:{icon:Hi,title:"СпендбоÑд",subtitle:"ÐналиÑика ÑаÑÑ
одов на пÑодвижение â наÑ
одиÑе обÑÑвлениÑ, коÑоÑÑе ÑливаÑÑ Ð±ÑджеÑ, и Ñе, ÑÑо пÑиноÑÑÑ Ð´ÐµÑÑвÑе лидÑ",cards:[{icon:ap,title:"СливаÑÑ Ð±ÑджеÑ",de
326sc:"ÐбÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ñ Ð°Ð½Ð¾Ð¼Ð°Ð»Ñно вÑÑокой ÑÑоимоÑÑÑÑ Ð»Ð¸Ð´Ð° вÑÑе Ð¼ÐµÐ´Ð¸Ð°Ð½Ñ ÐºÐ°ÑегоÑии"},{icon:Uo,title:"ÐидеÑÑ",desc:"ÐбÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ñ Ñамой низкой ÑÑоимоÑÑÑÑ Ð»Ð¸Ð´Ð° â маÑÑÑабиÑÑйÑе бÑÐ´Ð¶ÐµÑ Ð½Ð° ниÑ
"},{icon:np,title:"ÐкономиÑ",desc:"СколÑко можно ÑÑкономиÑÑ, оÑклÑÑив неÑÑÑекÑивнÑе обÑÑвлениÑ"},{icon:ip,title:"СигналÑ",desc:"ÐлаÑÑиÑикаÑÐ¸Ñ ÐºÐ°Ð¶Ð´Ð¾Ð³Ð¾ обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð¾Ñ A до G по ÑÑÑекÑивноÑÑи ÑаÑÑ
ода"},{icon:Ii,title:"ÐÑÑоÑÐ¸Ñ Ð¼ÐµÑÑик",desc:"ÐÑаÑик ÑÑоимоÑÑи лида и пÑоÑмоÑÑов по обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð·Ð° 90 дней"}]},teamboard:{icon:Yf,title:"ТимбоÑд",subtitle:"ÐÑÑекÑивноÑÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ð¿Ð¾ звонкам и ÑаÑам â ÑкоÑкаÑд менеджеÑов, конÑÑÐ¾Ð»Ñ ÐºÐ°ÑеÑÑва и AI-ÑÐ°Ð·Ð±Ð¾Ñ ÑазговоÑов",cards:[{icon:sp,title:"СкоÑкаÑд",desc:"ÐеÑÑики каждого менеджеÑа по звонкам и ÑаÑам в одной ÑаблиÑе"},{icon:Fi,title:"ÐлÑÑевÑе KPI",desc:"ÐидÑ, конвеÑÑиÑ, ÑкоÑоÑÑÑ Ð¾ÑвеÑа и пÑоÑÐµÐ½Ñ Ð·Ð°ÐºÑÑÑий за пеÑиод"},{icon:rp,title:"ÐонÑÑÐ¾Ð»Ñ ÐºÐ°ÑеÑÑва",desc:"ÐенÑа пÑоблемнÑÑ
звонков: пÑопÑÑеннÑе, коÑоÑкие, Ð½Ð¸Ð·ÐºÐ°Ñ ÐºÐ¾Ð½Ð²ÐµÑÑиÑ"},{icon:Nn,title:"AI-авÑоÑазбоÑ",desc:"ÐвÑомаÑиÑеÑкий AI-ÑÐ°Ð·Ð±Ð¾Ñ Ð·Ð²Ð¾Ð½ÐºÐ¾Ð² Ñ Ð´Ð½ÐµÐ²Ð½Ñм лимиÑом и бÑкÑиллом иÑÑоÑии"},{icon:Lr,title:"СкÑÐ¸Ð¿Ñ Ð¿Ñодаж",desc:"ÐдинÑй ÑкÑÐ¸Ð¿Ñ Ð´Ð»Ñ Ð¿ÑоÑÑÑанÑÑва или пÑоÑÐ¸Ð»Ñ â оÑвеÑÑ Ð¿Ð¾ ÑÑандаÑÑÑ"},{icon:Pi,title:"ÐÑаÑики",desc:"Ðинамика конвеÑÑии и ÑаÑпÑеделение иÑÑ
одов ÑазговоÑов"}]},aiAssistant:{icon:xr,title:"AI-аÑÑиÑÑенÑ",subtitle:"AI-помоÑник оÑвеÑÐ°ÐµÑ Ð½Ð° ÑообÑÐµÐ½Ð¸Ñ Ð¿Ð¾ÐºÑпаÑелей в ÐвиÑо за Ð²Ð°Ñ â по ваÑей базе знаний, кÑÑглоÑÑÑоÑно и без пÑопÑÑеннÑÑ
обÑаÑений",cards:[{icon:xr,title:"ÐÑвеÑÐ°ÐµÑ Ð·Ð° ваÑ",desc:"ÐÑÑиÑÑÐµÐ½Ñ Ð²ÐµÐ´ÑÑ Ð¿ÐµÑепиÑÐºÑ Ñ Ð¿Ð¾ÐºÑпаÑелем Ñам â вклÑÑаеÑÑÑ Ð¾Ð´Ð½Ð¸Ð¼ ÑÑмблеÑом"},{icon:Uf,title:"Ðаза знаний",desc:"ÐпиÑиÑе ÑоваÑÑ Ð¸ ÑÑлÑги â аÑÑиÑÑÐµÐ½Ñ Ð¾ÑвеÑÐ°ÐµÑ ÑолÑко по ваÑим даннÑм, без вÑдÑмок"},{icon:Gf,title:"ТеÑÑ-ÑаÑ",desc:"ÐÑовеÑÑÑе оÑвеÑÑ Ð°ÑÑиÑÑенÑа еÑÑ Ð´Ð¾ запÑÑка â пÑÑмо на ÑÑÑаниÑе"},{icon:Ff,title:"Ðожим клиенÑа",desc:"ÐÐ°Ð¿Ð¾Ð¼Ð¸Ð½Ð°ÐµÑ Ð¿Ð¾ÐºÑпаÑелÑ, еÑли он замолÑал â наÑÑÑойÑе ÑиÑло попÑÑок и инÑеÑвал"},{icon:Ui,title:"ÐоÑÑоÑннÑе клиенÑÑ",desc:"ÐÑобое поведение пÑи повÑоÑном обÑаÑении: Ñкидка, лоÑлÑноÑÑÑ Ð¸Ð»Ð¸ ÑÐ²Ð¾Ñ Ð»Ð¾Ð³Ð¸ÐºÐ°"},{icon:gr,title:"Ðоги диалогов",desc:"ÐÑе ÑазговоÑÑ Ð¸ дейÑÑÐ²Ð¸Ñ Ð°ÑÑиÑÑенÑа â Ñ ÑекÑÑом оÑвеÑа и ÑÑаÑÑÑом"}]},chatAutoReply:{icon:No,title:"ÐвÑооÑвеÑÑ Ð½Ð° ÑообÑениÑ",subtitle:"ÐÐ¸Ð±ÐºÐ°Ñ ÑиÑÑема авÑооÑвеÑов в ÑÐ°Ñ ÐвиÑо â наÑÑÑаивайÑе пÑавила, ÑÑиггеÑÑ Ð¸ ÑаÑпиÑание, ÑÑÐ¾Ð±Ñ Ð¼Ð³Ð½Ð¾Ð²ÐµÐ½Ð½Ð¾ оÑвеÑаÑÑ ÐºÐ»Ð¸ÐµÐ½Ñам и не ÑпÑÑкаÑÑ Ð½Ð¸ одного обÑаÑениÑ",cards:[{icon:qi,title:"Ðибкие пÑавила",desc:"СоздавайÑе неогÑаниÑенное колиÑеÑÑво пÑавил Ñ ÑазнÑми ÑÑиггеÑами, ÑообÑениÑми и наÑÑÑойками"},{icon:No,title:"УмнÑе ÑÑиггеÑÑ",desc:"РеагиÑÑйÑе на пеÑвое ÑообÑение, лÑбое ÑообÑение или конкÑеÑнÑе клÑÑевÑе Ñлова"}
326,{icon:Mi,title:"РаÑпиÑание",desc:"ÐаÑÑÑойÑе ÑаÑÑ ÑабоÑÑ Ð¸ дни недели â авÑооÑвеÑÑ ÑÑабоÑаÑÑ ÑолÑко в нÑжное вÑемÑ"},{icon:Kf,title:"ФилÑÑÑÑ",desc:"ÐгÑаниÑÑÑе пÑавило по Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¾Ð±ÑÑвлениÑ, каÑегоÑии или гоÑÐ¾Ð´Ñ Ð¿Ð¾ÐºÑпаÑелÑ"},{icon:Nn,title:"AI-пеÑеÑÑазиÑование",desc:"ÐейÑоÑеÑÑ Ð´ÐµÐ»Ð°ÐµÑ ÐºÐ°Ð¶Ð´Ñй оÑÐ²ÐµÑ ÑникалÑнÑм â клиенÑÑ Ð½Ðµ видÑÑ Ñаблон"},{icon:Bo,title:"ÐаÑÑинки в оÑвеÑаÑ
",desc:"ÐобавлÑйÑе изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ðº авÑооÑвеÑам â пÑайÑ-лиÑÑÑ, каÑалоги, инÑÑÑÑкÑии"},{icon:Bi,title:"ÐопиÑование пÑавил",desc:"ÐеÑенеÑиÑе наÑÑÑоеннÑе пÑавила на дÑÑгие пÑоÑили в паÑÑ ÐºÐ»Ð¸ÐºÐ¾Ð²"},{icon:Fo,title:"ÐаÑÑовое ÑпÑавление",desc:"ÐклÑÑайÑе и вÑклÑÑайÑе авÑооÑвеÑÑ Ð¿Ð¾ вÑем пÑоÑилÑм из одного окна"},{icon:gr,title:"Ðоги оÑпÑавок",desc:"ÐÑÑлеживайÑе каждÑй оÑпÑавленнÑй авÑооÑÐ²ÐµÑ â ÑÑаÑÑÑ, ÑÑиггеÑ, ÑекÑÑ ÑообÑениÑ"}]},reviewsAutoReply:{icon:$i,title:"ÐвÑооÑвеÑÑ Ð½Ð° оÑзÑвÑ",subtitle:"AI-ÑиÑÑема авÑомаÑиÑеÑки оÑвеÑÐ°ÐµÑ Ð½Ð° оÑзÑÐ²Ñ Ð¿Ð¾ÐºÑпаÑелей â повÑÑайÑе ÑейÑинг, ÑкономÑÑе вÑÐµÐ¼Ñ Ð¸ ÑкÑеплÑйÑе довеÑие клиенÑов",cards:[{icon:Nn,title:"AI-генеÑаÑÐ¸Ñ Ð¾ÑвеÑов",desc:"ÐейÑоÑеÑÑ Ð°Ð½Ð°Ð»Ð¸Ð·Ð¸ÑÑÐµÑ ÑекÑÑ Ð¾ÑзÑва и ÑоздаÑÑ Ð¿ÐµÑÑонализиÑованнÑй оÑÐ²ÐµÑ Ñ ÑÑÑÑом конÑекÑÑа"},{icon:$i,title:"ФилÑÑÑ Ð¿Ð¾ ÑейÑингам",desc:"ÐÑбиÑайÑе на какие оÑенки оÑвеÑаÑÑ Ð°Ð²ÑомаÑиÑеÑки â Ð¾Ñ 1â
до 5â
, гибко наÑÑÑаивайÑе"},{icon:$o,title:"ÐÐ¾Ð»Ð¾Ñ Ð¸ Ñон",desc:"Тон ÑеÑи и лиÑо оÑпÑавиÑелÑ: мÑжÑкой, женÑкий или ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ â ÑоÑмалÑно или по-дÑÑжеÑки"},{icon:Do,title:"ÐимиÑÑ Ð¾ÑвеÑов",desc:"УÑÑановиÑе дневной Ð»Ð¸Ð¼Ð¸Ñ Ð°Ð²ÑооÑвеÑов или ÑабоÑайÑе без огÑаниÑений"},{icon:Bi,title:"ÐопиÑование наÑÑÑоек",desc:"ÐеÑенеÑиÑе наÑÑÑойки на дÑÑгие пÑоÑили в один клик â не наÑÑÑаивайÑе каждÑй заново"},{icon:gr,title:"Ðог оÑвеÑов",desc:"ÐÑÑлеживайÑе вÑе оÑпÑавленнÑе авÑооÑвеÑÑ, пÑовеÑÑйÑе каÑеÑÑво и коÑÑекÑиÑÑйÑе наÑÑÑойки"},{icon:Fo,title:"ÐаÑÑовое ÑпÑавление",desc:"ÐклÑÑайÑе и вÑклÑÑайÑе авÑооÑвеÑÑ Ð´Ð»Ñ Ð²ÑеÑ
пÑоÑилей из одного окна"},{icon:Bo,title:"Ðнализ ÑоÑо",desc:"AI анализиÑÑÐµÑ Ð¿ÑиложеннÑе к оÑзÑÐ²Ñ ÑоÑо, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð½ÑÑÑ Ð¿ÑÐ¾Ð±Ð»ÐµÐ¼Ñ Ð¸ оÑвеÑиÑÑ ÑоÑнее"}]},bidder:{icon:Do,title:"Ðид-менеджеÑ",subtitle:"ÐвÑомаÑиÑеÑки ÑпÑавлÑÐµÑ ÑÑавками на ваÑи обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð² ÐвиÑо â Ð¿Ð¾Ð´Ð½Ð¸Ð¼Ð°ÐµÑ Ð¿Ð¾Ð·Ð¸ÑÐ¸Ñ Ð² нÑжное вÑÐµÐ¼Ñ Ð¸ оÑÑанавливаеÑ, когда обÑÑвление Ñже ввеÑÑ
Ñ",cards:[{icon:Do,title:"ÐидÑ",desc:"ÐаждÑй бид â пÑавило ÑÑавки Ð´Ð»Ñ Ð¾Ð±ÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ñо ÑÑÑаÑегией и ÑаÑпиÑанием"},{icon:Di,title:"РаÑпиÑание",desc:"ÐклÑÑайÑе ÑпÑавление ÑÑавками ÑолÑко в нÑжнÑе ÑаÑÑ Ð¸ дни недели"},{icon:Uo,title:"ÐозиÑии",desc:"СпаÑклайн показÑÐ²Ð°ÐµÑ Ð¸ÑÑоÑÐ¸Ñ Ð¿Ð¾Ð·Ð¸Ñии обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð·Ð° 14 дней"},{icon:Fo,title:"ÐвÑо-деакÑиваÑиÑ",desc:"Ð¡Ð½Ð¸Ð¼Ð°ÐµÑ Ð¾Ð±ÑÑвление пÑи заданнÑÑ
ÑÑловиÑÑ
â не ÑÑаÑÑÑе бÑÐ´Ð¶ÐµÑ Ð²Ð¿ÑÑÑÑÑ"},{icon:qi,title:"Ð ÑеалÑном вÑемени",desc:"СÑаÑÑÑ Ð¸ позиÑÐ¸Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÑÑÑÑÑ Ð¼Ð³Ð½Ð¾Ð²ÐµÐ½Ð½Ð¾ â без пеÑезагÑÑзки ÑÑÑаниÑÑ"},{icon:gr,title:"ÐÑÑоÑÐ¸Ñ ÑÑавок",desc:"Ðаждое изменение ÑÑавки и позиÑии â в Ñазделе «Ðоги»"}]}},Cm={class:"feature-paywall"},Mm={class:"feature-paywall__inner"},Pm={class:"feature-paywall__header"},Im={class:"feature-paywall__icon"},Dm={class:"feature-paywall__title"},Bm={class:"feature-paywall__subtitle"},Nm={class:"intro-features feature-paywall__grid"},$m={class:"feature-title"},Fm={class:"feature-desc"},Um={class:"feature-paywall__cta"},Hm={class:"feature-paywall__badge"},qm={key:0,class:"feature-paywall__bid-slots-note"},zm=["href"],Vm=Ee({__name:"FeaturePaywall",props:{content:{}},setup(e){const t=e,n=co(),r=B(()=>Vl(t.content)===El.bidder);function o(){n.open("tariffs",r.value?{focus:"bid-slots"}:void 0)}return(s,i)=>(V(),re("div",Cm,[X("div",Mm,[X("div",Pm,[X("div",Im,[(V(),Pe(Hn(s.content.icon),{size:34,"stroke-width":1.5}
326))]),X("h2",Dm,Me(s.content.title),1),X("p",Bm,Me(s.content.subtitle),1)]),X("div",Nm,[(V(!0),re(qn,null,ps(s.content.cards,(a,l)=>(V(),re("div",{key:a.title,class:"intro-feature-card"},[X("div",{class:We(["feature-icon",`fp-accent-${l%6}`])},[(V(),Pe(Hn(a.icon)))],2),X("h3",$m,Me(a.title),1),X("p",Fm,Me(a.desc),1)]))),128))]),X("div",Um,[X("div",Hm,[fe(ie(Nn),{size:14}),i[0]||(i[0]=X("span",null,"ÐоÑÑÑпно на ÑаÑиÑаÑ
ÐÐ Ð, ÐÐ Ð+ и ÐонÑÑÑÑкÑоÑе",-1))]),r.value?(V(),re("p",qm,[i[1]||(i[1]=tt(" ÐÑпиÑе бид-ÑлоÑÑ Ð² ÐонÑÑÑÑкÑоÑе â ÑаÑÐ¸Ñ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑÑ Ñам ")),X("a",{class:"link",href:ie(Om)("bidSlots"),target:"_blank",rel:"noopener noreferrer","aria-label":"ÐодÑобнее о бид-ÑлоÑаÑ
"},"ÐодÑобнее",8,zm)])):Te("",!0),fe(At,{size:"md",onClick:o,kind:"primary"},{text:xe(()=>[tt(Me(r.value?"ÐÑпиÑÑ Ð±Ð¸Ð´-ÑлоÑÑ":"РаÑÑиÑиÑÑ ÑаÑиÑ"),1)]),_:1})])])]))}}),jm=Be(Vm,[["__scopeId","data-v-05d96577"]]),Wm={key:0,class:"feature-gate__loading"},Gm={key:3,class:"feature-gate"},Km={class:"feature-gate__card"},Xm={class:"feature-gate__icon"},Ym={class:"feature-gate__title"},Jm={class:"feature-gate__desc"},Qm={class:"feature-gate__badge"},Zm="ÐоÑÑÑпно на ÐÐ Ð, ÐÐ Ð+ и ÐонÑÑÑÑкÑоÑе",ey=Ee({__name:"FeatureGate",props:{feature:{},bidder:{type:Boolean},title:{},description:{},paywallKey:{}},setup(e){const t=e,n=B(()=>t.paywallKey?El[t.paywallKey]:void 0),{can:r,canBidder:o,permsLoaded:s,ensureLoaded:i}=xm(),a=co();Qt(i);const l=B(()=>t.bidder?o.value:t.feature?r(t.feature):!0),c=B(()=>t.feature?jn[t.feature]:void 0),d=B(()=>{var g;return t.title??((g=c.value)==null?void 0:g.title)??"Раздел недоÑÑÑпен"}),h=B(()=>{var g;return t.description??((g=c.value)==null?void 0:g.description)??"ÐÑÐ¾Ñ Ñаздел доÑÑÑпен на более ÑÑаÑÑиÑ
ÑаÑиÑаÑ
AviBOX HUB. ÐодклÑÑиÑе его, ÑÑÐ¾Ð±Ñ Ð¾ÑкÑÑÑÑ Ð´Ð¾ÑÑÑп."});function m(){a.open("tariffs")}return(g,y)=>ie(s)?l.value?je(g.$slots,"default",{key:1},void 0,!0):n.value?(V(),Pe(jm,{key:2,content:n.value},null,8,["content"])):(V(),re("div",Gm,[X("div",Km,[X("div",Xm,[fe(ie(ep),{size:40,"stroke-width":1.3})]),X("h2",Ym,Me(d.value),1),X("p",Jm,Me(h.value),1),X("div",Qm,[fe(ie(Nn),{size:14}),X("span",null,Me(Zm))]),fe(At,{size:"md",onClick:m,kind:"primary"},{text:xe(()=>y[0]||(y[0]=[tt("РаÑÑиÑиÑÑ ÑаÑиÑ")])),_:1})])])):(V(),re("div",Wm,[fe(bl)]))}}),Ds=Be(ey,[["__scopeId","data-v-4788bbb8"]]),ty={class:"under-construction"},ny={class:"uc-card"},ry={class:"uc-icon-wrapper"},oy={class:"uc-title"},sy={class:"uc-description"},iy={class:"uc-badge"},ay=Ee({__name:"UnderConstructionPlaceholder",props:{title:{},description:{},icon:{},badge:{default:"Ð ÑазÑабоÑке"},actionLabel:{}},emits:["action"],setup(e,{emit:t}){const n=t;return(r,o)=>(V(),re("div",ty,[X("div",ny,[X("div",ry,[(V(),Pe(Hn(r.icon),{size:48,"stroke-width":1.2}))]),X("h2",oy,Me(r.title),1),X("p",sy,Me(r.description),1),X("div",iy,[fe(ie(Xf),{size:14}),X("span",null,Me(r.badge),1)]),r.actionLabel?(V(),Pe(At,{key:0,onClick:o[0]||(o[0]=s=>n("action"))},{text:xe(()=>[tt(Me(r.actionLabel),1)]),_:1})):Te("",!0)])]))}}),ly=Be(ay,[["__scopeId","data-v-928af6ed"]]),cy=at("supportModal",()=>{const e=k(!1),t=k(null);function n(i){t.value=(i==null?void 0:i.draft)??null,e.value=!0}function r(){const i=t.value;return t.value=null,i}function o(){e.value=!1}function s(){e.value=!e.value}return{isOpen:e,open:n,close:o,toggle:s,consumeDraft:r}}),uy={key:0,class:"preview-gate__loading"},dy=Ee({__name:"PreviewGate",props:{title:{},description:{},icon:{},badge:{},supportCtaLabel:{}},setup(e){const t=Ts(),n=cy();function r(){n.open()}const o=k(!1);Qt(async()=>{t.user||await t.fetchUser({silent:!0}),o.value=!0});const s=B(()=>!!t.user||o.value),i=B(()=>t.isAdmin||t.isTester);return(a,l)=>s.value?i.value?je(a.$slots,"default",{key:1},void 0,!0):(V(),Pe(ly,{key:2,icon:a.icon,title:a.title,description:a.description,badge:a.badge,"action-label":a.supportCtaLabel,onAction:r},null,8,["icon","title","description","badge","action-label"])):(V(),re("div",uy,[fe(bl)]))}}),fy=Be(dy,[["__scopeId","data-v-73e16568"]]),Xi={main:"ÐлавнаÑ",profiles:"ÐÑоÑили ÐвиÑо",assistant:"AI-аÑÑиÑÑенÑ",monitoring:"ÐониÑоÑинг",messages:"ЦенÑÑ ÑообÑений",dashboard:"ÐаÑбоÑд",leadboard:"ÐидбоÑд",spendboard:"СпендбоÑд",teamboard:"ТимбоÑд",calculators:"ÐалÑкÑлÑÑоÑÑ",history:"ÐÑÑоÑÐ¸Ñ Ð¾Ð¿ÐµÑаÑий",contacts:"ÐонÑакÑÑ",responses:"ЦенÑÑ Ð¾Ñкликов",rental:"ЦенÑÑ Ð°ÑендÑ",calls:"ЦенÑÑ Ð·Ð²Ð¾Ð½ÐºÐ¾Ð²","chat-auto-reply":"ÐвÑооÑÐ²ÐµÑ Ð² ÑаÑ","reviews-auto-reply":"ÐвÑооÑÐ²ÐµÑ Ð½Ð° оÑзÑвÑ","bi
326d-manager":"Ðид-менеджеÑ",autoload:"ÐвÑозагÑÑзка",studio:"ФоÑоÑÑÑдиÑ","support-tickets":"ÐоддеÑжка","no-access":"ÐоÑÑÑп не наÑÑÑоен",admin:"ÐдминиÑÑÑиÑование","admin-dashboard":"ÐаÑбоÑд админиÑÑÑаÑоÑа","admin-funnel":"ÐоÑонка","admin-services":"СеÑвиÑÑ Ð¿Ð»Ð°ÑÑоÑмÑ","admin-tokens":"ТокенÑ","admin-ai-pricing":"ТаÑиÑÑ AI","admin-users":"ÐолÑзоваÑели","admin-user-detail":"ÐаннÑе полÑзоваÑелÑ","admin-avito-profiles":"ÐÑоÑили ÐвиÑо","admin-bidder-fleet":"ФеÑма биддеÑа","admin-spaces":"ÐÑоÑÑÑанÑÑва","admin-wallets":"ÐоÑелÑки","admin-subscriptions":"ÐодпиÑки","admin-payments":"ÐлаÑежи","admin-promo-codes":"ÐÑомокодÑ","admin-broadcasts":"РаÑÑÑлки","admin-tickets":"ТикеÑÑ Ð¿Ð¾Ð´Ð´ÐµÑжки","admin-ticket-detail":"Ð¢Ð¸ÐºÐµÑ Ð¿Ð¾Ð´Ð´ÐµÑжки","admin-help-videos":"Ðидео-инÑÑÑÑкÑии","admin-audit":"ÐÑдиÑ",oauth:"ÐвÑоÑизаÑÐ¸Ñ Ð¿ÑиложениÑ","billing-payment-result":"РезÑлÑÑÐ°Ñ Ð¾Ð¿Ð»Ð°ÑÑ",login:"ÐÑ
од",signup:"РегиÑÑÑаÑиÑ",confirmEmail:"ÐодÑвеÑждение поÑÑÑ","reset-password":"ÐоÑÑÑановление паÑолÑ","magic-link":"ÐÑ
од по ÑÑÑлке","register-complete":"ÐавеÑÑение ÑегиÑÑÑаÑии","confirm-signup":"ÐодÑвеÑждение ÑегиÑÑÑаÑии","reset-password-confirm":"ÐовÑй паÑолÑ","email-change-confirm":"ÐодÑвеÑждение поÑÑÑ",onboarding:"ÐаÑало ÑабоÑÑ"},py=(e,t,n)=>typeof n=="string"&&n.trim()?n.trim():typeof t=="string"&&t in Xi?Xi[t]:"",hy=(e,t,n)=>{const r=py(e,t,n);return r?`${r} â AviBOX HUB`:"AviBOX HUB"},my=(e=document)=>{const t=e.getElementById("main-content");return t instanceof HTMLElement?(t.classList.add("js-silent-focus"),t.focus({preventScroll:!0}),t.addEventListener("blur",()=>t.classList.remove("js-silent-focus"),{once:!0}),!0):!1},Bs=()=>Pt().isAuthenticated(),yy=Od(),an=(e,t,n)=>{const r=pe(t),o=e.replace(/(^|_)(\w)/g,(s,i,a)=>a.toUpperCase());return Ee({name:`Gated${o}`,setup(){return()=>it(Ds,{feature:e,...n},{default:()=>it(r)})}})},gy=(e,t)=>{const n=pe(e);return Ee({name:"GatedBidder",setup(){return()=>it(Ds,{bidder:!0,paywallKey:t},{default:()=>it(n)})}})},Cn=(e,t)=>{const n=pe(e),{feature:r,paywallKey:o,...s}=t;return Ee({name:"GatedPreview",setup(){const i=()=>r?it(Ds,{feature:r,paywallKey:o},{default:()=>it(n)}):it(n);return()=>it(fy,s,{default:i})}})},vy=yy?()=>P(()=>import("./WebAppLayout-vn-muaXq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123])):()=>P(()=>import("./MainLayout-6VuOU2Io.js"),__vite__mapDeps([124,1,6,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,125,126,127,128,101,122,129,130,131,132,116,133,134,135,109,113,112,136,137,118,138,119,139,140,141,142,143,144,145])),_y=[{path:"/",component:vy,meta:{requiresAuth:!0},children:[{path:"/",name:"main",component:()=>P(()=>import("./MainPage-BPX1aTUi.js"),__vite__mapDeps([146,101,1,86,61,60,85,62,63,102,80,103,104,105,106,107,108])),children:[{path:"/avito_profiles",name:"profiles",component:()=>P(()=>import("./AvitoProfiles-6d0NDRNX.js"),__vite__mapDeps([147,1,131,132,24,4,25,148,16,17,18,13,14,72,73,74,149,120,121,48,49,3,150,151,152,75,2,5,153,77,154,143,155,115,156,157,78,158,130,159,10,11,12,160,161,162,125,163,164,46,36,37,47,165,166,167,168,169,170,171,39,40,41,172,50,51,173,174,175,52,53,176,9,15,19,20,21,22,23,137,177,178,179,180,181,182,183,60,184,104,185,112,96,66,186,109,187,44,45,188,189,190,191,103,55,7,8,192,193,194,195,196,61,197,198,59,199,126,127,200,201,202,203,141,204,205]))},{path:"/assistant",name:"assistant",component:Cn(()=>P(()=>import("./Assistant-DIi-gfMj.js"),__vite__mapDeps([206,207,193,1,194,195,208,209,210,211,2,3,4,5,155,115,156,36,37,88,125,77,212,44,45,213,43,75,214,174,175,16,17,18,126,127,120,121,72,73,74,59,60,61,78,196,169,48,49,50,51,149,150,35,38,141,40,118,22,215,216])),{feature:"ai_assistant",paywallKey:"aiAssistant",title:"AI-аÑÑиÑÑенÑ",description:"СамоÑÑоÑÑелÑнÑй AI-аÑÑиÑÑÐµÐ½Ñ Ð¿ÑоÑ
Ð¾Ð´Ð¸Ñ Ð·Ð°ÐºÑÑÑое ÑеÑÑиÑование. ÐоÑÑÑп оÑкÑÑваем огÑаниÑÐµÐ½Ð½Ð¾Ð¼Ñ ÐºÑÑÐ³Ñ ÑÑаÑÑников по пÑиглаÑениÑ.",icon:xr,badge:"ÐакÑÑÑÐ°Ñ Ð±ÐµÑа",supportCtaLabel:"ÐапÑоÑиÑÑ Ð´Ð¾ÑÑÑп"})},{path:"/monitoring",name:"monitoring",component:pe(()=>P(()=>import("./ProfileChecks-CPqHjn80.js").then(e=>e.P),__vite__mapDeps([217,1,98,192,193,198,59,60,61,181,182,183,43,44,45,10,11,12,172,46,36,37,47,16,17,18,72,73,74,165,2,3,4,5,166,50,51,48,49,115,169,125,77,173,170,152,120,121,174,175,153,154,143,155,156,157,78,158,130,159,167,168,13,14,151,83,40,141,213,75,214,95,106,28,27,218,219,103,220])))},{path:"/reports",name:"reports",meta:{title:"ÐÑÑÑÑÑ ÐºÐ»Ð¸ÐµÐ½Ñам"},component:Cn(()=>P(()=>
326import("./ReportsPage-BQl1L5qv.js"),__vite__mapDeps([221,1,211,2,3,4,5,155,115,156,36,37,88,125,77,212,213,43,44,45,75,214,222,223,207,193,194,195,208,224,225,226,46,47,227,228,7,8,187,229,10,11,12,98,97,99,198,50,51,16,17,18,39,40,41,143,91,138,230,231,174,175,232,60,233,126,127,13,14,28,234,235,236])),{feature:"client_reports",paywallKey:"client_reports",title:"ÐÑÑÑÑÑ ÐºÐ»Ð¸ÐµÐ½Ñам",description:"ÐÑÑÑÑ Ð¾ ÑабоÑе по пÑоÑилÑ: живой пÑедпÑоÑмоÑÑ, PDF и ÑÑÑлка Ð´Ð»Ñ ÐºÐ»Ð¸ÐµÐ½Ñа.",icon:Lr})},{path:"/profile-checks",redirect:e=>({path:"/monitoring",query:e.query})},{path:"/check-chats",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"chats"}})},{path:"/not_answered_reviews",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"reviews"}})},{path:"/check-balance",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"balance"}})},{path:"/check-access",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"access"}})},{path:"/discounts",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"discounts"}})},{path:"/check-calls",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"calls"}})},{path:"/ad-activity",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"ad-activity"}})},{path:"/check-services",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"services"}})},{path:"/auto-upload",redirect:e=>({path:"/monitoring",query:{...e.query,tab:"autoload"}})},{path:"/messages",name:"messages",component:pe(()=>P(()=>import("./Messages-D7294v9t.js"),__vite__mapDeps([237,1,197,198,181,182,183,238,78,211,2,3,4,5,155,115,156,36,37,88,125,77,212,85,193,207,194,195,208,174,175,87,63,60,20,73,46,47,158,10,11,12,16,17,18,39,40,41,239,240,176,241,33,34,43,44,45,126,127,242,243,54,13,14,75,50,51,24,25,131,132,231,35,38,7,8,244,215,245,86,61,90,246,129,117,247,106,83,233,248,80,249,250,251,252,170,28,30,253,141,254,157,116,255,143,191,138,256,56,186,257,31,258,259,59,213,214,196,260])))},{path:"/analytics",component:()=>P(()=>import("./AnalyticsLayout-hCNW63LP.js"),__vite__mapDeps([261,1,223,222,211,2,3,4,5,155,115,156,36,37,88,125,77,212,224,225,226,46,47,227,228,7,8,187,229,207,193,194,195,208,262])),children:[{path:"",redirect:{name:"dashboard"}},{path:"/analytics/dashboard",name:"dashboard",component:an("dashboard",()=>P(()=>import("./Dashboard-C57zCGOC.js").then(e=>e.D),__vite__mapDeps([263,222,1,264,181,182,183,265,72,73,74,266,218,245,267,70,71,10,11,12,46,36,37,47,154,143,4,157,268,172,16,17,18,165,2,3,5,166,50,51,48,49,115,169,125,77,173,60,197,198,215,269,270,258,254,271,43,44,45,213,75,214,59,61,120,121,174,175,272,248,273])),{paywallKey:"dashboard"})},{path:"/analytics/leadboard",name:"leadboard",component:an("leaderboard",()=>P(()=>import("./LeadboardAnalytics-DmZPfmsf.js").then(e=>e.L),__vite__mapDeps([274,1,197,198,275,86,61,60,85,231,72,73,74,218,79,83,276,152,95,190,277,215,278,264,181,182,183,35,36,37,38,222,46,47,213,43,44,45,75,214,59,120,121,48,49,117,279,10,11,12,184,16,17,18,13,14,125,104,185,280,50,51,186,174,175,71,70,54,252,154,143,4,157,30,281])),{paywallKey:"leaderboard"})},{path:"/analytics/spendboard",name:"spendboard",component:an("spendboard",()=>P(()=>import("./SpendboardPage-C4dMLD3L.js"),__vite__mapDeps([282,1,46,36,37,47,197,198,275,86,61,60,85,231,72,73,74,218,79,83,276,152,95,190,277,215,278,264,181,182,183,59,222,213,43,44,45,75,214,35,38,70,71,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,202,230,160,161,162,125,163,30,80,106,258,283,24,25,284,270,48,49,272,120,121,285,286,174,175,40,287,117,288])),{paywallKey:"spendboard"})},{path:"/analytics/teamboard",name:"teamboard",component:an("teamboard",()=>P(()=>import("./TeamboardPage-CL0daodz.js"),__vite__mapDeps([289,197,198,1,275,86,61,60,85,231,72,73,74,218,79,83,276,152,95,190,277,215,278,181,182,183,59,222,248,213,43,44,45,75,214,279,10,11,12,184,16,17,18,13,14,125,104,185,280,120,121,71,70,285,286,241,33,34,126,127,2,3,4,5,242,243,54,63,50,51,24,25,131,132,35,36,37,38,7,8,46,47,244,245,88,90,246,129,117,247,106,39,40,41,233,80,249,287,283,155,115,156,284,258,270,48,49,186,29,238,78,196,174,175,77,269,290])),{paywallKey:"teamboard"})}]},{path:"/calculators",name:"calculators",component:()=>P(()=>import("./Calculators-CxwKTK6W.js"),__vite__mapDeps([291,207,193,1,194,195,208,46,36,37,47,16,17,18,72,73,74,170,22,70,71,27,94,20,4,271,218,104,292]))},{path:"/history",name:"history",component:()=>P(()=>import("./History-CuJM-zHr.js"),__vite__mapDeps([293,211,1,2,3,4,5,155,115,156,36,37,88,125,77,212,44,45,46,47,227,228,248,192,193,194,195,207,208,201,294,295]))},{path:"/contacts",name:"contacts",component:Cn(()=>P(()=>import("./Contacts-Cifjqy-5.js"),__vite__mapDeps([296,1,207,193,194,195,208,211,2,3,4,5,155,115,156,36,37,88,125,77,212,213,43,44,45,75,214,46,47,16,17,18,153,154,143,157,78,158,130,159,50,51,241,33,34,126,127,242,243,54,13,14,63,60,24,25,131,132,231,35,38,7,8,244,215,245,86,61,90,246,129,117,247,106,83,39,40,41,233,85,248,80,249,10,11,12,174,175,59,62,192,253,203,224,225,226,227,228,187,229,141,55,297])),{title:"ÐонÑакÑÑ",description:"ÐлиенÑÑ Ð¸Ð· ÑаÑов и звонков, оÑвеÑÑÑвеннÑй, замеÑки и иÑÑоÑÐ¸Ñ Ð¾Ð±ÑаÑений",icon:zf})},{path:"/auto-reply-messages",component:()=>P(()=>import("./UnderConstruction-Bf6QEOP3.js"),__vite__mapDeps([298,1,108,107]))},{path:"/auto-reply-reviews",redirect:"/reviews-auto-reply"},{path:"/calls",name:"calls",component:pe(()=>P(()=>import("./Calls-DckkJvQc.js"),__vite__mapDeps([299,1,231,16,17,18,2,3,4,5,46,36,37,47,241,33,34,43,44,45,126,127,242,243,54,13,14,125,63,60,75,50,51,24,25,131,132,35,38,7,8,244,215,245,88,86,61,90,246,129,117,247,106,83,39,40,41,233,85,248,80,249,213,214,10,11,12,153,77,154,143,155,115,156,157,78,158,130,159,202,211,212,226,227,228,187,229,224,225,265,72,73,74,266,174,175,192,193,194,195,207,208,239,240,176,250,56,116,140,141,142,59,197,198,238,196,181,182,183,190,95,277,252,300])))},{path:"/chat-auto-reply",name:"chat-auto-reply",component:an("auto_reply",()=>P(()=>import("./ChatAutoReply-DPWUIGe6.js"),__vite__mapDeps([301,1,203,238,181,182,183,197,198,211,2,3,4,5,155,115,156,36,37,88,125,77,212,149,120,121,48,49,150,44,45,174,175,213,43,75,214,207,193,194,195,208,209,210,59,60,61,46,47,16,17,18,167,168,72,73,74,242,243,39,40,41,52,53,24,25,126,127,231,302,253,303,304,305,233,20,83,153,154,143,157,78,158,130,159,50,51,248,215,306,169,137,307])),{title:"ÐвÑооÑÐ²ÐµÑ Ð² ÑаÑ",description:"ÐÑÑÑÑÑе авÑомаÑиÑеÑкие оÑвеÑÑ Ð² ÑаÑаÑ
Ñ Ð¿Ð¾ÐºÑпаÑелÑми",paywallKey:"chatAutoReply"})},{path:"/reviews-auto-reply",name:"reviews-auto-reply",component:an("auto_reply",()=>P(()=>import("./ReviewsAutoReply-C-N1SQYE.js"),__vite__mapDeps([308,1,207,193,194,195,208,192,209,210,211,2,3,4,5,155,115,156,36,37,88,125,77,212,149,120,121,48,49,150,44,45,174,175,213,43,75,214,59,60,61,198,167,168,72,73,74,20,153,154,143,157,78,158,130,17,159,10,11,12,50,51,46,47,248,238,169,215,306,137,309])),{title:"ÐвÑооÑÐ²ÐµÑ Ð½Ð° оÑзÑвÑ",description:"ÐвÑомаÑиÑеÑкие оÑвеÑÑ Ð½Ð° оÑзÑÐ²Ñ Ð¾ ваÑем пÑоÑиле",paywallKey:"reviewsAutoReply"})}
326,{path:"/bid-manager",name:"bid-manager",component:gy(()=>P(()=>import("./BidManagerCustomerPage-dHqc3GxC.js"),__vite__mapDeps([310,1,238,181,182,183,197,198,211,2,3,4,5,155,115,156,36,37,88,125,77,212,149,120,121,48,49,150,169,213,43,44,45,75,214,174,175,207,193,194,195,208,209,210,203,59,60,61,20,46,47,302,253,303,52,53,39,40,41,72,73,74,270,258,215,112,30,141,179,180,162,70,71,50,51,35,38,80,311,84,312,313])),"bidder")},{path:"/bid-manager/schedule",redirect:"/bid-manager"},{path:"/automation/bid-manager",redirect:"/bid-manager"},{path:"/automation/bid-schedule",redirect:"/bid-manager"},{path:"/autoload",name:"autoload",component:Cn(()=>P(()=>import("./Autoload-CCWuE6vF.js"),__vite__mapDeps([314,1,211,2,3,4,5,155,115,156,36,37,88,125,77,212,149,120,121,48,49,150,207,193,194,195,208,209,210,174,175,213,43,44,45,75,214,39,40,41,59,60,61,169,16,17,18,30,252,46,47,182,50,51,231,28,89,10,11,12,72,73,74,167,168,170,78,153,154,143,157,158,130,159,201,215,13,14,152,196,177,315])),{title:"ÐвÑозагÑÑзка",description:"ÐодклÑÑение Google-ÑаблиÑÑ Ð¸ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ÐºÐ°ÑегоÑий Ð´Ð»Ñ Ð°Ð²ÑозагÑÑзки обÑÑвлений",icon:lp})},{path:"/studio",name:"studio",component:Cn(()=>P(()=>import("./Studio-CbowoPs0.js"),__vite__mapDeps([316,231,1,39,40,41,213,43,44,45,75,214,207,193,194,195,208,211,2,3,4,5,155,115,156,36,37,88,125,77,212,120,121,174,175,16,17,18,126,127,317,182,318,46,47,255,24,25,240,176,143,191,157,138,256,254,245,319,59,60,61,238,78,89,320])),{title:"ФоÑоÑÑÑдиÑ",description:"ÐÑодаÑÑие ÑоÑо Ð´Ð»Ñ Ð¾Ð±ÑÑвлений: набоÑÑ ÐºÐ°Ð´Ñов, ÑекÑÑ Ð¿Ð¾Ð²ÐµÑÑ
, ÑкаÑивание",icon:Jf})},{path:"/responses",name:"responses",component:()=>P(()=>import("./UnderConstruction-Bf6QEOP3.js"),__vite__mapDeps([298,1,108,107]))},{path:"/rental",name:"rental",component:()=>P(()=>import("./UnderConstruction-Bf6QEOP3.js"),__vite__mapDeps([298,1,108,107]))},{path:"/settings/connected-apps",redirect:"/avito_profiles?settings=security"},{path:"/support",name:"support-tickets",component:pe(()=>P(()=>import("./SupportTickets-hMZNukcg.js"),__vite__mapDeps([321,1,43,44,45,50,51,33,34,255,24,4,25,240,176,143,191,157,138,77,256,317,182,318,238,207,193,194,195,208,75,31,259,118,322]))),meta:{requiresAuth:!0,title:"ÐоддеÑжка"}},{path:"/no-access",name:"no-access",component:pe(()=>P(()=>import("./NoAccess-Duu9ur92.js"),__vite__mapDeps([323,1,324]))),meta:{requiresAuth:!0,title:"ÐоÑÑÑп не наÑÑÑоен"}}]},{path:"/profile",redirect:"/avito_profiles"},{path:"/profile/:rest(.*)*",redirect:"/avito_profiles"},{path:"/workspace",redirect:"/avito_profiles"},{path:"/workspace/:rest(.*)*",redirect:"/avito_profiles"}]},{path:"/admin",component:()=>P(()=>import("./AdminLayout-xSGkmLQy.js"),__vite__mapDeps([325,1,33,34,231,36,37,79,326,84,66,57,82,219,109,31,103,128,327])),meta:{requiresAdmin:!0},children:[{path:"",name:"admin",redirect:"/admin/dashboard"},{path:"dashboard",name:"admin-dashboard",component:pe(()=>P(()=>import("./AdminDashboard-Ds31Mfzj.js"),__vite__mapDeps([328,70,71,1,2,3,4,5,120,121,11,77,329,90,326,103,66,75,93,330])))},{path:"funnel",name:"admin-funnel",component:pe(()=>P(()=>import("./AdminFunnel-DsSCspW0.js"),__vite__mapDeps([331,1,102,80,103,104,105,106,107,108,77,39,40,41,43,44,45,13,14,16,17,18,2,3,4,5,50,51,174,175,153,154,143,155,115,156,157,78,158,130,159,125,332,151,88,75,91,186,333,35,36,37,38,11,334])))},{path:"analytics",redirect:"/admin/funnel"},{path:"traffic-channels",redirect:e=>({path:"/admin/funnel",query:{...e.query,tab:"links"}})},{path:"services",name:"admin-services",component:pe(()=>P(()=>import("./AdminServices-B5a7LTEh.js"),__vite__mapDeps([335,336,1,50,51,28,76,189,66,84,337])))},{path:"tokens",name:"admin-tokens",component:pe(()=>P(()=>import("./AdminTokens-DQWG-k4t.js"),__vite__mapDeps([338,1,70,71,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,2,5,39,40,41,28,186,339])))},{path:"ai-pricing",name:"admin-ai-pricing",component:pe(()=>P(()=>import("./AiPricing-6uxp49Up.js"),__vite__mapDeps([340,1,151,44,45,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,174,175,50,51,75,311,341])))},{path:"users",name:"admin-users",component:pe(()=>P(()=>import("./AdminUsers-Bt5z02il.js"),__vite__mapDeps([342,1,24,4,25,203,7,8,153,77,154,143,155,115,156,157,78,158,130,3,17,159,39,40,41,50,51,194,195,343,33,34,294,247,152,189,119,92,344,336,192,193,28,141,55,109,329,345])))},{path:"users/:id",name:"admin-user-detail",component:pe(()=>P(()=>import("./AdminUserDetail-DRvWUZmR.js"),__vite__mapDeps([346,1,231,120,12
3261,39,40,41,50,51,332,247,152,92,189,119,84,201,83,75,66,28,82,347])))},{path:"avito-profiles",name:"admin-avito-profiles",component:pe(()=>P(()=>import("./AdminAvitoProfiles-CMb0mgFC.js"),__vite__mapDeps([348,1,24,4,25,203,153,77,154,143,155,115,156,157,78,158,130,3,17,159,39,40,41,16,18,7,8,194,195,33,34,50,51,30,109,312,26,201,35,36,37,38,343,294,247,152,189,119,92,344,349,84,350,336,192,193,125,28,141,107,55,326,351])))},{path:"bidder-fleet",name:"admin-bidder-fleet",component:pe(()=>P(()=>import("./AdminBidderFleet-BlHJyqKI.js"),__vite__mapDeps([352,28,1,103,44,45,276,79,43,50,51,182,311,76,96,92,46,36,37,47,39,40,41,77,336,353])))},{path:"spaces",name:"admin-spaces",component:pe(()=>P(()=>import("./AdminSpaces-DhhIQSC_.js"),__vite__mapDeps([354,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,35,36,37,38,107,333,349,33,34,50,51,84,350,336,28,141,355])))},{path:"wallets",name:"admin-wallets",component:pe(()=>P(()=>import("./AdminWallets-DIbfrsCv.js"),__vite__mapDeps([356,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,336,28,141,357])))},{path:"subscriptions",name:"admin-subscriptions",component:pe(()=>P(()=>import("./AdminSubscriptions-B4Ncbt-E.js"),__vite__mapDeps([358,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,50,51,125,336,75,271,359])))},{path:"payments",name:"admin-payments",component:pe(()=>P(()=>import("./AdminPayments-W4SwXjn2.js"),__vite__mapDeps([360,70,71,2,1,3,4,5,120,121,44,45,11,66,361])))},{path:"promo-codes",name:"admin-promo-codes",meta:{requiresAdmin:!0},component:pe(()=>P(()=>import("./AdminPromoCodes-Cmls4w_x.js"),__vite__mapDeps([362,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,50,51,39,40,41,125,332,151,75,80,363])))},{path:"broadcasts",name:"admin-broadcasts",component:pe(()=>P(()=>import("./AdminBroadcasts-2EuiaPUu.js"),__vite__mapDeps([364,1,39,40,41,46,36,37,47,16,17,18,2,3,4,5,242,243,35,38,305,125,120,121,50,51,153,77,154,143,155,115,156,157,78,158,130,159,365,336,219,118,366])))},{path:"broadcasts/:id",name:"admin-broadcast-detail",component:pe(()=>P(()=>import("./AdminBroadcastDetail-Dgr-BuBP.js"),__vite__mapDeps([367,1,336,125,120,121,39,40,41,43,44,45,10,11,12,2,3,4,5,50,51,153,77,154,143,155,115,156,157,78,158,130,17,159,365,254,244,56,247,83,104,138,368])))},{path:"emails",name:"admin-emails",meta:{title:"ÐиÑÑма"},component:pe(()=>P(()=>import("./AdminEmails-Blhiz41g.js"),__vite__mapDeps([369,43,44,1,45,46,36,37,47,35,38,125,109,118,370])))},{path:"tickets",name:"admin-tickets",component:pe(()=>P(()=>import("./AdminTickets-rioVi1Xs.js"),__vite__mapDeps([371,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,36,37,50,51,43,44,45,170,141,372])))},{path:"tickets/:id",name:"admin-ticket-detail",component:pe(()=>P(()=>import("./AdminTicketDetail-BdVVpNWx.js"),__vite__mapDeps([373,1,255,24,4,25,240,176,143,191,157,138,77,256,317,182,318,42,259,118,30,374])))},{path:"help-videos",name:"admin-help-videos",component:pe(()=>P(()=>import("./AdminHelpVideos-DRWt504c.js"),__vite__mapDeps([375,16,1,17,18,125,32,376])))},{path:"audit",name:"admin-audit",component:pe(()=>P(()=>import("./AdminAudit-DIHDSs55.js"),__vite__mapDeps([377,1,153,77,154,143,4,155,115,156,157,78,158,130,3,17,159,336,28,141,378])))}]},{path:"/r",name:"public-report",component:pe(()=>P(()=>import("./PublicReportPage-DMcE0xYc.js"),__vite__mapDeps([379,1,126,127,43,44,45,10,11,12,50,51,99,232,380]))),meta:{public:!0,title:"ÐÑÑÑÑ Ð¾ ÑабоÑе"}},{path:"/oauth",name:"oauth",component:()=>P(()=>import("./OauthPage-DbCed0oj.js"),__vite__mapDeps([381,1,122,125,157,106,382]))},{path:"/billing/payment-result",name:"billing-payment-result",component:()=>P(()=>import("./BillingPaymentResult-DshDErlW.js"),__vite__mapDeps([383,1,384])),meta:{public:!0}},{path:"/auth",component:()=>P(()=>import("./AuthLayout-BTAJF4HZ.js"),__vite__mapDeps([385,1,122,111,112,113,114,65,386])),meta:{guestOnly:!0},children:[{path:"",redirect:"/login"}
326,{path:"/login",name:"login",component:()=>P(()=>import("./AuthPage-C-PdYHKm.js"),__vite__mapDeps([387,1,16,17,18,68,67,69,388,389,390,391,64,65,58,59,60,61,62,63,13,14,392,109,393])),beforeEnter:e=>{if(Bs()&&e.query.callback_uri)return{name:"oauth",query:e.query,replace:!0}}},{path:"/signup",name:"signup",component:()=>P(()=>import("./SignUp-BzmqYCPe.js"),__vite__mapDeps([394,1,16,17,18,13,14,68,67,69,388,389,390,395,396,391,392,397,398,109,81,399]))},{path:"/install",name:"install",component:()=>P(()=>import("./InstallApp-BlCs4l-n.js"),__vite__mapDeps([400,133,1,4,55,134,138,401])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0,title:"УÑÑановиÑÑ Ð¿Ñиложение"}},{path:"/confirm",name:"confirmEmail",component:()=>P(()=>import("./ConfirmEmail-B_5KkiW1.js"),__vite__mapDeps([402,1,13,14,68,67,69,109,403]))},{path:"/reset-password",name:"reset-password",component:()=>P(()=>import("./ResetPassword-psRvYd_-.js"),__vite__mapDeps([404,1,16,17,18,68,67,69,13,14,405,109,254,406]))},{path:"magic",name:"magic-link",component:()=>P(()=>import("./MagicLink-CGMtbZua.js"),__vite__mapDeps([407,1,67,64,65,58,59,60,61,62,63,408])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}},{path:"yandex/callback",name:"yandex-callback",component:()=>P(()=>import("./YandexCallback-CfCwp6sv.js"),__vite__mapDeps([409,1,13,14,16,17,18,395,396,15,2,3,4,5,19,389,397,64,65,58,59,60,61,62,63,398,410])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}},{path:"register",name:"register-complete",component:()=>P(()=>import("./RegisterComplete-leUu1FRH.js"),__vite__mapDeps([411,1,16,17,18,13,14,67,64,65,397,392,58,59,60,61,62,63,398,246,412])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}},{path:"confirm-signup",name:"confirm-signup",component:()=>P(()=>import("./SignupConfirm-ZQAhx8Q4.js"),__vite__mapDeps([413,1,67,64,65,58,59,60,61,62,63,414])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}},{path:"reset-password-confirm",name:"reset-password-confirm",component:()=>P(()=>import("./ResetPasswordConfirm-BecYH7W3.js"),__vite__mapDeps([415,1,16,17,18,13,14,67,64,65,58,59,60,61,62,63,405,254,416])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}},{path:"email-change-confirm",name:"email-change-confirm",component:()=>P(()=>import("./EmailChangeConfirm-txiWZ3Vc.js"),__vite__mapDeps([417,1,67,58,59,60,61,62,63,64,65,109,418])),meta:{skipGuestOnly:!0,skipOnboardingGuard:!0}}]},{path:"/onboarding",name:"onboarding",component:()=>P(()=>import("./Onboarding-DrWqPDFX.js"),__vite__mapDeps([419,1,16,17,18,13,14,67,64,65,246,420])),meta:{requiresAuth:!0,skipOnboardingGuard:!0}}];Ef();Sf();const Kt=jl({history:Wl(),routes:_y});wf(Kt);let Ct=null;const Yi=async()=>(Ct??(Ct=await P(()=>import("./workingRoutes-BXQICzR2.js"),__vite__mapDeps([421,1]))),Ct);Kt.beforeEach(async e=>{if(e.meta.public)return;await vm;const t=Bs(),n=Ht();if(t&&!n&&typeof e.query.space=="string"){const r=await uo().openSpaceFromLink(e.query.space),{space:o,...s}=e.query,i={path:e.path,query:s,hash:e.hash};return r==="switched"?(sf(Kt.resolve(i).href),!1):(r==="denied"&&Ps().notify("ÐÐµÑ Ð´Ð¾ÑÑÑпа к пÑоÑÑÑанÑÑÐ²Ñ Ð¸Ð· ÑÑÑлки",{severity:"warning",key:"notification-space-access"}),{...i,replace:!0})}if(e.meta.requiresAuth&&!t&&!n)return{name:"login",query:{redirect:e.fullPath}};if(t&&e.name==="login"&&e.query.callback_uri)return{name:"oauth",query:e.query,replace:!0};if(n&&e.name==="main"&&e.path==="/")return{name:"profiles"};if(n&&e.meta.guestOnly&&!e.matched.some(r=>r.meta.skipGuestOnly))return{name:"profiles",replace:!0};if(e.meta.guestOnly&&t&&!e.matched.some(r=>r.meta.skipGuestOnly))return{name:"main",replace:!0};if(e.meta.requiresAdmin||e.meta.requiresPreview){if(!t&&!n)return{name:"login",query:{redirect:e.fullPath}};const{useUserStore:r}=await P(async()=>{const{useUserStore:i}=await Promise.resolve().then(()=>Si);return{useUserStore:i}},void 0),o=r();if(o.user||await o.fetchUser({silent:!0}),!(e.meta.requiresAdmin?o.isAdmin:o.isAdmin||o.isTester))return{name:"main"}}if(t&&!n&&e.meta.requiresAuth&&!e.meta.skipOnboardingGuard){const{useUserStore:r}=await P(async()=>{const{useUserStore:s}=await Promise.resolve().then(()=>Si);return{useUserStore:s}},void 0),o=r();if(o.user||await o.fetchUser({silent:!0}),o.user&&!o.user.onboarding_completed_at)return{name:"onboarding"}}if(t&&!n&&e.name==="main"&&e.path==="/")return(await Yi()).resolveWorkingRouteEntry(Kt);if(t&&!n&&e.meta.requiresAuth){const r=e.name==="reports"?"dashboard":(await P(async()=>{const{findRouteGateRequirement:o}=await import("./routeGate-B1xn-c-y.js");return{findRouteGateRequirement:o}}
326,[])).findRouteGateRequirement(e.path);if(r){const o=await(await Yi()).resolveWorkingRouteGate(r,e);if(o)return o}}});const cs="avibox:chunk-reload-attempted",Sl=e=>typeof window>"u"||sessionStorage.getItem(cs)?!1:(sessionStorage.setItem(cs,String(Date.now())),e?window.location.href=e:window.location.reload(),!0),by=e=>{if(!e)return!1;const t=e;if(t.name==="ChunkLoadError")return!0;const n=t.message??"";return/Failed to fetch dynamically imported module/i.test(n)||/Importing a module script failed/i.test(n)||/error loading dynamically imported module/i.test(n)};typeof window<"u"&&window.addEventListener("vite:preloadError",e=>{e.preventDefault(),Sl()});Kt.onError((e,t)=>{by(e)&&Sl(t.fullPath)});Kt.afterEach((e,t,n)=>{typeof window>"u"||(sessionStorage.removeItem(cs),!n&&(document.title=hy(e.path,e.name,e.meta.title),Ct==null||Ct.rememberCapturedWorkingRouteName(e),Bs()&&e.meta.requiresAuth&&e.name!==t.name&&(Ct!=null&&Ct.isWorkingRouteAllowed(e.name))&&P(async()=>{const{getLayoutMode:r,track:o}=await Promise.resolve().then(()=>Qr);return{getLayoutMode:r,track:o}},void 0).then(({getLayoutMode:r,track:o})=>{o("section_viewed",{section:String(e.name),layout:r()})}),e.path!==t.path&&Un().then(()=>{ul()||my()})))});const wy="avibox-auth";let Ho=null;function Ns(){return typeof BroadcastChannel>"u"?null:(Ho||(Ho=new BroadcastChannel(wy)),Ho)}function tg(){var e;(e=Ns())==null||e.postMessage({type:"logout"})}function ng(){var e;(e=Ns())==null||e.postMessage({type:"logout"})}function Ey(e){const t=Ns();t&&(t.onmessage=n=>e(n.data))}let us=!1;typeof document<"u"&&(document.addEventListener("keydown",()=>{us=!0},!0),document.addEventListener("pointerdown",()=>{us=!1},!0));function Sy(){return us}const br=10,ln=12,ky=120,Ay=3e3,Ty=10,Ry=600,Ji=240,$s="app-tooltip-description";let ze=null,It=null,pn=null,yt=null,pt=null,et=null,Fs=!1,Zr=!1,wr=0;const un=Symbol("tip"),Gn=Symbol("handlers"),kl=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[contenteditable]:not([contenteditable="false"])'],xy=["button","link","checkbox","switch","radio","tab","menuitem","option"],Ly=[...kl,...xy.map(e=>`[role="${e}"]`)].join(","),Er=[...kl,'[tabindex]:not([tabindex="-1"])'].join(",");function Al(){return ze||(ze=document.createElement("div"),ze.id=$s,ze.className="app-tooltip",ze.setAttribute("role","tooltip"),It=document.createElement("span"),It.className="app-tooltip__text",pn=document.createElement("span"),pn.className="app-tooltip__arrow",ze.appendChild(It),ze.appendChild(pn),document.body.appendChild(ze),ze)}function Qi(e){return e&&typeof e=="object"?{content:e.content==null?"":String(e.content),direction:e.direction??"top",width:e.width??Ji}:{content:e==null?"":String(e),direction:"top",width:Ji}}function Tl(e){return String(e??"").split(/\s+/).filter(Boolean)}function Oy(e){const t=[...new Set([...Tl(e.getAttribute("aria-describedby")),$s])];e.setAttribute("aria-describedby",t.join(" "))}function Us(e){const t=Tl(e.getAttribute("aria-describedby")).filter(n=>n!==$s).join(" ");t?e.setAttribute("aria-describedby",t):e.removeAttribute("aria-describedby")}function Hs(e,t){const n=Al(),r=e.getBoundingClientRect(),o=window.innerWidth,s=window.innerHeight,i=n.getBoundingClientRect(),a=i.height||40,l=i.width||t.width,c=r.top,d=s-r.bottom;let h=t.direction;h==="top"&&c<a+br+20?h="bottom":h==="bottom"&&d<a+br+20&&(h="top");const m=r.left+r.width/2;let g=ln,y=o-ln;const S=e.closest('.popup-component, [role="dialog"]');if(S){const b=S.getBoundingClientRect();g=Math.max(ln,b.left+ln),y=Math.min(o-ln,b.right-ln)}const w=Math.max(g,Math.min(m-l/2,y-l)),p=h==="bottom"?r.bottom+br:r.top-a-br;n.style.top=`${p}px`,n.style.left=`${w}px`,n.classList.toggle("app-tooltip--bottom",h==="bottom"),pn&&(pn.style.left=`${m-w}px`)}function qo(e,t){var s;const n=e[un];if(!n||!n.content)return;et&&(clearTimeout(et),et=null);const r=Al();It&&(It.textContent=n.content),r.style.maxWidth=`${n.width}px`;const o=t??((s=e[Gn])==null?void 0:s.descriptionFallback)??e;pt&&pt!==o&&Us(pt),yt=e,pt=o,Oy(pt),Hs(e,n),r.classList.add("app-tooltip--visible")}function Zi(e=ky){et&&clearTimeout(et),et=setTimeout(()=>{et=null,wn()},e)}function wn(e){e&&yt!==e||(et&&(clearTimeout(et),et=null),ze&&ze.classList.remove("app-tooltip--visible"),pt&&Us(pt),yt=null,pt=null,Fs=!1)}function Cy(){if(!yt)return;if(Fs){wn();return}const e=yt[un];e&&Hs(yt,e)}let hn=null;function eo(){hn===null&&(hn=requestAnimationFrame(()=>{hn=null,Cy()}))}function Rl(e){e.key!=="Escape"||!yt||(e.preventDefault(),e.stopImmediatePropagation(),wn())}function xl(e){const t=e.target;yt&&t instanceof Node&&!yt.contains(t)&&wn()}function My(){Zr||(window.addEventListener("scroll",eo,!0),window.addEventListener("resize",eo),document.addEventListener("keydown",Rl,!0),document.addEventListener("pointerdown",xl,!0),Zr=!0)}function Py(){Zr&&(window.removeEventListener("scroll",eo,!0),window.removeEventListener("resize",eo),document.removeEventListener("keydown",Rl,!0),document.removeEventListener("pointerdown",xl,!0),Zr=!1,hn!==null&&(cancelAnimationFrame(hn),hn=null))}function Iy(){et&&(clearTimeout(et),et=null),pt&&Us(pt),yt=null,pt=null,Py(),ze==null||ze.remove(),ze=null,It=null,pn=null}function ea(e){if(e[Gn])return;const t=e.closest(Er),n=e.closest(Ly),r=e.querySelector(Er);let o=!1;!t&&!r&&!e.hasAttribute("tabindex")&&(e.setAttribute("tabindex","0"),o=!0);const s=n??e,i=n??r??e;let a=0,l=!1;const c=()=>{Date.now()-a<1e3||qo(e)},d=()=>{Date.now()-a<1e3||l||Zi()},h=p=>{const b=p.target instanceof HTMLElement?p.target:null;if(b&&b!==s&&!e.contains(b)||!Sy())return;l=!0;const O=b==null?void 0:b.closest(Er),A=O&&(e.contains(O)||O.contains(e))?O:i;qo(e,A)},m=p=>{const b=p.relatedTarget;b instanceof Node&&(b===s||e.contains(b))||(l=!1,wn(e))};let g=null;const y=p=>{if(p.pointerType!=="touch"&&p.pointerType!=="pen")return;a=Date.now();const b=p.target instanceof HTMLElement?p.target:null;g={x:p.clientX,y:p.clientY,at:a,target:(b==null?void 0:b.closest(Er))??null}},S=p=>{if(p.pointerType!=="touch"&&p.pointerType!=="pen")return;const b=g;g=null,a=Date.now(),!(!b||a-b.at>Ry)&&(Math.hypot(p.clientX-b.x,p.clientY-b.y)>Ty||(qo(e,b.target??i),Fs=!0,Zi(Ay)))},w=()=>{g=null};e.addEventListener("mouseenter",c),e.addEventListener("mouseleave",d),s.addEventListener("focusin",h),s.addEventListener("focusout",m),e.addEventListener("pointerdown",y),e.addEventListener("pointerup",S
326),e.addEventListener("pointercancel",w),e[Gn]={enter:c,leave:d,focus:h,blur:m,pointerdown:y,pointerup:S,pointercancel:w,focusListenerTarget:s,descriptionFallback:i,addedTabindex:o}}function ta(e){const t=e[Gn];t&&(e.removeEventListener("mouseenter",t.enter),e.removeEventListener("mouseleave",t.leave),t.focusListenerTarget.removeEventListener("focusin",t.focus),t.focusListenerTarget.removeEventListener("focusout",t.blur),e.removeEventListener("pointerdown",t.pointerdown),e.removeEventListener("pointerup",t.pointerup),e.removeEventListener("pointercancel",t.pointercancel),t.addedTabindex&&e.getAttribute("tabindex")==="0"&&e.removeAttribute("tabindex"),delete e[Gn],wn(e))}const Dy={mounted(e,t){wr+=1,My(),e[un]=Qi(t.value),e[un].content&&ea(e)},updated(e,t){const n=Qi(t.value);e[un]=n,n.content?(ea(e),yt===e&&(It&&(It.textContent=n.content),Hs(e,n))):ta(e)},beforeUnmount(e){ta(e),delete e[un],wr=Math.max(0,wr-1),wr===0&&Iy()}},By=220;function Ny(e,t){const n=Math.floor(e/t),r=e%t;return Array.from({length:t},(o,s)=>n+(s<r?1:0))}function $y(e){return e instanceof HTMLElement&&getComputedStyle(e).display!=="none"&&!("kpiFull"in e.dataset)}function zo(e){const t=Array.from(e.children);for(const g of t)g instanceof HTMLElement&&"kpiFull"in g.dataset&&g.style.removeProperty("flex-basis");const n=t.filter($y),r=n.length;if(r===0)return;const o=getComputedStyle(e),s=parseFloat(o.getPropertyValue("--kpi-min-card"))||By,i=parseFloat(o.columnGap)||parseFloat(o.gap)||0,a=(parseFloat(o.paddingLeft)||0)+(parseFloat(o.paddingRight)||0),l=e.clientWidth-a,c=Math.max(1,Math.floor((l+i)/(s+i))),d=r<=c?1:Math.ceil(r/c),h=Ny(r,d);let m=0;for(const g of h){const y=`calc((100% - ${(g-1)*i}px) / ${g})`;for(let S=0;S<g&&m<r;S++,m++)n[m].style.setProperty("flex-basis",y)}}const Vo=new WeakMap,Fy={mounted(e){zo(e);const t=new ResizeObserver(()=>zo(e));t.observe(e);const n=new MutationObserver(()=>zo(e));n.observe(e,{childList:!0}),Vo.set(e,{ro:t,mo:n})},unmounted(e){const t=Vo.get(e);t&&(t.ro.disconnect(),t.mo.disconnect(),Vo.delete(e))}},Uy=1,Hy=160;function qy(e,t=()=>!0){const n=e.closest(".popup-component-body");if(!n)return{stop:()=>{}};const r=n.closest(".popup-component")??n,o=()=>{const l=e.style.maxHeight;e.style.maxHeight="";const c=parseFloat(getComputedStyle(e).maxHeight);return e.style.maxHeight=l,Number.isFinite(c)?c:Number.POSITIVE_INFINITY},s=()=>{if(!e.isConnected||!t())return;const l=parseFloat(getComputedStyle(r).maxHeight);if(!Number.isFinite(l))return;const c=Math.max(0,n.scrollHeight-n.clientHeight);if(c===0&&!e.style.maxHeight)return;const d=r.offsetHeight-e.offsetHeight+c,h=Math.floor(l-d)-Uy,m=Math.min(h,o()),g=h>=Hy&&Number.isFinite(m)?`${m}px`:"";e.style.maxHeight!==g&&(e.style.maxHeight=g);const y=g?"0px":"";e.style.minHeight!==y&&(e.style.minHeight=y)},i=new ResizeObserver(s);i.observe(r);for(const l of Array.from(n.children))i.observe(l);i.observe(e);const a=new MutationObserver(l=>{for(const c of l)for(const d of Array.from(c.addedNodes))d instanceof HTMLElement&&i.observe(d);s()});return a.observe(n,{childList:!0}),window.addEventListener("resize",s,{passive:!0}),s(),{stop:()=>{i.disconnect(),a.disconnect(),window.removeEventListener("resize",s)}}}const jo=new WeakMap,zy={mounted(e){jo.set(e,qy(e))},unmounted(e){var t;(t=jo.get(e))==null||t.stop(),jo.delete(e)}};function Wo(e,t,n,r){const o=lo(),s=B(()=>{const a=Gl(t);return typeof a=="string"&&a.trim()?a.trim():null}),i=B(()=>s.value?(r==null?void 0:r.cacheKey)??`pref_${e}_${s.value}`:null);return o.ensureLoaded(),Ce([()=>o.loaded,s],([a,l])=>{if(!a||!l||!i.value||o.getValue(e,l)!==void 0)return;const c=Z.get(i.value,null);c!=null&&o.setValue(e,l,c)},{immediate:!0}),B({get:()=>{const a=s.value,l=i.value;if(!a||!l)return n;const c=o.getValue(e,a);return c!==void 0?c:Z.get(l,n)},set:a=>{const l=s.value,c=i.value;!l||!c||(Z.set(c,a),o.setValue(e,l,a))}})}const fo={};function rg(e){fo[e.id]=e}function wt(e){return fo[e]}function og(e){var t;if(e)return(t=Object.values(fo).find(n=>n.kind==="section"&&n.section===e))==null?void 0:t.id}function sg(e){var r;const t=Object.values(fo).find(o=>o.kind==="section"&&o.section===e),n=t==null?void 0:t.scenarioId;if(n)return((r=wt(n))==null?void 0:r.kind)==="scenario"?n:void 0}const Vy=[{key:"assistant",cacheKey:"intro_assistant_hidden"},{key:"profiles",cacheKey:"intro_profiles_hidden"},{key:"autoload",cacheKey:"intro_autoload_hidden"},{key:"bidManager",cacheKey:"intro_bid_manager_hidden"},{key:"calls",cacheKey:"intro_calls_hidden"},{key:"chatAutoReply",cacheKey:"intro_chat_autoreply_hidden"},{key:"contacts",cacheKey:"intro_contacts_hidden"},{key:"dashboard",cacheKey:"intro_dashboard_hidden"},{key:"leadboard",cacheKey:"intro_leadboard_hidden"},{key:"messages",cacheKey:"intro_messages_hidden"},{key:"monitoring",cacheKey:"intro_monitoring_hidden"},{key:"reviewsAutoReply",cacheKey:"intro_reviews_autoreply_hidden"},{key:"spendboard",cacheKey:"intro_spendboard_hidden"},{key:"teamboard",cacheKey:"intro_teamboard_hidden"}],na=1500,Go=at("guidance",()=>{const e=lo(),t=Wo("guidance","enabled",!0),n=Wo("guidance","seen",{}),r=Wo("guidance","migrated",!1),o=k([]),s=k(null),i=k(0),a=k(!1);function l(){if(!r.value){for(const{key:E,cacheKey:I}of Vy){const J=e.getValue("onboarding",E);(J!==void 0?J:Z.get(I,!1))===!0&&d(`section-${E}`)}r.value=!0}}e.ensureLoaded(),Ce(()=>e.loaded,E=>{E&&(l(),w())},{immediate:!0});function c(E){return n.value[E]===!0}function d(E){n.value[E]!==!0&&(n.value={...n.value,[E]:!0})}function h(){n.value={}}const m=B(()=>
326{if(!s.value)return null;const E=wt(s.value.id),I=E==null?void 0:E.steps[s.value.stepIndex];return!E||!I?null:{guideId:E.id,kind:E.kind,stepIndex:s.value.stepIndex,stepCount:E.steps.length,canGoBack:s.value.shownStepIndices.length>1,shown:s.value.shownAny,step:I}});function g(){var E;if(s.value)return(E=wt(s.value.id))==null?void 0:E.steps[s.value.stepIndex]}function y(){return!(!e.loaded||!r.value||!t.value||ul()||Date.now()-i.value<na||a.value)}function S(E){var we;if((((we=wt(E.id))==null?void 0:we.kind)??"section")!=="tour"){o.value.push(E);return}const J=o.value.findIndex(me=>{var Ne;return(((Ne=wt(me.id))==null?void 0:Ne.kind)??"section")!=="tour"});J===-1?o.value.push(E):o.value.splice(J,0,E)}function w(){if(s.value||o.value.length===0)return;const E=o.value[0];if(!E.manual&&!y())return;o.value.shift();const I=wt(E.id);if(!I||I.steps.length===0){w();return}if(!E.manual&&c(E.id)){w();return}if(I.requires&&!I.requires()){He("guide_blocked",{id:E.id}),w();return}s.value={id:E.id,stepIndex:0,manual:E.manual,source:E.source,shownAny:!1,shownStepIndices:[]}}function p(E,I={}){var Ne;const J=I.manual===!0,we=wt(E);if(we){if(we.kind==="scenario"&&!J)return;if(we.requires&&!we.requires()){He("guide_blocked",{id:E});return}}if(((Ne=s.value)==null?void 0:Ne.id)===E)return;const me=o.value.find(Se=>Se.id===E);if(me){J&&!me.manual&&(me.manual=!0,me.source=I.source??me.source,w());return}!J&&c(E)||(S({id:E,manual:J,source:I.source}),w())}Ce(Ms,E=>{E===0&&w()},{flush:"sync"});function b(){i.value=Date.now(),a.value=!1,ve.clear(),s.value&&(s.value.shownAny?U("back"):s.value=null),setTimeout(w,na)}function O(){if(!s.value)return!1;const E=wt(s.value.id);return!E||s.value.stepIndex+1>=E.steps.length?!1:(s.value={...s.value,stepIndex:s.value.stepIndex+1},!0)}function A(){s.value&&(O()||Q())}function N(){if(!s.value)return;const E=s.value.shownStepIndices;if(E.length<2)return;const I=E.slice(0,-1);s.value={...s.value,stepIndex:I[I.length-1],shownStepIndices:I}}function q(){s.value&&(O()||ue())}function K(){var J;if(!s.value)return;const{id:E,stepIndex:I}=s.value;He("guide_skipped",{id:E,step:I,step_id:(J=g())==null?void 0:J.id,reason:"step"}),O()||Q()}function ke(){var Ne,Se;if(!s.value)return;const E=wt(s.value.id);if(!E)return;const{id:I,stepIndex:J}=s.value,we=(Ne=E.steps[J])==null?void 0:Ne.chapter,me=E.steps.findIndex((Re,L)=>L>J&&Re.chapter&&Re.chapter!==we);me!==-1&&(He("guide_skipped",{id:I,step:J,step_id:(Se=E.steps[J])==null?void 0:Se.id,reason:"chapter"}),s.value={...s.value,stepIndex:me})}function Ie(){if(!s.value)return;const E=g();s.value.shownAny||(He("guide_shown",{id:s.value.id}),s.value.manual||(a.value=!0));const I=s.value.shownStepIndices,J=I[I.length-1]===s.value.stepIndex?I:[...I,s.value.stepIndex];s.value={...s.value,shownAny:!0,shownStepIndices:J},He("guide_step",{id:s.value.id,step:s.value.stepIndex,step_id:E==null?void 0:E.id,chapter:E==null?void 0:E.chapter,index:s.value.stepIndex})}function M(){var E;s.value&&(He("guide_action",{id:s.value.id,step_id:(E=g())==null?void 0:E.id}),O()||Q())}function ee(E){s.value&&He("guide_result",{id:s.value.id,signal:E})}function ue(){s.value=null,w()}function U(E){if(!s.value)return;const{id:I,stepIndex:J}=s.value,we=wt(I);E==="target_lost"&&(we==null?void 0:we.kind)==="scenario"||d(I),He("guide_dismissed",{id:I,step:J,reason:E}),s.value=null,E==="disable"&&j(!1,"card"),w()}function Q(){if(!s.value)return;const{id:E}=s.value;d(E),He("guide_completed",{id:E}),s.value=null,w()}function G(){var J;if(!s.value)return;const{id:E,stepIndex:I}=s.value;d(E),He("guide_stopped",{id:E,step_id:((J=g())==null?void 0:J.id)??I}),s.value=null,w()}function j(E,I){t.value!==E&&(t.value=E,E?(He("guide_enabled",{}),w()):(He("guide_disabled",{from:I??"settings"}),o.value=o.value.filter(J=>J.manual)))}const ne=k([]),he=Kn({}),ve=new Set;function Ke(E){ne.value.includes(E)||(ne.value=[...ne.value,E])}function $e(E){ne.value=ne.value.filter(I=>I!==E),delete he[E]}function _e(E,I){he[E]=I}const le=B(()=>!t.value||s.value?null:ne.value.find(E=>he[E]===!0&&!c(`beacon:${E}`))??null);function be(E){ve.has(E)||(ve.add(E),He("beacon_shown",{id:E}))}function Oe(E){c(`beacon:${E}`)||(d(`beacon:${E}`),He("beacon_clicked",{id:E}))}return{enabled:t,seen:n,active:m,activeBeaconId:le,isSeen:c,request:p,next:A,back:N,skipStep:q,ski
326pCurrentStepAction:K,skipToNextChapter:ke,trackStepShown:Ie,advanceByAction:M,recordSignalResult:ee,dismiss:U,complete:Q,stopHere:G,setEnabled:j,resetSeen:h,notifyRouteChanged:b,registerBeacon:Ke,unregisterBeacon:$e,setBeaconWhen:_e,markBeaconShown:be,clickBeacon:Oe}});function ra(e){return!e||typeof e.id!="string"||e.id.trim()===""?null:{id:e.id,when:e.when===!0}}const jy={mounted(e,t){const n=ra(t.value);if(!n)return;const r=Go();r.registerBeacon(n.id),r.setBeaconWhen(n.id,n.when);const o=()=>r.clickBeacon(n.id);e.addEventListener("pointerdown",o),e.addEventListener("click",o);const s=Ce(()=>r.activeBeaconId,i=>{const a=i===n.id;e.classList.toggle("highlight-glow",a),a?(e.setAttribute("data-guide-beacon",""),r.markBeaconShown(n.id)):e.removeAttribute("data-guide-beacon")},{immediate:!0});e.__guideBeacon={id:n.id,stop:s,onActivate:o}},updated(e,t){const n=e.__guideBeacon,r=ra(t.value);!n||!r||r.id!==n.id||Go().setBeaconWhen(r.id,r.when)},unmounted(e){const t=e.__guideBeacon;if(!t)return;Go().unregisterBeacon(t.id),t.stop(),e.removeEventListener("pointerdown",t.onActivate),e.removeEventListener("click",t.onActivate),e.classList.remove("highlight-glow"),e.removeAttribute("data-guide-beacon"),delete e.__guideBeacon}},dn=Ko(null),ds=k(!1);let oa=!1;function Wy(){return/iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function Gy(){oa||(oa=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),dn.value=e}),window.addEventListener("appinstalled",()=>{ds.value=!0,dn.value=null}))}function ig(){const e=B(()=>vn()||ks()!=="browser"||ds.value?null:dn.value?"prompt":Wy()?"ios-manual":null),t=B(()=>e.value!==null),n=async()=>{const r=dn.value;if(!r)return"unavailable";try{await r.prompt();const{outcome:o}=await r.userChoice;return o}catch{return"unavailable"}finally{dn.value===r&&(dn.value=null)}};return{installMode:e,canInstall:t,installed:B(()=>ds.value),install:n}}tc();rf();Gy();const Nt=Kl(gm),Ky=Xl();Nt.use(Ky);Nt.use(Kt);Nt.directive("tooltip",Dy);Nt.directive("kpi-grid",Fy);Nt.directive("popup-fit",zy);Nt.directive("guide-beacon",jy);const to=uo(),Ll=Pt();$.setSpaceIdResolver(()=>to.currentSpaceId);$.setSpaceIdUpdater(e=>to.setCurrentSpaceId(e));$.setAccessTokenResolver(()=>Ll.accessToken);window.addEventListener("storage",e=>{e.key!=="avibox:userspace"||!e.newValue||e.newValue===to.currentSpaceId||to.switchSpace(e.newValue)});Ey(()=>{$.abortAll({includeAuth:!0}),Ll.clear(),window.location.reload()});Dp({restore:()=>$.restoreSession(),isRetryable:e=>$.isRefreshTransportError(e),retryAfterMs:e=>$.refreshRetryAfterMs(e),onReady:()=>{_m(),xs.connect()}});window.addEventListener("pageshow",e=>{e.persisted&&(async()=>{if(navigator.onLine){try{await $.restoreSession()}catch{}xs.forceReconnect()}})()});Nt.config.errorHandler=(e,t,n)=>{};Nt.mount("#app");export{op as $,G0 as A,ts as B,K0 as C,rl as D,Li as E,Bn as F,Do as G,Yf as H,Bo as I,Zf as J,J0 as K,Qf as L,Yh as M,Gh as N,ep as O,No as P,sl as Q,tp as R,np as S,Eh as T,Rm as U,Y0 as V,Q0 as W,gr as X,$o as Y,Fo as Z,rp as _,X0 as a,ul as a$,Em as a0,Nn as a1,$i as a2,ip as a3,Fi as a4,Bh as a5,ap as a6,Uo as a7,Cs as a8,ly as a9,Y as aA,_0 as aB,k0 as aC,U0 as aD,I0 as aE,Z0 as aF,ls as aG,Sh as aH,ja as aI,T0 as aJ,L0 as aK,wt as aL,C0 as aM,Cd as aN,dm as aO,M0 as aP,ks as aQ,P0 as aR,B0 as aS,E0 as aT,R0 as aU,x0 as aV,og as aW,sg as aX,gl as aY,im as aZ,el as a_,lp as aa,Ui as ab,cp as ac,Hi as ad,ol as ae,qi as af,P as ag,Be as ah,bl as ai,Qr as aj,$a as ak,$ as al,qy as am,vm as an,Le as ao,yf as ap,gf as aq,N0 as ar,tg as as,ng as at,w0 as au,sm as av,V0 as aw,ki as ax,am as ay,F0 as az,te as b,om as b0,Bs as b1,l0 as b2,Sy as b3,j0 as b4,vn as b5,Om as b6,eg as b7,b0 as b8,g0 as b9,ll as bA,ff as bB,Qp as bC,Kd as bD,Wo as bE,Ld as bF,lo as bG,ig as bH,cy as bI,As as bJ,Ts as bK,uo as bL,zy as bM,Rr as bN,xs as bO,Lt as ba,H0 as bb,Ms as bc,q0 as bd,rg as be,Kt as bf,D0 as bg,W0 as bh,$0 as bi,Vd as bj,v0 as bk,Z as bl,A0 as bm,He as bn,O0 as bo,S0 as bp,Pt as bq,z0 as br,co as bs,ml as bt,Ja as bu,Vp as bv,xm as bw,uh as bx,Ps as by,Go as bz,Ff as c,xr as d,At as e,Mi as f,Pi as g,Ii as h,Hf as i,tl as j,nl as k,qf as l,Hp as m,Di as n,zf as o,Bi as p,Vf as q,ym as r,yl as s,jf as t,Lr as u,Gf as v,Kf as w,Ni as x,zh as y,Jf as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.