"use strict";(globalThis.webpackChunkgroup_speed_dial=globalThis.webpackChunkgroup_speed_dial||[]).push([[913],{1407:(t,e,n)=>{n.d(e,{showStatistics:()=>C});var o=n(9421),a=n(6849),i=n(4135),l=n(2298),s=n(7802),r=n(4764),c=n(7475),d=n(8190),g=n(3148),x=n(8197),h=n(6022);async function C(){(0,s.y)('\n.basic_statistics {\n  font-family: Consolas, "Courier New", monospace;\n}\n.basic_statistics td:nth-of-type(1) {\n  min-width: 180px;\n}\n.basic_statistics td:nth-of-type(2) {\n  min-width: 70px;\n}\n.basic_statistics > tr:nth-child(even) > td {\n  background-color: #bbbbbb55;\n}\n.basic_statistics td + td {\n  text-align: right;\n}',!0);const t=x.M.GROUPS.flatMap((t=>t.dials.filter((t=>t.isNotEmptyDial())))),{indexedDB:e,storageSync:n,storageLocal:C,localStorage:u,quota:f}=await(0,d.U)();o.p.show((0,a.tr)("statistics"),(0,i.Pm)(["table",{class:"basic_statistics"},[["tr",{},[["th",{textContent:"Dials info ",colspan:2}]]],["tr",{},[["td",{textContent:"Groups: "}],["td",{textContent:x.M.GROUPS.length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Dials (not empty): "}],["td",{textContent:t.length.toLocaleString()}]]],["tr",{},[["td",{textContent:"URL dials: "}],["td",{textContent:t.filter((t=>t.isUrlDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Group dials: "}],["td",{textContent:t.filter((t=>t.isGroupDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Search dials: "}],["td",{textContent:t.filter((t=>t.isSearchDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Live dials: "}],["td",{textContent:t.filter((t=>t.isLiveDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Multi dials: "}],["td",{textContent:t.filter((t=>t.isMultiDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Multi dial links: "}],["td",{textContent:(0,c.RM)(t.filter((t=>t.isMultiDial())).map((t=>t.multi?.links.length||0))).toLocaleString()}]]],["tr",{},[["td",{textContent:"Text dials: "}],["td",{textContent:t.filter((t=>t.isTextDial())).length.toLocaleString()}]]],["tr",{},[["td",{textContent:"Auto reload dials: "}],["td",{textContent:t.filter((t=>t.reload)).length.toLocaleString()}]]]]],["table",{class:"basic_statistics"},[["tr",{},[["th",{textContent:"Data size ",colspan:2}]]],["tr",{},[["td",{textContent:"IndexedDB (img + back): "}],["td",{textContent:e}]]],["tr",{},[["td",{textContent:"storage.s: "}],["td",{textContent:n}]]],["tr",{},[["td",{textContent:"storage.l: "}],["td",{textContent:C}]]],["tr",{},[["td",{textContent:"localStorage: "}],["td",{textContent:u}]]],["tr",{},[["td",{textContent:"Dials: "}],["td",{textContent:(0,r.z)(JSON.stringify(x.M.GROUPS).length)}]]],["tr",{},[["td",{textContent:"Options: "}],["td",{textContent:(0,r.z)(JSON.stringify(h.lw).length)}]]],["tr",{},[["td",{textContent:"Quota:"}],["td",{textContent:f}]]]]]),{yesText:(0,a.tr)("label_close"),noText:(0,a.tr)("label_copy"),onNo(){throw(0,g.l)([...document.querySelectorAll(".basic_statistics tr")].map((t=>t.textContent)).join("\n")),"don't close :)"},onClose:l.lQ})}},4764:(t,e,n)=>{n.d(e,{z:()=>a});var o=n(2298);function a(t,e=1){if(!(0,o.Et)(t)||t<0)return"";if(0===t)return"0";const n=Math.floor(Math.log(t)/Math.log(1024));return`${(t/Math.pow(1024,Math.floor(n))).toFixed(e)} ${["B","KB","MB","GB","TB","PB"][n]}`}},7802:(t,e,n)=>{n.d(e,{y:()=>a});var o=n(8177);async function a(t,e){const n=`id_file_${e?(0,o.V)():t}`;if(document.getElementById(n))return;const a=document.createElement("link");return a.href=e?`data:text/css;base64,${btoa(t)}`:t,a.id=n,a.type="text/css",a.rel="stylesheet",new Promise(((t,e)=>{a.onload=t,a.onerror=e,document.head.appendChild(a)}))}},8190:(t,e,n)=>{n.d(e,{U:()=>s});var o=n(4764),a=n(9208),i=n(2298);const l=()=>-1;async function s(){const t=await(navigator.storage?.estimate?.().catch(i.lQ))||{};return{indexedDB:(0,o.z)(t.usage||-1),storageLocal:(0,o.z)(JSON.stringify(await browser.storage.local.get().catch(l)).length),storageSync:(0,o.z)(JSON.stringify(await browser.storage.sync.get().catch(l)).length),localStorage:(0,o.z)((0,a.g)((()=>JSON.stringify(localStorage).length),l)),quota:(0,o.z)(t.quota||-1)}}}}]);