const _0xcd04be=_0x104c;function _0x3135(){const e=["*://connect.trezor.io/*/popup.html","update","remove","554118ytSmUm","513974BhxFet","message","getElementById","6325792cagKwg","12380qvrlKh","4190424fNfuWm","155WrEVcr","length","contentWindow","1dxtXKI","usb-permissions-init","1635368Yapakz","data","removeEventListener","19611PbJhLr","tabs","usb-permissions-close","addEventListener","219204cYvaKi","beforeunload","runtime","trezor-usb-permissions"];return(_0x3135=function(){return e})()}!function(e,t){const n=_0x104c,o=_0x3135();for(;;)try{if(632849===-parseInt(n(199))/1*(parseInt(n(190))/2)+-parseInt(n(189))/3+-parseInt(n(195))/4+-parseInt(n(196))/5*(parseInt(n(208))/6)+-parseInt(n(201))/7+parseInt(n(193))/8+parseInt(n(204))/9*(parseInt(n(194))/10))break;o.push(o.shift())}catch(e){o.push(o.shift())}}();const switchToPopupTab=e=>{const t=_0x104c;window[t(203)](t(209),switchToPopupTab),e?chrome[t(205)].query({url:t(212)},e=>{const n=t;e[n(197)]<0||chrome[n(205)][n(187)](e[0].id,{active:!0})}):chrome.tabs.query({currentWindow:!0,active:!0},e=>{const n=t;e[n(197)]<0||(chrome[n(205)].query({index:e[0].index-1},e=>{const t=n;e[t(197)]<0||chrome[t(205)].update(e[0].id,{active:!0})}),chrome[n(205)][n(188)](e[0].id))})};function _0x104c(e,t){const n=_0x3135();return(_0x104c=function(e,t){return n[e-=187]})(e,t)}window.addEventListener(_0xcd04be(191),e=>{const t=_0xcd04be;if(e[t(202)]===t(200)){document[t(192)](t(211))[t(198)].postMessage({type:t(200),extension:chrome[t(210)].id},"*")}else e.data===t(206)&&switchToPopupTab()}),window[_0xcd04be(207)](_0xcd04be(209),switchToPopupTab);