~ianmjones/snippetexpander

47ef453d15cb601dbdd3047de74934c2069c44c9 — Ian M. Jones 1 year, 19 days ago 37a797e 1.0.0-alpha.1
Update version to 1.0.0-alpha.1
M cmd/snippetexpander/main.go => cmd/snippetexpander/main.go +1 -1
@@ 15,7 15,7 @@ import (
	"github.com/godbus/dbus/v5"
)

var version = "2.0.0-alpha.7"
var version = "1.0.0-alpha.1"

func main() {
	ctx := context.Background()

M cmd/snippetexpandergui/config_test.go => cmd/snippetexpandergui/config_test.go +3 -3
@@ 23,9 23,9 @@ func TestConfig_Init(t *testing.T) {
		{[]string{"snippetexpandergui", "-h"}, true, false, "Usage: snippetexpandergui [FLAG]"},
		{[]string{"snippetexpandergui", "--version", "--help"}, true, false, "Usage: snippetexpandergui [FLAG]"},
		{[]string{"snippetexpandergui", "--search-and-paste", "--version", "--help"}, true, false, "Usage: snippetexpandergui [FLAG]"},
		{[]string{"snippetexpandergui", "--version"}, true, false, "2.0.0-alpha.7"},
		{[]string{"snippetexpandergui", "-v"}, true, false, "2.0.0-alpha.7"},
		{[]string{"snippetexpandergui", "--search-and-paste", "--version"}, true, false, "2.0.0-alpha.7"},
		{[]string{"snippetexpandergui", "--version"}, true, false, "1.0.0-alpha.1"},
		{[]string{"snippetexpandergui", "-v"}, true, false, "1.0.0-alpha.1"},
		{[]string{"snippetexpandergui", "--search-and-paste", "--version"}, true, false, "1.0.0-alpha.1"},
		{[]string{"snippetexpandergui", "--search-and-paste"}, false, true, ""},
		{[]string{"snippetexpandergui", "-s"}, false, true, ""},
		{[]string{"snippetexpandergui"}, false, false, ""},

A cmd/snippetexpandergui/frontend/dist/assets/en-GB-0a4787dd.js => cmd/snippetexpandergui/frontend/dist/assets/en-GB-0a4787dd.js +1 -0
@@ 0,0 1,1 @@
const t={title:"Abbreviation",empty:"Please enter an Abbreviation",exists:"That Abbreviation already exists"},e={title:"Body"},n={title:"Add Snippet",error_title:"Error adding snippet"},o={title:"Edit Snippet",error_title:"Error editing snippet",id_not_supplied:"A Snippet ID was not specified for edit.",snippet_not_found:"Could not find Snippet for edit."},s={title:"Remove Snippet",error_title:"Error removing snippet"},i={title:"Copy and paste snippet",error_title:"Error copying and pasting snippet"},r={title:"Import Snippets",new_only_title:"Import Snippets: Discarding Duplicates",update_title:"Import Snippets: Update Existing",error_title:"Error importing snippets"},p={title:"Export Snippets",error_title:"Error exporting snippets"},a={title:"Settings",import_export_title:"Import & Export",get_error_title:"Error getting settings",save_error_title:"Error saving settings",no_connection:"Settings can only be changed when the daemon is running.",autostart_title:"Auto Start",autostart:"Start daemon on login",autoexpand_title:"Auto Expand Snippets",autoexpand:"Auto expand snippets as they are typed",search_and_paste_title:"Search & Paste",focus_search:"Focus search box",custom_shortcuts_disabled:"Unable to get or set custom shortcut, please set it manually.",custom_shortcut:"Custom Shortcut",custom_shortcut_empty:"none",remove_custom_shortcut:"Remove custom shortcut",change_custom_shortcut_desc:"To change the custom shortcut, please use your system's settings application.",add_default_custom_shortcut:"Add default custom shortcut"},c="Could not connect to the snippetexpanderd daemon.",d={title:"No Snippets Found",description:"Please try entering a different search term."},l={cancel:"Cancel",save:"Save",remove:"Remove",back:"Back",about:"About"},u="Loading…",_="Search…",m="Clear",g={not_installed:"It does not look like the required snippetexpanderd daemon is installed.",installed:"It looks like snippetexpanderd is installed.",start:"Start it?",starting:"Starting snippetexpanderd…"},h={description:"Your little expandable text snippet helper",source:"Source",licence_title:"Licence",licence:"GNU General Public License Version 2 Plus (GPLv2+)",by:"By"},b={abbreviation:t,body:e,add_snippet:n,edit_snippet:o,remove_snippet:s,use_snippet:i,import_snippets:r,export_snippets:p,settings:a,no_connection:c,no_snippets_found:d,button:l,loading:u,search:_,clear:m,daemon:g,about:h};export{t as abbreviation,h as about,n as add_snippet,e as body,l as button,m as clear,g as daemon,b as default,o as edit_snippet,p as export_snippets,r as import_snippets,u as loading,c as no_connection,d as no_snippets_found,s as remove_snippet,_ as search,a as settings,i as use_snippet};

D cmd/snippetexpandergui/frontend/dist/assets/en-GB-f23fefe1.js => cmd/snippetexpandergui/frontend/dist/assets/en-GB-f23fefe1.js +0 -1
@@ 1,1 0,0 @@
const t={title:"Abbreviation",empty:"Please enter an Abbreviation",exists:"That Abbreviation already exists"},e={title:"Body"},n={title:"Add Snippet",error_title:"Error adding snippet"},o={title:"Edit Snippet",error_title:"Error editing snippet",id_not_supplied:"A Snippet ID was not specified for edit.",snippet_not_found:"Could not find Snippet for edit."},s={title:"Remove Snippet",error_title:"Error removing snippet"},i={title:"Import Snippets",new_only_title:"Import Snippets: Discarding Duplicates",update_title:"Import Snippets: Update Existing",error_title:"Error importing snippets"},r={title:"Export Snippets",error_title:"Error exporting snippets"},p={title:"Settings",import_export_title:"Import & Export",get_error_title:"Error getting settings",save_error_title:"Error saving settings",no_connection:"Settings can only be changed when the daemon is running.",autostart_title:"Auto Start",autostart:"Start daemon on login",autoexpand_title:"Auto Expand Snippets",autoexpand:"Auto expand snippets as they are typed",search_and_paste_title:"Search & Paste",focus_search:"Focus search box",custom_shortcuts_disabled:"Unable to get or set custom shortcut, please set it manually.",custom_shortcut:"Custom Shortcut",custom_shortcut_empty:"none",remove_custom_shortcut:"Remove custom shortcut",change_custom_shortcut_desc:"To change the custom shortcut, please use your system's settings application.",add_default_custom_shortcut:"Add default custom shortcut"},a="Could not connect to the snippetexpanderd daemon.",c={title:"No Snippets Found",description:"Please try entering a different search term."},d={cancel:"Cancel",save:"Save",remove:"Remove",back:"Back",about:"About"},l="Loading…",u="Search…",_="Clear",m={not_installed:"It does not look like the required snippetexpanderd daemon is installed.",installed:"It looks like snippetexpanderd is installed.",start:"Start it?",starting:"Starting snippetexpanderd…"},g={description:"Your little expandable text snippet helper",source:"Source",licence_title:"Licence",licence:"GNU General Public License Version 2 Plus (GPLv2+)",by:"By"},h={abbreviation:t,body:e,add_snippet:n,edit_snippet:o,remove_snippet:s,import_snippets:i,export_snippets:r,settings:p,no_connection:a,no_snippets_found:c,button:d,loading:l,search:u,clear:_,daemon:m,about:g};export{t as abbreviation,g as about,n as add_snippet,e as body,d as button,_ as clear,m as daemon,h as default,o as edit_snippet,r as export_snippets,i as import_snippets,l as loading,a as no_connection,c as no_snippets_found,s as remove_snippet,u as search,p as settings};

R cmd/snippetexpandergui/frontend/dist/assets/index-a2f4a5b6.js => cmd/snippetexpandergui/frontend/dist/assets/index-68176ace.js +1 -1
@@ 2,4 2,4 @@ var Di=Object.defineProperty;var Gi=(e,t,n)=>t in e?Di(e,t,{enumerable:!0,config
Try polyfilling it using "@formatjs/intl-pluralrules"
`,qe.MISSING_INTL_API,o);var y=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));H=f.options[y]||f.options.other}if(!H)throw new Fn(f.value,h,Object.keys(f.options),o);l.push.apply(l,St(H.value,t,n,i,r,h-(f.offset||0)));continue}}return ks(l)}function Bs(e,t){return t?ee(ee(ee({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=ee(ee({},e[i]),t[i]||{}),n},{})):e}function Ts(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Bs(e[i],t[i]),n},ee({},e)):e}function Qt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Is(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:qt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Wt([void 0],n,!1)))},{cache:Qt(e.number),strategy:Zt.variadic}),getDateTimeFormat:qt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Wt([void 0],n,!1)))},{cache:Qt(e.dateTime),strategy:Zt.variadic}),getPluralRules:qt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Wt([void 0],n,!1)))},{cache:Qt(e.pluralRules),strategy:Zt.variadic})}}var Hs=function(){function e(t,n,i,r){var s=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(o){var l=s.formatToParts(o);if(l.length===1)return l[0].value;var a=l.reduce(function(u,f){return!u.length||f.type!==me.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return a.length<=1?a[0]||"":a},this.formatToParts=function(o){return St(s.ast,s.locales,s.formatters,s.formats,o,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:r==null?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ts(e.formats,i),this.formatters=r&&r.formatters||Is(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=ds,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ce={},Cs=(e,t,n)=>n&&(t in Ce||(Ce[t]={}),e in Ce[t]||(Ce[t][e]=n),n),Pi=(e,t)=>{if(t==null)return;if(t in Ce&&e in Ce[t])return Ce[t][e];const n=gt(t);for(let i=0;i<n.length;i++){const r=Ls(n[i],e);if(r)return Cs(e,t,r)}};let wn;const Ye=Te({});function En(e){return e in wn}function Ls(e,t){if(!En(e))return null;const n=function(i){return wn[i]||null}(e);return function(i,r){if(r==null)return;if(r in i)return i[r];const s=r.split(".");let o=i;for(let l=0;l<s.length;l++)if(typeof o=="object"){if(l>0){const a=s.slice(l,s.length).join(".");if(a in o){o=o[a];break}}o=o[s[l]]}else o=void 0;return o}(n,t)}function Ns(e,...t){delete Ce[e],Ye.update(n=>(n[e]=Dr.all([n[e]||{},...t]),n))}Le([Ye],([e])=>Object.keys(e));Ye.subscribe(e=>wn=e);const ot={};function lt(e){return ot[e]}function It(e){return e!=null&&gt(e).some(t=>{var n;return(n=lt(t))===null||n===void 0?void 0:n.size})}function Ps(e,t){return Promise.all(t.map(i=>(function(r,s){ot[r].delete(s),ot[r].size===0&&delete ot[r]}(e,i),i().then(r=>r.default||r)))).then(i=>Ns(e,...i))}const nt={};function Oi(e){if(!It(e))return e in nt?nt[e]:Promise.resolve();const t=function(n){return gt(n).map(i=>{const r=lt(i);return[i,r?[...r]:[]]}).filter(([,i])=>i.length>0)}(e);return nt[e]=Promise.all(t.map(([n,i])=>Ps(n,i))).then(()=>{if(It(e))return Oi(e);delete nt[e]}),nt[e]}function Os(e,t){lt(e)||function(i){ot[i]=new Set}(e);const n=lt(e);lt(e).has(t)||(En(e)||Ye.update(i=>(i[e]={},i)),n.add(t))}function Ms({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${gt(e).join('", "')}".${It(Ne())?`

Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const it={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Ze(){return it}function xs(e){const{formats:t,...n}=e,i=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Ms:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(it,n,{initialLocale:i}),t&&("number"in t&&Object.assign(it.formats.number,t.number),"date"in t&&Object.assign(it.formats.date,t.date),"time"in t&&Object.assign(it.formats.time,t.time)),Ke.set(i)}const kt=Te(!1);let cn;const At=Te(null);function zn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function gt(e,t=Ze().fallbackLocale){const n=zn(e);return t?[...new Set([...n,...zn(t)])]:n}function Ne(){return cn??void 0}At.subscribe(e=>{cn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ke={...At,set:e=>{if(e&&function(t){if(t==null)return;const n=gt(t);for(let i=0;i<n.length;i++){const r=n[i];if(En(r))return r}}(e)&&It(e)){const{loadingDelay:t}=Ze();let n;return typeof window<"u"&&Ne()!=null&&t?n=window.setTimeout(()=>kt.set(!0),t):kt.set(!0),Oi(e).then(()=>{At.set(e)}).finally(()=>{clearTimeout(n),kt.set(!1)})}return At.set(e)}},Rs=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Pt=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}},ct=(e,t)=>{const{formats:n}=Ze();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Us=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=ct("number",t)),new Intl.NumberFormat(e,n)}),Ds=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=ct("date",t):Object.keys(n).length===0&&(n=ct("date","short")),new Intl.DateTimeFormat(e,n)}),Gs=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=ct("time",t):Object.keys(n).length===0&&(n=ct("time","short")),new Intl.DateTimeFormat(e,n)}),$s=({locale:e=Ne(),...t}={})=>Us({locale:e,...t}),js=({locale:e=Ne(),...t}={})=>Ds({locale:e,...t}),Fs=({locale:e=Ne(),...t}={})=>Gs({locale:e,...t}),zs=Pt((e,t=Ne())=>new Hs(e,t,Ze().formats,{ignoreTag:Ze().ignoreTag})),Vs=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:a=Ne(),default:u}=o;if(a==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Pi(e,a);if(f){if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f}else f=(s=(r=(i=(n=Ze()).handleMissingMessage)===null||i===void 0?void 0:i.call(n,{locale:a,id:e,defaultValue:u}))!==null&&r!==void 0?r:u)!==null&&s!==void 0?s:e;if(!l)return f;let p=f;try{p=zs(f,a).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return p},Ws=(e,t)=>Fs(t).format(e),Xs=(e,t)=>js(t).format(e),qs=(e,t)=>$s(t).format(e),Zs=(e,t=Ne())=>Pi(e,t),Se=Le([Ke,Ye],()=>Vs);Le([Ke],()=>Ws);Le([Ke],()=>Xs);Le([Ke],()=>qs);Le([Ke,Ye],()=>Zs);function Qs(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,i,r,s,o=[],l="",a=e.split("/");for(a[0]||a.shift();r=a.shift();)n=r[0],n==="*"?(o.push("wild"),l+="/(.*)"):n===":"?(i=r.indexOf("?",1),s=r.indexOf(".",1),o.push(r.substring(1,~i?i:~s?s:r.length)),l+=~i&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(l+=(~i?"?":"")+"\\"+r.substring(s))):l+="/"+r;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}function Js(e){let t,n,i;const r=[e[2]];var s=e[0];function o(l,a){let u={};if(a!==void 0&&a&4)u=Bt(r,[Tt(l[2])]);else for(let f=0;f<r.length;f+=1)u=pn(u,r[f]);return{props:u}}return s&&(t=Ve(s,o(e)),t.$on("routeEvent",e[7])),{c(){t&&U(t.$$.fragment),n=ye()},m(l,a){t&&O(t,l,a),g(l,n,a),i=!0},p(l,a){if(a&1&&s!==(s=l[0])){if(t){ue();const u=t;S(u.$$.fragment,1,0,()=>{M(u,1)}),fe()}s?(t=Ve(s,o(l,a)),t.$on("routeEvent",l[7]),U(t.$$.fragment),w(t.$$.fragment,1),O(t,n.parentNode,n)):t=null}else if(s){const u=a&4?Bt(r,[Tt(l[2])]):{};t.$set(u)}},i(l){i||(t&&w(t.$$.fragment,l),i=!0)},o(l){t&&S(t.$$.fragment,l),i=!1},d(l){l&&_(n),t&&M(t,l)}}}function Ys(e){let t,n,i;const r=[{params:e[1]},e[2]];var s=e[0];function o(l,a){let u={};if(a!==void 0&&a&6)u=Bt(r,[a&2&&{params:l[1]},a&4&&Tt(l[2])]);else for(let f=0;f<r.length;f+=1)u=pn(u,r[f]);return{props:u}}return s&&(t=Ve(s,o(e)),t.$on("routeEvent",e[6])),{c(){t&&U(t.$$.fragment),n=ye()},m(l,a){t&&O(t,l,a),g(l,n,a),i=!0},p(l,a){if(a&1&&s!==(s=l[0])){if(t){ue();const u=t;S(u.$$.fragment,1,0,()=>{M(u,1)}),fe()}s?(t=Ve(s,o(l,a)),t.$on("routeEvent",l[6]),U(t.$$.fragment),w(t.$$.fragment,1),O(t,n.parentNode,n)):t=null}else if(s){const u=a&6?Bt(r,[a&2&&{params:l[1]},a&4&&Tt(l[2])]):{};t.$set(u)}},i(l){i||(t&&w(t.$$.fragment,l),i=!0)},o(l){t&&S(t.$$.fragment,l),i=!1},d(l){l&&_(n),t&&M(t,l)}}}function Ks(e){let t,n,i,r;const s=[Ys,Js],o=[];function l(a,u){return a[1]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function Vn(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let i="";return n>-1&&(i=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:i}}const yn=di(null,function(t){t(Vn());const n=()=>{t(Vn())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});Le(yn,e=>e.location);Le(yn,e=>e.querystring);const Wn=Te(void 0);async function je(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await gn(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}async function Be(){await gn(),window.history.back()}function eo(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function to(e,t,n){let{routes:i={}}=t,{prefix:r=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(T,N){if(!N||typeof N!="function"&&(typeof N!="object"||N._sveltesparouter!==!0))throw Error("Invalid component object");if(!T||typeof T=="string"&&(T.length<1||T.charAt(0)!="/"&&T.charAt(0)!="*")||typeof T=="object"&&!(T instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:k,keys:x}=Qs(T);this.path=T,typeof N=="object"&&N._sveltesparouter===!0?(this.component=N.component,this.conditions=N.conditions||[],this.userData=N.userData,this.props=N.props||{}):(this.component=()=>Promise.resolve(N),this.conditions=[],this.props={}),this._pattern=k,this._keys=x}match(T){if(r){if(typeof r=="string")if(T.startsWith(r))T=T.substr(r.length)||"/";else return null;else if(r instanceof RegExp){const v=T.match(r);if(v&&v[0])T=T.substr(v[0].length)||"/";else return null}}const N=this._pattern.exec(T);if(N===null)return null;if(this._keys===!1)return N;const k={};let x=0;for(;x<this._keys.length;){try{k[this._keys[x]]=decodeURIComponent(N[x+1]||"")||null}catch{k[this._keys[x]]=null}x++}return k}async checkConditions(T){for(let N=0;N<this.conditions.length;N++)if(!await this.conditions[N](T))return!1;return!0}}const l=[];i instanceof Map?i.forEach((y,T)=>{l.push(new o(T,y))}):Object.keys(i).forEach(y=>{l.push(new o(y,i[y]))});let a=null,u=null,f={};const p=_t();async function h(y,T){await gn(),p(y,T)}let m=null,d=null;s&&(d=y=>{y.state&&(y.state.__svelte_spa_router_scrollY||y.state.__svelte_spa_router_scrollX)?m=y.state:m=null},window.addEventListener("popstate",d),ai(()=>{eo(m)}));let b=null,I=null;const B=yn.subscribe(async y=>{b=y;let T=0;for(;T<l.length;){const N=l[T].match(y.location);if(!N){T++;continue}const k={route:l[T].path,location:y.location,querystring:y.querystring,userData:l[T].userData,params:N&&typeof N=="object"&&Object.keys(N).length?N:null};if(!await l[T].checkConditions(k)){n(0,a=null),I=null,h("conditionsFailed",k);return}h("routeLoading",Object.assign({},k));const x=l[T].component;if(I!=x){x.loading?(n(0,a=x.loading),I=x,n(1,u=x.loadingParams),n(2,f={}),h("routeLoaded",Object.assign({},k,{component:a,name:a.name,params:u}))):(n(0,a=null),I=null);const v=await x();if(y!=b)return;n(0,a=v&&v.default||v),I=x}N&&typeof N=="object"&&Object.keys(N).length?n(1,u=N):n(1,u=null),n(2,f=l[T].props),h("routeLoaded",Object.assign({},k,{component:a,name:a.name,params:u})).then(()=>{Wn.set(u)});return}n(0,a=null),I=null,Wn.set(void 0)});_n(()=>{B(),d&&window.removeEventListener("popstate",d)});function E(y){ut.call(this,e,y)}function H(y){ut.call(this,e,y)}return e.$$set=y=>{"routes"in y&&n(3,i=y.routes),"prefix"in y&&n(4,r=y.prefix),"restoreScrollState"in y&&n(5,s=y.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[a,u,f,i,r,s,E,H]}class no extends Y{constructor(t){super(),J(this,t,to,Ks,Z,{routes:3,prefix:4,restoreScrollState:5})}}const we=Te(!1),rt=Te(!1),Ht=Te(!1);function Mi(){const{subscribe:e,set:t,update:n}=Te([]);return{subscribe:e,fetch:async()=>{if(!Pn(we))return;const i=await or();n(r=>i)},search:async(i,r)=>{if(!Pn(we))return;const s=await cr(i,r);n(o=>s)},reset:()=>t([])}}const Me=Mi(),Jt=Te(""),Yt=Mi();function io(e){let t,n,i,r;return{c(){t=V("svg"),n=V("polyline"),i=V("polyline"),c(n,"points","11 17 6 12 11 7"),c(i,"points","18 17 13 12 18 7"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-chevrons-left "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-chevrons-left "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ro(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class xi extends Y{constructor(t){super(),J(this,t,ro,io,Z,{size:0,strokeWidth:1,class:2})}}function so(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("line"),r=V("line"),c(n,"d","M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"),c(i,"x1","18"),c(i,"y1","9"),c(i,"x2","12"),c(i,"y2","15"),c(r,"x1","12"),c(r,"y1","9"),c(r,"x2","18"),c(r,"y2","15"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-delete "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-delete "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function oo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class lo extends Y{constructor(t){super(),J(this,t,oo,so,Z,{size:0,strokeWidth:1,class:2})}}function ao(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("polyline"),r=V("line"),c(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),c(i,"points","7 10 12 15 17 10"),c(r,"x1","12"),c(r,"y1","15"),c(r,"x2","12"),c(r,"y2","3"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-download "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-download "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function uo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class fo extends Y{constructor(t){super(),J(this,t,uo,ao,Z,{size:0,strokeWidth:1,class:2})}}function co(e){let t,n,i,r;return{c(){t=V("svg"),n=V("path"),i=V("path"),c(n,"d","M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"),c(i,"d","M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-edit "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-edit "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ho(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class po extends Y{constructor(t){super(),J(this,t,ho,co,Z,{size:0,strokeWidth:1,class:2})}}function mo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("circle"),i=V("path"),r=V("line"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","10"),c(i,"d","M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"),c(r,"x1","12"),c(r,"y1","17"),c(r,"x2","12.01"),c(r,"y2","17"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-help-circle "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-help-circle "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function _o(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class go extends Y{constructor(t){super(),J(this,t,_o,mo,Z,{size:0,strokeWidth:1,class:2})}}function bo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("circle"),i=V("line"),r=V("line"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","10"),c(i,"x1","12"),c(i,"y1","16"),c(i,"x2","12"),c(i,"y2","12"),c(r,"x1","12"),c(r,"y1","8"),c(r,"x2","12.01"),c(r,"y2","8"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-info "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-info "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function vo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class wo extends Y{constructor(t){super(),J(this,t,vo,bo,Z,{size:0,strokeWidth:1,class:2})}}function Eo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("rect"),i=V("line"),r=V("line"),c(n,"x","3"),c(n,"y","3"),c(n,"width","18"),c(n,"height","18"),c(n,"rx","2"),c(n,"ry","2"),c(i,"x1","12"),c(i,"y1","8"),c(i,"x2","12"),c(i,"y2","16"),c(r,"x1","8"),c(r,"y1","12"),c(r,"x2","16"),c(r,"y2","12"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-plus-square "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-plus-square "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function yo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ot extends Y{constructor(t){super(),J(this,t,yo,Eo,Z,{size:0,strokeWidth:1,class:2})}}function So(e){let t,n,i,r;return{c(){t=V("svg"),n=V("circle"),i=V("line"),c(n,"cx","11"),c(n,"cy","11"),c(n,"r","8"),c(i,"x1","21"),c(i,"y1","21"),c(i,"x2","16.65"),c(i,"y2","16.65"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-search "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-search "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ko(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ao extends Y{constructor(t){super(),J(this,t,ko,So,Z,{size:0,strokeWidth:1,class:2})}}function Bo(e){let t,n,i,r;return{c(){t=V("svg"),n=V("circle"),i=V("path"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","3"),c(i,"d","M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-settings "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-settings "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function To(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ri extends Y{constructor(t){super(),J(this,t,To,Bo,Z,{size:0,strokeWidth:1,class:2})}}function Io(e){let t,n,i,r,s,o;return{c(){t=V("svg"),n=V("polyline"),i=V("path"),r=V("line"),s=V("line"),c(n,"points","3 6 5 6 21 6"),c(i,"d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"),c(r,"x1","10"),c(r,"y1","11"),c(r,"x2","10"),c(r,"y2","17"),c(s,"x1","14"),c(s,"y1","11"),c(s,"x2","14"),c(s,"y2","17"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",o="feather feather-trash-2 "+e[2])},m(l,a){g(l,t,a),A(t,n),A(t,i),A(t,r),A(t,s)},p(l,[a]){a&1&&c(t,"width",l[0]),a&1&&c(t,"height",l[0]),a&2&&c(t,"stroke-width",l[1]),a&4&&o!==(o="feather feather-trash-2 "+l[2])&&c(t,"class",o)},i:G,o:G,d(l){l&&_(t)}}}function Ho(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Co extends Y{constructor(t){super(),J(this,t,Ho,Io,Z,{size:0,strokeWidth:1,class:2})}}function Lo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("polyline"),r=V("line"),c(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),c(i,"points","17 8 12 3 7 8"),c(r,"x1","12"),c(r,"y1","3"),c(r,"x2","12"),c(r,"y2","15"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-upload "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-upload "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function No(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class hn extends Y{constructor(t){super(),J(this,t,No,Lo,Z,{size:0,strokeWidth:1,class:2})}}function Po(e){let t,n;const i=e[5].default,r=ht(i,e,e[4],null);return{c(){t=L("p"),r&&r.c(),c(t,"class","svelte-hclhr3"),X(t,"error",e[3]),X(t,"warning",e[0]),X(t,"success",e[1]),X(t,"info",e[2])},m(s,o){g(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&16)&&mt(r,i,s,s[4],n?pt(i,s[4],o,null):dt(s[4]),null),(!n||o&8)&&X(t,"error",s[3]),(!n||o&1)&&X(t,"warning",s[0]),(!n||o&2)&&X(t,"success",s[1]),(!n||o&4)&&X(t,"info",s[2])},i(s){n||(w(r,s),n=!0)},o(s){S(r,s),n=!1},d(s){s&&_(t),r&&r.d(s)}}}function Oo(e,t,n){let{$$slots:i={},$$scope:r}=t,{error:s=!1}=t,{warning:o=!1}=t,{success:l=!1}=t,{info:a=!1}=t;return o=s&&o?!1:o,l=(s||o)&&l?!1:l,a=!(s||o||l),e.$$set=u=>{"error"in u&&n(3,s=u.error),"warning"in u&&n(0,o=u.warning),"success"in u&&n(1,l=u.success),"info"in u&&n(2,a=u.info),"$$scope"in u&&n(4,r=u.$$scope)},[o,l,a,s,r,i]}class Mt extends Y{constructor(t){super(),J(this,t,Oo,Po,Z,{error:3,warning:0,success:1,info:2})}}function Mo(e){let t=e[0]("no_connection")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("no_connection")+"")&&z(n,t)},d(i){i&&_(n)}}}function xo(e){let t,n;return t=new Mt({props:{error:!0,$$slots:{default:[Mo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ro(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Uo extends Y{constructor(t){super(),J(this,t,Ro,xo,Z,{})}}function Do(e){let t,n,i,r;const s=e[5].default,o=ht(s,e,e[4],null);return{c(){t=L("button"),o&&o.c(),t.disabled=e[3],c(t,"class","svelte-1jbd97"),X(t,"primary",e[0]),X(t,"danger",e[1]),X(t,"secondary",e[2])},m(l,a){g(l,t,a),o&&o.m(t,null),n=!0,i||(r=te(t,"click",e[6]),i=!0)},p(l,[a]){o&&o.p&&(!n||a&16)&&mt(o,s,l,l[4],n?pt(s,l[4],a,null):dt(l[4]),null),(!n||a&8)&&(t.disabled=l[3]),(!n||a&1)&&X(t,"primary",l[0]),(!n||a&2)&&X(t,"danger",l[1]),(!n||a&4)&&X(t,"secondary",l[2])},i(l){n||(w(o,l),n=!0)},o(l){S(o,l),n=!1},d(l){l&&_(t),o&&o.d(l),i=!1,r()}}}function Go(e,t,n){let{$$slots:i={},$$scope:r}=t,{primary:s=!1}=t,{danger:o=!1}=t,{secondary:l=!1}=t,{disabled:a=!1}=t;s=!s&&!l&&!o?!0:s,o=s&&o?!1:o,l=(s||o)&&l?!1:l;function u(f){ut.call(this,e,f)}return e.$$set=f=>{"primary"in f&&n(0,s=f.primary),"danger"in f&&n(1,o=f.danger),"secondary"in f&&n(2,l=f.secondary),"disabled"in f&&n(3,a=f.disabled),"$$scope"in f&&n(4,r=f.$$scope)},[s,o,l,a,r,i,u]}class Fe extends Y{constructor(t){super(),J(this,t,Go,Do,Z,{primary:0,danger:1,secondary:2,disabled:3})}}function $o(e){let t=e[0]("daemon.start")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.start")+"")&&z(n,t)},d(i){i&&_(n)}}}function jo(e){let t=e[0]("daemon.installed")+"",n,i,r,s;return r=new Fe({props:{$$slots:{default:[$o]},$$scope:{ctx:e}}}),r.$on("click",e[1]),{c(){n=$(t),i=R(),U(r.$$.fragment)},m(o,l){g(o,n,l),g(o,i,l),O(r,o,l),s=!0},p(o,l){(!s||l&1)&&t!==(t=o[0]("daemon.installed")+"")&&z(n,t);const a={};l&5&&(a.$$scope={dirty:l,ctx:o}),r.$set(a)},i(o){s||(w(r.$$.fragment,o),s=!0)},o(o){S(r.$$.fragment,o),s=!1},d(o){o&&(_(n),_(i)),M(r,o)}}}function Fo(e){let t,n;return t=new Mt({props:{warning:!0,$$slots:{default:[jo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&5&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function zo(e,t,n){let i;ne(e,Se,s=>n(0,i=s));async function r(){Ht.update(s=>!0);try{const s=await wr()}catch(s){await oe(i("daemon.start_error_title"),s),Ht.update(o=>!1)}await Me.fetch()}return[i,r]}class Vo extends Y{constructor(t){super(),J(this,t,zo,Fo,Z,{})}}function Wo(e){let t=e[0]("daemon.not_installed")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.not_installed")+"")&&z(n,t)},d(i){i&&_(n)}}}function Xo(e){let t,n;return t=new Mt({props:{error:!0,$$slots:{default:[Wo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function qo(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Zo extends Y{constructor(t){super(),J(this,t,qo,Xo,Z,{})}}function Qo(e){let t=e[0]("daemon.starting")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.starting")+"")&&z(n,t)},d(i){i&&_(n)}}}function Jo(e){let t,n;return t=new Mt({props:{warning:!0,$$slots:{default:[Qo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Yo(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Ko extends Y{constructor(t){super(),J(this,t,Yo,Jo,Z,{})}}function Xn(e){let t,n,i,r,s,o;t=new Uo({});const l=[nl,tl,el],a=[];function u(f,p){return f[2]&&!f[3]?0:f[2]&&f[3]?1:2}return i=u(e),r=a[i]=l[i](e),{c(){U(t.$$.fragment),n=R(),r.c(),s=ye()},m(f,p){O(t,f,p),g(f,n,p),a[i].m(f,p),g(f,s,p),o=!0},p(f,p){let h=i;i=u(f),i!==h&&(ue(),S(a[h],1,1,()=>{a[h]=null}),fe(),r=a[i],r||(r=a[i]=l[i](f),r.c()),w(r,1),r.m(s.parentNode,s))},i(f){o||(w(t.$$.fragment,f),w(r),o=!0)},o(f){S(t.$$.fragment,f),S(r),o=!1},d(f){f&&(_(n),_(s)),M(t,f),a[i].d(f)}}}function el(e){let t,n;return t=new Zo({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function tl(e){let t,n;return t=new Ko({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function nl(e){let t,n;return t=new Vo({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function il(e){let t,n,i,r,s,o=!e[1]&&Xn(e);const l=e[6].default,a=ht(l,e,e[5],null);return{c(){t=L("div"),o&&o.c(),n=R(),a&&a.c(),c(t,"class","screen svelte-i096ea"),X(t,"centered",e[0])},m(u,f){g(u,t,f),o&&o.m(t,null),A(t,n),a&&a.m(t,null),i=!0,r||(s=[te(t,"keyup",e[4]),te(t,"keyup",e[7])],r=!0)},p(u,[f]){u[1]?o&&(ue(),S(o,1,1,()=>{o=null}),fe()):o?(o.p(u,f),f&2&&w(o,1)):(o=Xn(u),o.c(),w(o,1),o.m(t,n)),a&&a.p&&(!i||f&32)&&mt(a,l,u,u[5],i?pt(l,u[5],f,null):dt(u[5]),null),(!i||f&1)&&X(t,"centered",u[0])},i(u){i||(w(o),w(a,u),i=!0)},o(u){S(o),S(a,u),i=!1},d(u){u&&_(t),o&&o.d(),a&&a.d(u),r=!1,Ee(s)}}}function rl(e,t,n){let i,r,s;ne(e,we,h=>n(1,i=h)),ne(e,rt,h=>n(2,r=h)),ne(e,Ht,h=>n(3,s=h));let{$$slots:o={},$$scope:l}=t,{centered:a=!1}=t;const u=_t();function f(h){h.key==="Escape"&&(h.preventDefault(),u("cancel"))}function p(h){ut.call(this,e,h)}return e.$$set=h=>{"centered"in h&&n(0,a=h.centered),"$$scope"in h&&n(5,l=h.$$scope)},[a,i,r,s,f,l,o,p]}class et extends Y{constructor(t){super(),J(this,t,rl,il,Z,{centered:0})}}function sl(e){let t,n,i,r,s,o,l,a;var u=e[0];function f(m,d){return{props:{size:m[2],strokeWidth:m[3]}}}u&&(i=Ve(u,f(e)));const p=e[10].default,h=ht(p,e,e[9],null);return{c(){t=L("div"),n=L("div"),i&&U(i.$$.fragment),s=R(),h&&h.c(),c(n,"class",r="icon-wrapper "+e[1]+" svelte-bhj2u4"),c(t,"class","content svelte-bhj2u4"),c(t,"tabindex","0"),c(t,"title",e[5]),X(t,"centered",e[6]),X(t,"horizontal",e[4])},m(m,d){g(m,t,d),A(t,n),i&&O(i,n,null),A(t,s),h&&h.m(t,null),o=!0,l||(a=[te(t,"click",e[7]),te(t,"keyup",e[8])],l=!0)},p(m,[d]){if(d&1&&u!==(u=m[0])){if(i){ue();const b=i;S(b.$$.fragment,1,0,()=>{M(b,1)}),fe()}u?(i=Ve(u,f(m)),U(i.$$.fragment),w(i.$$.fragment,1),O(i,n,null)):i=null}else if(u){const b={};d&4&&(b.size=m[2]),d&8&&(b.strokeWidth=m[3]),i.$set(b)}(!o||d&2&&r!==(r="icon-wrapper "+m[1]+" svelte-bhj2u4"))&&c(n,"class",r),h&&h.p&&(!o||d&512)&&mt(h,p,m,m[9],o?pt(p,m[9],d,null):dt(m[9]),null),(!o||d&32)&&c(t,"title",m[5]),(!o||d&16)&&X(t,"horizontal",m[4])},i(m){o||(i&&w(i.$$.fragment,m),w(h,m),o=!0)},o(m){i&&S(i.$$.fragment,m),S(h,m),o=!1},d(m){m&&_(t),i&&M(i),h&&h.d(m),l=!1,Ee(a)}}}function ol(e,t,n){let{$$slots:i={},$$scope:r}=t,{icon:s=go}=t,{iconClass:o}=t,{size:l="24"}=t,{strokeWidth:a="2"}=t,{horizontal:u=!1}=t,{title:f=""}=t;const p=!u,h=_t();function m(){h("activate")}function d(b){(b.key==="Enter"||b.key===" ")&&h("activate")}return e.$$set=b=>{"icon"in b&&n(0,s=b.icon),"iconClass"in b&&n(1,o=b.iconClass),"size"in b&&n(2,l=b.size),"strokeWidth"in b&&n(3,a=b.strokeWidth),"horizontal"in b&&n(4,u=b.horizontal),"title"in b&&n(5,f=b.title),"$$scope"in b&&n(9,r=b.$$scope)},[s,o,l,a,u,f,p,m,d,r,i]}class de extends Y{constructor(t){super(),J(this,t,ol,sl,Z,{icon:0,iconClass:1,size:2,strokeWidth:3,horizontal:4,title:5})}}function ll(e,t){t&&setTimeout(()=>{e.focus(),e.select()},250)}function qn(e){let t,n;return{c(){t=L("label"),n=$(e[4]),c(t,"for",e[3])},m(i,r){g(i,t,r),A(t,n)},p(i,r){r&16&&z(n,i[4]),r&8&&c(t,"for",i[3])},d(i){i&&_(t)}}}function Zn(e){let t,n,i,r,s;return n=new Ao({}),{c(){t=L("button"),U(n.$$.fragment),c(t,"class","search-icon svelte-8p6spj"),c(t,"tabindex",-1),c(t,"title",e[6]),X(t,"focussed",e[2])},m(o,l){g(o,t,l),O(n,t,null),i=!0,r||(s=te(t,"click",e[14]),r=!0)},p(o,l){(!i||l&64)&&c(t,"title",o[6]),(!i||l&4)&&X(t,"focussed",o[2])},i(o){i||(w(n.$$.fragment,o),i=!0)},o(o){S(n.$$.fragment,o),i=!1},d(o){o&&_(t),M(n),r=!1,s()}}}function Qn(e){let t,n,i,r,s;return n=new lo({}),{c(){t=L("button"),U(n.$$.fragment),c(t,"class","clear-icon svelte-8p6spj"),c(t,"tabindex",-1),c(t,"title",e[7]),X(t,"focussed",e[2])},m(o,l){g(o,t,l),O(n,t,null),i=!0,r||(s=te(t,"click",e[15]),r=!0)},p(o,l){(!i||l&128)&&c(t,"title",o[7]),(!i||l&4)&&X(t,"focussed",o[2])},i(o){i||(w(n.$$.fragment,o),i=!0)},o(o){S(n.$$.fragment,o),i=!1},d(o){o&&_(t),M(n),r=!1,s()}}}function Jn(e){let t;return{c(){t=L("div"),c(t,"class","error-message svelte-8p6spj")},m(n,i){g(n,t,i),t.innerHTML=e[11]},p(n,i){i&2048&&(t.innerHTML=n[11])},d(n){n&&_(t)}}}function al(e){let t,n,i,r,s,o,l,a,u,f,p,h,m=e[4]&&qn(e),d=e[9]&&Zn(e),b=e[9]&&e[0]&&Qn(e),I=!e[9]&&Jn(e);return{c(){t=L("div"),m&&m.c(),n=R(),i=L("div"),d&&d.c(),r=R(),s=L("input"),l=R(),b&&b.c(),a=R(),I&&I.c(),u=ye(),c(s,"type","text"),c(s,"id",e[3]),c(s,"name",e[3]),c(s,"placeholder",e[5]),c(s,"tabindex",e[10]),c(s,"class","svelte-8p6spj"),X(s,"search",e[9]),X(s,"focussed",e[2]),X(s,"value",e[0]),c(i,"class","input-control svelte-8p6spj"),c(t,"class","input svelte-8p6spj")},m(B,E){g(B,t,E),m&&m.m(t,null),A(t,n),A(t,i),d&&d.m(i,null),A(i,r),A(i,s),ze(s,e[0]),e[18](s),A(i,l),b&&b.m(i,null),g(B,a,E),I&&I.m(B,E),g(B,u,E),f=!0,p||(h=[te(s,"input",e[17]),te(s,"focusin",e[12]),te(s,"focusout",e[13]),dn(o=ll.call(null,s,e[8]))],p=!0)},p(B,[E]){B[4]?m?m.p(B,E):(m=qn(B),m.c(),m.m(t,n)):m&&(m.d(1),m=null),B[9]?d?(d.p(B,E),E&512&&w(d,1)):(d=Zn(B),d.c(),w(d,1),d.m(i,r)):d&&(ue(),S(d,1,1,()=>{d=null}),fe()),(!f||E&8)&&c(s,"id",B[3]),(!f||E&8)&&c(s,"name",B[3]),(!f||E&32)&&c(s,"placeholder",B[5]),(!f||E&1024)&&c(s,"tabindex",B[10]),E&1&&s.value!==B[0]&&ze(s,B[0]),o&&Qe(o.update)&&E&256&&o.update.call(null,B[8]),(!f||E&512)&&X(s,"search",B[9]),(!f||E&4)&&X(s,"focussed",B[2]),(!f||E&1)&&X(s,"value",B[0]),B[9]&&B[0]?b?(b.p(B,E),E&513&&w(b,1)):(b=Qn(B),b.c(),w(b,1),b.m(i,null)):b&&(ue(),S(b,1,1,()=>{b=null}),fe()),B[9]?I&&(I.d(1),I=null):I?I.p(B,E):(I=Jn(B),I.c(),I.m(u.parentNode,u))},i(B){f||(w(d),w(b),f=!0)},o(B){S(d),S(b),f=!1},d(B){B&&(_(t),_(a),_(u)),m&&m.d(),d&&d.d(),e[18](null),b&&b.d(),I&&I.d(B),p=!1,Ee(h)}}}function ul(e,t,n){let i;const r=_t();let{name:s="input"}=t,{label:o=""}=t,{value:l=""}=t,{errorMessage:a=""}=t,{placeholder:u=""}=t,{searchButtonTitle:f=""}=t,{clearButtonTitle:p=""}=t,{autofocus:h=!1}=t,{search:m=!1}=t,{tabindex:d=0}=t,{ref:b}=t,{focussed:I=h}=t;function B(){n(2,I=!0)}function E(){n(2,I=!1)}function H(){r("query",l),document.getElementById(s).focus()}function y(){n(0,l=""),document.getElementById(s).focus()}function T(){l=this.value,n(0,l)}function N(k){ve[k?"unshift":"push"](()=>{b=k,n(1,b)})}return e.$$set=k=>{"name"in k&&n(3,s=k.name),"label"in k&&n(4,o=k.label),"value"in k&&n(0,l=k.value),"errorMessage"in k&&n(16,a=k.errorMessage),"placeholder"in k&&n(5,u=k.placeholder),"searchButtonTitle"in k&&n(6,f=k.searchButtonTitle),"clearButtonTitle"in k&&n(7,p=k.clearButtonTitle),"autofocus"in k&&n(8,h=k.autofocus),"search"in k&&n(9,m=k.search),"tabindex"in k&&n(10,d=k.tabindex),"ref"in k&&n(1,b=k.ref),"focussed"in k&&n(2,I=k.focussed)},e.$$.update=()=>{e.$$.dirty&65536&&n(11,i=a||"&nbsp;")},[l,b,I,s,o,u,f,p,h,m,d,i,B,E,H,y,a,T,N]}class Sn extends Y{constructor(t){super(),J(this,t,ul,al,Z,{name:3,label:4,value:0,errorMessage:16,placeholder:5,searchButtonTitle:6,clearButtonTitle:7,autofocus:8,search:9,tabindex:10,ref:1,focussed:2})}}function Ui(e,t){t&&e.focus()}function fl(e){let t;return{c(){t=$(e[0])},m(n,i){g(n,t,i)},p(n,i){i&1&&z(t,n[0])},d(n){n&&_(t)}}}function cl(e){let t;return{c(){t=$(" ")},m(n,i){g(n,t,i)},p:G,d(n){n&&_(t)}}}function hl(e){let t;function n(s,o){return s[1]?cl:fl}let r=n(e)(e);return{c(){t=L("span"),r.c(),c(t,"class","shortcut-button svelte-11t060e"),X(t,"hide",e[1])},m(s,o){g(s,t,o),r.m(t,null)},p(s,[o]){r.p(s,o)},i:G,o:G,d(s){s&&_(t),r.d()}}}function pl(e,t,n){let{shortcut:i=""}=t;const r=i.length===0;return e.$$set=s=>{"shortcut"in s&&n(0,i=s.shortcut)},[i,r]}class xt extends Y{constructor(t){super(),J(this,t,pl,hl,Z,{shortcut:0})}}function Yn(e){let t,n;return t=new xt({props:{shortcut:e[6]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&64&&(s.shortcut=i[6]),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Kn(e){let t,n,i;return n=new po({props:{size:"1.25x"}}),{c(){t=L("div"),U(n.$$.fragment),c(t,"class","edit-icon-wrapper svelte-1ebkg7o")},m(r,s){g(r,t,s),O(n,t,null),i=!0},i(r){i||(w(n.$$.fragment,r),i=!0)},o(r){S(n.$$.fragment,r),i=!1},d(r){r&&_(t),M(n)}}}function ml(e){let t,n,i,r,s,o=e[0].body+"",l,a,u,f,p,h=e[4]&&Yn(e);i=new xt({props:{shortcut:e[0].abbreviation}});let m=!e[4]&&Kn();return{c(){t=L("li"),h&&h.c(),n=R(),U(i.$$.fragment),r=R(),s=L("span"),l=$(o),a=R(),m&&m.c(),c(s,"class","body svelte-1ebkg7o"),c(t,"tabindex",e[1]),c(t,"title",e[7]),c(t,"class","svelte-1ebkg7o"),X(t,"focussed",e[2]),X(t,"active",e[3])},m(d,b){g(d,t,b),h&&h.m(t,null),A(t,n),O(i,t,null),A(t,r),A(t,s),A(s,l),A(t,a),m&&m.m(t,null),e[13](t),u=!0,f||(p=te(t,"click",e[12]),f=!0)},p(d,[b]){d[4]?h?(h.p(d,b),b&16&&w(h,1)):(h=Yn(d),h.c(),w(h,1),h.m(t,n)):h&&(ue(),S(h,1,1,()=>{h=null}),fe());const I={};b&1&&(I.shortcut=d[0].abbreviation),i.$set(I),(!u||b&1)&&o!==(o=d[0].body+"")&&z(l,o),d[4]?m&&(ue(),S(m,1,1,()=>{m=null}),fe()):m?b&16&&w(m,1):(m=Kn(),m.c(),w(m,1),m.m(t,null)),(!u||b&2)&&c(t,"tabindex",d[1]),(!u||b&4)&&X(t,"focussed",d[2]),(!u||b&8)&&X(t,"active",d[3])},i(d){u||(w(h),w(i.$$.fragment,d),w(m),u=!0)},o(d){S(h),S(i.$$.fragment,d),S(m),u=!1},d(d){d&&_(t),h&&h.d(),M(i),m&&m.d(),e[13](null),f=!1,p()}}}function dl(e,t,n){let i;ne(e,Se,E=>n(14,i=E));let{snippet:r}=t,{index:s=-1}=t,{tabindex:o=-1}=t,{focussed:l=!1}=t,{active:a=!1}=t,{selectMode:u=!1}=t,{observer:f=null}=t,p,h=i(u?"use_snippet.title":"edit_snippet.title"),m=s>=0&&s<10?s+1:"";m===10&&(m=0);function d(){return p.classList.contains("is-visible")}function b(E){p.scrollIntoView({behavior:"smooth",block:E})}Je(()=>{f&&f.observe(p)}),_n(()=>{f&&f.unobserve(p)});function I(E){ut.call(this,e,E)}function B(E){ve[E?"unshift":"push"](()=>{p=E,n(5,p)})}return e.$$set=E=>{"snippet"in E&&n(0,r=E.snippet),"index"in E&&n(8,s=E.index),"tabindex"in E&&n(1,o=E.tabindex),"focussed"in E&&n(2,l=E.focussed),"active"in E&&n(3,a=E.active),"selectMode"in E&&n(4,u=E.selectMode),"observer"in E&&n(9,f=E.observer)},[r,o,l,a,u,p,m,h,s,f,d,b,I,B]}class _l extends Y{constructor(t){super(),J(this,t,dl,ml,Z,{snippet:0,index:8,tabindex:1,focussed:2,active:3,selectMode:4,observer:9,isVisible:10,scrollIntoView:11})}get isVisible(){return this.$$.ctx[10]}get scrollIntoView(){return this.$$.ctx[11]}}function ei(e,t,n){const i=e.slice();return i[22]=t[n],i[23]=t,i[24]=n,i}function ti(e){let t,n=e[24],i;const r=()=>e[14](t,n),s=()=>e[14](null,n);function o(){return e[15](e[24])}let l={snippet:e[22],index:e[24],focussed:e[24]===e[4],active:e[5],observer:e[8],selectMode:e[2]};return t=new _l({props:l}),r(),t.$on("click",o),{c(){U(t.$$.fragment)},m(a,u){O(t,a,u),i=!0},p(a,u){e=a,n!==e[24]&&(s(),n=e[24],r());const f={};u&128&&(f.snippet=e[22]),u&16&&(f.focussed=e[24]===e[4]),u&32&&(f.active=e[5]),u&4&&(f.selectMode=e[2]),t.$set(f)},i(a){i||(w(t.$$.fragment,a),i=!0)},o(a){S(t.$$.fragment,a),i=!1},d(a){s(),M(t,a)}}}function gl(e){let t,n,i,r,s,o=On(e[7]),l=[];for(let u=0;u<o.length;u+=1)l[u]=ti(ei(e,o,u));const a=u=>S(l[u],1,1,()=>{l[u]=null});return{c(){t=L("ul");for(let u=0;u<l.length;u+=1)l[u].c();c(t,"tabindex",e[1]),c(t,"class","svelte-1wnqbvs")},m(u,f){g(u,t,f);for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(t,null);e[16](t),i=!0,r||(s=[te(t,"focus",e[9]),te(t,"blur",e[10]),te(t,"keydown",e[12]),dn(n=Ui.call(null,t,e[3]))],r=!0)},p(u,[f]){if(f&2548){o=On(u[7]);let p;for(p=0;p<o.length;p+=1){const h=ei(u,o,p);l[p]?(l[p].p(h,f),w(l[p],1)):(l[p]=ti(h),l[p].c(),w(l[p],1),l[p].m(t,null))}for(ue(),p=o.length;p<l.length;p+=1)a(p);fe()}(!i||f&2)&&c(t,"tabindex",u[1]),n&&Qe(n.update)&&f&8&&n.update.call(null,u[3])},i(u){if(!i){for(let f=0;f<o.length;f+=1)w(l[f]);i=!0}},o(u){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)S(l[f]);i=!1},d(u){u&&_(t),Xi(l,u),e[16](null),r=!1,Ee(s)}}}function bl(e,t,n){let i;const r=_t();let{snippets:s=null}=t,{tabindex:o=0}=t,{selectMode:l=!1}=t,{autofocus:a=!1}=t,{ref:u}=t,f=0,p=a,h=[];const m=new IntersectionObserver(function(v){for(let P=0;P<v.length;P++)v[P].isIntersecting?v[P].target.classList.add("is-visible"):v[P].target.classList.remove("is-visible")},{root:u,threshold:[.6]});function d(v){return n(4,f=0),v}function b(){n(5,p=!0)}function I(){n(5,p=!1)}function B(v){l?y(i[v]):T(i[v])}function E(v){!s||s.length===0||H(v)&&v.preventDefault()}function H(v){if(v.key==="Home"||v.key==="g")return n(4,f=0),h[f].scrollIntoView("nearest"),!0;if(v.key==="End"||v.key==="G")return n(4,f=s.length-1),h[f].scrollIntoView("nearest"),!0;if(f<s.length-1&&(v.key==="ArrowDown"||v.key==="j"))return n(4,f++,f),h[f].scrollIntoView("nearest"),!0;if(f>0&&(v.key==="ArrowUp"||v.key==="k"))return n(4,f--,f),h[f].scrollIntoView("nearest"),!0;if(v.key==="PageDown"||v.key==="d"){let P=-1,C=-1;for(let ae=0;ae<h.length;ae++)if(h[ae].isVisible())C=ae,P<0&&(P=ae);else if(C>=0)break;const le=h.length-1,re=C-P;return C+re>le?n(4,f=le):n(4,f=C),h[f].scrollIntoView("start"),!0}if(v.key==="PageUp"||v.key==="u"){let P=-1,C=-1;for(let re=0;re<h.length;re++){const ae=h[re];if(ae.isVisible()&&P<0)P=re,C=re;else if(ae.isVisible())C=re;else if(P>=0)break}const le=C-P;return P-le<=0?n(4,f=0):n(4,f=P),h[f].scrollIntoView("end"),!0}if(l&&f>=0&&f<s.length&&v.key==="Enter")return y(i[f]),!0;if(l&&["1","2","3","4","5","6","7","8","9","0"].includes(v.key)){let P=v.key-1;return P===-1&&(P=9),P+1>i.length?!1:(y(i[P]),!0)}return!l&&f>=0&&f<s.length&&(v.key==="ArrowRight"||v.key==="Enter")?(T(i[f]),!0):!1}function y(v){r("itemActivated",{snippet:v})}function T(v){r("itemEdit",{snippet:v})}ai(()=>{h.length!==i.length&&n(6,h.length=i.length,h)});function N(v,P){ve[v?"unshift":"push"](()=>{h[P]=v,n(6,h)})}const k=v=>B(v);function x(v){ve[v?"unshift":"push"](()=>{u=v,n(0,u)})}return e.$$set=v=>{"snippets"in v&&n(13,s=v.snippets),"tabindex"in v&&n(1,o=v.tabindex),"selectMode"in v&&n(2,l=v.selectMode),"autofocus"in v&&n(3,a=v.autofocus),"ref"in v&&n(0,u=v.ref)},e.$$.update=()=>{e.$$.dirty&8192&&n(7,i=d(s))},[u,o,l,a,f,p,h,i,m,b,I,B,E,s,N,k,x]}class vl extends Y{constructor(t){super(),J(this,t,bl,gl,Z,{snippets:13,tabindex:1,selectMode:2,autofocus:3,ref:0})}}function wl(e){let t,n;const i=e[2].default,r=ht(i,e,e[1],null);return{c(){t=L("div"),r&&r.c(),c(t,"class","toolbar svelte-i867mn"),X(t,"bottom",e[0])},m(s,o){g(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&2)&&mt(r,i,s,s[1],n?pt(i,s[1],o,null):dt(s[1]),null),(!n||o&1)&&X(t,"bottom",s[0])},i(s){n||(w(r,s),n=!0)},o(s){S(r,s),n=!1},d(s){s&&_(t),r&&r.d(s)}}}function El(e,t,n){let{$$slots:i={},$$scope:r}=t,{bottom:s=!1}=t;return e.$$set=o=>{"bottom"in o&&n(0,s=o.bottom),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class Rt extends Y{constructor(t){super(),J(this,t,El,wl,Z,{bottom:0})}}function yl(e){let t;return{c(){t=L("div"),c(t,"class","toolbar-spacer svelte-1a67v9")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}class kn extends Y{constructor(t){super(),J(this,t,null,yl,Z,{})}}function Sl(e){let t,n,i=e[6]("no_snippets_found.title")+"",r,s,o,l=e[6]("no_snippets_found.description")+"",a;return{c(){t=L("div"),n=L("p"),r=$(i),s=R(),o=L("p"),a=$(l),c(n,"class","no-snippets-found svelte-y4605t"),c(o,"class","no-snippets-found description dimmed svelte-y4605t"),c(t,"class","centered")},m(u,f){g(u,t,f),A(t,n),A(n,r),A(t,s),A(t,o),A(o,a)},p(u,f){f&64&&i!==(i=u[6]("no_snippets_found.title")+"")&&z(r,i),f&64&&l!==(l=u[6]("no_snippets_found.description")+"")&&z(a,l)},i:G,o:G,d(u){u&&_(t)}}}function kl(e){let t,n,i;function r(o){e[21](o)}let s={snippets:e[7],tabindex:2,selectMode:e[0],autofocus:e[8]};return e[4]!==void 0&&(s.ref=e[4]),t=new vl({props:s}),ve.push(()=>$e(t,"ref",r)),t.$on("itemActivated",e[12]),t.$on("itemEdit",e[13]),{c(){U(t.$$.fragment)},m(o,l){O(t,o,l),i=!0},p(o,l){const a={};l&128&&(a.snippets=o[7]),l&1&&(a.selectMode=o[0]),!n&&l&16&&(n=!0,a.ref=o[4],Ge(()=>n=!1)),t.$set(a)},i(o){i||(w(t.$$.fragment,o),i=!0)},o(o){S(t.$$.fragment,o),i=!1},d(o){M(t,o)}}}function ni(e){let t,n;return t=new Rt({props:{bottom:!0,$$slots:{default:[Al]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&16777280&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Al(e){let t,n,i,r,s,o;return t=new de({props:{iconClass:"dimmed",icon:Ot,size:"2.3x",title:e[6]("add_snippet.title")}}),t.$on("activate",e[10]),i=new kn({}),s=new de({props:{iconClass:"dimmed",icon:Ri,size:"2x",title:e[6]("settings.title")}}),s.$on("activate",e[11]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a&64&&(u.title=l[6]("add_snippet.title")),t.$set(u);const f={};a&64&&(f.title=l[6]("settings.title")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function Bl(e){let t,n,i,r,s,o,l,a,u,f,p;function h(y){e[18](y)}function m(y){e[19](y)}function d(y){e[20](y)}let b={search:!0,autofocus:e[1],placeholder:e[6]("search"),searchButtonTitle:e[6]("search"),clearButtonTitle:e[6]("clear"),tabindex:1};e[2]!==void 0&&(b.value=e[2]),e[3]!==void 0&&(b.ref=e[3]),e[5]!==void 0&&(b.focussed=e[5]),n=new Sn({props:b}),ve.push(()=>$e(n,"value",h)),ve.push(()=>$e(n,"ref",m)),ve.push(()=>$e(n,"focussed",d)),n.$on("query",e[9]);const I=[kl,Sl],B=[];function E(y,T){return y[7]?0:1}l=E(e),a=B[l]=I[l](e);let H=!e[0]&&ni(e);return{c(){t=L("div"),U(n.$$.fragment),o=R(),a.c(),u=R(),H&&H.c(),f=ye(),c(t,"class","toolbar top")},m(y,T){g(y,t,T),O(n,t,null),g(y,o,T),B[l].m(y,T),g(y,u,T),H&&H.m(y,T),g(y,f,T),p=!0},p(y,T){const N={};T&2&&(N.autofocus=y[1]),T&64&&(N.placeholder=y[6]("search")),T&64&&(N.searchButtonTitle=y[6]("search")),T&64&&(N.clearButtonTitle=y[6]("clear")),!i&&T&4&&(i=!0,N.value=y[2],Ge(()=>i=!1)),!r&&T&8&&(r=!0,N.ref=y[3],Ge(()=>r=!1)),!s&&T&32&&(s=!0,N.focussed=y[5],Ge(()=>s=!1)),n.$set(N);let k=l;l=E(y),l===k?B[l].p(y,T):(ue(),S(B[k],1,1,()=>{B[k]=null}),fe(),a=B[l],a?a.p(y,T):(a=B[l]=I[l](y),a.c()),w(a,1),a.m(u.parentNode,u)),y[0]?H&&(ue(),S(H,1,1,()=>{H=null}),fe()):H?(H.p(y,T),T&1&&w(H,1)):(H=ni(y),H.c(),w(H,1),H.m(f.parentNode,f))},i(y){p||(w(n.$$.fragment,y),w(a),w(H),p=!0)},o(y){S(n.$$.fragment,y),S(a),S(H),p=!1},d(y){y&&(_(t),_(o),_(u),_(f)),M(n),B[l].d(y),H&&H.d(y)}}}function Tl(e){let t,n;return t=new et({props:{$$slots:{default:[Bl]},$$scope:{ctx:e}}}),t.$on("keyup",e[14]),t.$on("cancel",e[15]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&16777471&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Il(e,t,n){let i,r,s,o;ne(e,we,C=>n(17,i=C)),ne(e,Jt,C=>n(2,r=C)),ne(e,Se,C=>n(6,s=C)),ne(e,Yt,C=>n(7,o=C));let{orderByLastUsed:l=!1}=t,{selectMode:a=!1}=t,{focusSearchBox:u=!0}=t;const f=!u;let p,h,m=u;function d(C){Wi(Jt,r=C.detail,r),Yt.search(r,l)}function b(){je("/snippet/add")}function I(){je("/settings")}function B(C){mr(C.detail.snippet.abbreviation,500)}function E(C){const le=C.detail.snippet.id;je("/snippet/edit/"+le)}function H(C,le,re){Yt.search(C,le)}function y(){m?h.focus():p.focus()}function T(C){C.ctrlKey&&C.key==="n"&&(b(),C.preventDefault()),C.ctrlKey&&C.altKey&&C.key==="s"&&(I(),C.preventDefault()),C.ctrlKey&&C.key==="f"&&(y(),C.preventDefault())}function N(){a&&er()}function k(C){r=C,Jt.set(r)}function x(C){p=C,n(3,p)}function v(C){m=C,n(5,m)}function P(C){h=C,n(4,h)}return e.$$set=C=>{"orderByLastUsed"in C&&n(16,l=C.orderByLastUsed),"selectMode"in C&&n(0,a=C.selectMode),"focusSearchBox"in C&&n(1,u=C.focusSearchBox)},e.$$.update=()=>{e.$$.dirty&196612&&H(r,l)},[a,u,r,p,h,m,s,o,f,d,b,I,B,E,T,N,l,i,k,x,v,P]}class Hl extends Y{constructor(t){super(),J(this,t,Il,Tl,Z,{orderByLastUsed:16,selectMode:0,focusSearchBox:1})}}function ii(e){let t,n,i,r,s,o,l,a;return n=new de({props:{iconClass:"dimmed",icon:Ot,title:e[0]("add_snippet.title"),size:"5x",$$slots:{default:[Cl]},$$scope:{ctx:e}}}),n.$on("activate",e[2]),s=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,title:e[0]("import_snippets.title"),size:"1.5x",$$slots:{default:[Ll]},$$scope:{ctx:e}}}),s.$on("activate",e[4]),l=new Rt({props:{bottom:!0,$$slots:{default:[Nl]},$$scope:{ctx:e}}}),{c(){t=L("p"),U(n.$$.fragment),i=R(),r=L("p"),U(s.$$.fragment),o=R(),U(l.$$.fragment),c(t,"class","add-snippet"),c(r,"class","import-snippets")},m(u,f){g(u,t,f),O(n,t,null),g(u,i,f),g(u,r,f),O(s,r,null),g(u,o,f),O(l,u,f),a=!0},p(u,f){const p={};f&1&&(p.title=u[0]("add_snippet.title")),f&33&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const h={};f&1&&(h.title=u[0]("import_snippets.title")),f&33&&(h.$$scope={dirty:f,ctx:u}),s.$set(h);const m={};f&33&&(m.$$scope={dirty:f,ctx:u}),l.$set(m)},i(u){a||(w(n.$$.fragment,u),w(s.$$.fragment,u),w(l.$$.fragment,u),a=!0)},o(u){S(n.$$.fragment,u),S(s.$$.fragment,u),S(l.$$.fragment,u),a=!1},d(u){u&&(_(t),_(i),_(r),_(o)),M(n),M(s),M(l,u)}}}function Cl(e){let t=e[0]("add_snippet.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("add_snippet.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function Ll(e){let t=e[0]("import_snippets.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("import_snippets.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function Nl(e){let t,n,i,r,s,o;return t=new de({props:{iconClass:"dimmed",icon:Ot,size:"2.3x",title:e[0]("add_snippet.title")}}),t.$on("activate",e[2]),i=new kn({}),s=new de({props:{iconClass:"dimmed",icon:Ri,size:"2x",title:e[0]("settings.title")}}),s.$on("activate",e[3]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a&1&&(u.title=l[0]("add_snippet.title")),t.$set(u);const f={};a&1&&(f.title=l[0]("settings.title")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function Pl(e){let t,n,i,r=e[0]("no_snippets_found.title")+"",s,o,l,a,u=e[1]&&ii(e);return{c(){t=L("h1"),t.textContent="Snippet Expander",n=R(),i=L("p"),s=$(r),o=R(),u&&u.c(),l=ye(),c(i,"class","dimmed")},m(f,p){g(f,t,p),g(f,n,p),g(f,i,p),A(i,s),g(f,o,p),u&&u.m(f,p),g(f,l,p),a=!0},p(f,p){(!a||p&1)&&r!==(r=f[0]("no_snippets_found.title")+"")&&z(s,r),f[1]?u?(u.p(f,p),p&2&&w(u,1)):(u=ii(f),u.c(),w(u,1),u.m(l.parentNode,l)):u&&(ue(),S(u,1,1,()=>{u=null}),fe())},i(f){a||(w(u),a=!0)},o(f){S(u),a=!1},d(f){f&&(_(t),_(n),_(i),_(o),_(l)),u&&u.d(f)}}}function Ol(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[Pl]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&35&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ml(e,t,n){let i,r;ne(e,Se,a=>n(0,i=a)),ne(e,we,a=>n(1,r=a));function s(){je("/snippet/add")}function o(){je("/settings")}async function l(){try{const a=await mi(!1)}catch(a){await oe(i("import_snippets.error_title"),a)}await Me.fetch()}return[i,r,s,o,l]}class xl extends Y{constructor(t){super(),J(this,t,Ml,Ol,Z,{})}}function Rl(e){let t,n;return t=new xl({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p:G,i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ul(e){let t,n;return t=new Hl({props:{selectMode:e[2],orderByLastUsed:e[3],focusSearchBox:e[4]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.selectMode=i[2]),r&8&&(s.orderByLastUsed=i[3]),r&16&&(s.focusSearchBox=i[4]),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Dl(e){let t;return{c(){t=$("Checking settings ...")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}function Gl(e){let t,n,i,r;const s=[Dl,Ul,Rl],o=[];function l(a,u){return a[1]?0:a[0]&&(a[5]&&a[5].length>0||a[2])?1:2}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function $l(e,t,n){let i,r,s;ne(e,Se,p=>n(6,i=p)),ne(e,we,p=>n(0,r=p)),ne(e,Me,p=>n(5,s=p));let o=!0,l=!1,a=!1,u=!0;function f(p){Me.fetch()}return Je(async()=>{if(n(2,l=await vr()),n(3,a=l),l&&r)try{const p=await hi("FOCUS_SEARCH_BOX");n(4,u=p!=="false")}catch(p){await oe(i("settings.get_error_title"),p)}n(1,o=!1)}),e.$$.update=()=>{e.$$.dirty&1&&f()},[r,o,l,a,u,s]}class jl extends Y{constructor(t){super(),J(this,t,$l,Gl,Z,{})}}function Fl(e){let t=e[4]("button.cancel")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.cancel")+"")&&z(n,t)},d(i){i&&_(n)}}}function zl(e){let t=e[4]("button.save")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.save")+"")&&z(n,t)},d(i){i&&_(n)}}}function Vl(e){let t,n=e[4]("add_snippet.title")+"",i,r,s,o,l,a,u=e[4]("body.title")+"",f,p,h,m,d,b,I,B,E,H,y;function T(k){e[8](k)}let N={label:e[4]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(N.value=e[0]),s=new Sn({props:N}),ve.push(()=>$e(s,"value",T)),b=new Fe({props:{secondary:!0,$$slots:{default:[Fl]},$$scope:{ctx:e}}}),b.$on("click",e[5]),B=new Fe({props:{primary:!0,disabled:e[3],$$slots:{default:[zl]},$$scope:{ctx:e}}}),B.$on("click",e[6]),{c(){t=L("h2"),i=$(n),r=R(),U(s.$$.fragment),l=R(),a=L("label"),f=$(u),p=R(),h=L("textarea"),m=R(),d=L("div"),U(b.$$.fragment),I=R(),U(B.$$.fragment),c(t,"class","svelte-126nfs4"),c(a,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(d,"class","button-row svelte-126nfs4")},m(k,x){g(k,t,x),A(t,i),g(k,r,x),O(s,k,x),g(k,l,x),g(k,a,x),A(a,f),g(k,p,x),g(k,h,x),ze(h,e[2]),g(k,m,x),g(k,d,x),O(b,d,null),A(d,I),O(B,d,null),E=!0,H||(y=te(h,"input",e[9]),H=!0)},p(k,x){(!E||x&16)&&n!==(n=k[4]("add_snippet.title")+"")&&z(i,n);const v={};x&16&&(v.label=k[4]("abbreviation.title")),x&2&&(v.errorMessage=k[1]),!o&&x&1&&(o=!0,v.value=k[0],Ge(()=>o=!1)),s.$set(v),(!E||x&16)&&u!==(u=k[4]("body.title")+"")&&z(f,u),x&4&&ze(h,k[2]);const P={};x&2064&&(P.$$scope={dirty:x,ctx:k}),b.$set(P);const C={};x&8&&(C.disabled=k[3]),x&2064&&(C.$$scope={dirty:x,ctx:k}),B.$set(C)},i(k){E||(w(s.$$.fragment,k),w(b.$$.fragment,k),w(B.$$.fragment,k),E=!0)},o(k){S(s.$$.fragment,k),S(b.$$.fragment,k),S(B.$$.fragment,k),E=!1},d(k){k&&(_(t),_(r),_(l),_(a),_(p),_(h),_(m),_(d)),M(s,k),M(b),M(B),H=!1,y()}}}function Wl(e){let t,n;return t=new et({props:{$$slots:{default:[Vl]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&2079&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Xl(e,t,n){let i,r,s;ne(e,Se,d=>n(4,r=d)),ne(e,we,d=>n(7,s=d));let o="",l="";async function a(d){if(d.length===0){n(1,u=r("abbreviation.empty"));return}if(!s){n(1,u="");return}try{const b=await pi(d);if(b.hasOwnProperty("abbreviation")&&b.abbreviation.length>0){n(1,u=r("abbreviation.exists"));return}}catch(b){await oe(r("add_snippet.error_title"),b)}n(1,u="")}let u="";function f(){Be()}async function p(){try{const d=await tr(o,l);await Be()}catch(d){await oe(r("add_snippet.error_title"),d)}}function h(d){o=d,n(0,o)}function m(){l=this.value,n(2,l)}return e.$$.update=()=>{e.$$.dirty&1&&a(o),e.$$.dirty&130&&n(3,i=!s||u.length>0)},[o,u,l,i,r,f,p,s,h,m]}class ql extends Y{constructor(t){super(),J(this,t,Xl,Wl,Z,{})}}function Zl(e){let t=e[5]("button.remove")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.remove")+"")&&z(n,t)},d(i){i&&_(n)}}}function Ql(e){let t=e[5]("button.cancel")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.cancel")+"")&&z(n,t)},d(i){i&&_(n)}}}function Jl(e){let t=e[5]("button.save")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.save")+"")&&z(n,t)},d(i){i&&_(n)}}}function Yl(e){let t,n=e[5]("edit_snippet.title")+"",i,r,s,o,l,a,u=e[5]("body.title")+"",f,p,h,m,d,b,I,B,E,H,y,T,N;function k(v){e[11](v)}let x={label:e[5]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(x.value=e[0]),s=new Sn({props:x}),ve.push(()=>$e(s,"value",k)),b=new Fe({props:{danger:!0,disabled:e[3],$$slots:{default:[Zl]},$$scope:{ctx:e}}}),b.$on("click",e[7]),B=new Fe({props:{secondary:!0,$$slots:{default:[Ql]},$$scope:{ctx:e}}}),B.$on("click",e[6]),H=new Fe({props:{primary:!0,disabled:e[4],$$slots:{default:[Jl]},$$scope:{ctx:e}}}),H.$on("click",e[8]),{c(){t=L("h2"),i=$(n),r=R(),U(s.$$.fragment),l=R(),a=L("label"),f=$(u),p=R(),h=L("textarea"),m=R(),d=L("div"),U(b.$$.fragment),I=R(),U(B.$$.fragment),E=R(),U(H.$$.fragment),c(t,"class","svelte-126nfs4"),c(a,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(d,"class","button-row svelte-126nfs4")},m(v,P){g(v,t,P),A(t,i),g(v,r,P),O(s,v,P),g(v,l,P),g(v,a,P),A(a,f),g(v,p,P),g(v,h,P),ze(h,e[2]),g(v,m,P),g(v,d,P),O(b,d,null),A(d,I),O(B,d,null),A(d,E),O(H,d,null),y=!0,T||(N=te(h,"input",e[12]),T=!0)},p(v,P){(!y||P&32)&&n!==(n=v[5]("edit_snippet.title")+"")&&z(i,n);const C={};P&32&&(C.label=v[5]("abbreviation.title")),P&2&&(C.errorMessage=v[1]),!o&&P&1&&(o=!0,C.value=v[0],Ge(()=>o=!1)),s.$set(C),(!y||P&32)&&u!==(u=v[5]("body.title")+"")&&z(f,u),P&4&&ze(h,v[2]);const le={};P&8&&(le.disabled=v[3]),P&32800&&(le.$$scope={dirty:P,ctx:v}),b.$set(le);const re={};P&32800&&(re.$$scope={dirty:P,ctx:v}),B.$set(re);const ae={};P&16&&(ae.disabled=v[4]),P&32800&&(ae.$$scope={dirty:P,ctx:v}),H.$set(ae)},i(v){y||(w(s.$$.fragment,v),w(b.$$.fragment,v),w(B.$$.fragment,v),w(H.$$.fragment,v),y=!0)},o(v){S(s.$$.fragment,v),S(b.$$.fragment,v),S(B.$$.fragment,v),S(H.$$.fragment,v),y=!1},d(v){v&&(_(t),_(r),_(l),_(a),_(p),_(h),_(m),_(d)),M(s,v),M(b),M(B),M(H),T=!1,N()}}}function Kl(e){let t,n;return t=new et({props:{$$slots:{default:[Yl]},$$scope:{ctx:e}}}),t.$on("cancel",e[6]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&32831&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function ea(e,t,n){let i,r,s,o;ne(e,Se,E=>n(5,s=E)),ne(e,we,E=>n(10,o=E));let{params:l={}}=t,a={},u="",f="";async function p(E){if(n(1,h=""),!!a.hasOwnProperty("id")){if(E.length===0){n(1,h=s("abbreviation.empty"));return}if(o)try{const H=await pi(E);H.hasOwnProperty("abbreviation")&&H.abbreviation.length>0&&H.id!==a.id&&n(1,h=s("abbreviation.exists"))}catch(H){await oe(s("edit_snippet.error_title"),H)}}}let h="";function m(){Be()}async function d(){try{await _r(a.abbreviation),await Be()}catch(E){await oe(s("remove_snippet.error_title"),E)}}async function b(){let E={...a};E.abbreviation=u,E.body=f;try{await Sr(a.id,E),await Be()}catch(H){await oe(s("edit_snippet.error_title"),H)}}Je(async()=>{l.hasOwnProperty("id")||(await oe(s("edit_snippet.error_title"),s("edit_snippet.id_not_supplied")),await Be());try{a=await fr(l.id)}catch(H){await oe(s("edit_snippet.error_title"),H),await Be()}let E=!1;try{E=await pr(a.id)}catch(H){await oe(s("edit_snippet.error_title"),H),await Be()}E&&(await oe(s("edit_snippet.error_title"),s("edit_snippet.snippet_not_found")),await Be()),n(0,u=a.abbreviation),n(2,f=a.body)});function I(E){u=E,n(0,u)}function B(){f=this.value,n(2,f)}return e.$$set=E=>{"params"in E&&n(9,l=E.params)},e.$$.update=()=>{e.$$.dirty&1&&p(u),e.$$.dirty&1026&&n(4,i=!o||h.length>0),e.$$.dirty&1024&&n(3,r=!o)},[u,h,f,r,i,s,m,d,b,l,o,I,B]}class ta extends Y{constructor(t){super(),J(this,t,ea,Kl,Z,{params:9})}}function na(e){let t,n,i,r,s,o;return t=new de({props:{horizontal:!0,iconClass:"dimmed",icon:xi,size:"2.5x",title:e[6]("button.back")}}),t.$on("activate",e[8]),i=new kn({}),s=new de({props:{horizontal:!0,iconClass:"dimmed",icon:wo,size:"2.5x",title:e[6]("button.about")}}),s.$on("activate",e[9]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a[0]&64&&(u.title=l[6]("button.back")),t.$set(u);const f={};a[0]&64&&(f.title=l[6]("button.about")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function ia(e){let t,n=e[6]("settings.custom_shortcuts_disabled")+"",i;return{c(){t=L("p"),i=$(n),c(t,"class","dimmed svelte-1fggvh7")},m(r,s){g(r,t,s),A(t,i)},p(r,s){s[0]&64&&n!==(n=r[6]("settings.custom_shortcuts_disabled")+"")&&z(i,n)},i:G,o:G,d(r){r&&_(t)}}}function ra(e){let t,n,i,r;const s=[oa,sa],o=[];function l(a,u){return a[5].length>0?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,u){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function sa(e){let t,n=e[6]("settings.custom_shortcut")+"",i,r,s,o,l,a;return s=new xt({props:{shortcut:e[6]("settings.custom_shortcut_empty")}}),l=new de({props:{horizontal:!0,iconClass:"dimmed",icon:Ot,size:"2.0x",title:e[6]("settings.add_default_custom_shortcut")}}),l.$on("activate",e[22]),{c(){t=L("p"),i=$(n),r=$(": "),U(s.$$.fragment),o=R(),U(l.$$.fragment),c(t,"class","row svelte-1fggvh7")},m(u,f){g(u,t,f),A(t,i),A(t,r),O(s,t,null),A(t,o),O(l,t,null),a=!0},p(u,f){(!a||f[0]&64)&&n!==(n=u[6]("settings.custom_shortcut")+"")&&z(i,n);const p={};f[0]&64&&(p.shortcut=u[6]("settings.custom_shortcut_empty")),s.$set(p);const h={};f[0]&64&&(h.title=u[6]("settings.add_default_custom_shortcut")),l.$set(h)},i(u){a||(w(s.$$.fragment,u),w(l.$$.fragment,u),a=!0)},o(u){S(s.$$.fragment,u),S(l.$$.fragment,u),a=!1},d(u){u&&_(t),M(s),M(l)}}}function oa(e){let t,n=e[6]("settings.custom_shortcut")+"",i,r,s,o,l,a,u,f=e[6]("settings.change_custom_shortcut_desc")+"",p,h;return s=new xt({props:{shortcut:e[5]}}),l=new de({props:{horizontal:!0,iconClass:"dimmed",icon:Co,size:"1.75x",title:e[6]("settings.remove_custom_shortcut")}}),l.$on("activate",e[21]),{c(){t=L("p"),i=$(n),r=$(": "),U(s.$$.fragment),o=R(),U(l.$$.fragment),a=R(),u=L("p"),p=$(f),c(t,"class","row svelte-1fggvh7"),c(u,"class","dimmed svelte-1fggvh7")},m(m,d){g(m,t,d),A(t,i),A(t,r),O(s,t,null),A(t,o),O(l,t,null),g(m,a,d),g(m,u,d),A(u,p),h=!0},p(m,d){(!h||d[0]&64)&&n!==(n=m[6]("settings.custom_shortcut")+"")&&z(i,n);const b={};d[0]&32&&(b.shortcut=m[5]),s.$set(b);const I={};d[0]&64&&(I.title=m[6]("settings.remove_custom_shortcut")),l.$set(I),(!h||d[0]&64)&&f!==(f=m[6]("settings.change_custom_shortcut_desc")+"")&&z(p,f)},i(m){h||(w(s.$$.fragment,m),w(l.$$.fragment,m),h=!0)},o(m){S(s.$$.fragment,m),S(l.$$.fragment,m),h=!1},d(m){m&&(_(t),_(a),_(u)),M(s),M(l)}}}function la(e){let t=e[6]("settings.no_connection")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("settings.no_connection")+"")&&z(n,t)},i:G,o:G,d(i){i&&_(n)}}}function aa(e){let t,n=e[6]("settings.import_export_title")+"",i,r,s,o,l,a,u,f,p;o=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,size:"1.5x",title:e[6]("import_snippets.new_only_title"),$$slots:{default:[ua]},$$scope:{ctx:e}}}),o.$on("activate",e[25]),a=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,size:"1.5x",title:e[6]("import_snippets.update_title"),$$slots:{default:[fa]},$$scope:{ctx:e}}}),a.$on("activate",e[26]);let h=e[7]&&e[7].length>0&&ri(e);return{c(){t=L("h3"),i=$(n),r=R(),s=L("p"),U(o.$$.fragment),l=R(),U(a.$$.fragment),u=R(),h&&h.c(),f=ye(),c(t,"class","svelte-1fggvh7"),c(s,"class","import-snippets svelte-1fggvh7")},m(m,d){g(m,t,d),A(t,i),g(m,r,d),g(m,s,d),O(o,s,null),A(s,l),O(a,s,null),g(m,u,d),h&&h.m(m,d),g(m,f,d),p=!0},p(m,d){(!p||d[0]&64)&&n!==(n=m[6]("settings.import_export_title")+"")&&z(i,n);const b={};d[0]&64&&(b.title=m[6]("import_snippets.new_only_title")),d[0]&64|d[1]&4&&(b.$$scope={dirty:d,ctx:m}),o.$set(b);const I={};d[0]&64&&(I.title=m[6]("import_snippets.update_title")),d[0]&64|d[1]&4&&(I.$$scope={dirty:d,ctx:m}),a.$set(I),m[7]&&m[7].length>0?h?(h.p(m,d),d[0]&128&&w(h,1)):(h=ri(m),h.c(),w(h,1),h.m(f.parentNode,f)):h&&(ue(),S(h,1,1,()=>{h=null}),fe())},i(m){p||(w(o.$$.fragment,m),w(a.$$.fragment,m),w(h),p=!0)},o(m){S(o.$$.fragment,m),S(a.$$.fragment,m),S(h),p=!1},d(m){m&&(_(t),_(r),_(s),_(u),_(f)),M(o),M(a),h&&h.d(m)}}}function ua(e){let t=e[6]("import_snippets.new_only_title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("import_snippets.new_only_title")+"")&&z(n,t)},d(i){i&&_(n)}}}function fa(e){let t=e[6]("import_snippets.update_title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("import_snippets.update_title")+"")&&z(n,t)},d(i){i&&_(n)}}}function ri(e){let t,n,i;return n=new de({props:{horizontal:!0,iconClass:"dimmed",icon:fo,size:"1.5x",title:e[6]("export_snippets.title"),$$slots:{default:[ca]},$$scope:{ctx:e}}}),n.$on("activate",e[16]),{c(){t=L("p"),U(n.$$.fragment),c(t,"class","export-snippets svelte-1fggvh7")},m(r,s){g(r,t,s),O(n,t,null),i=!0},p(r,s){const o={};s[0]&64&&(o.title=r[6]("export_snippets.title")),s[0]&64|s[1]&4&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){i||(w(n.$$.fragment,r),i=!0)},o(r){S(n.$$.fragment,r),i=!1},d(r){r&&_(t),M(n)}}}function ca(e){let t=e[6]("export_snippets.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("export_snippets.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function ha(e){let t,n,i,r=e[6]("settings.title")+"",s,o,l,a=e[6]("settings.autostart_title")+"",u,f,p,h,m,d,b=e[6]("settings.autostart")+"",I,B,E,H=e[6]("settings.autoexpand_title")+"",y,T,N,k,x,v,P=e[6]("settings.autoexpand")+"",C,le,re,ae=e[6]("settings.search_and_paste_title")+"",_e,ge,ce,pe,he,j,ie,F,K,Pe=e[6]("settings.focus_search")+"",Ut,Dt,be,ke,tt,Ae,Gt,An;t=new Rt({props:{$$slots:{default:[na]},$$scope:{ctx:e}}});const Bn=[ra,ia],Ie=[];function Tn(D,W){return D[4]?0:1}ce=Tn(e),pe=Ie[ce]=Bn[ce](e);const In=[aa,la],He=[];function Hn(D,W){return D[0]?0:1}return be=Hn(e),ke=He[be]=In[be](e),{c(){U(t.$$.fragment),n=R(),i=L("h2"),s=$(r),o=R(),l=L("h3"),u=$(a),f=R(),p=L("p"),h=L("label"),m=L("input"),d=R(),I=$(b),B=R(),E=L("h3"),y=$(H),T=R(),N=L("p"),k=L("label"),x=L("input"),v=R(),C=$(P),le=R(),re=L("h3"),_e=$(ae),ge=R(),pe.c(),he=R(),j=L("p"),ie=L("label"),F=L("input"),K=R(),Ut=$(Pe),Dt=R(),ke.c(),tt=ye(),c(i,"class","svelte-1fggvh7"),c(l,"class","svelte-1fggvh7"),c(m,"type","checkbox"),c(p,"class","svelte-1fggvh7"),c(E,"class","svelte-1fggvh7"),c(x,"type","checkbox"),c(N,"class","svelte-1fggvh7"),c(re,"class","svelte-1fggvh7"),c(F,"type","checkbox"),c(j,"class","svelte-1fggvh7")},m(D,W){O(t,D,W),g(D,n,W),g(D,i,W),A(i,s),g(D,o,W),g(D,l,W),A(l,u),g(D,f,W),g(D,p,W),A(p,h),A(h,m),m.checked=e[1],A(h,d),A(h,I),g(D,B,W),g(D,E,W),A(E,y),g(D,T,W),g(D,N,W),A(N,k),A(k,x),x.checked=e[2],A(k,v),A(k,C),g(D,le,W),g(D,re,W),A(re,_e),g(D,ge,W),Ie[ce].m(D,W),g(D,he,W),g(D,j,W),A(j,ie),A(ie,F),F.checked=e[3],A(ie,K),A(ie,Ut),g(D,Dt,W),He[be].m(D,W),g(D,tt,W),Ae=!0,Gt||(An=[te(m,"change",e[17]),te(m,"change",e[18]),dn(Ui.call(null,m,!0)),te(x,"change",e[19]),te(x,"change",e[20]),te(F,"change",e[23]),te(F,"change",e[24])],Gt=!0)},p(D,W){const Cn={};W[0]&64|W[1]&4&&(Cn.$$scope={dirty:W,ctx:D}),t.$set(Cn),(!Ae||W[0]&64)&&r!==(r=D[6]("settings.title")+"")&&z(s,r),(!Ae||W[0]&64)&&a!==(a=D[6]("settings.autostart_title")+"")&&z(u,a),W[0]&2&&(m.checked=D[1]),(!Ae||W[0]&64)&&b!==(b=D[6]("settings.autostart")+"")&&z(I,b),(!Ae||W[0]&64)&&H!==(H=D[6]("settings.autoexpand_title")+"")&&z(y,H),W[0]&4&&(x.checked=D[2]),(!Ae||W[0]&64)&&P!==(P=D[6]("settings.autoexpand")+"")&&z(C,P),(!Ae||W[0]&64)&&ae!==(ae=D[6]("settings.search_and_paste_title")+"")&&z(_e,ae);let $t=ce;ce=Tn(D),ce===$t?Ie[ce].p(D,W):(ue(),S(Ie[$t],1,1,()=>{Ie[$t]=null}),fe(),pe=Ie[ce],pe?pe.p(D,W):(pe=Ie[ce]=Bn[ce](D),pe.c()),w(pe,1),pe.m(he.parentNode,he)),W[0]&8&&(F.checked=D[3]),(!Ae||W[0]&64)&&Pe!==(Pe=D[6]("settings.focus_search")+"")&&z(Ut,Pe);let jt=be;be=Hn(D),be===jt?He[be].p(D,W):(ue(),S(He[jt],1,1,()=>{He[jt]=null}),fe(),ke=He[be],ke?ke.p(D,W):(ke=He[be]=In[be](D),ke.c()),w(ke,1),ke.m(tt.parentNode,tt))},i(D){Ae||(w(t.$$.fragment,D),w(pe),w(ke),Ae=!0)},o(D){S(t.$$.fragment,D),S(pe),S(ke),Ae=!1},d(D){D&&(_(n),_(i),_(o),_(l),_(f),_(p),_(B),_(E),_(T),_(N),_(le),_(re),_(ge),_(he),_(j),_(Dt),_(tt)),M(t,D),Ie[ce].d(D),He[be].d(D),Gt=!1,Ee(An)}}}function pa(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[ha]},$$scope:{ctx:e}}}),t.$on("cancel",e[8]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r[0]&255|r[1]&4&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}const ma="Snippet Expander Search & Paste pop-up window",Kt="snippetexpandergui --search-and-paste",si="<Ctrl>grave";function da(e,t,n){let i,r,s;ne(e,Se,j=>n(6,i=j)),ne(e,we,j=>n(0,r=j)),ne(e,Me,j=>n(7,s=j));let o=!1,l=!1,a=!0,u=!1,f=si;function p(){Be()}function h(){je("/about")}async function m(){let j=!1;try{j=await ar()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function d(j){try{await yr(j)}catch(ie){await oe(i("settings.save_error_title"),ie);return}return j}async function b(){let j=!1;try{j=await lr()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function I(j){try{await Er(j)}catch(ie){await oe(i("settings.save_error_title"),ie);return}return j}async function B(){let j="";try{j=await hi("FOCUS_SEARCH_BOX")}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j!=="false"}async function E(){let j=!1;try{j=await nr()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function H(){try{n(5,f=await ur(Kt))}catch(j){await oe(i("settings.get_error_title"),j);return}}async function y(){try{await gr(ma,si,Kt,"")}catch(j){await oe(i("settings.save_error_title"),j)}await H()}async function T(){try{await rr(Kt,f)}catch(j){await oe(i("settings.delete_error_title"),j)}await H()}async function N(j){const ie=j?"true":"false";try{await br("FOCUS_SEARCH_BOX",ie)}catch(F){await oe(i("settings.save_error_title"),F);return}return j}function k(j){Me.fetch()}async function x(j){try{const ie=await mi(j)}catch(ie){await oe(i("import_snippets.error_title"),ie)}await Me.fetch()}async function v(){try{const j=await sr()}catch(j){await oe(i("export_snippets.error_title"),j)}}Je(async()=>{n(1,o=await m()),n(2,l=await b()),n(3,a=await B()),n(4,u=await E()),u&&await H()});function P(){o=this.checked,n(1,o)}const C=()=>d(o);function le(){l=this.checked,n(2,l)}const re=()=>I(l),ae=()=>T(),_e=()=>y();function ge(){a=this.checked,n(3,a)}const ce=()=>N(a),pe=()=>x(!1),he=()=>x(!0);return e.$$.update=()=>{e.$$.dirty[0]&1&&k()},[r,o,l,a,u,f,i,s,p,h,d,I,y,T,N,x,v,P,C,le,re,ae,_e,ge,ce,pe,he]}class _a extends Y{constructor(t){super(),J(this,t,da,pa,Z,{},null,[-1,-1])}}const ga="/assets/snippetexpander-icon-128-a0af7490.svg";function ba(e){let t,n;return t=new de({props:{horizontal:!0,iconClass:"dimmed",icon:xi,size:"2.5x",title:e[3]("button.back")}}),t.$on("activate",e[4]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&8&&(s.title=i[3]("button.back")),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function va(e){let t,n,i,r,s,o,l,a,u,f=e[3]("about.description")+"",p,h,m,d,b,I,B,E,H,y,T=e[3]("about.by")+"",N,k,x,v,P,C,le=e[3]("about.licence_title")+"",re,ae,_e,ge,ce=e[3]("about.licence")+"",pe,he,j,ie;return t=new Rt({props:{$$slots:{default:[ba]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment),n=R(),i=L("img"),s=R(),o=L("h2"),o.textContent="Snippet Expander",l=R(),a=L("p"),u=L("em"),p=$(f),h=R(),m=L("p"),d=L("a"),b=$(e[2]),I=R(),B=L("p"),E=L("a"),E.textContent="snippetexpander.org",H=R(),y=L("h3"),N=$(T),k=R(),x=L("p"),v=L("a"),v.textContent="ianmjones",P=R(),C=L("h3"),re=$(le),ae=R(),_e=L("p"),ge=L("a"),pe=$(ce),zi(i.src,r=ga)||c(i,"src",r),c(i,"alt","Snippet Expander icon"),c(o,"class","svelte-sjm2tb"),c(a,"class","svelte-sjm2tb"),c(d,"href",e[0]),c(m,"class","svelte-sjm2tb"),c(E,"href","https://snippetexpander.org"),c(B,"class","svelte-sjm2tb"),c(y,"class","svelte-sjm2tb"),c(v,"href","https://ianmjones.com"),c(x,"class","svelte-sjm2tb"),c(C,"class","svelte-sjm2tb"),c(ge,"href",e[1]),c(_e,"class","svelte-sjm2tb")},m(F,K){O(t,F,K),g(F,n,K),g(F,i,K),g(F,s,K),g(F,o,K),g(F,l,K),g(F,a,K),A(a,u),A(u,p),g(F,h,K),g(F,m,K),A(m,d),A(d,b),g(F,I,K),g(F,B,K),A(B,E),g(F,H,K),g(F,y,K),A(y,N),g(F,k,K),g(F,x,K),A(x,v),g(F,P,K),g(F,C,K),A(C,re),g(F,ae,K),g(F,_e,K),A(_e,ge),A(ge,pe),he=!0,j||(ie=[te(d,"click",vt(e[6])),te(E,"click",vt(e[7])),te(v,"click",vt(e[8])),te(ge,"click",vt(e[9]))],j=!0)},p(F,K){const Pe={};K&1032&&(Pe.$$scope={dirty:K,ctx:F}),t.$set(Pe),(!he||K&8)&&f!==(f=F[3]("about.description")+"")&&z(p,f),(!he||K&4)&&z(b,F[2]),(!he||K&1)&&c(d,"href",F[0]),(!he||K&8)&&T!==(T=F[3]("about.by")+"")&&z(N,T),(!he||K&8)&&le!==(le=F[3]("about.licence_title")+"")&&z(re,le),(!he||K&8)&&ce!==(ce=F[3]("about.licence")+"")&&z(pe,ce),(!he||K&2)&&c(ge,"href",F[1])},i(F){he||(w(t.$$.fragment,F),he=!0)},o(F){S(t.$$.fragment,F),he=!1},d(F){F&&(_(n),_(i),_(s),_(o),_(l),_(a),_(h),_(m),_(I),_(B),_(H),_(y),_(k),_(x),_(P),_(C),_(ae),_(_e)),M(t,F),j=!1,Ee(ie)}}}function wa(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[va]},$$scope:{ctx:e}}}),t.$on("cancel",e[4]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&1039&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ea(e,t,n){let i,r,s,o;ne(e,Se,m=>n(3,o=m));function l(){Be()}let a="";Je(async()=>{n(5,a=await hr())});const u=()=>wt(r),f=()=>wt("https://snippetexpander.org"),p=()=>wt("https://ianmjones.com"),h=()=>wt(s);return e.$$.update=()=>{e.$$.dirty&32&&n(2,i="v"+a),e.$$.dirty&32&&n(0,r="https://git.sr.ht/~ianmjones/snippetexpander/tree/"+a),e.$$.dirty&1&&n(1,s=r+"/item/LICENSE")},[r,s,i,o,l,a,u,f,p,h]}class ya extends Y{constructor(t){super(),J(this,t,Ea,wa,Z,{})}}function Sa(e){let t,n;return t=new no({props:{routes:e[1]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p:G,i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function ka(e){let t;return{c(){t=$("Loading...")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}function Aa(e){let t,n,i,r;const s=[ka,Sa],o=[];function l(a,u){return a[0]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function Ba(e,t,n){let i;ne(e,kt,a=>n(0,i=a));let r;async function s(){try{const a=await dr("Pong");a==="Pong"?we.update(u=>!0):(we.update(u=>!1),Vt("Got '"+a+"' back from Ping instead of 'Pong'.")),rt.update(u=>!0),Ht.update(u=>!1)}catch(a){we.update(u=>!1),Vt("Ping returned: "+a),o()}}async function o(){try{await ir()?rt.update(u=>!0):rt.update(u=>!1)}catch(a){rt.update(u=>!1),Vt("DaemonInstalled returned: "+a)}}Os("en-GB",()=>Fi(()=>import("./en-GB-f23fefe1.js"),[])),xs({fallbackLocale:"en-GB",initialLocale:Rs()});const l={"/":jl,"/snippet/add":ql,"/snippet/edit/:id":ta,"/settings":_a,"/about":ya};return Je(async()=>{await s(),r=setInterval(s,5e3)}),_n(()=>{clearInterval(r)}),[i,l]}class Ta extends Y{constructor(t){super(),J(this,t,Ba,Aa,Z,{})}}new Ta({target:document.getElementById("app")});
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const it={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Ze(){return it}function xs(e){const{formats:t,...n}=e,i=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Ms:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(it,n,{initialLocale:i}),t&&("number"in t&&Object.assign(it.formats.number,t.number),"date"in t&&Object.assign(it.formats.date,t.date),"time"in t&&Object.assign(it.formats.time,t.time)),Ke.set(i)}const kt=Te(!1);let cn;const At=Te(null);function zn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function gt(e,t=Ze().fallbackLocale){const n=zn(e);return t?[...new Set([...n,...zn(t)])]:n}function Ne(){return cn??void 0}At.subscribe(e=>{cn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ke={...At,set:e=>{if(e&&function(t){if(t==null)return;const n=gt(t);for(let i=0;i<n.length;i++){const r=n[i];if(En(r))return r}}(e)&&It(e)){const{loadingDelay:t}=Ze();let n;return typeof window<"u"&&Ne()!=null&&t?n=window.setTimeout(()=>kt.set(!0),t):kt.set(!0),Oi(e).then(()=>{At.set(e)}).finally(()=>{clearTimeout(n),kt.set(!1)})}return At.set(e)}},Rs=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Pt=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}},ct=(e,t)=>{const{formats:n}=Ze();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Us=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=ct("number",t)),new Intl.NumberFormat(e,n)}),Ds=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=ct("date",t):Object.keys(n).length===0&&(n=ct("date","short")),new Intl.DateTimeFormat(e,n)}),Gs=Pt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=ct("time",t):Object.keys(n).length===0&&(n=ct("time","short")),new Intl.DateTimeFormat(e,n)}),$s=({locale:e=Ne(),...t}={})=>Us({locale:e,...t}),js=({locale:e=Ne(),...t}={})=>Ds({locale:e,...t}),Fs=({locale:e=Ne(),...t}={})=>Gs({locale:e,...t}),zs=Pt((e,t=Ne())=>new Hs(e,t,Ze().formats,{ignoreTag:Ze().ignoreTag})),Vs=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:a=Ne(),default:u}=o;if(a==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Pi(e,a);if(f){if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f}else f=(s=(r=(i=(n=Ze()).handleMissingMessage)===null||i===void 0?void 0:i.call(n,{locale:a,id:e,defaultValue:u}))!==null&&r!==void 0?r:u)!==null&&s!==void 0?s:e;if(!l)return f;let p=f;try{p=zs(f,a).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return p},Ws=(e,t)=>Fs(t).format(e),Xs=(e,t)=>js(t).format(e),qs=(e,t)=>$s(t).format(e),Zs=(e,t=Ne())=>Pi(e,t),Se=Le([Ke,Ye],()=>Vs);Le([Ke],()=>Ws);Le([Ke],()=>Xs);Le([Ke],()=>qs);Le([Ke,Ye],()=>Zs);function Qs(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,i,r,s,o=[],l="",a=e.split("/");for(a[0]||a.shift();r=a.shift();)n=r[0],n==="*"?(o.push("wild"),l+="/(.*)"):n===":"?(i=r.indexOf("?",1),s=r.indexOf(".",1),o.push(r.substring(1,~i?i:~s?s:r.length)),l+=~i&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(l+=(~i?"?":"")+"\\"+r.substring(s))):l+="/"+r;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}function Js(e){let t,n,i;const r=[e[2]];var s=e[0];function o(l,a){let u={};if(a!==void 0&&a&4)u=Bt(r,[Tt(l[2])]);else for(let f=0;f<r.length;f+=1)u=pn(u,r[f]);return{props:u}}return s&&(t=Ve(s,o(e)),t.$on("routeEvent",e[7])),{c(){t&&U(t.$$.fragment),n=ye()},m(l,a){t&&O(t,l,a),g(l,n,a),i=!0},p(l,a){if(a&1&&s!==(s=l[0])){if(t){ue();const u=t;S(u.$$.fragment,1,0,()=>{M(u,1)}),fe()}s?(t=Ve(s,o(l,a)),t.$on("routeEvent",l[7]),U(t.$$.fragment),w(t.$$.fragment,1),O(t,n.parentNode,n)):t=null}else if(s){const u=a&4?Bt(r,[Tt(l[2])]):{};t.$set(u)}},i(l){i||(t&&w(t.$$.fragment,l),i=!0)},o(l){t&&S(t.$$.fragment,l),i=!1},d(l){l&&_(n),t&&M(t,l)}}}function Ys(e){let t,n,i;const r=[{params:e[1]},e[2]];var s=e[0];function o(l,a){let u={};if(a!==void 0&&a&6)u=Bt(r,[a&2&&{params:l[1]},a&4&&Tt(l[2])]);else for(let f=0;f<r.length;f+=1)u=pn(u,r[f]);return{props:u}}return s&&(t=Ve(s,o(e)),t.$on("routeEvent",e[6])),{c(){t&&U(t.$$.fragment),n=ye()},m(l,a){t&&O(t,l,a),g(l,n,a),i=!0},p(l,a){if(a&1&&s!==(s=l[0])){if(t){ue();const u=t;S(u.$$.fragment,1,0,()=>{M(u,1)}),fe()}s?(t=Ve(s,o(l,a)),t.$on("routeEvent",l[6]),U(t.$$.fragment),w(t.$$.fragment,1),O(t,n.parentNode,n)):t=null}else if(s){const u=a&6?Bt(r,[a&2&&{params:l[1]},a&4&&Tt(l[2])]):{};t.$set(u)}},i(l){i||(t&&w(t.$$.fragment,l),i=!0)},o(l){t&&S(t.$$.fragment,l),i=!1},d(l){l&&_(n),t&&M(t,l)}}}function Ks(e){let t,n,i,r;const s=[Ys,Js],o=[];function l(a,u){return a[1]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function Vn(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let i="";return n>-1&&(i=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:i}}const yn=di(null,function(t){t(Vn());const n=()=>{t(Vn())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});Le(yn,e=>e.location);Le(yn,e=>e.querystring);const Wn=Te(void 0);async function je(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await gn(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}async function Be(){await gn(),window.history.back()}function eo(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function to(e,t,n){let{routes:i={}}=t,{prefix:r=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(T,N){if(!N||typeof N!="function"&&(typeof N!="object"||N._sveltesparouter!==!0))throw Error("Invalid component object");if(!T||typeof T=="string"&&(T.length<1||T.charAt(0)!="/"&&T.charAt(0)!="*")||typeof T=="object"&&!(T instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:k,keys:x}=Qs(T);this.path=T,typeof N=="object"&&N._sveltesparouter===!0?(this.component=N.component,this.conditions=N.conditions||[],this.userData=N.userData,this.props=N.props||{}):(this.component=()=>Promise.resolve(N),this.conditions=[],this.props={}),this._pattern=k,this._keys=x}match(T){if(r){if(typeof r=="string")if(T.startsWith(r))T=T.substr(r.length)||"/";else return null;else if(r instanceof RegExp){const v=T.match(r);if(v&&v[0])T=T.substr(v[0].length)||"/";else return null}}const N=this._pattern.exec(T);if(N===null)return null;if(this._keys===!1)return N;const k={};let x=0;for(;x<this._keys.length;){try{k[this._keys[x]]=decodeURIComponent(N[x+1]||"")||null}catch{k[this._keys[x]]=null}x++}return k}async checkConditions(T){for(let N=0;N<this.conditions.length;N++)if(!await this.conditions[N](T))return!1;return!0}}const l=[];i instanceof Map?i.forEach((y,T)=>{l.push(new o(T,y))}):Object.keys(i).forEach(y=>{l.push(new o(y,i[y]))});let a=null,u=null,f={};const p=_t();async function h(y,T){await gn(),p(y,T)}let m=null,d=null;s&&(d=y=>{y.state&&(y.state.__svelte_spa_router_scrollY||y.state.__svelte_spa_router_scrollX)?m=y.state:m=null},window.addEventListener("popstate",d),ai(()=>{eo(m)}));let b=null,I=null;const B=yn.subscribe(async y=>{b=y;let T=0;for(;T<l.length;){const N=l[T].match(y.location);if(!N){T++;continue}const k={route:l[T].path,location:y.location,querystring:y.querystring,userData:l[T].userData,params:N&&typeof N=="object"&&Object.keys(N).length?N:null};if(!await l[T].checkConditions(k)){n(0,a=null),I=null,h("conditionsFailed",k);return}h("routeLoading",Object.assign({},k));const x=l[T].component;if(I!=x){x.loading?(n(0,a=x.loading),I=x,n(1,u=x.loadingParams),n(2,f={}),h("routeLoaded",Object.assign({},k,{component:a,name:a.name,params:u}))):(n(0,a=null),I=null);const v=await x();if(y!=b)return;n(0,a=v&&v.default||v),I=x}N&&typeof N=="object"&&Object.keys(N).length?n(1,u=N):n(1,u=null),n(2,f=l[T].props),h("routeLoaded",Object.assign({},k,{component:a,name:a.name,params:u})).then(()=>{Wn.set(u)});return}n(0,a=null),I=null,Wn.set(void 0)});_n(()=>{B(),d&&window.removeEventListener("popstate",d)});function E(y){ut.call(this,e,y)}function H(y){ut.call(this,e,y)}return e.$$set=y=>{"routes"in y&&n(3,i=y.routes),"prefix"in y&&n(4,r=y.prefix),"restoreScrollState"in y&&n(5,s=y.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[a,u,f,i,r,s,E,H]}class no extends Y{constructor(t){super(),J(this,t,to,Ks,Z,{routes:3,prefix:4,restoreScrollState:5})}}const we=Te(!1),rt=Te(!1),Ht=Te(!1);function Mi(){const{subscribe:e,set:t,update:n}=Te([]);return{subscribe:e,fetch:async()=>{if(!Pn(we))return;const i=await or();n(r=>i)},search:async(i,r)=>{if(!Pn(we))return;const s=await cr(i,r);n(o=>s)},reset:()=>t([])}}const Me=Mi(),Jt=Te(""),Yt=Mi();function io(e){let t,n,i,r;return{c(){t=V("svg"),n=V("polyline"),i=V("polyline"),c(n,"points","11 17 6 12 11 7"),c(i,"points","18 17 13 12 18 7"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-chevrons-left "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-chevrons-left "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ro(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class xi extends Y{constructor(t){super(),J(this,t,ro,io,Z,{size:0,strokeWidth:1,class:2})}}function so(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("line"),r=V("line"),c(n,"d","M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"),c(i,"x1","18"),c(i,"y1","9"),c(i,"x2","12"),c(i,"y2","15"),c(r,"x1","12"),c(r,"y1","9"),c(r,"x2","18"),c(r,"y2","15"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-delete "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-delete "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function oo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class lo extends Y{constructor(t){super(),J(this,t,oo,so,Z,{size:0,strokeWidth:1,class:2})}}function ao(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("polyline"),r=V("line"),c(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),c(i,"points","7 10 12 15 17 10"),c(r,"x1","12"),c(r,"y1","15"),c(r,"x2","12"),c(r,"y2","3"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-download "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-download "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function uo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class fo extends Y{constructor(t){super(),J(this,t,uo,ao,Z,{size:0,strokeWidth:1,class:2})}}function co(e){let t,n,i,r;return{c(){t=V("svg"),n=V("path"),i=V("path"),c(n,"d","M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"),c(i,"d","M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-edit "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-edit "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ho(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class po extends Y{constructor(t){super(),J(this,t,ho,co,Z,{size:0,strokeWidth:1,class:2})}}function mo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("circle"),i=V("path"),r=V("line"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","10"),c(i,"d","M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"),c(r,"x1","12"),c(r,"y1","17"),c(r,"x2","12.01"),c(r,"y2","17"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-help-circle "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-help-circle "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function _o(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class go extends Y{constructor(t){super(),J(this,t,_o,mo,Z,{size:0,strokeWidth:1,class:2})}}function bo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("circle"),i=V("line"),r=V("line"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","10"),c(i,"x1","12"),c(i,"y1","16"),c(i,"x2","12"),c(i,"y2","12"),c(r,"x1","12"),c(r,"y1","8"),c(r,"x2","12.01"),c(r,"y2","8"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-info "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-info "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function vo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class wo extends Y{constructor(t){super(),J(this,t,vo,bo,Z,{size:0,strokeWidth:1,class:2})}}function Eo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("rect"),i=V("line"),r=V("line"),c(n,"x","3"),c(n,"y","3"),c(n,"width","18"),c(n,"height","18"),c(n,"rx","2"),c(n,"ry","2"),c(i,"x1","12"),c(i,"y1","8"),c(i,"x2","12"),c(i,"y2","16"),c(r,"x1","8"),c(r,"y1","12"),c(r,"x2","16"),c(r,"y2","12"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-plus-square "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-plus-square "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function yo(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ot extends Y{constructor(t){super(),J(this,t,yo,Eo,Z,{size:0,strokeWidth:1,class:2})}}function So(e){let t,n,i,r;return{c(){t=V("svg"),n=V("circle"),i=V("line"),c(n,"cx","11"),c(n,"cy","11"),c(n,"r","8"),c(i,"x1","21"),c(i,"y1","21"),c(i,"x2","16.65"),c(i,"y2","16.65"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-search "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-search "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function ko(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ao extends Y{constructor(t){super(),J(this,t,ko,So,Z,{size:0,strokeWidth:1,class:2})}}function Bo(e){let t,n,i,r;return{c(){t=V("svg"),n=V("circle"),i=V("path"),c(n,"cx","12"),c(n,"cy","12"),c(n,"r","3"),c(i,"d","M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",r="feather feather-settings "+e[2])},m(s,o){g(s,t,o),A(t,n),A(t,i)},p(s,[o]){o&1&&c(t,"width",s[0]),o&1&&c(t,"height",s[0]),o&2&&c(t,"stroke-width",s[1]),o&4&&r!==(r="feather feather-settings "+s[2])&&c(t,"class",r)},i:G,o:G,d(s){s&&_(t)}}}function To(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Ri extends Y{constructor(t){super(),J(this,t,To,Bo,Z,{size:0,strokeWidth:1,class:2})}}function Io(e){let t,n,i,r,s,o;return{c(){t=V("svg"),n=V("polyline"),i=V("path"),r=V("line"),s=V("line"),c(n,"points","3 6 5 6 21 6"),c(i,"d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"),c(r,"x1","10"),c(r,"y1","11"),c(r,"x2","10"),c(r,"y2","17"),c(s,"x1","14"),c(s,"y1","11"),c(s,"x2","14"),c(s,"y2","17"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",o="feather feather-trash-2 "+e[2])},m(l,a){g(l,t,a),A(t,n),A(t,i),A(t,r),A(t,s)},p(l,[a]){a&1&&c(t,"width",l[0]),a&1&&c(t,"height",l[0]),a&2&&c(t,"stroke-width",l[1]),a&4&&o!==(o="feather feather-trash-2 "+l[2])&&c(t,"class",o)},i:G,o:G,d(l){l&&_(t)}}}function Ho(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class Co extends Y{constructor(t){super(),J(this,t,Ho,Io,Z,{size:0,strokeWidth:1,class:2})}}function Lo(e){let t,n,i,r,s;return{c(){t=V("svg"),n=V("path"),i=V("polyline"),r=V("line"),c(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),c(i,"points","17 8 12 3 7 8"),c(r,"x1","12"),c(r,"y1","3"),c(r,"x2","12"),c(r,"y2","15"),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width",e[0]),c(t,"height",e[0]),c(t,"fill","none"),c(t,"viewBox","0 0 24 24"),c(t,"stroke","currentColor"),c(t,"stroke-width",e[1]),c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"class",s="feather feather-upload "+e[2])},m(o,l){g(o,t,l),A(t,n),A(t,i),A(t,r)},p(o,[l]){l&1&&c(t,"width",o[0]),l&1&&c(t,"height",o[0]),l&2&&c(t,"stroke-width",o[1]),l&4&&s!==(s="feather feather-upload "+o[2])&&c(t,"class",s)},i:G,o:G,d(o){o&&_(t)}}}function No(e,t,n){let{size:i="24"}=t,{strokeWidth:r=2}=t,{class:s=""}=t;return i!=="100%"&&(i=i.slice(-1)==="x"?i.slice(0,i.length-1)+"em":parseInt(i)+"px"),e.$$set=o=>{"size"in o&&n(0,i=o.size),"strokeWidth"in o&&n(1,r=o.strokeWidth),"class"in o&&n(2,s=o.class)},[i,r,s]}class hn extends Y{constructor(t){super(),J(this,t,No,Lo,Z,{size:0,strokeWidth:1,class:2})}}function Po(e){let t,n;const i=e[5].default,r=ht(i,e,e[4],null);return{c(){t=L("p"),r&&r.c(),c(t,"class","svelte-hclhr3"),X(t,"error",e[3]),X(t,"warning",e[0]),X(t,"success",e[1]),X(t,"info",e[2])},m(s,o){g(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&16)&&mt(r,i,s,s[4],n?pt(i,s[4],o,null):dt(s[4]),null),(!n||o&8)&&X(t,"error",s[3]),(!n||o&1)&&X(t,"warning",s[0]),(!n||o&2)&&X(t,"success",s[1]),(!n||o&4)&&X(t,"info",s[2])},i(s){n||(w(r,s),n=!0)},o(s){S(r,s),n=!1},d(s){s&&_(t),r&&r.d(s)}}}function Oo(e,t,n){let{$$slots:i={},$$scope:r}=t,{error:s=!1}=t,{warning:o=!1}=t,{success:l=!1}=t,{info:a=!1}=t;return o=s&&o?!1:o,l=(s||o)&&l?!1:l,a=!(s||o||l),e.$$set=u=>{"error"in u&&n(3,s=u.error),"warning"in u&&n(0,o=u.warning),"success"in u&&n(1,l=u.success),"info"in u&&n(2,a=u.info),"$$scope"in u&&n(4,r=u.$$scope)},[o,l,a,s,r,i]}class Mt extends Y{constructor(t){super(),J(this,t,Oo,Po,Z,{error:3,warning:0,success:1,info:2})}}function Mo(e){let t=e[0]("no_connection")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("no_connection")+"")&&z(n,t)},d(i){i&&_(n)}}}function xo(e){let t,n;return t=new Mt({props:{error:!0,$$slots:{default:[Mo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ro(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Uo extends Y{constructor(t){super(),J(this,t,Ro,xo,Z,{})}}function Do(e){let t,n,i,r;const s=e[5].default,o=ht(s,e,e[4],null);return{c(){t=L("button"),o&&o.c(),t.disabled=e[3],c(t,"class","svelte-1jbd97"),X(t,"primary",e[0]),X(t,"danger",e[1]),X(t,"secondary",e[2])},m(l,a){g(l,t,a),o&&o.m(t,null),n=!0,i||(r=te(t,"click",e[6]),i=!0)},p(l,[a]){o&&o.p&&(!n||a&16)&&mt(o,s,l,l[4],n?pt(s,l[4],a,null):dt(l[4]),null),(!n||a&8)&&(t.disabled=l[3]),(!n||a&1)&&X(t,"primary",l[0]),(!n||a&2)&&X(t,"danger",l[1]),(!n||a&4)&&X(t,"secondary",l[2])},i(l){n||(w(o,l),n=!0)},o(l){S(o,l),n=!1},d(l){l&&_(t),o&&o.d(l),i=!1,r()}}}function Go(e,t,n){let{$$slots:i={},$$scope:r}=t,{primary:s=!1}=t,{danger:o=!1}=t,{secondary:l=!1}=t,{disabled:a=!1}=t;s=!s&&!l&&!o?!0:s,o=s&&o?!1:o,l=(s||o)&&l?!1:l;function u(f){ut.call(this,e,f)}return e.$$set=f=>{"primary"in f&&n(0,s=f.primary),"danger"in f&&n(1,o=f.danger),"secondary"in f&&n(2,l=f.secondary),"disabled"in f&&n(3,a=f.disabled),"$$scope"in f&&n(4,r=f.$$scope)},[s,o,l,a,r,i,u]}class Fe extends Y{constructor(t){super(),J(this,t,Go,Do,Z,{primary:0,danger:1,secondary:2,disabled:3})}}function $o(e){let t=e[0]("daemon.start")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.start")+"")&&z(n,t)},d(i){i&&_(n)}}}function jo(e){let t=e[0]("daemon.installed")+"",n,i,r,s;return r=new Fe({props:{$$slots:{default:[$o]},$$scope:{ctx:e}}}),r.$on("click",e[1]),{c(){n=$(t),i=R(),U(r.$$.fragment)},m(o,l){g(o,n,l),g(o,i,l),O(r,o,l),s=!0},p(o,l){(!s||l&1)&&t!==(t=o[0]("daemon.installed")+"")&&z(n,t);const a={};l&5&&(a.$$scope={dirty:l,ctx:o}),r.$set(a)},i(o){s||(w(r.$$.fragment,o),s=!0)},o(o){S(r.$$.fragment,o),s=!1},d(o){o&&(_(n),_(i)),M(r,o)}}}function Fo(e){let t,n;return t=new Mt({props:{warning:!0,$$slots:{default:[jo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&5&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function zo(e,t,n){let i;ne(e,Se,s=>n(0,i=s));async function r(){Ht.update(s=>!0);try{const s=await wr()}catch(s){await oe(i("daemon.start_error_title"),s),Ht.update(o=>!1)}await Me.fetch()}return[i,r]}class Vo extends Y{constructor(t){super(),J(this,t,zo,Fo,Z,{})}}function Wo(e){let t=e[0]("daemon.not_installed")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.not_installed")+"")&&z(n,t)},d(i){i&&_(n)}}}function Xo(e){let t,n;return t=new Mt({props:{error:!0,$$slots:{default:[Wo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function qo(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Zo extends Y{constructor(t){super(),J(this,t,qo,Xo,Z,{})}}function Qo(e){let t=e[0]("daemon.starting")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("daemon.starting")+"")&&z(n,t)},d(i){i&&_(n)}}}function Jo(e){let t,n;return t=new Mt({props:{warning:!0,$$slots:{default:[Qo]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Yo(e,t,n){let i;return ne(e,Se,r=>n(0,i=r)),[i]}class Ko extends Y{constructor(t){super(),J(this,t,Yo,Jo,Z,{})}}function Xn(e){let t,n,i,r,s,o;t=new Uo({});const l=[nl,tl,el],a=[];function u(f,p){return f[2]&&!f[3]?0:f[2]&&f[3]?1:2}return i=u(e),r=a[i]=l[i](e),{c(){U(t.$$.fragment),n=R(),r.c(),s=ye()},m(f,p){O(t,f,p),g(f,n,p),a[i].m(f,p),g(f,s,p),o=!0},p(f,p){let h=i;i=u(f),i!==h&&(ue(),S(a[h],1,1,()=>{a[h]=null}),fe(),r=a[i],r||(r=a[i]=l[i](f),r.c()),w(r,1),r.m(s.parentNode,s))},i(f){o||(w(t.$$.fragment,f),w(r),o=!0)},o(f){S(t.$$.fragment,f),S(r),o=!1},d(f){f&&(_(n),_(s)),M(t,f),a[i].d(f)}}}function el(e){let t,n;return t=new Zo({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function tl(e){let t,n;return t=new Ko({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function nl(e){let t,n;return t=new Vo({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function il(e){let t,n,i,r,s,o=!e[1]&&Xn(e);const l=e[6].default,a=ht(l,e,e[5],null);return{c(){t=L("div"),o&&o.c(),n=R(),a&&a.c(),c(t,"class","screen svelte-i096ea"),X(t,"centered",e[0])},m(u,f){g(u,t,f),o&&o.m(t,null),A(t,n),a&&a.m(t,null),i=!0,r||(s=[te(t,"keyup",e[4]),te(t,"keyup",e[7])],r=!0)},p(u,[f]){u[1]?o&&(ue(),S(o,1,1,()=>{o=null}),fe()):o?(o.p(u,f),f&2&&w(o,1)):(o=Xn(u),o.c(),w(o,1),o.m(t,n)),a&&a.p&&(!i||f&32)&&mt(a,l,u,u[5],i?pt(l,u[5],f,null):dt(u[5]),null),(!i||f&1)&&X(t,"centered",u[0])},i(u){i||(w(o),w(a,u),i=!0)},o(u){S(o),S(a,u),i=!1},d(u){u&&_(t),o&&o.d(),a&&a.d(u),r=!1,Ee(s)}}}function rl(e,t,n){let i,r,s;ne(e,we,h=>n(1,i=h)),ne(e,rt,h=>n(2,r=h)),ne(e,Ht,h=>n(3,s=h));let{$$slots:o={},$$scope:l}=t,{centered:a=!1}=t;const u=_t();function f(h){h.key==="Escape"&&(h.preventDefault(),u("cancel"))}function p(h){ut.call(this,e,h)}return e.$$set=h=>{"centered"in h&&n(0,a=h.centered),"$$scope"in h&&n(5,l=h.$$scope)},[a,i,r,s,f,l,o,p]}class et extends Y{constructor(t){super(),J(this,t,rl,il,Z,{centered:0})}}function sl(e){let t,n,i,r,s,o,l,a;var u=e[0];function f(m,d){return{props:{size:m[2],strokeWidth:m[3]}}}u&&(i=Ve(u,f(e)));const p=e[10].default,h=ht(p,e,e[9],null);return{c(){t=L("div"),n=L("div"),i&&U(i.$$.fragment),s=R(),h&&h.c(),c(n,"class",r="icon-wrapper "+e[1]+" svelte-bhj2u4"),c(t,"class","content svelte-bhj2u4"),c(t,"tabindex","0"),c(t,"title",e[5]),X(t,"centered",e[6]),X(t,"horizontal",e[4])},m(m,d){g(m,t,d),A(t,n),i&&O(i,n,null),A(t,s),h&&h.m(t,null),o=!0,l||(a=[te(t,"click",e[7]),te(t,"keyup",e[8])],l=!0)},p(m,[d]){if(d&1&&u!==(u=m[0])){if(i){ue();const b=i;S(b.$$.fragment,1,0,()=>{M(b,1)}),fe()}u?(i=Ve(u,f(m)),U(i.$$.fragment),w(i.$$.fragment,1),O(i,n,null)):i=null}else if(u){const b={};d&4&&(b.size=m[2]),d&8&&(b.strokeWidth=m[3]),i.$set(b)}(!o||d&2&&r!==(r="icon-wrapper "+m[1]+" svelte-bhj2u4"))&&c(n,"class",r),h&&h.p&&(!o||d&512)&&mt(h,p,m,m[9],o?pt(p,m[9],d,null):dt(m[9]),null),(!o||d&32)&&c(t,"title",m[5]),(!o||d&16)&&X(t,"horizontal",m[4])},i(m){o||(i&&w(i.$$.fragment,m),w(h,m),o=!0)},o(m){i&&S(i.$$.fragment,m),S(h,m),o=!1},d(m){m&&_(t),i&&M(i),h&&h.d(m),l=!1,Ee(a)}}}function ol(e,t,n){let{$$slots:i={},$$scope:r}=t,{icon:s=go}=t,{iconClass:o}=t,{size:l="24"}=t,{strokeWidth:a="2"}=t,{horizontal:u=!1}=t,{title:f=""}=t;const p=!u,h=_t();function m(){h("activate")}function d(b){(b.key==="Enter"||b.key===" ")&&h("activate")}return e.$$set=b=>{"icon"in b&&n(0,s=b.icon),"iconClass"in b&&n(1,o=b.iconClass),"size"in b&&n(2,l=b.size),"strokeWidth"in b&&n(3,a=b.strokeWidth),"horizontal"in b&&n(4,u=b.horizontal),"title"in b&&n(5,f=b.title),"$$scope"in b&&n(9,r=b.$$scope)},[s,o,l,a,u,f,p,m,d,r,i]}class de extends Y{constructor(t){super(),J(this,t,ol,sl,Z,{icon:0,iconClass:1,size:2,strokeWidth:3,horizontal:4,title:5})}}function ll(e,t){t&&setTimeout(()=>{e.focus(),e.select()},250)}function qn(e){let t,n;return{c(){t=L("label"),n=$(e[4]),c(t,"for",e[3])},m(i,r){g(i,t,r),A(t,n)},p(i,r){r&16&&z(n,i[4]),r&8&&c(t,"for",i[3])},d(i){i&&_(t)}}}function Zn(e){let t,n,i,r,s;return n=new Ao({}),{c(){t=L("button"),U(n.$$.fragment),c(t,"class","search-icon svelte-8p6spj"),c(t,"tabindex",-1),c(t,"title",e[6]),X(t,"focussed",e[2])},m(o,l){g(o,t,l),O(n,t,null),i=!0,r||(s=te(t,"click",e[14]),r=!0)},p(o,l){(!i||l&64)&&c(t,"title",o[6]),(!i||l&4)&&X(t,"focussed",o[2])},i(o){i||(w(n.$$.fragment,o),i=!0)},o(o){S(n.$$.fragment,o),i=!1},d(o){o&&_(t),M(n),r=!1,s()}}}function Qn(e){let t,n,i,r,s;return n=new lo({}),{c(){t=L("button"),U(n.$$.fragment),c(t,"class","clear-icon svelte-8p6spj"),c(t,"tabindex",-1),c(t,"title",e[7]),X(t,"focussed",e[2])},m(o,l){g(o,t,l),O(n,t,null),i=!0,r||(s=te(t,"click",e[15]),r=!0)},p(o,l){(!i||l&128)&&c(t,"title",o[7]),(!i||l&4)&&X(t,"focussed",o[2])},i(o){i||(w(n.$$.fragment,o),i=!0)},o(o){S(n.$$.fragment,o),i=!1},d(o){o&&_(t),M(n),r=!1,s()}}}function Jn(e){let t;return{c(){t=L("div"),c(t,"class","error-message svelte-8p6spj")},m(n,i){g(n,t,i),t.innerHTML=e[11]},p(n,i){i&2048&&(t.innerHTML=n[11])},d(n){n&&_(t)}}}function al(e){let t,n,i,r,s,o,l,a,u,f,p,h,m=e[4]&&qn(e),d=e[9]&&Zn(e),b=e[9]&&e[0]&&Qn(e),I=!e[9]&&Jn(e);return{c(){t=L("div"),m&&m.c(),n=R(),i=L("div"),d&&d.c(),r=R(),s=L("input"),l=R(),b&&b.c(),a=R(),I&&I.c(),u=ye(),c(s,"type","text"),c(s,"id",e[3]),c(s,"name",e[3]),c(s,"placeholder",e[5]),c(s,"tabindex",e[10]),c(s,"class","svelte-8p6spj"),X(s,"search",e[9]),X(s,"focussed",e[2]),X(s,"value",e[0]),c(i,"class","input-control svelte-8p6spj"),c(t,"class","input svelte-8p6spj")},m(B,E){g(B,t,E),m&&m.m(t,null),A(t,n),A(t,i),d&&d.m(i,null),A(i,r),A(i,s),ze(s,e[0]),e[18](s),A(i,l),b&&b.m(i,null),g(B,a,E),I&&I.m(B,E),g(B,u,E),f=!0,p||(h=[te(s,"input",e[17]),te(s,"focusin",e[12]),te(s,"focusout",e[13]),dn(o=ll.call(null,s,e[8]))],p=!0)},p(B,[E]){B[4]?m?m.p(B,E):(m=qn(B),m.c(),m.m(t,n)):m&&(m.d(1),m=null),B[9]?d?(d.p(B,E),E&512&&w(d,1)):(d=Zn(B),d.c(),w(d,1),d.m(i,r)):d&&(ue(),S(d,1,1,()=>{d=null}),fe()),(!f||E&8)&&c(s,"id",B[3]),(!f||E&8)&&c(s,"name",B[3]),(!f||E&32)&&c(s,"placeholder",B[5]),(!f||E&1024)&&c(s,"tabindex",B[10]),E&1&&s.value!==B[0]&&ze(s,B[0]),o&&Qe(o.update)&&E&256&&o.update.call(null,B[8]),(!f||E&512)&&X(s,"search",B[9]),(!f||E&4)&&X(s,"focussed",B[2]),(!f||E&1)&&X(s,"value",B[0]),B[9]&&B[0]?b?(b.p(B,E),E&513&&w(b,1)):(b=Qn(B),b.c(),w(b,1),b.m(i,null)):b&&(ue(),S(b,1,1,()=>{b=null}),fe()),B[9]?I&&(I.d(1),I=null):I?I.p(B,E):(I=Jn(B),I.c(),I.m(u.parentNode,u))},i(B){f||(w(d),w(b),f=!0)},o(B){S(d),S(b),f=!1},d(B){B&&(_(t),_(a),_(u)),m&&m.d(),d&&d.d(),e[18](null),b&&b.d(),I&&I.d(B),p=!1,Ee(h)}}}function ul(e,t,n){let i;const r=_t();let{name:s="input"}=t,{label:o=""}=t,{value:l=""}=t,{errorMessage:a=""}=t,{placeholder:u=""}=t,{searchButtonTitle:f=""}=t,{clearButtonTitle:p=""}=t,{autofocus:h=!1}=t,{search:m=!1}=t,{tabindex:d=0}=t,{ref:b}=t,{focussed:I=h}=t;function B(){n(2,I=!0)}function E(){n(2,I=!1)}function H(){r("query",l),document.getElementById(s).focus()}function y(){n(0,l=""),document.getElementById(s).focus()}function T(){l=this.value,n(0,l)}function N(k){ve[k?"unshift":"push"](()=>{b=k,n(1,b)})}return e.$$set=k=>{"name"in k&&n(3,s=k.name),"label"in k&&n(4,o=k.label),"value"in k&&n(0,l=k.value),"errorMessage"in k&&n(16,a=k.errorMessage),"placeholder"in k&&n(5,u=k.placeholder),"searchButtonTitle"in k&&n(6,f=k.searchButtonTitle),"clearButtonTitle"in k&&n(7,p=k.clearButtonTitle),"autofocus"in k&&n(8,h=k.autofocus),"search"in k&&n(9,m=k.search),"tabindex"in k&&n(10,d=k.tabindex),"ref"in k&&n(1,b=k.ref),"focussed"in k&&n(2,I=k.focussed)},e.$$.update=()=>{e.$$.dirty&65536&&n(11,i=a||"&nbsp;")},[l,b,I,s,o,u,f,p,h,m,d,i,B,E,H,y,a,T,N]}class Sn extends Y{constructor(t){super(),J(this,t,ul,al,Z,{name:3,label:4,value:0,errorMessage:16,placeholder:5,searchButtonTitle:6,clearButtonTitle:7,autofocus:8,search:9,tabindex:10,ref:1,focussed:2})}}function Ui(e,t){t&&e.focus()}function fl(e){let t;return{c(){t=$(e[0])},m(n,i){g(n,t,i)},p(n,i){i&1&&z(t,n[0])},d(n){n&&_(t)}}}function cl(e){let t;return{c(){t=$(" ")},m(n,i){g(n,t,i)},p:G,d(n){n&&_(t)}}}function hl(e){let t;function n(s,o){return s[1]?cl:fl}let r=n(e)(e);return{c(){t=L("span"),r.c(),c(t,"class","shortcut-button svelte-11t060e"),X(t,"hide",e[1])},m(s,o){g(s,t,o),r.m(t,null)},p(s,[o]){r.p(s,o)},i:G,o:G,d(s){s&&_(t),r.d()}}}function pl(e,t,n){let{shortcut:i=""}=t;const r=i.length===0;return e.$$set=s=>{"shortcut"in s&&n(0,i=s.shortcut)},[i,r]}class xt extends Y{constructor(t){super(),J(this,t,pl,hl,Z,{shortcut:0})}}function Yn(e){let t,n;return t=new xt({props:{shortcut:e[6]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&64&&(s.shortcut=i[6]),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Kn(e){let t,n,i;return n=new po({props:{size:"1.25x"}}),{c(){t=L("div"),U(n.$$.fragment),c(t,"class","edit-icon-wrapper svelte-1ebkg7o")},m(r,s){g(r,t,s),O(n,t,null),i=!0},i(r){i||(w(n.$$.fragment,r),i=!0)},o(r){S(n.$$.fragment,r),i=!1},d(r){r&&_(t),M(n)}}}function ml(e){let t,n,i,r,s,o=e[0].body+"",l,a,u,f,p,h=e[4]&&Yn(e);i=new xt({props:{shortcut:e[0].abbreviation}});let m=!e[4]&&Kn();return{c(){t=L("li"),h&&h.c(),n=R(),U(i.$$.fragment),r=R(),s=L("span"),l=$(o),a=R(),m&&m.c(),c(s,"class","body svelte-1ebkg7o"),c(t,"tabindex",e[1]),c(t,"title",e[7]),c(t,"class","svelte-1ebkg7o"),X(t,"focussed",e[2]),X(t,"active",e[3])},m(d,b){g(d,t,b),h&&h.m(t,null),A(t,n),O(i,t,null),A(t,r),A(t,s),A(s,l),A(t,a),m&&m.m(t,null),e[13](t),u=!0,f||(p=te(t,"click",e[12]),f=!0)},p(d,[b]){d[4]?h?(h.p(d,b),b&16&&w(h,1)):(h=Yn(d),h.c(),w(h,1),h.m(t,n)):h&&(ue(),S(h,1,1,()=>{h=null}),fe());const I={};b&1&&(I.shortcut=d[0].abbreviation),i.$set(I),(!u||b&1)&&o!==(o=d[0].body+"")&&z(l,o),d[4]?m&&(ue(),S(m,1,1,()=>{m=null}),fe()):m?b&16&&w(m,1):(m=Kn(),m.c(),w(m,1),m.m(t,null)),(!u||b&2)&&c(t,"tabindex",d[1]),(!u||b&4)&&X(t,"focussed",d[2]),(!u||b&8)&&X(t,"active",d[3])},i(d){u||(w(h),w(i.$$.fragment,d),w(m),u=!0)},o(d){S(h),S(i.$$.fragment,d),S(m),u=!1},d(d){d&&_(t),h&&h.d(),M(i),m&&m.d(),e[13](null),f=!1,p()}}}function dl(e,t,n){let i;ne(e,Se,E=>n(14,i=E));let{snippet:r}=t,{index:s=-1}=t,{tabindex:o=-1}=t,{focussed:l=!1}=t,{active:a=!1}=t,{selectMode:u=!1}=t,{observer:f=null}=t,p,h=i(u?"use_snippet.title":"edit_snippet.title"),m=s>=0&&s<10?s+1:"";m===10&&(m=0);function d(){return p.classList.contains("is-visible")}function b(E){p.scrollIntoView({behavior:"smooth",block:E})}Je(()=>{f&&f.observe(p)}),_n(()=>{f&&f.unobserve(p)});function I(E){ut.call(this,e,E)}function B(E){ve[E?"unshift":"push"](()=>{p=E,n(5,p)})}return e.$$set=E=>{"snippet"in E&&n(0,r=E.snippet),"index"in E&&n(8,s=E.index),"tabindex"in E&&n(1,o=E.tabindex),"focussed"in E&&n(2,l=E.focussed),"active"in E&&n(3,a=E.active),"selectMode"in E&&n(4,u=E.selectMode),"observer"in E&&n(9,f=E.observer)},[r,o,l,a,u,p,m,h,s,f,d,b,I,B]}class _l extends Y{constructor(t){super(),J(this,t,dl,ml,Z,{snippet:0,index:8,tabindex:1,focussed:2,active:3,selectMode:4,observer:9,isVisible:10,scrollIntoView:11})}get isVisible(){return this.$$.ctx[10]}get scrollIntoView(){return this.$$.ctx[11]}}function ei(e,t,n){const i=e.slice();return i[22]=t[n],i[23]=t,i[24]=n,i}function ti(e){let t,n=e[24],i;const r=()=>e[14](t,n),s=()=>e[14](null,n);function o(){return e[15](e[24])}let l={snippet:e[22],index:e[24],focussed:e[24]===e[4],active:e[5],observer:e[8],selectMode:e[2]};return t=new _l({props:l}),r(),t.$on("click",o),{c(){U(t.$$.fragment)},m(a,u){O(t,a,u),i=!0},p(a,u){e=a,n!==e[24]&&(s(),n=e[24],r());const f={};u&128&&(f.snippet=e[22]),u&16&&(f.focussed=e[24]===e[4]),u&32&&(f.active=e[5]),u&4&&(f.selectMode=e[2]),t.$set(f)},i(a){i||(w(t.$$.fragment,a),i=!0)},o(a){S(t.$$.fragment,a),i=!1},d(a){s(),M(t,a)}}}function gl(e){let t,n,i,r,s,o=On(e[7]),l=[];for(let u=0;u<o.length;u+=1)l[u]=ti(ei(e,o,u));const a=u=>S(l[u],1,1,()=>{l[u]=null});return{c(){t=L("ul");for(let u=0;u<l.length;u+=1)l[u].c();c(t,"tabindex",e[1]),c(t,"class","svelte-1wnqbvs")},m(u,f){g(u,t,f);for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(t,null);e[16](t),i=!0,r||(s=[te(t,"focus",e[9]),te(t,"blur",e[10]),te(t,"keydown",e[12]),dn(n=Ui.call(null,t,e[3]))],r=!0)},p(u,[f]){if(f&2548){o=On(u[7]);let p;for(p=0;p<o.length;p+=1){const h=ei(u,o,p);l[p]?(l[p].p(h,f),w(l[p],1)):(l[p]=ti(h),l[p].c(),w(l[p],1),l[p].m(t,null))}for(ue(),p=o.length;p<l.length;p+=1)a(p);fe()}(!i||f&2)&&c(t,"tabindex",u[1]),n&&Qe(n.update)&&f&8&&n.update.call(null,u[3])},i(u){if(!i){for(let f=0;f<o.length;f+=1)w(l[f]);i=!0}},o(u){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)S(l[f]);i=!1},d(u){u&&_(t),Xi(l,u),e[16](null),r=!1,Ee(s)}}}function bl(e,t,n){let i;const r=_t();let{snippets:s=null}=t,{tabindex:o=0}=t,{selectMode:l=!1}=t,{autofocus:a=!1}=t,{ref:u}=t,f=0,p=a,h=[];const m=new IntersectionObserver(function(v){for(let P=0;P<v.length;P++)v[P].isIntersecting?v[P].target.classList.add("is-visible"):v[P].target.classList.remove("is-visible")},{root:u,threshold:[.6]});function d(v){return n(4,f=0),v}function b(){n(5,p=!0)}function I(){n(5,p=!1)}function B(v){l?y(i[v]):T(i[v])}function E(v){!s||s.length===0||H(v)&&v.preventDefault()}function H(v){if(v.key==="Home"||v.key==="g")return n(4,f=0),h[f].scrollIntoView("nearest"),!0;if(v.key==="End"||v.key==="G")return n(4,f=s.length-1),h[f].scrollIntoView("nearest"),!0;if(f<s.length-1&&(v.key==="ArrowDown"||v.key==="j"))return n(4,f++,f),h[f].scrollIntoView("nearest"),!0;if(f>0&&(v.key==="ArrowUp"||v.key==="k"))return n(4,f--,f),h[f].scrollIntoView("nearest"),!0;if(v.key==="PageDown"||v.key==="d"){let P=-1,C=-1;for(let ae=0;ae<h.length;ae++)if(h[ae].isVisible())C=ae,P<0&&(P=ae);else if(C>=0)break;const le=h.length-1,re=C-P;return C+re>le?n(4,f=le):n(4,f=C),h[f].scrollIntoView("start"),!0}if(v.key==="PageUp"||v.key==="u"){let P=-1,C=-1;for(let re=0;re<h.length;re++){const ae=h[re];if(ae.isVisible()&&P<0)P=re,C=re;else if(ae.isVisible())C=re;else if(P>=0)break}const le=C-P;return P-le<=0?n(4,f=0):n(4,f=P),h[f].scrollIntoView("end"),!0}if(l&&f>=0&&f<s.length&&v.key==="Enter")return y(i[f]),!0;if(l&&["1","2","3","4","5","6","7","8","9","0"].includes(v.key)){let P=v.key-1;return P===-1&&(P=9),P+1>i.length?!1:(y(i[P]),!0)}return!l&&f>=0&&f<s.length&&(v.key==="ArrowRight"||v.key==="Enter")?(T(i[f]),!0):!1}function y(v){r("itemActivated",{snippet:v})}function T(v){r("itemEdit",{snippet:v})}ai(()=>{h.length!==i.length&&n(6,h.length=i.length,h)});function N(v,P){ve[v?"unshift":"push"](()=>{h[P]=v,n(6,h)})}const k=v=>B(v);function x(v){ve[v?"unshift":"push"](()=>{u=v,n(0,u)})}return e.$$set=v=>{"snippets"in v&&n(13,s=v.snippets),"tabindex"in v&&n(1,o=v.tabindex),"selectMode"in v&&n(2,l=v.selectMode),"autofocus"in v&&n(3,a=v.autofocus),"ref"in v&&n(0,u=v.ref)},e.$$.update=()=>{e.$$.dirty&8192&&n(7,i=d(s))},[u,o,l,a,f,p,h,i,m,b,I,B,E,s,N,k,x]}class vl extends Y{constructor(t){super(),J(this,t,bl,gl,Z,{snippets:13,tabindex:1,selectMode:2,autofocus:3,ref:0})}}function wl(e){let t,n;const i=e[2].default,r=ht(i,e,e[1],null);return{c(){t=L("div"),r&&r.c(),c(t,"class","toolbar svelte-i867mn"),X(t,"bottom",e[0])},m(s,o){g(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&2)&&mt(r,i,s,s[1],n?pt(i,s[1],o,null):dt(s[1]),null),(!n||o&1)&&X(t,"bottom",s[0])},i(s){n||(w(r,s),n=!0)},o(s){S(r,s),n=!1},d(s){s&&_(t),r&&r.d(s)}}}function El(e,t,n){let{$$slots:i={},$$scope:r}=t,{bottom:s=!1}=t;return e.$$set=o=>{"bottom"in o&&n(0,s=o.bottom),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class Rt extends Y{constructor(t){super(),J(this,t,El,wl,Z,{bottom:0})}}function yl(e){let t;return{c(){t=L("div"),c(t,"class","toolbar-spacer svelte-1a67v9")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}class kn extends Y{constructor(t){super(),J(this,t,null,yl,Z,{})}}function Sl(e){let t,n,i=e[6]("no_snippets_found.title")+"",r,s,o,l=e[6]("no_snippets_found.description")+"",a;return{c(){t=L("div"),n=L("p"),r=$(i),s=R(),o=L("p"),a=$(l),c(n,"class","no-snippets-found svelte-y4605t"),c(o,"class","no-snippets-found description dimmed svelte-y4605t"),c(t,"class","centered")},m(u,f){g(u,t,f),A(t,n),A(n,r),A(t,s),A(t,o),A(o,a)},p(u,f){f&64&&i!==(i=u[6]("no_snippets_found.title")+"")&&z(r,i),f&64&&l!==(l=u[6]("no_snippets_found.description")+"")&&z(a,l)},i:G,o:G,d(u){u&&_(t)}}}function kl(e){let t,n,i;function r(o){e[21](o)}let s={snippets:e[7],tabindex:2,selectMode:e[0],autofocus:e[8]};return e[4]!==void 0&&(s.ref=e[4]),t=new vl({props:s}),ve.push(()=>$e(t,"ref",r)),t.$on("itemActivated",e[12]),t.$on("itemEdit",e[13]),{c(){U(t.$$.fragment)},m(o,l){O(t,o,l),i=!0},p(o,l){const a={};l&128&&(a.snippets=o[7]),l&1&&(a.selectMode=o[0]),!n&&l&16&&(n=!0,a.ref=o[4],Ge(()=>n=!1)),t.$set(a)},i(o){i||(w(t.$$.fragment,o),i=!0)},o(o){S(t.$$.fragment,o),i=!1},d(o){M(t,o)}}}function ni(e){let t,n;return t=new Rt({props:{bottom:!0,$$slots:{default:[Al]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&16777280&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Al(e){let t,n,i,r,s,o;return t=new de({props:{iconClass:"dimmed",icon:Ot,size:"2.3x",title:e[6]("add_snippet.title")}}),t.$on("activate",e[10]),i=new kn({}),s=new de({props:{iconClass:"dimmed",icon:Ri,size:"2x",title:e[6]("settings.title")}}),s.$on("activate",e[11]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a&64&&(u.title=l[6]("add_snippet.title")),t.$set(u);const f={};a&64&&(f.title=l[6]("settings.title")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function Bl(e){let t,n,i,r,s,o,l,a,u,f,p;function h(y){e[18](y)}function m(y){e[19](y)}function d(y){e[20](y)}let b={search:!0,autofocus:e[1],placeholder:e[6]("search"),searchButtonTitle:e[6]("search"),clearButtonTitle:e[6]("clear"),tabindex:1};e[2]!==void 0&&(b.value=e[2]),e[3]!==void 0&&(b.ref=e[3]),e[5]!==void 0&&(b.focussed=e[5]),n=new Sn({props:b}),ve.push(()=>$e(n,"value",h)),ve.push(()=>$e(n,"ref",m)),ve.push(()=>$e(n,"focussed",d)),n.$on("query",e[9]);const I=[kl,Sl],B=[];function E(y,T){return y[7]?0:1}l=E(e),a=B[l]=I[l](e);let H=!e[0]&&ni(e);return{c(){t=L("div"),U(n.$$.fragment),o=R(),a.c(),u=R(),H&&H.c(),f=ye(),c(t,"class","toolbar top")},m(y,T){g(y,t,T),O(n,t,null),g(y,o,T),B[l].m(y,T),g(y,u,T),H&&H.m(y,T),g(y,f,T),p=!0},p(y,T){const N={};T&2&&(N.autofocus=y[1]),T&64&&(N.placeholder=y[6]("search")),T&64&&(N.searchButtonTitle=y[6]("search")),T&64&&(N.clearButtonTitle=y[6]("clear")),!i&&T&4&&(i=!0,N.value=y[2],Ge(()=>i=!1)),!r&&T&8&&(r=!0,N.ref=y[3],Ge(()=>r=!1)),!s&&T&32&&(s=!0,N.focussed=y[5],Ge(()=>s=!1)),n.$set(N);let k=l;l=E(y),l===k?B[l].p(y,T):(ue(),S(B[k],1,1,()=>{B[k]=null}),fe(),a=B[l],a?a.p(y,T):(a=B[l]=I[l](y),a.c()),w(a,1),a.m(u.parentNode,u)),y[0]?H&&(ue(),S(H,1,1,()=>{H=null}),fe()):H?(H.p(y,T),T&1&&w(H,1)):(H=ni(y),H.c(),w(H,1),H.m(f.parentNode,f))},i(y){p||(w(n.$$.fragment,y),w(a),w(H),p=!0)},o(y){S(n.$$.fragment,y),S(a),S(H),p=!1},d(y){y&&(_(t),_(o),_(u),_(f)),M(n),B[l].d(y),H&&H.d(y)}}}function Tl(e){let t,n;return t=new et({props:{$$slots:{default:[Bl]},$$scope:{ctx:e}}}),t.$on("keyup",e[14]),t.$on("cancel",e[15]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&16777471&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Il(e,t,n){let i,r,s,o;ne(e,we,C=>n(17,i=C)),ne(e,Jt,C=>n(2,r=C)),ne(e,Se,C=>n(6,s=C)),ne(e,Yt,C=>n(7,o=C));let{orderByLastUsed:l=!1}=t,{selectMode:a=!1}=t,{focusSearchBox:u=!0}=t;const f=!u;let p,h,m=u;function d(C){Wi(Jt,r=C.detail,r),Yt.search(r,l)}function b(){je("/snippet/add")}function I(){je("/settings")}function B(C){mr(C.detail.snippet.abbreviation,500)}function E(C){const le=C.detail.snippet.id;je("/snippet/edit/"+le)}function H(C,le,re){Yt.search(C,le)}function y(){m?h.focus():p.focus()}function T(C){C.ctrlKey&&C.key==="n"&&(b(),C.preventDefault()),C.ctrlKey&&C.altKey&&C.key==="s"&&(I(),C.preventDefault()),C.ctrlKey&&C.key==="f"&&(y(),C.preventDefault())}function N(){a&&er()}function k(C){r=C,Jt.set(r)}function x(C){p=C,n(3,p)}function v(C){m=C,n(5,m)}function P(C){h=C,n(4,h)}return e.$$set=C=>{"orderByLastUsed"in C&&n(16,l=C.orderByLastUsed),"selectMode"in C&&n(0,a=C.selectMode),"focusSearchBox"in C&&n(1,u=C.focusSearchBox)},e.$$.update=()=>{e.$$.dirty&196612&&H(r,l)},[a,u,r,p,h,m,s,o,f,d,b,I,B,E,T,N,l,i,k,x,v,P]}class Hl extends Y{constructor(t){super(),J(this,t,Il,Tl,Z,{orderByLastUsed:16,selectMode:0,focusSearchBox:1})}}function ii(e){let t,n,i,r,s,o,l,a;return n=new de({props:{iconClass:"dimmed",icon:Ot,title:e[0]("add_snippet.title"),size:"5x",$$slots:{default:[Cl]},$$scope:{ctx:e}}}),n.$on("activate",e[2]),s=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,title:e[0]("import_snippets.title"),size:"1.5x",$$slots:{default:[Ll]},$$scope:{ctx:e}}}),s.$on("activate",e[4]),l=new Rt({props:{bottom:!0,$$slots:{default:[Nl]},$$scope:{ctx:e}}}),{c(){t=L("p"),U(n.$$.fragment),i=R(),r=L("p"),U(s.$$.fragment),o=R(),U(l.$$.fragment),c(t,"class","add-snippet"),c(r,"class","import-snippets")},m(u,f){g(u,t,f),O(n,t,null),g(u,i,f),g(u,r,f),O(s,r,null),g(u,o,f),O(l,u,f),a=!0},p(u,f){const p={};f&1&&(p.title=u[0]("add_snippet.title")),f&33&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const h={};f&1&&(h.title=u[0]("import_snippets.title")),f&33&&(h.$$scope={dirty:f,ctx:u}),s.$set(h);const m={};f&33&&(m.$$scope={dirty:f,ctx:u}),l.$set(m)},i(u){a||(w(n.$$.fragment,u),w(s.$$.fragment,u),w(l.$$.fragment,u),a=!0)},o(u){S(n.$$.fragment,u),S(s.$$.fragment,u),S(l.$$.fragment,u),a=!1},d(u){u&&(_(t),_(i),_(r),_(o)),M(n),M(s),M(l,u)}}}function Cl(e){let t=e[0]("add_snippet.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("add_snippet.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function Ll(e){let t=e[0]("import_snippets.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("import_snippets.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function Nl(e){let t,n,i,r,s,o;return t=new de({props:{iconClass:"dimmed",icon:Ot,size:"2.3x",title:e[0]("add_snippet.title")}}),t.$on("activate",e[2]),i=new kn({}),s=new de({props:{iconClass:"dimmed",icon:Ri,size:"2x",title:e[0]("settings.title")}}),s.$on("activate",e[3]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a&1&&(u.title=l[0]("add_snippet.title")),t.$set(u);const f={};a&1&&(f.title=l[0]("settings.title")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function Pl(e){let t,n,i,r=e[0]("no_snippets_found.title")+"",s,o,l,a,u=e[1]&&ii(e);return{c(){t=L("h1"),t.textContent="Snippet Expander",n=R(),i=L("p"),s=$(r),o=R(),u&&u.c(),l=ye(),c(i,"class","dimmed")},m(f,p){g(f,t,p),g(f,n,p),g(f,i,p),A(i,s),g(f,o,p),u&&u.m(f,p),g(f,l,p),a=!0},p(f,p){(!a||p&1)&&r!==(r=f[0]("no_snippets_found.title")+"")&&z(s,r),f[1]?u?(u.p(f,p),p&2&&w(u,1)):(u=ii(f),u.c(),w(u,1),u.m(l.parentNode,l)):u&&(ue(),S(u,1,1,()=>{u=null}),fe())},i(f){a||(w(u),a=!0)},o(f){S(u),a=!1},d(f){f&&(_(t),_(n),_(i),_(o),_(l)),u&&u.d(f)}}}function Ol(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[Pl]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&35&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ml(e,t,n){let i,r;ne(e,Se,a=>n(0,i=a)),ne(e,we,a=>n(1,r=a));function s(){je("/snippet/add")}function o(){je("/settings")}async function l(){try{const a=await mi(!1)}catch(a){await oe(i("import_snippets.error_title"),a)}await Me.fetch()}return[i,r,s,o,l]}class xl extends Y{constructor(t){super(),J(this,t,Ml,Ol,Z,{})}}function Rl(e){let t,n;return t=new xl({}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p:G,i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ul(e){let t,n;return t=new Hl({props:{selectMode:e[2],orderByLastUsed:e[3],focusSearchBox:e[4]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.selectMode=i[2]),r&8&&(s.orderByLastUsed=i[3]),r&16&&(s.focusSearchBox=i[4]),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Dl(e){let t;return{c(){t=$("Checking settings ...")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}function Gl(e){let t,n,i,r;const s=[Dl,Ul,Rl],o=[];function l(a,u){return a[1]?0:a[0]&&(a[5]&&a[5].length>0||a[2])?1:2}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function $l(e,t,n){let i,r,s;ne(e,Se,p=>n(6,i=p)),ne(e,we,p=>n(0,r=p)),ne(e,Me,p=>n(5,s=p));let o=!0,l=!1,a=!1,u=!0;function f(p){Me.fetch()}return Je(async()=>{if(n(2,l=await vr()),n(3,a=l),l&&r)try{const p=await hi("FOCUS_SEARCH_BOX");n(4,u=p!=="false")}catch(p){await oe(i("settings.get_error_title"),p)}n(1,o=!1)}),e.$$.update=()=>{e.$$.dirty&1&&f()},[r,o,l,a,u,s]}class jl extends Y{constructor(t){super(),J(this,t,$l,Gl,Z,{})}}function Fl(e){let t=e[4]("button.cancel")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.cancel")+"")&&z(n,t)},d(i){i&&_(n)}}}function zl(e){let t=e[4]("button.save")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.save")+"")&&z(n,t)},d(i){i&&_(n)}}}function Vl(e){let t,n=e[4]("add_snippet.title")+"",i,r,s,o,l,a,u=e[4]("body.title")+"",f,p,h,m,d,b,I,B,E,H,y;function T(k){e[8](k)}let N={label:e[4]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(N.value=e[0]),s=new Sn({props:N}),ve.push(()=>$e(s,"value",T)),b=new Fe({props:{secondary:!0,$$slots:{default:[Fl]},$$scope:{ctx:e}}}),b.$on("click",e[5]),B=new Fe({props:{primary:!0,disabled:e[3],$$slots:{default:[zl]},$$scope:{ctx:e}}}),B.$on("click",e[6]),{c(){t=L("h2"),i=$(n),r=R(),U(s.$$.fragment),l=R(),a=L("label"),f=$(u),p=R(),h=L("textarea"),m=R(),d=L("div"),U(b.$$.fragment),I=R(),U(B.$$.fragment),c(t,"class","svelte-126nfs4"),c(a,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(d,"class","button-row svelte-126nfs4")},m(k,x){g(k,t,x),A(t,i),g(k,r,x),O(s,k,x),g(k,l,x),g(k,a,x),A(a,f),g(k,p,x),g(k,h,x),ze(h,e[2]),g(k,m,x),g(k,d,x),O(b,d,null),A(d,I),O(B,d,null),E=!0,H||(y=te(h,"input",e[9]),H=!0)},p(k,x){(!E||x&16)&&n!==(n=k[4]("add_snippet.title")+"")&&z(i,n);const v={};x&16&&(v.label=k[4]("abbreviation.title")),x&2&&(v.errorMessage=k[1]),!o&&x&1&&(o=!0,v.value=k[0],Ge(()=>o=!1)),s.$set(v),(!E||x&16)&&u!==(u=k[4]("body.title")+"")&&z(f,u),x&4&&ze(h,k[2]);const P={};x&2064&&(P.$$scope={dirty:x,ctx:k}),b.$set(P);const C={};x&8&&(C.disabled=k[3]),x&2064&&(C.$$scope={dirty:x,ctx:k}),B.$set(C)},i(k){E||(w(s.$$.fragment,k),w(b.$$.fragment,k),w(B.$$.fragment,k),E=!0)},o(k){S(s.$$.fragment,k),S(b.$$.fragment,k),S(B.$$.fragment,k),E=!1},d(k){k&&(_(t),_(r),_(l),_(a),_(p),_(h),_(m),_(d)),M(s,k),M(b),M(B),H=!1,y()}}}function Wl(e){let t,n;return t=new et({props:{$$slots:{default:[Vl]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&2079&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Xl(e,t,n){let i,r,s;ne(e,Se,d=>n(4,r=d)),ne(e,we,d=>n(7,s=d));let o="",l="";async function a(d){if(d.length===0){n(1,u=r("abbreviation.empty"));return}if(!s){n(1,u="");return}try{const b=await pi(d);if(b.hasOwnProperty("abbreviation")&&b.abbreviation.length>0){n(1,u=r("abbreviation.exists"));return}}catch(b){await oe(r("add_snippet.error_title"),b)}n(1,u="")}let u="";function f(){Be()}async function p(){try{const d=await tr(o,l);await Be()}catch(d){await oe(r("add_snippet.error_title"),d)}}function h(d){o=d,n(0,o)}function m(){l=this.value,n(2,l)}return e.$$.update=()=>{e.$$.dirty&1&&a(o),e.$$.dirty&130&&n(3,i=!s||u.length>0)},[o,u,l,i,r,f,p,s,h,m]}class ql extends Y{constructor(t){super(),J(this,t,Xl,Wl,Z,{})}}function Zl(e){let t=e[5]("button.remove")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.remove")+"")&&z(n,t)},d(i){i&&_(n)}}}function Ql(e){let t=e[5]("button.cancel")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.cancel")+"")&&z(n,t)},d(i){i&&_(n)}}}function Jl(e){let t=e[5]("button.save")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.save")+"")&&z(n,t)},d(i){i&&_(n)}}}function Yl(e){let t,n=e[5]("edit_snippet.title")+"",i,r,s,o,l,a,u=e[5]("body.title")+"",f,p,h,m,d,b,I,B,E,H,y,T,N;function k(v){e[11](v)}let x={label:e[5]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(x.value=e[0]),s=new Sn({props:x}),ve.push(()=>$e(s,"value",k)),b=new Fe({props:{danger:!0,disabled:e[3],$$slots:{default:[Zl]},$$scope:{ctx:e}}}),b.$on("click",e[7]),B=new Fe({props:{secondary:!0,$$slots:{default:[Ql]},$$scope:{ctx:e}}}),B.$on("click",e[6]),H=new Fe({props:{primary:!0,disabled:e[4],$$slots:{default:[Jl]},$$scope:{ctx:e}}}),H.$on("click",e[8]),{c(){t=L("h2"),i=$(n),r=R(),U(s.$$.fragment),l=R(),a=L("label"),f=$(u),p=R(),h=L("textarea"),m=R(),d=L("div"),U(b.$$.fragment),I=R(),U(B.$$.fragment),E=R(),U(H.$$.fragment),c(t,"class","svelte-126nfs4"),c(a,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(d,"class","button-row svelte-126nfs4")},m(v,P){g(v,t,P),A(t,i),g(v,r,P),O(s,v,P),g(v,l,P),g(v,a,P),A(a,f),g(v,p,P),g(v,h,P),ze(h,e[2]),g(v,m,P),g(v,d,P),O(b,d,null),A(d,I),O(B,d,null),A(d,E),O(H,d,null),y=!0,T||(N=te(h,"input",e[12]),T=!0)},p(v,P){(!y||P&32)&&n!==(n=v[5]("edit_snippet.title")+"")&&z(i,n);const C={};P&32&&(C.label=v[5]("abbreviation.title")),P&2&&(C.errorMessage=v[1]),!o&&P&1&&(o=!0,C.value=v[0],Ge(()=>o=!1)),s.$set(C),(!y||P&32)&&u!==(u=v[5]("body.title")+"")&&z(f,u),P&4&&ze(h,v[2]);const le={};P&8&&(le.disabled=v[3]),P&32800&&(le.$$scope={dirty:P,ctx:v}),b.$set(le);const re={};P&32800&&(re.$$scope={dirty:P,ctx:v}),B.$set(re);const ae={};P&16&&(ae.disabled=v[4]),P&32800&&(ae.$$scope={dirty:P,ctx:v}),H.$set(ae)},i(v){y||(w(s.$$.fragment,v),w(b.$$.fragment,v),w(B.$$.fragment,v),w(H.$$.fragment,v),y=!0)},o(v){S(s.$$.fragment,v),S(b.$$.fragment,v),S(B.$$.fragment,v),S(H.$$.fragment,v),y=!1},d(v){v&&(_(t),_(r),_(l),_(a),_(p),_(h),_(m),_(d)),M(s,v),M(b),M(B),M(H),T=!1,N()}}}function Kl(e){let t,n;return t=new et({props:{$$slots:{default:[Yl]},$$scope:{ctx:e}}}),t.$on("cancel",e[6]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&32831&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function ea(e,t,n){let i,r,s,o;ne(e,Se,E=>n(5,s=E)),ne(e,we,E=>n(10,o=E));let{params:l={}}=t,a={},u="",f="";async function p(E){if(n(1,h=""),!!a.hasOwnProperty("id")){if(E.length===0){n(1,h=s("abbreviation.empty"));return}if(o)try{const H=await pi(E);H.hasOwnProperty("abbreviation")&&H.abbreviation.length>0&&H.id!==a.id&&n(1,h=s("abbreviation.exists"))}catch(H){await oe(s("edit_snippet.error_title"),H)}}}let h="";function m(){Be()}async function d(){try{await _r(a.abbreviation),await Be()}catch(E){await oe(s("remove_snippet.error_title"),E)}}async function b(){let E={...a};E.abbreviation=u,E.body=f;try{await Sr(a.id,E),await Be()}catch(H){await oe(s("edit_snippet.error_title"),H)}}Je(async()=>{l.hasOwnProperty("id")||(await oe(s("edit_snippet.error_title"),s("edit_snippet.id_not_supplied")),await Be());try{a=await fr(l.id)}catch(H){await oe(s("edit_snippet.error_title"),H),await Be()}let E=!1;try{E=await pr(a.id)}catch(H){await oe(s("edit_snippet.error_title"),H),await Be()}E&&(await oe(s("edit_snippet.error_title"),s("edit_snippet.snippet_not_found")),await Be()),n(0,u=a.abbreviation),n(2,f=a.body)});function I(E){u=E,n(0,u)}function B(){f=this.value,n(2,f)}return e.$$set=E=>{"params"in E&&n(9,l=E.params)},e.$$.update=()=>{e.$$.dirty&1&&p(u),e.$$.dirty&1026&&n(4,i=!o||h.length>0),e.$$.dirty&1024&&n(3,r=!o)},[u,h,f,r,i,s,m,d,b,l,o,I,B]}class ta extends Y{constructor(t){super(),J(this,t,ea,Kl,Z,{params:9})}}function na(e){let t,n,i,r,s,o;return t=new de({props:{horizontal:!0,iconClass:"dimmed",icon:xi,size:"2.5x",title:e[6]("button.back")}}),t.$on("activate",e[8]),i=new kn({}),s=new de({props:{horizontal:!0,iconClass:"dimmed",icon:wo,size:"2.5x",title:e[6]("button.about")}}),s.$on("activate",e[9]),{c(){U(t.$$.fragment),n=R(),U(i.$$.fragment),r=R(),U(s.$$.fragment)},m(l,a){O(t,l,a),g(l,n,a),O(i,l,a),g(l,r,a),O(s,l,a),o=!0},p(l,a){const u={};a[0]&64&&(u.title=l[6]("button.back")),t.$set(u);const f={};a[0]&64&&(f.title=l[6]("button.about")),s.$set(f)},i(l){o||(w(t.$$.fragment,l),w(i.$$.fragment,l),w(s.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),S(i.$$.fragment,l),S(s.$$.fragment,l),o=!1},d(l){l&&(_(n),_(r)),M(t,l),M(i,l),M(s,l)}}}function ia(e){let t,n=e[6]("settings.custom_shortcuts_disabled")+"",i;return{c(){t=L("p"),i=$(n),c(t,"class","dimmed svelte-1fggvh7")},m(r,s){g(r,t,s),A(t,i)},p(r,s){s[0]&64&&n!==(n=r[6]("settings.custom_shortcuts_disabled")+"")&&z(i,n)},i:G,o:G,d(r){r&&_(t)}}}function ra(e){let t,n,i,r;const s=[oa,sa],o=[];function l(a,u){return a[5].length>0?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,u){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function sa(e){let t,n=e[6]("settings.custom_shortcut")+"",i,r,s,o,l,a;return s=new xt({props:{shortcut:e[6]("settings.custom_shortcut_empty")}}),l=new de({props:{horizontal:!0,iconClass:"dimmed",icon:Ot,size:"2.0x",title:e[6]("settings.add_default_custom_shortcut")}}),l.$on("activate",e[22]),{c(){t=L("p"),i=$(n),r=$(": "),U(s.$$.fragment),o=R(),U(l.$$.fragment),c(t,"class","row svelte-1fggvh7")},m(u,f){g(u,t,f),A(t,i),A(t,r),O(s,t,null),A(t,o),O(l,t,null),a=!0},p(u,f){(!a||f[0]&64)&&n!==(n=u[6]("settings.custom_shortcut")+"")&&z(i,n);const p={};f[0]&64&&(p.shortcut=u[6]("settings.custom_shortcut_empty")),s.$set(p);const h={};f[0]&64&&(h.title=u[6]("settings.add_default_custom_shortcut")),l.$set(h)},i(u){a||(w(s.$$.fragment,u),w(l.$$.fragment,u),a=!0)},o(u){S(s.$$.fragment,u),S(l.$$.fragment,u),a=!1},d(u){u&&_(t),M(s),M(l)}}}function oa(e){let t,n=e[6]("settings.custom_shortcut")+"",i,r,s,o,l,a,u,f=e[6]("settings.change_custom_shortcut_desc")+"",p,h;return s=new xt({props:{shortcut:e[5]}}),l=new de({props:{horizontal:!0,iconClass:"dimmed",icon:Co,size:"1.75x",title:e[6]("settings.remove_custom_shortcut")}}),l.$on("activate",e[21]),{c(){t=L("p"),i=$(n),r=$(": "),U(s.$$.fragment),o=R(),U(l.$$.fragment),a=R(),u=L("p"),p=$(f),c(t,"class","row svelte-1fggvh7"),c(u,"class","dimmed svelte-1fggvh7")},m(m,d){g(m,t,d),A(t,i),A(t,r),O(s,t,null),A(t,o),O(l,t,null),g(m,a,d),g(m,u,d),A(u,p),h=!0},p(m,d){(!h||d[0]&64)&&n!==(n=m[6]("settings.custom_shortcut")+"")&&z(i,n);const b={};d[0]&32&&(b.shortcut=m[5]),s.$set(b);const I={};d[0]&64&&(I.title=m[6]("settings.remove_custom_shortcut")),l.$set(I),(!h||d[0]&64)&&f!==(f=m[6]("settings.change_custom_shortcut_desc")+"")&&z(p,f)},i(m){h||(w(s.$$.fragment,m),w(l.$$.fragment,m),h=!0)},o(m){S(s.$$.fragment,m),S(l.$$.fragment,m),h=!1},d(m){m&&(_(t),_(a),_(u)),M(s),M(l)}}}function la(e){let t=e[6]("settings.no_connection")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("settings.no_connection")+"")&&z(n,t)},i:G,o:G,d(i){i&&_(n)}}}function aa(e){let t,n=e[6]("settings.import_export_title")+"",i,r,s,o,l,a,u,f,p;o=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,size:"1.5x",title:e[6]("import_snippets.new_only_title"),$$slots:{default:[ua]},$$scope:{ctx:e}}}),o.$on("activate",e[25]),a=new de({props:{horizontal:!0,iconClass:"dimmed",icon:hn,size:"1.5x",title:e[6]("import_snippets.update_title"),$$slots:{default:[fa]},$$scope:{ctx:e}}}),a.$on("activate",e[26]);let h=e[7]&&e[7].length>0&&ri(e);return{c(){t=L("h3"),i=$(n),r=R(),s=L("p"),U(o.$$.fragment),l=R(),U(a.$$.fragment),u=R(),h&&h.c(),f=ye(),c(t,"class","svelte-1fggvh7"),c(s,"class","import-snippets svelte-1fggvh7")},m(m,d){g(m,t,d),A(t,i),g(m,r,d),g(m,s,d),O(o,s,null),A(s,l),O(a,s,null),g(m,u,d),h&&h.m(m,d),g(m,f,d),p=!0},p(m,d){(!p||d[0]&64)&&n!==(n=m[6]("settings.import_export_title")+"")&&z(i,n);const b={};d[0]&64&&(b.title=m[6]("import_snippets.new_only_title")),d[0]&64|d[1]&4&&(b.$$scope={dirty:d,ctx:m}),o.$set(b);const I={};d[0]&64&&(I.title=m[6]("import_snippets.update_title")),d[0]&64|d[1]&4&&(I.$$scope={dirty:d,ctx:m}),a.$set(I),m[7]&&m[7].length>0?h?(h.p(m,d),d[0]&128&&w(h,1)):(h=ri(m),h.c(),w(h,1),h.m(f.parentNode,f)):h&&(ue(),S(h,1,1,()=>{h=null}),fe())},i(m){p||(w(o.$$.fragment,m),w(a.$$.fragment,m),w(h),p=!0)},o(m){S(o.$$.fragment,m),S(a.$$.fragment,m),S(h),p=!1},d(m){m&&(_(t),_(r),_(s),_(u),_(f)),M(o),M(a),h&&h.d(m)}}}function ua(e){let t=e[6]("import_snippets.new_only_title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("import_snippets.new_only_title")+"")&&z(n,t)},d(i){i&&_(n)}}}function fa(e){let t=e[6]("import_snippets.update_title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("import_snippets.update_title")+"")&&z(n,t)},d(i){i&&_(n)}}}function ri(e){let t,n,i;return n=new de({props:{horizontal:!0,iconClass:"dimmed",icon:fo,size:"1.5x",title:e[6]("export_snippets.title"),$$slots:{default:[ca]},$$scope:{ctx:e}}}),n.$on("activate",e[16]),{c(){t=L("p"),U(n.$$.fragment),c(t,"class","export-snippets svelte-1fggvh7")},m(r,s){g(r,t,s),O(n,t,null),i=!0},p(r,s){const o={};s[0]&64&&(o.title=r[6]("export_snippets.title")),s[0]&64|s[1]&4&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){i||(w(n.$$.fragment,r),i=!0)},o(r){S(n.$$.fragment,r),i=!1},d(r){r&&_(t),M(n)}}}function ca(e){let t=e[6]("export_snippets.title")+"",n;return{c(){n=$(t)},m(i,r){g(i,n,r)},p(i,r){r[0]&64&&t!==(t=i[6]("export_snippets.title")+"")&&z(n,t)},d(i){i&&_(n)}}}function ha(e){let t,n,i,r=e[6]("settings.title")+"",s,o,l,a=e[6]("settings.autostart_title")+"",u,f,p,h,m,d,b=e[6]("settings.autostart")+"",I,B,E,H=e[6]("settings.autoexpand_title")+"",y,T,N,k,x,v,P=e[6]("settings.autoexpand")+"",C,le,re,ae=e[6]("settings.search_and_paste_title")+"",_e,ge,ce,pe,he,j,ie,F,K,Pe=e[6]("settings.focus_search")+"",Ut,Dt,be,ke,tt,Ae,Gt,An;t=new Rt({props:{$$slots:{default:[na]},$$scope:{ctx:e}}});const Bn=[ra,ia],Ie=[];function Tn(D,W){return D[4]?0:1}ce=Tn(e),pe=Ie[ce]=Bn[ce](e);const In=[aa,la],He=[];function Hn(D,W){return D[0]?0:1}return be=Hn(e),ke=He[be]=In[be](e),{c(){U(t.$$.fragment),n=R(),i=L("h2"),s=$(r),o=R(),l=L("h3"),u=$(a),f=R(),p=L("p"),h=L("label"),m=L("input"),d=R(),I=$(b),B=R(),E=L("h3"),y=$(H),T=R(),N=L("p"),k=L("label"),x=L("input"),v=R(),C=$(P),le=R(),re=L("h3"),_e=$(ae),ge=R(),pe.c(),he=R(),j=L("p"),ie=L("label"),F=L("input"),K=R(),Ut=$(Pe),Dt=R(),ke.c(),tt=ye(),c(i,"class","svelte-1fggvh7"),c(l,"class","svelte-1fggvh7"),c(m,"type","checkbox"),c(p,"class","svelte-1fggvh7"),c(E,"class","svelte-1fggvh7"),c(x,"type","checkbox"),c(N,"class","svelte-1fggvh7"),c(re,"class","svelte-1fggvh7"),c(F,"type","checkbox"),c(j,"class","svelte-1fggvh7")},m(D,W){O(t,D,W),g(D,n,W),g(D,i,W),A(i,s),g(D,o,W),g(D,l,W),A(l,u),g(D,f,W),g(D,p,W),A(p,h),A(h,m),m.checked=e[1],A(h,d),A(h,I),g(D,B,W),g(D,E,W),A(E,y),g(D,T,W),g(D,N,W),A(N,k),A(k,x),x.checked=e[2],A(k,v),A(k,C),g(D,le,W),g(D,re,W),A(re,_e),g(D,ge,W),Ie[ce].m(D,W),g(D,he,W),g(D,j,W),A(j,ie),A(ie,F),F.checked=e[3],A(ie,K),A(ie,Ut),g(D,Dt,W),He[be].m(D,W),g(D,tt,W),Ae=!0,Gt||(An=[te(m,"change",e[17]),te(m,"change",e[18]),dn(Ui.call(null,m,!0)),te(x,"change",e[19]),te(x,"change",e[20]),te(F,"change",e[23]),te(F,"change",e[24])],Gt=!0)},p(D,W){const Cn={};W[0]&64|W[1]&4&&(Cn.$$scope={dirty:W,ctx:D}),t.$set(Cn),(!Ae||W[0]&64)&&r!==(r=D[6]("settings.title")+"")&&z(s,r),(!Ae||W[0]&64)&&a!==(a=D[6]("settings.autostart_title")+"")&&z(u,a),W[0]&2&&(m.checked=D[1]),(!Ae||W[0]&64)&&b!==(b=D[6]("settings.autostart")+"")&&z(I,b),(!Ae||W[0]&64)&&H!==(H=D[6]("settings.autoexpand_title")+"")&&z(y,H),W[0]&4&&(x.checked=D[2]),(!Ae||W[0]&64)&&P!==(P=D[6]("settings.autoexpand")+"")&&z(C,P),(!Ae||W[0]&64)&&ae!==(ae=D[6]("settings.search_and_paste_title")+"")&&z(_e,ae);let $t=ce;ce=Tn(D),ce===$t?Ie[ce].p(D,W):(ue(),S(Ie[$t],1,1,()=>{Ie[$t]=null}),fe(),pe=Ie[ce],pe?pe.p(D,W):(pe=Ie[ce]=Bn[ce](D),pe.c()),w(pe,1),pe.m(he.parentNode,he)),W[0]&8&&(F.checked=D[3]),(!Ae||W[0]&64)&&Pe!==(Pe=D[6]("settings.focus_search")+"")&&z(Ut,Pe);let jt=be;be=Hn(D),be===jt?He[be].p(D,W):(ue(),S(He[jt],1,1,()=>{He[jt]=null}),fe(),ke=He[be],ke?ke.p(D,W):(ke=He[be]=In[be](D),ke.c()),w(ke,1),ke.m(tt.parentNode,tt))},i(D){Ae||(w(t.$$.fragment,D),w(pe),w(ke),Ae=!0)},o(D){S(t.$$.fragment,D),S(pe),S(ke),Ae=!1},d(D){D&&(_(n),_(i),_(o),_(l),_(f),_(p),_(B),_(E),_(T),_(N),_(le),_(re),_(ge),_(he),_(j),_(Dt),_(tt)),M(t,D),Ie[ce].d(D),He[be].d(D),Gt=!1,Ee(An)}}}function pa(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[ha]},$$scope:{ctx:e}}}),t.$on("cancel",e[8]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r[0]&255|r[1]&4&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}const ma="Snippet Expander Search & Paste pop-up window",Kt="snippetexpandergui --search-and-paste",si="<Ctrl>grave";function da(e,t,n){let i,r,s;ne(e,Se,j=>n(6,i=j)),ne(e,we,j=>n(0,r=j)),ne(e,Me,j=>n(7,s=j));let o=!1,l=!1,a=!0,u=!1,f=si;function p(){Be()}function h(){je("/about")}async function m(){let j=!1;try{j=await ar()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function d(j){try{await yr(j)}catch(ie){await oe(i("settings.save_error_title"),ie);return}return j}async function b(){let j=!1;try{j=await lr()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function I(j){try{await Er(j)}catch(ie){await oe(i("settings.save_error_title"),ie);return}return j}async function B(){let j="";try{j=await hi("FOCUS_SEARCH_BOX")}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j!=="false"}async function E(){let j=!1;try{j=await nr()}catch(ie){await oe(i("settings.get_error_title"),ie);return}return j}async function H(){try{n(5,f=await ur(Kt))}catch(j){await oe(i("settings.get_error_title"),j);return}}async function y(){try{await gr(ma,si,Kt,"")}catch(j){await oe(i("settings.save_error_title"),j)}await H()}async function T(){try{await rr(Kt,f)}catch(j){await oe(i("settings.delete_error_title"),j)}await H()}async function N(j){const ie=j?"true":"false";try{await br("FOCUS_SEARCH_BOX",ie)}catch(F){await oe(i("settings.save_error_title"),F);return}return j}function k(j){Me.fetch()}async function x(j){try{const ie=await mi(j)}catch(ie){await oe(i("import_snippets.error_title"),ie)}await Me.fetch()}async function v(){try{const j=await sr()}catch(j){await oe(i("export_snippets.error_title"),j)}}Je(async()=>{n(1,o=await m()),n(2,l=await b()),n(3,a=await B()),n(4,u=await E()),u&&await H()});function P(){o=this.checked,n(1,o)}const C=()=>d(o);function le(){l=this.checked,n(2,l)}const re=()=>I(l),ae=()=>T(),_e=()=>y();function ge(){a=this.checked,n(3,a)}const ce=()=>N(a),pe=()=>x(!1),he=()=>x(!0);return e.$$.update=()=>{e.$$.dirty[0]&1&&k()},[r,o,l,a,u,f,i,s,p,h,d,I,y,T,N,x,v,P,C,le,re,ae,_e,ge,ce,pe,he]}class _a extends Y{constructor(t){super(),J(this,t,da,pa,Z,{},null,[-1,-1])}}const ga="/assets/snippetexpander-icon-128-a0af7490.svg";function ba(e){let t,n;return t=new de({props:{horizontal:!0,iconClass:"dimmed",icon:xi,size:"2.5x",title:e[3]("button.back")}}),t.$on("activate",e[4]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,r){const s={};r&8&&(s.title=i[3]("button.back")),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function va(e){let t,n,i,r,s,o,l,a,u,f=e[3]("about.description")+"",p,h,m,d,b,I,B,E,H,y,T=e[3]("about.by")+"",N,k,x,v,P,C,le=e[3]("about.licence_title")+"",re,ae,_e,ge,ce=e[3]("about.licence")+"",pe,he,j,ie;return t=new Rt({props:{$$slots:{default:[ba]},$$scope:{ctx:e}}}),{c(){U(t.$$.fragment),n=R(),i=L("img"),s=R(),o=L("h2"),o.textContent="Snippet Expander",l=R(),a=L("p"),u=L("em"),p=$(f),h=R(),m=L("p"),d=L("a"),b=$(e[2]),I=R(),B=L("p"),E=L("a"),E.textContent="snippetexpander.org",H=R(),y=L("h3"),N=$(T),k=R(),x=L("p"),v=L("a"),v.textContent="ianmjones",P=R(),C=L("h3"),re=$(le),ae=R(),_e=L("p"),ge=L("a"),pe=$(ce),zi(i.src,r=ga)||c(i,"src",r),c(i,"alt","Snippet Expander icon"),c(o,"class","svelte-sjm2tb"),c(a,"class","svelte-sjm2tb"),c(d,"href",e[0]),c(m,"class","svelte-sjm2tb"),c(E,"href","https://snippetexpander.org"),c(B,"class","svelte-sjm2tb"),c(y,"class","svelte-sjm2tb"),c(v,"href","https://ianmjones.com"),c(x,"class","svelte-sjm2tb"),c(C,"class","svelte-sjm2tb"),c(ge,"href",e[1]),c(_e,"class","svelte-sjm2tb")},m(F,K){O(t,F,K),g(F,n,K),g(F,i,K),g(F,s,K),g(F,o,K),g(F,l,K),g(F,a,K),A(a,u),A(u,p),g(F,h,K),g(F,m,K),A(m,d),A(d,b),g(F,I,K),g(F,B,K),A(B,E),g(F,H,K),g(F,y,K),A(y,N),g(F,k,K),g(F,x,K),A(x,v),g(F,P,K),g(F,C,K),A(C,re),g(F,ae,K),g(F,_e,K),A(_e,ge),A(ge,pe),he=!0,j||(ie=[te(d,"click",vt(e[6])),te(E,"click",vt(e[7])),te(v,"click",vt(e[8])),te(ge,"click",vt(e[9]))],j=!0)},p(F,K){const Pe={};K&1032&&(Pe.$$scope={dirty:K,ctx:F}),t.$set(Pe),(!he||K&8)&&f!==(f=F[3]("about.description")+"")&&z(p,f),(!he||K&4)&&z(b,F[2]),(!he||K&1)&&c(d,"href",F[0]),(!he||K&8)&&T!==(T=F[3]("about.by")+"")&&z(N,T),(!he||K&8)&&le!==(le=F[3]("about.licence_title")+"")&&z(re,le),(!he||K&8)&&ce!==(ce=F[3]("about.licence")+"")&&z(pe,ce),(!he||K&2)&&c(ge,"href",F[1])},i(F){he||(w(t.$$.fragment,F),he=!0)},o(F){S(t.$$.fragment,F),he=!1},d(F){F&&(_(n),_(i),_(s),_(o),_(l),_(a),_(h),_(m),_(I),_(B),_(H),_(y),_(k),_(x),_(P),_(C),_(ae),_(_e)),M(t,F),j=!1,Ee(ie)}}}function wa(e){let t,n;return t=new et({props:{centered:!0,$$slots:{default:[va]},$$scope:{ctx:e}}}),t.$on("cancel",e[4]),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p(i,[r]){const s={};r&1039&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function Ea(e,t,n){let i,r,s,o;ne(e,Se,m=>n(3,o=m));function l(){Be()}let a="";Je(async()=>{n(5,a=await hr())});const u=()=>wt(r),f=()=>wt("https://snippetexpander.org"),p=()=>wt("https://ianmjones.com"),h=()=>wt(s);return e.$$.update=()=>{e.$$.dirty&32&&n(2,i="v"+a),e.$$.dirty&32&&n(0,r="https://git.sr.ht/~ianmjones/snippetexpander/tree/"+a),e.$$.dirty&1&&n(1,s=r+"/item/LICENSE")},[r,s,i,o,l,a,u,f,p,h]}class ya extends Y{constructor(t){super(),J(this,t,Ea,wa,Z,{})}}function Sa(e){let t,n;return t=new no({props:{routes:e[1]}}),{c(){U(t.$$.fragment)},m(i,r){O(t,i,r),n=!0},p:G,i(i){n||(w(t.$$.fragment,i),n=!0)},o(i){S(t.$$.fragment,i),n=!1},d(i){M(t,i)}}}function ka(e){let t;return{c(){t=$("Loading...")},m(n,i){g(n,t,i)},p:G,i:G,o:G,d(n){n&&_(t)}}}function Aa(e){let t,n,i,r;const s=[ka,Sa],o=[];function l(a,u){return a[0]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ye()},m(a,u){o[t].m(a,u),g(a,i,u),r=!0},p(a,[u]){let f=t;t=l(a),t===f?o[t].p(a,u):(ue(),S(o[f],1,1,()=>{o[f]=null}),fe(),n=o[t],n?n.p(a,u):(n=o[t]=s[t](a),n.c()),w(n,1),n.m(i.parentNode,i))},i(a){r||(w(n),r=!0)},o(a){S(n),r=!1},d(a){a&&_(i),o[t].d(a)}}}function Ba(e,t,n){let i;ne(e,kt,a=>n(0,i=a));let r;async function s(){try{const a=await dr("Pong");a==="Pong"?we.update(u=>!0):(we.update(u=>!1),Vt("Got '"+a+"' back from Ping instead of 'Pong'.")),rt.update(u=>!0),Ht.update(u=>!1)}catch(a){we.update(u=>!1),Vt("Ping returned: "+a),o()}}async function o(){try{await ir()?rt.update(u=>!0):rt.update(u=>!1)}catch(a){rt.update(u=>!1),Vt("DaemonInstalled returned: "+a)}}Os("en-GB",()=>Fi(()=>import("./en-GB-0a4787dd.js"),[])),xs({fallbackLocale:"en-GB",initialLocale:Rs()});const l={"/":jl,"/snippet/add":ql,"/snippet/edit/:id":ta,"/settings":_a,"/about":ya};return Je(async()=>{await s(),r=setInterval(s,5e3)}),_n(()=>{clearInterval(r)}),[i,l]}class Ta extends Y{constructor(t){super(),J(this,t,Ba,Aa,Z,{})}}new Ta({target:document.getElementById("app")});

M cmd/snippetexpandergui/frontend/dist/index.html => cmd/snippetexpandergui/frontend/dist/index.html +1 -1
@@ 5,7 5,7 @@
	<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
	
	<title>Snippet Expander</title>
  <script type="module" crossorigin src="/assets/index-a2f4a5b6.js"></script>
  <script type="module" crossorigin src="/assets/index-68176ace.js"></script>
  <link rel="stylesheet" href="/assets/index-e2d949f4.css">
</head>
<body>

M cmd/snippetexpandergui/frontend/package-lock.json => cmd/snippetexpandergui/frontend/package-lock.json +1204 -1204
@@ 1,1206 1,1206 @@
{
  "name": "frontend",
  "version": "2.0.0-alpha.7",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "frontend",
      "version": "2.0.0-alpha.7",
      "devDependencies": {
        "@sveltejs/vite-plugin-svelte": "^2.4.3",
        "svelte": "^4.1.2",
        "svelte-feather-icons": "^4.0.1",
        "svelte-i18n": "^3.7.0",
        "svelte-spa-router": "^3.3.0",
        "vite": "^4.4.8"
      }
    },
    "node_modules/@ampproject/remapping": {
      "version": "2.2.1",
      "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
      "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
      "dev": true,
      "dependencies": {
        "@jridgewell/gen-mapping": "^0.3.0",
        "@jridgewell/trace-mapping": "^0.3.9"
      },
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@esbuild/android-arm": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.17.tgz",
      "integrity": "sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg==",
      "cpu": [
        "arm"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/android-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.17.tgz",
      "integrity": "sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/android-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.17.tgz",
      "integrity": "sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/darwin-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.17.tgz",
      "integrity": "sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/darwin-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.17.tgz",
      "integrity": "sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/freebsd-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.17.tgz",
      "integrity": "sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "freebsd"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/freebsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.17.tgz",
      "integrity": "sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "freebsd"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-arm": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.17.tgz",
      "integrity": "sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg==",
      "cpu": [
        "arm"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.17.tgz",
      "integrity": "sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-ia32": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.17.tgz",
      "integrity": "sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg==",
      "cpu": [
        "ia32"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-loong64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.17.tgz",
      "integrity": "sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg==",
      "cpu": [
        "loong64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-mips64el": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.17.tgz",
      "integrity": "sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ==",
      "cpu": [
        "mips64el"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-ppc64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.17.tgz",
      "integrity": "sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ==",
      "cpu": [
        "ppc64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-riscv64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.17.tgz",
      "integrity": "sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g==",
      "cpu": [
        "riscv64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-s390x": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.17.tgz",
      "integrity": "sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg==",
      "cpu": [
        "s390x"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.17.tgz",
      "integrity": "sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/netbsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.17.tgz",
      "integrity": "sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "netbsd"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/openbsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.17.tgz",
      "integrity": "sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "openbsd"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/sunos-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.17.tgz",
      "integrity": "sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "sunos"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.17.tgz",
      "integrity": "sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-ia32": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.17.tgz",
      "integrity": "sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg==",
      "cpu": [
        "ia32"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.17.tgz",
      "integrity": "sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@formatjs/ecma402-abstract": {
      "version": "1.11.4",
      "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
      "integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
      "dev": true,
      "dependencies": {
        "@formatjs/intl-localematcher": "0.2.25",
        "tslib": "^2.1.0"
      }
    },
    "node_modules/@formatjs/fast-memoize": {
      "version": "1.2.1",
      "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
      "integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
      "dev": true,
      "dependencies": {
        "tslib": "^2.1.0"
      }
    },
    "node_modules/@formatjs/icu-messageformat-parser": {
      "version": "2.1.0",
      "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
      "integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
      "dev": true,
      "dependencies": {
        "@formatjs/ecma402-abstract": "1.11.4",
        "@formatjs/icu-skeleton-parser": "1.3.6",
        "tslib": "^2.1.0"
      }
    },
    "node_modules/@formatjs/icu-skeleton-parser": {
      "version": "1.3.6",
      "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
      "integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
      "dev": true,
      "dependencies": {
        "@formatjs/ecma402-abstract": "1.11.4",
        "tslib": "^2.1.0"
      }
    },
    "node_modules/@formatjs/intl-localematcher": {
      "version": "0.2.25",
      "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
      "integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
      "dev": true,
      "dependencies": {
        "tslib": "^2.1.0"
      }
    },
    "node_modules/@jridgewell/gen-mapping": {
      "version": "0.3.3",
      "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
      "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
      "dev": true,
      "dependencies": {
        "@jridgewell/set-array": "^1.0.1",
        "@jridgewell/sourcemap-codec": "^1.4.10",
        "@jridgewell/trace-mapping": "^0.3.9"
      },
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/resolve-uri": {
      "version": "3.1.0",
      "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
      "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
      "dev": true,
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/set-array": {
      "version": "1.1.2",
      "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
      "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
      "dev": true,
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/sourcemap-codec": {
      "version": "1.4.15",
      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
      "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
      "dev": true
    },
    "node_modules/@jridgewell/trace-mapping": {
      "version": "0.3.18",
      "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz",
      "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==",
      "dev": true,
      "dependencies": {
        "@jridgewell/resolve-uri": "3.1.0",
        "@jridgewell/sourcemap-codec": "1.4.14"
      }
    },
    "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": {
      "version": "1.4.14",
      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
      "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
      "dev": true
    },
    "node_modules/@sveltejs/vite-plugin-svelte": {
      "version": "2.4.3",
      "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.3.tgz",
      "integrity": "sha512-NY2h+B54KHZO3kDURTdARqthn6D4YSIebtfW75NvZ/fwyk4G+AJw3V/i0OBjyN4406Ht9yZcnNWMuRUFnDNNiA==",
      "dev": true,
      "dependencies": {
        "@sveltejs/vite-plugin-svelte-inspector": "^1.0.3",
        "debug": "^4.3.4",
        "deepmerge": "^4.3.1",
        "kleur": "^4.1.5",
        "magic-string": "^0.30.1",
        "svelte-hmr": "^0.15.2",
        "vitefu": "^0.2.4"
      },
      "engines": {
        "node": "^14.18.0 || >= 16"
      },
      "peerDependencies": {
        "svelte": "^3.54.0 || ^4.0.0",
        "vite": "^4.0.0"
      }
    },
    "node_modules/@sveltejs/vite-plugin-svelte-inspector": {
      "version": "1.0.3",
      "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-1.0.3.tgz",
      "integrity": "sha512-Khdl5jmmPN6SUsVuqSXatKpQTMIifoQPDanaxC84m9JxIibWvSABJyHpyys0Z+1yYrxY5TTEQm+6elh0XCMaOA==",
      "dev": true,
      "dependencies": {
        "debug": "^4.3.4"
      },
      "engines": {
        "node": "^14.18.0 || >= 16"
      },
      "peerDependencies": {
        "@sveltejs/vite-plugin-svelte": "^2.2.0",
        "svelte": "^3.54.0 || ^4.0.0",
        "vite": "^4.0.0"
      }
    },
    "node_modules/@types/estree": {
      "version": "1.0.1",
      "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz",
      "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
      "dev": true
    },
    "node_modules/acorn": {
      "version": "8.10.0",
      "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
      "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
      "dev": true,
      "bin": {
        "acorn": "bin/acorn"
      },
      "engines": {
        "node": ">=0.4.0"
      }
    },
    "node_modules/aria-query": {
      "version": "5.3.0",
      "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
      "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
      "dev": true,
      "dependencies": {
        "dequal": "^2.0.3"
      }
    },
    "node_modules/axobject-query": {
      "version": "3.2.1",
      "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
      "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
      "dev": true,
      "dependencies": {
        "dequal": "^2.0.3"
      }
    },
    "node_modules/cli-color": {
      "version": "2.0.3",
      "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
      "integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
      "dev": true,
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.61",
        "es6-iterator": "^2.0.3",
        "memoizee": "^0.4.15",
        "timers-ext": "^0.1.7"
      },
      "engines": {
        "node": ">=0.10"
      }
    },
    "node_modules/code-red": {
      "version": "1.0.3",
      "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.3.tgz",
      "integrity": "sha512-kVwJELqiILQyG5aeuyKFbdsI1fmQy1Cmf7dQ8eGmVuJoaRVdwey7WaMknr2ZFeVSYSKT0rExsa8EGw0aoI/1QQ==",
      "dev": true,
      "dependencies": {
        "@jridgewell/sourcemap-codec": "^1.4.14",
        "@types/estree": "^1.0.0",
        "acorn": "^8.8.2",
        "estree-walker": "^3.0.3",
        "periscopic": "^3.1.0"
      }
    },
    "node_modules/css-tree": {
      "version": "2.3.1",
      "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
      "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
      "dev": true,
      "dependencies": {
        "mdn-data": "2.0.30",
        "source-map-js": "^1.0.1"
      },
      "engines": {
        "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
      }
    },
    "node_modules/d": {
      "version": "1.0.1",
      "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
      "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
      "dev": true,
      "dependencies": {
        "es5-ext": "^0.10.50",
        "type": "^1.0.1"
      }
    },
    "node_modules/debug": {
      "version": "4.3.4",
      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
      "dev": true,
      "dependencies": {
        "ms": "2.1.2"
      },
      "engines": {
        "node": ">=6.0"
      },
      "peerDependenciesMeta": {
        "supports-color": {
          "optional": true
        }
      }
    },
    "node_modules/deepmerge": {
      "version": "4.3.1",
      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
      "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
      "dev": true,
      "engines": {
        "node": ">=0.10.0"
      }
    },
    "node_modules/dequal": {
      "version": "2.0.3",
      "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
      "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
      "dev": true,
      "engines": {
        "node": ">=6"
      }
    },
    "node_modules/es5-ext": {
      "version": "0.10.62",
      "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
      "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
      "dev": true,
      "hasInstallScript": true,
      "dependencies": {
        "es6-iterator": "^2.0.3",
        "es6-symbol": "^3.1.3",
        "next-tick": "^1.1.0"
      },
      "engines": {
        "node": ">=0.10"
      }
    },
    "node_modules/es6-iterator": {
      "version": "2.0.3",
      "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
      "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
      "dev": true,
      "dependencies": {
        "d": "1",
        "es5-ext": "^0.10.35",
        "es6-symbol": "^3.1.1"
      }
    },
    "node_modules/es6-symbol": {
      "version": "3.1.3",
      "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
      "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
      "dev": true,
      "dependencies": {
        "d": "^1.0.1",
        "ext": "^1.1.2"
      }
    },
    "node_modules/es6-weak-map": {
      "version": "2.0.3",
      "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
      "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
      "dev": true,
      "dependencies": {
        "d": "1",
        "es5-ext": "^0.10.46",
        "es6-iterator": "^2.0.3",
        "es6-symbol": "^3.1.1"
      }
    },
    "node_modules/esbuild": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.17.tgz",
      "integrity": "sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg==",
      "dev": true,
      "hasInstallScript": true,
      "bin": {
        "esbuild": "bin/esbuild"
      },
      "engines": {
        "node": ">=12"
      },
      "optionalDependencies": {
        "@esbuild/android-arm": "0.18.17",
        "@esbuild/android-arm64": "0.18.17",
        "@esbuild/android-x64": "0.18.17",
        "@esbuild/darwin-arm64": "0.18.17",
        "@esbuild/darwin-x64": "0.18.17",
        "@esbuild/freebsd-arm64": "0.18.17",
        "@esbuild/freebsd-x64": "0.18.17",
        "@esbuild/linux-arm": "0.18.17",
        "@esbuild/linux-arm64": "0.18.17",
        "@esbuild/linux-ia32": "0.18.17",
        "@esbuild/linux-loong64": "0.18.17",
        "@esbuild/linux-mips64el": "0.18.17",
        "@esbuild/linux-ppc64": "0.18.17",
        "@esbuild/linux-riscv64": "0.18.17",
        "@esbuild/linux-s390x": "0.18.17",
        "@esbuild/linux-x64": "0.18.17",
        "@esbuild/netbsd-x64": "0.18.17",
        "@esbuild/openbsd-x64": "0.18.17",
        "@esbuild/sunos-x64": "0.18.17",
        "@esbuild/win32-arm64": "0.18.17",
        "@esbuild/win32-ia32": "0.18.17",
        "@esbuild/win32-x64": "0.18.17"
      }
    },
    "node_modules/estree-walker": {
      "version": "3.0.3",
      "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
      "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
      "dev": true,
      "dependencies": {
        "@types/estree": "^1.0.0"
      }
    },
    "node_modules/event-emitter": {
      "version": "0.3.5",
      "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
      "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
      "dev": true,
      "dependencies": {
        "d": "1",
        "es5-ext": "~0.10.14"
      }
    },
    "node_modules/ext": {
      "version": "1.7.0",
      "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
      "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
      "dev": true,
      "dependencies": {
        "type": "^2.7.2"
      }
    },
    "node_modules/ext/node_modules/type": {
      "version": "2.7.2",
      "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
      "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==",
      "dev": true
    },
    "node_modules/fsevents": {
      "version": "2.3.2",
      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
      "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
      "dev": true,
      "hasInstallScript": true,
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
      }
    },
    "node_modules/globalyzer": {
      "version": "0.1.0",
      "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
      "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==",
      "dev": true
    },
    "node_modules/globrex": {
      "version": "0.1.2",
      "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
      "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
      "dev": true
    },
    "node_modules/intl-messageformat": {
      "version": "9.13.0",
      "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
      "integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
      "dev": true,
      "dependencies": {
        "@formatjs/ecma402-abstract": "1.11.4",
        "@formatjs/fast-memoize": "1.2.1",
        "@formatjs/icu-messageformat-parser": "2.1.0",
        "tslib": "^2.1.0"
      }
    },
    "node_modules/is-promise": {
      "version": "2.2.2",
      "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
      "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
      "dev": true
    },
    "node_modules/is-reference": {
      "version": "3.0.1",
      "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.1.tgz",
      "integrity": "sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==",
      "dev": true,
      "dependencies": {
        "@types/estree": "*"
      }
    },
    "node_modules/kleur": {
      "version": "4.1.5",
      "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
      "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
      "dev": true,
      "engines": {
        "node": ">=6"
      }
    },
    "node_modules/locate-character": {
      "version": "3.0.0",
      "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
      "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
      "dev": true
    },
    "node_modules/lru-queue": {
      "version": "0.1.0",
      "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
      "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
      "dev": true,
      "dependencies": {
        "es5-ext": "~0.10.2"
      }
    },
    "node_modules/magic-string": {
      "version": "0.30.2",
      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.2.tgz",
      "integrity": "sha512-lNZdu7pewtq/ZvWUp9Wpf/x7WzMTsR26TWV03BRZrXFsv+BI6dy8RAiKgm1uM/kyR0rCfUcqvOlXKG66KhIGug==",
      "dev": true,
      "dependencies": {
        "@jridgewell/sourcemap-codec": "^1.4.15"
      },
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/mdn-data": {
      "version": "2.0.30",
      "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
      "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
      "dev": true
    },
    "node_modules/memoizee": {
      "version": "0.4.15",
      "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
      "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
      "dev": true,
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.53",
        "es6-weak-map": "^2.0.3",
        "event-emitter": "^0.3.5",
        "is-promise": "^2.2.2",
        "lru-queue": "^0.1.0",
        "next-tick": "^1.1.0",
        "timers-ext": "^0.1.7"
      }
    },
    "node_modules/mri": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
      "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
      "dev": true,
      "engines": {
        "node": ">=4"
      }
    },
    "node_modules/ms": {
      "version": "2.1.2",
      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
      "dev": true
    },
    "node_modules/nanoid": {
      "version": "3.3.6",
      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
      "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
      "dev": true,
      "funding": [
        {
          "type": "github",
          "url": "https://github.com/sponsors/ai"
        }
      ],
      "bin": {
        "nanoid": "bin/nanoid.cjs"
      },
      "engines": {
        "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
      }
    },
    "node_modules/next-tick": {
      "version": "1.1.0",
      "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
      "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==",
      "dev": true
    },
    "node_modules/periscopic": {
      "version": "3.1.0",
      "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
      "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
      "dev": true,
      "dependencies": {
        "@types/estree": "^1.0.0",
        "estree-walker": "^3.0.0",
        "is-reference": "^3.0.0"
      }
    },
    "node_modules/picocolors": {
      "version": "1.0.0",
      "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
      "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
      "dev": true
    },
    "node_modules/postcss": {
      "version": "8.4.27",
      "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz",
      "integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==",
      "dev": true,
      "funding": [
        {
          "type": "opencollective",
          "url": "https://opencollective.com/postcss/"
        },
        {
          "type": "tidelift",
          "url": "https://tidelift.com/funding/github/npm/postcss"
        },
        {
          "type": "github",
          "url": "https://github.com/sponsors/ai"
        }
      ],
      "dependencies": {
        "nanoid": "^3.3.6",
        "picocolors": "^1.0.0",
        "source-map-js": "^1.0.2"
      },
      "engines": {
        "node": "^10 || ^12 || >=14"
      }
    },
    "node_modules/regexparam": {
      "version": "2.0.1",
      "resolved": "https://registry.npmjs.org/regexparam/-/regexparam-2.0.1.tgz",
      "integrity": "sha512-zRgSaYemnNYxUv+/5SeoHI0eJIgTL/A2pUtXUPLHQxUldagouJ9p+K6IbIZ/JiQuCEv2E2B1O11SjVQy3aMCkw==",
      "dev": true,
      "engines": {
        "node": ">=8"
      }
    },
    "node_modules/rollup": {
      "version": "3.27.1",
      "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.27.1.tgz",
      "integrity": "sha512-tXNDFwOkN6C2w5Blj1g6ForKeFw6c1mDu5jxoeDO3/pmYjgt+8yvIFjKzH5FQUq70OKZBkOt0zzv0THXL7vwzQ==",
      "dev": true,
      "bin": {
        "rollup": "dist/bin/rollup"
      },
      "engines": {
        "node": ">=14.18.0",
        "npm": ">=8.0.0"
      },
      "optionalDependencies": {
        "fsevents": "~2.3.2"
      }
    },
    "node_modules/sade": {
      "version": "1.8.1",
      "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
      "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
      "dev": true,
      "dependencies": {
        "mri": "^1.1.0"
      },
      "engines": {
        "node": ">=6"
      }
    },
    "node_modules/source-map-js": {
      "version": "1.0.2",
      "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
      "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
      "dev": true,
      "engines": {
        "node": ">=0.10.0"
      }
    },
    "node_modules/svelte": {
      "version": "4.1.2",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.1.2.tgz",
      "integrity": "sha512-/evA8U6CgOHe5ZD1C1W3va9iJG7mWflcCdghBORJaAhD2JzrVERJty/2gl0pIPrJYBGZwZycH6onYf+64XXF9g==",
      "dev": true,
      "dependencies": {
        "@ampproject/remapping": "^2.2.1",
        "@jridgewell/sourcemap-codec": "^1.4.15",
        "@jridgewell/trace-mapping": "^0.3.18",
        "acorn": "^8.9.0",
        "aria-query": "^5.3.0",
        "axobject-query": "^3.2.1",
        "code-red": "^1.0.3",
        "css-tree": "^2.3.1",
        "estree-walker": "^3.0.3",
        "is-reference": "^3.0.1",
        "locate-character": "^3.0.0",
        "magic-string": "^0.30.0",
        "periscopic": "^3.1.0"
      },
      "engines": {
        "node": ">=16"
      }
    },
    "node_modules/svelte-feather-icons": {
      "version": "4.0.1",
      "resolved": "https://registry.npmjs.org/svelte-feather-icons/-/svelte-feather-icons-4.0.1.tgz",
      "integrity": "sha512-DMDrlbblaRUHLcTFtKHE4GWQ/Fk/kneGIZrrI75EmTxCu1hgHe8uq8e80ONrmdjL/i3f1d8fkcx73SWng2X6Gg==",
      "dev": true,
      "dependencies": {
        "svelte": "^3.38.2"
      }
    },
    "node_modules/svelte-feather-icons/node_modules/svelte": {
      "version": "3.59.2",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz",
      "integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==",
      "dev": true,
      "engines": {
        "node": ">= 8"
      }
    },
    "node_modules/svelte-hmr": {
      "version": "0.15.2",
      "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.2.tgz",
      "integrity": "sha512-q/bAruCvFLwvNbeE1x3n37TYFb3mTBJ6TrCq6p2CoFbSTNhDE9oAtEfpy+wmc9So8AG0Tja+X0/mJzX9tSfvIg==",
      "dev": true,
      "engines": {
        "node": "^12.20 || ^14.13.1 || >= 16"
      },
      "peerDependencies": {
        "svelte": "^3.19.0 || ^4.0.0-next.0"
      }
    },
    "node_modules/svelte-i18n": {
      "version": "3.7.0",
      "resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.0.tgz",
      "integrity": "sha512-kfdJsYsyOE9tFEVtjPXvrUaufXQnbFAI6LsX9vaQP+xm8A5Wao2qQ6pRZmIUCAvXvYQt7aXQ7hK9+NP9AlxehA==",
      "dev": true,
      "dependencies": {
        "cli-color": "^2.0.3",
        "deepmerge": "^4.2.2",
        "estree-walker": "^2",
        "intl-messageformat": "^9.13.0",
        "sade": "^1.8.1",
        "tiny-glob": "^0.2.9"
      },
      "bin": {
        "svelte-i18n": "dist/cli.js"
      },
      "engines": {
        "node": ">= 16"
      },
      "peerDependencies": {
        "svelte": "^3 || ^4"
      }
    },
    "node_modules/svelte-i18n/node_modules/estree-walker": {
      "version": "2.0.2",
      "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
      "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
      "dev": true
    },
    "node_modules/svelte-spa-router": {
      "version": "3.3.0",
      "resolved": "https://registry.npmjs.org/svelte-spa-router/-/svelte-spa-router-3.3.0.tgz",
      "integrity": "sha512-cwRNe7cxD43sCvSfEeaKiNZg3FCizGxeMcf7CPiWRP3jKXjEma3vxyyuDtPOam6nWbVxl9TNM3hlE/i87ZlqcQ==",
      "dev": true,
      "dependencies": {
        "regexparam": "2.0.1"
      },
      "funding": {
        "url": "https://github.com/sponsors/ItalyPaleAle"
      }
    },
    "node_modules/timers-ext": {
      "version": "0.1.7",
      "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
      "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
      "dev": true,
      "dependencies": {
        "es5-ext": "~0.10.46",
        "next-tick": "1"
      }
    },
    "node_modules/tiny-glob": {
      "version": "0.2.9",
      "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
      "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
      "dev": true,
      "dependencies": {
        "globalyzer": "0.1.0",
        "globrex": "^0.1.2"
      }
    },
    "node_modules/tslib": {
      "version": "2.6.1",
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz",
      "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==",
      "dev": true
    },
    "node_modules/type": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
      "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==",
      "dev": true
    },
    "node_modules/vite": {
      "version": "4.4.8",
      "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.8.tgz",
      "integrity": "sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==",
      "dev": true,
      "dependencies": {
        "esbuild": "^0.18.10",
        "postcss": "^8.4.26",
        "rollup": "^3.25.2"
      },
      "bin": {
        "vite": "bin/vite.js"
      },
      "engines": {
        "node": "^14.18.0 || >=16.0.0"
      },
      "funding": {
        "url": "https://github.com/vitejs/vite?sponsor=1"
      },
      "optionalDependencies": {
        "fsevents": "~2.3.2"
      },
      "peerDependencies": {
        "@types/node": ">= 14",
        "less": "*",
        "lightningcss": "^1.21.0",
        "sass": "*",
        "stylus": "*",
        "sugarss": "*",
        "terser": "^5.4.0"
      },
      "peerDependenciesMeta": {
        "@types/node": {
          "optional": true
        },
        "less": {
          "optional": true
        },
        "lightningcss": {
          "optional": true
        },
        "sass": {
          "optional": true
        },
        "stylus": {
          "optional": true
        },
        "sugarss": {
          "optional": true
        },
        "terser": {
          "optional": true
        }
      }
    },
    "node_modules/vitefu": {
      "version": "0.2.4",
      "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.4.tgz",
      "integrity": "sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==",
      "dev": true,
      "peerDependencies": {
        "vite": "^3.0.0 || ^4.0.0"
      },
      "peerDependenciesMeta": {
        "vite": {
          "optional": true
        }
      }
    }
  }
	"name": "frontend",
	"version": "1.0.0-alpha.1",
	"lockfileVersion": 3,
	"requires": true,
	"packages": {
		"": {
			"name": "frontend",
			"version": "1.0.0-alpha.1",
			"devDependencies": {
				"@sveltejs/vite-plugin-svelte": "^2.4.3",
				"svelte": "^4.1.2",
				"svelte-feather-icons": "^4.0.1",
				"svelte-i18n": "^3.7.0",
				"svelte-spa-router": "^3.3.0",
				"vite": "^4.4.8"
			}
		},
		"node_modules/@ampproject/remapping": {
			"version": "2.2.1",
			"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
			"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
			"dev": true,
			"dependencies": {
				"@jridgewell/gen-mapping": "^0.3.0",
				"@jridgewell/trace-mapping": "^0.3.9"
			},
			"engines": {
				"node": ">=6.0.0"
			}
		},
		"node_modules/@esbuild/android-arm": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.17.tgz",
			"integrity": "sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg==",
			"cpu": [
				"arm"
			],
			"dev": true,
			"optional": true,
			"os": [
				"android"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/android-arm64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.17.tgz",
			"integrity": "sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg==",
			"cpu": [
				"arm64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"android"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/android-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.17.tgz",
			"integrity": "sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"android"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/darwin-arm64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.17.tgz",
			"integrity": "sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g==",
			"cpu": [
				"arm64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"darwin"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/darwin-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.17.tgz",
			"integrity": "sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"darwin"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/freebsd-arm64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.17.tgz",
			"integrity": "sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ==",
			"cpu": [
				"arm64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"freebsd"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/freebsd-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.17.tgz",
			"integrity": "sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"freebsd"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-arm": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.17.tgz",
			"integrity": "sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg==",
			"cpu": [
				"arm"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-arm64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.17.tgz",
			"integrity": "sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ==",
			"cpu": [
				"arm64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-ia32": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.17.tgz",
			"integrity": "sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg==",
			"cpu": [
				"ia32"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-loong64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.17.tgz",
			"integrity": "sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg==",
			"cpu": [
				"loong64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-mips64el": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.17.tgz",
			"integrity": "sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ==",
			"cpu": [
				"mips64el"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-ppc64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.17.tgz",
			"integrity": "sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ==",
			"cpu": [
				"ppc64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-riscv64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.17.tgz",
			"integrity": "sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g==",
			"cpu": [
				"riscv64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-s390x": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.17.tgz",
			"integrity": "sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg==",
			"cpu": [
				"s390x"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/linux-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.17.tgz",
			"integrity": "sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"linux"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/netbsd-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.17.tgz",
			"integrity": "sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"netbsd"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/openbsd-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.17.tgz",
			"integrity": "sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"openbsd"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/sunos-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.17.tgz",
			"integrity": "sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"sunos"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/win32-arm64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.17.tgz",
			"integrity": "sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw==",
			"cpu": [
				"arm64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"win32"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/win32-ia32": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.17.tgz",
			"integrity": "sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg==",
			"cpu": [
				"ia32"
			],
			"dev": true,
			"optional": true,
			"os": [
				"win32"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@esbuild/win32-x64": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.17.tgz",
			"integrity": "sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA==",
			"cpu": [
				"x64"
			],
			"dev": true,
			"optional": true,
			"os": [
				"win32"
			],
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/@formatjs/ecma402-abstract": {
			"version": "1.11.4",
			"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
			"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
			"dev": true,
			"dependencies": {
				"@formatjs/intl-localematcher": "0.2.25",
				"tslib": "^2.1.0"
			}
		},
		"node_modules/@formatjs/fast-memoize": {
			"version": "1.2.1",
			"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
			"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
			"dev": true,
			"dependencies": {
				"tslib": "^2.1.0"
			}
		},
		"node_modules/@formatjs/icu-messageformat-parser": {
			"version": "2.1.0",
			"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
			"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
			"dev": true,
			"dependencies": {
				"@formatjs/ecma402-abstract": "1.11.4",
				"@formatjs/icu-skeleton-parser": "1.3.6",
				"tslib": "^2.1.0"
			}
		},
		"node_modules/@formatjs/icu-skeleton-parser": {
			"version": "1.3.6",
			"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
			"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
			"dev": true,
			"dependencies": {
				"@formatjs/ecma402-abstract": "1.11.4",
				"tslib": "^2.1.0"
			}
		},
		"node_modules/@formatjs/intl-localematcher": {
			"version": "0.2.25",
			"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
			"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
			"dev": true,
			"dependencies": {
				"tslib": "^2.1.0"
			}
		},
		"node_modules/@jridgewell/gen-mapping": {
			"version": "0.3.3",
			"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
			"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
			"dev": true,
			"dependencies": {
				"@jridgewell/set-array": "^1.0.1",
				"@jridgewell/sourcemap-codec": "^1.4.10",
				"@jridgewell/trace-mapping": "^0.3.9"
			},
			"engines": {
				"node": ">=6.0.0"
			}
		},
		"node_modules/@jridgewell/resolve-uri": {
			"version": "3.1.0",
			"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
			"integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
			"dev": true,
			"engines": {
				"node": ">=6.0.0"
			}
		},
		"node_modules/@jridgewell/set-array": {
			"version": "1.1.2",
			"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
			"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
			"dev": true,
			"engines": {
				"node": ">=6.0.0"
			}
		},
		"node_modules/@jridgewell/sourcemap-codec": {
			"version": "1.4.15",
			"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
			"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
			"dev": true
		},
		"node_modules/@jridgewell/trace-mapping": {
			"version": "0.3.18",
			"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz",
			"integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==",
			"dev": true,
			"dependencies": {
				"@jridgewell/resolve-uri": "3.1.0",
				"@jridgewell/sourcemap-codec": "1.4.14"
			}
		},
		"node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": {
			"version": "1.4.14",
			"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
			"integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
			"dev": true
		},
		"node_modules/@sveltejs/vite-plugin-svelte": {
			"version": "2.4.3",
			"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.3.tgz",
			"integrity": "sha512-NY2h+B54KHZO3kDURTdARqthn6D4YSIebtfW75NvZ/fwyk4G+AJw3V/i0OBjyN4406Ht9yZcnNWMuRUFnDNNiA==",
			"dev": true,
			"dependencies": {
				"@sveltejs/vite-plugin-svelte-inspector": "^1.0.3",
				"debug": "^4.3.4",
				"deepmerge": "^4.3.1",
				"kleur": "^4.1.5",
				"magic-string": "^0.30.1",
				"svelte-hmr": "^0.15.2",
				"vitefu": "^0.2.4"
			},
			"engines": {
				"node": "^14.18.0 || >= 16"
			},
			"peerDependencies": {
				"svelte": "^3.54.0 || ^4.0.0",
				"vite": "^4.0.0"
			}
		},
		"node_modules/@sveltejs/vite-plugin-svelte-inspector": {
			"version": "1.0.3",
			"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-1.0.3.tgz",
			"integrity": "sha512-Khdl5jmmPN6SUsVuqSXatKpQTMIifoQPDanaxC84m9JxIibWvSABJyHpyys0Z+1yYrxY5TTEQm+6elh0XCMaOA==",
			"dev": true,
			"dependencies": {
				"debug": "^4.3.4"
			},
			"engines": {
				"node": "^14.18.0 || >= 16"
			},
			"peerDependencies": {
				"@sveltejs/vite-plugin-svelte": "^2.2.0",
				"svelte": "^3.54.0 || ^4.0.0",
				"vite": "^4.0.0"
			}
		},
		"node_modules/@types/estree": {
			"version": "1.0.1",
			"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz",
			"integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
			"dev": true
		},
		"node_modules/acorn": {
			"version": "8.10.0",
			"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
			"integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
			"dev": true,
			"bin": {
				"acorn": "bin/acorn"
			},
			"engines": {
				"node": ">=0.4.0"
			}
		},
		"node_modules/aria-query": {
			"version": "5.3.0",
			"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
			"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
			"dev": true,
			"dependencies": {
				"dequal": "^2.0.3"
			}
		},
		"node_modules/axobject-query": {
			"version": "3.2.1",
			"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
			"integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
			"dev": true,
			"dependencies": {
				"dequal": "^2.0.3"
			}
		},
		"node_modules/cli-color": {
			"version": "2.0.3",
			"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
			"integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
			"dev": true,
			"dependencies": {
				"d": "^1.0.1",
				"es5-ext": "^0.10.61",
				"es6-iterator": "^2.0.3",
				"memoizee": "^0.4.15",
				"timers-ext": "^0.1.7"
			},
			"engines": {
				"node": ">=0.10"
			}
		},
		"node_modules/code-red": {
			"version": "1.0.3",
			"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.3.tgz",
			"integrity": "sha512-kVwJELqiILQyG5aeuyKFbdsI1fmQy1Cmf7dQ8eGmVuJoaRVdwey7WaMknr2ZFeVSYSKT0rExsa8EGw0aoI/1QQ==",
			"dev": true,
			"dependencies": {
				"@jridgewell/sourcemap-codec": "^1.4.14",
				"@types/estree": "^1.0.0",
				"acorn": "^8.8.2",
				"estree-walker": "^3.0.3",
				"periscopic": "^3.1.0"
			}
		},
		"node_modules/css-tree": {
			"version": "2.3.1",
			"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
			"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
			"dev": true,
			"dependencies": {
				"mdn-data": "2.0.30",
				"source-map-js": "^1.0.1"
			},
			"engines": {
				"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
			}
		},
		"node_modules/d": {
			"version": "1.0.1",
			"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
			"integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
			"dev": true,
			"dependencies": {
				"es5-ext": "^0.10.50",
				"type": "^1.0.1"
			}
		},
		"node_modules/debug": {
			"version": "4.3.4",
			"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
			"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
			"dev": true,
			"dependencies": {
				"ms": "2.1.2"
			},
			"engines": {
				"node": ">=6.0"
			},
			"peerDependenciesMeta": {
				"supports-color": {
					"optional": true
				}
			}
		},
		"node_modules/deepmerge": {
			"version": "4.3.1",
			"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
			"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
			"dev": true,
			"engines": {
				"node": ">=0.10.0"
			}
		},
		"node_modules/dequal": {
			"version": "2.0.3",
			"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
			"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
			"dev": true,
			"engines": {
				"node": ">=6"
			}
		},
		"node_modules/es5-ext": {
			"version": "0.10.62",
			"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
			"integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
			"dev": true,
			"hasInstallScript": true,
			"dependencies": {
				"es6-iterator": "^2.0.3",
				"es6-symbol": "^3.1.3",
				"next-tick": "^1.1.0"
			},
			"engines": {
				"node": ">=0.10"
			}
		},
		"node_modules/es6-iterator": {
			"version": "2.0.3",
			"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
			"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
			"dev": true,
			"dependencies": {
				"d": "1",
				"es5-ext": "^0.10.35",
				"es6-symbol": "^3.1.1"
			}
		},
		"node_modules/es6-symbol": {
			"version": "3.1.3",
			"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
			"integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
			"dev": true,
			"dependencies": {
				"d": "^1.0.1",
				"ext": "^1.1.2"
			}
		},
		"node_modules/es6-weak-map": {
			"version": "2.0.3",
			"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
			"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
			"dev": true,
			"dependencies": {
				"d": "1",
				"es5-ext": "^0.10.46",
				"es6-iterator": "^2.0.3",
				"es6-symbol": "^3.1.1"
			}
		},
		"node_modules/esbuild": {
			"version": "0.18.17",
			"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.17.tgz",
			"integrity": "sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg==",
			"dev": true,
			"hasInstallScript": true,
			"bin": {
				"esbuild": "bin/esbuild"
			},
			"engines": {
				"node": ">=12"
			},
			"optionalDependencies": {
				"@esbuild/android-arm": "0.18.17",
				"@esbuild/android-arm64": "0.18.17",
				"@esbuild/android-x64": "0.18.17",
				"@esbuild/darwin-arm64": "0.18.17",
				"@esbuild/darwin-x64": "0.18.17",
				"@esbuild/freebsd-arm64": "0.18.17",
				"@esbuild/freebsd-x64": "0.18.17",
				"@esbuild/linux-arm": "0.18.17",
				"@esbuild/linux-arm64": "0.18.17",
				"@esbuild/linux-ia32": "0.18.17",
				"@esbuild/linux-loong64": "0.18.17",
				"@esbuild/linux-mips64el": "0.18.17",
				"@esbuild/linux-ppc64": "0.18.17",
				"@esbuild/linux-riscv64": "0.18.17",
				"@esbuild/linux-s390x": "0.18.17",
				"@esbuild/linux-x64": "0.18.17",
				"@esbuild/netbsd-x64": "0.18.17",
				"@esbuild/openbsd-x64": "0.18.17",
				"@esbuild/sunos-x64": "0.18.17",
				"@esbuild/win32-arm64": "0.18.17",
				"@esbuild/win32-ia32": "0.18.17",
				"@esbuild/win32-x64": "0.18.17"
			}
		},
		"node_modules/estree-walker": {
			"version": "3.0.3",
			"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
			"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
			"dev": true,
			"dependencies": {
				"@types/estree": "^1.0.0"
			}
		},
		"node_modules/event-emitter": {
			"version": "0.3.5",
			"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
			"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
			"dev": true,
			"dependencies": {
				"d": "1",
				"es5-ext": "~0.10.14"
			}
		},
		"node_modules/ext": {
			"version": "1.7.0",
			"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
			"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
			"dev": true,
			"dependencies": {
				"type": "^2.7.2"
			}
		},
		"node_modules/ext/node_modules/type": {
			"version": "2.7.2",
			"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
			"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==",
			"dev": true
		},
		"node_modules/fsevents": {
			"version": "2.3.2",
			"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
			"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
			"dev": true,
			"hasInstallScript": true,
			"optional": true,
			"os": [
				"darwin"
			],
			"engines": {
				"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
			}
		},
		"node_modules/globalyzer": {
			"version": "0.1.0",
			"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
			"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==",
			"dev": true
		},
		"node_modules/globrex": {
			"version": "0.1.2",
			"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
			"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
			"dev": true
		},
		"node_modules/intl-messageformat": {
			"version": "9.13.0",
			"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
			"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
			"dev": true,
			"dependencies": {
				"@formatjs/ecma402-abstract": "1.11.4",
				"@formatjs/fast-memoize": "1.2.1",
				"@formatjs/icu-messageformat-parser": "2.1.0",
				"tslib": "^2.1.0"
			}
		},
		"node_modules/is-promise": {
			"version": "2.2.2",
			"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
			"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
			"dev": true
		},
		"node_modules/is-reference": {
			"version": "3.0.1",
			"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.1.tgz",
			"integrity": "sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==",
			"dev": true,
			"dependencies": {
				"@types/estree": "*"
			}
		},
		"node_modules/kleur": {
			"version": "4.1.5",
			"resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
			"integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
			"dev": true,
			"engines": {
				"node": ">=6"
			}
		},
		"node_modules/locate-character": {
			"version": "3.0.0",
			"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
			"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
			"dev": true
		},
		"node_modules/lru-queue": {
			"version": "0.1.0",
			"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
			"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
			"dev": true,
			"dependencies": {
				"es5-ext": "~0.10.2"
			}
		},
		"node_modules/magic-string": {
			"version": "0.30.2",
			"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.2.tgz",
			"integrity": "sha512-lNZdu7pewtq/ZvWUp9Wpf/x7WzMTsR26TWV03BRZrXFsv+BI6dy8RAiKgm1uM/kyR0rCfUcqvOlXKG66KhIGug==",
			"dev": true,
			"dependencies": {
				"@jridgewell/sourcemap-codec": "^1.4.15"
			},
			"engines": {
				"node": ">=12"
			}
		},
		"node_modules/mdn-data": {
			"version": "2.0.30",
			"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
			"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
			"dev": true
		},
		"node_modules/memoizee": {
			"version": "0.4.15",
			"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
			"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
			"dev": true,
			"dependencies": {
				"d": "^1.0.1",
				"es5-ext": "^0.10.53",
				"es6-weak-map": "^2.0.3",
				"event-emitter": "^0.3.5",
				"is-promise": "^2.2.2",
				"lru-queue": "^0.1.0",
				"next-tick": "^1.1.0",
				"timers-ext": "^0.1.7"
			}
		},
		"node_modules/mri": {
			"version": "1.2.0",
			"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
			"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
			"dev": true,
			"engines": {
				"node": ">=4"
			}
		},
		"node_modules/ms": {
			"version": "2.1.2",
			"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
			"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
			"dev": true
		},
		"node_modules/nanoid": {
			"version": "3.3.6",
			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
			"integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
			"dev": true,
			"funding": [
				{
					"type": "github",
					"url": "https://github.com/sponsors/ai"
				}
			],
			"bin": {
				"nanoid": "bin/nanoid.cjs"
			},
			"engines": {
				"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
			}
		},
		"node_modules/next-tick": {
			"version": "1.1.0",
			"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
			"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==",
			"dev": true
		},
		"node_modules/periscopic": {
			"version": "3.1.0",
			"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
			"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
			"dev": true,
			"dependencies": {
				"@types/estree": "^1.0.0",
				"estree-walker": "^3.0.0",
				"is-reference": "^3.0.0"
			}
		},
		"node_modules/picocolors": {
			"version": "1.0.0",
			"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
			"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
			"dev": true
		},
		"node_modules/postcss": {
			"version": "8.4.27",
			"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz",
			"integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==",
			"dev": true,
			"funding": [
				{
					"type": "opencollective",
					"url": "https://opencollective.com/postcss/"
				},
				{
					"type": "tidelift",
					"url": "https://tidelift.com/funding/github/npm/postcss"
				},
				{
					"type": "github",
					"url": "https://github.com/sponsors/ai"
				}
			],
			"dependencies": {
				"nanoid": "^3.3.6",
				"picocolors": "^1.0.0",
				"source-map-js": "^1.0.2"
			},
			"engines": {
				"node": "^10 || ^12 || >=14"
			}
		},
		"node_modules/regexparam": {
			"version": "2.0.1",
			"resolved": "https://registry.npmjs.org/regexparam/-/regexparam-2.0.1.tgz",
			"integrity": "sha512-zRgSaYemnNYxUv+/5SeoHI0eJIgTL/A2pUtXUPLHQxUldagouJ9p+K6IbIZ/JiQuCEv2E2B1O11SjVQy3aMCkw==",
			"dev": true,
			"engines": {
				"node": ">=8"
			}
		},
		"node_modules/rollup": {
			"version": "3.27.1",
			"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.27.1.tgz",
			"integrity": "sha512-tXNDFwOkN6C2w5Blj1g6ForKeFw6c1mDu5jxoeDO3/pmYjgt+8yvIFjKzH5FQUq70OKZBkOt0zzv0THXL7vwzQ==",
			"dev": true,
			"bin": {
				"rollup": "dist/bin/rollup"
			},
			"engines": {
				"node": ">=14.18.0",
				"npm": ">=8.0.0"
			},
			"optionalDependencies": {
				"fsevents": "~2.3.2"
			}
		},
		"node_modules/sade": {
			"version": "1.8.1",
			"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
			"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
			"dev": true,
			"dependencies": {
				"mri": "^1.1.0"
			},
			"engines": {
				"node": ">=6"
			}
		},
		"node_modules/source-map-js": {
			"version": "1.0.2",
			"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
			"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
			"dev": true,
			"engines": {
				"node": ">=0.10.0"
			}
		},
		"node_modules/svelte": {
			"version": "4.1.2",
			"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.1.2.tgz",
			"integrity": "sha512-/evA8U6CgOHe5ZD1C1W3va9iJG7mWflcCdghBORJaAhD2JzrVERJty/2gl0pIPrJYBGZwZycH6onYf+64XXF9g==",
			"dev": true,
			"dependencies": {
				"@ampproject/remapping": "^2.2.1",
				"@jridgewell/sourcemap-codec": "^1.4.15",
				"@jridgewell/trace-mapping": "^0.3.18",
				"acorn": "^8.9.0",
				"aria-query": "^5.3.0",
				"axobject-query": "^3.2.1",
				"code-red": "^1.0.3",
				"css-tree": "^2.3.1",
				"estree-walker": "^3.0.3",
				"is-reference": "^3.0.1",
				"locate-character": "^3.0.0",
				"magic-string": "^0.30.0",
				"periscopic": "^3.1.0"
			},
			"engines": {
				"node": ">=16"
			}
		},
		"node_modules/svelte-feather-icons": {
			"version": "4.0.1",
			"resolved": "https://registry.npmjs.org/svelte-feather-icons/-/svelte-feather-icons-4.0.1.tgz",
			"integrity": "sha512-DMDrlbblaRUHLcTFtKHE4GWQ/Fk/kneGIZrrI75EmTxCu1hgHe8uq8e80ONrmdjL/i3f1d8fkcx73SWng2X6Gg==",
			"dev": true,
			"dependencies": {
				"svelte": "^3.38.2"
			}
		},
		"node_modules/svelte-feather-icons/node_modules/svelte": {
			"version": "3.59.2",
			"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz",
			"integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==",
			"dev": true,
			"engines": {
				"node": ">= 8"
			}
		},
		"node_modules/svelte-hmr": {
			"version": "0.15.2",
			"resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.2.tgz",
			"integrity": "sha512-q/bAruCvFLwvNbeE1x3n37TYFb3mTBJ6TrCq6p2CoFbSTNhDE9oAtEfpy+wmc9So8AG0Tja+X0/mJzX9tSfvIg==",
			"dev": true,
			"engines": {
				"node": "^12.20 || ^14.13.1 || >= 16"
			},
			"peerDependencies": {
				"svelte": "^3.19.0 || ^4.0.0-next.0"
			}
		},
		"node_modules/svelte-i18n": {
			"version": "3.7.0",
			"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.0.tgz",
			"integrity": "sha512-kfdJsYsyOE9tFEVtjPXvrUaufXQnbFAI6LsX9vaQP+xm8A5Wao2qQ6pRZmIUCAvXvYQt7aXQ7hK9+NP9AlxehA==",
			"dev": true,
			"dependencies": {
				"cli-color": "^2.0.3",
				"deepmerge": "^4.2.2",
				"estree-walker": "^2",
				"intl-messageformat": "^9.13.0",
				"sade": "^1.8.1",
				"tiny-glob": "^0.2.9"
			},
			"bin": {
				"svelte-i18n": "dist/cli.js"
			},
			"engines": {
				"node": ">= 16"
			},
			"peerDependencies": {
				"svelte": "^3 || ^4"
			}
		},
		"node_modules/svelte-i18n/node_modules/estree-walker": {
			"version": "2.0.2",
			"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
			"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
			"dev": true
		},
		"node_modules/svelte-spa-router": {
			"version": "3.3.0",
			"resolved": "https://registry.npmjs.org/svelte-spa-router/-/svelte-spa-router-3.3.0.tgz",
			"integrity": "sha512-cwRNe7cxD43sCvSfEeaKiNZg3FCizGxeMcf7CPiWRP3jKXjEma3vxyyuDtPOam6nWbVxl9TNM3hlE/i87ZlqcQ==",
			"dev": true,
			"dependencies": {
				"regexparam": "2.0.1"
			},
			"funding": {
				"url": "https://github.com/sponsors/ItalyPaleAle"
			}
		},
		"node_modules/timers-ext": {
			"version": "0.1.7",
			"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
			"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
			"dev": true,
			"dependencies": {
				"es5-ext": "~0.10.46",
				"next-tick": "1"
			}
		},
		"node_modules/tiny-glob": {
			"version": "0.2.9",
			"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
			"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
			"dev": true,
			"dependencies": {
				"globalyzer": "0.1.0",
				"globrex": "^0.1.2"
			}
		},
		"node_modules/tslib": {
			"version": "2.6.1",
			"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz",
			"integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==",
			"dev": true
		},
		"node_modules/type": {
			"version": "1.2.0",
			"resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
			"integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==",
			"dev": true
		},
		"node_modules/vite": {
			"version": "4.4.8",
			"resolved": "https://registry.npmjs.org/vite/-/vite-4.4.8.tgz",
			"integrity": "sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==",
			"dev": true,
			"dependencies": {
				"esbuild": "^0.18.10",
				"postcss": "^8.4.26",
				"rollup": "^3.25.2"
			},
			"bin": {
				"vite": "bin/vite.js"
			},
			"engines": {
				"node": "^14.18.0 || >=16.0.0"
			},
			"funding": {
				"url": "https://github.com/vitejs/vite?sponsor=1"
			},
			"optionalDependencies": {
				"fsevents": "~2.3.2"
			},
			"peerDependencies": {
				"@types/node": ">= 14",
				"less": "*",
				"lightningcss": "^1.21.0",
				"sass": "*",
				"stylus": "*",
				"sugarss": "*",
				"terser": "^5.4.0"
			},
			"peerDependenciesMeta": {
				"@types/node": {
					"optional": true
				},
				"less": {
					"optional": true
				},
				"lightningcss": {
					"optional": true
				},
				"sass": {
					"optional": true
				},
				"stylus": {
					"optional": true
				},
				"sugarss": {
					"optional": true
				},
				"terser": {
					"optional": true
				}
			}
		},
		"node_modules/vitefu": {
			"version": "0.2.4",
			"resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.4.tgz",
			"integrity": "sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==",
			"dev": true,
			"peerDependencies": {
				"vite": "^3.0.0 || ^4.0.0"
			},
			"peerDependenciesMeta": {
				"vite": {
					"optional": true
				}
			}
		}
	}
}

M cmd/snippetexpandergui/frontend/package.json => cmd/snippetexpandergui/frontend/package.json +18 -18
@@ 1,20 1,20 @@
{
  "name": "frontend",
  "private": true,
  "version": "2.0.0-alpha.7",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "devDependencies": {
    "@sveltejs/vite-plugin-svelte": "^2.4.3",
    "svelte": "^4.1.2",
    "svelte-feather-icons": "^4.0.1",
    "svelte-i18n": "^3.7.0",
    "svelte-spa-router": "^3.3.0",
    "vite": "^4.4.8"
  },
  "author": "Ian M. Jones"
	"name": "frontend",
	"private": true,
	"version": "1.0.0-alpha.1",
	"type": "module",
	"scripts": {
		"dev": "vite",
		"build": "vite build",
		"preview": "vite preview"
	},
	"devDependencies": {
		"@sveltejs/vite-plugin-svelte": "^2.4.3",
		"svelte": "^4.1.2",
		"svelte-feather-icons": "^4.0.1",
		"svelte-i18n": "^3.7.0",
		"svelte-spa-router": "^3.3.0",
		"vite": "^4.4.8"
	},
	"author": "Ian M. Jones"
}

M cmd/snippetexpandergui/frontend/package.json.md5 => cmd/snippetexpandergui/frontend/package.json.md5 +1 -1
@@ 1,1 1,1 @@
7d7f57aba28128a5147f9c2de233dbe7
\ No newline at end of file
aab099a9c37e2ec9cd349561bb11779c
\ No newline at end of file

M cmd/snippetexpandergui/i18n/en-GB.json => cmd/snippetexpandergui/i18n/en-GB.json +4 -0
@@ 21,6 21,10 @@
		"title": "Remove Snippet",
		"error_title": "Error removing snippet"
	},
	"use_snippet": {
		"title": "Copy and paste snippet",
		"error_title": "Error copying and pasting snippet"
	},
	"import_snippets": {
		"title": "Import Snippets",
		"new_only_title": "Import Snippets: Discarding Duplicates",

M cmd/snippetexpandergui/main.go => cmd/snippetexpandergui/main.go +1 -1
@@ 10,7 10,7 @@ import (
	"github.com/wailsapp/wails/v2/pkg/options/assetserver"
)

var version = "2.0.0-alpha.7"
var version = "1.0.0-alpha.1"

func main() {
	// Create an instance of the app structure

M cmd/snippetexpanderx/snippetexpanderx-application.vala => cmd/snippetexpanderx/snippetexpanderx-application.vala +1 -1
@@ 22,7 22,7 @@
namespace SnippetExpanderX {
    public class Application : Gtk.Application {
        public const string ID = "org.snippetexpander.snippetexpanderx";
        public const string VERSION = "2.0.0-alpha.7";
        public const string VERSION = "1.0.0-alpha.1";

        private const ulong SLEEP_INTERVAL = (ulong) TimeSpan.MILLISECOND * 10;
        private const ulong SLEEP_INTERVAL_RETRY = SLEEP_INTERVAL * 2;

M site/package-lock.json => site/package-lock.json +1096 -1096
@@ 1,1098 1,1098 @@
{
  "name": "site",
  "version": "2.0.0-alpha.5",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "site",
      "version": "2.0.0-alpha.5",
      "devDependencies": {
        "@sveltejs/adapter-static": "^2.0.3",
        "@sveltejs/kit": "^1.22.4"
      }
    },
    "node_modules/@ampproject/remapping": {
      "version": "2.2.1",
      "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
      "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
      "dev": true,
      "peer": true,
      "dependencies": {
        "@jridgewell/gen-mapping": "^0.3.0",
        "@jridgewell/trace-mapping": "^0.3.9"
      },
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@esbuild/android-arm": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.17.tgz",
      "integrity": "sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg==",
      "cpu": [
        "arm"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/android-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.17.tgz",
      "integrity": "sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/android-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.17.tgz",
      "integrity": "sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "android"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/darwin-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.17.tgz",
      "integrity": "sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "darwin"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/darwin-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.17.tgz",
      "integrity": "sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "darwin"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/freebsd-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.17.tgz",
      "integrity": "sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "freebsd"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/freebsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.17.tgz",
      "integrity": "sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "freebsd"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-arm": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.17.tgz",
      "integrity": "sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg==",
      "cpu": [
        "arm"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.17.tgz",
      "integrity": "sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-ia32": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.17.tgz",
      "integrity": "sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg==",
      "cpu": [
        "ia32"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-loong64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.17.tgz",
      "integrity": "sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg==",
      "cpu": [
        "loong64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-mips64el": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.17.tgz",
      "integrity": "sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ==",
      "cpu": [
        "mips64el"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-ppc64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.17.tgz",
      "integrity": "sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ==",
      "cpu": [
        "ppc64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-riscv64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.17.tgz",
      "integrity": "sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g==",
      "cpu": [
        "riscv64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-s390x": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.17.tgz",
      "integrity": "sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg==",
      "cpu": [
        "s390x"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/linux-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.17.tgz",
      "integrity": "sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "linux"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/netbsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.17.tgz",
      "integrity": "sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "netbsd"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/openbsd-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.17.tgz",
      "integrity": "sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "openbsd"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/sunos-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.17.tgz",
      "integrity": "sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "sunos"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-arm64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.17.tgz",
      "integrity": "sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw==",
      "cpu": [
        "arm64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-ia32": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.17.tgz",
      "integrity": "sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg==",
      "cpu": [
        "ia32"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@esbuild/win32-x64": {
      "version": "0.18.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.17.tgz",
      "integrity": "sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA==",
      "cpu": [
        "x64"
      ],
      "dev": true,
      "optional": true,
      "os": [
        "win32"
      ],
      "peer": true,
      "engines": {
        "node": ">=12"
      }
    },
    "node_modules/@jridgewell/gen-mapping": {
      "version": "0.3.3",
      "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
      "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
      "dev": true,
      "peer": true,
      "dependencies": {
        "@jridgewell/set-array": "^1.0.1",
        "@jridgewell/sourcemap-codec": "^1.4.10",
        "@jridgewell/trace-mapping": "^0.3.9"
      },
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/resolve-uri": {
      "version": "3.1.0",
      "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
      "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
      "dev": true,
      "peer": true,
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/set-array": {
      "version": "1.1.2",
      "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
      "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
      "dev": true,
      "peer": true,
      "engines": {
        "node": ">=6.0.0"
      }
    },
    "node_modules/@jridgewell/sourcemap-codec": {
      "version": "1.4.15",
      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
      "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
      "dev": true
    },
    "node_modules/@jridgewell/trace-mapping": {
      "version": "0.3.18",
      "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz",
      "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==",
      "dev": true,
      "peer": true,
      "dependencies": {
        "@jridgewell/resolve-uri": "3.1.0",
        "@jridgewell/sourcemap-codec": "1.4.14"