const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-Ndda7b5D.js","assets/dist-CQS6rvaI.js","assets/web-DyWUL-X3.js","assets/messages-CXVBmapB.js","assets/license-_bs9pA8t.js","assets/main-BojJcRZj.js","assets/chunk-CilyBKbf.js","assets/Export-C8VkcoaL.js","assets/RuneCanvas-C0iWr57V.js","assets/Settings-BL4g2VN6.js","assets/Health-D9WWvDOU.js","assets/Panic-IqMZ98WA.js"])))=>i.map(i=>d[i]); import{n as e,r as t,t as n}from"./chunk-CilyBKbf.js";import{r,t as i}from"./dist-CQS6rvaI.js";var a=`modulepreload`,o=function(e){return`/`+e},s={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),c=i?.nonce||i?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=l(t.map(t=>{if(t=o(t,n),t in s)return;s[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let l=document.createElement(`link`);if(l.rel=r?`stylesheet`:a,r||(l.as=`script`),l.crossOrigin=``,l.href=t,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),r)return new Promise((e,n)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},l=r(`Preferences`,{web:()=>c(()=>import(`./web-Ndda7b5D.js`).then(e=>new e.PreferencesWeb),__vite__mapDeps([0,1]))}),u=new Map;function d(){return{addListener:()=>{},removeListener:()=>{}}}async function f(e){return e===null?(await l.keys()).keys:Array.isArray(e)?e:typeof e==`string`?[e]:Object.keys(e)}async function p(e){let t={};for(let n of await f(e)){let{value:e}=await l.get({key:n});if(e!==null)try{t[n]=JSON.parse(e)}catch{t[n]=e}}return t}async function m(e){for(let[t,n]of Object.entries(e))await l.set({key:t,value:JSON.stringify(n)})}async function h(e){let t=Array.isArray(e)?e:[e];for(let e of t)await l.remove({key:e})}function g(e){return e===null?[...u.keys()]:Array.isArray(e)?e:typeof e==`string`?[e]:Object.keys(e)}var _={runtime:{id:`peach-mobile`,sendMessage:(e,t)=>{let n={ok:!1,error:`NO_SERVICE_WORKER`};return t?.(n),Promise.resolve(n)},onMessage:d(),connect:()=>({disconnect:()=>{},onMessage:d(),onDisconnect:d(),postMessage:()=>{}}),lastError:null},storage:{local:{get:p,set:m,remove:h,clear:()=>l.clear()},session:{get:async e=>{let t={};for(let n of g(e))u.has(n)&&(t[n]=u.get(n));return t},set:async e=>{for(let[t,n]of Object.entries(e))u.set(t,n)},remove:async e=>{let t=Array.isArray(e)?e:[e];for(let e of t)u.delete(e)},clear:async()=>{u.clear()}},onChanged:d()},alarms:{clear:()=>{},create:()=>{},onAlarm:d()},idle:{setDetectionInterval:()=>{},onStateChanged:d()},tabs:{query:(e,t)=>(t?.([]),Promise.resolve([])),sendMessage:()=>Promise.resolve(void 0),create:()=>Promise.resolve(void 0),onActivated:d(),onUpdated:d()},action:{openPopup:()=>Promise.resolve(),setBadgeText:()=>Promise.resolve(),setBadgeBackgroundColor:()=>Promise.resolve()},scripting:{executeScript:()=>Promise.resolve()}};window.chrome=_,(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var v={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return y(this.context.count)},getNextContextId(){return y(this.context.count++)}};function y(e){let t=String(e),n=t.length-1;return v.context.id+(n?String.fromCharCode(96+n):``)+t}function b(e){v.context=e}function x(){return{...v.context,id:v.getNextContextId(),count:0}}var S=(e,t)=>e===t,C=Symbol(`solid-track`),w={equals:S},T=null,E=Te,D=1,O=2,k={owned:null,cleanups:null,context:null,owner:null},A={},j=null,M=null,ee=null,te=null,N=null,P=null,F=null,I=0;function L(e,t){let n=N,r=j,i=e.length===0,a=t===void 0?r:t,o=i?k:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>V(()=>Ae(o)));j=o,N=null;try{return Ce(s,!0)}finally{N=n,j=r}}function R(e,t){t=t?Object.assign({},w,t):w;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[ye.bind(n),e=>(typeof e==`function`&&(e=M&&M.running&&M.sources.has(n)?e(n.tValue):e(n.value)),be(n,e))]}function ne(e,t,n){let r=Se(e,t,!0,D);ee&&M&&M.running?P.push(r):xe(r)}function z(e,t,n){let r=Se(e,t,!1,D);ee&&M&&M.running?P.push(r):xe(r)}function re(e,t,n){E=De;let r=Se(e,t,!1,D),i=_e&&he(_e);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),F?F.push(r):xe(r)}function B(e,t,n){n=n?Object.assign({},w,n):w;let r=Se(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ee&&M&&M.running?(r.tState=D,P.push(r)):xe(r),ye.bind(r)}function ie(e){return e&&typeof e==`object`&&`then`in e}function ae(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=A,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&B(r),p=new Set,[m,h]=(a.storage||R)(a.initialValue),[g,_]=R(void 0),[y,b]=R(void 0,{equals:!1}),[x,S]=R(d?`ready`:`unresolved`);v.context&&(c=v.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:v.load&&v.has(c)&&(s=v.load(c)));function C(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=A,M&&e&&l?(M.promises.delete(e),l=!1,Ce(()=>{M.running=!0,w(t,n)},!1)):w(t,n)),t}function w(e,t){Ce(()=>{t===void 0&&h(()=>e),S(t===void 0?d?`ready`:`unresolved`:`errored`),_(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function T(){let e=_e&&he(_e),t=m(),n=g();if(n!==void 0&&!o)throw n;return N&&!N.user&&e&&ne(()=>{y(),o&&(e.resolved&&M&&l?M.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function E(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=M&&M.running,t==null||t===!1){C(o,V(m));return}M&&o&&M.promises.delete(o);let n,a=s===A?V(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){C(o,void 0,Me(n),t);return}else if(!ie(a))return C(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?C(o,a.v,void 0,t):C(o,void 0,Me(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Ce(()=>{S(d?`refreshing`:`pending`),b()},!1),a.then(e=>C(a,e,void 0,t),e=>C(a,void 0,Me(e),t)))}Object.defineProperties(T,{state:{get:()=>x()},error:{get:()=>g()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return T();let e=g();if(e&&!o)throw e;return m()}}});let D=j;return f?ne(()=>(D=j,E(!1))):E(!1),[T,{refetch:e=>le(D,()=>E(e)),mutate:h}]}function V(e){if(!te&&N===null)return e();let t=N;N=null;try{return te?te.untrack(e):e()}finally{N=t}}function oe(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;tt(o,i,n));return i=o,s}}function H(e){re(()=>V(e))}function se(e){return j===null||(j.cleanups===null?j.cleanups=[e]:j.cleanups.push(e)),e}function ce(){return j}function le(e,t){let n=j,r=N;j=e,N=null;try{return Ce(t,!0)}catch(e){Pe(e)}finally{j=n,N=r}}function ue(e){if(M&&M.running)return e(),M.done;let t=N,n=j;return Promise.resolve().then(()=>{N=t,j=n;let r;return(ee||_e)&&(r=M||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),Ce(e,!1),N=j=null,r?r.done:void 0})}var[de,fe]=R(!1);function pe(e){F.push.apply(F,e),e.length=0}function me(e,t){let n=Symbol(`context`);return{id:n,Provider:Ie(n),defaultValue:e}}function he(e){let t;return j&&j.context&&(t=j.context[e.id])!==void 0?t:e.defaultValue}function ge(e){let t=B(e),n=B(()=>Fe(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var _e;function ve(){return _e||=me()}function ye(){let e=M&&M.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===D)xe(this);else{let e=P;P=null,Ce(()=>Oe(this),!1),P=e}if(N){let e=this.observers?this.observers.length:0;N.sources?(N.sources.push(this),N.sourceSlots.push(e)):(N.sources=[this],N.sourceSlots=[e]),this.observers?(this.observers.push(N),this.observerSlots.push(N.sources.length-1)):(this.observers=[N],this.observerSlots=[N.sources.length-1])}return e&&M.sources.has(this)?this.tValue:this.value}function be(e,t,n){let r=M&&M.running&&M.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(M){let r=M.running;(r||!n&&M.sources.has(e))&&(M.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Ce(()=>{for(let t=0;t1e6)throw P=[],Error()},!1)}return t}function xe(e){if(!e.fn)return;Ae(e);let t=I;U(e,M&&M.running&&M.sources.has(e)?e.tValue:e.value,t),M&&!M.running&&M.sources.has(e)&&queueMicrotask(()=>{Ce(()=>{M&&(M.running=!0),N=j=e,U(e,e.tValue,t),N=j=null},!1)})}function U(e,t,n){let r,i=j,a=N;N=j=e;try{r=e.fn(t)}catch(t){return e.pure&&(M&&M.running?(e.tState=D,e.tOwned&&e.tOwned.forEach(Ae),e.tOwned=void 0):(e.state=D,e.owned&&e.owned.forEach(Ae),e.owned=null)),e.updatedAt=n+1,Pe(t)}finally{N=a,j=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?be(e,r,!0):M&&M.running&&e.pure?(M.sources.has(e)||(e.value=r),M.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function Se(e,t,n,r=D,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:j,context:j?j.context:null,pure:n};if(M&&M.running&&(a.state=0,a.tState=r),j===null||j!==k&&(M&&M.running&&j.pure?j.tOwned?j.tOwned.push(a):j.tOwned=[a]:j.owned?j.owned.push(a):j.owned=[a]),te&&a.fn){let e=a.fn,[t,n]=R(void 0,{equals:!1}),r=te.factory(e,n);se(()=>r.dispose());let i,o=()=>ue(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),M&&M.running?(i||=te.factory(e,o),i.track(n)):r.track(n))}return a}function W(e){let t=M&&M.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===O)return Oe(e);if(e.suspense&&V(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(M.disposed.has(t))return}if((t?e.tState:e.state)===D)xe(e);else if((t?e.tState:e.state)===O){let t=P;P=null,Ce(()=>Oe(e,n[0]),!1),P=t}}}function Ce(e,t){if(P)return e();let n=!1;t||(P=[]),F?n=!0:F=[],I++;try{let t=e();return we(n),t}catch(e){n||(F=null),P=null,Pe(e)}}function we(e){if(P&&=(ee&&M&&M.running?Ee(P):Te(P),null),e)return;let t;if(M){if(!M.promises.size&&!M.queue.size){let e=M.sources,n=M.disposed;F.push.apply(F,M.effects),t=M.resolve;for(let e of F)`tState`in e&&(e.state=e.tState),delete e.tState;M=null,Ce(()=>{for(let e of n)Ae(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;eE(n),!1),t&&t()}function Te(e){for(let t=0;t{r.delete(n),Ce(()=>{M.running=!0,W(n)},!1),M&&(M.running=!1)}))}}function De(e){let t,n=0;for(t=0;t=0;t--)Ae(e.tOwned[t]);delete e.tOwned}if(M&&M.running&&e.pure)je(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ae(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}M&&M.running?e.tState=0:e.state=0}function je(e,t){if(t||(e.tState=0,M.disposed.add(e)),e.owned)for(let t=0;tn=V(()=>(j.context={...j.context,[e]:t.value},ge(()=>t.children))),void 0),n}}var Le=Symbol(`fallback`);function Re(e){for(let t=0;t1?[]:null;return se(()=>Re(a)),()=>{let c=e()||[],l=c.length,u,d;return c[C],V(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Re(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Le],i[0]=L(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;dRe(a)),()=>{let l=e()||[],u=l.length;return l[C],V(()=>{if(u===0)return s!==0&&(Re(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Le],i[0]=L(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Le&&(a[0](),a=[],r=[],i=[],s=0),c=0;cl[c]):c>=r.length&&(i[c]=L(d));for(;ce(t||{}));return b(n),r}return V(()=>e(t||{}))}function He(e){let t,n,r=r=>{let i=v.context;if(i){let[r,a]=R();v.count||=0,v.count++,(n||=e()).then(e=>{!v.done&&b(i),v.count--,a(()=>e.default),b()}),t=r}else if(!t){let[r]=ae(()=>(n||=e()).then(e=>e.default));t=r}let a;return B(()=>(a=t())?V(()=>{if(!i||v.done)return a(r);let e=v.context;b(i);let t=a(r);return b(e),t}):``)};return r.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),r}var Ue=e=>`Stale read from <${e}>.`;function We(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return B(ze(()=>e.each,e.children,t||void 0))}function Ge(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return B(Be(()=>e.each,e.children,t||void 0))}function K(e){let t=e.keyed,n=B(()=>e.when,void 0,void 0),r=t?n:B(n,void 0,{equals:(e,t)=>!e==!t});return B(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?V(()=>a(t?i:()=>{if(!V(r))throw Ue(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function Ke(e){let t=ge(()=>e.children),n=B(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;ea()?void 0:i.when,void 0,void 0),s=i.keyed?o:B(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return B(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?V(()=>o(a.keyed?i():()=>{if(V(n)()?.[0]!==r)throw Ue(`Match`);return i()})):o},void 0,void 0)}function qe(e){return e}var Je=me();function Ye(e){let t=0,n,r,i,a,o,[s,c]=R(!1),l=ve(),u={increment:()=>{++t===1&&c(!0)},decrement:()=>{--t===0&&c(!1)},inFallback:s,effects:[],resolved:!1},d=ce();if(v.context&&v.load){let e=v.getContextId(),t=v.load(e);if(t&&(typeof t!=`object`||t.s!==1?i=t:v.gather(e)),i&&i!==`$$f`){let[t,n]=R(void 0,{equals:!1});a=t,i.then(()=>{if(v.done)return n();v.gather(e),b(r),n(),b()},e=>{o=e,n()})}}let f=he(Je);f&&(n=f.register(u.inFallback));let p;return se(()=>p&&p()),G(l.Provider,{value:u,get children(){return B(()=>{if(o)throw o;if(r=v.context,a){a(),a=void 0;return}r&&i===`$$f`&&b();let t=B(()=>e.children);return B(a=>{let o=u.inFallback(),{showContent:s=!0,showFallback:c=!0}=n?n():{};if((!o||i&&i!==`$$f`)&&s)return u.resolved=!0,p&&p(),p=r=i=void 0,pe(u.effects),t();if(c)return p?a:L(t=>(p=t,r&&=(b({id:r.id+`F`,count:0}),void 0),e.fallback),d)})})}})}var q=e=>B(()=>e());function Xe(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;or-s){let i=t[o];for(;s{i=r,t===document?e():Z(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function J(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>V(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function $e(e,t=window.document){let n=t[Ze]||(t[Ze]=new Set);for(let r=0,i=e.length;rr.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function tt(e,t,n){if(!t)return n?Y(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function nt(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function rt(e,t,n){return V(()=>e(t,n))}function Z(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return ot(e,t,r,n);z(r=>ot(e,t(),r,n),r)}function it(e){return!!v.context&&!v.done&&(!e||e.isConnected)}function at(e){if(v.registry&&v.events&&v.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),v.registry&&!v.done&&(v.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e{let i=t();for(;typeof i==`function`;)i=i();n=ot(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(st(o,t,n,i))return z(()=>n=ot(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=lt(e,n,r),s)return n}else c?n.length===0?ct(e,o,r):Xe(e,n,o):(n&<(e),ct(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=lt(e,n,r,t);lt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function st(e,t,n,r){let i=!1;for(let a=0,o=t.length;a=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var ut=r(`App`,{web:()=>c(()=>import(`./web-DyWUL-X3.js`).then(e=>new e.AppWeb),__vite__mapDeps([2,1]))}),dt;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(dt||={});var ft;(function(e){e.Body=`body`,e.Ionic=`ionic`,e.Native=`native`,e.None=`none`})(ft||={});var pt=r(`Keyboard`),mt;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(mt||={});var ht;(function(e){e.None=`NONE`,e.Slide=`SLIDE`,e.Fade=`FADE`})(ht||={});var gt=r(`StatusBar`);async function _t(e){if(!i.isNativePlatform())return(await chrome.storage.local.get(e))[e]??null;let{value:t}=await l.get({key:e});return t}async function vt(e,t){if(!i.isNativePlatform()){await chrome.storage.local.set({[e]:t});return}await l.set({key:e,value:t})}async function yt(){if(!i.isNativePlatform()){await chrome.storage.local.clear();return}await l.clear()}var bt=5e3;function xt(e){return e&&(e===`STORAGE_QUOTA_EXCEEDED`?`Peach has run out of browser storage. Delete some entries or clear browser storage to continue.`:e)}async function St(e){return new Promise(t=>{let n=!1,r=window.setTimeout(()=>{n||(n=!0,t({ok:!1,error:`SERVICE_WORKER_UNAVAILABLE`}))},bt);try{chrome.runtime.sendMessage(e,e=>{if(!n){if(n=!0,window.clearTimeout(r),chrome.runtime.lastError){t({ok:!1,error:chrome.runtime.lastError.message??`SERVICE_WORKER_UNAVAILABLE`});return}if(e===void 0){t({ok:!1,error:`SERVICE_WORKER_UNAVAILABLE`});return}e.ok===!1&&(e.error=xt(e.error)),t(e)}})}catch(e){if(n)return;n=!0,window.clearTimeout(r),t({ok:!1,error:e instanceof Error?e.message:`SERVICE_WORKER_UNAVAILABLE`})}})}async function Q(e){if(!i.isNativePlatform())return St(e);let{handleMessage:t}=await c(async()=>{let{handleMessage:e}=await import(`./messages-CXVBmapB.js`);return{handleMessage:e}},__vite__mapDeps([3,1,4])),n=await t(e,{});return n.ok===!1&&(n.error=xt(n.error)),n}var Ct=r(`InMemoryVault`);function wt(e){return e.filter(e=>e.type===`login`&&!e.deletedAt&&e.password).map(e=>({id:e.id,type:e.type,title:e.title,username:e.username??``,password:e.password??``,url:e.url??``}))}async function Tt(e){i.isNativePlatform()&&await Ct.setEntries({entries:JSON.stringify(wt(e))})}async function Et(){i.isNativePlatform()&&await Ct.clearEntries()}function Dt(e){return e.passkey!==void 0&&e.passkey.credentialId.length>0}function Ot(e){return Dt(e)&&!e.password}var kt=[{name:`peach`,hex:`#F49C70`},{name:`rose`,hex:`#FF8AA6`},{name:`plum`,hex:`#D597F2`},{name:`lavender`,hex:`#A6A8FF`},{name:`sky`,hex:`#5BC8EE`},{name:`mint`,hex:`#5EE0B0`},{name:`sage`,hex:`#B5D870`},{name:`butter`,hex:`#FFD45A`},{name:`sand`,hex:`#EDBC85`},{name:`clay`,hex:`#F08660`},{name:`slate`,hex:`#80BEDE`},{name:`stone`,hex:`#C8B8A8`}],At=J(`