decocms 4.92.3 → 4.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-B9GlbKHh.js → AlertCircle-Njhn01cX.js} +1 -1
- package/dist/client/assets/{AreaChart-DHN9bK0l.js → AreaChart-DRbAqxKW.js} +1 -1
- package/dist/client/assets/ArrowRight-esEXrLxn.js +1 -0
- package/dist/client/assets/{ArrowUp-DNZsq7Zt.js → ArrowUp-DxvzPWYP.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DZZygrAi.js → ArrowUpRight-CxuPu6Tj.js} +1 -1
- package/dist/client/assets/Check-C8xezRP_.js +1 -0
- package/dist/client/assets/{CheckCircle-BEcdXH7-.js → CheckCircle-BQxAiBVq.js} +1 -1
- package/dist/client/assets/{ChevronDown-BSRiDjXd.js → ChevronDown-DnZfSUpf.js} +1 -1
- package/dist/client/assets/{ChevronRight-YmTewr_B.js → ChevronRight-DsMfUSaC.js} +1 -1
- package/dist/client/assets/ChevronUp-DGO207B8.js +1 -0
- package/dist/client/assets/{Copy01-BkGYkmm-.js → Copy01-BvTvgPMW.js} +1 -1
- package/dist/client/assets/{DotsVertical-BmTi7wpl.js → DotsVertical-Cpk8Ctc8.js} +1 -1
- package/dist/client/assets/{Eye-B-ZfWIGj.js → Eye-BsbSF6dM.js} +1 -1
- package/dist/client/assets/{FilterLines-BwWG7tAk.js → FilterLines-DBjnKQVG.js} +1 -1
- package/dist/client/assets/{Globe01-D3vBqhI7.js → Globe01-QTXFA3Hg.js} +1 -1
- package/dist/client/assets/{Globe04-pvxBukgJ.js → Globe04-Dpy9nX58.js} +1 -1
- package/dist/client/assets/{HardDrive-DutZPQFL.js → HardDrive-B9qgGqhY.js} +1 -1
- package/dist/client/assets/{Image01-PIeYnf-K.js → Image01-CMr6OOW9.js} +1 -1
- package/dist/client/assets/{Key01-DhLD806C.js → Key01-uLXewYdO.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BI-sXAac.js → LayoutLeft-tArvHAmP.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DO3QnLus.js → LinkExternal01-DXy81AX9.js} +1 -1
- package/dist/client/assets/{Monitor01-BOILvS2u.js → Monitor01-XHtWWQke.js} +1 -1
- package/dist/client/assets/{Package-DbEcG94t.js → Package-B0zWER5V.js} +1 -1
- package/dist/client/assets/{Palette-CyZvWKmI.js → Palette-00Ixb1J1.js} +1 -1
- package/dist/client/assets/{Play-B8fWmOst.js → Play-CzcsEB-0.js} +1 -1
- package/dist/client/assets/{Plus-2c1jULco.js → Plus-edG6Flwm.js} +1 -1
- package/dist/client/assets/{SearchLg-XmvudKlH.js → SearchLg-BZaz6095.js} +1 -1
- package/dist/client/assets/{SearchMd-lwIiBODG.js → SearchMd-CCfeLY5x.js} +1 -1
- package/dist/client/assets/{Settings02-DMpqOK24.js → Settings02-Bx_qgDLp.js} +1 -1
- package/dist/client/assets/{Shield01-gTFc9c17.js → Shield01-BiDz13pn.js} +1 -1
- package/dist/client/assets/{Star01-DoUbKevt.js → Star01-8Dyem59l.js} +1 -1
- package/dist/client/assets/{Stars01-CJsm_THn.js → Stars01-3-zqXKvS.js} +1 -1
- package/dist/client/assets/{Stars02-B08FvcHQ.js → Stars02-BQXVdDN3.js} +1 -1
- package/dist/client/assets/{Sun-nDXz4jeM.js → Sun-CB79h_pC.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Rgis0XWf.js → SwitchHorizontal01-BvyA4hac.js} +1 -1
- package/dist/client/assets/{Tool01-BR3IBeV9.js → Tool01-B13YSnrO.js} +1 -1
- package/dist/client/assets/{Tool02-B0-a0UMl.js → Tool02-egoF7acO.js} +1 -1
- package/dist/client/assets/{Trash01-Ba6bCbNY.js → Trash01-DLyQDi2Y.js} +1 -1
- package/dist/client/assets/{TrendUp01-CeRF_789.js → TrendUp01-B_4HE6HC.js} +1 -1
- package/dist/client/assets/{Upload01-B14IruoN.js → Upload01-C-fdZkjY.js} +1 -1
- package/dist/client/assets/{User01-ByIE6k8L.js → User01-ndlF2LEv.js} +1 -1
- package/dist/client/assets/{Users01-BdldAr7H.js → Users01-BRUbM3mR.js} +1 -1
- package/dist/client/assets/{Users03-Bx4g7VTC.js → Users03-D_q12QHD.js} +1 -1
- package/dist/client/assets/{X-Dif5I5BD.js → X-BLwtZL0s.js} +1 -1
- package/dist/client/assets/XCircle-DHvjqByD.js +1 -0
- package/dist/client/assets/{XClose-DomD4542.js → XClose-CeJxo_5O.js} +1 -1
- package/dist/client/assets/{Zap-CEUVQQOc.js → Zap-Biv_hWgJ.js} +1 -1
- package/dist/client/assets/{ZapSquare-EvC2T9CP.js → ZapSquare-CUzmnXYD.js} +1 -1
- package/dist/client/assets/{ZoomOut-BprgOfkE.js → ZoomOut-BtlatfMa.js} +1 -1
- package/dist/client/assets/{access-gate-NCJKEJqO.js → access-gate-DlRgf45B.js} +1 -1
- package/dist/client/assets/add-section-modal-Cnzkvby6.js +1 -0
- package/dist/client/assets/agent-icon-DpP8KzFU.js +1 -0
- package/dist/client/assets/agents-list-DvnAEWGc.js +1 -0
- package/dist/client/assets/ai-providers-CDx5RbfA.js +1 -0
- package/dist/client/assets/{alert-C_4AvGUo.js → alert-DiBfJ3z6.js} +1 -1
- package/dist/client/assets/{alert-dialog-DDtUbhoS.js → alert-dialog-BnLog6BT.js} +2 -2
- package/dist/client/assets/app-editor-DTp5bYYF.js +1 -0
- package/dist/client/assets/{auth-CsHQFHV_.js → auth-CmoeLSjh.js} +1 -1
- package/dist/client/assets/{auth-catchall-_TQy6GDd.js → auth-catchall-CyJqULXt.js} +1 -1
- package/dist/client/assets/{auth-entry-_ePf9_J1.js → auth-entry-oOVL70ba.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D9UYTbxy.js → auth-split-layout-BCda3jzi.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CEv4KtcH.js → authenticate-and-persist-oauth-CJ808iDy.js} +1 -1
- package/dist/client/assets/{automation-list-row-CyDHI_uf.js → automation-list-row-BZr8L7Uh.js} +1 -1
- package/dist/client/assets/{automation-runs-D8v8nlly.js → automation-runs-DS0XzTMW.js} +5 -5
- package/dist/client/assets/automations-BrHkbwwm.js +1 -0
- package/dist/client/assets/{autosend-BgYoPuWD.js → autosend-CQ-47-85.js} +1 -1
- package/dist/client/assets/{avatar-BVdHZbMN.js → avatar-CGcwSkmr.js} +1 -1
- package/dist/client/assets/{badge-C_9mnuBd.js → badge-BUVU0rMR.js} +1 -1
- package/dist/client/assets/{block-document-CcMdXbqY.js → block-document-B2r_hLd8.js} +1 -1
- package/dist/client/assets/{brand-context-B-nZCoNx.js → brand-context-Bpk1Tuz_.js} +1 -1
- package/dist/client/assets/buckets-Ba5z9iiC.js +1 -0
- package/dist/client/assets/bulk-category-panel-i79BTudx.js +1 -0
- package/dist/client/assets/{calendar-Bxkf6gvE.js → calendar-COt9TyKT.js} +1 -1
- package/dist/client/assets/{capability-load-error-i6NCyxxk.js → capability-load-error-DOgFzcPM.js} +1 -1
- package/dist/client/assets/{card-C3gg1LtP.js → card-BoM9PVle.js} +1 -1
- package/dist/client/assets/category-editor-CZOD4Saa.js +1 -0
- package/dist/client/assets/{chat-context-DSveBxCg.js → chat-context-B5VF42iB.js} +7 -7
- package/dist/client/assets/checkbox-8MRm635N.js +1 -0
- package/dist/client/assets/{cli-auth-success-Cc2B25iW.js → cli-auth-success-CTl9Esai.js} +1 -1
- package/dist/client/assets/collection-detail-JnTCc17l.js +1 -0
- package/dist/client/assets/collection-display-button-DZt1zLnf.js +1 -0
- package/dist/client/assets/{collection-search-TcSAZpqK.js → collection-search-3CKEWWZt.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-H4bzUKoO.js → collection-table-wrapper-D20SVTuI.js} +1 -1
- package/dist/client/assets/{collection-tabs-CIRa_M2W.js → collection-tabs-8kNejI0g.js} +1 -1
- package/dist/client/assets/{command-3z1R7bvy.js → command-BEYKuuWi.js} +1 -1
- package/dist/client/assets/commerce-onboarding-eKB7r6Ch.js +1 -0
- package/dist/client/assets/{companions-core-C68sN4Wc.js → companions-core-C3_LmblJ.js} +1 -1
- package/dist/client/assets/connect-DT6CnTMJ.js +8 -0
- package/dist/client/assets/connect-desktop-dialog-DwQ8Mjza.js +1 -0
- package/dist/client/assets/{connection-card-D_K36Swx.js → connection-card-WnbGcpbb.js} +1 -1
- package/dist/client/assets/connection-detail-Dd3EkXAN.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DyOAEqE9.js → connection-form-helpers-BCcxv-0Z.js} +1 -1
- package/dist/client/assets/connections-CfhypjVY.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-CEQrv8Fn.js → decopilot-sse-pool-SXkhxj1m.js} +1 -1
- package/dist/client/assets/{dialog-DUqhzGiD.js → dialog-CV70WKsd.js} +1 -1
- package/dist/client/assets/{domain-settings-CRIqu0Bs.js → domain-settings-BwZkfjuf.js} +1 -1
- package/dist/client/assets/{drawer-DvhdIHph.js → drawer-DjOdYDA9.js} +1 -1
- package/dist/client/assets/dropdown-menu-mvaVV4Vk.js +1 -0
- package/dist/client/assets/{empty-state-BHuw6cM9.js → empty-state-DXghlCSF.js} +1 -1
- package/dist/client/assets/{extract-connection-data-_NDoBHMa.js → extract-connection-data-JVWAWvFf.js} +1 -1
- package/dist/client/assets/file-explorer-BHCYY9cJ.js +2 -0
- package/dist/client/assets/{file-type-icon-BOCZKON3.js → file-type-icon-CZv5YRkA.js} +1 -1
- package/dist/client/assets/{files-CelFf8dg.js → files-CxsC_UPe.js} +1 -1
- package/dist/client/assets/{form-C9InGmo4.js → form-DQ-7zIby.js} +1 -1
- package/dist/client/assets/general-CrovKb2x.js +1 -0
- package/dist/client/assets/{github-repo-picker-Biy9UFu8.js → github-repo-picker-BfsQbNwu.js} +1 -1
- package/dist/client/assets/{hooks-DU-2h9eZ.js → hooks-DQwk0XaJ.js} +1 -1
- package/dist/client/assets/{index-DnrPO2j2.js → index-4lUYXs_O.js} +1 -1
- package/dist/client/assets/{index-DivFugQC.js → index-9nw_Dv5I.js} +1 -1
- package/dist/client/assets/index-B7jBuFkn.css +1 -0
- package/dist/client/assets/{index-CbhDnqOu.js → index-BCiQIrz6.js} +1 -1
- package/dist/client/assets/index-C4jaN42X.js +2 -0
- package/dist/client/assets/{index-Du80fsxC.js → index-CF-xkULI.js} +5 -5
- package/dist/client/assets/{index-DBhNC4I_.js → index-COh-8QN3.js} +1 -1
- package/dist/client/assets/index-CSe3WpII.js +1 -0
- package/dist/client/assets/{index-BOgwoJjn.js → index-CdbTrQGO.js} +1 -1
- package/dist/client/assets/{index-CO3868Cu.js → index-Ckjl1Fry.js} +1 -1
- package/dist/client/assets/{index-Cs6hIS7C.js → index-Csozlno7.js} +3 -3
- package/dist/client/assets/index-DZseYmOn.js +1 -0
- package/dist/client/assets/{index-nNhZx5bw.js → index-G0zgTDdu.js} +14 -14
- package/dist/client/assets/{index-f6gbzJ8b.js → index-KNJ3OCd2.js} +1 -1
- package/dist/client/assets/{index-DmhdwAgP.js → index-cMDjfUVQ.js} +14 -14
- package/dist/client/assets/{index-redirect-hJFu02mm.js → index-redirect-D10_sM2p.js} +1 -1
- package/dist/client/assets/{input-TkvVVsQL.js → input-ChzvExXm.js} +1 -1
- package/dist/client/assets/{integration-icon-CWb3OXTV.js → integration-icon-Bhn0_xtP.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BA1mFY2X.js → invite-member-dialog-SQrGzC-z.js} +1 -1
- package/dist/client/assets/{label-CB2o7dZ2.js → label-CuJFo9yJ.js} +1 -1
- package/dist/client/assets/{layout-CqMMMVMm.js → layout-CwrVNWCG.js} +1 -1
- package/dist/client/assets/{login-B0EX352Z.js → login-C7gBuFYu.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B5rKpHdd.js → mcp-oauth-BVO-f6t7.js} +1 -1
- package/dist/client/assets/members-Dlx5k3-8.js +1 -0
- package/dist/client/assets/{monaco-editor-DfuNvLfy.js → monaco-editor-CjU5L-zs.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B43TP1bq.js → monitoring-stats-row-B9gtpPq-.js} +1 -1
- package/dist/client/assets/{multi-select-DhXl88EK.js → multi-select-De7VgXHU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BiKjtCpj.js → oauth-callback-ai-provider-UmcAlyJ2.js} +1 -1
- package/dist/client/assets/{oauth-callback-CZ8I3e9V.js → oauth-callback-w52ryAZO.js} +1 -1
- package/dist/client/assets/{onboarding-U4YqP9I9.js → onboarding-BBWoRpXr.js} +1 -1
- package/dist/client/assets/{org-install-BYDat95r.js → org-install-ml9Q1TCX.js} +1 -1
- package/dist/client/assets/{org-layout-CVqWtNQa.js → org-layout-DmAo9qk4.js} +1 -1
- package/dist/client/assets/{organization-choice-CkG6QFWH.js → organization-choice-5F6o2RZD.js} +1 -1
- package/dist/client/assets/orgs-j7U5FSTV.js +1 -0
- package/dist/client/assets/{page-seo-form-8ToiuKnD.js → page-seo-form-CTnrck0_.js} +1 -1
- package/dist/client/assets/page-seo-sheet-fmIm-MrR.js +1 -0
- package/dist/client/assets/{popover-DwV6WXHS.js → popover-1mcOD1Dn.js} +1 -1
- package/dist/client/assets/post-editor-Dv_wlt7_.js +1 -0
- package/dist/client/assets/{primitives-RdkZFzQM.js → primitives-BaeBEsVv.js} +1 -1
- package/dist/client/assets/profile-CTuz7Go7.js +1 -0
- package/dist/client/assets/project-app-view-BtXFxvLq.js +1 -0
- package/dist/client/assets/record-editor-ZKO7gQiD.js +1 -0
- package/dist/client/assets/redirect-editor-qRjlDXct.js +1 -0
- package/dist/client/assets/registry-DtoSMqLy.js +2 -0
- package/dist/client/assets/{registry-layout-C2NoRJs0.js → registry-layout-WEtqp3AF.js} +3 -3
- package/dist/client/assets/{reports-J4B5GOoc.js → reports-CpbSj3oU.js} +2 -2
- package/dist/client/assets/{require-capability-DnfzULDW.js → require-capability-DF8ibYEg.js} +1 -1
- package/dist/client/assets/{required-auth-layout-ABsqitxw.js → required-auth-layout-rQ3tDKtk.js} +1 -1
- package/dist/client/assets/{reset-password-CbrThkFS.js → reset-password-D7FhrF53.js} +1 -1
- package/dist/client/assets/roles-BsYIEd1e.js +1 -0
- package/dist/client/assets/{search-input-B-RkAjzQ.js → search-input-75Re6Uqa.js} +1 -1
- package/dist/client/assets/secrets-B8bCoicB.js +1 -0
- package/dist/client/assets/{sections-editor-BW9cZUKJ.js → sections-editor-CM3ROkK7.js} +2 -2
- package/dist/client/assets/{select-model-BAk08l-M.js → select-model-CvnCrbwF.js} +1 -1
- package/dist/client/assets/select-sG3MQo05.js +1 -0
- package/dist/client/assets/self-tool-result-DR1KhJAE.js +1 -0
- package/dist/client/assets/seo-editor-Dz2QCY6k.js +1 -0
- package/dist/client/assets/settings-layout-rnH8GMkk.js +1 -0
- package/dist/client/assets/{settings-section-CNVe03BK.js → settings-section-DAwHE86q.js} +1 -1
- package/dist/client/assets/{shell-controls-5d4ZCRmi.js → shell-controls-Ck0Rc32A.js} +1 -1
- package/dist/client/assets/{shell-layout-6KUu0MA6.js → shell-layout-BXBrTj2H.js} +1 -1
- package/dist/client/assets/{sidebar-DnKMI8jz.js → sidebar-CCj6ri6x.js} +1 -1
- package/dist/client/assets/{skeleton-xDZ5Iwb8.js → skeleton-CoquA_ea.js} +1 -1
- package/dist/client/assets/sso-BOWh8JUl.js +1 -0
- package/dist/client/assets/store-registry-3_Y48Wu9.js +2 -0
- package/dist/client/assets/{store-BoCHTDSB.js → store-tszIV4qx.js} +1 -1
- package/dist/client/assets/{studio-tools-DIWsVaKg.js → studio-tools-Cet6XIhz.js} +1 -1
- package/dist/client/assets/{switch-DS9vYGS-.js → switch-DuPEp97y.js} +1 -1
- package/dist/client/assets/{table-DnoPpUup.js → table-LpLpROAI.js} +1 -1
- package/dist/client/assets/{tabs-2srR2H7A.js → tabs-CmiAgAjG.js} +1 -1
- package/dist/client/assets/{textarea-DjtAtA2l.js → textarea-CnNzHRRt.js} +1 -1
- package/dist/client/assets/{toggle-group-DGvoaiio.js → toggle-group-CKOvvRSl.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cr-N30KB.js → toolbar-icon-button-D8Ebc4H2.js} +1 -1
- package/dist/client/assets/{toolbar-CvkbyWaX.js → toolbar-uJC2H1eB.js} +1 -1
- package/dist/client/assets/{tooltip-cvFTpZ9W.js → tooltip-OGhXfeBg.js} +1 -1
- package/dist/client/assets/{use-ai-providers-ZLuBEaKb.js → use-ai-providers-BEU7q_EV.js} +1 -1
- package/dist/client/assets/use-api-keys-Bv4LYzyW.js +1 -0
- package/dist/client/assets/{use-automations-COcieFX-.js → use-automations-3WBbPXBU.js} +1 -1
- package/dist/client/assets/{use-autosave-C46oRXRb.js → use-autosave-GvQRDmC-.js} +1 -1
- package/dist/client/assets/{use-capability-3dRU8tE2.js → use-capability-RkVuWZII.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BzcS25hV.js → use-clock-tick-CVs1XDyl.js} +1 -1
- package/dist/client/assets/{use-collections-DaXoNaLL.js → use-collections-DR_d-Teb.js} +1 -1
- package/dist/client/assets/{use-connection-DM1ROgj3.js → use-connection-CwuiKrFd.js} +1 -1
- package/dist/client/assets/{use-copy-DC217syR.js → use-copy-B6IC0gpM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Clu62lnk.js → use-create-virtual-mcp-sGGDSwNA.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DYog9M6N.js → use-debounced-autosave-BwK3M221.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CSp0_yRg.js → use-debounced-value-DLpyoptp.js} +1 -1
- package/dist/client/assets/use-deco-credits-q4i1Uz5r.js +1 -0
- package/dist/client/assets/{use-decopilot-events-CX_EuT5c.js → use-decopilot-events-BWABMe_S.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CxGr7t4A.js → use-delete-connection-CzZLtWQx.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C6-1CBki.js → use-deployment-admin-CMiQgY9e.js} +1 -1
- package/dist/client/assets/{use-file-configs-DASxzk9O.js → use-file-configs-DzR4CKUR.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-XidGSyic.js → use-infinite-scroll-7EbHWl5i.js} +1 -1
- package/dist/client/assets/{use-join-requests-CjypbTMc.js → use-join-requests-DGeGKSqv.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BpAt0IbR.js → use-mcp-auth-status-Dc0BBxuQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DseZ3Mea.js → use-mcp-client-CX21NflZ.js} +4 -4
- package/dist/client/assets/{use-mcp-tools-DJGNLf9H.js → use-mcp-tools-BsmNzwNJ.js} +1 -1
- package/dist/client/assets/{use-members-CncY3QG2.js → use-members-Dg0Z4TCy.js} +1 -1
- package/dist/client/assets/{use-mobile-D8w2xyip.js → use-mobile-iuGXq52B.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-YScxPu5L.js → use-navigate-to-agent-BGBWLfKe.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DjREcL_I.js → use-org-auth-client-BWQzTMi-.js} +1 -1
- package/dist/client/assets/{use-org-sso-diAgeADE.js → use-org-sso-C0w-Y45A.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BuFi-QNO.js → use-organization-roles-3XOjGEsU.js} +1 -1
- package/dist/client/assets/{use-organization-settings-bBY4klS6.js → use-organization-settings-DVcDvmS7.js} +1 -1
- package/dist/client/assets/{use-registry-app-Cy7ipz7c.js → use-registry-app-9JpMfNFa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BZ0Z0jCg.js → use-registry-connections-hPmj3HSR.js} +1 -1
- package/dist/client/assets/{use-secrets-q_kPvC5B.js → use-secrets-BlieysxK.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DG0Zyz9B.js → use-status-sounds-B7xlxGt9.js} +1 -1
- package/dist/client/assets/{use-t-BjZG1zRp.js → use-t-DpDrKRdg.js} +1 -1
- package/dist/client/assets/{use-view-mode-B02hzmMj.js → use-view-mode-DjI_33ML.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-urYy02xb.js → use-virtual-mcp-CMX7Masu.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BtjzjNju.js +1 -0
- package/dist/client/assets/{useRouterState-C7tRHRC7.js → useRouterState-BtVYUlaA.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DzpLVyna.js +1 -0
- package/dist/client/assets/{users-CZVOiXsq.js → users-B-S76Gnf.js} +1 -1
- package/dist/client/assets/variant-calendar-C5Z-PHCg.js +1 -0
- package/dist/client/assets/{view-mode-toggle-DziN7a9n.js → view-mode-toggle-DT808FUj.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +488 -488
- package/dist/server/server.js +313 -313
- package/package.json +1 -1
- package/dist/client/assets/ChevronUp-D5F6V6Tm.js +0 -1
- package/dist/client/assets/XCircle-C0OdV3N_.js +0 -1
- package/dist/client/assets/add-section-modal-DBjaDtzc.js +0 -1
- package/dist/client/assets/agent-icon-DicjSkHu.js +0 -1
- package/dist/client/assets/agents-list-Bt1R4ueI.js +0 -1
- package/dist/client/assets/ai-providers-TK1CCOpK.js +0 -1
- package/dist/client/assets/app-editor-ptKJtHHM.js +0 -1
- package/dist/client/assets/automations-BoSNNWPc.js +0 -1
- package/dist/client/assets/buckets-DcRE1RUQ.js +0 -1
- package/dist/client/assets/bulk-category-panel-BkJQrEio.js +0 -1
- package/dist/client/assets/category-editor-CaGAyBNX.js +0 -1
- package/dist/client/assets/checkbox-Ba2-hx8r.js +0 -1
- package/dist/client/assets/collection-detail-D9ZCPDhA.js +0 -1
- package/dist/client/assets/collection-display-button-D_kIgil2.js +0 -1
- package/dist/client/assets/commerce-onboarding-DbQ0hYyA.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-DEEL81vf.js +0 -1
- package/dist/client/assets/connection-detail-CKGrDl_p.js +0 -1
- package/dist/client/assets/connections-BJO0R_-8.js +0 -1
- package/dist/client/assets/dropdown-menu-D5BTIZvH.js +0 -1
- package/dist/client/assets/file-explorer-CUr9mfMv.js +0 -2
- package/dist/client/assets/general-DlHL1tW3.js +0 -1
- package/dist/client/assets/index-629FAmzK.js +0 -1
- package/dist/client/assets/index-BQK4XWOD.js +0 -2
- package/dist/client/assets/index-Cb_X1LK0.js +0 -1
- package/dist/client/assets/index-oE__K1ye.css +0 -1
- package/dist/client/assets/members-Ds_Onv02.js +0 -1
- package/dist/client/assets/orgs-B4DrO8iC.js +0 -1
- package/dist/client/assets/page-seo-sheet-BTyypxho.js +0 -1
- package/dist/client/assets/post-editor-j9JAXwQN.js +0 -1
- package/dist/client/assets/profile-DwVJzm_R.js +0 -1
- package/dist/client/assets/project-app-view-e40sJb24.js +0 -1
- package/dist/client/assets/record-editor-BBPLTix7.js +0 -1
- package/dist/client/assets/redirect-editor-C8EDxpmx.js +0 -1
- package/dist/client/assets/registry-CFSvMZwJ.js +0 -2
- package/dist/client/assets/roles-BqueMkJJ.js +0 -1
- package/dist/client/assets/secrets-CEZOniOS.js +0 -1
- package/dist/client/assets/select-AzuoAc3H.js +0 -1
- package/dist/client/assets/self-tool-result-C94YNykg.js +0 -1
- package/dist/client/assets/seo-editor-CR8P7sfk.js +0 -1
- package/dist/client/assets/settings-layout-9yQD_m0n.js +0 -1
- package/dist/client/assets/sso-DNsZ7Hie.js +0 -1
- package/dist/client/assets/store-registry-WZUtBjlh.js +0 -2
- package/dist/client/assets/use-deco-credits-Bm6Hzrca.js +0 -1
- package/dist/client/assets/useInfiniteQuery-nK_JPgM8.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_ObcRUnC.js +0 -1
- package/dist/client/assets/variant-calendar-DibyF3zD.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _e,l as qe,j as T,r as Ne,o as on,T as po,w as hL,x as vL,a as dL,m as pL,K as gL,y as mL}from"./index-DmhdwAgP.js";import{A as yL}from"./auth-entry-_ePf9_J1.js";import{d as $y}from"./delay-CnY5UFtP.js";import{i as xL}from"./AlertCircle-B9GlbKHh.js";import{n as _L,i as bL}from"./ArrowUp-DNZsq7Zt.js";import{a as SL,b as wL,i as TL}from"./XCircle-C0OdV3N_.js";import{a as CL,i as AL,b as DL,c as ML,t as IL,n as LL,d as PL,e as kL,f as RL,s as EL,g as NL,h as OL}from"./TrendUp01-CeRF_789.js";import{i as BL}from"./CheckCircle-BEcdXH7-.js";import{s as zL}from"./Eye-B-ZfWIGj.js";import{a as VL}from"./Package-DbEcG94t.js";import{i as FL}from"./SearchLg-XmvudKlH.js";import{i as GL}from"./Shield01-gTFc9c17.js";import{t as HL}from"./Stars01-CJsm_THn.js";import{i as jL}from"./Zap-CEUVQQOc.js";import"./input-TkvVVsQL.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";function Rg(r){let e=(r??"").trim().toLowerCase();return e=e.replace(/^https?:\/\//,""),e=e.replace(/^www\./,""),e=e.split(/[/?#]/)[0]??"",e.replace(/\/+$/,"")}function WL(r){return(Rg(r).split(".")[0]||r).replace(/[-_]/g," ").split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function _f(r,e=64){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(Rg(r))}&sz=${e}`}function Uy(r,e){const t=r.trim();if(t.length<=e)return t;const a=t.slice(0,e-1),n=a.lastIndexOf(" ");return`${(n>e*.6?a.slice(0,n):a).trimEnd()}…`}function $L(r){const{brand:e,domain:t,score:a,verdict:n}=r,i=typeof a=="number"?`${e} commerce report — ${Math.round(a)}/100 · decocms`:`${e} commerce report · decocms`,o=`See the full ${e} scorecard — SEO, performance, conversion & AEO signals scored by decocms.`,s=n?.trim()?Uy(`${n.trim().replace(/\s+/g," ")} — ${o}`,200):Uy(`How does ${t} really perform? ${o}`,200);return{title:i,description:s}}class p2 extends Error{constructor(e){super(`reports API HTTP ${e}`),this.status=e,this.name="ReportsApiError"}status}function Eg(r){return r instanceof p2&&r.status===401}async function bf(r){if(!r.ok)throw new p2(r.status);return await r.json()}function Fd(r,e){const t=e?`?key=${encodeURIComponent(e)}`:"";return fetch(`/api/_reports/site/${encodeURIComponent(r)}${t}`).then(a=>bf(a))}function UL(r){return fetch("/api/_reports/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>bf(e))}function YL(r){return fetch(`/api/_reports/status?id=${encodeURIComponent(r)}`).then(e=>bf(e))}function XL(r){return fetch(`/api/_reports/link-token/${encodeURIComponent(r)}`).then(e=>bf(e))}const N={bg:"#ffffff",ink:"#282524",muted:"#78726e",faint:"#a6a09d",border:"rgba(40,37,36,0.09)",cardBorder:"rgba(40,37,36,0.06)",inputBorder:"rgba(40,37,36,0.18)",surface:"#ffffff",primary:"#282524",primaryFg:"#ffffff",soft:"#8caa25",lime:"#d0ec1a",limeTint:"#eff6cc",forest:"#07401a",warn:"#f0b613",notice:"#6e9fdb"},at={good:N.soft,bad:"#d43d3d",neutral:N.ink},ZL=[{src:"/logos/summit/fila.svg",alt:"Fila",w:100,h:34},{src:"/logos/summit/osklen.svg",alt:"Osklen",w:152,h:21},{src:"/logos/summit/farm-rio.svg",alt:"Farm Rio",w:159,h:23},{src:"/logos/summit/electrolux.svg",alt:"Electrolux",w:154,h:35},{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",w:116,h:61},{src:"/logos/summit/technos.svg",alt:"Technos",w:141,h:29},{src:"/logos/summit/bagaggio.svg",alt:"Bagaggio",w:149,h:22},{src:"/logos/summit/le-biscuit.svg",alt:"Le Biscuit",w:141,h:24},{src:"/logos/summit/miess.svg",alt:"Miess",w:113,h:43},{src:"/logos/summit/casa-e-video.svg",alt:"Casa & Video",w:145,h:18},{src:"/logos/summit/hering-fill.svg",alt:"Hering",w:140,h:30}],qL=4,KL=2400;function JL(r){const e=Array.from({length:r},()=>[]);return ZL.forEach((t,a)=>e[a%r]?.push(t)),e}function g2(r){const e=_e.c(22),{logos:t,delayMs:a,last:n,bottomRow:i}=r,[o,s]=Ne.useState(0);let l;e[0]!==a||e[1]!==t.length?(l=b=>{if(!b)return;let S;const w=setTimeout(()=>{S=setInterval(()=>s(A=>(A+1)%t.length),KL)},a);return()=>{clearTimeout(w),S&&clearInterval(S)}},e[0]=a,e[1]=t.length,e[2]=l):l=e[2];const u=l,c=t[o%t.length]??t[0];if(!c)return null;const f=Math.min(78/c.w,22/c.h);let h;e[3]!==c.w||e[4]!==f?(h=Math.round(c.w*f),e[3]=c.w,e[4]=f,e[5]=h):h=e[5];const v=h;let d;e[6]!==c.h||e[7]!==f?(d=Math.round(c.h*f),e[6]=c.h,e[7]=f,e[8]=d):d=e[8];const p=d,g=n?void 0:`1px solid ${N.border}`,m=i?`1px solid ${N.border}`:void 0;let y;e[9]!==g||e[10]!==m?(y={borderRight:g,borderTop:m},e[9]=g,e[10]=m,e[11]=y):y=e[11];let x;e[12]!==o||e[13]!==c.alt||e[14]!==c.src||e[15]!==p||e[16]!==v?(x=T.jsx("img",{src:c.src,alt:c.alt,width:v,height:p,className:"logo-carousel-enter block"},o),e[12]=o,e[13]=c.alt,e[14]=c.src,e[15]=p,e[16]=v,e[17]=x):x=e[17];let _;return e[18]!==u||e[19]!==y||e[20]!==x?(_=T.jsx("div",{ref:u,className:"flex flex-1 items-center justify-center overflow-hidden py-3",style:y,children:x}),e[18]=u,e[19]=y,e[20]=x,e[21]=_):_=e[21],_}function QL(){const r=_e.c(1);let e;if(r[0]===Symbol.for("react.memo_cache_sentinel")){const t=JL(qL);e=T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"grid grid-cols-2 overflow-hidden rounded-xl sm:hidden",style:{border:`1px solid ${N.border}`},children:t.map(eP)}),T.jsx("div",{className:"hidden overflow-hidden rounded-xl sm:flex",style:{border:`1px solid ${N.border}`},children:t.map((a,n)=>T.jsx(g2,{logos:a,delayMs:n*380,last:n===t.length-1},a[0]?.src))})]}),r[0]=e}else e=r[0];return e}function eP(r,e){return T.jsx(g2,{logos:r,delayMs:e*380,last:e%2===1,bottomRow:e>=2},r[0]?.src)}function m2(r){const e=_e.c(7),{compact:t}=r,n=(t===void 0?!1:t)?"mt-5 pt-5":"mt-8 pt-6";let i;e[0]!==n?(i=qe(n),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:`1px solid ${N.border}`},e[2]=o):o=e[2];let s,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("p",{className:"mb-4 text-center text-[11px] uppercase tracking-[0.04em]",style:{color:N.faint},children:"Já receberam"}),l=T.jsx(QL,{}),e[3]=s,e[4]=l):(s=e[3],l=e[4]);let u;return e[5]!==i?(u=T.jsxs("div",{className:i,style:o,children:[s,l]}),e[5]=i,e[6]=u):u=e[6],u}let y2=!1;const tP="report:auth-attempt:",rP=3600*1e3;function aP(r){const e=new URLSearchParams(r),t=e.get("share_id")||void 0,a=e.get("email_run_id")||void 0,n=e.get("utm_source")||void 0,i=e.get("utm_medium")||void 0,o=e.get("utm_campaign")||void 0;return{entrypoint:t||n==="share"?"share":a||e.has("d")||n==="email"?"email":n?"campaign":"direct",...t?{share_id:t}:{},...a?{email_run_id:a}:{},...n?{utm_source:n}:{},...i?{utm_medium:i}:{},...o?{utm_campaign:o}:{}}}function x2(){return aP(typeof window>"u"?"":window.location.search)}function Sc(r){return`${tP}${r}`}function nP(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function _2(r){try{const e=window.sessionStorage.getItem(Sc(r));if(!e)return null;const t=JSON.parse(e);return t.domain!==r||typeof t.attempt_id!="string"||typeof t.gate_shown_at!="number"||Date.now()-t.gate_shown_at>rP?(window.sessionStorage.removeItem(Sc(r)),null):t}catch{return null}}function b2(r){try{window.sessionStorage.setItem(Sc(r.domain),JSON.stringify(r))}catch{}}function S2(r){const e=_2(r);if(e)return e;const t={attempt_id:nP(),domain:r,gate_shown_at:Date.now(),...x2()};return b2(t),t}function iP(r,e){const t={...S2(r),...e};return b2(t),t}function Gd(r){return{auth_attempt_id:r.attempt_id,entrypoint:r.entrypoint,...r.share_id?{share_id:r.share_id}:{},...r.email_run_id?{email_run_id:r.email_run_id}:{},...r.utm_source?{utm_source:r.utm_source}:{},...r.utm_medium?{utm_medium:r.utm_medium}:{},...r.utm_campaign?{utm_campaign:r.utm_campaign}:{}}}function oP(r){const e=_2(r);if(!e)return null;try{window.sessionStorage.removeItem(Sc(r))}catch{}return e}function sP(r){const e=r.toLowerCase();return e==="invalid_email"?"invalid_email":e.includes("429")||e.includes("rate limit")?"rate_limited":e.includes("otp")||e.includes("verification code")||e.includes("invalid code")||e.includes("expired code")||e.includes("código")||e.includes("codigo")?"invalid_or_expired_code":e.includes("401")||e.includes("unauthorized")?"invalid_credentials":e.includes("409")||e.includes("already exists")?"account_exists":e.includes("network")||e.includes("fetch")?"network":e.includes("cancel")||e.includes("closed")?"cancelled":"unknown"}function Hd(r){y2=r}function Ke(r,e,t){if(on())try{po.capture(r,{...x2(),...e,...y2?{report_preview:"reviewer"}:{}},t)}catch{}}const lP={otpSendFailed:"Não foi possível enviar o código",invalidCode:"Código inválido",invalidEmail:"Digite um email válido",networkError:"Erro de conexão. Tente novamente.",tooManyAttempts:"Muitas tentativas. Aguarde um momento e tente novamente.",invalidOrExpiredCode:"Código inválido ou expirado. Tente novamente.",genericError:"Algo deu errado. Tente novamente.",verificationCodeTitle:"Digite o código",codeSentTo:r=>`Enviamos um código para ${r}`,continueWith:r=>`Continuar com ${r}`,divider:"ou",emailLabel:"Email",emailPlaceholder:"seu@email.com",sending:"Enviando...",sendCode:"Continuar",verificationCodeLabel:"Código de verificação",enterCodePlaceholder:"Digite o código",verifying:"Verificando...",verify:"Entrar",useDifferentEmail:"Usar outro email"};function uP(r){const e=`/report/${encodeURIComponent(r)}`;return typeof window>"u"?e:`${e}${window.location.search}${window.location.hash}`}const w2=["Velocidade de carregamento abaixo do ideal","Meta tags de SEO incompletas","Checkout com etapas em excesso","Imagens de produto sem otimização","Concorrentes com melhor cobertura"],Yy=72;function Sf(r){const e=_e.c(46),{domain:t}=r,a=2*Math.PI*47;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.bg,color:N.ink,filter:"blur(9px)",fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",transform:"scale(1.025)"},e[0]=n):n=e[0];let i,o;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},o=T.jsx("img",{src:"/logos/deco-logo.svg",alt:"",width:54,height:22,className:"h-[22px] w-auto"}),e[1]=i,e[2]=o):(i=e[1],o=e[2]);let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("div",{className:"shrink-0 px-6 pt-6 sm:px-10",children:T.jsxs("div",{className:"mx-auto flex h-[60px] max-w-[1440px] items-center gap-3 rounded-full border pl-6 pr-4",style:i,children:[o,T.jsx("span",{className:"ml-auto flex h-9 w-24 items-center justify-center rounded-full text-sm font-medium",style:{background:N.primary,color:N.primaryFg},children:"Share"})]})}),e[3]=s):s=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},e[4]=l):l=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={borderBottom:`1px solid ${N.border}`},e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={border:`1px solid ${N.border}`},e[6]=c):c=e[6];let f;e[7]!==t?(f=_f(t),e[7]=t,e[8]=f):f=e[8];let h;e[9]!==f?(h=T.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:c,children:T.jsx("img",{src:f,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=f,e[10]=h):h=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=v):v=e[11];let d;e[12]!==t?(d=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-base",children:[v,t]}),e[12]=t,e[13]=d):d=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=T.jsx("span",{className:"shrink-0 text-[11px] font-medium uppercase tracking-[0.04em]",style:{color:N.soft},children:"Relatório"}),e[14]=p):p=e[14];let g;e[15]!==d||e[16]!==h?(g=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-4",style:u,children:[h,d,p]}),e[15]=d,e[16]=h,e[17]=g):g=e[17];let m;e[18]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("svg",{width:104,height:104,className:"-rotate-90 shrink-0",children:[T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.border,strokeWidth:10}),T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.soft,strokeWidth:10,strokeLinecap:"round",strokeDasharray:a,strokeDashoffset:a*(1-Yy/100)})]}),e[18]=m):m=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=T.jsx("span",{className:"text-[4rem] font-light leading-[0.9] tracking-[-0.02em] tabular-nums",style:{color:N.soft},children:Yy}),e[19]=y):y=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsxs("div",{className:"flex items-baseline gap-2",children:[y,T.jsx("span",{className:"text-xl",style:{color:N.faint},children:"/ 100"})]}),e[20]=x):x=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=T.jsxs("div",{className:"mt-4 flex shrink-0 items-center gap-5",children:[m,T.jsxs("div",{className:"flex flex-col gap-0.5",children:[x,T.jsx("span",{className:"text-[12px] font-medium uppercase tracking-[0.04em]",style:{color:N.soft},children:"Deco Score"})]})]}),e[21]=_):_=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx("h1",{className:"mt-4 max-w-[24ch] text-[1.7rem] font-normal leading-[1.16] tracking-[-0.02em]",style:{color:N.ink},children:"Uma visão completa da sua loja e onde crescer primeiro."}),e[22]=b):b=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=T.jsx("ul",{className:"mt-auto flex flex-col pt-4",children:w2.map(hP)}),e[23]=S):S=e[23];let w;e[24]!==g?(w=T.jsxs("div",{className:"flex min-h-0 flex-col px-5 py-5",children:[g,_,b,S]}),e[24]=g,e[25]=w):w=e[25];let A;e[26]===Symbol.for("react.memo_cache_sentinel")?(A={background:"radial-gradient(circle at 18% 18%, rgba(208,236,26,.45), transparent 35%), radial-gradient(circle at 82% 30%, rgba(152,221,255,.7), transparent 34%), radial-gradient(circle at 60% 86%, rgba(255,183,214,.65), transparent 42%), #f7f5ef"},e[26]=A):A=e[26];let C;e[27]===Symbol.for("react.memo_cache_sentinel")?(C={borderColor:N.border},e[27]=C):C=e[27];let D,M,L,P;e[28]===Symbol.for("react.memo_cache_sentinel")?(D={borderColor:N.border},M=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff6b67]"}),L=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#f5c451]"}),P=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#65c466]"}),e[28]=D,e[29]=M,e[30]=L,e[31]=P):(D=e[28],M=e[29],L=e[30],P=e[31]);let k;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=T.jsxs("div",{className:"mb-3 flex items-center gap-2 border-b pb-3",style:D,children:[M,L,P,T.jsx("span",{className:"ml-3 h-6 flex-1 rounded-full",style:{background:N.bg}})]}),e[32]=k):k=e[32];let R;e[33]===Symbol.for("react.memo_cache_sentinel")?(R=T.jsxs("div",{className:"space-y-3 rounded-xl p-4",style:{background:N.forest},children:[T.jsx("div",{className:"h-3 w-16 rounded-full bg-white/30"}),T.jsx("div",{className:"h-8 w-full rounded-lg bg-white/80"}),T.jsx("div",{className:"h-3 w-4/5 rounded-full bg-white/30"}),T.jsx("div",{className:"mt-8 h-24 rounded-xl bg-white/10"})]}),e[33]=R):R=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("div",{className:"hidden lg:block",children:T.jsx("div",{className:"relative h-full w-full overflow-hidden rounded-2xl",style:A,children:T.jsxs("div",{className:"absolute inset-x-8 top-8 rounded-2xl border bg-white p-3 shadow-xl",style:C,children:[k,T.jsxs("div",{className:"grid h-[330px] grid-cols-[0.72fr_1.28fr] gap-3",children:[R,T.jsx("div",{className:"grid grid-cols-2 gap-3",children:[0,1,2,3].map(fP)})]})]})})}),e[34]=E):E=e[34];let O;e[35]!==w?(O=T.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1280px] flex-col overflow-hidden rounded-[26px]",style:l,children:T.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[w,E]})}),e[35]=w,e[36]=O):O=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx("div",{className:"absolute right-8 top-1/2 flex -translate-y-1/2 flex-col gap-1.5",children:[0,1,2,3,4,5].map(cP)}),e[37]=B):B=e[37];let V;e[38]!==O?(V=T.jsxs("div",{className:"relative min-h-0 flex-1 px-6 py-8 sm:px-10",children:[O,B]}),e[38]=O,e[39]=V):V=e[39];let F;e[40]===Symbol.for("react.memo_cache_sentinel")?(F={borderTop:`1px solid ${N.border}`},e[40]=F):F=e[40];let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=T.jsx("span",{className:"text-sm tabular-nums opacity-50",style:{color:N.ink},children:"01/06"}),e[41]=G):G=e[41];let U;e[42]===Symbol.for("react.memo_cache_sentinel")?(U=T.jsx("span",{className:"flex h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:"Compartilhar"}),e[42]=U):U=e[42];let X;e[43]===Symbol.for("react.memo_cache_sentinel")?(X=T.jsxs("footer",{className:"flex shrink-0 items-center gap-2 px-6 py-4 sm:px-10",style:F,children:[G,T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[U,T.jsx("span",{className:"flex h-12 items-center rounded-full px-6 text-sm font-medium",style:{background:N.primary,color:N.primaryFg},children:"Próximo"})]})]}),e[43]=X):X=e[43];let Z;return e[44]!==V?(Z=T.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-[-18px] flex select-none flex-col overflow-hidden",style:n,children:[s,V,X]}),e[44]=V,e[45]=Z):Z=e[45],Z}function cP(r){return T.jsx("span",{className:"rounded-full",style:{height:r===0?3:2,width:r===0?28:12,background:r===0?N.ink:"rgba(40,37,36,0.22)"}},r)}function fP(r){return T.jsxs("div",{className:"rounded-xl border bg-white p-3",style:{borderColor:N.border},children:[T.jsx("div",{className:"h-24 rounded-lg",style:{background:N.bg}}),T.jsx("div",{className:"mt-3 h-3 w-4/5 rounded-full",style:{background:N.border}}),T.jsx("div",{className:"mt-2 h-3 w-1/2 rounded-full",style:{background:N.border}})]},r)}function hP(r,e){return T.jsx("li",{style:e<w2.length-1?{borderBottom:`1px solid ${N.border}`}:void 0,children:T.jsxs("div",{className:"flex w-full items-center gap-3.5 py-2.5",children:[T.jsx("span",{className:"shrink-0 text-[12px] tabular-nums",style:{color:N.soft},children:String(e+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[15px] opacity-55",style:{color:N.ink,lineHeight:1.3},children:r})]})},r)}function wc(r){const e=_e.c(17),{domain:t,loading:a}=r,n=a===void 0?!1:a;let i;e[0]!==t?(i=d=>{const p="provider"in d?d.provider:void 0,g="mode"in d?d.mode:void 0,y={method:d.method==="social"?p??"social":d.method,provider:p,auth_mode:g},x=iP(t,y),_={domain:t,surface:"deck_v2",...Gd(x),...y};d.type==="started"?Ke("report_auth_started",_):d.type==="otp_sent"?Ke("report_auth_otp_sent",_):d.type==="otp_submitted"?Ke("report_auth_otp_submitted",_):d.type==="failed"&&Ke("report_auth_failed",{..._,failure_stage:d.stage,error_type:sP(d.error)})},e[0]=t,e[1]=i):i=e[1];const o=i;let s;e[2]!==t||e[3]!==n?(s=d=>{if(!d||n)return;const p=S2(t);d.dataset.tracked==="true"||!on()||(d.dataset.tracked="true",Ke("report_auth_gate_shown",{domain:t,surface:"deck_v2",...Gd(p)}))},e[2]=t,e[3]=n,e[4]=s):s=e[4];const l=s;let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[5]=u):u=e[5];let c;e[6]!==t?(c=T.jsx(Sf,{domain:t}),e[6]=t,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/55"}),e[8]=f):f=e[8];let h;e[9]!==t||e[10]!==o||e[11]!==n?(h=T.jsx("div",{className:"relative z-10 flex h-full items-center justify-center px-3 py-5 sm:px-6 sm:py-10",children:n?T.jsx("div",{className:"h-[330px] w-full max-w-[440px] animate-pulse rounded-3xl bg-white card-shadow","aria-label":"Carregando sessão"}):T.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":"Acesse seu relatório",className:"w-full max-w-[440px] rounded-2xl bg-white px-6 py-6 card-shadow sm:rounded-3xl sm:px-8 sm:py-8",children:[T.jsx(yL,{callbackUrl:uP(t),title:"Acesse seu relatório",subtitle:"Entre ou crie sua conta para ver a análise completa.",variant:"compact",allowedSocialProviders:["google"],allowPassword:!1,onAuthEvent:o,brand:T.jsxs("div",{className:"flex items-center justify-between gap-4",children:[T.jsxs("div",{className:"inline-flex min-w-0 items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:N.bg},children:[T.jsx("img",{src:_f(t),alt:"",className:"h-4 w-4 shrink-0 rounded object-contain"}),T.jsx("span",{className:"truncate text-[13px]",style:{color:N.muted},children:t})]}),T.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 shrink-0"})]}),copy:lP}),T.jsx("p",{className:"mt-4 text-xs leading-5",style:{color:N.faint},children:"Acesso gratuito. Leva menos de um minuto."}),T.jsx(m2,{compact:!0})]})}),e[9]=t,e[10]=o,e[11]=n,e[12]=h):h=e[12];let v;return e[13]!==c||e[14]!==h||e[15]!==l?(v=T.jsxs("div",{ref:l,className:"fixed inset-0 overflow-hidden",style:u,children:[c,f,h]}),e[13]=c,e[14]=h,e[15]=l,e[16]=v):v=e[16],v}const Xy=4e3,vP=180;function ec(r,e){for(const t of e??[])Ke("report_slide_dropped",{domain:r,section_type:t.section_type,position:t.position,reason:t.reason,surface:"deck_v2"})}const Ng=r=>`report:pending:${r}`,dP=r=>{try{return JSON.parse(localStorage.getItem(Ng(r))??"null")}catch{return null}},pP=r=>{try{localStorage.setItem(Ng(r),JSON.stringify({startedAt:Date.now()}))}catch{}},Ni=r=>{try{localStorage.removeItem(Ng(r))}catch{}};async function gP(r,e,t,a){try{Ke("report_scan_triggered",{domain:r,surface:"deck_v2"});const n=await UL({domain:r,distinctId:e});if(t.aborted)return;if(n.state==="blocked")return Ni(r),Ke("report_scan_failed",{domain:r,phase:"blocked",reason:"blocked",surface:"deck_v2"}),a.onPhase("blocked");const i=n.state==="running"?n.id:null;n.state==="running"&&(a.onPhase("pending"),Ke("report_pending_screen_shown",{domain:r,surface:"deck_v2"}),pP(r));for(let o=0;o<vP&&!t.aborted;o++){const s=await Fd(r);if(t.aborted)return;if(s.status==="ready"&&s.deck)return Ni(r),ec(r,s.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(s.deck);if(i){const l=await YL(i);if(t.aborted)return;if(l.done){await $y(Xy,{signal:t});const u=await Fd(r);return t.aborted?void 0:u.status==="ready"&&u.deck?(Ni(r),ec(r,u.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(u.deck)):(ec(r,u.drops),Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"run_finished_empty",surface:"deck_v2"}),a.onPhase("empty"))}}await $y(Xy,{signal:t})}t.aborted||(Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"poll_timeout",surface:"deck_v2"}),a.onPhase("empty"))}catch(n){if(!t.aborted){Ni(r);const i=Eg(n);Ke("report_scan_failed",{domain:r,phase:i?"unauthorized":"error",reason:i?"unauthorized":"exception",surface:"deck_v2"}),a.onPhase(i?"unauthorized":"error")}}}const mP={share:OL,arrow_forward:TL,arrow_upward:bL,arrow_downward:_L,info:NL,warning:vL,flag:EL,lock:hL,link:wL,leaderboard:RL,checklist:kL,notifications_active:PL,package_2:VL,check_circle:BL,cancel:SL,error:xL,trending_up:LL,trending_down:IL,bolt:jL,search:FL,shopping_cart:ML,monitoring:DL,accessibility_new:zL,shield:GL,article:AL,smart_toy:HL,bar_chart:CL},yP={xs:12,small:14,medium:16,large:18,xl:20,xxl:32,40:40,immense:80};function dt(r){const e=_e.c(4),{name:t,size:a,class:n}=r,i=a===void 0?"medium":a,o=n===void 0?"":n,s=mP[t];if(!s)return null;const l=yP[i];let u;return e[0]!==s||e[1]!==o||e[2]!==l?(u=T.jsx(s,{size:l,className:o}),e[0]=s,e[1]=o,e[2]=l,e[3]=u):u=e[3],u}function T2(r){return`/commerce-onboarding?siteUrl=${encodeURIComponent(r)}`}function wf(r,e){Ke("report_cta_clicked",{domain:e.domain,placement:e.placement,destination:"studio_onboarding",...e.slideKey!==void 0?{slide_key:e.slideKey}:{},...e.slideIndex!==void 0?{slide_index:e.slideIndex}:{},surface:"deck_v2"},{transport:"sendBeacon"})}const Ee=r=>`https://www.google.com/s2/favicons?domain=${r}&sz=64`,xP={"google analytics 4":Ee("analytics.google.com"),ga4:Ee("analytics.google.com"),"google analytics":Ee("analytics.google.com"),"google search console":Ee("search.google.com"),"search console":Ee("search.google.com"),gsc:Ee("search.google.com"),"gsc url inspection":Ee("search.google.com"),"google tag manager":Ee("tagmanager.google.com"),gtm:Ee("tagmanager.google.com"),"google ads":Ee("ads.google.com"),"keyword planner":Ee("ads.google.com"),"merchant center":Ee("merchants.google.com"),"google merchant center":Ee("merchants.google.com"),"pagespeed insights":Ee("pagespeed.web.dev"),psi:Ee("pagespeed.web.dev"),lighthouse:Ee("developer.chrome.com"),"chrome ux report":Ee("developer.chrome.com"),crux:Ee("developer.chrome.com"),"chrome devtools":Ee("developer.chrome.com"),webpagetest:Ee("webpagetest.org"),semrush:Ee("semrush.com"),similarweb:Ee("similarweb.com"),ahrefs:Ee("ahrefs.com"),moz:Ee("moz.com"),"screaming frog":Ee("screamingfrog.co.uk"),builtwith:Ee("builtwith.com"),microlink:Ee("microlink.io"),apify:Ee("apify.com"),firecrawl:Ee("firecrawl.dev"),"reclame aqui":Ee("reclameaqui.com.br"),instagram:Ee("instagram.com"),meta:Ee("meta.com"),"meta business manager":Ee("business.facebook.com"),vtex:Ee("vtex.com"),"vtex oms":Ee("vtex.com"),shopify:Ee("shopify.com"),linx:Ee("linx.com.br"),wake:Ee("wake.com")};function Zy(r,e){return e||(xP[r.toLowerCase().trim()]??"")}function rr(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,active:i}=r;let o;if(e[0]!==a){let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=/\s*\n\s*/g,e[2]=p):p=e[2],o=a.replace(p," "),e[0]=a,e[1]=o}else o=e[1];const s=o,l=i?"true":"false";let u;e[3]!==t||e[4]!==l?(u=t&&T.jsx("p",{className:"reveal deck-eyebrow","data-show":l,children:t}),e[3]=t,e[4]=l,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==l||e[8]!==s?(f=T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.14] tracking-[-0.02em] text-[min(clamp(1.3125rem,4.8vw,2.5rem),2.9svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.25rem] lg:max-w-[20ch]","data-show":l,style:c,children:s}),e[7]=l,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==i||e[11]!==n||e[12]!==l?(h=n&&T.jsx("p",{className:"reveal max-w-[44ch] shrink-0 text-[min(13px,1.9svh)] leading-snug sm:pt-1 sm:text-[14px] sm:leading-relaxed","data-show":l,style:{color:N.muted,transitionDelay:i?"90ms":"0ms"},children:n}),e[10]=i,e[11]=n,e[12]=l,e[13]=h):h=e[13];let v;e[14]!==f||e[15]!==h?(v=T.jsxs("div",{className:"flex flex-col gap-[min(0.625rem,1svh)] sm:flex-row sm:items-start sm:justify-between sm:gap-12",children:[f,h]}),e[14]=f,e[15]=h,e[16]=v):v=e[16];let d;return e[17]!==u||e[18]!==v?(d=T.jsxs("header",{className:"flex shrink-0 flex-col gap-[min(0.625rem,1svh)] px-5 pt-2 sm:gap-3 sm:px-10 lg:px-16",children:[u,v]}),e[17]=u,e[18]=v,e[19]=d):d=e[19],d}const vh=18;function _P(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(1rem,1.9svh)] sm:gap-4":"gap-[min(1.625rem,2.8svh)] sm:gap-9";let c;e[5]!==u?(c=qe("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=at[p.tone??"neutral"],y=Math.max(1,Math.min(vh,Math.round(p.ratio*vh)));return T.jsxs("div",{className:qe("reveal flex flex-col",s?"gap-1.5":"gap-2 sm:gap-2.5"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[T.jsx("span",{className:qe("min-w-0 flex-1 tracking-[-0.01em]",s?"line-clamp-2 break-words text-sm leading-snug sm:text-base":"truncate text-sm sm:text-base"),style:{color:N.muted},children:p.label}),T.jsx("span",{className:qe("shrink-0 font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.375rem,3.5vw,1.75rem),3svh)]":"text-[min(clamp(1.5rem,4.5vw,2.5rem),3.4svh)] sm:text-[clamp(1.5rem,3vw,2.5rem)]"),style:{color:m},children:p.value})]}),T.jsx("div",{className:"flex gap-[3px]",children:Array.from({length:vh},(x,_)=>T.jsx("span",{className:qe("flex-1 rounded-[2px]",s?"h-2.5 sm:h-3":"h-3 sm:h-3.5"),style:{background:o&&_<y?m:"rgba(40,37,36,0.08)",transition:"background-color 240ms ease",transitionDelay:o&&_<y?`${180+g*90+_*24}ms`:"0ms"}},_))})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}const bP={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},warn:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},jd=33,dh=2*Math.PI*jd;function SP(r){const e=r?.match(/^(.*?)\s*\((.+)\)$/);return e?{band:e[1]??"",count:e[2]}:{band:r??""}}function wP(r){const e=_e.c(15),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o?(f=(h,v)=>{const d=bP[h.status],p=Math.min(1,Math.max(0,h.ratio??0)),{band:g,count:m}=SP(h.caption);return T.jsxs("div",{className:"reveal flex flex-col items-center rounded-2xl px-2 py-[min(0.875rem,1.6svh)] text-center sm:px-4 sm:py-5","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?`${100+v*80}ms`:"0ms"},children:[T.jsxs("div",{className:"relative h-[min(4.25rem,9svh)] w-[min(4.25rem,9svh)] sm:h-20 sm:w-20",children:[T.jsxs("svg",{viewBox:"0 0 80 80",className:"h-full w-full -rotate-90",children:[T.jsx("circle",{cx:"40",cy:"40",r:jd,fill:"none",stroke:d.tint,strokeWidth:"7"}),T.jsx("circle",{cx:"40",cy:"40",r:jd,fill:"none",stroke:d.color,strokeWidth:"7",strokeLinecap:"round",strokeDasharray:dh,strokeDashoffset:o?dh*(1-p):dh,className:"transition-[stroke-dashoffset] duration-1000 ease-out",style:{transitionDelay:o?`${200+v*80}ms`:"0ms"}})]}),T.jsx("span",{className:"absolute inset-0 flex items-center justify-center font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.375rem,3svh)] sm:text-2xl",style:{color:d.color},children:h.value})]}),T.jsx("span",{className:"mt-[min(0.5rem,1svh)] line-clamp-2 text-[13px] font-medium leading-tight sm:mt-2.5 sm:text-sm",style:{color:N.ink},children:h.label}),T.jsx("span",{className:"mt-1.5 inline-block rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:{color:d.color,background:d.tint},children:g}),m&&T.jsx("span",{className:"mt-1 hidden text-[11px] sm:block",style:{color:N.muted,opacity:.8},children:m})]},v)},e[8]=o,e[9]=f):f=e[9],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[10]!==l?(u=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.8svh)] sm:px-10 sm:py-4 lg:px-16",children:T.jsx("div",{className:"my-auto grid w-full grid-cols-2 gap-2.5 sm:grid-cols-3 sm:gap-4",children:l})}),e[10]=l,e[11]=u):u=e[11];let c;return e[12]!==s||e[13]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[12]=s,e[13]=u,e[14]=c):c=e[14],c}const qy={pass:{color:at.good,icon:"check_circle"},fail:{color:at.bad,icon:"cancel"},warn:{color:N.warn,icon:"error"}};function TP(r){const e=_e.c(16),{eyebrow:t,headline:a,annotation:n,checks:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o||e[9]!==i.length?(f=(h,v)=>{const d=qy[h.status]??qy.fail;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(0.875rem,1.5svh)] sm:py-4","data-show":o?"true":"false",style:{...v<i.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:o?`${60+v*55}ms`:"0ms"},children:[T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:d.color},children:T.jsx(dt,{name:d.icon,size:"large"})}),T.jsx("span",{className:"min-w-0 flex-[2] text-[15px] leading-snug sm:text-lg",style:{color:N.ink},children:h.label}),h.value&&T.jsx("span",{className:"min-w-0 flex-1 truncate text-right text-[13px] font-medium tabular-nums sm:text-base",style:{color:d.color},title:h.value,children:h.value})]},v)},e[8]=o,e[9]=i.length,e[10]=f):f=e[10],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[11]!==l?(u=T.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 sm:px-10 lg:px-16",children:T.jsx("div",{className:"flex min-h-full flex-col justify-center py-3",children:T.jsx("ul",{className:"w-full",children:l})})}),e[11]=l,e[12]=u):u=e[12];let c;return e[13]!==s||e[14]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[13]=s,e[14]=u,e[15]=c):c=e[15],c}function Og(r){return T2(`https://${r}/`)}function CP(r){const e=r.trim().replace(/^https?:\/\//,"").split("/")[0]??"";return/\./.test(e)?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`:null}function AP(r){const e=_e.c(5),{initial:t,faviconUrl:a}=r,[n,i]=Ne.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:`1px solid ${N.border}`,boxShadow:"0 1px 1px rgba(40,37,36,0.04),0 3px 9px rgba(40,37,36,0.04),0 6px 18px rgba(40,37,36,0.02)"},e[0]=o):o=e[0];let s;return e[1]!==n||e[2]!==a||e[3]!==t?(s=T.jsx("span",{className:"grid size-9 shrink-0 place-items-center overflow-hidden rounded-[10px] bg-white sm:size-10",style:o,children:a&&!n?T.jsx("img",{src:a,alt:"",className:"h-full w-full object-contain p-2",onError:()=>i(!0)}):T.jsx("span",{className:"text-lg font-medium",style:{color:N.muted},children:t})}),e[1]=n,e[2]=a,e[3]=t,e[4]=s):s=e[4],s}function DP(r){const e=_e.c(34),{eyebrow:t,headline:a,annotation:n,metricLabel:i,competitors:o,faviconUrl:s,domain:l,active:u}=r,c=Og(l);let f;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=f):f=e[4];let h,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.muted},v=T.jsx("span",{className:"flex-1",children:"Concorrente"}),e[5]=h,e[6]=v):(h=e[5],v=e[6]);let d;e[7]!==i?(d=i&&T.jsx("span",{children:i}),e[7]=i,e[8]=d):d=e[8];let p;e[9]!==d?(p=T.jsxs("div",{className:"flex items-center gap-3 px-4 pb-2 text-[11px] font-medium uppercase tracking-[0.04em]",style:h,children:[v,d]}),e[9]=d,e[10]=p):p=e[10];let g;if(e[11]!==u||e[12]!==o||e[13]!==s){let A;e[15]!==u||e[16]!==s?(A=(C,D)=>{const M=C.isYou?N.muted:at[C.tone??"neutral"];return T.jsxs("li",{className:"reveal flex items-center gap-3 rounded-xl px-3 py-[min(0.5rem,1svh)]","data-show":u?"true":"false",style:{...C.isYou?{background:N.surface,border:`1px solid ${N.border}`}:{},transitionDelay:u?`${60+D*60}ms`:"0ms"},children:[T.jsx(AP,{initial:(C.name[0]??"?").toUpperCase(),faviconUrl:C.isYou?s:CP(C.name)}),T.jsx("span",{className:"flex-1 truncate text-[15px] sm:text-lg",style:{color:N.ink},children:C.name}),T.jsx("span",{className:"shrink-0 text-lg font-light tabular-nums tracking-[-0.02em] sm:text-2xl",style:{color:M},children:C.value})]},D)},e[15]=u,e[16]=s,e[17]=A):A=e[17],g=o.map(A),e[11]=u,e[12]=o,e[13]=s,e[14]=g}else g=e[14];let m;e[18]!==g?(m=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:T.jsx("ul",{className:"my-auto flex flex-col gap-[min(0.375rem,0.8svh)] py-1",children:g})}),e[18]=g,e[19]=m):m=e[19];const y=c.startsWith("http")?"_blank":"_self";let x;e[20]!==l?(x=A=>wf(A,{domain:l,placement:"competitor_slide_edit"}),e[20]=l,e[21]=x):x=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[22]=_):_=e[22];let b;e[23]!==c||e[24]!==y||e[25]!==x?(b=T.jsx("div",{className:"flex shrink-0 justify-center py-[min(1rem,2.4svh)] sm:py-5",children:T.jsx("a",{href:c,target:y,rel:"noopener noreferrer",onClick:x,className:"inline-flex h-11 items-center rounded-full border px-7 text-[15px] font-medium transition-colors hover:bg-black/[0.03] sm:h-12 sm:px-8 sm:text-base",style:_,children:"Editar meus concorrentes"})}),e[23]=c,e[24]=y,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==b||e[28]!==p||e[29]!==m?(S=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-4 sm:px-10 lg:px-16",children:[p,m,b]}),e[27]=b,e[28]=p,e[29]=m,e[30]=S):S=e[30];let w;return e[31]!==f||e[32]!==S?(w=T.jsxs("div",{className:"flex h-full flex-col",children:[f,S]}),e[31]=f,e[32]=S,e[33]=w):w=e[33],w}function Ky(r){const e=_e.c(10),{url:t,initial:a,size:n}=r,[i,o]=Ne.useState(!1);let s;e[0]!==n?(s={width:n,height:n,borderColor:N.border},e[0]=n,e[1]=s):s=e[1];let l;e[2]!==i||e[3]!==a||e[4]!==n||e[5]!==t?(l=i?T.jsx("span",{className:"font-medium",style:{fontSize:n*.42,color:N.muted},children:a}):T.jsx("img",{src:t,alt:"",width:n,height:n,className:"h-full w-full object-contain p-1.5",onError:()=>o(!0)}),e[2]=i,e[3]=a,e[4]=n,e[5]=t,e[6]=l):l=e[6];let u;return e[7]!==s||e[8]!==l?(u=T.jsx("span",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl border bg-white",style:s,children:l}),e[7]=s,e[8]=l,e[9]=u):u=e[9],u}function Jy(r){const e=_e.c(36),{domain:t,faviconUrl:a,initial:n,desktopShot:i,mobileShot:o,hidePhone:s}=r,l=s===void 0?!1:s,[u,c]=Ne.useState(i?"loading":"fail"),[f,h]=Ne.useState(o?"loading":"fail"),v=!l&&"pb-10 pl-8";let d;e[0]!==v?(d=qe("relative w-full max-w-[560px]",v),e[0]=v,e[1]=d):d=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.05), 0 28px 56px -22px rgba(40,37,36,0.30)"},e[2]=p):p=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g={background:"#f4f2ec",borderBottom:`1px solid ${N.border}`},e[3]=g):g=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("span",{className:"flex gap-1.5",children:[T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"})]}),e[4]=m):m=e[4];let y,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={background:"#fff"},x=T.jsx(dt,{name:"lock",size:"xs",class:"opacity-50"}),e[5]=y,e[6]=x):(y=e[5],x=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},e[7]=_):_=e[7];let b;e[8]!==t?(b=T.jsxs("div",{className:"flex h-9 items-center gap-2 px-4",style:g,children:[m,T.jsxs("span",{className:"mx-2 flex h-5 flex-1 items-center gap-2 rounded-md px-2.5",style:y,children:[x,T.jsx("span",{className:"truncate text-xs",style:_,children:t})]})]}),e[8]=t,e[9]=b):b=e[9];let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S={background:"#f4f2ec"},e[10]=S):S=e[10];let w;e[11]!==u||e[12]!==a||e[13]!==n?(w=u!=="ok"&&T.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 animate-pulse",children:[T.jsx(Ky,{url:a,initial:n,size:44}),T.jsx("span",{className:"text-xs",style:{color:N.muted},children:u==="loading"?"capturing preview…":"preview unavailable"})]}),e[11]=u,e[12]=a,e[13]=n,e[14]=w):w=e[14];let A;e[15]!==i||e[16]!==t||e[17]!==u?(A=i&&T.jsx("img",{src:i,alt:`${t} homepage`,className:qe("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",u==="ok"?"opacity-100":"opacity-0"),onLoad:()=>c("ok"),onError:()=>c("fail"),loading:"eager"}),e[15]=i,e[16]=t,e[17]=u,e[18]=A):A=e[18];let C;e[19]!==w||e[20]!==A?(C=T.jsxs("div",{className:"relative aspect-[4/3]",style:S,children:[w,A]}),e[19]=w,e[20]=A,e[21]=C):C=e[21];let D;e[22]!==b||e[23]!==C?(D=T.jsxs("div",{className:"overflow-hidden rounded-2xl bg-white",style:p,children:[b,C]}),e[22]=b,e[23]=C,e[24]=D):D=e[24];let M;e[25]!==t||e[26]!==a||e[27]!==l||e[28]!==n||e[29]!==o||e[30]!==f?(M=!l&&f!=="fail"&&T.jsx("div",{className:"absolute bottom-0 left-0 w-[26%] max-w-[136px]",children:T.jsxs("div",{className:"rounded-[1.5rem] p-1.5",style:{background:"#fff",boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.06), 0 18px 36px -16px rgba(40,37,36,0.36)"},children:[T.jsx("div",{className:"flex h-5 items-center justify-center",children:T.jsx("span",{className:"h-1.5 w-9 rounded-full bg-black/15"})}),T.jsxs("div",{className:"relative aspect-[9/19] overflow-hidden rounded-[1.05rem]",style:{background:"#f4f2ec"},children:[f!=="ok"&&T.jsx("div",{className:"absolute inset-0 flex items-center justify-center animate-pulse",children:T.jsx(Ky,{url:a,initial:n,size:26})}),o&&T.jsx("img",{src:o,alt:`${t} mobile`,className:qe("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",f==="ok"?"opacity-100":"opacity-0"),style:{transform:"scale(1.14) translateY(-6%)",transformOrigin:"50% 0%"},onLoad:()=>h("ok"),onError:()=>h("fail"),loading:"eager"})]})]})}),e[25]=t,e[26]=a,e[27]=l,e[28]=n,e[29]=o,e[30]=f,e[31]=M):M=e[31];let L;return e[32]!==D||e[33]!==M||e[34]!==d?(L=T.jsxs("div",{className:d,children:[D,M]}),e[32]=D,e[33]=M,e[34]=d,e[35]=L):L=e[35],L}function C2(r){return r>=61?at.good:r>=41?N.warn:at.bad}const MP="A composite score from 0–100 measuring your store's commerce performance across page speed, SEO signals, conversion experience, and technical health. Higher is better.";function Qy(r){const e=_e.c(54),{score:t,active:a,compact:n}=r,[i,o]=Ne.useState(0);let s;e[0]!==t.value?(s=C2(t.value),e[0]=t.value,e[1]=s):s=e[1];const l=s,u=n?66:104,c=n?7:10,[f,h]=Ne.useState(!1),v=Ne.useRef(null);let d;e[2]!==a||e[3]!==t.value?(d=W=>{if(!W||!a)return;const j=t.value;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){o(j);return}let K=0,Se=0;const ye=we=>{Se||(Se=we);const ve=Math.min(1,(we-Se)/1100);o(j*(1-(1-ve)**3)),ve<1&&(K=requestAnimationFrame(ye))};return K=requestAnimationFrame(ye),()=>cancelAnimationFrame(K)},e[2]=a,e[3]=t.value,e[4]=d):d=e[4];const p=d;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=W=>{if(!W)return;const j=K=>{v.current&&!v.current.contains(K.target)&&h(!1)};return document.addEventListener("mousedown",j),document.addEventListener("touchstart",j),()=>{document.removeEventListener("mousedown",j),document.removeEventListener("touchstart",j)}},e[5]=g):g=e[5];const m=g,y=Math.min(100,Math.max(0,i)),x=(u-c)/2,_=2*Math.PI*x,b=u/2,S=u/2;let w;e[6]!==x||e[7]!==c||e[8]!==b||e[9]!==S?(w=T.jsx("circle",{cx:b,cy:S,r:x,fill:"none",stroke:N.border,strokeWidth:c}),e[6]=x,e[7]=c,e[8]=b,e[9]=S,e[10]=w):w=e[10];const A=u/2,C=u/2,D=_*(1-y/100);let M;e[11]!==_||e[12]!==x||e[13]!==c||e[14]!==A||e[15]!==C||e[16]!==D||e[17]!==l?(M=T.jsx("circle",{cx:A,cy:C,r:x,fill:"none",stroke:l,strokeWidth:c,strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:D}),e[11]=_,e[12]=x,e[13]=c,e[14]=A,e[15]=C,e[16]=D,e[17]=l,e[18]=M):M=e[18];let L;e[19]!==u||e[20]!==M||e[21]!==w?(L=T.jsxs("svg",{width:u,height:u,className:"-rotate-90 shrink-0",children:[w,M]}),e[19]=u,e[20]=M,e[21]=w,e[22]=L):L=e[22];let P;e[23]!==l?(P={color:l},e[23]=l,e[24]=P):P=e[24];let k;e[25]!==i?(k=Math.round(i),e[25]=i,e[26]=k):k=e[26];let R;e[27]!==P||e[28]!==k?(R=T.jsx("span",{className:"font-light leading-[0.9] tracking-[-0.02em] tabular-nums text-[2.4rem] lg:text-[4rem]",style:P,children:k}),e[27]=P,e[28]=k,e[29]=R):R=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("span",{className:"text-sm lg:text-xl",style:{color:N.faint},children:"/ 100"}),e[30]=E):E=e[30];let O;e[31]!==R?(O=T.jsxs("div",{className:"flex items-baseline gap-2",children:[R,E]}),e[31]=R,e[32]=O):O=e[32];let B;e[33]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.04em] lg:text-[12px]",style:{color:N.soft},children:"Deco Score"}),e[33]=B):B=e[33];const V=f?.8:.45;let F;e[34]!==V?(F={opacity:V},e[34]=V,e[35]=F):F=e[35];let G,U,X,Z;e[36]===Symbol.for("react.memo_cache_sentinel")?(G=()=>h(!0),U=()=>h(!1),X=()=>h(IP),Z=T.jsx(dt,{name:"info",size:"medium",class:""}),e[36]=G,e[37]=U,e[38]=X,e[39]=Z):(G=e[36],U=e[37],X=e[38],Z=e[39]);let Q;e[40]!==F?(Q=T.jsx("button",{type:"button","aria-label":"What is the Deco Score?",className:"flex items-center justify-center rounded-full transition-opacity",style:F,onMouseEnter:G,onMouseLeave:U,onClick:X,children:Z}),e[40]=F,e[41]=Q):Q=e[41];let pe;e[42]!==f?(pe=f&&T.jsx("div",{ref:m,className:"absolute left-0 top-full z-50 mt-2 w-72 rounded-xl px-4 py-3.5 text-sm leading-[1.6] shadow-xl",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.ink,boxShadow:"0 4px 6px rgba(40,37,36,0.06), 0 12px 32px rgba(40,37,36,0.12)"},children:MP}),e[42]=f,e[43]=pe):pe=e[43];let ce;e[44]!==Q||e[45]!==pe?(ce=T.jsxs("div",{ref:v,className:"relative flex items-center gap-1",children:[B,Q,pe]}),e[44]=Q,e[45]=pe,e[46]=ce):ce=e[46];let ne;e[47]!==O||e[48]!==ce?(ne=T.jsxs("div",{className:"flex flex-col gap-0.5",children:[O,ce]}),e[47]=O,e[48]=ce,e[49]=ne):ne=e[49];let te;return e[50]!==p||e[51]!==L||e[52]!==ne?(te=T.jsxs("div",{ref:p,className:"flex shrink-0 items-center gap-3.5 lg:gap-5",children:[L,ne]}),e[50]=p,e[51]=L,e[52]=ne,e[53]=te):te=e[53],te}function IP(r){return!r}function e0(r){const e=_e.c(20),{deviceCluster:t,className:a,innerClassName:n,padClassName:i,alignClassName:o}=r,s=a===void 0?"":a,l=n===void 0?"max-w-[520px]":n,u=i===void 0?"p-4 sm:p-6":i,c=o===void 0?"items-center":o;let f;e[0]!==s?(f=qe("deco-art relative overflow-hidden",s),e[0]=s,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"holo-art-base absolute inset-0 z-0","aria-hidden":!0}),e[2]=h):h=e[2];let v;e[3]!==c||e[4]!==u?(v=qe("relative z-10 flex h-full w-full justify-center",c,u),e[3]=c,e[4]=u,e[5]=v):v=e[5];let d;e[6]!==l?(d=qe("w-full",l),e[6]=l,e[7]=d):d=e[7];let p;e[8]!==t||e[9]!==d?(p=T.jsx("div",{className:d,children:t}),e[8]=t,e[9]=d,e[10]=p):p=e[10];let g;e[11]!==v||e[12]!==p?(g=T.jsx("div",{className:v,children:p}),e[11]=v,e[12]=p,e[13]=g):g=e[13];let m,y,x;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("div",{className:"holo-artfoil pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),y=T.jsx("div",{className:"holo-sparkle pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),x=T.jsx("div",{className:"holo-artglare pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),e[14]=m,e[15]=y,e[16]=x):(m=e[14],y=e[15],x=e[16]);let _;return e[17]!==g||e[18]!==f?(_=T.jsxs("div",{className:f,children:[h,g,m,y,x]}),e[17]=g,e[18]=f,e[19]=_):_=e[19],_}function LP(r){const e=_e.c(73),{headline:t,score:a,screenshot:n,mobileScreenshot:i,faviconUrl:o,domain:s,initial:l,active:u,findings:c,onFindingClick:f}=r,h=u===void 0?!1:u,[v,d]=Ne.useState(h),[p,g]=Ne.useState(h?1:0);h!==v&&(d(h),h&&g(PP));const m=Ne.useRef(null),y=Ne.useRef(0);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={rx:0,ry:0,trx:0,tryy:0,hovering:!1},e[0]=x):x=e[0];const _=Ne.useRef(x);let b;if(e[1]===Symbol.for("react.memo_cache_sentinel")){const ft=()=>{const ht=m.current,vt=_.current;if(!ht){y.current=0;return}vt.rx=vt.rx+(vt.trx-vt.rx)*.12,vt.ry=vt.ry+(vt.tryy-vt.ry)*.12,ht.style.setProperty("--rx",`${vt.rx.toFixed(3)}deg`),ht.style.setProperty("--ry",`${vt.ry.toFixed(3)}deg`);const Zo=Math.abs(vt.trx-vt.rx)<.02&&Math.abs(vt.tryy-vt.ry)<.02;vt.hovering||!Zo?y.current=requestAnimationFrame(ft):y.current=0};b=()=>{y.current||(y.current=requestAnimationFrame(ft))},e[1]=b}else b=e[1];const S=b;let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=ft=>{const ht=m.current;if(!ht)return;const vt=ht.getBoundingClientRect(),Zo=(ft.clientX-vt.left)/vt.width,fh=(ft.clientY-vt.top)/vt.height,hh=_.current;hh.hovering=!0,hh.trx=(.5-fh)*28,hh.tryy=(Zo-.5)*28,ht.style.setProperty("--mx",`${(Zo*100).toFixed(1)}%`),ht.style.setProperty("--my",`${(fh*100).toFixed(1)}%`),ht.style.setProperty("--posx",`${(20+Zo*60).toFixed(1)}%`),ht.style.setProperty("--posy",`${(20+fh*60).toFixed(1)}%`),ht.style.setProperty("--active","1"),S()},e[2]=w):w=e[2];const A=w;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const ft=m.current;if(!ft)return;const ht=_.current;ht.hovering=!1,ht.trx=0,ht.tryy=0,ft.style.setProperty("--mx","50%"),ft.style.setProperty("--my","50%"),ft.style.setProperty("--posx","50%"),ft.style.setProperty("--posy","50%"),ft.style.setProperty("--active","0"),S()},e[3]=C):C=e[3];const D=C;let M;e[4]===Symbol.for("react.memo_cache_sentinel")?(M=ft=>(m.current=ft,()=>cancelAnimationFrame(y.current)),e[4]=M):M=e[4];const L=M;let P;e[5]!==a?(P=a?C2(a.value):N.ink,e[5]=a,e[6]=P):P=e[6];const k=P;let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R={borderBottom:`1px solid ${N.border}`},e[7]=R):R=e[7];let E;e[8]===Symbol.for("react.memo_cache_sentinel")?(E={width:40,height:40,border:`1px solid ${N.border}`,boxShadow:"0 0.714px 0.714px rgba(0,0,0,0.04),0 4.286px 17.143px rgba(0,0,0,0.01),0 6.429px 34.286px rgba(0,0,0,0.09)"},e[8]=E):E=e[8];let O;e[9]!==o?(O=T.jsx("div",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:E,children:T.jsx("img",{src:o,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=o,e[10]=O):O=e[10];let B,V;e[11]===Symbol.for("react.memo_cache_sentinel")?(B={color:N.ink},V=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=B,e[12]=V):(B=e[11],V=e[12]);let F;e[13]!==s?(F=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm lg:text-base",style:B,children:[V,s]}),e[13]=s,e[14]=F):F=e[14];let G;e[15]===Symbol.for("react.memo_cache_sentinel")?(G=T.jsx("span",{className:"shrink-0 text-[10px] font-medium uppercase tracking-[0.04em] lg:text-[11px]",style:{color:N.soft},children:"Relatório"}),e[15]=G):G=e[15];let U;e[16]!==O||e[17]!==F?(U=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-3.5 lg:gap-4 lg:pb-4",style:R,children:[O,F,G]}),e[16]=O,e[17]=F,e[18]=U):U=e[18];const X=U,Z=h&&p>0?"true":"false";let Q;e[19]!==k?(Q={"--tone":k},e[19]=k,e[20]=Q):Q=e[20];const pe=Q;let ce,ne,te,W;e[21]===Symbol.for("react.memo_cache_sentinel")?(ce={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},ne=T.jsx("div",{className:"holo-foil pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),te=T.jsx("div",{className:"holo-lines pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),W=T.jsx("div",{className:"holo-glare pointer-events-none absolute inset-0 z-40","aria-hidden":!0}),e[21]=ce,e[22]=ne,e[23]=te,e[24]=W):(ce=e[21],ne=e[22],te=e[23],W=e[24]);let j;e[25]===Symbol.for("react.memo_cache_sentinel")?(j=T.jsx("div",{className:"deco-sweep pointer-events-none absolute inset-0 z-50 overflow-hidden","aria-hidden":!0,children:T.jsx("span",{className:"holo-sweep-bar"})}),e[25]=j):j=e[25];let K;e[26]!==h||e[27]!==a?(K=a&&T.jsxs("div",{className:"mt-4 shrink-0 lg:mt-4",children:[T.jsx("div",{className:"lg:hidden",children:T.jsx(Qy,{score:a,active:h,compact:!0})}),T.jsx("div",{className:"hidden lg:block",children:T.jsx(Qy,{score:a,active:h})})]}),e[26]=h,e[27]=a,e[28]=K):K=e[28];const Se=h?"true":"false",ye=h?"140ms":"0ms";let we;e[29]!==ye?(we={color:N.ink,transitionDelay:ye},e[29]=ye,e[30]=we):we=e[30];let ve;e[31]!==t||e[32]!==Se||e[33]!==we?(ve=T.jsx("h1",{className:"reveal mt-3.5 text-balance text-[min(1.375rem,3svh)] font-normal leading-[1.16] tracking-[-0.02em] sm:text-2xl lg:mt-4 lg:text-[1.7rem]","data-show":Se,style:we,children:t}),e[31]=t,e[32]=Se,e[33]=we,e[34]=ve):ve=e[34];let Ve;e[35]!==h||e[36]!==c||e[37]!==f?(Ve=c&&c.length>0&&T.jsx("ul",{className:"holo-findings mt-4 flex min-h-0 shrink-0 flex-col overflow-y-auto pb-2 lg:mt-auto lg:shrink lg:pb-5 lg:pt-4",children:c.map((ft,ht)=>T.jsx("li",{className:qe("reveal",ht>=4&&"hidden lg:block"),"data-show":h?"true":"false",style:{...ht<c.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:h?`${240+ht*55}ms`:"0ms"},children:T.jsxs("button",{type:"button",onClick:()=>f?.(ft.slideKey),className:"group flex w-full items-center gap-3 py-2 transition-colors hover:bg-black/[0.03] active:bg-black/[0.06] lg:gap-3.5 lg:py-2.5",style:{cursor:f?"pointer":"default"},children:[T.jsx("span",{className:"shrink-0 text-[11px] tabular-nums lg:text-[12px]",style:{color:N.soft},children:String(ht+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[13px] opacity-55 transition-opacity group-hover:opacity-85 lg:text-[15px]",style:{color:N.ink,lineHeight:1.3},children:ft.title}),T.jsx(dt,{name:"arrow_forward",size:"xs",class:"shrink-0 opacity-0 transition-opacity group-hover:opacity-40"})]})},ft.slideKey))}),e[35]=h,e[36]=c,e[37]=f,e[38]=Ve):Ve=e[38];const ct=h?"true":"false",it=h?"260ms":"0ms";let wt;e[39]!==it?(wt={transitionDelay:it},e[39]=it,e[40]=wt):wt=e[40];let Dt;e[41]!==s||e[42]!==o||e[43]!==l||e[44]!==i||e[45]!==n?(Dt=T.jsx(e0,{deviceCluster:T.jsx(Jy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i,hidePhone:!0}),className:"deco-art-mobile h-full w-full rounded-2xl",innerClassName:"max-w-[440px]",padClassName:"px-5 pt-6",alignClassName:"items-start"}),e[41]=s,e[42]=o,e[43]=l,e[44]=i,e[45]=n,e[46]=Dt):Dt=e[46];let Ir;e[47]!==ct||e[48]!==wt||e[49]!==Dt?(Ir=T.jsx("div",{className:"reveal mt-4 min-h-[150px] flex-1 lg:hidden","data-show":ct,style:wt,children:Dt}),e[47]=ct,e[48]=wt,e[49]=Dt,e[50]=Ir):Ir=e[50];let Oe;e[51]!==X||e[52]!==K||e[53]!==ve||e[54]!==Ve||e[55]!==Ir?(Oe=T.jsxs("div",{className:"flex min-h-0 flex-col px-4 pb-3 pt-4 lg:px-5 lg:py-5",children:[X,K,ve,Ve,Ir]}),e[51]=X,e[52]=K,e[53]=ve,e[54]=Ve,e[55]=Ir,e[56]=Oe):Oe=e[56];let Ze;e[57]!==s||e[58]!==o||e[59]!==l||e[60]!==i||e[61]!==n?(Ze=T.jsx("div",{className:"hidden lg:block",children:T.jsx(e0,{deviceCluster:T.jsx(Jy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i}),className:"h-full w-full rounded-2xl"})}),e[57]=s,e[58]=o,e[59]=l,e[60]=i,e[61]=n,e[62]=Ze):Ze=e[62];let He;e[63]!==Oe||e[64]!==Ze?(He=T.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px]",style:ce,children:[ne,te,W,j,T.jsxs("div",{className:"relative z-10 grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[Oe,Ze]})]}),e[63]=Oe,e[64]=Ze,e[65]=He):He=e[65];let ur;e[66]!==pe||e[67]!==He?(ur=T.jsx("div",{ref:L,className:"holo-tilt relative flex h-full w-full flex-col rounded-[26px] p-[2px]",style:pe,children:He}),e[66]=pe,e[67]=He,e[68]=ur):ur=e[68];let Ei;return e[69]!==p||e[70]!==Z||e[71]!==ur?(Ei=T.jsx("div",{className:"holo-stage flex h-full w-full items-center justify-center px-3 py-2 sm:px-6",onMouseMove:A,onMouseLeave:D,children:T.jsx("div",{"data-enter":Z,className:"holo-card h-full w-full max-w-[1080px]",children:ur},p)}),e[69]=p,e[70]=Z,e[71]=ur,e[72]=Ei):Ei=e[72],Ei}function PP(r){return r+1}const kP="Acesse a análise completa e",RP="opere seu site no piloto automático.",EP="389 verificações em 15 dimensões, cada problema com uma",NP="próxima ação clara. A Deco corrige por você.",OP="Ver diagnóstico completo",BP=N.forest,zP=N.lime,t0=[{label:"SEO",icon:"search",color:"#ffc116"},{label:"Busca por IA",icon:"smart_toy",color:"#14b8a6"},{label:"Performance",icon:"bolt",color:"#a595ff"},{label:"Conversão",icon:"shopping_cart",color:"#ffc116"},{label:"Rastreamento",icon:"monitoring",color:"#6e9fdb"},{label:"Acessibilidade",icon:"accessibility_new",color:"#b7a8ff"},{label:"Segurança",icon:"shield",color:"#f0846b"},{label:"Conteúdo",icon:"article",color:"#ffc116"},{label:"Analytics & Funil",icon:"bar_chart",color:"#a3c73a"}],VP=[{label:"Conversão",score:42,color:"#6e9fdb"},{label:"Performance",score:35,color:"#a595ff"},{label:"SEO",score:54,color:"#f0b613"},{label:"Busca por IA (GEO)",score:67,color:"#14b8a6"},{label:"Acessibilidade",score:48,color:"#8aa9ff"},{label:"Segurança",score:31,color:"#f0846b"},{label:"Analytics & Funil",score:75,color:"#8caa25"}],r0=14,a0=[{title:"Corrigir LCP acima de 4s na home",level:"Alta",color:"#d43d3d"},{title:"Adicionar canonical em 12 páginas",level:"Alta",color:"#d43d3d"},{title:"Liberar GPTBot no robots.txt",level:"Média",color:"#f0b613"},{title:"Corrigir GA4 duplicando eventos",level:"Alta",color:"#d43d3d"},{title:"Adicionar alt em 18 imagens",level:"Média",color:"#f0b613"},{title:"Reduzir checkout para 3 campos",level:"Alta",color:"#d43d3d"},{title:"Ativar HSTS e CSP",level:"Média",color:"#f0b613"}],FP=7,Tc=16,GP=["#8caa2510","#cfe8b8","#9fd07f","#5fa843","#0c5122"];function HP(r,e){return(r*3+e*5+r*e%4)%5}const jP=[{label:"Tempo médio até corrigir",value:"3 dias"},{label:"Correções esta semana",value:"7"},{label:"Em revisão",value:"2"}];function WP(r){const e=_e.c(14),{label:t,icon:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:"1px solid rgba(255,255,255,0.25)"},e[0]=i):i=e[0];let o;e[1]!==n?(o={color:n},e[1]=n,e[2]=o):o=e[2];let s;e[3]!==a?(s=T.jsx(dt,{name:a,size:"xl"}),e[3]=a,e[4]=s):s=e[4];let l;e[5]!==o||e[6]!==s?(l=T.jsx("span",{style:o,children:s}),e[5]=o,e[6]=s,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#ffffff"},e[8]=u):u=e[8];let c;e[9]!==t?(c=T.jsx("span",{className:"whitespace-nowrap text-[15px]",style:u,children:t}),e[9]=t,e[10]=c):c=e[10];let f;return e[11]!==l||e[12]!==c?(f=T.jsxs("span",{className:"flex shrink-0 items-center gap-2.5 rounded-full py-2 pl-3 pr-5",style:i,children:[l,c]}),e[11]=l,e[12]=c,e[13]=f):f=e[13],f}function $P(r){const e=_e.c(3),{score:t,color:a}=r,n=Math.round(t/100*r0);let i;return e[0]!==a||e[1]!==n?(i=T.jsx("span",{className:"flex flex-1 items-center gap-[3px]",children:Array.from({length:r0},(o,s)=>T.jsx("span",{className:"h-2.5 flex-1 rounded-[3px]",style:{background:s<n?a:"rgba(40,37,36,0.08)"}},s))}),e[0]=a,e[1]=n,e[2]=i):i=e[2],i}function UP(r){const e=_e.c(16),{domain:t,faviconUrl:a,initial:n}=r,[i,o]=Ne.useState(!1);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={boxShadow:"0 -20px 60px rgba(3,32,14,0.35)"},e[0]=s):s=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={border:`1px solid ${N.border}`},e[1]=l):l=e[1];let u;e[2]!==i||e[3]!==a||e[4]!==n?(u=T.jsx("span",{className:"grid size-7 shrink-0 place-items-center overflow-hidden rounded-md",style:l,children:i?T.jsx("span",{className:"text-[11px] font-semibold",style:{color:N.forest},children:n}):T.jsx("img",{src:a,alt:"",className:"size-4 object-contain",onError:()=>o(!0)})}),e[2]=i,e[3]=a,e[4]=n,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==t?(f=T.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",style:c,children:t}),e[7]=t,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Diagnóstico"}),e[9]=h):h=e[9];let v;e[10]!==u||e[11]!==f?(v=T.jsxs("div",{className:"flex items-center gap-2.5",children:[u,f,h]}),e[10]=u,e[11]=f,e[12]=v):v=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=T.jsx("ul",{className:"mt-5 flex flex-col gap-4",children:VP.map(YP)}),e[13]=d):d=e[13];let p;return e[14]!==v?(p=T.jsxs("div",{className:"w-[min(92vw,600px)] rounded-t-2xl bg-white p-6 sm:p-7",style:s,children:[v,d]}),e[14]=v,e[15]=p):p=e[15],p}function YP(r){return T.jsxs("li",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"flex items-baseline justify-between",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.ink},children:r.label}),T.jsxs("span",{className:"text-[15px] font-semibold tabular-nums",style:{color:N.ink},children:[r.score,T.jsx("span",{className:"text-[11px] font-normal",style:{color:N.faint},children:"/100"})]})]}),T.jsx($P,{score:r.score,color:r.color})]},r.label)}function XP(r){const e=_e.c(14),{title:t,level:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:`1px solid ${N.border}`,boxShadow:"0 6px 20px rgba(3,32,14,0.12)"},e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("span",{className:"mt-0.5 size-3.5 shrink-0 rounded-full",style:{border:`1.5px solid ${N.faint}`}}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={color:N.ink},e[2]=s):s=e[2];let l;e[3]!==t?(l=T.jsxs("div",{className:"flex items-start gap-2",children:[o,T.jsx("span",{className:"text-[12.5px] font-medium leading-snug",style:s,children:t})]}),e[3]=t,e[4]=l):l=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"rgba(40,37,36,0.04)",color:N.muted},e[5]=u):u=e[5];let c;e[6]!==n?(c=T.jsx("span",{className:"size-1.5 rounded-full",style:{background:n}}),e[6]=n,e[7]=c):c=e[7];let f;e[8]!==a||e[9]!==c?(f=T.jsxs("span",{className:"mt-2 ml-5 inline-flex items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px]",style:u,children:[c,a]}),e[8]=a,e[9]=c,e[10]=f):f=e[10];let h;return e[11]!==l||e[12]!==f?(h=T.jsxs("div",{className:"rounded-xl bg-white p-3",style:i,children:[l,f]}),e[11]=l,e[12]=f,e[13]=h):h=e[13],h}function ZP(){const r=_e.c(2);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)",WebkitMaskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)"},r[0]=e):e=r[0];let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("div",{className:"h-[400px] w-[248px] overflow-hidden",style:e,children:T.jsx("div",{className:"report-task-track gap-3",children:[...a0,...a0].map(qP)})}),r[1]=t):t=r[1],t}function qP(r,e){return T.jsx(XP,{...r},`${r.title}-${e}`)}function KP(){const r=_e.c(4);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={boxShadow:"0 20px 50px rgba(3,32,14,0.22)"},r[0]=e):e=r[0];let t;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Ritmo de entrega"}),r[1]=t):t=r[1];let a;r[2]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"mt-4 grid gap-[3px]",style:{gridTemplateColumns:`repeat(${Tc}, 1fr)`},children:Array.from({length:FP*Tc},QP)}),r[2]=a):a=r[2];let n;return r[3]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsxs("div",{className:"w-[320px] rounded-2xl bg-white p-5",style:e,children:[t,a,T.jsx("ul",{className:"mt-4 flex flex-col",children:jP.map(JP)})]}),r[3]=n):n=r[3],n}function JP(r){return T.jsxs("li",{className:"flex items-center justify-between py-2.5 text-[13px]",style:{borderTop:`1px solid ${N.border}`},children:[T.jsx("span",{style:{color:N.muted},children:r.label}),T.jsx("span",{className:"font-semibold",style:{color:N.ink},children:r.value})]},r.label)}function QP(r,e){const t=Math.floor(e/Tc),a=e%Tc;return T.jsx("span",{className:"aspect-square rounded-[3px]",style:{background:GP[HP(t,a)]}},e)}function ek(r){const e=_e.c(71),{domain:t,faviconUrl:a,initial:n,checksProbed:i,checksTotal:o,active:s}=r,l=s===void 0?!1:s,u=l?"true":"false",c=Og(t),f=typeof i=="number"&&typeof o=="number";let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:BP},e[0]=h):h=e[0];let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 top-[52%] size-[900px] -translate-x-1/2 rounded-full",style:{background:"radial-gradient(circle, rgba(208,236,26,0.08), transparent 62%)"}}),e[1]=v):v=e[1];let d;e[2]!==i||e[3]!==o||e[4]!==f||e[5]!==u?(d=f?T.jsxs("span",{className:"reveal rounded-full px-4 py-1.5 text-[15px]","data-show":u,style:{border:"1px solid rgba(255,255,255,0.25)"},children:[T.jsxs("span",{style:{color:"rgba(255,255,255,0.5)"},children:[i,"/"]}),T.jsx("span",{style:{color:"#ffffff"},children:o})]}):null,e[2]=i,e[3]=o,e[4]=f,e[5]=u,e[6]=d):d=e[6];const p=l?"60ms":"0ms";let g;e[7]!==p?(g={color:"#ffffff",transitionDelay:p},e[7]=p,e[8]=g):g=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("br",{className:"hidden sm:block"}),e[9]=m):m=e[9];let y;e[10]!==u||e[11]!==g?(y=T.jsxs("h2",{className:"reveal text-balance font-normal leading-[1.15] tracking-[-0.015em] text-[clamp(1.5rem,6vw,2.75rem)]","data-show":u,style:g,children:[kP,m," ",RP]}),e[10]=u,e[11]=g,e[12]=y):y=e[12];const x=l?"130ms":"0ms";let _;e[13]!==x?(_={color:"rgba(255,255,255,0.75)",transitionDelay:x},e[13]=x,e[14]=_):_=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx("br",{className:"hidden sm:block"}),e[15]=b):b=e[15];let S;e[16]!==u||e[17]!==_?(S=T.jsxs("p",{className:"reveal max-w-[520px] text-[15px] leading-relaxed sm:text-base","data-show":u,style:_,children:[EP,b," ",NP]}),e[16]=u,e[17]=_,e[18]=S):S=e[18];let w;e[19]!==t?(w=K=>wf(K,{domain:t,placement:"cta_slide",slideKey:"cta"}),e[19]=t,e[20]=w):w=e[20];const A=l?"220ms":"0ms";let C;e[21]!==A?(C={background:zP,color:N.forest,transitionDelay:A},e[21]=A,e[22]=C):C=e[22];let D,M;e[23]===Symbol.for("react.memo_cache_sentinel")?(D=T.jsx("span",{children:OP}),M=T.jsx(dt,{name:"arrow_forward",size:"medium"}),e[23]=D,e[24]=M):(D=e[23],M=e[24]);let L;e[25]!==c||e[26]!==u||e[27]!==w||e[28]!==C?(L=T.jsxs("a",{href:c,onClick:w,className:"reveal mt-1 inline-flex h-12 items-center gap-2 whitespace-nowrap rounded-full px-8 text-base font-medium transition-transform duration-300 ease-out hover:scale-105","data-show":u,style:C,children:[D,M]}),e[25]=c,e[26]=u,e[27]=w,e[28]=C,e[29]=L):L=e[29];let P;e[30]!==S||e[31]!==L||e[32]!==d||e[33]!==y?(P=T.jsxs("div",{className:"relative z-10 flex max-w-[820px] flex-col items-center gap-5 text-center",children:[d,y,S,L]}),e[30]=S,e[31]=L,e[32]=d,e[33]=y,e[34]=P):P=e[34];const k=l?"300ms":"0ms";let R;e[35]!==k?(R={transitionDelay:k,maskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)",WebkitMaskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)"},e[35]=k,e[36]=R):R=e[36];let E;e[37]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("div",{className:"report-marquee-track gap-2",children:[...t0,...t0].map(tk)}),e[37]=E):E=e[37];let O;e[38]!==u||e[39]!==R?(O=T.jsx("div",{className:"reveal relative z-10 w-[calc(100%+4rem)] shrink-0 overflow-hidden sm:w-[calc(100%+8rem)]","data-show":u,style:R,children:E}),e[38]=u,e[39]=R,e[40]=O):O=e[40];const B=l?"460ms":"0ms";let V;e[41]!==B?(V={transitionDelay:B},e[41]=B,e[42]=V):V=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=T.jsx(ZP,{}),e[43]=F):F=e[43];let G;e[44]!==u||e[45]!==V?(G=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -mr-24 mt-3 hidden shrink-0 -rotate-[5deg] xl:block","data-show":u,style:V,children:F}),e[44]=u,e[45]=V,e[46]=G):G=e[46];const U=l?"380ms":"0ms";let X;e[47]!==U?(X={transitionDelay:U},e[47]=U,e[48]=X):X=e[48];let Z;e[49]!==t||e[50]!==a||e[51]!==n?(Z=T.jsx(UP,{domain:t,faviconUrl:a,initial:n}),e[49]=t,e[50]=a,e[51]=n,e[52]=Z):Z=e[52];let Q;e[53]!==u||e[54]!==X||e[55]!==Z?(Q=T.jsx("div",{className:"reveal relative z-20 shrink-0","data-show":u,style:X,children:Z}),e[53]=u,e[54]=X,e[55]=Z,e[56]=Q):Q=e[56];const pe=l?"440ms":"0ms";let ce;e[57]!==pe?(ce={transitionDelay:pe},e[57]=pe,e[58]=ce):ce=e[58];let ne;e[59]===Symbol.for("react.memo_cache_sentinel")?(ne=T.jsx(KP,{}),e[59]=ne):ne=e[59];let te;e[60]!==u||e[61]!==ce?(te=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -ml-24 mt-3 hidden shrink-0 rotate-[6deg] xl:block","data-show":u,style:ce,children:ne}),e[60]=u,e[61]=ce,e[62]=te):te=e[62];let W;e[63]!==G||e[64]!==Q||e[65]!==te?(W=T.jsxs("div",{className:"relative z-10 flex w-full flex-1 items-start justify-center overflow-hidden",children:[G,Q,te]}),e[63]=G,e[64]=Q,e[65]=te,e[66]=W):W=e[66];let j;return e[67]!==P||e[68]!==O||e[69]!==W?(j=T.jsx("div",{className:"h-full w-full sm:px-6 lg:px-10 sm:pb-2",children:T.jsxs("div",{className:"relative flex h-full w-full flex-col items-center gap-8 overflow-hidden rounded-none px-6 pb-0 pt-8 sm:rounded-3xl sm:px-8 sm:pt-10 lg:gap-10 lg:pt-14 [@media(max-height:780px)]:lg:gap-6 [@media(max-height:780px)]:lg:pt-10",style:h,children:[v,P,O,W]})}),e[67]=P,e[68]=O,e[69]=W,e[70]=j):j=e[70],j}function tk(r,e){return T.jsx(WP,{...r},`${r.label}-${e}`)}const rk={good:{ratio:.16},warn:{ratio:.5},bad:{ratio:.84}},ak=[N.soft,N.warn,"#d43d3d"],nk=["rgba(140,170,37,0.16)","rgba(240,182,19,0.16)","rgba(212,61,61,0.14)"],ik=r=>r<1/3?0:r<2/3?1:2;function ok(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(0.875rem,1.8svh)] sm:gap-5":"gap-[min(1.25rem,2.6svh)] sm:gap-10";let c;e[5]!==u?(c=qe("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=Math.min(1,Math.max(0,p.ratio??rk[p.status].ratio)),y=ak[ik(m)];return T.jsxs("div",{className:qe("reveal grid grid-cols-1 items-center gap-x-8 sm:grid-cols-[minmax(0,10rem)_1fr]",s?"gap-y-[min(0.5rem,1svh)] sm:gap-y-1.5":"gap-y-[min(0.75rem,1.4svh)] sm:gap-y-3"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2 sm:flex-col sm:gap-0.5",children:[T.jsx("span",{className:qe("font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.5rem,4vw,2rem),3svh)] sm:text-[clamp(1.5rem,2.5vw,2rem)]":"text-[min(clamp(2rem,5vw,3rem),4svh)] sm:text-[clamp(2rem,5vw,3rem)]"),style:{color:y},children:p.value}),T.jsx("span",{className:qe("tracking-[-0.01em]",s?"text-sm sm:text-base":"text-base sm:text-lg"),style:{color:N.muted},children:p.label})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"relative flex h-3 w-full gap-1",children:[nk.map(sk),T.jsx("span",{className:"absolute top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${m*100}%`,background:y,border:`3px solid ${N.bg}`,boxShadow:"0 1px 3px rgba(40,37,36,0.25)"}})]}),p.caption&&T.jsx("span",{className:"text-right text-xs sm:text-left sm:text-sm",style:{color:N.muted,opacity:.8},children:p.caption})]})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2.2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}function sk(r,e){return T.jsx("span",{className:"h-full flex-1 rounded-full",style:{background:r}},e)}const lk={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},neutral:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},uk=2;function ck(r){const e=r.match(/^(.*?)\s*\((\d+)\/(\d+)\)$/);return e?{name:e[1]??"",chip:`${e[2]} de ${e[3]}`}:{name:r}}function fk(r){const e=_e.c(27),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r;let s,l,u,c,f;if(e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const p=[...i].sort(hk);c="flex h-full flex-col",e[10]!==o||e[11]!==n||e[12]!==t||e[13]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[10]=o,e[11]=n,e[12]=t,e[13]=a,e[14]=f):f=e[14],u="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4 sm:px-10 lg:px-16",s="my-auto flex w-full flex-col gap-[min(0.875rem,1.7svh)] sm:gap-4";let g;e[15]!==o?(g=(m,y)=>{const x=lk[m.tone??"neutral"],_=Math.max(uk,Math.min(100,m.ratio*100)),{name:b,chip:S}=ck(m.label);return T.jsxs("div",{className:"reveal flex flex-col gap-1.5","data-show":o?"true":"false",style:{transitionDelay:o?`${80+y*70}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2.5",children:[T.jsx("span",{className:"min-w-0 line-clamp-2 break-words text-sm font-medium leading-snug tracking-[-0.01em] sm:text-[15px]",style:{color:N.ink},children:b}),S&&T.jsx("span",{className:"shrink-0 translate-y-[-1px] rounded-full px-1.5 py-px text-[10px] leading-[1.5]",style:{color:N.muted,border:`1px solid ${N.border}`},children:S}),T.jsx("span",{className:"ml-auto shrink-0 font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.5rem,3svh)] sm:text-[1.625rem]",style:{color:x.color},children:m.value})]}),T.jsx("div",{className:"h-[min(0.75rem,1.4svh)] w-full overflow-hidden rounded-full sm:h-3",style:{background:x.tint},children:T.jsx("div",{className:"h-full rounded-full transition-[width] duration-700 ease-out",style:{width:o?`${_}%`:"0%",background:x.color,transitionDelay:o?`${150+y*70}ms`:"0ms"}})})]},y)},e[15]=o,e[16]=g):g=e[16],l=p.map(g),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=s,e[6]=l,e[7]=u,e[8]=c,e[9]=f}else s=e[5],l=e[6],u=e[7],c=e[8],f=e[9];let h;e[17]!==s||e[18]!==l?(h=T.jsx("div",{className:s,children:l}),e[17]=s,e[18]=l,e[19]=h):h=e[19];let v;e[20]!==u||e[21]!==h?(v=T.jsx("div",{className:u,children:h}),e[20]=u,e[21]=h,e[22]=v):v=e[22];let d;return e[23]!==c||e[24]!==f||e[25]!==v?(d=T.jsxs("div",{className:c,children:[f,v]}),e[23]=c,e[24]=f,e[25]=v,e[26]=d):d=e[26],d}function hk(r,e){return(Number(r.value)||0)-(Number(e.value)||0)}function vk(r){return!r||r<=0?at.bad:r<=3?at.good:r<=10?N.warn:at.bad}function dk(r){return r&&r>0?`${r}ª`:"—"}function pk(r){const e=_e.c(39),{eyebrow:t,headline:a,annotation:n,keywords:i,volumeLabel:o,active:s}=r;let l,u,c,f,h,v,d;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i||e[5]!==o){const x=i.slice(0,8);v="flex h-full flex-col",e[13]!==s||e[14]!==n||e[15]!==t||e[16]!==a?(d=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[13]=s,e[14]=n,e[15]=t,e[16]=a,e[17]=d):d=e[17],h="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.4svh)] sm:px-10 sm:py-4 lg:px-16",c="my-auto w-full";let _,b;e[18]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},b=T.jsx("span",{className:"min-w-0 flex-1 truncate",children:"Keyword"}),e[18]=_,e[19]=b):(_=e[18],b=e[19]);const S=o??"Buscas/mês";let w;e[20]!==S?(w=T.jsx("span",{className:"w-20 shrink-0 text-right sm:w-24",children:S}),e[20]=S,e[21]=w):w=e[21];let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=T.jsx("span",{className:"w-12 shrink-0 text-right sm:w-16",children:"Posição"}),e[22]=A):A=e[22],e[23]!==w?(f=T.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1 text-[10px] font-medium uppercase tracking-[0.04em] sm:gap-3 sm:px-3 sm:text-[11px]",style:_,children:[b,w,A]}),e[23]=w,e[24]=f):f=e[24],l="flex flex-col",u=x.map((C,D)=>T.jsxs("li",{className:"reveal flex items-center gap-2 px-1 py-[min(10px,1.1svh)] sm:gap-3 sm:px-3 sm:py-[10px]","data-show":s?"true":"false",style:{...D<x.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${70+D*55}ms`:"0ms"},children:[T.jsx("span",{className:"min-w-0 flex-1 truncate text-base sm:text-lg",style:{color:N.ink},children:C.term}),T.jsx("span",{className:"w-20 shrink-0 text-right text-sm tabular-nums sm:w-24 sm:text-base",style:{color:N.muted},children:C.volume}),T.jsx("span",{className:"w-12 shrink-0 text-right text-lg font-normal tabular-nums tracking-[-0.01em] sm:w-16 sm:text-xl",style:{color:vk(C.position)},children:dk(C.position)})]},D)),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v,e[12]=d}else l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],v=e[11],d=e[12];let p;e[25]!==l||e[26]!==u?(p=T.jsx("ul",{className:l,children:u}),e[25]=l,e[26]=u,e[27]=p):p=e[27];let g;e[28]!==c||e[29]!==f||e[30]!==p?(g=T.jsxs("div",{className:c,children:[f,p]}),e[28]=c,e[29]=f,e[30]=p,e[31]=g):g=e[31];let m;e[32]!==h||e[33]!==g?(m=T.jsx("div",{className:h,children:g}),e[32]=h,e[33]=g,e[34]=m):m=e[34];let y;return e[35]!==m||e[36]!==v||e[37]!==d?(y=T.jsxs("div",{className:v,children:[d,m]}),e[35]=m,e[36]=v,e[37]=d,e[38]=y):y=e[38],y}const ph={error:{color:"#d43d3d",icon:"error"},warning:{color:N.warn,icon:"warning"},notice:{color:N.notice,icon:"info"}};function gk(r){const e=_e.c(30),{headline:t,entries:a,domain:n,onNext:i,moreCount:o,active:s}=r,l=Og(n);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[0]=u):u=e[0];const c=u,f=s?"true":"false";let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.ink},e[1]=h):h=e[1];let v;e[2]!==t||e[3]!==o?(v=o&&o>0?T.jsxs(T.Fragment,{children:[T.jsxs("span",{style:{color:ph.error.color},children:["+",o]})," ","outros sinais no diagnóstico completo"]}):t.replace(/\s*\n\s*/g," "),e[2]=t,e[3]=o,e[4]=v):v=e[4];let d;e[5]!==f||e[6]!==v?(d=T.jsx("header",{className:"flex shrink-0 flex-col gap-3 px-5 pt-2 sm:gap-4 sm:px-10 lg:px-16",children:T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.1] tracking-[-0.02em] text-[min(clamp(1.375rem,4.8vw,2.5rem),3svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.75rem] lg:max-w-[20ch]","data-show":f,style:h,children:v})}),e[5]=f,e[6]=v,e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p={maskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)",WebkitMaskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)"},e[8]=p):p=e[8];let g;if(e[9]!==s||e[10]!==a||e[11]!==f){let S;e[13]!==s||e[14]!==a.length||e[15]!==f?(S=(w,A)=>{const C=ph[w.severity]??ph.notice;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(9px,1.3svh)]","data-show":f,style:{...A<a.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${60+A*45}ms`:"0ms"},children:[T.jsx("span",{className:"line-clamp-2 flex-1 text-[13px] leading-snug sm:text-[15px]",style:{color:N.muted},children:w.label}),T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:C.color},"aria-label":w.severity,children:T.jsx(dt,{name:C.icon,size:"large"})})]},A)},e[13]=s,e[14]=a.length,e[15]=f,e[16]=S):S=e[16],g=a.map(S),e[9]=s,e[10]=a,e[11]=f,e[12]=g}else g=e[12];let m;e[17]!==g?(m=T.jsx("ul",{className:"h-full overflow-hidden",style:p,children:g}),e[17]=g,e[18]=m):m=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y={background:`linear-gradient(to bottom, transparent, ${N.bg} 34%)`},e[19]=y):y=e[19];let x;e[20]!==l||e[21]!==n||e[22]!==i?(x=T.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex justify-center px-5 pb-7 pt-24 sm:px-10 lg:px-16",style:y,children:i?T.jsx("button",{type:"button",onClick:i,className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"}):T.jsx("a",{href:l,target:l.startsWith("http")?"_blank":"_self",rel:"noopener noreferrer",onClick:S=>wf(S,{domain:n,placement:"list_slide_fallback"}),className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"})}),e[20]=l,e[21]=n,e[22]=i,e[23]=x):x=e[23];let _;e[24]!==m||e[25]!==x?(_=T.jsxs("div",{className:"relative min-h-0 flex-1 px-5 pt-3 sm:px-10 lg:px-16",children:[m,x]}),e[24]=m,e[25]=x,e[26]=_):_=e[26];let b;return e[27]!==_||e[28]!==d?(b=T.jsxs("div",{className:"flex h-full flex-col",children:[d,_]}),e[27]=_,e[28]=d,e[29]=b):b=e[29],b}const mk={up:at.good,down:at.bad,neutral:N.muted},yk={up:"↑",down:"↓",neutral:"→"};function A2(r,e){return r?at[r]:e?N.muted:N.ink}function xk(r){const e=_e.c(8),{cell:t}=r;let a;e[0]!==t.muted||e[1]!==t.tone?(a=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=a):a=e[2];let n;e[3]!==a?(n={color:a},e[3]=a,e[4]=n):n=e[4];let i;return e[5]!==t.value||e[6]!==n?(i=T.jsx("span",{className:"line-clamp-2 leading-snug",style:n,children:t.value}),e[5]=t.value,e[6]=n,e[7]=i):i=e[7],i}function _k(r){const e=_e.c(14),{cell:t}=r,a=t.deltaDir??"neutral";let n;e[0]!==t.muted||e[1]!==t.tone?(n=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=n):n=e[2];let i;e[3]!==n?(i={color:n},e[3]=n,e[4]=i):i=e[4];let o;e[5]!==t.value||e[6]!==i?(o=T.jsx("span",{style:i,children:t.value}),e[5]=t.value,e[6]=i,e[7]=o):o=e[7];let s;e[8]!==t.delta||e[9]!==a?(s=t.delta&&T.jsxs("span",{className:"text-sm tabular-nums",style:{color:mk[a]},children:[yk[a]," ",t.delta]}),e[8]=t.delta,e[9]=a,e[10]=s):s=e[10];let l;return e[11]!==o||e[12]!==s?(l=T.jsxs("span",{className:"inline-flex items-baseline gap-2 whitespace-nowrap",children:[o,s]}),e[11]=o,e[12]=s,e[13]=l):l=e[13],l}function bk(r){const e=_e.c(8),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=t.points.length;if(n<2)return null;const i=48/(n-1);let o;if(e[0]!==t.points||e[1]!==i){let u;e[3]!==i?(u=(c,f)=>`${f*i},${20-c*20}`,e[3]=i,e[4]=u):u=e[4],o=t.points.map(u).join(" "),e[0]=t.points,e[1]=i,e[2]=o}else o=e[2];const s=o;let l;return e[5]!==a||e[6]!==s?(l=T.jsx("svg",{width:48,height:20,viewBox:"0 0 48 20",className:"inline-block align-middle",children:T.jsx("polyline",{points:s,fill:"none",stroke:a,strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"})}),e[5]=a,e[6]=s,e[7]=l):l=e[7],l}function Sk(r){const e=_e.c(6),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=`1px solid ${a}`;let i;e[0]!==a||e[1]!==n?(i={color:a,border:n,lineHeight:"1.4"},e[0]=a,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==t.label||e[4]!==i?(o=T.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-xs font-medium",style:i,children:t.label}),e[3]=t.label,e[4]=i,e[5]=o):o=e[5],o}function wk(r){const e=_e.c(12),{cell:t}=r,a=t.tone?at[t.tone]:N.ink,n=Math.min(100,Math.max(0,t.value));let i;e[0]!==a?(i={color:a},e[0]=a,e[1]=i):i=e[1];let o;e[2]!==n||e[3]!==i?(o=T.jsx("span",{className:"text-sm tabular-nums",style:i,children:n}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s={background:N.border},e[5]=s):s=e[5];const l=`${n}%`;let u;e[6]!==a||e[7]!==l?(u=T.jsx("span",{className:"inline-block h-1.5 w-12 overflow-hidden rounded-full",style:s,children:T.jsx("span",{className:"block h-full rounded-full",style:{width:l,background:a}})}),e[6]=a,e[7]=l,e[8]=u):u=e[8];let c;return e[9]!==o||e[10]!==u?(c=T.jsxs("span",{className:"inline-flex items-center gap-2",children:[o,u]}),e[9]=o,e[10]=u,e[11]=c):c=e[11],c}function gh(r){const e=_e.c(10),{cell:t}=r;switch(t.kind){case"text":{let a;return e[0]!==t?(a=T.jsx(xk,{cell:t}),e[0]=t,e[1]=a):a=e[1],a}case"number":{let a;return e[2]!==t?(a=T.jsx(_k,{cell:t}),e[2]=t,e[3]=a):a=e[3],a}case"sparkline":{let a;return e[4]!==t?(a=T.jsx(bk,{cell:t}),e[4]=t,e[5]=a):a=e[5],a}case"badge":{let a;return e[6]!==t?(a=T.jsx(Sk,{cell:t}),e[6]=t,e[7]=a):a=e[7],a}case"score":{let a;return e[8]!==t?(a=T.jsx(wk,{cell:t}),e[8]=t,e[9]=a):a=e[9],a}default:return t}}function D2(r){const e=_e.c(51),{eyebrow:t,headline:a,annotation:n,columns:i,rows:o,highlightRow:s,active:l}=r,u=o.length>=6;let c;e[0]!==l||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[0]=l,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={WebkitMaskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)",maskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)"},e[5]=f):f=e[5];let h;if(e[6]!==l||e[7]!==i||e[8]!==s||e[9]!==o){let C;e[11]!==l||e[12]!==i||e[13]!==s?(C=(D,M)=>T.jsxs("li",{className:"reveal shrink-0 rounded-xl border p-3.5","data-show":l?"true":"false",style:{borderColor:N.cardBorder,background:M===s?"rgba(40,37,36,0.03)":N.surface,transitionDelay:l?`${80+M*45}ms`:"0ms"},children:[T.jsx("div",{className:"text-[15px] font-medium leading-snug",style:{color:N.ink},children:D[0]&&T.jsx(gh,{cell:D[0]})}),T.jsx("div",{className:"mt-2.5 flex flex-wrap gap-x-6 gap-y-2",children:D.slice(1).map((L,P)=>T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.04em]",style:{color:N.muted},children:i[P+1]?.label}),T.jsx("span",{className:"text-sm tabular-nums",style:{color:N.ink},children:T.jsx(gh,{cell:L})})]},P))})]},M),e[11]=l,e[12]=i,e[13]=s,e[14]=C):C=e[14],h=o.map(C),e[6]=l,e[7]=i,e[8]=s,e[9]=o,e[10]=h}else h=e[10];let v;e[15]!==h?(v=T.jsx("ul",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto py-1 sm:hidden",style:f,children:h}),e[15]=h,e[16]=v):v=e[16];const d=l?"true":"false",p=l?"100ms":"0ms";let g;e[17]!==p?(g={background:N.surface,border:`1px solid ${N.cardBorder}`,transitionDelay:p},e[17]=p,e[18]=g):g=e[18];let m;if(e[19]!==i||e[20]!==u){let C;e[22]!==u?(C=(D,M)=>T.jsx("th",{className:qe("text-[11px] font-medium uppercase tracking-wide sm:text-sm",u?"px-3 py-2.5 sm:px-5 sm:py-3":"px-3 py-3 sm:px-6 sm:py-4",D.align==="right"?"text-right":"text-left"),style:{color:N.muted,borderBottom:`1px solid ${N.border}`},children:D.label},M),e[22]=u,e[23]=C):C=e[23],m=i.map(C),e[19]=i,e[20]=u,e[21]=m}else m=e[21];let y;e[24]!==m?(y=T.jsx("thead",{children:T.jsx("tr",{children:m})}),e[24]=m,e[25]=y):y=e[25];let x;if(e[26]!==i||e[27]!==u||e[28]!==s||e[29]!==o){let C;e[31]!==i||e[32]!==u||e[33]!==s||e[34]!==o.length?(C=(D,M)=>T.jsx("tr",{style:{borderBottom:M<o.length-1?`1px solid ${N.border}`:void 0,background:M===s?"rgba(40,37,36,0.04)":void 0},children:D.map((L,P)=>{const k=i[P]?.align==="right";return T.jsx("td",{className:qe("align-top tracking-[-0.01em] tabular-nums",u?"px-3 py-1.5 text-sm sm:px-5 sm:py-2.5 sm:text-base":"px-3 py-3 text-sm sm:px-6 sm:py-4 sm:text-lg",k?"text-right":"text-left font-medium"),children:T.jsx(gh,{cell:L})},P)})},M),e[31]=i,e[32]=u,e[33]=s,e[34]=o.length,e[35]=C):C=e[35],x=o.map(C),e[26]=i,e[27]=u,e[28]=s,e[29]=o,e[30]=x}else x=e[30];let _;e[36]!==x?(_=T.jsx("tbody",{children:x}),e[36]=x,e[37]=_):_=e[37];let b;e[38]!==_||e[39]!==y?(b=T.jsxs("table",{className:"w-full border-collapse",children:[y,_]}),e[38]=_,e[39]=y,e[40]=b):b=e[40];let S;e[41]!==b||e[42]!==d||e[43]!==g?(S=T.jsx("div",{className:"reveal hidden w-full overflow-hidden rounded-xl sm:block","data-show":d,style:g,children:b}),e[41]=b,e[42]=d,e[43]=g,e[44]=S):S=e[44];let w;e[45]!==S||e[46]!==v?(w=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-3 sm:items-center sm:justify-center sm:px-10 sm:pt-4 lg:px-16",children:[v,S]}),e[45]=S,e[46]=v,e[47]=w):w=e[47];let A;return e[48]!==c||e[49]!==w?(A=T.jsxs("div",{className:"flex h-full flex-col",children:[c,w]}),e[48]=c,e[49]=w,e[50]=A):A=e[50],A}const M2={Crítico:{color:"#ef4444",tint:"rgba(239,68,68,0.12)"},Atenção:{color:"#d98324",tint:"rgba(217,131,36,0.12)"}},I2={color:N.muted,tint:"rgba(13,9,6,0.06)"};function Tk(r){const e=[];for(const t of r){const[a,n,i]=t;if(t.length!==3||a?.kind!=="text"||n?.kind!=="text"||i?.kind!=="badge")return null;const o={title:n.value.replace(/^✗\s*/,""),severity:i.label},s=e[e.length-1];s&&s.page===a.value?s.issues.push(o):e.push({page:a.value,issues:[o]})}return e.length>0?e:null}function n0(r){const e=_e.c(6),{severity:t}=r,a=M2[t]??I2;let n;e[0]!==a.color||e[1]!==a.tint?(n={color:a.color,background:a.tint},e[0]=a.color,e[1]=a.tint,e[2]=n):n=e[2];let i;return e[3]!==t||e[4]!==n?(i=T.jsx("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:n,children:t}),e[3]=t,e[4]=n,e[5]=i):i=e[5],i}function i0(r){const e=_e.c(2),{severity:t}=r,a=M2[t]??I2;let n;return e[0]!==a.color?(n=T.jsx("span",{className:"shrink-0 text-sm font-semibold leading-snug sm:text-base",style:{color:a.color},children:"✗"}),e[0]=a.color,e[1]=n):n=e[1],n}function Ck(r){const{eyebrow:e,headline:t,annotation:a,rows:n,active:i}=r,o=Tk(n);if(!o)return T.jsx(D2,{...r});const s=o.length>1,l=o.flatMap(c=>c.issues.map(f=>({...f,page:c.page})));let u=0;return T.jsxs("div",{className:"flex h-full flex-col",children:[T.jsx(rr,{eyebrow:e,headline:t,annotation:a,active:i}),T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-2 sm:px-10 sm:py-4 lg:px-16",children:[T.jsx("div",{className:"reveal my-auto w-full rounded-2xl px-3.5 py-1 sm:hidden","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?"80ms":"0ms"},children:o.map((c,f)=>T.jsxs("div",{className:"py-[min(0.625rem,1.2svh)]",style:{borderTop:f>0?`1px solid ${N.border}`:void 0},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),c.issues.length>1&&T.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:N.muted,opacity:.7},children:[c.issues.length," achados"]})]}),c.issues.map((h,v)=>{const d=140+u++*60;return T.jsxs("div",{className:"reveal mt-[min(0.375rem,0.8svh)] flex items-baseline gap-2","data-show":i?"true":"false",style:{transitionDelay:i?`${d}ms`:"0ms"},children:[T.jsx(i0,{severity:h.severity}),T.jsx("span",{className:"min-w-0 flex-1 line-clamp-2 text-[13px] font-medium leading-snug tracking-[-0.01em]",style:{color:N.ink},children:h.title}),T.jsx(n0,{severity:h.severity})]},v)})]},f))}),T.jsx("div",{className:"my-auto hidden w-full gap-4 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:l.map((c,f)=>T.jsxs("div",{className:"reveal flex flex-col gap-3 rounded-2xl px-5 py-4","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?`${100+f*60}ms`:"0ms"},children:[s&&T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),T.jsxs("div",{className:"flex items-start gap-2.5",children:[T.jsx(i0,{severity:c.severity}),T.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug tracking-[-0.01em] lg:text-[15px]",style:{color:N.ink},children:c.title})]}),T.jsx("div",{className:"mt-auto",children:T.jsx(n0,{severity:c.severity})})]},f))})]})]})}const Ak={1:"#c8a24b",2:"#9aa0a6",3:"#b07a48"};function Dk(r){const e=_e.c(28),{product:t,rank:a,active:n,delay:i}=r,[o,s]=Ne.useState(!!t.image),l=Ak[a],u=n?"true":"false",c=n?`${i}ms`:"0ms";let f;e[0]!==c?(f={borderColor:N.cardBorder,transitionDelay:c},e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#f6f4f1"},e[2]=h):h=e[2];let v;e[3]!==o||e[4]!==t.image||e[5]!==t.name?(v=o&&t.image?T.jsx("img",{src:t.image,alt:t.name,className:"h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-[1.04]",loading:"lazy",onError:()=>s(!1)}):T.jsx("span",{className:"grid h-full w-full place-items-center",children:T.jsx(dt,{name:"package_2",size:"xxl",class:"opacity-15"})}),e[3]=o,e[4]=t.image,e[5]=t.name,e[6]=v):v=e[6];let d;e[7]!==l?(d=l?{background:l,color:"#fff"}:{background:"rgba(255,255,255,0.92)",color:N.muted,border:`1px solid ${N.cardBorder}`},e[7]=l,e[8]=d):d=e[8];let p;e[9]!==a||e[10]!==d?(p=T.jsxs("span",{className:"absolute left-2 top-2 inline-flex h-6 items-center gap-1 rounded-full px-2 text-[11px] font-medium tabular-nums",style:d,children:["#",a]}),e[9]=a,e[10]=d,e[11]=p):p=e[11];let g;e[12]!==v||e[13]!==p?(g=T.jsxs("div",{className:"relative aspect-[3/4] w-full overflow-hidden rounded-md",style:h,children:[v,p]}),e[12]=v,e[13]=p,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m={color:N.ink},e[15]=m):m=e[15];let y;e[16]!==t.name?(y=T.jsx("span",{className:"line-clamp-2 min-w-0 text-[13px] leading-snug sm:text-[13.5px]",style:m,children:t.name}),e[16]=t.name,e[17]=y):y=e[17];let x;e[18]!==t.price?(x=t.price&&T.jsx("span",{className:"mt-auto pt-1 text-[15px] font-medium tabular-nums tracking-[-0.01em] sm:text-[17px]",style:{color:N.ink},children:t.price}),e[18]=t.price,e[19]=x):x=e[19];let _;e[20]!==y||e[21]!==x?(_=T.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 px-1.5 pb-1 pt-2.5",children:[y,x]}),e[20]=y,e[21]=x,e[22]=_):_=e[22];let b;return e[23]!==u||e[24]!==_||e[25]!==f||e[26]!==g?(b=T.jsxs("div",{className:"reveal group flex w-[52vw] max-w-[210px] shrink-0 snap-center flex-col rounded-xl border bg-white p-1.5 transition-shadow duration-500 hover:shadow-[0_20px_44px_-24px_rgba(40,37,36,0.32)] sm:w-auto sm:max-w-none sm:shrink sm:snap-align-none","data-show":u,style:f,children:[g,_]}),e[23]=u,e[24]=_,e[25]=f,e[26]=g,e[27]=b):b=e[27],b}function Mk(r){return r<=2?"sm:grid-cols-2":r===3?"sm:grid-cols-3":r===4?"sm:grid-cols-4":r===5?"sm:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-6"}function Ik(r){const e=_e.c(27),{eyebrow:t,headline:a,annotation:n,products:i,active:o}=r,s=o===void 0?!1:o;let l,u,c,f,h;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const g=i.slice(0,6);f="flex h-full flex-col",e[10]!==s||e[11]!==n||e[12]!==t||e[13]!==a?(h=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[10]=s,e[11]=n,e[12]=t,e[13]=a,e[14]=h):h=e[14],c="flex min-h-0 flex-1 flex-col justify-center pt-4 sm:px-10 sm:pt-12 lg:px-16",l=qe("flex w-full snap-x snap-mandatory gap-3 overflow-x-auto overscroll-x-contain px-5 scroll-px-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:grid sm:snap-none sm:gap-4 sm:overflow-x-visible sm:px-0",Mk(g.length));let m;e[15]!==s?(m=(y,x)=>T.jsx(Dk,{product:y,rank:x+1,active:s,delay:60+x*55},x),e[15]=s,e[16]=m):m=e[16],u=g.map(m),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=l,e[6]=u,e[7]=c,e[8]=f,e[9]=h}else l=e[5],u=e[6],c=e[7],f=e[8],h=e[9];let v;e[17]!==l||e[18]!==u?(v=T.jsx("div",{className:l,children:u}),e[17]=l,e[18]=u,e[19]=v):v=e[19];let d;e[20]!==c||e[21]!==v?(d=T.jsx("div",{className:c,children:v}),e[20]=c,e[21]=v,e[22]=d):d=e[22];let p;return e[23]!==f||e[24]!==h||e[25]!==d?(p=T.jsxs("div",{className:f,children:[h,d]}),e[23]=f,e[24]=h,e[25]=d,e[26]=p):p=e[26],p}function o0(r){if(!r)return null;const e=r.replace(/\s/g,"").match(/^[^\d]*([\d.,]+)\s*([kKmMbB])?/);if(!e)return null;const t=Number.parseFloat((e[1]??"").replace(/\./g,"").replace(",","."));if(Number.isNaN(t))return null;const a=(e[2]||"").toLowerCase();return t*(a==="b"?1e9:a==="m"?1e6:a==="k"?1e3:1)}function Lk(r){return!!r&&!/\s/.test(r)&&/\.[a-z]{2,}$/i.test(r.replace(/\/+$/,""))}function Pk(r){const e=_e.c(17),{name:t,className:a}=r,[n,i]=Ne.useState(!1);let o;e[0]!==t?(o=t?.replace(/^https?:\/\//,"").replace(/\/.*$/,""),e[0]=t,e[1]=o):o=e[1];const s=o;let l;e[2]!==t?(l=(t??"?").replace(/^https?:\/\//,"").replace(/^www\./,"")[0]?.toUpperCase()??"?",e[2]=t,e[3]=l):l=e[3];const u=l;let c;e[4]!==n||e[5]!==t?(c=Lk(t)&&!n,e[4]=n,e[5]=t,e[6]=c):c=e[6];const f=c;let h;e[7]!==a?(h=qe("grid shrink-0 place-items-center overflow-hidden rounded-[10px]",a),e[7]=a,e[8]=h):h=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v={background:N.surface,border:`1px solid ${N.border}`},e[9]=v):v=e[9];let d;e[10]!==s||e[11]!==u||e[12]!==f?(d=f?T.jsx("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(s??"")}`,alt:"",className:"h-full w-full object-contain p-1",onError:()=>i(!0)}):T.jsx("span",{className:"text-xs font-medium",style:{color:N.muted},children:u}),e[10]=s,e[11]=u,e[12]=f,e[13]=d):d=e[13];let p;return e[14]!==h||e[15]!==d?(p=T.jsx("span",{className:h,style:v,children:d}),e[14]=h,e[15]=d,e[16]=p):p=e[16],p}function kk(r){return r?r.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,""):""}const s0="h-[min(2rem,3.4svh)] w-[min(2rem,3.4svh)] sm:h-8 sm:w-8",l0=r=>r==="good"?0:r==="bad"?2:1;function Rk(r){const e=_e.c(31),{eyebrow:t,headline:a,annotation:n,rivalLabel:i,dimensions:o,faviconUrl:s,active:l}=r;let u,c,f,h,v;if(e[0]!==l||e[1]!==n||e[2]!==o||e[3]!==t||e[4]!==s||e[5]!==a||e[6]!==i){const m=o.map(Nk).sort(Ek);h="flex h-full flex-col",e[12]!==l||e[13]!==n||e[14]!==t||e[15]!==a?(v=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[12]=l,e[13]=n,e[14]=t,e[15]=a,e[16]=v):v=e[16],f="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.2svh)] sm:px-10 sm:py-4 lg:px-16",u="my-auto flex w-full flex-col";let y;e[17]!==l||e[18]!==s||e[19]!==i?(y=(x,_)=>{const{d:b,i:S}=x,w=b.tone==="good"?at.good:b.tone==="bad"?at.bad:N.muted,A=!!(b.rival||b.rivalName),C=o0(b.you),D=o0(b.rival),L=C!=null&&D!=null&&C+D>0?Math.min(.9,Math.max(.1,C/(C+D))):b.tone==="good"?.72:b.tone==="bad"?.28:.5,P=b.tone==="good",k=b.tone==="bad",R=P?at.good:k?at.bad:N.muted;return T.jsxs("div",{className:"reveal flex flex-col gap-[min(0.5rem,0.9svh)] py-[min(0.75rem,1.1svh)] sm:gap-2 sm:py-3","data-show":l?"true":"false",style:{borderTop:_===0?"none":`1px solid ${N.cardBorder}`,transitionDelay:l?`${80+_*55}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-center justify-between gap-3",children:[T.jsx("span",{className:"min-w-0 truncate text-sm font-medium sm:text-[15px]",style:{color:N.ink},children:b.label}),T.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium sm:text-xs",style:{color:R},children:[(P||k)&&T.jsx(dt,{name:P?"trending_up":"trending_down",size:"xs"}),P?"Você lidera":k?`${kk(b.rivalName)||i||"Concorrente"} lidera`:A?"Empate":"Sem comparação"]})]}),T.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[T.jsx("img",{src:s,alt:"",width:32,height:32,className:qe("shrink-0 rounded-[10px] border bg-white p-1",s0),style:{borderColor:N.border}}),T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] font-normal tabular-nums tracking-[-0.01em] sm:text-xl",style:{color:w},children:b.you}),T.jsx("span",{className:"relative h-3.5 flex-1 overflow-hidden rounded-full",style:{background:"rgba(40,37,36,0.07)"},children:T.jsx("span",{className:"absolute inset-y-0 left-0 rounded-full transition-[width] duration-700 ease-out",style:{width:l?`${L*100}%`:"0%",background:w}})}),A&&T.jsxs(T.Fragment,{children:[T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] tabular-nums sm:text-xl",style:{color:N.muted},children:b.rival??"—"}),T.jsx(Pk,{name:b.rivalName,className:s0})]})]})]},S)},e[17]=l,e[18]=s,e[19]=i,e[20]=y):y=e[20],c=m.map(y),e[0]=l,e[1]=n,e[2]=o,e[3]=t,e[4]=s,e[5]=a,e[6]=i,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v}else u=e[7],c=e[8],f=e[9],h=e[10],v=e[11];let d;e[21]!==u||e[22]!==c?(d=T.jsx("div",{className:u,children:c}),e[21]=u,e[22]=c,e[23]=d):d=e[23];let p;e[24]!==f||e[25]!==d?(p=T.jsx("div",{className:f,children:d}),e[24]=f,e[25]=d,e[26]=p):p=e[26];let g;return e[27]!==h||e[28]!==v||e[29]!==p?(g=T.jsxs("div",{className:h,children:[v,p]}),e[27]=h,e[28]=v,e[29]=p,e[30]=g):g=e[30],g}function Ek(r,e){return l0(r.d.tone)-l0(e.d.tone)||r.i-e.i}function Nk(r,e){return{d:r,i:e}}var Wd=function(r,e){return Wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Wd(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ok=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Bk=(function(){function r(){this.browser=new Ok,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Ae=new Bk;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ae.wxa=!0,Ae.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ae.worker=!0:!Ae.hasGlobalWindow||"Deno"in window?(Ae.node=!0,Ae.svgSupported=!0):zk(navigator.userAgent,Ae);function zk(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Bg=12,L2="sans-serif",fn=Bg+"px "+L2,Vk=20,Fk=100,Gk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Hk(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-Vk)/Fk;e[a]=n}return e}var jk=Hk(Gk),hn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=hn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||fn),r.measureText(t);t=t||"",a=a||fn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Bg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jk[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},P2=oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),k2=oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ro=Object.prototype.toString,Tf=Array.prototype,Wk=Tf.forEach,$k=Tf.filter,zg=Tf.slice,Uk=Tf.map,u0=(function(){}).constructor,ql=u0?u0.prototype:null,Vg="__proto__",Yk=2311;function R2(){return Yk++}function Fg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function le(r){if(r==null||typeof r!="object")return r;var e=r,t=Ro.call(r);if(t==="[object Array]"){if(!Bs(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=le(r[a])}}else if(k2[t]){if(!Bs(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!P2[t]&&!Bs(r)&&!So(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Vg&&(e[o]=le(r[o]))}return e}function ge(r,e,t){if(!se(e)||!se(r))return t?le(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Vg){var n=r[a],i=e[a];se(i)&&se(n)&&!$(i)&&!$(n)&&!So(i)&&!So(n)&&!c0(i)&&!c0(n)&&!Bs(i)&&!Bs(n)?ge(n,i,t):(t||!(a in r))&&(r[a]=le(e[a]))}return r}function Gg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ge(t,r[a],e);return t}function H(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Vg&&(r[t]=e[t]);return r}function oe(r,e,t){for(var a=Me(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function be(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function Xk(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ut(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else oe(r,e,t)}function Ot(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Wk)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return Hg(r);if(r.map&&r.map===Uk)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function oa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function ze(r,e,t){if(!r)return[];if(!e)return Hg(r);if(r.filter&&r.filter===$k)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Zk(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Me(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function qk(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(zg.call(arguments)))}}var ee=ql&&ie(ql.bind)?ql.call.bind(ql.bind):qk;function de(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(zg.call(arguments)))}}function $(r){return Array.isArray?Array.isArray(r):Ro.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function J(r){return typeof r=="string"}function $d(r){return Ro.call(r)==="[object String]"}function ke(r){return typeof r=="number"}function se(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function c0(r){return!!P2[Ro.call(r)]}function tr(r){return!!k2[Ro.call(r)]}function So(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Cf(r){return r.colorStops!=null}function Kk(r){return r.image!=null}function Jk(r){return Ro.call(r)==="[object RegExp]"}function Qs(r){return r!==r}function Ct(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function he(r,e){return r??e}function na(r,e,t){return r??e??t}function Hg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return zg.apply(r,e)}function jg(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function $t(r,e){if(!r)throw new Error(e)}function Or(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var E2="__ec_primitive__";function Cc(r){r[E2]=!0}function Bs(r){return r[E2]}var Qk=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Me(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),N2=typeof Map=="function";function e5(){return N2?new Map:new Qk}var t5=(function(){function r(e){var t=$(e);this.data=e5();var a=this;e instanceof r?e.each(n):e&&I(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return N2?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function ae(r){return new t5(r)}function el(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Af(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&H(t,e),t}function O2(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function re(r,e){return r.hasOwnProperty(e)}function nt(){}var tc=180/Math.PI;function Ci(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Vt(r,e){return r[0]=e[0],r[1]=e[1],r}function ba(r){return[r[0],r[1]]}function r5(r,e,t){return r[0]=e,r[1]=t,r}function f0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Ud(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function ti(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Yd(r){return Math.sqrt(a5(r))}function a5(r){return r[0]*r[0]+r[1]*r[1]}function rc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Eo(r,e){var t=Yd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Xd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var qa=Xd;function n5(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ui=n5;function ac(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function It(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Ka(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ja(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Oi=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),i5=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Oi(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Oi(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Oi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Oi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Oi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ar=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),o5=Math.log(2);function Zd(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/o5);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&n||(f+=(v%2?-1:1)*r[t][h]*Zd(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function h0(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Zd(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Zd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var v0="___zrEVENTSAVED",mh=[];function s5(r,e,t,a,n){return qd(mh,e,a,n,!0)&&qd(r,t,mh[0],mh[1])}function qd(r,e,t,a,n){if(e.getBoundingClientRect&&Ae.domSupported&&!B2(e)){var i=e[v0]||(e[v0]={}),o=l5(e,i),s=u5(o,i,n);if(s)return s(r,t,a),!0}return!1}function l5(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function u5(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&i&&h===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?h0(s,o):h0(o,s))}function B2(r){return r.nodeName.toUpperCase()==="CANVAS"}var c5=/([&<>"'])/g,f5={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(r){return r==null?"":(r+"").replace(c5,function(e,t){return f5[t]})}var h5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yh=[],v5=Ae.browser.firefox&&+Ae.browser.version.split(".")[0]<39;function Kd(r,e,t,a){return t=t||{},a?d0(r,e,t):v5&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):d0(r,e,t),t}function d0(r,e,t){if(Ae.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(B2(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(qd(yh,r,a,n)){t.zrX=yh[0],t.zrY=yh[1];return}}t.zrX=t.zrY=0}function Wg(r){return r||window.event}function pr(r,e,t){if(e=Wg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Kd(r,o,e,t)}else{Kd(r,e,e,t);var i=d5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&h5.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function d5(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Jd(r,e,t,a){r.addEventListener(e,t,a)}function p5(r,e,t,a){r.removeEventListener(e,t,a)}var Aa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function p0(r){return r.which===2||r.which===3}var g5=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Kd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in xh)if(xh.hasOwnProperty(t)){var a=xh[t](this._track,e);if(a)return a}},r})();function g0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function m5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var xh={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=g0(a)/g0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=m5(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function or(){return[1,0,0,1,0,0]}function Df(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function $g(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Sa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function sa(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ai(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function Ug(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function No(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function y5(r){var e=or();return $g(e,r),e}var me=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Kl=Math.min,Jl=Math.max,bn=new me,Sn=new me,wn=new me,Tn=new me,qo=new me,Ko=new me,xe=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Kl(e.x,this.x),a=Kl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=or();return sa(i,i,[-t.x,-t.y]),Ug(i,i,[a,n]),sa(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(i<l||u<n||s<c||f<o);if(t){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),m=Math.abs(s-c),y=Math.abs(f-o),x=Math.min(p,g),_=Math.min(m,y);i<l||u<n?x>d&&(d=x,p<g?me.set(Ko,-p,0):me.set(Ko,g,0)):x<v&&(v=x,p<g?me.set(qo,p,0):me.set(qo,-g,0)),s<c||f<o?_>d&&(d=_,m<y?me.set(Ko,0,-m):me.set(Ko,0,y)):x<v&&(v=x,m<y?me.set(qo,0,m):me.set(qo,0,-y))}return t&&me.copy(t,h?qo:Ko),h},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bn.x=wn.x=t.x,bn.y=Tn.y=t.y,Sn.x=Tn.x=t.x+t.width,Sn.y=wn.y=t.y+t.height,bn.transform(a),Tn.transform(a),Sn.transform(a),wn.transform(a),e.x=Kl(bn.x,Sn.x,wn.x,Tn.x),e.y=Kl(bn.y,Sn.y,wn.y,Tn.y);var l=Jl(bn.x,Sn.x,wn.x,Tn.x),u=Jl(bn.y,Sn.y,wn.y,Tn.y);e.width=l-e.x,e.height=u-e.y},r})(),z2="silent";function x5(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_5}}function _5(){Aa(this.event)}var b5=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ar),Jo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),S5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_h=new xe(0,0,0,0),V2=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Jo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new b5,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new i5(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(I(S5,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=F2(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Jo(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Jo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=x5(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Jo(t,a);if(m0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new xe(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(_h.copy(h.getBoundingRect()),h.transform&&_h.applyTransform(h.transform),_h.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),x=a+g*Math.sin(m);if(m0(s,o,y,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new g5);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Jo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Ar);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){V2.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=F2(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||qa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function w5(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?z2:!0}return!1}function m0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=w5(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==z2)){e.target=o;break}}}function F2(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var G2=32,Qo=7;function T5(r){for(var e=0;r>=G2;)e|=r&1,r>>=1;return r+e}function y0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;C5(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function C5(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function x0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function bh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function Sh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function A5(r,e){var t=Qo,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var d=a[v],p=n[v],g=a[v+1],m=n[v+1];n[v]=p+m,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var y=Sh(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=bh(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):h(d,p,g,m)))}function f(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,x=p,_=v;if(r[_++]=r[x++],--g===0){for(m=0;m<d;m++)r[_+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y];return}for(var b=t,S,w,A;;){S=0,w=0,A=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,S=0,--g===0){A=!0;break}}else if(r[_++]=o[y++],S++,w=0,--d===1){A=!0;break}while((S|w)<b);if(A)break;do{if(S=Sh(r[x],o,y,d,0,e),S!==0){for(m=0;m<S;m++)r[_+m]=o[y+m];if(_+=S,y+=S,d-=S,d<=1){A=!0;break}}if(r[_++]=r[x++],--g===0){A=!0;break}if(w=bh(o[y],r,x,g,0,e),w!==0){for(m=0;m<w;m++)r[_+m]=r[x+m];if(_+=w,x+=w,g-=w,g===0){A=!0;break}}if(r[_++]=o[y++],--d===1){A=!0;break}b--}while(S>=Qo||w>=Qo);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[_+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,x=g-1,_=p+g-1,b=0,S=0;if(r[_--]=r[y--],--d===0){for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m];return}if(g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x];return}for(var w=t;;){var A=0,C=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],A++,C=0,--d===0){D=!0;break}}else if(r[_--]=o[x--],C++,A=0,--g===1){D=!0;break}while((A|C)<w);if(D)break;do{if(A=d-Sh(o[x],r,v,d,d-1,e),A!==0){for(_-=A,y-=A,d-=A,S=_+1,b=y+1,m=A-1;m>=0;m--)r[S+m]=r[b+m];if(d===0){D=!0;break}}if(r[_--]=o[x--],--g===1){D=!0;break}if(C=g-bh(r[y],o,0,g,g-1,e),C!==0){for(_-=C,x-=C,g-=C,S=_+1,b=x+1,m=0;m<C;m++)r[S+m]=o[b+m];if(g<=1){D=!0;break}}if(r[_--]=r[y--],--d===0){D=!0;break}w--}while(A>=Qo||C>=Qo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x]}else{if(g===0)throw new Error;for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function nc(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<G2){i=y0(r,t,a,e),x0(r,t,a,t+i,e);return}var o=A5(r,e),s=T5(n);do{if(i=y0(r,t,a,e),i<s){var l=n;l>s&&(l=s),x0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var nr=1,Cs=2,io=4,_0=!1;function wh(){_0||(_0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function b0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var D5=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=b0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,nc(a,b0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=nr),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(wh(),c.z=0),isNaN(c.z2)&&(wh(),c.z2=0),isNaN(c.zlevel)&&(wh(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=be(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Ac;Ac=Ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-zs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?zs.bounceIn(r*2)*.5:zs.bounceOut(r*2-1)*.5+.5}},Ql=Math.pow,sn=Math.sqrt,Dc=1e-8,H2=1e-4,S0=sn(3),eu=1/3,Jr=Ci(),xr=Ci(),go=Ci();function Qa(r){return r>-Dc&&r<Dc}function j2(r){return r>Dc||r<-Dc}function mt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function w0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Mc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Qa(c)&&Qa(f))if(Qa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=f*f-4*c*h;if(Qa(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var y=sn(p),x=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);x<0?x=-Ql(-x,eu):x=Ql(x,eu),_<0?_=-Ql(-_,eu):_=Ql(_,eu);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*sn(c*c*c)),S=Math.acos(b)/3,w=sn(c),A=Math.cos(S),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+S0*Math.sin(S)))/(3*o),C=(-s+w*(A-S0*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),C>=0&&C<=1&&(i[v++]=C)}}return v}function W2(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Qa(o)){if(j2(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(Qa(c))n[0]=-i/(2*o);else if(c>0){var f=sn(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function vn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function $2(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;Jr[0]=l,Jr[1]=u;for(var y=0;y<1;y+=.05)xr[0]=mt(r,t,n,o,y),xr[1]=mt(e,a,i,s,y),g=ui(Jr,xr),g<v&&(f=y,v=g);v=1/0;for(var x=0;x<32&&!(h<H2);x++)d=f-h,p=f+h,xr[0]=mt(r,t,n,o,d),xr[1]=mt(e,a,i,s,d),g=ui(xr,Jr),d>=0&&g<v?(f=d,v=g):(go[0]=mt(r,t,n,o,p),go[1]=mt(e,a,i,s,p),m=ui(go,Jr),p<=1&&m<v?(f=p,v=m):h*=.5);return c&&(c[0]=mt(r,t,n,o,f),c[1]=mt(e,a,i,s,f)),sn(v)}function M5(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=mt(r,t,n,o,d),g=mt(e,a,i,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Tt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Qd(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function I5(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Qa(i)){if(j2(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(Qa(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=sn(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function U2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function tl(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Y2(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Jr[0]=o,Jr[1]=s;for(var h=0;h<1;h+=.05){xr[0]=Tt(r,t,n,h),xr[1]=Tt(e,a,i,h);var v=ui(Jr,xr);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<H2);d++){var p=u-c,g=u+c;xr[0]=Tt(r,t,n,p),xr[1]=Tt(e,a,i,p);var v=ui(xr,Jr);if(p>=0&&v<f)u=p,f=v;else{go[0]=Tt(r,t,n,g),go[1]=Tt(e,a,i,g);var m=ui(go,Jr);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Tt(r,t,n,u),l[1]=Tt(e,a,i,u)),sn(f)}function L5(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Tt(r,t,n,h),d=Tt(e,a,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var P5=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yg(r){var e=r&&P5.exec(r);if(e){var t=e[1].split(","),a=+Or(t[0]),n=+Or(t[1]),i=+Or(t[2]),o=+Or(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Mc(0,a,i,1,l,s)&&mt(0,n,o,1,s[0])}}}var k5=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:zs[e]||Yg(e)},r})(),X2=(function(){function r(e){this.value=e}return r})(),R5=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new X2(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ml=(function(){function r(e){this._list=new R5,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new X2(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),T0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zr(r){return r=Math.round(r),r<0?0:r>255?255:r}function E5(r){return r=Math.round(r),r<0?0:r>360?360:r}function rl(r){return r<0?0:r>1?1:r}function Th(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function ci(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?rl(parseFloat(e)/100):rl(parseFloat(e))}function Ch(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function en(r,e,t){return r+(e-r)*t}function dr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ep(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Z2=new Ml(20),tu=null;function Bi(r,e){tu&&ep(tu,e),tu=Z2.put(r,tu||e.slice())}function sr(r,e){if(r){e=e||[];var t=Z2.get(r);if(t)return ep(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in T0)return ep(e,T0[a]),Bi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){dr(e,0,0,0,1);return}return dr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Bi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){dr(e,0,0,0,1);return}return dr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Bi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?dr(e,+u[0],+u[1],+u[2],1):dr(e,0,0,0,1);c=ci(u.pop());case"rgb":if(u.length>=3)return dr(e,Th(u[0]),Th(u[1]),Th(u[2]),u.length===3?c:ci(u[3])),Bi(r,e),e;dr(e,0,0,0,1);return;case"hsla":if(u.length!==4){dr(e,0,0,0,1);return}return u[3]=ci(u[3]),tp(u,e),Bi(r,e),e;case"hsl":if(u.length!==3){dr(e,0,0,0,1);return}return tp(u,e),Bi(r,e),e;default:return}}dr(e,0,0,0,1)}}function tp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ci(r[1]),n=ci(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],dr(e,zr(Ch(o,i,t+1/3)*255),zr(Ch(o,i,t)*255),zr(Ch(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function N5(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,h=((i-a)/6+o/2)/o;e===i?l=h-f:t===i?l=1/3+c-h:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function rp(r,e){var t=sr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return wa(t,t.length===4?"rgba":"rgb")}}function Ah(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=zr(en(o[0],s[0],l)),t[1]=zr(en(o[1],s[1],l)),t[2]=zr(en(o[2],s[2],l)),t[3]=rl(en(o[3],s[3],l)),t}}function O5(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=sr(e[n]),s=sr(e[i]),l=a-n,u=wa([zr(en(o[0],s[0],l)),zr(en(o[1],s[1],l)),zr(en(o[2],s[2],l)),rl(en(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Vs(r,e,t,a){var n=sr(r);if(r)return n=N5(n),e!=null&&(n[0]=E5(e)),t!=null&&(n[1]=ci(t)),a!=null&&(n[2]=ci(a)),wa(tp(n),"rgba")}function Ic(r,e){var t=sr(r);if(t&&e!=null)return t[3]=rl(e),wa(t,"rgba")}function wa(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lc(r,e){var t=sr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var C0=new Ml(100);function ap(r){if(J(r)){var e=C0.get(r);return e||(e=rp(r,-.1),C0.put(r,e)),e}else if(Cf(r)){var t=H({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:rp(a.color,-.1)}}),t}return r}var Pc=Math.round;function al(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=sr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var A0=1e-4;function tn(r){return r<A0&&r>-A0}function ru(r){return Pc(r*1e3)/1e3}function np(r){return Pc(r*1e4)/1e4}function B5(r){return"matrix("+ru(r[0])+","+ru(r[1])+","+ru(r[2])+","+ru(r[3])+","+np(r[4])+","+np(r[5])+")"}var z5={left:"start",right:"end",center:"middle",middle:"middle"};function V5(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function F5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function G5(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function q2(r){return r&&!!r.image}function H5(r){return r&&!!r.svgElement}function Xg(r){return q2(r)||H5(r)}function K2(r){return r.type==="linear"}function J2(r){return r.type==="radial"}function Q2(r){return r&&(r.type==="linear"||r.type==="radial")}function Mf(r){return"url(#"+r+")"}function eT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function tT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*tc,n=he(r.scaleX,1),i=he(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Pc(o*tc)+"deg, "+Pc(s*tc)+"deg)"),l.join(" ")}var j5=(function(){return Ae.hasGlobalWindow&&ie(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),ip=Array.prototype.slice;function ma(r,e,t){return(e-r)*t+r}function Dh(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ma(e[i],t[i],a);return r}function W5(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ma(e[o][s],t[o][s],a)}return r}function au(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function D0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function $5(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function U5(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:ip.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Fs(r){if(Ot(r)){var e=r.length;if(Ot(r[0])){for(var t=[],a=0;a<e;a++)t.push(ip.call(r[a]));return t}return ip.call(r)}return r}function ic(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Y5(r){return Ot(r&&r[0])?2:1}var nu=0,oc=1,rT=2,As=3,op=4,sp=5,M0=6;function I0(r){return r===op||r===sp}function iu(r){return r===oc||r===rT}var es=[0,0,0,0],X5=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=M0,l=t;if(Ot(t)){var u=Y5(t);s=u,(u===1&&!ke(t[0])||u===2&&!ke(t[0][0]))&&(o=!0)}else if(ke(t)&&!Qs(t))s=nu;else if(J(t))if(!isNaN(+t))s=nu;else{var c=sr(t);c&&(l=c,s=As)}else if(Cf(t)){var f=H({},l);f.colorStops=Y(t.colorStops,function(v){return{offset:v.offset,color:sr(v.color)}}),K2(t)?s=op:J2(t)&&(s=sp),l=f}i===0?this.valType=s:(s!==this.valType||s===M0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=ie(a)?a:zs[a]||Yg(a)),n.push(h),h},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=iu(n),u=I0(n),c=0;c<i;c++){var f=a[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?U5(h,v,n):u&&$5(h.colorStops,v.colorStops))}if(!s&&n!==sp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===nu?a[c].additiveValue=a[c].value-d:n===As?a[c].additiveValue=au([],a[c].value,d,-1):iu(n)&&(a[c].additiveValue=n===oc?au([],a[c].value,d,-1):D0([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===As,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?es:e[l];if((iu(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(iu(i))i===oc?Dh(y,v[n],d[n],m):W5(y,v[n],d[n],m);else if(I0(i)){var x=v[n],_=d[n],b=i===op;e[l]={type:b?"linear":"radial",x:ma(x.x,_.x,m),y:ma(x.y,_.y,m),colorStops:Y(x.colorStops,function(w,A){var C=_.colorStops[A];return{offset:ma(w.offset,C.offset,m),color:ic(Dh([],w.color,C.color,m))}}),global:_.global},b?(e[l].x2=ma(x.x2,_.x2,m),e[l].y2=ma(x.y2,_.y2,m)):e[l].r=ma(x.r,_.r,m)}else if(u)Dh(y,v[n],d[n],m),a||(e[l]=ic(y));else{var S=ma(v[n],d[n],m);a?this._additiveValue=S:e[l]=S}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===nu?e[a]=e[a]+n:t===As?(sr(e[a],es),au(es,es,n,1),e[a]=ic(es)):t===oc?au(e[a],e[a],n,1):t===rT&&D0(e[a],e[a],n,1)},r})(),Zg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Fg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Me(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new X5(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===As&&u&&(u=ic(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Fs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Fs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new k5({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Fs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Me(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function co(){return new Date().getTime()}var Z5=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=co()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Ac(a),!t._paused&&t.update())}Ac(a)},e.prototype.start=function(){this._running||(this._time=co(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=co(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=co()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Zg(t,a.loop);return this.addAnimator(n),n},e})(Ar),q5=300,Mh=Ae.domSupported,Ih=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),L0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},P0=!1;function lp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function K5(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Lh(r){r&&(r.zrByTouch=!0)}function J5(r,e){return pr(r.dom,new Q5(r,e),!0)}function aT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var Q5=(function(){function r(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Rr={mousedown:function(r){r=pr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pr(this.dom,r);var e=r.toElement||r.relatedTarget;aT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){P0=!0,r=pr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){P0||(r=pr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pr(this.dom,r),Lh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Rr.mousemove.call(this,r),Rr.mousedown.call(this,r)},touchmove:function(r){r=pr(this.dom,r),Lh(r),this.handler.processGesture(r,"change"),Rr.mousemove.call(this,r)},touchend:function(r){r=pr(this.dom,r),Lh(r),this.handler.processGesture(r,"end"),Rr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<q5&&Rr.click.call(this,r)},pointerdown:function(r){Rr.mousedown.call(this,r)},pointermove:function(r){lp(r)||Rr.mousemove.call(this,r)},pointerup:function(r){Rr.mouseup.call(this,r)},pointerout:function(r){lp(r)||Rr.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){Rr[r]=function(e){e=pr(this.dom,e),this.trigger(r,e)}});var up={pointermove:function(r){lp(r)||up.mousemove.call(this,r)},pointerup:function(r){up.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function eR(r,e){var t=e.domHandlers;Ae.pointerEventsSupported?I(Ih.pointer,function(a){sc(e,a,function(n){t[a].call(r,n)})}):(Ae.touchEventsSupported&&I(Ih.touch,function(a){sc(e,a,function(n){t[a].call(r,n),K5(e)})}),I(Ih.mouse,function(a){sc(e,a,function(n){n=Wg(n),e.touching||t[a].call(r,n)})}))}function tR(r,e){Ae.pointerEventsSupported?I(L0.pointer,t):Ae.touchEventsSupported||I(L0.mouse,t);function t(a){function n(i){i=Wg(i),aT(r,i.target)||(i=J5(r,i),e.domHandlers[a].call(r,i))}sc(e,a,n,{capture:!0})}}function sc(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Jd(r.domTarget,e,t,a)}function Ph(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&p5(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var k0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),rR=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new k0(t,Rr),Mh&&(n._globalHandlerScope=new k0(document,up)),eR(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Ph(this._localHandlerScope),Mh&&Ph(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Mh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?tR(this,a):Ph(a)}},e})(Ar),nT=1;Ae.hasGlobalWindow&&(nT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kc=nT,cp=.4,fp="#333",hp="#ccc",aR="#eee",R0=Df,E0=5e-5;function Cn(r){return r>E0||r<-E0}var An=[],zi=[],kh=or(),Rh=Math.abs,xa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(R0(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):R0(a),e&&(t?Sa(a,e,a):$g(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(An);var a=An[0]<0?-1:1,n=An[1]<0?-1:1,i=((An[0]-a)*t+a)/An[0]||0,o=((An[1]-n)*t+n)/An[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),No(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||or(),Sa(zi,e.invTransform,t),t=zi);var a=this.originX,n=this.originY;(a||n)&&(kh[4]=a,kh[5]=n,Sa(zi,t,kh),zi[4]-=a,zi[5]-=n,t=zi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&It(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&It(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Rh(e[0]-1)>1e-10&&Rh(e[3]-1)>1e-10?Math.sqrt(Rh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){iT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&Ai(t,t,u),t[4]+=a+c,t[5]+=n+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),la=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iT(r,e){for(var t=0;t<la.length;t++){var a=la[t];r[a]=e[a]}}var N0={};function lr(r,e){e=e||fn;var t=N0[e];t||(t=N0[e]=new Ml(500));var a=t.get(r);return a==null&&(a=hn.measureText(r,e).width,t.put(r,a)),a}function O0(r,e,t,a){var n=lr(r,e),i=If(e),o=Ds(0,n,t),s=oo(0,i,a),l=new xe(o,s,n,i);return l}function Il(r,e,t,a){var n=((r||"")+"").split(`
|
|
1
|
+
import{c as _e,l as qe,j as T,r as Ne,o as on,T as po,w as hL,x as vL,a as dL,m as pL,K as gL,y as mL}from"./index-cMDjfUVQ.js";import{A as yL}from"./auth-entry-oOVL70ba.js";import{d as $y}from"./delay-CnY5UFtP.js";import{i as xL}from"./AlertCircle-Njhn01cX.js";import{n as _L,i as bL}from"./ArrowUp-DxvzPWYP.js";import{i as SL}from"./ArrowRight-esEXrLxn.js";import{a as wL,i as TL,b as CL,c as AL,t as DL,n as ML,d as IL,e as LL,f as PL,s as kL,g as RL,h as EL}from"./TrendUp01-B_4HE6HC.js";import{i as NL}from"./CheckCircle-BQxAiBVq.js";import{s as OL}from"./Eye-BsbSF6dM.js";import{i as BL,a as zL}from"./XCircle-DHvjqByD.js";import{a as VL}from"./Package-B0zWER5V.js";import{i as FL}from"./SearchLg-BZaz6095.js";import{i as GL}from"./Shield01-BiDz13pn.js";import{t as HL}from"./Stars01-3-zqXKvS.js";import{i as jL}from"./Zap-Biv_hWgJ.js";import"./input-ChzvExXm.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";function Rg(r){let e=(r??"").trim().toLowerCase();return e=e.replace(/^https?:\/\//,""),e=e.replace(/^www\./,""),e=e.split(/[/?#]/)[0]??"",e.replace(/\/+$/,"")}function WL(r){return(Rg(r).split(".")[0]||r).replace(/[-_]/g," ").split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function _f(r,e=64){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(Rg(r))}&sz=${e}`}function Uy(r,e){const t=r.trim();if(t.length<=e)return t;const a=t.slice(0,e-1),n=a.lastIndexOf(" ");return`${(n>e*.6?a.slice(0,n):a).trimEnd()}…`}function $L(r){const{brand:e,domain:t,score:a,verdict:n}=r,i=typeof a=="number"?`${e} commerce report — ${Math.round(a)}/100 · decocms`:`${e} commerce report · decocms`,o=`See the full ${e} scorecard — SEO, performance, conversion & AEO signals scored by decocms.`,s=n?.trim()?Uy(`${n.trim().replace(/\s+/g," ")} — ${o}`,200):Uy(`How does ${t} really perform? ${o}`,200);return{title:i,description:s}}class p2 extends Error{constructor(e){super(`reports API HTTP ${e}`),this.status=e,this.name="ReportsApiError"}status}function Eg(r){return r instanceof p2&&r.status===401}async function bf(r){if(!r.ok)throw new p2(r.status);return await r.json()}function Fd(r,e){const t=e?`?key=${encodeURIComponent(e)}`:"";return fetch(`/api/_reports/site/${encodeURIComponent(r)}${t}`).then(a=>bf(a))}function UL(r){return fetch("/api/_reports/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>bf(e))}function YL(r){return fetch(`/api/_reports/status?id=${encodeURIComponent(r)}`).then(e=>bf(e))}function XL(r){return fetch(`/api/_reports/link-token/${encodeURIComponent(r)}`).then(e=>bf(e))}const N={bg:"#ffffff",ink:"#282524",muted:"#78726e",faint:"#a6a09d",border:"rgba(40,37,36,0.09)",cardBorder:"rgba(40,37,36,0.06)",inputBorder:"rgba(40,37,36,0.18)",surface:"#ffffff",primary:"#282524",primaryFg:"#ffffff",soft:"#8caa25",lime:"#d0ec1a",limeTint:"#eff6cc",forest:"#07401a",warn:"#f0b613",notice:"#6e9fdb"},at={good:N.soft,bad:"#d43d3d",neutral:N.ink},ZL=[{src:"/logos/summit/fila.svg",alt:"Fila",w:100,h:34},{src:"/logos/summit/osklen.svg",alt:"Osklen",w:152,h:21},{src:"/logos/summit/farm-rio.svg",alt:"Farm Rio",w:159,h:23},{src:"/logos/summit/electrolux.svg",alt:"Electrolux",w:154,h:35},{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",w:116,h:61},{src:"/logos/summit/technos.svg",alt:"Technos",w:141,h:29},{src:"/logos/summit/bagaggio.svg",alt:"Bagaggio",w:149,h:22},{src:"/logos/summit/le-biscuit.svg",alt:"Le Biscuit",w:141,h:24},{src:"/logos/summit/miess.svg",alt:"Miess",w:113,h:43},{src:"/logos/summit/casa-e-video.svg",alt:"Casa & Video",w:145,h:18},{src:"/logos/summit/hering-fill.svg",alt:"Hering",w:140,h:30}],qL=4,KL=2400;function JL(r){const e=Array.from({length:r},()=>[]);return ZL.forEach((t,a)=>e[a%r]?.push(t)),e}function g2(r){const e=_e.c(22),{logos:t,delayMs:a,last:n,bottomRow:i}=r,[o,s]=Ne.useState(0);let l;e[0]!==a||e[1]!==t.length?(l=b=>{if(!b)return;let S;const w=setTimeout(()=>{S=setInterval(()=>s(A=>(A+1)%t.length),KL)},a);return()=>{clearTimeout(w),S&&clearInterval(S)}},e[0]=a,e[1]=t.length,e[2]=l):l=e[2];const u=l,c=t[o%t.length]??t[0];if(!c)return null;const f=Math.min(78/c.w,22/c.h);let h;e[3]!==c.w||e[4]!==f?(h=Math.round(c.w*f),e[3]=c.w,e[4]=f,e[5]=h):h=e[5];const v=h;let d;e[6]!==c.h||e[7]!==f?(d=Math.round(c.h*f),e[6]=c.h,e[7]=f,e[8]=d):d=e[8];const p=d,g=n?void 0:`1px solid ${N.border}`,m=i?`1px solid ${N.border}`:void 0;let y;e[9]!==g||e[10]!==m?(y={borderRight:g,borderTop:m},e[9]=g,e[10]=m,e[11]=y):y=e[11];let x;e[12]!==o||e[13]!==c.alt||e[14]!==c.src||e[15]!==p||e[16]!==v?(x=T.jsx("img",{src:c.src,alt:c.alt,width:v,height:p,className:"logo-carousel-enter block"},o),e[12]=o,e[13]=c.alt,e[14]=c.src,e[15]=p,e[16]=v,e[17]=x):x=e[17];let _;return e[18]!==u||e[19]!==y||e[20]!==x?(_=T.jsx("div",{ref:u,className:"flex flex-1 items-center justify-center overflow-hidden py-3",style:y,children:x}),e[18]=u,e[19]=y,e[20]=x,e[21]=_):_=e[21],_}function QL(){const r=_e.c(1);let e;if(r[0]===Symbol.for("react.memo_cache_sentinel")){const t=JL(qL);e=T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"grid grid-cols-2 overflow-hidden rounded-xl sm:hidden",style:{border:`1px solid ${N.border}`},children:t.map(eP)}),T.jsx("div",{className:"hidden overflow-hidden rounded-xl sm:flex",style:{border:`1px solid ${N.border}`},children:t.map((a,n)=>T.jsx(g2,{logos:a,delayMs:n*380,last:n===t.length-1},a[0]?.src))})]}),r[0]=e}else e=r[0];return e}function eP(r,e){return T.jsx(g2,{logos:r,delayMs:e*380,last:e%2===1,bottomRow:e>=2},r[0]?.src)}function m2(r){const e=_e.c(7),{compact:t}=r,n=(t===void 0?!1:t)?"mt-5 pt-5":"mt-8 pt-6";let i;e[0]!==n?(i=qe(n),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:`1px solid ${N.border}`},e[2]=o):o=e[2];let s,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("p",{className:"mb-4 text-center text-[11px] uppercase tracking-[0.04em]",style:{color:N.faint},children:"Já receberam"}),l=T.jsx(QL,{}),e[3]=s,e[4]=l):(s=e[3],l=e[4]);let u;return e[5]!==i?(u=T.jsxs("div",{className:i,style:o,children:[s,l]}),e[5]=i,e[6]=u):u=e[6],u}let y2=!1;const tP="report:auth-attempt:",rP=3600*1e3;function aP(r){const e=new URLSearchParams(r),t=e.get("share_id")||void 0,a=e.get("email_run_id")||void 0,n=e.get("utm_source")||void 0,i=e.get("utm_medium")||void 0,o=e.get("utm_campaign")||void 0;return{entrypoint:t||n==="share"?"share":a||e.has("d")||n==="email"?"email":n?"campaign":"direct",...t?{share_id:t}:{},...a?{email_run_id:a}:{},...n?{utm_source:n}:{},...i?{utm_medium:i}:{},...o?{utm_campaign:o}:{}}}function x2(){return aP(typeof window>"u"?"":window.location.search)}function Sc(r){return`${tP}${r}`}function nP(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function _2(r){try{const e=window.sessionStorage.getItem(Sc(r));if(!e)return null;const t=JSON.parse(e);return t.domain!==r||typeof t.attempt_id!="string"||typeof t.gate_shown_at!="number"||Date.now()-t.gate_shown_at>rP?(window.sessionStorage.removeItem(Sc(r)),null):t}catch{return null}}function b2(r){try{window.sessionStorage.setItem(Sc(r.domain),JSON.stringify(r))}catch{}}function S2(r){const e=_2(r);if(e)return e;const t={attempt_id:nP(),domain:r,gate_shown_at:Date.now(),...x2()};return b2(t),t}function iP(r,e){const t={...S2(r),...e};return b2(t),t}function Gd(r){return{auth_attempt_id:r.attempt_id,entrypoint:r.entrypoint,...r.share_id?{share_id:r.share_id}:{},...r.email_run_id?{email_run_id:r.email_run_id}:{},...r.utm_source?{utm_source:r.utm_source}:{},...r.utm_medium?{utm_medium:r.utm_medium}:{},...r.utm_campaign?{utm_campaign:r.utm_campaign}:{}}}function oP(r){const e=_2(r);if(!e)return null;try{window.sessionStorage.removeItem(Sc(r))}catch{}return e}function sP(r){const e=r.toLowerCase();return e==="invalid_email"?"invalid_email":e.includes("429")||e.includes("rate limit")?"rate_limited":e.includes("otp")||e.includes("verification code")||e.includes("invalid code")||e.includes("expired code")||e.includes("código")||e.includes("codigo")?"invalid_or_expired_code":e.includes("401")||e.includes("unauthorized")?"invalid_credentials":e.includes("409")||e.includes("already exists")?"account_exists":e.includes("network")||e.includes("fetch")?"network":e.includes("cancel")||e.includes("closed")?"cancelled":"unknown"}function Hd(r){y2=r}function Ke(r,e,t){if(on())try{po.capture(r,{...x2(),...e,...y2?{report_preview:"reviewer"}:{}},t)}catch{}}const lP={otpSendFailed:"Não foi possível enviar o código",invalidCode:"Código inválido",invalidEmail:"Digite um email válido",networkError:"Erro de conexão. Tente novamente.",tooManyAttempts:"Muitas tentativas. Aguarde um momento e tente novamente.",invalidOrExpiredCode:"Código inválido ou expirado. Tente novamente.",genericError:"Algo deu errado. Tente novamente.",verificationCodeTitle:"Digite o código",codeSentTo:r=>`Enviamos um código para ${r}`,continueWith:r=>`Continuar com ${r}`,divider:"ou",emailLabel:"Email",emailPlaceholder:"seu@email.com",sending:"Enviando...",sendCode:"Continuar",verificationCodeLabel:"Código de verificação",enterCodePlaceholder:"Digite o código",verifying:"Verificando...",verify:"Entrar",useDifferentEmail:"Usar outro email"};function uP(r){const e=`/report/${encodeURIComponent(r)}`;return typeof window>"u"?e:`${e}${window.location.search}${window.location.hash}`}const w2=["Velocidade de carregamento abaixo do ideal","Meta tags de SEO incompletas","Checkout com etapas em excesso","Imagens de produto sem otimização","Concorrentes com melhor cobertura"],Yy=72;function Sf(r){const e=_e.c(46),{domain:t}=r,a=2*Math.PI*47;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.bg,color:N.ink,filter:"blur(9px)",fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",transform:"scale(1.025)"},e[0]=n):n=e[0];let i,o;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},o=T.jsx("img",{src:"/logos/deco-logo.svg",alt:"",width:54,height:22,className:"h-[22px] w-auto"}),e[1]=i,e[2]=o):(i=e[1],o=e[2]);let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("div",{className:"shrink-0 px-6 pt-6 sm:px-10",children:T.jsxs("div",{className:"mx-auto flex h-[60px] max-w-[1440px] items-center gap-3 rounded-full border pl-6 pr-4",style:i,children:[o,T.jsx("span",{className:"ml-auto flex h-9 w-24 items-center justify-center rounded-full text-sm font-medium",style:{background:N.primary,color:N.primaryFg},children:"Share"})]})}),e[3]=s):s=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},e[4]=l):l=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={borderBottom:`1px solid ${N.border}`},e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={border:`1px solid ${N.border}`},e[6]=c):c=e[6];let f;e[7]!==t?(f=_f(t),e[7]=t,e[8]=f):f=e[8];let h;e[9]!==f?(h=T.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:c,children:T.jsx("img",{src:f,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=f,e[10]=h):h=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=v):v=e[11];let d;e[12]!==t?(d=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-base",children:[v,t]}),e[12]=t,e[13]=d):d=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=T.jsx("span",{className:"shrink-0 text-[11px] font-medium uppercase tracking-[0.04em]",style:{color:N.soft},children:"Relatório"}),e[14]=p):p=e[14];let g;e[15]!==d||e[16]!==h?(g=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-4",style:u,children:[h,d,p]}),e[15]=d,e[16]=h,e[17]=g):g=e[17];let m;e[18]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("svg",{width:104,height:104,className:"-rotate-90 shrink-0",children:[T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.border,strokeWidth:10}),T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.soft,strokeWidth:10,strokeLinecap:"round",strokeDasharray:a,strokeDashoffset:a*(1-Yy/100)})]}),e[18]=m):m=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=T.jsx("span",{className:"text-[4rem] font-light leading-[0.9] tracking-[-0.02em] tabular-nums",style:{color:N.soft},children:Yy}),e[19]=y):y=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsxs("div",{className:"flex items-baseline gap-2",children:[y,T.jsx("span",{className:"text-xl",style:{color:N.faint},children:"/ 100"})]}),e[20]=x):x=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=T.jsxs("div",{className:"mt-4 flex shrink-0 items-center gap-5",children:[m,T.jsxs("div",{className:"flex flex-col gap-0.5",children:[x,T.jsx("span",{className:"text-[12px] font-medium uppercase tracking-[0.04em]",style:{color:N.soft},children:"Deco Score"})]})]}),e[21]=_):_=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx("h1",{className:"mt-4 max-w-[24ch] text-[1.7rem] font-normal leading-[1.16] tracking-[-0.02em]",style:{color:N.ink},children:"Uma visão completa da sua loja e onde crescer primeiro."}),e[22]=b):b=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=T.jsx("ul",{className:"mt-auto flex flex-col pt-4",children:w2.map(hP)}),e[23]=S):S=e[23];let w;e[24]!==g?(w=T.jsxs("div",{className:"flex min-h-0 flex-col px-5 py-5",children:[g,_,b,S]}),e[24]=g,e[25]=w):w=e[25];let A;e[26]===Symbol.for("react.memo_cache_sentinel")?(A={background:"radial-gradient(circle at 18% 18%, rgba(208,236,26,.45), transparent 35%), radial-gradient(circle at 82% 30%, rgba(152,221,255,.7), transparent 34%), radial-gradient(circle at 60% 86%, rgba(255,183,214,.65), transparent 42%), #f7f5ef"},e[26]=A):A=e[26];let C;e[27]===Symbol.for("react.memo_cache_sentinel")?(C={borderColor:N.border},e[27]=C):C=e[27];let D,M,L,P;e[28]===Symbol.for("react.memo_cache_sentinel")?(D={borderColor:N.border},M=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff6b67]"}),L=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#f5c451]"}),P=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#65c466]"}),e[28]=D,e[29]=M,e[30]=L,e[31]=P):(D=e[28],M=e[29],L=e[30],P=e[31]);let k;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=T.jsxs("div",{className:"mb-3 flex items-center gap-2 border-b pb-3",style:D,children:[M,L,P,T.jsx("span",{className:"ml-3 h-6 flex-1 rounded-full",style:{background:N.bg}})]}),e[32]=k):k=e[32];let R;e[33]===Symbol.for("react.memo_cache_sentinel")?(R=T.jsxs("div",{className:"space-y-3 rounded-xl p-4",style:{background:N.forest},children:[T.jsx("div",{className:"h-3 w-16 rounded-full bg-white/30"}),T.jsx("div",{className:"h-8 w-full rounded-lg bg-white/80"}),T.jsx("div",{className:"h-3 w-4/5 rounded-full bg-white/30"}),T.jsx("div",{className:"mt-8 h-24 rounded-xl bg-white/10"})]}),e[33]=R):R=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("div",{className:"hidden lg:block",children:T.jsx("div",{className:"relative h-full w-full overflow-hidden rounded-2xl",style:A,children:T.jsxs("div",{className:"absolute inset-x-8 top-8 rounded-2xl border bg-white p-3 shadow-xl",style:C,children:[k,T.jsxs("div",{className:"grid h-[330px] grid-cols-[0.72fr_1.28fr] gap-3",children:[R,T.jsx("div",{className:"grid grid-cols-2 gap-3",children:[0,1,2,3].map(fP)})]})]})})}),e[34]=E):E=e[34];let O;e[35]!==w?(O=T.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1280px] flex-col overflow-hidden rounded-[26px]",style:l,children:T.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[w,E]})}),e[35]=w,e[36]=O):O=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx("div",{className:"absolute right-8 top-1/2 flex -translate-y-1/2 flex-col gap-1.5",children:[0,1,2,3,4,5].map(cP)}),e[37]=B):B=e[37];let V;e[38]!==O?(V=T.jsxs("div",{className:"relative min-h-0 flex-1 px-6 py-8 sm:px-10",children:[O,B]}),e[38]=O,e[39]=V):V=e[39];let F;e[40]===Symbol.for("react.memo_cache_sentinel")?(F={borderTop:`1px solid ${N.border}`},e[40]=F):F=e[40];let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=T.jsx("span",{className:"text-sm tabular-nums opacity-50",style:{color:N.ink},children:"01/06"}),e[41]=G):G=e[41];let U;e[42]===Symbol.for("react.memo_cache_sentinel")?(U=T.jsx("span",{className:"flex h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:"Compartilhar"}),e[42]=U):U=e[42];let X;e[43]===Symbol.for("react.memo_cache_sentinel")?(X=T.jsxs("footer",{className:"flex shrink-0 items-center gap-2 px-6 py-4 sm:px-10",style:F,children:[G,T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[U,T.jsx("span",{className:"flex h-12 items-center rounded-full px-6 text-sm font-medium",style:{background:N.primary,color:N.primaryFg},children:"Próximo"})]})]}),e[43]=X):X=e[43];let Z;return e[44]!==V?(Z=T.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-[-18px] flex select-none flex-col overflow-hidden",style:n,children:[s,V,X]}),e[44]=V,e[45]=Z):Z=e[45],Z}function cP(r){return T.jsx("span",{className:"rounded-full",style:{height:r===0?3:2,width:r===0?28:12,background:r===0?N.ink:"rgba(40,37,36,0.22)"}},r)}function fP(r){return T.jsxs("div",{className:"rounded-xl border bg-white p-3",style:{borderColor:N.border},children:[T.jsx("div",{className:"h-24 rounded-lg",style:{background:N.bg}}),T.jsx("div",{className:"mt-3 h-3 w-4/5 rounded-full",style:{background:N.border}}),T.jsx("div",{className:"mt-2 h-3 w-1/2 rounded-full",style:{background:N.border}})]},r)}function hP(r,e){return T.jsx("li",{style:e<w2.length-1?{borderBottom:`1px solid ${N.border}`}:void 0,children:T.jsxs("div",{className:"flex w-full items-center gap-3.5 py-2.5",children:[T.jsx("span",{className:"shrink-0 text-[12px] tabular-nums",style:{color:N.soft},children:String(e+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[15px] opacity-55",style:{color:N.ink,lineHeight:1.3},children:r})]})},r)}function wc(r){const e=_e.c(17),{domain:t,loading:a}=r,n=a===void 0?!1:a;let i;e[0]!==t?(i=d=>{const p="provider"in d?d.provider:void 0,g="mode"in d?d.mode:void 0,y={method:d.method==="social"?p??"social":d.method,provider:p,auth_mode:g},x=iP(t,y),_={domain:t,surface:"deck_v2",...Gd(x),...y};d.type==="started"?Ke("report_auth_started",_):d.type==="otp_sent"?Ke("report_auth_otp_sent",_):d.type==="otp_submitted"?Ke("report_auth_otp_submitted",_):d.type==="failed"&&Ke("report_auth_failed",{..._,failure_stage:d.stage,error_type:sP(d.error)})},e[0]=t,e[1]=i):i=e[1];const o=i;let s;e[2]!==t||e[3]!==n?(s=d=>{if(!d||n)return;const p=S2(t);d.dataset.tracked==="true"||!on()||(d.dataset.tracked="true",Ke("report_auth_gate_shown",{domain:t,surface:"deck_v2",...Gd(p)}))},e[2]=t,e[3]=n,e[4]=s):s=e[4];const l=s;let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[5]=u):u=e[5];let c;e[6]!==t?(c=T.jsx(Sf,{domain:t}),e[6]=t,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/55"}),e[8]=f):f=e[8];let h;e[9]!==t||e[10]!==o||e[11]!==n?(h=T.jsx("div",{className:"relative z-10 flex h-full items-center justify-center px-3 py-5 sm:px-6 sm:py-10",children:n?T.jsx("div",{className:"h-[330px] w-full max-w-[440px] animate-pulse rounded-3xl bg-white card-shadow","aria-label":"Carregando sessão"}):T.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":"Acesse seu relatório",className:"w-full max-w-[440px] rounded-2xl bg-white px-6 py-6 card-shadow sm:rounded-3xl sm:px-8 sm:py-8",children:[T.jsx(yL,{callbackUrl:uP(t),title:"Acesse seu relatório",subtitle:"Entre ou crie sua conta para ver a análise completa.",variant:"compact",allowedSocialProviders:["google"],allowPassword:!1,onAuthEvent:o,brand:T.jsxs("div",{className:"flex items-center justify-between gap-4",children:[T.jsxs("div",{className:"inline-flex min-w-0 items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:N.bg},children:[T.jsx("img",{src:_f(t),alt:"",className:"h-4 w-4 shrink-0 rounded object-contain"}),T.jsx("span",{className:"truncate text-[13px]",style:{color:N.muted},children:t})]}),T.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 shrink-0"})]}),copy:lP}),T.jsx("p",{className:"mt-4 text-xs leading-5",style:{color:N.faint},children:"Acesso gratuito. Leva menos de um minuto."}),T.jsx(m2,{compact:!0})]})}),e[9]=t,e[10]=o,e[11]=n,e[12]=h):h=e[12];let v;return e[13]!==c||e[14]!==h||e[15]!==l?(v=T.jsxs("div",{ref:l,className:"fixed inset-0 overflow-hidden",style:u,children:[c,f,h]}),e[13]=c,e[14]=h,e[15]=l,e[16]=v):v=e[16],v}const Xy=4e3,vP=180;function ec(r,e){for(const t of e??[])Ke("report_slide_dropped",{domain:r,section_type:t.section_type,position:t.position,reason:t.reason,surface:"deck_v2"})}const Ng=r=>`report:pending:${r}`,dP=r=>{try{return JSON.parse(localStorage.getItem(Ng(r))??"null")}catch{return null}},pP=r=>{try{localStorage.setItem(Ng(r),JSON.stringify({startedAt:Date.now()}))}catch{}},Ni=r=>{try{localStorage.removeItem(Ng(r))}catch{}};async function gP(r,e,t,a){try{Ke("report_scan_triggered",{domain:r,surface:"deck_v2"});const n=await UL({domain:r,distinctId:e});if(t.aborted)return;if(n.state==="blocked")return Ni(r),Ke("report_scan_failed",{domain:r,phase:"blocked",reason:"blocked",surface:"deck_v2"}),a.onPhase("blocked");const i=n.state==="running"?n.id:null;n.state==="running"&&(a.onPhase("pending"),Ke("report_pending_screen_shown",{domain:r,surface:"deck_v2"}),pP(r));for(let o=0;o<vP&&!t.aborted;o++){const s=await Fd(r);if(t.aborted)return;if(s.status==="ready"&&s.deck)return Ni(r),ec(r,s.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(s.deck);if(i){const l=await YL(i);if(t.aborted)return;if(l.done){await $y(Xy,{signal:t});const u=await Fd(r);return t.aborted?void 0:u.status==="ready"&&u.deck?(Ni(r),ec(r,u.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(u.deck)):(ec(r,u.drops),Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"run_finished_empty",surface:"deck_v2"}),a.onPhase("empty"))}}await $y(Xy,{signal:t})}t.aborted||(Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"poll_timeout",surface:"deck_v2"}),a.onPhase("empty"))}catch(n){if(!t.aborted){Ni(r);const i=Eg(n);Ke("report_scan_failed",{domain:r,phase:i?"unauthorized":"error",reason:i?"unauthorized":"exception",surface:"deck_v2"}),a.onPhase(i?"unauthorized":"error")}}}const mP={share:EL,arrow_forward:SL,arrow_upward:bL,arrow_downward:_L,info:RL,warning:vL,flag:kL,lock:hL,link:zL,leaderboard:PL,checklist:LL,notifications_active:IL,package_2:VL,check_circle:NL,cancel:BL,error:xL,trending_up:ML,trending_down:DL,bolt:jL,search:FL,shopping_cart:AL,monitoring:CL,accessibility_new:OL,shield:GL,article:TL,smart_toy:HL,bar_chart:wL},yP={xs:12,small:14,medium:16,large:18,xl:20,xxl:32,40:40,immense:80};function dt(r){const e=_e.c(4),{name:t,size:a,class:n}=r,i=a===void 0?"medium":a,o=n===void 0?"":n,s=mP[t];if(!s)return null;const l=yP[i];let u;return e[0]!==s||e[1]!==o||e[2]!==l?(u=T.jsx(s,{size:l,className:o}),e[0]=s,e[1]=o,e[2]=l,e[3]=u):u=e[3],u}function T2(r){return`/commerce-onboarding?siteUrl=${encodeURIComponent(r)}`}function wf(r,e){Ke("report_cta_clicked",{domain:e.domain,placement:e.placement,destination:"studio_onboarding",...e.slideKey!==void 0?{slide_key:e.slideKey}:{},...e.slideIndex!==void 0?{slide_index:e.slideIndex}:{},surface:"deck_v2"},{transport:"sendBeacon"})}const Ee=r=>`https://www.google.com/s2/favicons?domain=${r}&sz=64`,xP={"google analytics 4":Ee("analytics.google.com"),ga4:Ee("analytics.google.com"),"google analytics":Ee("analytics.google.com"),"google search console":Ee("search.google.com"),"search console":Ee("search.google.com"),gsc:Ee("search.google.com"),"gsc url inspection":Ee("search.google.com"),"google tag manager":Ee("tagmanager.google.com"),gtm:Ee("tagmanager.google.com"),"google ads":Ee("ads.google.com"),"keyword planner":Ee("ads.google.com"),"merchant center":Ee("merchants.google.com"),"google merchant center":Ee("merchants.google.com"),"pagespeed insights":Ee("pagespeed.web.dev"),psi:Ee("pagespeed.web.dev"),lighthouse:Ee("developer.chrome.com"),"chrome ux report":Ee("developer.chrome.com"),crux:Ee("developer.chrome.com"),"chrome devtools":Ee("developer.chrome.com"),webpagetest:Ee("webpagetest.org"),semrush:Ee("semrush.com"),similarweb:Ee("similarweb.com"),ahrefs:Ee("ahrefs.com"),moz:Ee("moz.com"),"screaming frog":Ee("screamingfrog.co.uk"),builtwith:Ee("builtwith.com"),microlink:Ee("microlink.io"),apify:Ee("apify.com"),firecrawl:Ee("firecrawl.dev"),"reclame aqui":Ee("reclameaqui.com.br"),instagram:Ee("instagram.com"),meta:Ee("meta.com"),"meta business manager":Ee("business.facebook.com"),vtex:Ee("vtex.com"),"vtex oms":Ee("vtex.com"),shopify:Ee("shopify.com"),linx:Ee("linx.com.br"),wake:Ee("wake.com")};function Zy(r,e){return e||(xP[r.toLowerCase().trim()]??"")}function rr(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,active:i}=r;let o;if(e[0]!==a){let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=/\s*\n\s*/g,e[2]=p):p=e[2],o=a.replace(p," "),e[0]=a,e[1]=o}else o=e[1];const s=o,l=i?"true":"false";let u;e[3]!==t||e[4]!==l?(u=t&&T.jsx("p",{className:"reveal deck-eyebrow","data-show":l,children:t}),e[3]=t,e[4]=l,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==l||e[8]!==s?(f=T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.14] tracking-[-0.02em] text-[min(clamp(1.3125rem,4.8vw,2.5rem),2.9svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.25rem] lg:max-w-[20ch]","data-show":l,style:c,children:s}),e[7]=l,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==i||e[11]!==n||e[12]!==l?(h=n&&T.jsx("p",{className:"reveal max-w-[44ch] shrink-0 text-[min(13px,1.9svh)] leading-snug sm:pt-1 sm:text-[14px] sm:leading-relaxed","data-show":l,style:{color:N.muted,transitionDelay:i?"90ms":"0ms"},children:n}),e[10]=i,e[11]=n,e[12]=l,e[13]=h):h=e[13];let v;e[14]!==f||e[15]!==h?(v=T.jsxs("div",{className:"flex flex-col gap-[min(0.625rem,1svh)] sm:flex-row sm:items-start sm:justify-between sm:gap-12",children:[f,h]}),e[14]=f,e[15]=h,e[16]=v):v=e[16];let d;return e[17]!==u||e[18]!==v?(d=T.jsxs("header",{className:"flex shrink-0 flex-col gap-[min(0.625rem,1svh)] px-5 pt-2 sm:gap-3 sm:px-10 lg:px-16",children:[u,v]}),e[17]=u,e[18]=v,e[19]=d):d=e[19],d}const vh=18;function _P(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(1rem,1.9svh)] sm:gap-4":"gap-[min(1.625rem,2.8svh)] sm:gap-9";let c;e[5]!==u?(c=qe("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=at[p.tone??"neutral"],y=Math.max(1,Math.min(vh,Math.round(p.ratio*vh)));return T.jsxs("div",{className:qe("reveal flex flex-col",s?"gap-1.5":"gap-2 sm:gap-2.5"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[T.jsx("span",{className:qe("min-w-0 flex-1 tracking-[-0.01em]",s?"line-clamp-2 break-words text-sm leading-snug sm:text-base":"truncate text-sm sm:text-base"),style:{color:N.muted},children:p.label}),T.jsx("span",{className:qe("shrink-0 font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.375rem,3.5vw,1.75rem),3svh)]":"text-[min(clamp(1.5rem,4.5vw,2.5rem),3.4svh)] sm:text-[clamp(1.5rem,3vw,2.5rem)]"),style:{color:m},children:p.value})]}),T.jsx("div",{className:"flex gap-[3px]",children:Array.from({length:vh},(x,_)=>T.jsx("span",{className:qe("flex-1 rounded-[2px]",s?"h-2.5 sm:h-3":"h-3 sm:h-3.5"),style:{background:o&&_<y?m:"rgba(40,37,36,0.08)",transition:"background-color 240ms ease",transitionDelay:o&&_<y?`${180+g*90+_*24}ms`:"0ms"}},_))})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}const bP={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},warn:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},jd=33,dh=2*Math.PI*jd;function SP(r){const e=r?.match(/^(.*?)\s*\((.+)\)$/);return e?{band:e[1]??"",count:e[2]}:{band:r??""}}function wP(r){const e=_e.c(15),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o?(f=(h,v)=>{const d=bP[h.status],p=Math.min(1,Math.max(0,h.ratio??0)),{band:g,count:m}=SP(h.caption);return T.jsxs("div",{className:"reveal flex flex-col items-center rounded-2xl px-2 py-[min(0.875rem,1.6svh)] text-center sm:px-4 sm:py-5","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?`${100+v*80}ms`:"0ms"},children:[T.jsxs("div",{className:"relative h-[min(4.25rem,9svh)] w-[min(4.25rem,9svh)] sm:h-20 sm:w-20",children:[T.jsxs("svg",{viewBox:"0 0 80 80",className:"h-full w-full -rotate-90",children:[T.jsx("circle",{cx:"40",cy:"40",r:jd,fill:"none",stroke:d.tint,strokeWidth:"7"}),T.jsx("circle",{cx:"40",cy:"40",r:jd,fill:"none",stroke:d.color,strokeWidth:"7",strokeLinecap:"round",strokeDasharray:dh,strokeDashoffset:o?dh*(1-p):dh,className:"transition-[stroke-dashoffset] duration-1000 ease-out",style:{transitionDelay:o?`${200+v*80}ms`:"0ms"}})]}),T.jsx("span",{className:"absolute inset-0 flex items-center justify-center font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.375rem,3svh)] sm:text-2xl",style:{color:d.color},children:h.value})]}),T.jsx("span",{className:"mt-[min(0.5rem,1svh)] line-clamp-2 text-[13px] font-medium leading-tight sm:mt-2.5 sm:text-sm",style:{color:N.ink},children:h.label}),T.jsx("span",{className:"mt-1.5 inline-block rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:{color:d.color,background:d.tint},children:g}),m&&T.jsx("span",{className:"mt-1 hidden text-[11px] sm:block",style:{color:N.muted,opacity:.8},children:m})]},v)},e[8]=o,e[9]=f):f=e[9],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[10]!==l?(u=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.8svh)] sm:px-10 sm:py-4 lg:px-16",children:T.jsx("div",{className:"my-auto grid w-full grid-cols-2 gap-2.5 sm:grid-cols-3 sm:gap-4",children:l})}),e[10]=l,e[11]=u):u=e[11];let c;return e[12]!==s||e[13]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[12]=s,e[13]=u,e[14]=c):c=e[14],c}const qy={pass:{color:at.good,icon:"check_circle"},fail:{color:at.bad,icon:"cancel"},warn:{color:N.warn,icon:"error"}};function TP(r){const e=_e.c(16),{eyebrow:t,headline:a,annotation:n,checks:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o||e[9]!==i.length?(f=(h,v)=>{const d=qy[h.status]??qy.fail;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(0.875rem,1.5svh)] sm:py-4","data-show":o?"true":"false",style:{...v<i.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:o?`${60+v*55}ms`:"0ms"},children:[T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:d.color},children:T.jsx(dt,{name:d.icon,size:"large"})}),T.jsx("span",{className:"min-w-0 flex-[2] text-[15px] leading-snug sm:text-lg",style:{color:N.ink},children:h.label}),h.value&&T.jsx("span",{className:"min-w-0 flex-1 truncate text-right text-[13px] font-medium tabular-nums sm:text-base",style:{color:d.color},title:h.value,children:h.value})]},v)},e[8]=o,e[9]=i.length,e[10]=f):f=e[10],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[11]!==l?(u=T.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 sm:px-10 lg:px-16",children:T.jsx("div",{className:"flex min-h-full flex-col justify-center py-3",children:T.jsx("ul",{className:"w-full",children:l})})}),e[11]=l,e[12]=u):u=e[12];let c;return e[13]!==s||e[14]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[13]=s,e[14]=u,e[15]=c):c=e[15],c}function Og(r){return T2(`https://${r}/`)}function CP(r){const e=r.trim().replace(/^https?:\/\//,"").split("/")[0]??"";return/\./.test(e)?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`:null}function AP(r){const e=_e.c(5),{initial:t,faviconUrl:a}=r,[n,i]=Ne.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:`1px solid ${N.border}`,boxShadow:"0 1px 1px rgba(40,37,36,0.04),0 3px 9px rgba(40,37,36,0.04),0 6px 18px rgba(40,37,36,0.02)"},e[0]=o):o=e[0];let s;return e[1]!==n||e[2]!==a||e[3]!==t?(s=T.jsx("span",{className:"grid size-9 shrink-0 place-items-center overflow-hidden rounded-[10px] bg-white sm:size-10",style:o,children:a&&!n?T.jsx("img",{src:a,alt:"",className:"h-full w-full object-contain p-2",onError:()=>i(!0)}):T.jsx("span",{className:"text-lg font-medium",style:{color:N.muted},children:t})}),e[1]=n,e[2]=a,e[3]=t,e[4]=s):s=e[4],s}function DP(r){const e=_e.c(34),{eyebrow:t,headline:a,annotation:n,metricLabel:i,competitors:o,faviconUrl:s,domain:l,active:u}=r,c=Og(l);let f;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=f):f=e[4];let h,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.muted},v=T.jsx("span",{className:"flex-1",children:"Concorrente"}),e[5]=h,e[6]=v):(h=e[5],v=e[6]);let d;e[7]!==i?(d=i&&T.jsx("span",{children:i}),e[7]=i,e[8]=d):d=e[8];let p;e[9]!==d?(p=T.jsxs("div",{className:"flex items-center gap-3 px-4 pb-2 text-[11px] font-medium uppercase tracking-[0.04em]",style:h,children:[v,d]}),e[9]=d,e[10]=p):p=e[10];let g;if(e[11]!==u||e[12]!==o||e[13]!==s){let A;e[15]!==u||e[16]!==s?(A=(C,D)=>{const M=C.isYou?N.muted:at[C.tone??"neutral"];return T.jsxs("li",{className:"reveal flex items-center gap-3 rounded-xl px-3 py-[min(0.5rem,1svh)]","data-show":u?"true":"false",style:{...C.isYou?{background:N.surface,border:`1px solid ${N.border}`}:{},transitionDelay:u?`${60+D*60}ms`:"0ms"},children:[T.jsx(AP,{initial:(C.name[0]??"?").toUpperCase(),faviconUrl:C.isYou?s:CP(C.name)}),T.jsx("span",{className:"flex-1 truncate text-[15px] sm:text-lg",style:{color:N.ink},children:C.name}),T.jsx("span",{className:"shrink-0 text-lg font-light tabular-nums tracking-[-0.02em] sm:text-2xl",style:{color:M},children:C.value})]},D)},e[15]=u,e[16]=s,e[17]=A):A=e[17],g=o.map(A),e[11]=u,e[12]=o,e[13]=s,e[14]=g}else g=e[14];let m;e[18]!==g?(m=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:T.jsx("ul",{className:"my-auto flex flex-col gap-[min(0.375rem,0.8svh)] py-1",children:g})}),e[18]=g,e[19]=m):m=e[19];const y=c.startsWith("http")?"_blank":"_self";let x;e[20]!==l?(x=A=>wf(A,{domain:l,placement:"competitor_slide_edit"}),e[20]=l,e[21]=x):x=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[22]=_):_=e[22];let b;e[23]!==c||e[24]!==y||e[25]!==x?(b=T.jsx("div",{className:"flex shrink-0 justify-center py-[min(1rem,2.4svh)] sm:py-5",children:T.jsx("a",{href:c,target:y,rel:"noopener noreferrer",onClick:x,className:"inline-flex h-11 items-center rounded-full border px-7 text-[15px] font-medium transition-colors hover:bg-black/[0.03] sm:h-12 sm:px-8 sm:text-base",style:_,children:"Editar meus concorrentes"})}),e[23]=c,e[24]=y,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==b||e[28]!==p||e[29]!==m?(S=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-4 sm:px-10 lg:px-16",children:[p,m,b]}),e[27]=b,e[28]=p,e[29]=m,e[30]=S):S=e[30];let w;return e[31]!==f||e[32]!==S?(w=T.jsxs("div",{className:"flex h-full flex-col",children:[f,S]}),e[31]=f,e[32]=S,e[33]=w):w=e[33],w}function Ky(r){const e=_e.c(10),{url:t,initial:a,size:n}=r,[i,o]=Ne.useState(!1);let s;e[0]!==n?(s={width:n,height:n,borderColor:N.border},e[0]=n,e[1]=s):s=e[1];let l;e[2]!==i||e[3]!==a||e[4]!==n||e[5]!==t?(l=i?T.jsx("span",{className:"font-medium",style:{fontSize:n*.42,color:N.muted},children:a}):T.jsx("img",{src:t,alt:"",width:n,height:n,className:"h-full w-full object-contain p-1.5",onError:()=>o(!0)}),e[2]=i,e[3]=a,e[4]=n,e[5]=t,e[6]=l):l=e[6];let u;return e[7]!==s||e[8]!==l?(u=T.jsx("span",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl border bg-white",style:s,children:l}),e[7]=s,e[8]=l,e[9]=u):u=e[9],u}function Jy(r){const e=_e.c(36),{domain:t,faviconUrl:a,initial:n,desktopShot:i,mobileShot:o,hidePhone:s}=r,l=s===void 0?!1:s,[u,c]=Ne.useState(i?"loading":"fail"),[f,h]=Ne.useState(o?"loading":"fail"),v=!l&&"pb-10 pl-8";let d;e[0]!==v?(d=qe("relative w-full max-w-[560px]",v),e[0]=v,e[1]=d):d=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.05), 0 28px 56px -22px rgba(40,37,36,0.30)"},e[2]=p):p=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g={background:"#f4f2ec",borderBottom:`1px solid ${N.border}`},e[3]=g):g=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("span",{className:"flex gap-1.5",children:[T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"})]}),e[4]=m):m=e[4];let y,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={background:"#fff"},x=T.jsx(dt,{name:"lock",size:"xs",class:"opacity-50"}),e[5]=y,e[6]=x):(y=e[5],x=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},e[7]=_):_=e[7];let b;e[8]!==t?(b=T.jsxs("div",{className:"flex h-9 items-center gap-2 px-4",style:g,children:[m,T.jsxs("span",{className:"mx-2 flex h-5 flex-1 items-center gap-2 rounded-md px-2.5",style:y,children:[x,T.jsx("span",{className:"truncate text-xs",style:_,children:t})]})]}),e[8]=t,e[9]=b):b=e[9];let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S={background:"#f4f2ec"},e[10]=S):S=e[10];let w;e[11]!==u||e[12]!==a||e[13]!==n?(w=u!=="ok"&&T.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 animate-pulse",children:[T.jsx(Ky,{url:a,initial:n,size:44}),T.jsx("span",{className:"text-xs",style:{color:N.muted},children:u==="loading"?"capturing preview…":"preview unavailable"})]}),e[11]=u,e[12]=a,e[13]=n,e[14]=w):w=e[14];let A;e[15]!==i||e[16]!==t||e[17]!==u?(A=i&&T.jsx("img",{src:i,alt:`${t} homepage`,className:qe("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",u==="ok"?"opacity-100":"opacity-0"),onLoad:()=>c("ok"),onError:()=>c("fail"),loading:"eager"}),e[15]=i,e[16]=t,e[17]=u,e[18]=A):A=e[18];let C;e[19]!==w||e[20]!==A?(C=T.jsxs("div",{className:"relative aspect-[4/3]",style:S,children:[w,A]}),e[19]=w,e[20]=A,e[21]=C):C=e[21];let D;e[22]!==b||e[23]!==C?(D=T.jsxs("div",{className:"overflow-hidden rounded-2xl bg-white",style:p,children:[b,C]}),e[22]=b,e[23]=C,e[24]=D):D=e[24];let M;e[25]!==t||e[26]!==a||e[27]!==l||e[28]!==n||e[29]!==o||e[30]!==f?(M=!l&&f!=="fail"&&T.jsx("div",{className:"absolute bottom-0 left-0 w-[26%] max-w-[136px]",children:T.jsxs("div",{className:"rounded-[1.5rem] p-1.5",style:{background:"#fff",boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.06), 0 18px 36px -16px rgba(40,37,36,0.36)"},children:[T.jsx("div",{className:"flex h-5 items-center justify-center",children:T.jsx("span",{className:"h-1.5 w-9 rounded-full bg-black/15"})}),T.jsxs("div",{className:"relative aspect-[9/19] overflow-hidden rounded-[1.05rem]",style:{background:"#f4f2ec"},children:[f!=="ok"&&T.jsx("div",{className:"absolute inset-0 flex items-center justify-center animate-pulse",children:T.jsx(Ky,{url:a,initial:n,size:26})}),o&&T.jsx("img",{src:o,alt:`${t} mobile`,className:qe("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",f==="ok"?"opacity-100":"opacity-0"),style:{transform:"scale(1.14) translateY(-6%)",transformOrigin:"50% 0%"},onLoad:()=>h("ok"),onError:()=>h("fail"),loading:"eager"})]})]})}),e[25]=t,e[26]=a,e[27]=l,e[28]=n,e[29]=o,e[30]=f,e[31]=M):M=e[31];let L;return e[32]!==D||e[33]!==M||e[34]!==d?(L=T.jsxs("div",{className:d,children:[D,M]}),e[32]=D,e[33]=M,e[34]=d,e[35]=L):L=e[35],L}function C2(r){return r>=61?at.good:r>=41?N.warn:at.bad}const MP="A composite score from 0–100 measuring your store's commerce performance across page speed, SEO signals, conversion experience, and technical health. Higher is better.";function Qy(r){const e=_e.c(54),{score:t,active:a,compact:n}=r,[i,o]=Ne.useState(0);let s;e[0]!==t.value?(s=C2(t.value),e[0]=t.value,e[1]=s):s=e[1];const l=s,u=n?66:104,c=n?7:10,[f,h]=Ne.useState(!1),v=Ne.useRef(null);let d;e[2]!==a||e[3]!==t.value?(d=W=>{if(!W||!a)return;const j=t.value;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){o(j);return}let K=0,Se=0;const ye=we=>{Se||(Se=we);const ve=Math.min(1,(we-Se)/1100);o(j*(1-(1-ve)**3)),ve<1&&(K=requestAnimationFrame(ye))};return K=requestAnimationFrame(ye),()=>cancelAnimationFrame(K)},e[2]=a,e[3]=t.value,e[4]=d):d=e[4];const p=d;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=W=>{if(!W)return;const j=K=>{v.current&&!v.current.contains(K.target)&&h(!1)};return document.addEventListener("mousedown",j),document.addEventListener("touchstart",j),()=>{document.removeEventListener("mousedown",j),document.removeEventListener("touchstart",j)}},e[5]=g):g=e[5];const m=g,y=Math.min(100,Math.max(0,i)),x=(u-c)/2,_=2*Math.PI*x,b=u/2,S=u/2;let w;e[6]!==x||e[7]!==c||e[8]!==b||e[9]!==S?(w=T.jsx("circle",{cx:b,cy:S,r:x,fill:"none",stroke:N.border,strokeWidth:c}),e[6]=x,e[7]=c,e[8]=b,e[9]=S,e[10]=w):w=e[10];const A=u/2,C=u/2,D=_*(1-y/100);let M;e[11]!==_||e[12]!==x||e[13]!==c||e[14]!==A||e[15]!==C||e[16]!==D||e[17]!==l?(M=T.jsx("circle",{cx:A,cy:C,r:x,fill:"none",stroke:l,strokeWidth:c,strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:D}),e[11]=_,e[12]=x,e[13]=c,e[14]=A,e[15]=C,e[16]=D,e[17]=l,e[18]=M):M=e[18];let L;e[19]!==u||e[20]!==M||e[21]!==w?(L=T.jsxs("svg",{width:u,height:u,className:"-rotate-90 shrink-0",children:[w,M]}),e[19]=u,e[20]=M,e[21]=w,e[22]=L):L=e[22];let P;e[23]!==l?(P={color:l},e[23]=l,e[24]=P):P=e[24];let k;e[25]!==i?(k=Math.round(i),e[25]=i,e[26]=k):k=e[26];let R;e[27]!==P||e[28]!==k?(R=T.jsx("span",{className:"font-light leading-[0.9] tracking-[-0.02em] tabular-nums text-[2.4rem] lg:text-[4rem]",style:P,children:k}),e[27]=P,e[28]=k,e[29]=R):R=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("span",{className:"text-sm lg:text-xl",style:{color:N.faint},children:"/ 100"}),e[30]=E):E=e[30];let O;e[31]!==R?(O=T.jsxs("div",{className:"flex items-baseline gap-2",children:[R,E]}),e[31]=R,e[32]=O):O=e[32];let B;e[33]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.04em] lg:text-[12px]",style:{color:N.soft},children:"Deco Score"}),e[33]=B):B=e[33];const V=f?.8:.45;let F;e[34]!==V?(F={opacity:V},e[34]=V,e[35]=F):F=e[35];let G,U,X,Z;e[36]===Symbol.for("react.memo_cache_sentinel")?(G=()=>h(!0),U=()=>h(!1),X=()=>h(IP),Z=T.jsx(dt,{name:"info",size:"medium",class:""}),e[36]=G,e[37]=U,e[38]=X,e[39]=Z):(G=e[36],U=e[37],X=e[38],Z=e[39]);let Q;e[40]!==F?(Q=T.jsx("button",{type:"button","aria-label":"What is the Deco Score?",className:"flex items-center justify-center rounded-full transition-opacity",style:F,onMouseEnter:G,onMouseLeave:U,onClick:X,children:Z}),e[40]=F,e[41]=Q):Q=e[41];let pe;e[42]!==f?(pe=f&&T.jsx("div",{ref:m,className:"absolute left-0 top-full z-50 mt-2 w-72 rounded-xl px-4 py-3.5 text-sm leading-[1.6] shadow-xl",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.ink,boxShadow:"0 4px 6px rgba(40,37,36,0.06), 0 12px 32px rgba(40,37,36,0.12)"},children:MP}),e[42]=f,e[43]=pe):pe=e[43];let ce;e[44]!==Q||e[45]!==pe?(ce=T.jsxs("div",{ref:v,className:"relative flex items-center gap-1",children:[B,Q,pe]}),e[44]=Q,e[45]=pe,e[46]=ce):ce=e[46];let ne;e[47]!==O||e[48]!==ce?(ne=T.jsxs("div",{className:"flex flex-col gap-0.5",children:[O,ce]}),e[47]=O,e[48]=ce,e[49]=ne):ne=e[49];let te;return e[50]!==p||e[51]!==L||e[52]!==ne?(te=T.jsxs("div",{ref:p,className:"flex shrink-0 items-center gap-3.5 lg:gap-5",children:[L,ne]}),e[50]=p,e[51]=L,e[52]=ne,e[53]=te):te=e[53],te}function IP(r){return!r}function e0(r){const e=_e.c(20),{deviceCluster:t,className:a,innerClassName:n,padClassName:i,alignClassName:o}=r,s=a===void 0?"":a,l=n===void 0?"max-w-[520px]":n,u=i===void 0?"p-4 sm:p-6":i,c=o===void 0?"items-center":o;let f;e[0]!==s?(f=qe("deco-art relative overflow-hidden",s),e[0]=s,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"holo-art-base absolute inset-0 z-0","aria-hidden":!0}),e[2]=h):h=e[2];let v;e[3]!==c||e[4]!==u?(v=qe("relative z-10 flex h-full w-full justify-center",c,u),e[3]=c,e[4]=u,e[5]=v):v=e[5];let d;e[6]!==l?(d=qe("w-full",l),e[6]=l,e[7]=d):d=e[7];let p;e[8]!==t||e[9]!==d?(p=T.jsx("div",{className:d,children:t}),e[8]=t,e[9]=d,e[10]=p):p=e[10];let g;e[11]!==v||e[12]!==p?(g=T.jsx("div",{className:v,children:p}),e[11]=v,e[12]=p,e[13]=g):g=e[13];let m,y,x;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("div",{className:"holo-artfoil pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),y=T.jsx("div",{className:"holo-sparkle pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),x=T.jsx("div",{className:"holo-artglare pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),e[14]=m,e[15]=y,e[16]=x):(m=e[14],y=e[15],x=e[16]);let _;return e[17]!==g||e[18]!==f?(_=T.jsxs("div",{className:f,children:[h,g,m,y,x]}),e[17]=g,e[18]=f,e[19]=_):_=e[19],_}function LP(r){const e=_e.c(73),{headline:t,score:a,screenshot:n,mobileScreenshot:i,faviconUrl:o,domain:s,initial:l,active:u,findings:c,onFindingClick:f}=r,h=u===void 0?!1:u,[v,d]=Ne.useState(h),[p,g]=Ne.useState(h?1:0);h!==v&&(d(h),h&&g(PP));const m=Ne.useRef(null),y=Ne.useRef(0);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={rx:0,ry:0,trx:0,tryy:0,hovering:!1},e[0]=x):x=e[0];const _=Ne.useRef(x);let b;if(e[1]===Symbol.for("react.memo_cache_sentinel")){const ft=()=>{const ht=m.current,vt=_.current;if(!ht){y.current=0;return}vt.rx=vt.rx+(vt.trx-vt.rx)*.12,vt.ry=vt.ry+(vt.tryy-vt.ry)*.12,ht.style.setProperty("--rx",`${vt.rx.toFixed(3)}deg`),ht.style.setProperty("--ry",`${vt.ry.toFixed(3)}deg`);const Zo=Math.abs(vt.trx-vt.rx)<.02&&Math.abs(vt.tryy-vt.ry)<.02;vt.hovering||!Zo?y.current=requestAnimationFrame(ft):y.current=0};b=()=>{y.current||(y.current=requestAnimationFrame(ft))},e[1]=b}else b=e[1];const S=b;let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=ft=>{const ht=m.current;if(!ht)return;const vt=ht.getBoundingClientRect(),Zo=(ft.clientX-vt.left)/vt.width,fh=(ft.clientY-vt.top)/vt.height,hh=_.current;hh.hovering=!0,hh.trx=(.5-fh)*28,hh.tryy=(Zo-.5)*28,ht.style.setProperty("--mx",`${(Zo*100).toFixed(1)}%`),ht.style.setProperty("--my",`${(fh*100).toFixed(1)}%`),ht.style.setProperty("--posx",`${(20+Zo*60).toFixed(1)}%`),ht.style.setProperty("--posy",`${(20+fh*60).toFixed(1)}%`),ht.style.setProperty("--active","1"),S()},e[2]=w):w=e[2];const A=w;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const ft=m.current;if(!ft)return;const ht=_.current;ht.hovering=!1,ht.trx=0,ht.tryy=0,ft.style.setProperty("--mx","50%"),ft.style.setProperty("--my","50%"),ft.style.setProperty("--posx","50%"),ft.style.setProperty("--posy","50%"),ft.style.setProperty("--active","0"),S()},e[3]=C):C=e[3];const D=C;let M;e[4]===Symbol.for("react.memo_cache_sentinel")?(M=ft=>(m.current=ft,()=>cancelAnimationFrame(y.current)),e[4]=M):M=e[4];const L=M;let P;e[5]!==a?(P=a?C2(a.value):N.ink,e[5]=a,e[6]=P):P=e[6];const k=P;let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R={borderBottom:`1px solid ${N.border}`},e[7]=R):R=e[7];let E;e[8]===Symbol.for("react.memo_cache_sentinel")?(E={width:40,height:40,border:`1px solid ${N.border}`,boxShadow:"0 0.714px 0.714px rgba(0,0,0,0.04),0 4.286px 17.143px rgba(0,0,0,0.01),0 6.429px 34.286px rgba(0,0,0,0.09)"},e[8]=E):E=e[8];let O;e[9]!==o?(O=T.jsx("div",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:E,children:T.jsx("img",{src:o,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=o,e[10]=O):O=e[10];let B,V;e[11]===Symbol.for("react.memo_cache_sentinel")?(B={color:N.ink},V=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=B,e[12]=V):(B=e[11],V=e[12]);let F;e[13]!==s?(F=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm lg:text-base",style:B,children:[V,s]}),e[13]=s,e[14]=F):F=e[14];let G;e[15]===Symbol.for("react.memo_cache_sentinel")?(G=T.jsx("span",{className:"shrink-0 text-[10px] font-medium uppercase tracking-[0.04em] lg:text-[11px]",style:{color:N.soft},children:"Relatório"}),e[15]=G):G=e[15];let U;e[16]!==O||e[17]!==F?(U=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-3.5 lg:gap-4 lg:pb-4",style:R,children:[O,F,G]}),e[16]=O,e[17]=F,e[18]=U):U=e[18];const X=U,Z=h&&p>0?"true":"false";let Q;e[19]!==k?(Q={"--tone":k},e[19]=k,e[20]=Q):Q=e[20];const pe=Q;let ce,ne,te,W;e[21]===Symbol.for("react.memo_cache_sentinel")?(ce={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},ne=T.jsx("div",{className:"holo-foil pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),te=T.jsx("div",{className:"holo-lines pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),W=T.jsx("div",{className:"holo-glare pointer-events-none absolute inset-0 z-40","aria-hidden":!0}),e[21]=ce,e[22]=ne,e[23]=te,e[24]=W):(ce=e[21],ne=e[22],te=e[23],W=e[24]);let j;e[25]===Symbol.for("react.memo_cache_sentinel")?(j=T.jsx("div",{className:"deco-sweep pointer-events-none absolute inset-0 z-50 overflow-hidden","aria-hidden":!0,children:T.jsx("span",{className:"holo-sweep-bar"})}),e[25]=j):j=e[25];let K;e[26]!==h||e[27]!==a?(K=a&&T.jsxs("div",{className:"mt-4 shrink-0 lg:mt-4",children:[T.jsx("div",{className:"lg:hidden",children:T.jsx(Qy,{score:a,active:h,compact:!0})}),T.jsx("div",{className:"hidden lg:block",children:T.jsx(Qy,{score:a,active:h})})]}),e[26]=h,e[27]=a,e[28]=K):K=e[28];const Se=h?"true":"false",ye=h?"140ms":"0ms";let we;e[29]!==ye?(we={color:N.ink,transitionDelay:ye},e[29]=ye,e[30]=we):we=e[30];let ve;e[31]!==t||e[32]!==Se||e[33]!==we?(ve=T.jsx("h1",{className:"reveal mt-3.5 text-balance text-[min(1.375rem,3svh)] font-normal leading-[1.16] tracking-[-0.02em] sm:text-2xl lg:mt-4 lg:text-[1.7rem]","data-show":Se,style:we,children:t}),e[31]=t,e[32]=Se,e[33]=we,e[34]=ve):ve=e[34];let Ve;e[35]!==h||e[36]!==c||e[37]!==f?(Ve=c&&c.length>0&&T.jsx("ul",{className:"holo-findings mt-4 flex min-h-0 shrink-0 flex-col overflow-y-auto pb-2 lg:mt-auto lg:shrink lg:pb-5 lg:pt-4",children:c.map((ft,ht)=>T.jsx("li",{className:qe("reveal",ht>=4&&"hidden lg:block"),"data-show":h?"true":"false",style:{...ht<c.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:h?`${240+ht*55}ms`:"0ms"},children:T.jsxs("button",{type:"button",onClick:()=>f?.(ft.slideKey),className:"group flex w-full items-center gap-3 py-2 transition-colors hover:bg-black/[0.03] active:bg-black/[0.06] lg:gap-3.5 lg:py-2.5",style:{cursor:f?"pointer":"default"},children:[T.jsx("span",{className:"shrink-0 text-[11px] tabular-nums lg:text-[12px]",style:{color:N.soft},children:String(ht+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[13px] opacity-55 transition-opacity group-hover:opacity-85 lg:text-[15px]",style:{color:N.ink,lineHeight:1.3},children:ft.title}),T.jsx(dt,{name:"arrow_forward",size:"xs",class:"shrink-0 opacity-0 transition-opacity group-hover:opacity-40"})]})},ft.slideKey))}),e[35]=h,e[36]=c,e[37]=f,e[38]=Ve):Ve=e[38];const ct=h?"true":"false",it=h?"260ms":"0ms";let wt;e[39]!==it?(wt={transitionDelay:it},e[39]=it,e[40]=wt):wt=e[40];let Dt;e[41]!==s||e[42]!==o||e[43]!==l||e[44]!==i||e[45]!==n?(Dt=T.jsx(e0,{deviceCluster:T.jsx(Jy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i,hidePhone:!0}),className:"deco-art-mobile h-full w-full rounded-2xl",innerClassName:"max-w-[440px]",padClassName:"px-5 pt-6",alignClassName:"items-start"}),e[41]=s,e[42]=o,e[43]=l,e[44]=i,e[45]=n,e[46]=Dt):Dt=e[46];let Ir;e[47]!==ct||e[48]!==wt||e[49]!==Dt?(Ir=T.jsx("div",{className:"reveal mt-4 min-h-[150px] flex-1 lg:hidden","data-show":ct,style:wt,children:Dt}),e[47]=ct,e[48]=wt,e[49]=Dt,e[50]=Ir):Ir=e[50];let Oe;e[51]!==X||e[52]!==K||e[53]!==ve||e[54]!==Ve||e[55]!==Ir?(Oe=T.jsxs("div",{className:"flex min-h-0 flex-col px-4 pb-3 pt-4 lg:px-5 lg:py-5",children:[X,K,ve,Ve,Ir]}),e[51]=X,e[52]=K,e[53]=ve,e[54]=Ve,e[55]=Ir,e[56]=Oe):Oe=e[56];let Ze;e[57]!==s||e[58]!==o||e[59]!==l||e[60]!==i||e[61]!==n?(Ze=T.jsx("div",{className:"hidden lg:block",children:T.jsx(e0,{deviceCluster:T.jsx(Jy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i}),className:"h-full w-full rounded-2xl"})}),e[57]=s,e[58]=o,e[59]=l,e[60]=i,e[61]=n,e[62]=Ze):Ze=e[62];let He;e[63]!==Oe||e[64]!==Ze?(He=T.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px]",style:ce,children:[ne,te,W,j,T.jsxs("div",{className:"relative z-10 grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[Oe,Ze]})]}),e[63]=Oe,e[64]=Ze,e[65]=He):He=e[65];let ur;e[66]!==pe||e[67]!==He?(ur=T.jsx("div",{ref:L,className:"holo-tilt relative flex h-full w-full flex-col rounded-[26px] p-[2px]",style:pe,children:He}),e[66]=pe,e[67]=He,e[68]=ur):ur=e[68];let Ei;return e[69]!==p||e[70]!==Z||e[71]!==ur?(Ei=T.jsx("div",{className:"holo-stage flex h-full w-full items-center justify-center px-3 py-2 sm:px-6",onMouseMove:A,onMouseLeave:D,children:T.jsx("div",{"data-enter":Z,className:"holo-card h-full w-full max-w-[1080px]",children:ur},p)}),e[69]=p,e[70]=Z,e[71]=ur,e[72]=Ei):Ei=e[72],Ei}function PP(r){return r+1}const kP="Acesse a análise completa e",RP="opere seu site no piloto automático.",EP="389 verificações em 15 dimensões, cada problema com uma",NP="próxima ação clara. A Deco corrige por você.",OP="Ver diagnóstico completo",BP=N.forest,zP=N.lime,t0=[{label:"SEO",icon:"search",color:"#ffc116"},{label:"Busca por IA",icon:"smart_toy",color:"#14b8a6"},{label:"Performance",icon:"bolt",color:"#a595ff"},{label:"Conversão",icon:"shopping_cart",color:"#ffc116"},{label:"Rastreamento",icon:"monitoring",color:"#6e9fdb"},{label:"Acessibilidade",icon:"accessibility_new",color:"#b7a8ff"},{label:"Segurança",icon:"shield",color:"#f0846b"},{label:"Conteúdo",icon:"article",color:"#ffc116"},{label:"Analytics & Funil",icon:"bar_chart",color:"#a3c73a"}],VP=[{label:"Conversão",score:42,color:"#6e9fdb"},{label:"Performance",score:35,color:"#a595ff"},{label:"SEO",score:54,color:"#f0b613"},{label:"Busca por IA (GEO)",score:67,color:"#14b8a6"},{label:"Acessibilidade",score:48,color:"#8aa9ff"},{label:"Segurança",score:31,color:"#f0846b"},{label:"Analytics & Funil",score:75,color:"#8caa25"}],r0=14,a0=[{title:"Corrigir LCP acima de 4s na home",level:"Alta",color:"#d43d3d"},{title:"Adicionar canonical em 12 páginas",level:"Alta",color:"#d43d3d"},{title:"Liberar GPTBot no robots.txt",level:"Média",color:"#f0b613"},{title:"Corrigir GA4 duplicando eventos",level:"Alta",color:"#d43d3d"},{title:"Adicionar alt em 18 imagens",level:"Média",color:"#f0b613"},{title:"Reduzir checkout para 3 campos",level:"Alta",color:"#d43d3d"},{title:"Ativar HSTS e CSP",level:"Média",color:"#f0b613"}],FP=7,Tc=16,GP=["#8caa2510","#cfe8b8","#9fd07f","#5fa843","#0c5122"];function HP(r,e){return(r*3+e*5+r*e%4)%5}const jP=[{label:"Tempo médio até corrigir",value:"3 dias"},{label:"Correções esta semana",value:"7"},{label:"Em revisão",value:"2"}];function WP(r){const e=_e.c(14),{label:t,icon:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:"1px solid rgba(255,255,255,0.25)"},e[0]=i):i=e[0];let o;e[1]!==n?(o={color:n},e[1]=n,e[2]=o):o=e[2];let s;e[3]!==a?(s=T.jsx(dt,{name:a,size:"xl"}),e[3]=a,e[4]=s):s=e[4];let l;e[5]!==o||e[6]!==s?(l=T.jsx("span",{style:o,children:s}),e[5]=o,e[6]=s,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#ffffff"},e[8]=u):u=e[8];let c;e[9]!==t?(c=T.jsx("span",{className:"whitespace-nowrap text-[15px]",style:u,children:t}),e[9]=t,e[10]=c):c=e[10];let f;return e[11]!==l||e[12]!==c?(f=T.jsxs("span",{className:"flex shrink-0 items-center gap-2.5 rounded-full py-2 pl-3 pr-5",style:i,children:[l,c]}),e[11]=l,e[12]=c,e[13]=f):f=e[13],f}function $P(r){const e=_e.c(3),{score:t,color:a}=r,n=Math.round(t/100*r0);let i;return e[0]!==a||e[1]!==n?(i=T.jsx("span",{className:"flex flex-1 items-center gap-[3px]",children:Array.from({length:r0},(o,s)=>T.jsx("span",{className:"h-2.5 flex-1 rounded-[3px]",style:{background:s<n?a:"rgba(40,37,36,0.08)"}},s))}),e[0]=a,e[1]=n,e[2]=i):i=e[2],i}function UP(r){const e=_e.c(16),{domain:t,faviconUrl:a,initial:n}=r,[i,o]=Ne.useState(!1);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={boxShadow:"0 -20px 60px rgba(3,32,14,0.35)"},e[0]=s):s=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={border:`1px solid ${N.border}`},e[1]=l):l=e[1];let u;e[2]!==i||e[3]!==a||e[4]!==n?(u=T.jsx("span",{className:"grid size-7 shrink-0 place-items-center overflow-hidden rounded-md",style:l,children:i?T.jsx("span",{className:"text-[11px] font-semibold",style:{color:N.forest},children:n}):T.jsx("img",{src:a,alt:"",className:"size-4 object-contain",onError:()=>o(!0)})}),e[2]=i,e[3]=a,e[4]=n,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==t?(f=T.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",style:c,children:t}),e[7]=t,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Diagnóstico"}),e[9]=h):h=e[9];let v;e[10]!==u||e[11]!==f?(v=T.jsxs("div",{className:"flex items-center gap-2.5",children:[u,f,h]}),e[10]=u,e[11]=f,e[12]=v):v=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=T.jsx("ul",{className:"mt-5 flex flex-col gap-4",children:VP.map(YP)}),e[13]=d):d=e[13];let p;return e[14]!==v?(p=T.jsxs("div",{className:"w-[min(92vw,600px)] rounded-t-2xl bg-white p-6 sm:p-7",style:s,children:[v,d]}),e[14]=v,e[15]=p):p=e[15],p}function YP(r){return T.jsxs("li",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"flex items-baseline justify-between",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.ink},children:r.label}),T.jsxs("span",{className:"text-[15px] font-semibold tabular-nums",style:{color:N.ink},children:[r.score,T.jsx("span",{className:"text-[11px] font-normal",style:{color:N.faint},children:"/100"})]})]}),T.jsx($P,{score:r.score,color:r.color})]},r.label)}function XP(r){const e=_e.c(14),{title:t,level:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:`1px solid ${N.border}`,boxShadow:"0 6px 20px rgba(3,32,14,0.12)"},e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("span",{className:"mt-0.5 size-3.5 shrink-0 rounded-full",style:{border:`1.5px solid ${N.faint}`}}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={color:N.ink},e[2]=s):s=e[2];let l;e[3]!==t?(l=T.jsxs("div",{className:"flex items-start gap-2",children:[o,T.jsx("span",{className:"text-[12.5px] font-medium leading-snug",style:s,children:t})]}),e[3]=t,e[4]=l):l=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"rgba(40,37,36,0.04)",color:N.muted},e[5]=u):u=e[5];let c;e[6]!==n?(c=T.jsx("span",{className:"size-1.5 rounded-full",style:{background:n}}),e[6]=n,e[7]=c):c=e[7];let f;e[8]!==a||e[9]!==c?(f=T.jsxs("span",{className:"mt-2 ml-5 inline-flex items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px]",style:u,children:[c,a]}),e[8]=a,e[9]=c,e[10]=f):f=e[10];let h;return e[11]!==l||e[12]!==f?(h=T.jsxs("div",{className:"rounded-xl bg-white p-3",style:i,children:[l,f]}),e[11]=l,e[12]=f,e[13]=h):h=e[13],h}function ZP(){const r=_e.c(2);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)",WebkitMaskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)"},r[0]=e):e=r[0];let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("div",{className:"h-[400px] w-[248px] overflow-hidden",style:e,children:T.jsx("div",{className:"report-task-track gap-3",children:[...a0,...a0].map(qP)})}),r[1]=t):t=r[1],t}function qP(r,e){return T.jsx(XP,{...r},`${r.title}-${e}`)}function KP(){const r=_e.c(4);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={boxShadow:"0 20px 50px rgba(3,32,14,0.22)"},r[0]=e):e=r[0];let t;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Ritmo de entrega"}),r[1]=t):t=r[1];let a;r[2]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"mt-4 grid gap-[3px]",style:{gridTemplateColumns:`repeat(${Tc}, 1fr)`},children:Array.from({length:FP*Tc},QP)}),r[2]=a):a=r[2];let n;return r[3]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsxs("div",{className:"w-[320px] rounded-2xl bg-white p-5",style:e,children:[t,a,T.jsx("ul",{className:"mt-4 flex flex-col",children:jP.map(JP)})]}),r[3]=n):n=r[3],n}function JP(r){return T.jsxs("li",{className:"flex items-center justify-between py-2.5 text-[13px]",style:{borderTop:`1px solid ${N.border}`},children:[T.jsx("span",{style:{color:N.muted},children:r.label}),T.jsx("span",{className:"font-semibold",style:{color:N.ink},children:r.value})]},r.label)}function QP(r,e){const t=Math.floor(e/Tc),a=e%Tc;return T.jsx("span",{className:"aspect-square rounded-[3px]",style:{background:GP[HP(t,a)]}},e)}function ek(r){const e=_e.c(71),{domain:t,faviconUrl:a,initial:n,checksProbed:i,checksTotal:o,active:s}=r,l=s===void 0?!1:s,u=l?"true":"false",c=Og(t),f=typeof i=="number"&&typeof o=="number";let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:BP},e[0]=h):h=e[0];let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 top-[52%] size-[900px] -translate-x-1/2 rounded-full",style:{background:"radial-gradient(circle, rgba(208,236,26,0.08), transparent 62%)"}}),e[1]=v):v=e[1];let d;e[2]!==i||e[3]!==o||e[4]!==f||e[5]!==u?(d=f?T.jsxs("span",{className:"reveal rounded-full px-4 py-1.5 text-[15px]","data-show":u,style:{border:"1px solid rgba(255,255,255,0.25)"},children:[T.jsxs("span",{style:{color:"rgba(255,255,255,0.5)"},children:[i,"/"]}),T.jsx("span",{style:{color:"#ffffff"},children:o})]}):null,e[2]=i,e[3]=o,e[4]=f,e[5]=u,e[6]=d):d=e[6];const p=l?"60ms":"0ms";let g;e[7]!==p?(g={color:"#ffffff",transitionDelay:p},e[7]=p,e[8]=g):g=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("br",{className:"hidden sm:block"}),e[9]=m):m=e[9];let y;e[10]!==u||e[11]!==g?(y=T.jsxs("h2",{className:"reveal text-balance font-normal leading-[1.15] tracking-[-0.015em] text-[clamp(1.5rem,6vw,2.75rem)]","data-show":u,style:g,children:[kP,m," ",RP]}),e[10]=u,e[11]=g,e[12]=y):y=e[12];const x=l?"130ms":"0ms";let _;e[13]!==x?(_={color:"rgba(255,255,255,0.75)",transitionDelay:x},e[13]=x,e[14]=_):_=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx("br",{className:"hidden sm:block"}),e[15]=b):b=e[15];let S;e[16]!==u||e[17]!==_?(S=T.jsxs("p",{className:"reveal max-w-[520px] text-[15px] leading-relaxed sm:text-base","data-show":u,style:_,children:[EP,b," ",NP]}),e[16]=u,e[17]=_,e[18]=S):S=e[18];let w;e[19]!==t?(w=K=>wf(K,{domain:t,placement:"cta_slide",slideKey:"cta"}),e[19]=t,e[20]=w):w=e[20];const A=l?"220ms":"0ms";let C;e[21]!==A?(C={background:zP,color:N.forest,transitionDelay:A},e[21]=A,e[22]=C):C=e[22];let D,M;e[23]===Symbol.for("react.memo_cache_sentinel")?(D=T.jsx("span",{children:OP}),M=T.jsx(dt,{name:"arrow_forward",size:"medium"}),e[23]=D,e[24]=M):(D=e[23],M=e[24]);let L;e[25]!==c||e[26]!==u||e[27]!==w||e[28]!==C?(L=T.jsxs("a",{href:c,onClick:w,className:"reveal mt-1 inline-flex h-12 items-center gap-2 whitespace-nowrap rounded-full px-8 text-base font-medium transition-transform duration-300 ease-out hover:scale-105","data-show":u,style:C,children:[D,M]}),e[25]=c,e[26]=u,e[27]=w,e[28]=C,e[29]=L):L=e[29];let P;e[30]!==S||e[31]!==L||e[32]!==d||e[33]!==y?(P=T.jsxs("div",{className:"relative z-10 flex max-w-[820px] flex-col items-center gap-5 text-center",children:[d,y,S,L]}),e[30]=S,e[31]=L,e[32]=d,e[33]=y,e[34]=P):P=e[34];const k=l?"300ms":"0ms";let R;e[35]!==k?(R={transitionDelay:k,maskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)",WebkitMaskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)"},e[35]=k,e[36]=R):R=e[36];let E;e[37]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("div",{className:"report-marquee-track gap-2",children:[...t0,...t0].map(tk)}),e[37]=E):E=e[37];let O;e[38]!==u||e[39]!==R?(O=T.jsx("div",{className:"reveal relative z-10 w-[calc(100%+4rem)] shrink-0 overflow-hidden sm:w-[calc(100%+8rem)]","data-show":u,style:R,children:E}),e[38]=u,e[39]=R,e[40]=O):O=e[40];const B=l?"460ms":"0ms";let V;e[41]!==B?(V={transitionDelay:B},e[41]=B,e[42]=V):V=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=T.jsx(ZP,{}),e[43]=F):F=e[43];let G;e[44]!==u||e[45]!==V?(G=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -mr-24 mt-3 hidden shrink-0 -rotate-[5deg] xl:block","data-show":u,style:V,children:F}),e[44]=u,e[45]=V,e[46]=G):G=e[46];const U=l?"380ms":"0ms";let X;e[47]!==U?(X={transitionDelay:U},e[47]=U,e[48]=X):X=e[48];let Z;e[49]!==t||e[50]!==a||e[51]!==n?(Z=T.jsx(UP,{domain:t,faviconUrl:a,initial:n}),e[49]=t,e[50]=a,e[51]=n,e[52]=Z):Z=e[52];let Q;e[53]!==u||e[54]!==X||e[55]!==Z?(Q=T.jsx("div",{className:"reveal relative z-20 shrink-0","data-show":u,style:X,children:Z}),e[53]=u,e[54]=X,e[55]=Z,e[56]=Q):Q=e[56];const pe=l?"440ms":"0ms";let ce;e[57]!==pe?(ce={transitionDelay:pe},e[57]=pe,e[58]=ce):ce=e[58];let ne;e[59]===Symbol.for("react.memo_cache_sentinel")?(ne=T.jsx(KP,{}),e[59]=ne):ne=e[59];let te;e[60]!==u||e[61]!==ce?(te=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -ml-24 mt-3 hidden shrink-0 rotate-[6deg] xl:block","data-show":u,style:ce,children:ne}),e[60]=u,e[61]=ce,e[62]=te):te=e[62];let W;e[63]!==G||e[64]!==Q||e[65]!==te?(W=T.jsxs("div",{className:"relative z-10 flex w-full flex-1 items-start justify-center overflow-hidden",children:[G,Q,te]}),e[63]=G,e[64]=Q,e[65]=te,e[66]=W):W=e[66];let j;return e[67]!==P||e[68]!==O||e[69]!==W?(j=T.jsx("div",{className:"h-full w-full sm:px-6 lg:px-10 sm:pb-2",children:T.jsxs("div",{className:"relative flex h-full w-full flex-col items-center gap-8 overflow-hidden rounded-none px-6 pb-0 pt-8 sm:rounded-3xl sm:px-8 sm:pt-10 lg:gap-10 lg:pt-14 [@media(max-height:780px)]:lg:gap-6 [@media(max-height:780px)]:lg:pt-10",style:h,children:[v,P,O,W]})}),e[67]=P,e[68]=O,e[69]=W,e[70]=j):j=e[70],j}function tk(r,e){return T.jsx(WP,{...r},`${r.label}-${e}`)}const rk={good:{ratio:.16},warn:{ratio:.5},bad:{ratio:.84}},ak=[N.soft,N.warn,"#d43d3d"],nk=["rgba(140,170,37,0.16)","rgba(240,182,19,0.16)","rgba(212,61,61,0.14)"],ik=r=>r<1/3?0:r<2/3?1:2;function ok(r){const e=_e.c(20),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(0.875rem,1.8svh)] sm:gap-5":"gap-[min(1.25rem,2.6svh)] sm:gap-10";let c;e[5]!==u?(c=qe("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=Math.min(1,Math.max(0,p.ratio??rk[p.status].ratio)),y=ak[ik(m)];return T.jsxs("div",{className:qe("reveal grid grid-cols-1 items-center gap-x-8 sm:grid-cols-[minmax(0,10rem)_1fr]",s?"gap-y-[min(0.5rem,1svh)] sm:gap-y-1.5":"gap-y-[min(0.75rem,1.4svh)] sm:gap-y-3"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2 sm:flex-col sm:gap-0.5",children:[T.jsx("span",{className:qe("font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.5rem,4vw,2rem),3svh)] sm:text-[clamp(1.5rem,2.5vw,2rem)]":"text-[min(clamp(2rem,5vw,3rem),4svh)] sm:text-[clamp(2rem,5vw,3rem)]"),style:{color:y},children:p.value}),T.jsx("span",{className:qe("tracking-[-0.01em]",s?"text-sm sm:text-base":"text-base sm:text-lg"),style:{color:N.muted},children:p.label})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"relative flex h-3 w-full gap-1",children:[nk.map(sk),T.jsx("span",{className:"absolute top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${m*100}%`,background:y,border:`3px solid ${N.bg}`,boxShadow:"0 1px 3px rgba(40,37,36,0.25)"}})]}),p.caption&&T.jsx("span",{className:"text-right text-xs sm:text-left sm:text-sm",style:{color:N.muted,opacity:.8},children:p.caption})]})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2.2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}function sk(r,e){return T.jsx("span",{className:"h-full flex-1 rounded-full",style:{background:r}},e)}const lk={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},neutral:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},uk=2;function ck(r){const e=r.match(/^(.*?)\s*\((\d+)\/(\d+)\)$/);return e?{name:e[1]??"",chip:`${e[2]} de ${e[3]}`}:{name:r}}function fk(r){const e=_e.c(27),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r;let s,l,u,c,f;if(e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const p=[...i].sort(hk);c="flex h-full flex-col",e[10]!==o||e[11]!==n||e[12]!==t||e[13]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[10]=o,e[11]=n,e[12]=t,e[13]=a,e[14]=f):f=e[14],u="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4 sm:px-10 lg:px-16",s="my-auto flex w-full flex-col gap-[min(0.875rem,1.7svh)] sm:gap-4";let g;e[15]!==o?(g=(m,y)=>{const x=lk[m.tone??"neutral"],_=Math.max(uk,Math.min(100,m.ratio*100)),{name:b,chip:S}=ck(m.label);return T.jsxs("div",{className:"reveal flex flex-col gap-1.5","data-show":o?"true":"false",style:{transitionDelay:o?`${80+y*70}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2.5",children:[T.jsx("span",{className:"min-w-0 line-clamp-2 break-words text-sm font-medium leading-snug tracking-[-0.01em] sm:text-[15px]",style:{color:N.ink},children:b}),S&&T.jsx("span",{className:"shrink-0 translate-y-[-1px] rounded-full px-1.5 py-px text-[10px] leading-[1.5]",style:{color:N.muted,border:`1px solid ${N.border}`},children:S}),T.jsx("span",{className:"ml-auto shrink-0 font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.5rem,3svh)] sm:text-[1.625rem]",style:{color:x.color},children:m.value})]}),T.jsx("div",{className:"h-[min(0.75rem,1.4svh)] w-full overflow-hidden rounded-full sm:h-3",style:{background:x.tint},children:T.jsx("div",{className:"h-full rounded-full transition-[width] duration-700 ease-out",style:{width:o?`${_}%`:"0%",background:x.color,transitionDelay:o?`${150+y*70}ms`:"0ms"}})})]},y)},e[15]=o,e[16]=g):g=e[16],l=p.map(g),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=s,e[6]=l,e[7]=u,e[8]=c,e[9]=f}else s=e[5],l=e[6],u=e[7],c=e[8],f=e[9];let h;e[17]!==s||e[18]!==l?(h=T.jsx("div",{className:s,children:l}),e[17]=s,e[18]=l,e[19]=h):h=e[19];let v;e[20]!==u||e[21]!==h?(v=T.jsx("div",{className:u,children:h}),e[20]=u,e[21]=h,e[22]=v):v=e[22];let d;return e[23]!==c||e[24]!==f||e[25]!==v?(d=T.jsxs("div",{className:c,children:[f,v]}),e[23]=c,e[24]=f,e[25]=v,e[26]=d):d=e[26],d}function hk(r,e){return(Number(r.value)||0)-(Number(e.value)||0)}function vk(r){return!r||r<=0?at.bad:r<=3?at.good:r<=10?N.warn:at.bad}function dk(r){return r&&r>0?`${r}ª`:"—"}function pk(r){const e=_e.c(39),{eyebrow:t,headline:a,annotation:n,keywords:i,volumeLabel:o,active:s}=r;let l,u,c,f,h,v,d;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i||e[5]!==o){const x=i.slice(0,8);v="flex h-full flex-col",e[13]!==s||e[14]!==n||e[15]!==t||e[16]!==a?(d=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[13]=s,e[14]=n,e[15]=t,e[16]=a,e[17]=d):d=e[17],h="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.4svh)] sm:px-10 sm:py-4 lg:px-16",c="my-auto w-full";let _,b;e[18]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},b=T.jsx("span",{className:"min-w-0 flex-1 truncate",children:"Keyword"}),e[18]=_,e[19]=b):(_=e[18],b=e[19]);const S=o??"Buscas/mês";let w;e[20]!==S?(w=T.jsx("span",{className:"w-20 shrink-0 text-right sm:w-24",children:S}),e[20]=S,e[21]=w):w=e[21];let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=T.jsx("span",{className:"w-12 shrink-0 text-right sm:w-16",children:"Posição"}),e[22]=A):A=e[22],e[23]!==w?(f=T.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1 text-[10px] font-medium uppercase tracking-[0.04em] sm:gap-3 sm:px-3 sm:text-[11px]",style:_,children:[b,w,A]}),e[23]=w,e[24]=f):f=e[24],l="flex flex-col",u=x.map((C,D)=>T.jsxs("li",{className:"reveal flex items-center gap-2 px-1 py-[min(10px,1.1svh)] sm:gap-3 sm:px-3 sm:py-[10px]","data-show":s?"true":"false",style:{...D<x.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${70+D*55}ms`:"0ms"},children:[T.jsx("span",{className:"min-w-0 flex-1 truncate text-base sm:text-lg",style:{color:N.ink},children:C.term}),T.jsx("span",{className:"w-20 shrink-0 text-right text-sm tabular-nums sm:w-24 sm:text-base",style:{color:N.muted},children:C.volume}),T.jsx("span",{className:"w-12 shrink-0 text-right text-lg font-normal tabular-nums tracking-[-0.01em] sm:w-16 sm:text-xl",style:{color:vk(C.position)},children:dk(C.position)})]},D)),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v,e[12]=d}else l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],v=e[11],d=e[12];let p;e[25]!==l||e[26]!==u?(p=T.jsx("ul",{className:l,children:u}),e[25]=l,e[26]=u,e[27]=p):p=e[27];let g;e[28]!==c||e[29]!==f||e[30]!==p?(g=T.jsxs("div",{className:c,children:[f,p]}),e[28]=c,e[29]=f,e[30]=p,e[31]=g):g=e[31];let m;e[32]!==h||e[33]!==g?(m=T.jsx("div",{className:h,children:g}),e[32]=h,e[33]=g,e[34]=m):m=e[34];let y;return e[35]!==m||e[36]!==v||e[37]!==d?(y=T.jsxs("div",{className:v,children:[d,m]}),e[35]=m,e[36]=v,e[37]=d,e[38]=y):y=e[38],y}const ph={error:{color:"#d43d3d",icon:"error"},warning:{color:N.warn,icon:"warning"},notice:{color:N.notice,icon:"info"}};function gk(r){const e=_e.c(30),{headline:t,entries:a,domain:n,onNext:i,moreCount:o,active:s}=r,l=Og(n);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[0]=u):u=e[0];const c=u,f=s?"true":"false";let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.ink},e[1]=h):h=e[1];let v;e[2]!==t||e[3]!==o?(v=o&&o>0?T.jsxs(T.Fragment,{children:[T.jsxs("span",{style:{color:ph.error.color},children:["+",o]})," ","outros sinais no diagnóstico completo"]}):t.replace(/\s*\n\s*/g," "),e[2]=t,e[3]=o,e[4]=v):v=e[4];let d;e[5]!==f||e[6]!==v?(d=T.jsx("header",{className:"flex shrink-0 flex-col gap-3 px-5 pt-2 sm:gap-4 sm:px-10 lg:px-16",children:T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.1] tracking-[-0.02em] text-[min(clamp(1.375rem,4.8vw,2.5rem),3svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.75rem] lg:max-w-[20ch]","data-show":f,style:h,children:v})}),e[5]=f,e[6]=v,e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p={maskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)",WebkitMaskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)"},e[8]=p):p=e[8];let g;if(e[9]!==s||e[10]!==a||e[11]!==f){let S;e[13]!==s||e[14]!==a.length||e[15]!==f?(S=(w,A)=>{const C=ph[w.severity]??ph.notice;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(9px,1.3svh)]","data-show":f,style:{...A<a.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${60+A*45}ms`:"0ms"},children:[T.jsx("span",{className:"line-clamp-2 flex-1 text-[13px] leading-snug sm:text-[15px]",style:{color:N.muted},children:w.label}),T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:C.color},"aria-label":w.severity,children:T.jsx(dt,{name:C.icon,size:"large"})})]},A)},e[13]=s,e[14]=a.length,e[15]=f,e[16]=S):S=e[16],g=a.map(S),e[9]=s,e[10]=a,e[11]=f,e[12]=g}else g=e[12];let m;e[17]!==g?(m=T.jsx("ul",{className:"h-full overflow-hidden",style:p,children:g}),e[17]=g,e[18]=m):m=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y={background:`linear-gradient(to bottom, transparent, ${N.bg} 34%)`},e[19]=y):y=e[19];let x;e[20]!==l||e[21]!==n||e[22]!==i?(x=T.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex justify-center px-5 pb-7 pt-24 sm:px-10 lg:px-16",style:y,children:i?T.jsx("button",{type:"button",onClick:i,className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"}):T.jsx("a",{href:l,target:l.startsWith("http")?"_blank":"_self",rel:"noopener noreferrer",onClick:S=>wf(S,{domain:n,placement:"list_slide_fallback"}),className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"})}),e[20]=l,e[21]=n,e[22]=i,e[23]=x):x=e[23];let _;e[24]!==m||e[25]!==x?(_=T.jsxs("div",{className:"relative min-h-0 flex-1 px-5 pt-3 sm:px-10 lg:px-16",children:[m,x]}),e[24]=m,e[25]=x,e[26]=_):_=e[26];let b;return e[27]!==_||e[28]!==d?(b=T.jsxs("div",{className:"flex h-full flex-col",children:[d,_]}),e[27]=_,e[28]=d,e[29]=b):b=e[29],b}const mk={up:at.good,down:at.bad,neutral:N.muted},yk={up:"↑",down:"↓",neutral:"→"};function A2(r,e){return r?at[r]:e?N.muted:N.ink}function xk(r){const e=_e.c(8),{cell:t}=r;let a;e[0]!==t.muted||e[1]!==t.tone?(a=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=a):a=e[2];let n;e[3]!==a?(n={color:a},e[3]=a,e[4]=n):n=e[4];let i;return e[5]!==t.value||e[6]!==n?(i=T.jsx("span",{className:"line-clamp-2 leading-snug",style:n,children:t.value}),e[5]=t.value,e[6]=n,e[7]=i):i=e[7],i}function _k(r){const e=_e.c(14),{cell:t}=r,a=t.deltaDir??"neutral";let n;e[0]!==t.muted||e[1]!==t.tone?(n=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=n):n=e[2];let i;e[3]!==n?(i={color:n},e[3]=n,e[4]=i):i=e[4];let o;e[5]!==t.value||e[6]!==i?(o=T.jsx("span",{style:i,children:t.value}),e[5]=t.value,e[6]=i,e[7]=o):o=e[7];let s;e[8]!==t.delta||e[9]!==a?(s=t.delta&&T.jsxs("span",{className:"text-sm tabular-nums",style:{color:mk[a]},children:[yk[a]," ",t.delta]}),e[8]=t.delta,e[9]=a,e[10]=s):s=e[10];let l;return e[11]!==o||e[12]!==s?(l=T.jsxs("span",{className:"inline-flex items-baseline gap-2 whitespace-nowrap",children:[o,s]}),e[11]=o,e[12]=s,e[13]=l):l=e[13],l}function bk(r){const e=_e.c(8),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=t.points.length;if(n<2)return null;const i=48/(n-1);let o;if(e[0]!==t.points||e[1]!==i){let u;e[3]!==i?(u=(c,f)=>`${f*i},${20-c*20}`,e[3]=i,e[4]=u):u=e[4],o=t.points.map(u).join(" "),e[0]=t.points,e[1]=i,e[2]=o}else o=e[2];const s=o;let l;return e[5]!==a||e[6]!==s?(l=T.jsx("svg",{width:48,height:20,viewBox:"0 0 48 20",className:"inline-block align-middle",children:T.jsx("polyline",{points:s,fill:"none",stroke:a,strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"})}),e[5]=a,e[6]=s,e[7]=l):l=e[7],l}function Sk(r){const e=_e.c(6),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=`1px solid ${a}`;let i;e[0]!==a||e[1]!==n?(i={color:a,border:n,lineHeight:"1.4"},e[0]=a,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==t.label||e[4]!==i?(o=T.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-xs font-medium",style:i,children:t.label}),e[3]=t.label,e[4]=i,e[5]=o):o=e[5],o}function wk(r){const e=_e.c(12),{cell:t}=r,a=t.tone?at[t.tone]:N.ink,n=Math.min(100,Math.max(0,t.value));let i;e[0]!==a?(i={color:a},e[0]=a,e[1]=i):i=e[1];let o;e[2]!==n||e[3]!==i?(o=T.jsx("span",{className:"text-sm tabular-nums",style:i,children:n}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s={background:N.border},e[5]=s):s=e[5];const l=`${n}%`;let u;e[6]!==a||e[7]!==l?(u=T.jsx("span",{className:"inline-block h-1.5 w-12 overflow-hidden rounded-full",style:s,children:T.jsx("span",{className:"block h-full rounded-full",style:{width:l,background:a}})}),e[6]=a,e[7]=l,e[8]=u):u=e[8];let c;return e[9]!==o||e[10]!==u?(c=T.jsxs("span",{className:"inline-flex items-center gap-2",children:[o,u]}),e[9]=o,e[10]=u,e[11]=c):c=e[11],c}function gh(r){const e=_e.c(10),{cell:t}=r;switch(t.kind){case"text":{let a;return e[0]!==t?(a=T.jsx(xk,{cell:t}),e[0]=t,e[1]=a):a=e[1],a}case"number":{let a;return e[2]!==t?(a=T.jsx(_k,{cell:t}),e[2]=t,e[3]=a):a=e[3],a}case"sparkline":{let a;return e[4]!==t?(a=T.jsx(bk,{cell:t}),e[4]=t,e[5]=a):a=e[5],a}case"badge":{let a;return e[6]!==t?(a=T.jsx(Sk,{cell:t}),e[6]=t,e[7]=a):a=e[7],a}case"score":{let a;return e[8]!==t?(a=T.jsx(wk,{cell:t}),e[8]=t,e[9]=a):a=e[9],a}default:return t}}function D2(r){const e=_e.c(51),{eyebrow:t,headline:a,annotation:n,columns:i,rows:o,highlightRow:s,active:l}=r,u=o.length>=6;let c;e[0]!==l||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[0]=l,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={WebkitMaskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)",maskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)"},e[5]=f):f=e[5];let h;if(e[6]!==l||e[7]!==i||e[8]!==s||e[9]!==o){let C;e[11]!==l||e[12]!==i||e[13]!==s?(C=(D,M)=>T.jsxs("li",{className:"reveal shrink-0 rounded-xl border p-3.5","data-show":l?"true":"false",style:{borderColor:N.cardBorder,background:M===s?"rgba(40,37,36,0.03)":N.surface,transitionDelay:l?`${80+M*45}ms`:"0ms"},children:[T.jsx("div",{className:"text-[15px] font-medium leading-snug",style:{color:N.ink},children:D[0]&&T.jsx(gh,{cell:D[0]})}),T.jsx("div",{className:"mt-2.5 flex flex-wrap gap-x-6 gap-y-2",children:D.slice(1).map((L,P)=>T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.04em]",style:{color:N.muted},children:i[P+1]?.label}),T.jsx("span",{className:"text-sm tabular-nums",style:{color:N.ink},children:T.jsx(gh,{cell:L})})]},P))})]},M),e[11]=l,e[12]=i,e[13]=s,e[14]=C):C=e[14],h=o.map(C),e[6]=l,e[7]=i,e[8]=s,e[9]=o,e[10]=h}else h=e[10];let v;e[15]!==h?(v=T.jsx("ul",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto py-1 sm:hidden",style:f,children:h}),e[15]=h,e[16]=v):v=e[16];const d=l?"true":"false",p=l?"100ms":"0ms";let g;e[17]!==p?(g={background:N.surface,border:`1px solid ${N.cardBorder}`,transitionDelay:p},e[17]=p,e[18]=g):g=e[18];let m;if(e[19]!==i||e[20]!==u){let C;e[22]!==u?(C=(D,M)=>T.jsx("th",{className:qe("text-[11px] font-medium uppercase tracking-wide sm:text-sm",u?"px-3 py-2.5 sm:px-5 sm:py-3":"px-3 py-3 sm:px-6 sm:py-4",D.align==="right"?"text-right":"text-left"),style:{color:N.muted,borderBottom:`1px solid ${N.border}`},children:D.label},M),e[22]=u,e[23]=C):C=e[23],m=i.map(C),e[19]=i,e[20]=u,e[21]=m}else m=e[21];let y;e[24]!==m?(y=T.jsx("thead",{children:T.jsx("tr",{children:m})}),e[24]=m,e[25]=y):y=e[25];let x;if(e[26]!==i||e[27]!==u||e[28]!==s||e[29]!==o){let C;e[31]!==i||e[32]!==u||e[33]!==s||e[34]!==o.length?(C=(D,M)=>T.jsx("tr",{style:{borderBottom:M<o.length-1?`1px solid ${N.border}`:void 0,background:M===s?"rgba(40,37,36,0.04)":void 0},children:D.map((L,P)=>{const k=i[P]?.align==="right";return T.jsx("td",{className:qe("align-top tracking-[-0.01em] tabular-nums",u?"px-3 py-1.5 text-sm sm:px-5 sm:py-2.5 sm:text-base":"px-3 py-3 text-sm sm:px-6 sm:py-4 sm:text-lg",k?"text-right":"text-left font-medium"),children:T.jsx(gh,{cell:L})},P)})},M),e[31]=i,e[32]=u,e[33]=s,e[34]=o.length,e[35]=C):C=e[35],x=o.map(C),e[26]=i,e[27]=u,e[28]=s,e[29]=o,e[30]=x}else x=e[30];let _;e[36]!==x?(_=T.jsx("tbody",{children:x}),e[36]=x,e[37]=_):_=e[37];let b;e[38]!==_||e[39]!==y?(b=T.jsxs("table",{className:"w-full border-collapse",children:[y,_]}),e[38]=_,e[39]=y,e[40]=b):b=e[40];let S;e[41]!==b||e[42]!==d||e[43]!==g?(S=T.jsx("div",{className:"reveal hidden w-full overflow-hidden rounded-xl sm:block","data-show":d,style:g,children:b}),e[41]=b,e[42]=d,e[43]=g,e[44]=S):S=e[44];let w;e[45]!==S||e[46]!==v?(w=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-3 sm:items-center sm:justify-center sm:px-10 sm:pt-4 lg:px-16",children:[v,S]}),e[45]=S,e[46]=v,e[47]=w):w=e[47];let A;return e[48]!==c||e[49]!==w?(A=T.jsxs("div",{className:"flex h-full flex-col",children:[c,w]}),e[48]=c,e[49]=w,e[50]=A):A=e[50],A}const M2={Crítico:{color:"#ef4444",tint:"rgba(239,68,68,0.12)"},Atenção:{color:"#d98324",tint:"rgba(217,131,36,0.12)"}},I2={color:N.muted,tint:"rgba(13,9,6,0.06)"};function Tk(r){const e=[];for(const t of r){const[a,n,i]=t;if(t.length!==3||a?.kind!=="text"||n?.kind!=="text"||i?.kind!=="badge")return null;const o={title:n.value.replace(/^✗\s*/,""),severity:i.label},s=e[e.length-1];s&&s.page===a.value?s.issues.push(o):e.push({page:a.value,issues:[o]})}return e.length>0?e:null}function n0(r){const e=_e.c(6),{severity:t}=r,a=M2[t]??I2;let n;e[0]!==a.color||e[1]!==a.tint?(n={color:a.color,background:a.tint},e[0]=a.color,e[1]=a.tint,e[2]=n):n=e[2];let i;return e[3]!==t||e[4]!==n?(i=T.jsx("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:n,children:t}),e[3]=t,e[4]=n,e[5]=i):i=e[5],i}function i0(r){const e=_e.c(2),{severity:t}=r,a=M2[t]??I2;let n;return e[0]!==a.color?(n=T.jsx("span",{className:"shrink-0 text-sm font-semibold leading-snug sm:text-base",style:{color:a.color},children:"✗"}),e[0]=a.color,e[1]=n):n=e[1],n}function Ck(r){const{eyebrow:e,headline:t,annotation:a,rows:n,active:i}=r,o=Tk(n);if(!o)return T.jsx(D2,{...r});const s=o.length>1,l=o.flatMap(c=>c.issues.map(f=>({...f,page:c.page})));let u=0;return T.jsxs("div",{className:"flex h-full flex-col",children:[T.jsx(rr,{eyebrow:e,headline:t,annotation:a,active:i}),T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-2 sm:px-10 sm:py-4 lg:px-16",children:[T.jsx("div",{className:"reveal my-auto w-full rounded-2xl px-3.5 py-1 sm:hidden","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?"80ms":"0ms"},children:o.map((c,f)=>T.jsxs("div",{className:"py-[min(0.625rem,1.2svh)]",style:{borderTop:f>0?`1px solid ${N.border}`:void 0},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),c.issues.length>1&&T.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:N.muted,opacity:.7},children:[c.issues.length," achados"]})]}),c.issues.map((h,v)=>{const d=140+u++*60;return T.jsxs("div",{className:"reveal mt-[min(0.375rem,0.8svh)] flex items-baseline gap-2","data-show":i?"true":"false",style:{transitionDelay:i?`${d}ms`:"0ms"},children:[T.jsx(i0,{severity:h.severity}),T.jsx("span",{className:"min-w-0 flex-1 line-clamp-2 text-[13px] font-medium leading-snug tracking-[-0.01em]",style:{color:N.ink},children:h.title}),T.jsx(n0,{severity:h.severity})]},v)})]},f))}),T.jsx("div",{className:"my-auto hidden w-full gap-4 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:l.map((c,f)=>T.jsxs("div",{className:"reveal flex flex-col gap-3 rounded-2xl px-5 py-4","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?`${100+f*60}ms`:"0ms"},children:[s&&T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),T.jsxs("div",{className:"flex items-start gap-2.5",children:[T.jsx(i0,{severity:c.severity}),T.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug tracking-[-0.01em] lg:text-[15px]",style:{color:N.ink},children:c.title})]}),T.jsx("div",{className:"mt-auto",children:T.jsx(n0,{severity:c.severity})})]},f))})]})]})}const Ak={1:"#c8a24b",2:"#9aa0a6",3:"#b07a48"};function Dk(r){const e=_e.c(28),{product:t,rank:a,active:n,delay:i}=r,[o,s]=Ne.useState(!!t.image),l=Ak[a],u=n?"true":"false",c=n?`${i}ms`:"0ms";let f;e[0]!==c?(f={borderColor:N.cardBorder,transitionDelay:c},e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#f6f4f1"},e[2]=h):h=e[2];let v;e[3]!==o||e[4]!==t.image||e[5]!==t.name?(v=o&&t.image?T.jsx("img",{src:t.image,alt:t.name,className:"h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-[1.04]",loading:"lazy",onError:()=>s(!1)}):T.jsx("span",{className:"grid h-full w-full place-items-center",children:T.jsx(dt,{name:"package_2",size:"xxl",class:"opacity-15"})}),e[3]=o,e[4]=t.image,e[5]=t.name,e[6]=v):v=e[6];let d;e[7]!==l?(d=l?{background:l,color:"#fff"}:{background:"rgba(255,255,255,0.92)",color:N.muted,border:`1px solid ${N.cardBorder}`},e[7]=l,e[8]=d):d=e[8];let p;e[9]!==a||e[10]!==d?(p=T.jsxs("span",{className:"absolute left-2 top-2 inline-flex h-6 items-center gap-1 rounded-full px-2 text-[11px] font-medium tabular-nums",style:d,children:["#",a]}),e[9]=a,e[10]=d,e[11]=p):p=e[11];let g;e[12]!==v||e[13]!==p?(g=T.jsxs("div",{className:"relative aspect-[3/4] w-full overflow-hidden rounded-md",style:h,children:[v,p]}),e[12]=v,e[13]=p,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m={color:N.ink},e[15]=m):m=e[15];let y;e[16]!==t.name?(y=T.jsx("span",{className:"line-clamp-2 min-w-0 text-[13px] leading-snug sm:text-[13.5px]",style:m,children:t.name}),e[16]=t.name,e[17]=y):y=e[17];let x;e[18]!==t.price?(x=t.price&&T.jsx("span",{className:"mt-auto pt-1 text-[15px] font-medium tabular-nums tracking-[-0.01em] sm:text-[17px]",style:{color:N.ink},children:t.price}),e[18]=t.price,e[19]=x):x=e[19];let _;e[20]!==y||e[21]!==x?(_=T.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 px-1.5 pb-1 pt-2.5",children:[y,x]}),e[20]=y,e[21]=x,e[22]=_):_=e[22];let b;return e[23]!==u||e[24]!==_||e[25]!==f||e[26]!==g?(b=T.jsxs("div",{className:"reveal group flex w-[52vw] max-w-[210px] shrink-0 snap-center flex-col rounded-xl border bg-white p-1.5 transition-shadow duration-500 hover:shadow-[0_20px_44px_-24px_rgba(40,37,36,0.32)] sm:w-auto sm:max-w-none sm:shrink sm:snap-align-none","data-show":u,style:f,children:[g,_]}),e[23]=u,e[24]=_,e[25]=f,e[26]=g,e[27]=b):b=e[27],b}function Mk(r){return r<=2?"sm:grid-cols-2":r===3?"sm:grid-cols-3":r===4?"sm:grid-cols-4":r===5?"sm:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-6"}function Ik(r){const e=_e.c(27),{eyebrow:t,headline:a,annotation:n,products:i,active:o}=r,s=o===void 0?!1:o;let l,u,c,f,h;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const g=i.slice(0,6);f="flex h-full flex-col",e[10]!==s||e[11]!==n||e[12]!==t||e[13]!==a?(h=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[10]=s,e[11]=n,e[12]=t,e[13]=a,e[14]=h):h=e[14],c="flex min-h-0 flex-1 flex-col justify-center pt-4 sm:px-10 sm:pt-12 lg:px-16",l=qe("flex w-full snap-x snap-mandatory gap-3 overflow-x-auto overscroll-x-contain px-5 scroll-px-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:grid sm:snap-none sm:gap-4 sm:overflow-x-visible sm:px-0",Mk(g.length));let m;e[15]!==s?(m=(y,x)=>T.jsx(Dk,{product:y,rank:x+1,active:s,delay:60+x*55},x),e[15]=s,e[16]=m):m=e[16],u=g.map(m),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=l,e[6]=u,e[7]=c,e[8]=f,e[9]=h}else l=e[5],u=e[6],c=e[7],f=e[8],h=e[9];let v;e[17]!==l||e[18]!==u?(v=T.jsx("div",{className:l,children:u}),e[17]=l,e[18]=u,e[19]=v):v=e[19];let d;e[20]!==c||e[21]!==v?(d=T.jsx("div",{className:c,children:v}),e[20]=c,e[21]=v,e[22]=d):d=e[22];let p;return e[23]!==f||e[24]!==h||e[25]!==d?(p=T.jsxs("div",{className:f,children:[h,d]}),e[23]=f,e[24]=h,e[25]=d,e[26]=p):p=e[26],p}function o0(r){if(!r)return null;const e=r.replace(/\s/g,"").match(/^[^\d]*([\d.,]+)\s*([kKmMbB])?/);if(!e)return null;const t=Number.parseFloat((e[1]??"").replace(/\./g,"").replace(",","."));if(Number.isNaN(t))return null;const a=(e[2]||"").toLowerCase();return t*(a==="b"?1e9:a==="m"?1e6:a==="k"?1e3:1)}function Lk(r){return!!r&&!/\s/.test(r)&&/\.[a-z]{2,}$/i.test(r.replace(/\/+$/,""))}function Pk(r){const e=_e.c(17),{name:t,className:a}=r,[n,i]=Ne.useState(!1);let o;e[0]!==t?(o=t?.replace(/^https?:\/\//,"").replace(/\/.*$/,""),e[0]=t,e[1]=o):o=e[1];const s=o;let l;e[2]!==t?(l=(t??"?").replace(/^https?:\/\//,"").replace(/^www\./,"")[0]?.toUpperCase()??"?",e[2]=t,e[3]=l):l=e[3];const u=l;let c;e[4]!==n||e[5]!==t?(c=Lk(t)&&!n,e[4]=n,e[5]=t,e[6]=c):c=e[6];const f=c;let h;e[7]!==a?(h=qe("grid shrink-0 place-items-center overflow-hidden rounded-[10px]",a),e[7]=a,e[8]=h):h=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v={background:N.surface,border:`1px solid ${N.border}`},e[9]=v):v=e[9];let d;e[10]!==s||e[11]!==u||e[12]!==f?(d=f?T.jsx("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(s??"")}`,alt:"",className:"h-full w-full object-contain p-1",onError:()=>i(!0)}):T.jsx("span",{className:"text-xs font-medium",style:{color:N.muted},children:u}),e[10]=s,e[11]=u,e[12]=f,e[13]=d):d=e[13];let p;return e[14]!==h||e[15]!==d?(p=T.jsx("span",{className:h,style:v,children:d}),e[14]=h,e[15]=d,e[16]=p):p=e[16],p}function kk(r){return r?r.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,""):""}const s0="h-[min(2rem,3.4svh)] w-[min(2rem,3.4svh)] sm:h-8 sm:w-8",l0=r=>r==="good"?0:r==="bad"?2:1;function Rk(r){const e=_e.c(31),{eyebrow:t,headline:a,annotation:n,rivalLabel:i,dimensions:o,faviconUrl:s,active:l}=r;let u,c,f,h,v;if(e[0]!==l||e[1]!==n||e[2]!==o||e[3]!==t||e[4]!==s||e[5]!==a||e[6]!==i){const m=o.map(Nk).sort(Ek);h="flex h-full flex-col",e[12]!==l||e[13]!==n||e[14]!==t||e[15]!==a?(v=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[12]=l,e[13]=n,e[14]=t,e[15]=a,e[16]=v):v=e[16],f="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.2svh)] sm:px-10 sm:py-4 lg:px-16",u="my-auto flex w-full flex-col";let y;e[17]!==l||e[18]!==s||e[19]!==i?(y=(x,_)=>{const{d:b,i:S}=x,w=b.tone==="good"?at.good:b.tone==="bad"?at.bad:N.muted,A=!!(b.rival||b.rivalName),C=o0(b.you),D=o0(b.rival),L=C!=null&&D!=null&&C+D>0?Math.min(.9,Math.max(.1,C/(C+D))):b.tone==="good"?.72:b.tone==="bad"?.28:.5,P=b.tone==="good",k=b.tone==="bad",R=P?at.good:k?at.bad:N.muted;return T.jsxs("div",{className:"reveal flex flex-col gap-[min(0.5rem,0.9svh)] py-[min(0.75rem,1.1svh)] sm:gap-2 sm:py-3","data-show":l?"true":"false",style:{borderTop:_===0?"none":`1px solid ${N.cardBorder}`,transitionDelay:l?`${80+_*55}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-center justify-between gap-3",children:[T.jsx("span",{className:"min-w-0 truncate text-sm font-medium sm:text-[15px]",style:{color:N.ink},children:b.label}),T.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium sm:text-xs",style:{color:R},children:[(P||k)&&T.jsx(dt,{name:P?"trending_up":"trending_down",size:"xs"}),P?"Você lidera":k?`${kk(b.rivalName)||i||"Concorrente"} lidera`:A?"Empate":"Sem comparação"]})]}),T.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[T.jsx("img",{src:s,alt:"",width:32,height:32,className:qe("shrink-0 rounded-[10px] border bg-white p-1",s0),style:{borderColor:N.border}}),T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] font-normal tabular-nums tracking-[-0.01em] sm:text-xl",style:{color:w},children:b.you}),T.jsx("span",{className:"relative h-3.5 flex-1 overflow-hidden rounded-full",style:{background:"rgba(40,37,36,0.07)"},children:T.jsx("span",{className:"absolute inset-y-0 left-0 rounded-full transition-[width] duration-700 ease-out",style:{width:l?`${L*100}%`:"0%",background:w}})}),A&&T.jsxs(T.Fragment,{children:[T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] tabular-nums sm:text-xl",style:{color:N.muted},children:b.rival??"—"}),T.jsx(Pk,{name:b.rivalName,className:s0})]})]})]},S)},e[17]=l,e[18]=s,e[19]=i,e[20]=y):y=e[20],c=m.map(y),e[0]=l,e[1]=n,e[2]=o,e[3]=t,e[4]=s,e[5]=a,e[6]=i,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v}else u=e[7],c=e[8],f=e[9],h=e[10],v=e[11];let d;e[21]!==u||e[22]!==c?(d=T.jsx("div",{className:u,children:c}),e[21]=u,e[22]=c,e[23]=d):d=e[23];let p;e[24]!==f||e[25]!==d?(p=T.jsx("div",{className:f,children:d}),e[24]=f,e[25]=d,e[26]=p):p=e[26];let g;return e[27]!==h||e[28]!==v||e[29]!==p?(g=T.jsxs("div",{className:h,children:[v,p]}),e[27]=h,e[28]=v,e[29]=p,e[30]=g):g=e[30],g}function Ek(r,e){return l0(r.d.tone)-l0(e.d.tone)||r.i-e.i}function Nk(r,e){return{d:r,i:e}}var Wd=function(r,e){return Wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Wd(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ok=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Bk=(function(){function r(){this.browser=new Ok,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Ae=new Bk;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ae.wxa=!0,Ae.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ae.worker=!0:!Ae.hasGlobalWindow||"Deno"in window?(Ae.node=!0,Ae.svgSupported=!0):zk(navigator.userAgent,Ae);function zk(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Bg=12,L2="sans-serif",fn=Bg+"px "+L2,Vk=20,Fk=100,Gk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Hk(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-Vk)/Fk;e[a]=n}return e}var jk=Hk(Gk),hn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=hn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||fn),r.measureText(t);t=t||"",a=a||fn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Bg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jk[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},P2=oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),k2=oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ro=Object.prototype.toString,Tf=Array.prototype,Wk=Tf.forEach,$k=Tf.filter,zg=Tf.slice,Uk=Tf.map,u0=(function(){}).constructor,ql=u0?u0.prototype:null,Vg="__proto__",Yk=2311;function R2(){return Yk++}function Fg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function le(r){if(r==null||typeof r!="object")return r;var e=r,t=Ro.call(r);if(t==="[object Array]"){if(!Bs(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=le(r[a])}}else if(k2[t]){if(!Bs(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!P2[t]&&!Bs(r)&&!So(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Vg&&(e[o]=le(r[o]))}return e}function ge(r,e,t){if(!se(e)||!se(r))return t?le(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Vg){var n=r[a],i=e[a];se(i)&&se(n)&&!$(i)&&!$(n)&&!So(i)&&!So(n)&&!c0(i)&&!c0(n)&&!Bs(i)&&!Bs(n)?ge(n,i,t):(t||!(a in r))&&(r[a]=le(e[a]))}return r}function Gg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ge(t,r[a],e);return t}function H(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Vg&&(r[t]=e[t]);return r}function oe(r,e,t){for(var a=Me(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function be(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function Xk(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ut(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else oe(r,e,t)}function Ot(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Wk)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return Hg(r);if(r.map&&r.map===Uk)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function oa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function ze(r,e,t){if(!r)return[];if(!e)return Hg(r);if(r.filter&&r.filter===$k)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Zk(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Me(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function qk(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(zg.call(arguments)))}}var ee=ql&&ie(ql.bind)?ql.call.bind(ql.bind):qk;function de(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(zg.call(arguments)))}}function $(r){return Array.isArray?Array.isArray(r):Ro.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function J(r){return typeof r=="string"}function $d(r){return Ro.call(r)==="[object String]"}function ke(r){return typeof r=="number"}function se(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function c0(r){return!!P2[Ro.call(r)]}function tr(r){return!!k2[Ro.call(r)]}function So(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Cf(r){return r.colorStops!=null}function Kk(r){return r.image!=null}function Jk(r){return Ro.call(r)==="[object RegExp]"}function Qs(r){return r!==r}function Ct(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function he(r,e){return r??e}function na(r,e,t){return r??e??t}function Hg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return zg.apply(r,e)}function jg(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function $t(r,e){if(!r)throw new Error(e)}function Or(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var E2="__ec_primitive__";function Cc(r){r[E2]=!0}function Bs(r){return r[E2]}var Qk=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Me(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),N2=typeof Map=="function";function e5(){return N2?new Map:new Qk}var t5=(function(){function r(e){var t=$(e);this.data=e5();var a=this;e instanceof r?e.each(n):e&&I(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return N2?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function ae(r){return new t5(r)}function el(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Af(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&H(t,e),t}function O2(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function re(r,e){return r.hasOwnProperty(e)}function nt(){}var tc=180/Math.PI;function Ci(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Vt(r,e){return r[0]=e[0],r[1]=e[1],r}function ba(r){return[r[0],r[1]]}function r5(r,e,t){return r[0]=e,r[1]=t,r}function f0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Ud(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function ti(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Yd(r){return Math.sqrt(a5(r))}function a5(r){return r[0]*r[0]+r[1]*r[1]}function rc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Eo(r,e){var t=Yd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Xd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var qa=Xd;function n5(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ui=n5;function ac(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function It(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Ka(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ja(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Oi=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),i5=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Oi(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Oi(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Oi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Oi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Oi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ar=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),o5=Math.log(2);function Zd(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/o5);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&n||(f+=(v%2?-1:1)*r[t][h]*Zd(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function h0(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Zd(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Zd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var v0="___zrEVENTSAVED",mh=[];function s5(r,e,t,a,n){return qd(mh,e,a,n,!0)&&qd(r,t,mh[0],mh[1])}function qd(r,e,t,a,n){if(e.getBoundingClientRect&&Ae.domSupported&&!B2(e)){var i=e[v0]||(e[v0]={}),o=l5(e,i),s=u5(o,i,n);if(s)return s(r,t,a),!0}return!1}function l5(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function u5(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&i&&h===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?h0(s,o):h0(o,s))}function B2(r){return r.nodeName.toUpperCase()==="CANVAS"}var c5=/([&<>"'])/g,f5={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(r){return r==null?"":(r+"").replace(c5,function(e,t){return f5[t]})}var h5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yh=[],v5=Ae.browser.firefox&&+Ae.browser.version.split(".")[0]<39;function Kd(r,e,t,a){return t=t||{},a?d0(r,e,t):v5&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):d0(r,e,t),t}function d0(r,e,t){if(Ae.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(B2(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(qd(yh,r,a,n)){t.zrX=yh[0],t.zrY=yh[1];return}}t.zrX=t.zrY=0}function Wg(r){return r||window.event}function pr(r,e,t){if(e=Wg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Kd(r,o,e,t)}else{Kd(r,e,e,t);var i=d5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&h5.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function d5(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Jd(r,e,t,a){r.addEventListener(e,t,a)}function p5(r,e,t,a){r.removeEventListener(e,t,a)}var Aa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function p0(r){return r.which===2||r.which===3}var g5=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Kd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in xh)if(xh.hasOwnProperty(t)){var a=xh[t](this._track,e);if(a)return a}},r})();function g0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function m5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var xh={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=g0(a)/g0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=m5(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function or(){return[1,0,0,1,0,0]}function Df(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function $g(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Sa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function sa(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ai(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function Ug(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function No(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function y5(r){var e=or();return $g(e,r),e}var me=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Kl=Math.min,Jl=Math.max,bn=new me,Sn=new me,wn=new me,Tn=new me,qo=new me,Ko=new me,xe=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Kl(e.x,this.x),a=Kl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=or();return sa(i,i,[-t.x,-t.y]),Ug(i,i,[a,n]),sa(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(i<l||u<n||s<c||f<o);if(t){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),m=Math.abs(s-c),y=Math.abs(f-o),x=Math.min(p,g),_=Math.min(m,y);i<l||u<n?x>d&&(d=x,p<g?me.set(Ko,-p,0):me.set(Ko,g,0)):x<v&&(v=x,p<g?me.set(qo,p,0):me.set(qo,-g,0)),s<c||f<o?_>d&&(d=_,m<y?me.set(Ko,0,-m):me.set(Ko,0,y)):x<v&&(v=x,m<y?me.set(qo,0,m):me.set(qo,0,-y))}return t&&me.copy(t,h?qo:Ko),h},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bn.x=wn.x=t.x,bn.y=Tn.y=t.y,Sn.x=Tn.x=t.x+t.width,Sn.y=wn.y=t.y+t.height,bn.transform(a),Tn.transform(a),Sn.transform(a),wn.transform(a),e.x=Kl(bn.x,Sn.x,wn.x,Tn.x),e.y=Kl(bn.y,Sn.y,wn.y,Tn.y);var l=Jl(bn.x,Sn.x,wn.x,Tn.x),u=Jl(bn.y,Sn.y,wn.y,Tn.y);e.width=l-e.x,e.height=u-e.y},r})(),z2="silent";function x5(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_5}}function _5(){Aa(this.event)}var b5=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ar),Jo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),S5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_h=new xe(0,0,0,0),V2=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Jo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new b5,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new i5(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(I(S5,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=F2(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Jo(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Jo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=x5(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Jo(t,a);if(m0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new xe(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(_h.copy(h.getBoundingRect()),h.transform&&_h.applyTransform(h.transform),_h.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),x=a+g*Math.sin(m);if(m0(s,o,y,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new g5);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Jo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Ar);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){V2.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=F2(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||qa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function w5(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?z2:!0}return!1}function m0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=w5(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==z2)){e.target=o;break}}}function F2(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var G2=32,Qo=7;function T5(r){for(var e=0;r>=G2;)e|=r&1,r>>=1;return r+e}function y0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;C5(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function C5(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function x0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function bh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function Sh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function A5(r,e){var t=Qo,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var d=a[v],p=n[v],g=a[v+1],m=n[v+1];n[v]=p+m,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var y=Sh(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=bh(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):h(d,p,g,m)))}function f(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,x=p,_=v;if(r[_++]=r[x++],--g===0){for(m=0;m<d;m++)r[_+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y];return}for(var b=t,S,w,A;;){S=0,w=0,A=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,S=0,--g===0){A=!0;break}}else if(r[_++]=o[y++],S++,w=0,--d===1){A=!0;break}while((S|w)<b);if(A)break;do{if(S=Sh(r[x],o,y,d,0,e),S!==0){for(m=0;m<S;m++)r[_+m]=o[y+m];if(_+=S,y+=S,d-=S,d<=1){A=!0;break}}if(r[_++]=r[x++],--g===0){A=!0;break}if(w=bh(o[y],r,x,g,0,e),w!==0){for(m=0;m<w;m++)r[_+m]=r[x+m];if(_+=w,x+=w,g-=w,g===0){A=!0;break}}if(r[_++]=o[y++],--d===1){A=!0;break}b--}while(S>=Qo||w>=Qo);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[_+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,x=g-1,_=p+g-1,b=0,S=0;if(r[_--]=r[y--],--d===0){for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m];return}if(g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x];return}for(var w=t;;){var A=0,C=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],A++,C=0,--d===0){D=!0;break}}else if(r[_--]=o[x--],C++,A=0,--g===1){D=!0;break}while((A|C)<w);if(D)break;do{if(A=d-Sh(o[x],r,v,d,d-1,e),A!==0){for(_-=A,y-=A,d-=A,S=_+1,b=y+1,m=A-1;m>=0;m--)r[S+m]=r[b+m];if(d===0){D=!0;break}}if(r[_--]=o[x--],--g===1){D=!0;break}if(C=g-bh(r[y],o,0,g,g-1,e),C!==0){for(_-=C,x-=C,g-=C,S=_+1,b=x+1,m=0;m<C;m++)r[S+m]=o[b+m];if(g<=1){D=!0;break}}if(r[_--]=r[y--],--d===0){D=!0;break}w--}while(A>=Qo||C>=Qo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x]}else{if(g===0)throw new Error;for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function nc(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<G2){i=y0(r,t,a,e),x0(r,t,a,t+i,e);return}var o=A5(r,e),s=T5(n);do{if(i=y0(r,t,a,e),i<s){var l=n;l>s&&(l=s),x0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var nr=1,Cs=2,io=4,_0=!1;function wh(){_0||(_0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function b0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var D5=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=b0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,nc(a,b0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=nr),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(wh(),c.z=0),isNaN(c.z2)&&(wh(),c.z2=0),isNaN(c.zlevel)&&(wh(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=be(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Ac;Ac=Ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-zs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?zs.bounceIn(r*2)*.5:zs.bounceOut(r*2-1)*.5+.5}},Ql=Math.pow,sn=Math.sqrt,Dc=1e-8,H2=1e-4,S0=sn(3),eu=1/3,Jr=Ci(),xr=Ci(),go=Ci();function Qa(r){return r>-Dc&&r<Dc}function j2(r){return r>Dc||r<-Dc}function mt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function w0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Mc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Qa(c)&&Qa(f))if(Qa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=f*f-4*c*h;if(Qa(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var y=sn(p),x=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);x<0?x=-Ql(-x,eu):x=Ql(x,eu),_<0?_=-Ql(-_,eu):_=Ql(_,eu);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*sn(c*c*c)),S=Math.acos(b)/3,w=sn(c),A=Math.cos(S),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+S0*Math.sin(S)))/(3*o),C=(-s+w*(A-S0*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),C>=0&&C<=1&&(i[v++]=C)}}return v}function W2(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Qa(o)){if(j2(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(Qa(c))n[0]=-i/(2*o);else if(c>0){var f=sn(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function vn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function $2(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;Jr[0]=l,Jr[1]=u;for(var y=0;y<1;y+=.05)xr[0]=mt(r,t,n,o,y),xr[1]=mt(e,a,i,s,y),g=ui(Jr,xr),g<v&&(f=y,v=g);v=1/0;for(var x=0;x<32&&!(h<H2);x++)d=f-h,p=f+h,xr[0]=mt(r,t,n,o,d),xr[1]=mt(e,a,i,s,d),g=ui(xr,Jr),d>=0&&g<v?(f=d,v=g):(go[0]=mt(r,t,n,o,p),go[1]=mt(e,a,i,s,p),m=ui(go,Jr),p<=1&&m<v?(f=p,v=m):h*=.5);return c&&(c[0]=mt(r,t,n,o,f),c[1]=mt(e,a,i,s,f)),sn(v)}function M5(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=mt(r,t,n,o,d),g=mt(e,a,i,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Tt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Qd(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function I5(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Qa(i)){if(j2(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(Qa(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=sn(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function U2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function tl(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Y2(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Jr[0]=o,Jr[1]=s;for(var h=0;h<1;h+=.05){xr[0]=Tt(r,t,n,h),xr[1]=Tt(e,a,i,h);var v=ui(Jr,xr);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<H2);d++){var p=u-c,g=u+c;xr[0]=Tt(r,t,n,p),xr[1]=Tt(e,a,i,p);var v=ui(xr,Jr);if(p>=0&&v<f)u=p,f=v;else{go[0]=Tt(r,t,n,g),go[1]=Tt(e,a,i,g);var m=ui(go,Jr);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Tt(r,t,n,u),l[1]=Tt(e,a,i,u)),sn(f)}function L5(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Tt(r,t,n,h),d=Tt(e,a,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var P5=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yg(r){var e=r&&P5.exec(r);if(e){var t=e[1].split(","),a=+Or(t[0]),n=+Or(t[1]),i=+Or(t[2]),o=+Or(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Mc(0,a,i,1,l,s)&&mt(0,n,o,1,s[0])}}}var k5=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:zs[e]||Yg(e)},r})(),X2=(function(){function r(e){this.value=e}return r})(),R5=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new X2(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ml=(function(){function r(e){this._list=new R5,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new X2(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),T0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zr(r){return r=Math.round(r),r<0?0:r>255?255:r}function E5(r){return r=Math.round(r),r<0?0:r>360?360:r}function rl(r){return r<0?0:r>1?1:r}function Th(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function ci(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?rl(parseFloat(e)/100):rl(parseFloat(e))}function Ch(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function en(r,e,t){return r+(e-r)*t}function dr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ep(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Z2=new Ml(20),tu=null;function Bi(r,e){tu&&ep(tu,e),tu=Z2.put(r,tu||e.slice())}function sr(r,e){if(r){e=e||[];var t=Z2.get(r);if(t)return ep(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in T0)return ep(e,T0[a]),Bi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){dr(e,0,0,0,1);return}return dr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Bi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){dr(e,0,0,0,1);return}return dr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Bi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?dr(e,+u[0],+u[1],+u[2],1):dr(e,0,0,0,1);c=ci(u.pop());case"rgb":if(u.length>=3)return dr(e,Th(u[0]),Th(u[1]),Th(u[2]),u.length===3?c:ci(u[3])),Bi(r,e),e;dr(e,0,0,0,1);return;case"hsla":if(u.length!==4){dr(e,0,0,0,1);return}return u[3]=ci(u[3]),tp(u,e),Bi(r,e),e;case"hsl":if(u.length!==3){dr(e,0,0,0,1);return}return tp(u,e),Bi(r,e),e;default:return}}dr(e,0,0,0,1)}}function tp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ci(r[1]),n=ci(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],dr(e,zr(Ch(o,i,t+1/3)*255),zr(Ch(o,i,t)*255),zr(Ch(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function N5(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,h=((i-a)/6+o/2)/o;e===i?l=h-f:t===i?l=1/3+c-h:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function rp(r,e){var t=sr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return wa(t,t.length===4?"rgba":"rgb")}}function Ah(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=zr(en(o[0],s[0],l)),t[1]=zr(en(o[1],s[1],l)),t[2]=zr(en(o[2],s[2],l)),t[3]=rl(en(o[3],s[3],l)),t}}function O5(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=sr(e[n]),s=sr(e[i]),l=a-n,u=wa([zr(en(o[0],s[0],l)),zr(en(o[1],s[1],l)),zr(en(o[2],s[2],l)),rl(en(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Vs(r,e,t,a){var n=sr(r);if(r)return n=N5(n),e!=null&&(n[0]=E5(e)),t!=null&&(n[1]=ci(t)),a!=null&&(n[2]=ci(a)),wa(tp(n),"rgba")}function Ic(r,e){var t=sr(r);if(t&&e!=null)return t[3]=rl(e),wa(t,"rgba")}function wa(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lc(r,e){var t=sr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var C0=new Ml(100);function ap(r){if(J(r)){var e=C0.get(r);return e||(e=rp(r,-.1),C0.put(r,e)),e}else if(Cf(r)){var t=H({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:rp(a.color,-.1)}}),t}return r}var Pc=Math.round;function al(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=sr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var A0=1e-4;function tn(r){return r<A0&&r>-A0}function ru(r){return Pc(r*1e3)/1e3}function np(r){return Pc(r*1e4)/1e4}function B5(r){return"matrix("+ru(r[0])+","+ru(r[1])+","+ru(r[2])+","+ru(r[3])+","+np(r[4])+","+np(r[5])+")"}var z5={left:"start",right:"end",center:"middle",middle:"middle"};function V5(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function F5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function G5(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function q2(r){return r&&!!r.image}function H5(r){return r&&!!r.svgElement}function Xg(r){return q2(r)||H5(r)}function K2(r){return r.type==="linear"}function J2(r){return r.type==="radial"}function Q2(r){return r&&(r.type==="linear"||r.type==="radial")}function Mf(r){return"url(#"+r+")"}function eT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function tT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*tc,n=he(r.scaleX,1),i=he(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Pc(o*tc)+"deg, "+Pc(s*tc)+"deg)"),l.join(" ")}var j5=(function(){return Ae.hasGlobalWindow&&ie(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),ip=Array.prototype.slice;function ma(r,e,t){return(e-r)*t+r}function Dh(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ma(e[i],t[i],a);return r}function W5(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ma(e[o][s],t[o][s],a)}return r}function au(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function D0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function $5(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function U5(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:ip.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Fs(r){if(Ot(r)){var e=r.length;if(Ot(r[0])){for(var t=[],a=0;a<e;a++)t.push(ip.call(r[a]));return t}return ip.call(r)}return r}function ic(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Y5(r){return Ot(r&&r[0])?2:1}var nu=0,oc=1,rT=2,As=3,op=4,sp=5,M0=6;function I0(r){return r===op||r===sp}function iu(r){return r===oc||r===rT}var es=[0,0,0,0],X5=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=M0,l=t;if(Ot(t)){var u=Y5(t);s=u,(u===1&&!ke(t[0])||u===2&&!ke(t[0][0]))&&(o=!0)}else if(ke(t)&&!Qs(t))s=nu;else if(J(t))if(!isNaN(+t))s=nu;else{var c=sr(t);c&&(l=c,s=As)}else if(Cf(t)){var f=H({},l);f.colorStops=Y(t.colorStops,function(v){return{offset:v.offset,color:sr(v.color)}}),K2(t)?s=op:J2(t)&&(s=sp),l=f}i===0?this.valType=s:(s!==this.valType||s===M0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=ie(a)?a:zs[a]||Yg(a)),n.push(h),h},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=iu(n),u=I0(n),c=0;c<i;c++){var f=a[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?U5(h,v,n):u&&$5(h.colorStops,v.colorStops))}if(!s&&n!==sp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===nu?a[c].additiveValue=a[c].value-d:n===As?a[c].additiveValue=au([],a[c].value,d,-1):iu(n)&&(a[c].additiveValue=n===oc?au([],a[c].value,d,-1):D0([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===As,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?es:e[l];if((iu(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(iu(i))i===oc?Dh(y,v[n],d[n],m):W5(y,v[n],d[n],m);else if(I0(i)){var x=v[n],_=d[n],b=i===op;e[l]={type:b?"linear":"radial",x:ma(x.x,_.x,m),y:ma(x.y,_.y,m),colorStops:Y(x.colorStops,function(w,A){var C=_.colorStops[A];return{offset:ma(w.offset,C.offset,m),color:ic(Dh([],w.color,C.color,m))}}),global:_.global},b?(e[l].x2=ma(x.x2,_.x2,m),e[l].y2=ma(x.y2,_.y2,m)):e[l].r=ma(x.r,_.r,m)}else if(u)Dh(y,v[n],d[n],m),a||(e[l]=ic(y));else{var S=ma(v[n],d[n],m);a?this._additiveValue=S:e[l]=S}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===nu?e[a]=e[a]+n:t===As?(sr(e[a],es),au(es,es,n,1),e[a]=ic(es)):t===oc?au(e[a],e[a],n,1):t===rT&&D0(e[a],e[a],n,1)},r})(),Zg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Fg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Me(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new X5(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===As&&u&&(u=ic(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Fs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Fs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new k5({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Fs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Me(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function co(){return new Date().getTime()}var Z5=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=co()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Ac(a),!t._paused&&t.update())}Ac(a)},e.prototype.start=function(){this._running||(this._time=co(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=co(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=co()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Zg(t,a.loop);return this.addAnimator(n),n},e})(Ar),q5=300,Mh=Ae.domSupported,Ih=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),L0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},P0=!1;function lp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function K5(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Lh(r){r&&(r.zrByTouch=!0)}function J5(r,e){return pr(r.dom,new Q5(r,e),!0)}function aT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var Q5=(function(){function r(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Rr={mousedown:function(r){r=pr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pr(this.dom,r);var e=r.toElement||r.relatedTarget;aT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){P0=!0,r=pr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){P0||(r=pr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pr(this.dom,r),Lh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Rr.mousemove.call(this,r),Rr.mousedown.call(this,r)},touchmove:function(r){r=pr(this.dom,r),Lh(r),this.handler.processGesture(r,"change"),Rr.mousemove.call(this,r)},touchend:function(r){r=pr(this.dom,r),Lh(r),this.handler.processGesture(r,"end"),Rr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<q5&&Rr.click.call(this,r)},pointerdown:function(r){Rr.mousedown.call(this,r)},pointermove:function(r){lp(r)||Rr.mousemove.call(this,r)},pointerup:function(r){Rr.mouseup.call(this,r)},pointerout:function(r){lp(r)||Rr.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){Rr[r]=function(e){e=pr(this.dom,e),this.trigger(r,e)}});var up={pointermove:function(r){lp(r)||up.mousemove.call(this,r)},pointerup:function(r){up.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function eR(r,e){var t=e.domHandlers;Ae.pointerEventsSupported?I(Ih.pointer,function(a){sc(e,a,function(n){t[a].call(r,n)})}):(Ae.touchEventsSupported&&I(Ih.touch,function(a){sc(e,a,function(n){t[a].call(r,n),K5(e)})}),I(Ih.mouse,function(a){sc(e,a,function(n){n=Wg(n),e.touching||t[a].call(r,n)})}))}function tR(r,e){Ae.pointerEventsSupported?I(L0.pointer,t):Ae.touchEventsSupported||I(L0.mouse,t);function t(a){function n(i){i=Wg(i),aT(r,i.target)||(i=J5(r,i),e.domHandlers[a].call(r,i))}sc(e,a,n,{capture:!0})}}function sc(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Jd(r.domTarget,e,t,a)}function Ph(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&p5(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var k0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),rR=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new k0(t,Rr),Mh&&(n._globalHandlerScope=new k0(document,up)),eR(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Ph(this._localHandlerScope),Mh&&Ph(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Mh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?tR(this,a):Ph(a)}},e})(Ar),nT=1;Ae.hasGlobalWindow&&(nT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kc=nT,cp=.4,fp="#333",hp="#ccc",aR="#eee",R0=Df,E0=5e-5;function Cn(r){return r>E0||r<-E0}var An=[],zi=[],kh=or(),Rh=Math.abs,xa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(R0(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):R0(a),e&&(t?Sa(a,e,a):$g(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(An);var a=An[0]<0?-1:1,n=An[1]<0?-1:1,i=((An[0]-a)*t+a)/An[0]||0,o=((An[1]-n)*t+n)/An[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),No(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||or(),Sa(zi,e.invTransform,t),t=zi);var a=this.originX,n=this.originY;(a||n)&&(kh[4]=a,kh[5]=n,Sa(zi,t,kh),zi[4]-=a,zi[5]-=n,t=zi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&It(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&It(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Rh(e[0]-1)>1e-10&&Rh(e[3]-1)>1e-10?Math.sqrt(Rh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){iT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&Ai(t,t,u),t[4]+=a+c,t[5]+=n+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),la=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iT(r,e){for(var t=0;t<la.length;t++){var a=la[t];r[a]=e[a]}}var N0={};function lr(r,e){e=e||fn;var t=N0[e];t||(t=N0[e]=new Ml(500));var a=t.get(r);return a==null&&(a=hn.measureText(r,e).width,t.put(r,a)),a}function O0(r,e,t,a){var n=lr(r,e),i=If(e),o=Ds(0,n,t),s=oo(0,i,a),l=new xe(o,s,n,i);return l}function Il(r,e,t,a){var n=((r||"")+"").split(`
|
|
2
2
|
`),i=n.length;if(i===1)return O0(n[0],e,t,a);for(var o=new xe(0,0,0,0),s=0;s<n.length;s++){var l=O0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Ds(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function oo(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function If(r){return lr("国",r)}function Fr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Rc(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(a instanceof Array)l+=Fr(a[0],t.width),u+=Fr(a[1],t.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var Eh="__zr_normal__",Nh=la.concat(["ignore"]),nR=oa(la,function(r,e){return r[e]=!0,r},{ignore:!1}),Vi={},iR=new xe(0,0,0,0),Lf=(function(){function r(e){this.id=R2(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var c=iR;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vi,a,c):Rc(Vi,a,c),i.x=Vi.x,i.y=Vi.y,o=Vi.align,s=Vi.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Fr(f[0],c.width),v=Fr(f[1],c.height)),u=!0,i.originX=-i.x+h+(n?0:c.x),i.originY=-i.y+v+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;p&&this.canBeInsideText()?(m=a.insideFill,y=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=a.outsideFill,y=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=nr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hp:fp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&sr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,wa(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},H(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(se(e))for(var a=e,n=Me(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Eh)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Nh)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Eh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Eh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Fg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,t,a,c),h&&h.useState(e,t,a,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],h=!!(f&&f.hoverLayer||a);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=be(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=be(n,e),o=be(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];H(t,i),i.textConfig&&(a=a||{},H(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=H({},n?this.textConfig:a.textConfig),H(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<Nh.length;c++){var f=Nh[c],h=i&&nR[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(h?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new xa,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),H(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=nr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new Zg(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=be(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Oh(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Oh(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Oh(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=nr;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();ut(Lf,Ar);ut(Lf,xa);function Oh(r,e,t,a,n){t=t||{};var i=[];oT(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var h=0;h<i.length;h++){var v=i[h];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function Bh(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function oR(r){return Ot(r[0])}function sR(r,e,t){if(Ot(e[t]))if(Ot(r[t])||(r[t]=[]),tr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Bh(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(oR(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Bh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Bh(i,n,o);i.length=n.length}else r[t]=e[t]}function lR(r,e){return r===e||Ot(r)&&Ot(e)&&uR(r,e)}function uR(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function oT(r,e,t,a,n,i,o,s){for(var l=Me(a),u=n.duration,c=n.delay,f=n.additive,h=n.setToFinal,v=!se(i),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=a[m];if(y!=null&&t[m]!=null&&(v||i[m]))if(se(y)&&!Ot(y)&&!Cf(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}oT(r,m,t[m],y,n,i&&i[m],o,s)}else p.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),p.push(m))}var x=p.length;if(!f&&x)for(var _=0;_<d.length;_++){var b=d[_];if(b.targetName===e){var S=b.stopTracks(p);if(S){var w=be(d,b);d.splice(w,1)}}}if(n.force||(p=ze(p,function(M){return!lR(a[M],t[M])}),x=p.length),x>0||n.force&&!o.length){var A=void 0,C=void 0,D=void 0;if(s){C={},h&&(A={});for(var _=0;_<x;_++){var m=p[_];C[m]=t[m],h?A[m]=a[m]:t[m]=a[m]}}else if(h){D={};for(var _=0;_<x;_++){var m=p[_];D[m]=Fs(t[m]),sR(t,a,m)}}var b=new Zg(t,!1,!1,f?ze(d,function(L){return L.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),h&&A&&b.whenWithKeys(0,A,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?C:a,p).delay(c||0),r.addAnimator(b,e),o.push(b)}}var ue=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=be(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=be(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new xe(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(xe.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Lf);ue.prototype.type="group";var lc={},sT={};function cR(r){delete sT[r]}function fR(r){if(!r)return!1;if(typeof r=="string")return Lc(r,1)<cp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Lc(e[n].color,1);return t/=a,t<cp}return!1}var hR=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new D5,o=a.renderer||"canvas";lc[o]||(o=Me(lc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new lc[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ae.node&&!Ae.worker&&!l?new rR(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Ae.touchEventsSupported:!!c,h=44,v;f&&(v=he(a.pointerSize,h)),this.handler=new V2(i,s,u,s.root,v),this.animation=new Z5({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=fR(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=co();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=co();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ue&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,cR(this.id))},r})();function B0(r,e){var t=new hR(R2(),r,e);return sT[t.id]=t,t}function vR(r,e){lc[r]=e}var vp;function dR(r){if(typeof vp=="function")return vp(r)}function pR(r){vp=r}var z0=1e-4,lT=20;function gR(r){return r.replace(/^\s+|\s+$/g,"")}function Fe(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function q(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return J(r)?gR(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function tt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),lT),r=(+r).toFixed(e),t?r:+r}function wr(r){return r.sort(function(e,t){return e-t}),r}function ea(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return mR(r)}function mR(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function uT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yR(r,e){var t=oa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=Y(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=Y(n,function(v){return Math.floor(v)}),s=oa(o,function(v,d){return v+d},0),l=Y(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Y(o,function(v){return v/a})}function xR(r,e){var t=Math.max(ea(r),ea(e)),a=r+e;return t>lT?a:tt(a,t)}var V0=9007199254740991;function cT(r){var e=Math.PI*2;return(r%e+e)%e}function nl(r){return r>-z0&&r<z0}var _R=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ua(r){if(r instanceof Date)return r;if(J(r)){var e=_R.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function bR(r){return Math.pow(10,qg(r))}function qg(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function fT(r,e){var t=qg(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function zh(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function F0(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Da(r){var e=parseFloat(r);return e==r&&(e!==0||!J(r)||r.indexOf("x")<=0)?e:NaN}function hT(r){return!isNaN(Da(r))}function vT(){return Math.round(Math.random()*9)}function dT(r,e){return e===0?r:dT(e,r%e)}function G0(r,e){return r==null?e:e==null?r:r*e/dT(r,e)}function Be(r){throw new Error(r)}function H0(r,e,t){return(e-r)*t+r}var pT="series\0",gT="\0_ec_\0";function je(r){return r instanceof Array?r:r==null?[]:[r]}function yi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var j0=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Oo(r){return se(r)&&!$(r)&&!(r instanceof Date)?r.value:r}function SR(r){return se(r)&&!(r instanceof Array)}function mT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ae();I(e,function(l,u){if(!se(l)){e[u]=null;return}});var s=wR(r,o,t);return(a||n)&&TR(s,r,o,e),a&&CR(s,e),a||n?AR(s,e,n):i&&DR(s,e),MR(s),s}function wR(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||il(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function TR(r,e,t,a){I(a,function(n,i){if(!(!n||n.id==null)){var o=Gs(n.id),s=t.get(o);if(s!=null){var l=r[s];$t(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function CR(r,e){I(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!il(t)&&!il(i)&&yT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function AR(r,e,t){I(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||il(n.existing)||n.existing&&a.id!=null&&!yT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function DR(r,e){I(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function MR(r){var e=ae();I(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),I(r,function(t){var a=t.newOption;$t(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),I(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(se(i)){if(o.name=i.name!=null?Gs(i.name):n?n.name:pT+a,n)o.id=Gs(n.id);else if(i.id!=null)o.id=Gs(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function yT(r,e,t){var a=pt(e[r],null),n=pt(t[r],null);return a!=null&&n!=null&&a===n}function Gs(r){return pt(r,"")}function pt(r,e){return r==null?e:J(r)?r:ke(r)||$d(r)?r+"":e}function Kg(r){var e=r.name;return!!(e&&e.indexOf(pT))}function il(r){return r&&r.id!=null&&Gs(r.id).indexOf(gT)===0}function IR(r){return gT+r}function LR(r,e,t){I(r,function(a){var n=a.newOption;se(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=PR(e,n,a.existing,t))})}function PR(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function kR(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=pt(o[u].seriesId,null);if(f==null)return;for(var h=je(o[u].dataIndex),v=l&&l[f],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function xi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return $(e.dataIndex)?Y(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return $(e.name)?Y(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Le(){var r="__ec_inner_"+RR++;return function(e){return e[r]||(e[r]={})}}var RR=vT();function Hs(r,e,t){var a=Jg(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=Ll(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Jg(r,e){var t;if(J(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=ae(),i={},o=!1;return I(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&be(e.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var st={useDefault:!0,enableAll:!1,enableNone:!1},ER={useDefault:!1,enableAll:!0,enableNone:!0};function Ll(r,e,t,a){a=a||st;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?($t(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&($t(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function xT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function NR(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function OR(r){return r==="auto"?Ae.domSupported?"html":"richText":r||"html"}function dp(r,e){var t=ae(),a=[];return I(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function _T(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(ke(a)){var o=H0(t||0,a,n);return tt(o,i?Math.max(ea(t||0),ea(a)):e)}else{if(J(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=H0(v,d,n);s[f]=tt(o,i?Math.max(ea(v),ea(d)):e)}}return s}}var BR=".",Dn="___EC__COMPONENT__CONTAINER___",bT="___EC__EXTENDED_CLASS___";function ta(r){var e={main:"",sub:""};if(r){var t=r.split(BR);e.main=t[0]||"",e.sub=t[1]||""}return e}function zR(r){$t(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function VR(r){return!!(r&&r[bT])}function Qg(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return FR(a)?n=(function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},Xk(n,this)),H(n.prototype,t),n[bT]=!0,n.extend=this.extend,n.superCall=jR,n.superApply=WR,n.superClass=a,n}}function FR(r){return ie(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ST(r,e){r.extend=e.extend}var GR=Math.round(Math.random()*10);function HR(r){var e=["__\0is_clz",GR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function jR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function WR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Pf(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){zR(n),a.prototype.type=n;var i=ta(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Dn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Dn]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ta(a),i=[],o=e[n.main];return o&&o[Dn]?I(o,function(s,l){l!==Dn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ta(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return I(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ta(a),i=e[n.main];return i&&i[Dn]};function t(a){var n=e[a.main];return(!n||!n[Dn])&&(n=e[a.main]={},n[Dn]=!0),n}}function _i(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&be(n,l)>=0||i&&be(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var $R=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UR=_i($R),YR=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return UR(this,e,t)},r})(),pp=new Ml(50);function XR(r){if(typeof r=="string"){var e=pp.get(r);return e&&e.image}else return r}function em(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=pp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!kf(e)&&i.pending.push(o)):(e=hn.loadImage(r,W0,W0),e.__zrImageSrc=r,pp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function W0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function kf(r){return r&&r.width&&r.height}var Vh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ZR(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
3
|
`);i=wT(t,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)TT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
4
4
|
`),r.isTruncated=s}function wT(r,e,t,a){a=a||{};var n=H({},a);n.font=e,t=he(t,"..."),n.maxIterations=he(a.maxIterations,2);var i=n.minChar=he(a.minChar,0);n.cnCharWidth=lr("国",e);var o=n.ascCharWidth=lr("a",e);n.placeholder=he(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=lr(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function TT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=lr(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?qR(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=lr(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function qR(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function KR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=If(n),s=he(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?CT(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
|
|
@@ -40,4 +40,4 @@ import{c as _e,l as qe,j as T,r as Ne,o as on,T as po,w as hL,x as vL,a as dL,m
|
|
|
40
40
|
|
|
41
41
|
"${W.headline.replace(/\n/g," ")}"
|
|
42
42
|
|
|
43
|
-
Relatório gratuito do seu site →`,ce=async(W,j)=>{if(window.matchMedia("(pointer: coarse)").matches&&typeof navigator<"u"&&navigator.share){try{const ye=Z(j),we=Q(j,ye);await navigator.share({title:`${r.meta.brand} — ${j.title}`,text:pe(j),url:we}),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:j.key,slide_index:t,surface:"deck_v2",method:"web_share",share_id:ye,sharer_person_id:Qu()})}catch{}return}const Se=W.currentTarget.getBoundingClientRect();A(Se),D(Se.top<window.innerHeight/2?"below":"above"),L(Z(j)),S(ye=>!ye)},ne=async W=>{const j=Z(W),K=Q(W,j);try{await navigator.clipboard?.writeText(K),i("Link copiado"),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:W.key,slide_index:t,surface:"deck_v2",method:"copy_link",share_id:j,sharer_person_id:Qu()})}catch{i("Erro ao copiar")}S(!1),setTimeout(()=>i(null),1800)};return k?T.jsxs("div",{ref:W=>{const j=G(W),K=U(W);return()=>{j?.(),K?.()}},className:"fixed inset-0 flex flex-col font-sans antialiased",style:{background:N.bg,color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",fontFeatureSettings:"normal"},children:[T.jsx("header",{className:"shrink-0 px-3 pt-3 sm:px-6 sm:pt-4",children:T.jsxs("div",{className:"mx-auto flex h-14 max-w-[1360px] items-center gap-3 rounded-full border pl-4 pr-3 backdrop-blur-md sm:h-[60px] sm:pl-6 sm:pr-4",style:{borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},children:[T.jsx("a",{href:"https://decocms.com","aria-label":"deco — página inicial",className:"flex shrink-0 items-center opacity-95 transition-opacity hover:opacity-70",children:T.jsx("img",{src:"/logos/deco-logo.svg",alt:"deco",width:54,height:22,className:"h-[22px] w-auto"})}),T.jsx("div",{className:"ml-auto flex shrink-0 items-center",children:T.jsx("button",{type:"button",onClick:W=>ce(W,k),className:"inline-flex h-9 items-center rounded-full px-5 text-sm font-medium transition-transform hover:scale-[1.03]",style:{background:N.primary,color:N.primaryFg},children:"Share"})})]})}),T.jsxs("main",{className:"relative min-h-0 flex-1 overflow-hidden",children:[T.jsx("div",{className:"h-full w-full",style:{transform:`translateY(-${t*100}%)`,transition:"transform 620ms cubic-bezier(0.16,1,0.3,1)"},children:r.slides.map((W,j)=>T.jsx("div",{className:"h-full w-full overflow-hidden",children:T.jsx("div",{className:qe("mx-auto flex h-full w-full max-w-[1440px] flex-col sm:py-8",W.template.template==="cta"?"py-0":W.template.template==="cover"?"py-3":"py-6"),children:T.jsx(FY,{slide:W,deck:r,active:j===t,onNavigate:K=>V(r.slides.findIndex(Se=>Se.key===K))})})},W.key))}),T.jsx("nav",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 flex-col gap-1.5 transition-opacity duration-300 md:!opacity-100",style:{opacity:y?1:0},"aria-label":"Slides",children:r.slides.map((W,j)=>T.jsxs("button",{type:"button","aria-label":`Go to ${W.title}`,onClick:()=>V(j),className:"group relative flex h-5 items-center justify-end",children:[T.jsx("span",{className:"pointer-events-none absolute right-9 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium opacity-0 transition-all duration-200 group-hover:opacity-100",style:{background:N.ink,color:N.bg},children:W.title}),T.jsx("span",{className:"rounded-full transition-all duration-300",style:{height:j===t?3:2,width:j===t?28:12,background:j===t?N.ink:"rgba(40,37,36,0.22)"}})]},W.key))})]}),T.jsx("footer",{className:"flex shrink-0 items-center gap-2 px-4 py-4 sm:px-6",style:t===e-1?{borderTop:"1px solid rgba(255,255,255,0.14)",background:N.forest}:{borderTop:`1px solid ${N.border}`},children:t===e-1?T.jsxs(T.Fragment,{children:[T.jsxs("span",{className:"hidden text-sm tabular-nums opacity-50 lg:block",style:{color:N.ink},children:[Ju(t+1),"/",Ju(e)]}),T.jsx("button",{type:"button",onClick:W=>ce(W,k),"aria-label":"Compartilhar",className:"grid h-12 w-12 shrink-0 place-items-center rounded-full border lg:hidden",style:{borderColor:"rgba(255,255,255,0.2)",color:"#ffffff",background:"rgba(255,255,255,0.08)"},children:T.jsx(dt,{name:"share",size:"large"})}),T.jsxs("a",{href:P,onClick:W=>wf(W,{domain:r.meta.domain,placement:"deck_footer_mobile",slideKey:k.key,slideIndex:t}),className:"inline-flex h-12 flex-1 items-center justify-center gap-2 rounded-full px-6 text-base font-medium transition-transform duration-300 ease-out hover:scale-105 lg:hidden",style:{background:N.lime,color:N.forest},children:[T.jsx("span",{children:"Ver diagnóstico completo"}),T.jsx(dt,{name:"arrow_forward",size:"large"})]}),T.jsxs("button",{type:"button",onClick:W=>ce(W,k),className:"ml-auto hidden h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium lg:inline-flex",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"medium"}),T.jsx("span",{children:"Compartilhar"})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 sm:gap-2",children:[k.sources?.length?T.jsx("div",{className:"hidden items-center gap-1.5 sm:flex",children:k.sources.map(W=>T.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs",style:{borderColor:N.border,color:N.ink,background:N.surface},children:[Zy(W.name,W.logoUrl)&&T.jsx("img",{src:Zy(W.name,W.logoUrl),alt:"",width:14,height:14,className:"rounded-sm",onError:j=>{j.currentTarget.style.display="none"}}),T.jsx("span",{className:"whitespace-nowrap",children:W.name})]},W.name))}):null,k.methodology?T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"Como medimos","aria-expanded":o,onClick:()=>{u(!1),s(W=>!W)},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:o?N.ink:N.muted},children:[T.jsx(dt,{name:"info",size:"medium"}),T.jsx("span",{className:"hidden whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90 sm:inline",children:"Como medimos"})]}),T.jsx("span",{className:qe("absolute bottom-full left-0 mb-3 w-72 max-w-[calc(100vw-2rem)] rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200 group-hover:opacity-100",o?"opacity-100":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:k.methodology})]}):null,T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"A IA errou?","aria-expanded":l,onClick:()=>{s(!1),u(W=>{const j=!W;return j&&Ke("report_ai_feedback_opened",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}),j})},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:l?N.ink:N.muted},children:[T.jsx(dt,{name:"flag",size:"medium"}),T.jsx("span",{className:"whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90",children:"A IA errou?"})]}),T.jsx("div",{className:qe("absolute bottom-full left-0 mb-3 flex w-72 max-w-[calc(100vw-2rem)] flex-col gap-3 rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200",l?"opacity-100 pointer-events-auto":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:h?T.jsx("p",{style:{color:N.ink},children:"Obrigado! Iremos revisar esse slide."}):T.jsxs(T.Fragment,{children:[T.jsx("p",{children:"O que a análise leu errado neste slide?"}),T.jsx("textarea",{rows:3,value:c,onChange:W=>{f(W.target.value),!g.current&&W.target.value.length>0&&(g.current=!0,Ke("report_ai_feedback_started",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}))},placeholder:"Ex: o preço mostrado está desatualizado, a métrica não condiz com o segmento…",className:"w-full resize-none rounded-xl border px-3 py-2 text-sm leading-relaxed outline-none focus:ring-1 focus:ring-[#282524]",style:{borderColor:N.border,background:N.bg,color:N.ink}}),T.jsxs("button",{type:"button",disabled:!c.trim()||d,onClick:()=>{p(!0),Ke("report_ai_feedback_reported",{domain:r.meta.domain,slide_key:k.key,slide_index:t,slide_title:k.title,surface:"deck_v2",feedback_text:c.trim()}),v(!0),p(!1)},className:"inline-flex items-center gap-1.5 self-start rounded-full px-4 py-2 text-sm font-medium transition-opacity disabled:opacity-40",style:{background:N.primary,color:N.primaryFg},children:[T.jsx(dt,{name:"flag",size:"small"}),T.jsx("span",{children:d?"Enviando…":"Reportar erro"})]})]})})]}),T.jsxs("span",{className:"ml-1 hidden text-sm tabular-nums opacity-50 sm:inline",style:{color:N.ink},children:[Ju(t+1),"/",Ju(e)]})]}),T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[r.meta.scores?T.jsxs("span",{className:"hidden items-center gap-1.5 rounded-full px-2.5 py-1 text-xs tabular-nums lg:inline-flex",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},title:`Cobertura: ${r.meta.scores.coverage.checks_probed} de ${r.meta.scores.coverage.checks_total} verificações medidas neste relatório gratuito`,children:[T.jsxs("span",{style:{color:N.ink},children:[r.meta.scores.cover,"/100"]}),T.jsx("span",{"aria-hidden":!0,children:"·"}),T.jsxs("span",{children:[r.meta.scores.coverage.checks_probed,"/",r.meta.scores.coverage.checks_total," medidos"]})]}):null,T.jsxs("button",{type:"button",onClick:W=>ce(W,k),className:"inline-flex h-12 w-12 items-center justify-center gap-2 rounded-full border font-medium sm:w-auto sm:px-6 sm:text-sm",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"large"}),T.jsx("span",{className:"hidden sm:inline",children:"Compartilhar"})]}),T.jsxs("div",{className:"flex items-center gap-1 sm:hidden",children:[T.jsx("button",{type:"button",onClick:()=>V(t-1),disabled:t===0,"aria-label":"Slide anterior",className:"grid h-12 w-12 place-items-center rounded-full border disabled:opacity-30",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:T.jsx(dt,{name:"arrow_upward",size:"large"})}),T.jsx("button",{type:"button",onClick:()=>V(t+1),"aria-label":"Próximo slide",className:"grid h-12 w-12 place-items-center rounded-full",style:{background:N.primary,color:N.primaryFg},children:T.jsx(dt,{name:"arrow_downward",size:"large"})})]}),T.jsxs("button",{type:"button",onClick:()=>V(t+1),className:"hidden h-12 items-center gap-2 rounded-full px-6 text-sm font-medium sm:inline-flex",style:{background:N.primary,color:N.primaryFg},children:[T.jsx("span",{children:"Próximo"}),T.jsx(dt,{name:"arrow_forward",size:"medium"})]})]})]})}),b&&w&&T.jsxs("div",{ref:X,role:"menu",className:"fixed z-50 flex min-w-[200px] flex-col overflow-hidden rounded-xl border shadow-xl",style:{background:N.surface,borderColor:N.border,...C==="below"?{top:w.bottom+8}:{bottom:window.innerHeight-w.top+8},left:w.left+w.width/2,transform:"translateX(-50%)"},children:[T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>ne(k),className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx(dt,{name:"link",size:"medium"}),"Copiar link"]}),T.jsxs("a",{role:"menuitem",href:`https://twitter.com/intent/tweet?url=${encodeURIComponent(Q(k,M))}&text=${encodeURIComponent(pe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"twitter",share_id:M,sharer_person_id:Qu()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.261 5.635zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Compartilhar no X"]}),T.jsxs("a",{role:"menuitem",href:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(Q(k,M))}&title=${encodeURIComponent(`${r.meta.brand} — ${k.title}`)}&summary=${encodeURIComponent(pe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"linkedin",share_id:M,sharer_person_id:Qu()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"Compartilhar no LinkedIn"]})]}),n&&T.jsx("div",{className:"fixed bottom-20 left-1/2 z-50 -translate-x-1/2 rounded-full px-4 py-2 text-sm font-medium shadow-lg",style:{background:N.ink,color:N.bg},children:n})]}):null}const WY="#D0EC1A",fL="#07401A",$Y=()=>on()?po.get_distinct_id():void 0;function UY(r){const e=_e.c(17),{domain:t,initial:a,sessionEmail:n}=r,[i,o]=Ne.useState(a?.status==="ready"?a.deck:null);let s;e[0]!==t||e[1]!==a?.status?(s=()=>a?.status!=="ready"&&dP(t)?"pending":"scanning",e[0]=t,e[1]=a?.status,e[2]=s):s=e[2];const[l,u]=Ne.useState(s);let c;e[3]!==t||e[4]!==a?(c=d=>{if(!d||(a&&ec(t,a.drops),a?.status==="ready"))return;const p=new AbortController;return gP(t,$Y(),p.signal,{onPhase:u,onDeck:o}),()=>p.abort()},e[3]=t,e[4]=a,e[5]=c):c=e[5];const f=c;if(i){let d;return e[6]!==i?(d=T.jsx(jY,{deck:i}),e[6]=i,e[7]=d):d=e[7],d}if(l==="unauthorized"){let d;return e[8]!==t?(d=T.jsx(wc,{domain:t}),e[8]=t,e[9]=d):d=e[9],d}let h;e[10]!==t||e[11]!==l||e[12]!==n?(h=T.jsx(XY,{domain:t,phase:l,email:n}),e[10]=t,e[11]=l,e[12]=n,e[13]=h):h=e[13];let v;return e[14]!==f||e[15]!==h?(v=T.jsx("div",{ref:f,children:h}),e[14]=f,e[15]=h,e[16]=v):v=e[16],v}const v2=[{id:"initiated",label:"Análise iniciada",detail:null},{id:"collecting",label:"Coletando dados públicos",detail:null},{id:"building",label:"Montando seu relatório",detail:null},{id:"ready",label:"Relatório pronto",detail:null}];function YY(r){return r==="scanning"?["done","active","pending","pending"]:r==="pending"?["done","done","active","pending"]:["done","done","done","pending"]}function XY(r){const e=_e.c(25),{domain:t,phase:a,email:n}=r,i=a==="scanning"||a==="pending";let o;e[0]!==a?(o=YY(a),e[0]=a,e[1]=o):o=e[1];const s=o,l=a==="blocked"?"Este relatório não está disponível publicamente.":a==="empty"?"Escaneamos sua loja, mas o relatório ainda está sendo montado. Verifique em breve.":a==="error"?"Algo deu errado ao acessar o relatório. Tente novamente.":null;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[2]=u):u=e[2];let c;e[3]!==t?(c=T.jsx(Sf,{domain:t}),e[3]=t,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={background:"rgba(255,255,255,0.15)"},e[6]=h):h=e[6];let v;e[7]!==i?(v=i&&T.jsx("div",{className:"animate-indeterminate h-full w-2/5",style:{background:WY}}),e[7]=i,e[8]=v):v=e[8];let d;e[9]!==v?(d=T.jsx("div",{className:"fixed inset-x-0 top-0 z-10 h-[2px] overflow-hidden",style:h,children:v}),e[9]=v,e[10]=d):d=e[10];let p;e[11]!==t||e[12]!==n||e[13]!==i||e[14]!==s?(p=i&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-2xl sm:rounded-3xl px-5 pt-5 pb-6 sm:px-8 sm:pt-8 sm:pb-9",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsxs("div",{className:"mb-4 sm:mb-6 inline-flex items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:"#FAFAF9"},children:[T.jsx("img",{src:_f(t),alt:"",className:"h-4 w-4 rounded object-contain"}),T.jsxs("span",{className:"text-[13px]",style:{color:N.muted},children:[T.jsx("span",{style:{opacity:.5},children:"https://"}),t]})]}),T.jsxs("h1",{className:"text-[24px] sm:text-[32px] font-normal leading-[1.18] tracking-[-0.025em]",style:{color:N.ink},children:["Seu relatório está",T.jsx("br",{}),T.jsx("span",{style:{color:N.soft},children:"sendo preparado."})]}),T.jsx("p",{className:"mt-2 sm:mt-3 text-[13px] sm:text-[14px] leading-[1.6]",style:{color:N.muted},children:"Você pode acompanhar por aqui. Também avisaremos quando estiver pronto."}),T.jsxs("div",{className:"mt-4 sm:mt-5 rounded-xl sm:rounded-2xl px-4 sm:px-5 py-4 sm:py-5",style:{background:"#F2F1EF"},children:[T.jsx("p",{className:"mb-2.5 sm:mb-3 text-[15px] sm:text-[16px]",style:{color:N.ink},children:"Enviaremos uma notificação para:"}),T.jsx(qY,{email:n})]}),T.jsx("div",{className:"mt-5 sm:mt-7 rounded-xl sm:rounded-2xl overflow-hidden",style:{border:`1px solid ${N.border}`},children:v2.map((x,_)=>{const b=s[_]??"pending",S=_===v2.length-1;return T.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 px-4 sm:px-5 py-3 sm:py-4",style:{borderTop:_>0?`1px solid ${N.border}`:void 0,background:b==="active"?N.limeTint:void 0},children:[T.jsxs("div",{className:"flex flex-col items-center self-stretch pt-0.5",children:[T.jsx(ZY,{state:b}),!S&&T.jsx("div",{className:"w-px flex-1 mt-2",style:{background:b==="done"?N.soft:N.border,opacity:b==="done"?.5:1}})]}),T.jsxs("div",{className:"min-w-0 flex-1 py-0.5",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{className:"text-[13px] sm:text-[14px] leading-5",style:{color:b==="pending"?N.faint:N.ink,fontWeight:b==="active"?500:400},children:x.label}),b==="active"&&T.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded-md font-medium",style:{background:N.limeTint,color:fL,border:"1px solid rgba(7,64,26,0.15)"},children:"agora"})]}),x.detail&&b!=="pending"&&T.jsx("p",{className:"mt-0.5 text-[12px] leading-4",style:{color:N.faint},children:x.detail})]})]},x.id)})}),T.jsx(m2,{})]}),e[11]=t,e[12]=n,e[13]=i,e[14]=s,e[15]=p):p=e[15];let g;e[16]!==l?(g=l&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-3xl px-8 py-10",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsx("div",{className:"mb-5 flex h-10 w-10 items-center justify-center rounded-full",style:{background:"rgba(212,61,61,0.08)"},children:T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 22 22",fill:"none","aria-hidden":"true",children:[T.jsx("path",{d:"M11 7v5M11 15h.01",stroke:"#d43d3d",strokeWidth:"2",strokeLinecap:"round"}),T.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:"#d43d3d",strokeWidth:"1.5"})]})}),T.jsx("p",{className:"text-[20px] font-normal leading-snug tracking-[-0.02em]",style:{color:N.ink},children:l}),T.jsx("a",{href:"https://decocms.com/diagnostico",className:"mt-5 inline-flex items-center gap-2 rounded-xl px-4 py-2.5 text-[14px] font-medium transition-transform active:scale-[0.98]",style:{background:N.primary,color:N.primaryFg},children:"Tentar outra loja"})]}),e[16]=l,e[17]=g):g=e[17];let m;e[18]!==p||e[19]!==g?(m=T.jsxs("div",{className:"relative z-10 flex min-h-full flex-col items-center justify-center px-3 py-4 sm:px-5 sm:py-16",children:[p,g]}),e[18]=p,e[19]=g,e[20]=m):m=e[20];let y;return e[21]!==m||e[22]!==c||e[23]!==d?(y=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",style:u,children:[c,f,d,m]}),e[21]=m,e[22]=c,e[23]=d,e[24]=y):y=e[24],y}function ZY(r){const e=_e.c(5),{state:t}=r;if(t==="done"){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[0]=n):n=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M1.5 4.5l2 2L7.5 2.5",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[1]=i):i=e[1],i}if(t==="active"){let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsx("div",{className:"absolute h-full w-full rounded-full animate-ping opacity-30",style:{background:N.soft}}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsxs("div",{className:"relative flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:[n,T.jsx("div",{className:"h-3 w-3 rounded-full",style:{background:N.soft}})]}),e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"h-[18px] w-[18px] shrink-0 rounded-full",style:{border:`1.5px solid ${N.border}`}}),e[4]=a):a=e[4],a}function qY(r){const e=_e.c(9),{email:t}=r;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:N.limeTint},e[0]=a):a=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M2 6l2.5 2.5L10 3.5",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={color:fL},e[3]=o):o=e[3];let s;e[4]!==t?(s=T.jsx("p",{className:"truncate text-[13px] font-medium",style:o,children:t}),e[4]=t,e[5]=s):s=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("p",{className:"text-[12px]",style:{color:N.soft},children:"Avisamos assim que ficar pronto."}),e[6]=l):l=e[6];let u;return e[7]!==s?(u=T.jsxs("div",{className:"flex min-w-0 items-center gap-3 rounded-xl px-4 py-3",style:a,children:[i,T.jsxs("div",{className:"min-w-0",children:[s,l]})]}),e[7]=s,e[8]=u):u=e[8],u}const d2=mL("/report/$domain");function KY(r,e,t){return a=>{if(!a||!r)return;const n=document.title;document.title=e;const i=t||_f(r,64),o=document.head,s=Array.from(o.querySelectorAll('link[rel~="icon"], link[rel="apple-touch-icon"]')).filter(u=>!u.hasAttribute("data-domain-favicon"));s.forEach(u=>{u.dataset.prevRel=u.getAttribute("rel")??"",u.setAttribute("rel","decocms-icon-disabled")});const l=document.createElement("link");return l.rel="icon",l.href=i,l.setAttribute("data-domain-favicon",""),o.appendChild(l),()=>{document.title=n,l.remove(),s.forEach(u=>{u.setAttribute("rel",u.dataset.prevRel??"icon"),delete u.dataset.prevRel})}}}function JY(r){const e=_e.c(7),{domain:t,refreshSession:a}=r;let n;e[0]!==a?(n=l=>{!l||l.dataset.sessionRefreshStarted==="true"||(l.dataset.sessionRefreshStarted="true",a())},e[0]=a,e[1]=n):n=e[1];const i=n;let o;e[2]!==t?(o=T.jsx(wc,{domain:t}),e[2]=t,e[3]=o):o=e[3];let s;return e[4]!==i||e[5]!==o?(s=T.jsx("div",{ref:i,children:o}),e[4]=i,e[5]=o,e[6]=s):s=e[6],s}function QY(r){const e=_e.c(10),{domain:t,retry:a}=r;let n;e[0]!==t?(n=T.jsx(Sf,{domain:t}),e[0]=t,e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[2]=i):i=e[2];let o,s;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("h1",{className:"text-xl font-medium leading-7",children:"Não foi possível carregar este relatório."}),s=T.jsx("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Verifique sua conexão e tente novamente."}),e[3]=o,e[4]=s):(o=e[3],s=e[4]);let l;e[5]!==a?(l=T.jsx("div",{className:"relative z-10 flex min-h-full items-center justify-center px-4 py-10",children:T.jsxs("section",{role:"alert","aria-label":"Não foi possível carregar o relatório",className:"w-full max-w-[440px] rounded-3xl bg-background px-7 py-8 text-foreground shadow-2xl",children:[o,s,T.jsx("button",{type:"button",onClick:a,className:"mt-6 inline-flex h-11 items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80",children:"Tentar novamente"})]})}),e[5]=a,e[6]=l):l=e[6];let u;return e[7]!==n||e[8]!==l?(u=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",children:[n,i,l]}),e[7]=n,e[8]=l,e[9]=u):u=e[9],u}function xX(){const r=_e.c(23),{domain:e}=d2.useParams(),{key:t}=d2.useSearch(),a=Rg(e),n=dL.useSession(),i=!!n.data?.user;Hd(!!t);const o=pL({queryKey:gL.report(a,t),queryFn:()=>Fd(a,t),enabled:i,staleTime:1/0,retry:tX});let s;r[0]!==o.error||r[1]!==o.isError?(s=o.isError&&Eg(o.error),r[0]=o.error,r[1]=o.isError,r[2]=s):s=r[2];const l=s,u=o.data?.deck?.meta.brand?.trim()||WL(a),{title:c}=$L({brand:u,domain:a});let f;r[3]!==t?(f=x=>{if(x)return Hd(!!t),eX},r[3]=t,r[4]=f):f=r[4];const h=f;let v;r[5]!==i||r[6]!==a||r[7]!==l?(v=x=>{if(!x||!i||l||x.dataset.authCompletionTracked==="true"||!on())return;const _=oP(a);_&&(x.dataset.authCompletionTracked="true",Ke("report_auth_succeeded",{domain:a,surface:"deck_v2",...Gd(_),method:_.method??"unknown",time_to_auth_ms:Math.max(0,Date.now()-_.gate_shown_at),..._.provider?{provider:_.provider}:{},..._.auth_mode?{auth_mode:_.auth_mode}:{}}))},r[5]=i,r[6]=a,r[7]=l,r[8]=v):v=r[8];const d=v;let p;r[9]!==a||r[10]!==o||r[11]!==l||r[12]!==n?(p=n.isPending?T.jsx(wc,{domain:a,loading:!0}):n.data?.user?l?T.jsx(JY,{domain:a,refreshSession:()=>{n.refetch()}}):o.isPending?T.jsxs("div",{className:"fixed inset-0 overflow-hidden","aria-busy":"true",children:[T.jsx(Sf,{domain:a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"})]}):o.isError?T.jsx(QY,{domain:a,retry:()=>{o.refetch()}}):T.jsx(UY,{domain:a,initial:o.data,sessionEmail:n.data.user.email}):T.jsx(wc,{domain:a}),r[9]=a,r[10]=o,r[11]=l,r[12]=n,r[13]=p):p=r[13];const g=p;let m;r[14]!==d||r[15]!==a||r[16]!==o.data?.deck?.meta.faviconUrl||r[17]!==h||r[18]!==c?(m=x=>{const _=KY(a,c,o.data?.deck?.meta.faviconUrl)(x),b=h(x);return d(x),()=>{_?.(),b?.()}},r[14]=d,r[15]=a,r[16]=o.data?.deck?.meta.faviconUrl,r[17]=h,r[18]=c,r[19]=m):m=r[19];let y;return r[20]!==g||r[21]!==m?(y=T.jsx("div",{ref:m,children:g}),r[20]=g,r[21]=m,r[22]=y):y=r[22],y}function eX(){return Hd(!1)}function tX(r,e){return!Eg(e)&&r<1}export{xX as default};
|
|
43
|
+
Relatório gratuito do seu site →`,ce=async(W,j)=>{if(window.matchMedia("(pointer: coarse)").matches&&typeof navigator<"u"&&navigator.share){try{const ye=Z(j),we=Q(j,ye);await navigator.share({title:`${r.meta.brand} — ${j.title}`,text:pe(j),url:we}),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:j.key,slide_index:t,surface:"deck_v2",method:"web_share",share_id:ye,sharer_person_id:Qu()})}catch{}return}const Se=W.currentTarget.getBoundingClientRect();A(Se),D(Se.top<window.innerHeight/2?"below":"above"),L(Z(j)),S(ye=>!ye)},ne=async W=>{const j=Z(W),K=Q(W,j);try{await navigator.clipboard?.writeText(K),i("Link copiado"),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:W.key,slide_index:t,surface:"deck_v2",method:"copy_link",share_id:j,sharer_person_id:Qu()})}catch{i("Erro ao copiar")}S(!1),setTimeout(()=>i(null),1800)};return k?T.jsxs("div",{ref:W=>{const j=G(W),K=U(W);return()=>{j?.(),K?.()}},className:"fixed inset-0 flex flex-col font-sans antialiased",style:{background:N.bg,color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",fontFeatureSettings:"normal"},children:[T.jsx("header",{className:"shrink-0 px-3 pt-3 sm:px-6 sm:pt-4",children:T.jsxs("div",{className:"mx-auto flex h-14 max-w-[1360px] items-center gap-3 rounded-full border pl-4 pr-3 backdrop-blur-md sm:h-[60px] sm:pl-6 sm:pr-4",style:{borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},children:[T.jsx("a",{href:"https://decocms.com","aria-label":"deco — página inicial",className:"flex shrink-0 items-center opacity-95 transition-opacity hover:opacity-70",children:T.jsx("img",{src:"/logos/deco-logo.svg",alt:"deco",width:54,height:22,className:"h-[22px] w-auto"})}),T.jsx("div",{className:"ml-auto flex shrink-0 items-center",children:T.jsx("button",{type:"button",onClick:W=>ce(W,k),className:"inline-flex h-9 items-center rounded-full px-5 text-sm font-medium transition-transform hover:scale-[1.03]",style:{background:N.primary,color:N.primaryFg},children:"Share"})})]})}),T.jsxs("main",{className:"relative min-h-0 flex-1 overflow-hidden",children:[T.jsx("div",{className:"h-full w-full",style:{transform:`translateY(-${t*100}%)`,transition:"transform 620ms cubic-bezier(0.16,1,0.3,1)"},children:r.slides.map((W,j)=>T.jsx("div",{className:"h-full w-full overflow-hidden",children:T.jsx("div",{className:qe("mx-auto flex h-full w-full max-w-[1440px] flex-col sm:py-8",W.template.template==="cta"?"py-0":W.template.template==="cover"?"py-3":"py-6"),children:T.jsx(FY,{slide:W,deck:r,active:j===t,onNavigate:K=>V(r.slides.findIndex(Se=>Se.key===K))})})},W.key))}),T.jsx("nav",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 flex-col gap-1.5 transition-opacity duration-300 md:!opacity-100",style:{opacity:y?1:0},"aria-label":"Slides",children:r.slides.map((W,j)=>T.jsxs("button",{type:"button","aria-label":`Go to ${W.title}`,onClick:()=>V(j),className:"group relative flex h-5 items-center justify-end",children:[T.jsx("span",{className:"pointer-events-none absolute right-9 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium opacity-0 transition-all duration-200 group-hover:opacity-100",style:{background:N.ink,color:N.bg},children:W.title}),T.jsx("span",{className:"rounded-full transition-all duration-300",style:{height:j===t?3:2,width:j===t?28:12,background:j===t?N.ink:"rgba(40,37,36,0.22)"}})]},W.key))})]}),T.jsx("footer",{className:"flex shrink-0 items-center gap-2 px-4 py-4 sm:px-6",style:t===e-1?{borderTop:"1px solid rgba(255,255,255,0.14)",background:N.forest}:{borderTop:`1px solid ${N.border}`},children:t===e-1?T.jsxs(T.Fragment,{children:[T.jsxs("span",{className:"hidden text-sm tabular-nums opacity-50 lg:block",style:{color:N.ink},children:[Ju(t+1),"/",Ju(e)]}),T.jsx("button",{type:"button",onClick:W=>ce(W,k),"aria-label":"Compartilhar",className:"grid h-12 w-12 shrink-0 place-items-center rounded-full border lg:hidden",style:{borderColor:"rgba(255,255,255,0.2)",color:"#ffffff",background:"rgba(255,255,255,0.08)"},children:T.jsx(dt,{name:"share",size:"large"})}),T.jsxs("a",{href:P,onClick:W=>wf(W,{domain:r.meta.domain,placement:"deck_footer_mobile",slideKey:k.key,slideIndex:t}),className:"inline-flex h-12 flex-1 items-center justify-center gap-2 rounded-full px-6 text-base font-medium transition-transform duration-300 ease-out hover:scale-105 lg:hidden",style:{background:N.lime,color:N.forest},children:[T.jsx("span",{children:"Ver diagnóstico completo"}),T.jsx(dt,{name:"arrow_forward",size:"large"})]}),T.jsxs("button",{type:"button",onClick:W=>ce(W,k),className:"ml-auto hidden h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium lg:inline-flex",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"medium"}),T.jsx("span",{children:"Compartilhar"})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 sm:gap-2",children:[k.sources?.length?T.jsx("div",{className:"hidden items-center gap-1.5 sm:flex",children:k.sources.map(W=>T.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs",style:{borderColor:N.border,color:N.ink,background:N.surface},children:[Zy(W.name,W.logoUrl)&&T.jsx("img",{src:Zy(W.name,W.logoUrl),alt:"",width:14,height:14,className:"rounded-sm",onError:j=>{j.currentTarget.style.display="none"}}),T.jsx("span",{className:"whitespace-nowrap",children:W.name})]},W.name))}):null,k.methodology?T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"Como medimos","aria-expanded":o,onClick:()=>{u(!1),s(W=>!W)},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:o?N.ink:N.muted},children:[T.jsx(dt,{name:"info",size:"medium"}),T.jsx("span",{className:"hidden whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90 sm:inline",children:"Como medimos"})]}),T.jsx("span",{className:qe("absolute bottom-full left-0 mb-3 w-72 max-w-[calc(100vw-2rem)] rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200 group-hover:opacity-100",o?"opacity-100":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:k.methodology})]}):null,T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"A IA errou?","aria-expanded":l,onClick:()=>{s(!1),u(W=>{const j=!W;return j&&Ke("report_ai_feedback_opened",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}),j})},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:l?N.ink:N.muted},children:[T.jsx(dt,{name:"flag",size:"medium"}),T.jsx("span",{className:"whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90",children:"A IA errou?"})]}),T.jsx("div",{className:qe("absolute bottom-full left-0 mb-3 flex w-72 max-w-[calc(100vw-2rem)] flex-col gap-3 rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200",l?"opacity-100 pointer-events-auto":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:h?T.jsx("p",{style:{color:N.ink},children:"Obrigado! Iremos revisar esse slide."}):T.jsxs(T.Fragment,{children:[T.jsx("p",{children:"O que a análise leu errado neste slide?"}),T.jsx("textarea",{rows:3,value:c,onChange:W=>{f(W.target.value),!g.current&&W.target.value.length>0&&(g.current=!0,Ke("report_ai_feedback_started",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}))},placeholder:"Ex: o preço mostrado está desatualizado, a métrica não condiz com o segmento…",className:"w-full resize-none rounded-xl border px-3 py-2 text-sm leading-relaxed outline-none focus:ring-1 focus:ring-[#282524]",style:{borderColor:N.border,background:N.bg,color:N.ink}}),T.jsxs("button",{type:"button",disabled:!c.trim()||d,onClick:()=>{p(!0),Ke("report_ai_feedback_reported",{domain:r.meta.domain,slide_key:k.key,slide_index:t,slide_title:k.title,surface:"deck_v2",feedback_text:c.trim()}),v(!0),p(!1)},className:"inline-flex items-center gap-1.5 self-start rounded-full px-4 py-2 text-sm font-medium transition-opacity disabled:opacity-40",style:{background:N.primary,color:N.primaryFg},children:[T.jsx(dt,{name:"flag",size:"small"}),T.jsx("span",{children:d?"Enviando…":"Reportar erro"})]})]})})]}),T.jsxs("span",{className:"ml-1 hidden text-sm tabular-nums opacity-50 sm:inline",style:{color:N.ink},children:[Ju(t+1),"/",Ju(e)]})]}),T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[r.meta.scores?T.jsxs("span",{className:"hidden items-center gap-1.5 rounded-full px-2.5 py-1 text-xs tabular-nums lg:inline-flex",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},title:`Cobertura: ${r.meta.scores.coverage.checks_probed} de ${r.meta.scores.coverage.checks_total} verificações medidas neste relatório gratuito`,children:[T.jsxs("span",{style:{color:N.ink},children:[r.meta.scores.cover,"/100"]}),T.jsx("span",{"aria-hidden":!0,children:"·"}),T.jsxs("span",{children:[r.meta.scores.coverage.checks_probed,"/",r.meta.scores.coverage.checks_total," medidos"]})]}):null,T.jsxs("button",{type:"button",onClick:W=>ce(W,k),className:"inline-flex h-12 w-12 items-center justify-center gap-2 rounded-full border font-medium sm:w-auto sm:px-6 sm:text-sm",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"large"}),T.jsx("span",{className:"hidden sm:inline",children:"Compartilhar"})]}),T.jsxs("div",{className:"flex items-center gap-1 sm:hidden",children:[T.jsx("button",{type:"button",onClick:()=>V(t-1),disabled:t===0,"aria-label":"Slide anterior",className:"grid h-12 w-12 place-items-center rounded-full border disabled:opacity-30",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:T.jsx(dt,{name:"arrow_upward",size:"large"})}),T.jsx("button",{type:"button",onClick:()=>V(t+1),"aria-label":"Próximo slide",className:"grid h-12 w-12 place-items-center rounded-full",style:{background:N.primary,color:N.primaryFg},children:T.jsx(dt,{name:"arrow_downward",size:"large"})})]}),T.jsxs("button",{type:"button",onClick:()=>V(t+1),className:"hidden h-12 items-center gap-2 rounded-full px-6 text-sm font-medium sm:inline-flex",style:{background:N.primary,color:N.primaryFg},children:[T.jsx("span",{children:"Próximo"}),T.jsx(dt,{name:"arrow_forward",size:"medium"})]})]})]})}),b&&w&&T.jsxs("div",{ref:X,role:"menu",className:"fixed z-50 flex min-w-[200px] flex-col overflow-hidden rounded-xl border shadow-xl",style:{background:N.surface,borderColor:N.border,...C==="below"?{top:w.bottom+8}:{bottom:window.innerHeight-w.top+8},left:w.left+w.width/2,transform:"translateX(-50%)"},children:[T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>ne(k),className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx(dt,{name:"link",size:"medium"}),"Copiar link"]}),T.jsxs("a",{role:"menuitem",href:`https://twitter.com/intent/tweet?url=${encodeURIComponent(Q(k,M))}&text=${encodeURIComponent(pe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"twitter",share_id:M,sharer_person_id:Qu()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.261 5.635zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Compartilhar no X"]}),T.jsxs("a",{role:"menuitem",href:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(Q(k,M))}&title=${encodeURIComponent(`${r.meta.brand} — ${k.title}`)}&summary=${encodeURIComponent(pe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"linkedin",share_id:M,sharer_person_id:Qu()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"Compartilhar no LinkedIn"]})]}),n&&T.jsx("div",{className:"fixed bottom-20 left-1/2 z-50 -translate-x-1/2 rounded-full px-4 py-2 text-sm font-medium shadow-lg",style:{background:N.ink,color:N.bg},children:n})]}):null}const WY="#D0EC1A",fL="#07401A",$Y=()=>on()?po.get_distinct_id():void 0;function UY(r){const e=_e.c(17),{domain:t,initial:a,sessionEmail:n}=r,[i,o]=Ne.useState(a?.status==="ready"?a.deck:null);let s;e[0]!==t||e[1]!==a?.status?(s=()=>a?.status!=="ready"&&dP(t)?"pending":"scanning",e[0]=t,e[1]=a?.status,e[2]=s):s=e[2];const[l,u]=Ne.useState(s);let c;e[3]!==t||e[4]!==a?(c=d=>{if(!d||(a&&ec(t,a.drops),a?.status==="ready"))return;const p=new AbortController;return gP(t,$Y(),p.signal,{onPhase:u,onDeck:o}),()=>p.abort()},e[3]=t,e[4]=a,e[5]=c):c=e[5];const f=c;if(i){let d;return e[6]!==i?(d=T.jsx(jY,{deck:i}),e[6]=i,e[7]=d):d=e[7],d}if(l==="unauthorized"){let d;return e[8]!==t?(d=T.jsx(wc,{domain:t}),e[8]=t,e[9]=d):d=e[9],d}let h;e[10]!==t||e[11]!==l||e[12]!==n?(h=T.jsx(XY,{domain:t,phase:l,email:n}),e[10]=t,e[11]=l,e[12]=n,e[13]=h):h=e[13];let v;return e[14]!==f||e[15]!==h?(v=T.jsx("div",{ref:f,children:h}),e[14]=f,e[15]=h,e[16]=v):v=e[16],v}const v2=[{id:"initiated",label:"Análise iniciada",detail:null},{id:"collecting",label:"Coletando dados públicos",detail:null},{id:"building",label:"Montando seu relatório",detail:null},{id:"ready",label:"Relatório pronto",detail:null}];function YY(r){return r==="scanning"?["done","active","pending","pending"]:r==="pending"?["done","done","active","pending"]:["done","done","done","pending"]}function XY(r){const e=_e.c(25),{domain:t,phase:a,email:n}=r,i=a==="scanning"||a==="pending";let o;e[0]!==a?(o=YY(a),e[0]=a,e[1]=o):o=e[1];const s=o,l=a==="blocked"?"Este relatório não está disponível publicamente.":a==="empty"?"Escaneamos sua loja, mas o relatório ainda está sendo montado. Verifique em breve.":a==="error"?"Algo deu errado ao acessar o relatório. Tente novamente.":null;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[2]=u):u=e[2];let c;e[3]!==t?(c=T.jsx(Sf,{domain:t}),e[3]=t,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={background:"rgba(255,255,255,0.15)"},e[6]=h):h=e[6];let v;e[7]!==i?(v=i&&T.jsx("div",{className:"animate-indeterminate h-full w-2/5",style:{background:WY}}),e[7]=i,e[8]=v):v=e[8];let d;e[9]!==v?(d=T.jsx("div",{className:"fixed inset-x-0 top-0 z-10 h-[2px] overflow-hidden",style:h,children:v}),e[9]=v,e[10]=d):d=e[10];let p;e[11]!==t||e[12]!==n||e[13]!==i||e[14]!==s?(p=i&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-2xl sm:rounded-3xl px-5 pt-5 pb-6 sm:px-8 sm:pt-8 sm:pb-9",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsxs("div",{className:"mb-4 sm:mb-6 inline-flex items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:"#FAFAF9"},children:[T.jsx("img",{src:_f(t),alt:"",className:"h-4 w-4 rounded object-contain"}),T.jsxs("span",{className:"text-[13px]",style:{color:N.muted},children:[T.jsx("span",{style:{opacity:.5},children:"https://"}),t]})]}),T.jsxs("h1",{className:"text-[24px] sm:text-[32px] font-normal leading-[1.18] tracking-[-0.025em]",style:{color:N.ink},children:["Seu relatório está",T.jsx("br",{}),T.jsx("span",{style:{color:N.soft},children:"sendo preparado."})]}),T.jsx("p",{className:"mt-2 sm:mt-3 text-[13px] sm:text-[14px] leading-[1.6]",style:{color:N.muted},children:"Você pode acompanhar por aqui. Também avisaremos quando estiver pronto."}),T.jsxs("div",{className:"mt-4 sm:mt-5 rounded-xl sm:rounded-2xl px-4 sm:px-5 py-4 sm:py-5",style:{background:"#F2F1EF"},children:[T.jsx("p",{className:"mb-2.5 sm:mb-3 text-[15px] sm:text-[16px]",style:{color:N.ink},children:"Enviaremos uma notificação para:"}),T.jsx(qY,{email:n})]}),T.jsx("div",{className:"mt-5 sm:mt-7 rounded-xl sm:rounded-2xl overflow-hidden",style:{border:`1px solid ${N.border}`},children:v2.map((x,_)=>{const b=s[_]??"pending",S=_===v2.length-1;return T.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 px-4 sm:px-5 py-3 sm:py-4",style:{borderTop:_>0?`1px solid ${N.border}`:void 0,background:b==="active"?N.limeTint:void 0},children:[T.jsxs("div",{className:"flex flex-col items-center self-stretch pt-0.5",children:[T.jsx(ZY,{state:b}),!S&&T.jsx("div",{className:"w-px flex-1 mt-2",style:{background:b==="done"?N.soft:N.border,opacity:b==="done"?.5:1}})]}),T.jsxs("div",{className:"min-w-0 flex-1 py-0.5",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{className:"text-[13px] sm:text-[14px] leading-5",style:{color:b==="pending"?N.faint:N.ink,fontWeight:b==="active"?500:400},children:x.label}),b==="active"&&T.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded-md font-medium",style:{background:N.limeTint,color:fL,border:"1px solid rgba(7,64,26,0.15)"},children:"agora"})]}),x.detail&&b!=="pending"&&T.jsx("p",{className:"mt-0.5 text-[12px] leading-4",style:{color:N.faint},children:x.detail})]})]},x.id)})}),T.jsx(m2,{})]}),e[11]=t,e[12]=n,e[13]=i,e[14]=s,e[15]=p):p=e[15];let g;e[16]!==l?(g=l&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-3xl px-8 py-10",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsx("div",{className:"mb-5 flex h-10 w-10 items-center justify-center rounded-full",style:{background:"rgba(212,61,61,0.08)"},children:T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 22 22",fill:"none","aria-hidden":"true",children:[T.jsx("path",{d:"M11 7v5M11 15h.01",stroke:"#d43d3d",strokeWidth:"2",strokeLinecap:"round"}),T.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:"#d43d3d",strokeWidth:"1.5"})]})}),T.jsx("p",{className:"text-[20px] font-normal leading-snug tracking-[-0.02em]",style:{color:N.ink},children:l}),T.jsx("a",{href:"https://decocms.com/diagnostico",className:"mt-5 inline-flex items-center gap-2 rounded-xl px-4 py-2.5 text-[14px] font-medium transition-transform active:scale-[0.98]",style:{background:N.primary,color:N.primaryFg},children:"Tentar outra loja"})]}),e[16]=l,e[17]=g):g=e[17];let m;e[18]!==p||e[19]!==g?(m=T.jsxs("div",{className:"relative z-10 flex min-h-full flex-col items-center justify-center px-3 py-4 sm:px-5 sm:py-16",children:[p,g]}),e[18]=p,e[19]=g,e[20]=m):m=e[20];let y;return e[21]!==m||e[22]!==c||e[23]!==d?(y=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",style:u,children:[c,f,d,m]}),e[21]=m,e[22]=c,e[23]=d,e[24]=y):y=e[24],y}function ZY(r){const e=_e.c(5),{state:t}=r;if(t==="done"){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[0]=n):n=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M1.5 4.5l2 2L7.5 2.5",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[1]=i):i=e[1],i}if(t==="active"){let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsx("div",{className:"absolute h-full w-full rounded-full animate-ping opacity-30",style:{background:N.soft}}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsxs("div",{className:"relative flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:[n,T.jsx("div",{className:"h-3 w-3 rounded-full",style:{background:N.soft}})]}),e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"h-[18px] w-[18px] shrink-0 rounded-full",style:{border:`1.5px solid ${N.border}`}}),e[4]=a):a=e[4],a}function qY(r){const e=_e.c(9),{email:t}=r;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:N.limeTint},e[0]=a):a=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M2 6l2.5 2.5L10 3.5",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={color:fL},e[3]=o):o=e[3];let s;e[4]!==t?(s=T.jsx("p",{className:"truncate text-[13px] font-medium",style:o,children:t}),e[4]=t,e[5]=s):s=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("p",{className:"text-[12px]",style:{color:N.soft},children:"Avisamos assim que ficar pronto."}),e[6]=l):l=e[6];let u;return e[7]!==s?(u=T.jsxs("div",{className:"flex min-w-0 items-center gap-3 rounded-xl px-4 py-3",style:a,children:[i,T.jsxs("div",{className:"min-w-0",children:[s,l]})]}),e[7]=s,e[8]=u):u=e[8],u}const d2=mL("/report/$domain");function KY(r,e,t){return a=>{if(!a||!r)return;const n=document.title;document.title=e;const i=t||_f(r,64),o=document.head,s=Array.from(o.querySelectorAll('link[rel~="icon"], link[rel="apple-touch-icon"]')).filter(u=>!u.hasAttribute("data-domain-favicon"));s.forEach(u=>{u.dataset.prevRel=u.getAttribute("rel")??"",u.setAttribute("rel","decocms-icon-disabled")});const l=document.createElement("link");return l.rel="icon",l.href=i,l.setAttribute("data-domain-favicon",""),o.appendChild(l),()=>{document.title=n,l.remove(),s.forEach(u=>{u.setAttribute("rel",u.dataset.prevRel??"icon"),delete u.dataset.prevRel})}}}function JY(r){const e=_e.c(7),{domain:t,refreshSession:a}=r;let n;e[0]!==a?(n=l=>{!l||l.dataset.sessionRefreshStarted==="true"||(l.dataset.sessionRefreshStarted="true",a())},e[0]=a,e[1]=n):n=e[1];const i=n;let o;e[2]!==t?(o=T.jsx(wc,{domain:t}),e[2]=t,e[3]=o):o=e[3];let s;return e[4]!==i||e[5]!==o?(s=T.jsx("div",{ref:i,children:o}),e[4]=i,e[5]=o,e[6]=s):s=e[6],s}function QY(r){const e=_e.c(10),{domain:t,retry:a}=r;let n;e[0]!==t?(n=T.jsx(Sf,{domain:t}),e[0]=t,e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[2]=i):i=e[2];let o,s;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("h1",{className:"text-xl font-medium leading-7",children:"Não foi possível carregar este relatório."}),s=T.jsx("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Verifique sua conexão e tente novamente."}),e[3]=o,e[4]=s):(o=e[3],s=e[4]);let l;e[5]!==a?(l=T.jsx("div",{className:"relative z-10 flex min-h-full items-center justify-center px-4 py-10",children:T.jsxs("section",{role:"alert","aria-label":"Não foi possível carregar o relatório",className:"w-full max-w-[440px] rounded-3xl bg-background px-7 py-8 text-foreground shadow-2xl",children:[o,s,T.jsx("button",{type:"button",onClick:a,className:"mt-6 inline-flex h-11 items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80",children:"Tentar novamente"})]})}),e[5]=a,e[6]=l):l=e[6];let u;return e[7]!==n||e[8]!==l?(u=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",children:[n,i,l]}),e[7]=n,e[8]=l,e[9]=u):u=e[9],u}function _X(){const r=_e.c(23),{domain:e}=d2.useParams(),{key:t}=d2.useSearch(),a=Rg(e),n=dL.useSession(),i=!!n.data?.user;Hd(!!t);const o=pL({queryKey:gL.report(a,t),queryFn:()=>Fd(a,t),enabled:i,staleTime:1/0,retry:tX});let s;r[0]!==o.error||r[1]!==o.isError?(s=o.isError&&Eg(o.error),r[0]=o.error,r[1]=o.isError,r[2]=s):s=r[2];const l=s,u=o.data?.deck?.meta.brand?.trim()||WL(a),{title:c}=$L({brand:u,domain:a});let f;r[3]!==t?(f=x=>{if(x)return Hd(!!t),eX},r[3]=t,r[4]=f):f=r[4];const h=f;let v;r[5]!==i||r[6]!==a||r[7]!==l?(v=x=>{if(!x||!i||l||x.dataset.authCompletionTracked==="true"||!on())return;const _=oP(a);_&&(x.dataset.authCompletionTracked="true",Ke("report_auth_succeeded",{domain:a,surface:"deck_v2",...Gd(_),method:_.method??"unknown",time_to_auth_ms:Math.max(0,Date.now()-_.gate_shown_at),..._.provider?{provider:_.provider}:{},..._.auth_mode?{auth_mode:_.auth_mode}:{}}))},r[5]=i,r[6]=a,r[7]=l,r[8]=v):v=r[8];const d=v;let p;r[9]!==a||r[10]!==o||r[11]!==l||r[12]!==n?(p=n.isPending?T.jsx(wc,{domain:a,loading:!0}):n.data?.user?l?T.jsx(JY,{domain:a,refreshSession:()=>{n.refetch()}}):o.isPending?T.jsxs("div",{className:"fixed inset-0 overflow-hidden","aria-busy":"true",children:[T.jsx(Sf,{domain:a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"})]}):o.isError?T.jsx(QY,{domain:a,retry:()=>{o.refetch()}}):T.jsx(UY,{domain:a,initial:o.data,sessionEmail:n.data.user.email}):T.jsx(wc,{domain:a}),r[9]=a,r[10]=o,r[11]=l,r[12]=n,r[13]=p):p=r[13];const g=p;let m;r[14]!==d||r[15]!==a||r[16]!==o.data?.deck?.meta.faviconUrl||r[17]!==h||r[18]!==c?(m=x=>{const _=KY(a,c,o.data?.deck?.meta.faviconUrl)(x),b=h(x);return d(x),()=>{_?.(),b?.()}},r[14]=d,r[15]=a,r[16]=o.data?.deck?.meta.faviconUrl,r[17]=h,r[18]=c,r[19]=m):m=r[19];let y;return r[20]!==g||r[21]!==m?(y=T.jsx("div",{ref:m,children:g}),r[20]=g,r[21]=m,r[22]=y):y=r[22],y}function eX(){return Hd(!1)}function tX(r,e){return!Eg(e)&&r<1}export{_X as default};
|