(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[5098],{705098(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>i,A:()=>s});var t=__webpack_require__(860012);var e=__webpack_require__(48084);var r=__webpack_require__(171097);var a=__webpack_require__.n(r);var n=__webpack_require__(79222);var l=__webpack_require__(447213);var c=__webpack_require__(749201);function i(){let r=(0,c.w)();let[i,s]=(0,t.useState)(!1);let[u,o]=(0,t.useState)(null);let h=(0,e.d4)(l.Zi);return{enableMetametrics:(0,t.useCallback)(async()=>{s(!0),r((0,n.gG)()),o(null);try{await r((0,n.crU)(!0)),h===!1&&await r((0,n.VKK)(!0))}catch(t){throw o(t instanceof Error?t.message:"An unexpected error occurred"),a().error(t),t}finally{s(!1),r((0,n.R_M)())}r((0,n.R_M)())},[r,h]),loading:i,error:u}}function s(){let e=(0,c.w)();let[r,a]=(0,t.useState)(!1);let[l,i]=(0,t.useState)(null);return{disableMetametrics:(0,t.useCallback)(async()=>{a(!0),e((0,n.gG)()),i(null);try{await e((0,n.crU)(!1))}catch(t){throw i(t instanceof Error?t.message:"An unexpected error occurred"),t}finally{a(!1),e((0,n.R_M)())}e((0,n.R_M)())},[e]),loading:r,error:l}}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);