import{a as e,c as t,f as n,i as r,l as i,o as a,r as o,s,v as c}from"./site-url-tPxsbJi1.js";import{A as l,B as u,C as d,E as f,I as p,L as m,N as h,P as g,R as _,S as v,T as ee,_ as y,b,g as x,j as S,k as C,p as w,s as T,t as E,v as D,y as O}from"./vendor-svelte-DzYdajqs.js";import{t as k}from"./vendor-browser-XAJauffa.js";import{t as A}from"./cta-DEAk9dtk.js";var te=b(`<li class="svelte-1s55s15"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" aria-hidden="true" class="svelte-1s55s15"><circle cx="12" cy="12" r="10" fill="var(--ok)"></circle><path d="M8 12.5l2.6 2.6L16 9.5" stroke="var(--surface)" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" fill="none"></path></svg> </li>`),j=b(`<main class="svelte-1s55s15"><header class="svelte-1s55s15"><!> <!></header> <section class="hero svelte-1s55s15"><span class="badge svelte-1s55s15"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="10" width="14" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg> </span> <h1 class="svelte-1s55s15"> </h1> <p class="sub svelte-1s55s15"> </p> <button class="primary cta svelte-1s55s15"> </button></section> <section class="steps svelte-1s55s15"><div class="step svelte-1s55s15"><span class="stepno svelte-1s55s15" aria-hidden="true">1</span> <span class="step-icon svelte-1s55s15" aria-hidden="true"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="4"></rect><path d="M12 9v6M9 12h6"></path></svg></span> <h3 class="svelte-1s55s15"> </h3> <p class="muted svelte-1s55s15"> </p></div> <div class="step svelte-1s55s15"><span class="stepno svelte-1s55s15" aria-hidden="true">2</span> <span class="step-icon svelte-1s55s15" aria-hidden="true"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4v11M7.5 10.5L12 15l4.5-4.5"></path><rect x="4" y="18" width="16" height="2.4" rx="1.2"></rect></svg></span> <h3 class="svelte-1s55s15"> </h3> <p class="muted svelte-1s55s15"> </p></div> <div class="step svelte-1s55s15"><span class="stepno svelte-1s55s15" aria-hidden="true">3</span> <span class="step-icon svelte-1s55s15" aria-hidden="true"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4v9M8 9.5l4 4 4-4"></path><path d="M5 20h14"></path></svg></span> <h3 class="svelte-1s55s15"> </h3> <p class="muted svelte-1s55s15"> </p></div></section> <section class="promise card svelte-1s55s15"><h2 class="svelte-1s55s15"> </h2> <ul class="svelte-1s55s15"></ul></section> <footer class="family card svelte-1s55s15"><span class="promo-tile svelte-1s55s15" aria-hidden="true"></span> <div class="family-text svelte-1s55s15"><strong class="svelte-1s55s15"> </strong> <p class="muted svelte-1s55s15"> </p></div> <a class="family-link svelte-1s55s15" target="_blank" rel="noopener"> </a></footer></main>`);function M(t,n){_(n,!0);let i=g(``);E(()=>void A(`welcome`).then(e=>h(i,e,!0)));let a=[s(`promiseNoUpload`),s(`promiseNoNetwork`),s(`promiseNoData`),s(`promiseNoAccount`),s(`promiseNoSitePerms`)];function v(){k.tabs.create({url:k.runtime.getURL(`/workbench.html`)})}var b=O();p(l(b),{onerror:e=>c(`onboarding`,e),failed:e=>{o(e,{})}},t=>{var n=j(),o=C(n),c=C(o);e(c,{size:34,radius:9}),r(S(c,2),{size:18}),u(o);var l=S(o,2),p=C(l),m=S(C(p));u(p);var h=S(p,2),g=C(h,!0);u(h);var _=S(h,2),b=C(_,!0);u(_);var x=S(_,2),E=C(x,!0);u(x),u(l);var O=S(l,2),k=C(O),A=S(C(k),4),M=C(A,!0);u(A);var N=S(A,2),P=C(N,!0);u(N),u(k);var F=S(k,2),I=S(C(F),4),L=C(I,!0);u(I);var R=S(I,2),z=C(R,!0);u(R),u(F);var B=S(F,2),V=S(C(B),4),H=C(V,!0);u(V);var U=S(V,2),W=C(U,!0);u(U),u(B),u(O);var G=S(O,2),K=C(G),q=C(K,!0);u(K);var J=S(K,2);w(J,20,()=>a,e=>e,(e,t)=>{var n=te(),r=S(C(n));u(n),f(()=>y(r,` ${t??``}`)),D(e,n)}),u(J),u(G);var Y=S(G,2),X=S(C(Y),2),Z=C(X),ne=C(Z,!0);u(Z);var Q=S(Z,2),re=C(Q,!0);u(Q),u(X);var $=S(X,2),ie=C($,!0);u($),u(Y),u(n),f((e,t,n,r,a,o,s,c,l,u,d,f,p,h,_)=>{y(m,` ${e??``}`),y(g,t),y(b,n),y(E,r),T(O,`aria-label`,a),y(M,o),y(P,s),y(L,c),y(z,l),y(H,u),y(W,d),y(q,f),y(ne,p),y(re,h),T($,`href`,ee(i)),y(ie,_)},[()=>s(`welcomeBadge`),()=>s(`welcomeTitle`),()=>s(`welcomeSub`),()=>s(`welcomeCta`),()=>s(`stepsAria`),()=>s(`step1Title`),()=>s(`step1Sub`),()=>s(`step2Title`),()=>s(`step2Sub`),()=>s(`step3Title`),()=>s(`step3Sub`),()=>s(`promiseTitle`),()=>s(`familyTitle`),()=>s(`familySub`),()=>s(`familyLink`)]),d(`click`,x,v),D(t,n)}),D(t,b),m()}v([`click`]),await n(`onboarding`,async()=>{t(i().theme),await a(),document.title=s(`appShortName`),x(M,{target:document.getElementById(`app`)})});