~ianmjones/snippetpixie

69eeb996950e9648dad72b038050f947c398ae6a — Ian M. Jones 2 months ago 179950d
Update dependencies
M cmd/snippetpixied/go.mod => cmd/snippetpixied/go.mod +1 -1
@@ 30,7 30,7 @@ require (
	github.com/lestrrat-go/strftime v1.0.6 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	golang.design/x/clipboard v0.7.0 // indirect
	golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017 // indirect
	golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29 // indirect
	golang.org/x/image v0.6.0 // indirect
	golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c // indirect
	golang.org/x/sys v0.6.0 // indirect

M cmd/snippetpixied/go.sum => cmd/snippetpixied/go.sum +2 -0
@@ 50,6 50,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017 h1:kSD1TrwPuMkmSEM+uy92j5PWY1dQqwlqdBlBc+tW/Co=
golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0=
golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29 h1:uM92tP2dJQAC0zcyUIRXkokrkXj8fgt6GjCysDDaFh8=
golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0=
golang.org/x/image v0.6.0 h1:bR8b5okrPI3g/gyZakLZHeWxAR8Dn5CyxXv1hLH5g/4=
golang.org/x/image v0.6.0/go.mod h1:MXLdDR43H7cDJq5GEGXEVeeNhPgi+YYEQ2pC1byI1x0=
golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c h1:Gk61ECugwEHL6IiyyNLXNzmu8XslmRP2dS0xjIYhbb4=

M cmd/snippetpixiegui/Makefile => cmd/snippetpixiegui/Makefile +1 -0
@@ 39,6 39,7 @@ tidy:

update-deps:
	go get -t -u
	cd frontend && npm update --save

run: $(OBJ)
	./$(OBJ)

A cmd/snippetpixiegui/frontend/dist/assets/index.1261cfbc.js => cmd/snippetpixiegui/frontend/dist/assets/index.1261cfbc.js +5 -0
@@ 0,0 1,5 @@
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const ai="modulepreload",ui=function(e){return"/"+e},Yt={},fi=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=ui(s),s in Yt)return;Yt[s]=!0;const o=s.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!i)for(let f=r.length-1;f>=0;f--){const d=r[f];if(d.href===s&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":ai,o||(a.as="script",a.crossOrigin=""),a.href=s,document.head.appendChild(a),o)return new Promise((f,d)=>{a.addEventListener("load",f),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};function N(){}function Pt(e,t){for(const n in t)e[n]=t[n];return e}function Hn(e){return e()}function Kt(){return Object.create(null)}function ce(e){e.forEach(Hn)}function Oe(e){return typeof e=="function"}function q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function ci(e){return Object.keys(e).length===0}function Nt(e,...t){if(e==null)return N;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function $t(e){let t;return Nt(e,n=>t=n)(),t}function te(e,t,n){e.$$.on_destroy.push(Nt(t,n))}function Mt(e,t,n,i){if(e){const r=Tn(e,t,n,i);return e[0](r)}}function Tn(e,t,n,i){return e[1]&&i?Pt(n.ctx.slice(),e[1](i(t))):n.ctx}function Ot(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(t.dirty.length,r.length);for(let l=0;l<o;l+=1)s[l]=t.dirty[l]|r[l];return s}return t.dirty|r}return t.dirty}function Rt(e,t,n,i,r,s){if(r){const o=Tn(t,n,i,s);e.p(o,r)}}function Ut(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function hi(e,t,n){return e.set(n),t}function Gt(e){return e&&Oe(e.destroy)?e.destroy:N}function I(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function pi(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function O(e){return document.createElement(e)}function V(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function D(){return z(" ")}function pe(){return z("")}function ee(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function c(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function mi(e){return Array.from(e.childNodes)}function X(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function xe(e,t){e.value=t==null?"":t}function Z(e,t,n){e.classList[n?"add":"remove"](t)}function di(e,t,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,i,t),r}function Ce(e,t){return new e(t)}let qe;function ze(e){qe=e}function lt(){if(!qe)throw new Error("Function called outside component initialization");return qe}function Ye(e){lt().$$.on_mount.push(e)}function In(e){lt().$$.after_update.push(e)}function Dt(e){lt().$$.on_destroy.push(e)}function Ke(){const e=lt();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const s=di(t,n,{cancelable:i});return r.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function Ze(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}const Be=[],ue=[];let ke=[];const wt=[],xn=Promise.resolve();let Et=!1;function Cn(){Et||(Et=!0,xn.then(Ln))}function Ft(){return Cn(),xn}function St(e){ke.push(e)}function He(e){wt.push(e)}const pt=new Set;let Se=0;function Ln(){if(Se!==0)return;const e=qe;do{try{for(;Se<Be.length;){const t=Be[Se];Se++,ze(t),_i(t.$$)}}catch(t){throw Be.length=0,Se=0,t}for(ze(null),Be.length=0,Se=0;ue.length;)ue.pop()();for(let t=0;t<ke.length;t+=1){const n=ke[t];pt.has(n)||(pt.add(n),n())}ke.length=0}while(Be.length);for(;wt.length;)wt.pop()();Et=!1,pt.clear(),ze(e)}function _i(e){if(e.fragment!==null){e.update(),ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(St)}}function bi(e){const t=[],n=[];ke.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),ke=t}const tt=new Set;let we;function ne(){we={r:0,c:[],p:we}}function ie(){we.r||ce(we.c),we=we.p}function B(e,t){e&&e.i&&(tt.delete(e),e.i(t))}function H(e,t,n,i){if(e&&e.o){if(tt.has(e))return;tt.add(e),we.c.push(()=>{tt.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Pn(e,t){const n={},i={},r={$$scope:1};let s=e.length;for(;s--;){const o=e[s],l=t[s];if(l){for(const u in o)u in l||(i[u]=1);for(const u in l)r[u]||(n[u]=l[u],r[u]=1);e[s]=l}else for(const u in o)r[u]=1}for(const o in i)o in n||(n[o]=void 0);return n}function Nn(e){return typeof e=="object"&&e!==null?e:{}}function Te(e,t,n){const i=e.$$.props[t];i!==void 0&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function G(e){e&&e.c()}function R(e,t,n,i){const{fragment:r,after_update:s}=e.$$;r&&r.m(t,n),i||St(()=>{const o=e.$$.on_mount.map(Hn).filter(Oe);e.$$.on_destroy?e.$$.on_destroy.push(...o):ce(o),e.$$.on_mount=[]}),s.forEach(St)}function U(e,t){const n=e.$$;n.fragment!==null&&(bi(n.after_update),ce(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function gi(e,t){e.$$.dirty[0]===-1&&(Be.push(e),Cn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,i,r,s,o,l=[-1]){const u=qe;ze(e);const a=e.$$={fragment:null,ctx:[],props:s,update:N,not_equal:r,bound:Kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Kt(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};o&&o(a.root);let f=!1;if(a.ctx=n?n(e,t.props||{},(d,h,...p)=>{const m=p.length?p[0]:h;return a.ctx&&r(a.ctx[d],a.ctx[d]=m)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](m),f&&gi(e,d)),h}):[],a.update(),f=!0,ce(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){const d=mi(t.target);a.fragment&&a.fragment.l(d),d.forEach(y)}else a.fragment&&a.fragment.c();t.intro&&B(e.$$.fragment),R(e,t.target,t.anchor,t.customElement),Ln()}ze(u)}class J{$destroy(){U(this,1),this.$destroy=N}$on(t,n){if(!Oe(n))return N;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ci(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function en(e){window.runtime.LogError(e)}function vi(){window.runtime.Quit()}function yi(e,t){return window.go.main.App.AddSnippet(e,t)}function wi(){return window.go.main.App.ExportSnippets()}function Ei(){return window.go.main.App.GetAllSnippets()}function Si(){return window.go.main.App.GetAutostartStatus()}function Mn(e){return window.go.main.App.GetSetting(e)}function On(e){return window.go.main.App.GetSnippetWithAbbreviation(e)}function Ai(e){return window.go.main.App.GetSnippetWithID(e)}function Bi(e,t){return window.go.main.App.GetSnippets(e,t)}function Rn(e){return window.go.main.App.ImportSnippets(e)}function ki(e){return window.go.main.App.NilUUID(e)}function Hi(e,t){return window.go.main.App.PasteSnippetAndQuit(e,t)}function Ti(e){return window.go.main.App.Ping(e)}function Ii(e){return window.go.main.App.RemoveSnippet(e)}function xi(e,t){return window.go.main.App.SaveSetting(e,t)}function Ci(){return window.go.main.App.SearchAndPasteMode()}function re(e,t){return window.go.main.App.ShowError(e,t)}function Li(e){return window.go.main.App.UpdateAutostart(e)}function Pi(e,t){return window.go.main.App.UpdateSnippetWithID(e,t)}const Ae=[];function Un(e,t){return{subscribe:ge(e,t).subscribe}}function ge(e,t=N){let n;const i=new Set;function r(l){if(q(e,l)&&(e=l,n)){const u=!Ae.length;for(const a of i)a[1](),Ae.push(a,e);if(u){for(let a=0;a<Ae.length;a+=2)Ae[a][0](Ae[a+1]);Ae.length=0}}}function s(l){r(l(e))}function o(l,u=N){const a=[l,u];return i.add(a),i.size===1&&(n=t(r)||N),l(e),()=>{i.delete(a),i.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:o}}function ve(e,t,n){const i=!Array.isArray(e),r=i?[e]:e,s=t.length<2;return Un(n,o=>{let l=!1;const u=[];let a=0,f=N;const d=()=>{if(a)return;f();const p=t(i?u[0]:u,o);s?o(p):f=Oe(p)?p:N},h=r.map((p,m)=>Nt(p,v=>{u[m]=v,a&=~(1<<m),l&&d()},()=>{a|=1<<m}));return l=!0,d(),function(){ce(h),f(),l=!1}})}var Ni=function(t){return Mi(t)&&!Oi(t)};function Mi(e){return!!e&&typeof e=="object"}function Oi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Gi(e)}var Ri=typeof Symbol=="function"&&Symbol.for,Ui=Ri?Symbol.for("react.element"):60103;function Gi(e){return e.$$typeof===Ui}function Di(e){return Array.isArray(e)?[]:{}}function Qe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Le(Di(e),e,t):e}function Fi(e,t,n){return e.concat(t).map(function(i){return Qe(i,n)})}function ji(e,t){if(!t.customMerge)return Le;var n=t.customMerge(e);return typeof n=="function"?n:Le}function zi(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function tn(e){return Object.keys(e).concat(zi(e))}function Gn(e,t){try{return t in e}catch{return!1}}function Vi(e,t){return Gn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wi(e,t,n){var i={};return n.isMergeableObject(e)&&tn(e).forEach(function(r){i[r]=Qe(e[r],n)}),tn(t).forEach(function(r){Vi(e,r)||(Gn(e,r)&&n.isMergeableObject(t[r])?i[r]=ji(r,n)(e[r],t[r],n):i[r]=Qe(t[r],n))}),i}function Le(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Fi,n.isMergeableObject=n.isMergeableObject||Ni,n.cloneUnlessOtherwiseSpecified=Qe;var i=Array.isArray(t),r=Array.isArray(e),s=i===r;return s?i?n.arrayMerge(e,t,n):Wi(e,t,n):Qe(t,n)}Le.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Le(i,r,n)},{})};var Xi=Le,qi=Xi,At=function(e,t){return At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},At(e,t)};function at(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");At(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},W.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var $;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})($||($={}));var Pe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pe||(Pe={}));function nn(e){return e.type===$.literal}function Zi(e){return e.type===$.argument}function Dn(e){return e.type===$.number}function Fn(e){return e.type===$.date}function jn(e){return e.type===$.time}function zn(e){return e.type===$.select}function Vn(e){return e.type===$.plural}function Qi(e){return e.type===$.pound}function Wn(e){return e.type===$.tag}function Xn(e){return!!(e&&typeof e=="object"&&e.type===Pe.number)}function Bt(e){return!!(e&&typeof e=="object"&&e.type===Pe.dateTime)}var qn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ji=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Yi(e){var t={};return e.replace(Ji,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"short":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Ki=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $i(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ki).filter(function(h){return h.length>0}),n=[],i=0,r=t;i<r.length;i++){var s=r[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],u=o.slice(1),a=0,f=u;a<f.length;a++){var d=f[a];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:u})}return n}function er(e){return e.replace(/^(.*?)-/,"")}var rn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zn=/^(@+)?(\+|#+)?[rs]?$/g,tr=/(\*)(0+)|(#+)(0+)|(0+)/g,Qn=/^(0+)$/;function sn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zn,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Jn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nr(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function on(e){var t={},n=Jn(e);return n||t}function ir(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=er(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=W(W(W({},t),{notation:"scientific"}),r.options.reduce(function(u,a){return W(W({},u),on(a))},{}));continue;case"engineering":t=W(W(W({},t),{notation:"engineering"}),r.options.reduce(function(u,a){return W(W({},u),on(a))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(tr,function(u,a,f,d,h,p){if(a)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qn.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(rn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(rn,function(u,a,f,d,h,p){return f==="*"?t.minimumFractionDigits=a.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""});var s=r.options[0];s==="w"?t=W(W({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=W(W({},t),sn(s)));continue}if(Zn.test(r.stem)){t=W(W({},t),sn(r.stem));continue}var o=Jn(r.stem);o&&(t=W(W({},t),o));var l=nr(r.stem);l&&(t=W(W({},t),l))}return t}var et={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function rr(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===r;)s++,i++;var o=1+(s&1),l=s<2?1:3+(s>>1),u="a",a=sr(t);for((a=="H"||a=="k")&&(l=0);l-- >0;)n+=u;for(;o-- >0;)n=a+n}else r==="J"?n+="H":n+=r}return n}function sr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=et[i||""]||et[n||""]||et["".concat(n,"-001")]||et["001"];return r[0]}var dt,or=new RegExp("^".concat(qn.source,"*")),lr=new RegExp("".concat(qn.source,"*$"));function j(e,t){return{start:e,end:t}}var ar=!!String.prototype.startsWith,ur=!!String.fromCodePoint,fr=!!Object.fromEntries,cr=!!String.prototype.codePointAt,hr=!!String.prototype.trimStart,pr=!!String.prototype.trimEnd,mr=!!Number.isSafeInteger,dr=mr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},kt=!0;try{var _r=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kt=((dt=_r.exec("a"))===null||dt===void 0?void 0:dt[0])==="a"}catch{kt=!1}var ln=ar?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},Ht=ur?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,s=0,o;r>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},an=fr?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var s=r[i],o=s[0],l=s[1];n[o]=l}return n},Yn=cr?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),s;return r<55296||r>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},br=hr?function(t){return t.trimStart()}:function(t){return t.replace(or,"")},gr=pr?function(t){return t.trimEnd()}:function(t){return t.replace(lr,"")};function Kn(e,t){return new RegExp(e,t)}var Tt;if(kt){var un=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tt=function(t,n){var i;un.lastIndex=n;var r=un.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else Tt=function(t,n){for(var i=[];;){var r=Yn(t,n);if(r===void 0||$n(r)||Er(r))break;i.push(r),n+=r>=65536?2:1}return Ht.apply(void 0,i)};var vr=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;r.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),r.push({type:$.pound,location:j(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(F.UNMATCHED_CLOSING_TAG,j(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&It(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(r,"/>"),location:j(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!It(this.char()))return this.error(F.INVALID_TAG,j(l,this.clonePosition()));var u=this.clonePosition(),a=this.parseTagName();return r!==a?this.error(F.UNMATCHED_CLOSING_TAG,j(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$.tag,value:r,children:o,location:j(i,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,j(l,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,j(i,this.clonePosition()))}else return this.error(F.INVALID_TAG,j(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wr(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var s=this.tryParseQuote(n);if(s){r+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){r+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){r+=l;continue}break}var u=j(i,this.clonePosition());return{val:{type:$.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!yr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return Ht.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),Ht(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,j(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(F.MALFORMED_ARGUMENT,j(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:r,location:j(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(F.MALFORMED_ARGUMENT,j(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=Tt(this.message,n),r=n+i.length;this.bumpTo(r);var s=this.clonePosition(),o=j(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,n,i,r){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,j(o,u));case"number":case"date":case"time":{this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=gr(d.val);if(h.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,j(this.clonePosition(),this.clonePosition()));var p=j(f,this.clonePosition());a={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(r);if(m.err)return m;var v=j(r,this.clonePosition());if(a&&ln(a==null?void 0:a.style,"::",0)){var S=br(a.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(S,a.styleLocation);return d.err?d:{val:{type:$.number,value:i,location:v,style:d.val},err:null}}else{if(S.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,v);var k=S;this.locale&&(k=rr(S,this.locale));var h={type:Pe.dateTime,pattern:k,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?Yi(k):{}},E=l==="date"?$.date:$.time;return{val:{type:E,value:i,location:v,style:h},err:null}}}return{val:{type:l==="number"?$.number:l==="date"?$.date:$.time,value:i,location:v,style:(s=a==null?void 0:a.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,j(P,W({},P)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),A=0;if(l!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),A=d.val}var b=this.tryParsePluralOrSelectOptions(t,l,n,T);if(b.err)return b;var m=this.tryParseArgumentClose(r);if(m.err)return m;var g=j(r,this.clonePosition());return l==="select"?{val:{type:$.select,value:i,options:an(b.val),location:g},err:null}:{val:{type:$.plural,value:i,options:an(b.val),offset:A,pluralType:l==="plural"?"cardinal":"ordinal",location:g},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,j(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,j(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=$i(t)}catch{return this.error(F.INVALID_NUMBER_SKELETON,n)}return{val:{type:Pe.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?ir(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var s,o=!1,l=[],u=new Set,a=r.value,f=r.location;;){if(a.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=j(d,this.clonePosition()),a=this.message.slice(d.offset,this.offset())}else break}if(u.has(a))return this.error(n==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);a==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,j(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,i);if(m.err)return m;var v=this.tryParseArgumentClose(p);if(v.err)return v;l.push([a,{value:m.val,location:j(p,this.clonePosition())}]),u.add(a),this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=s.value,f=s.location}return l.length===0?this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,j(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,j(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var u=j(r,this.clonePosition());return s?(o*=i,dr(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Yn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ln(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$n(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i!=null?i:null},e}();function It(e){return e>=97&&e<=122||e>=65&&e<=90}function yr(e){return It(e)||e===47}function wr(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function $n(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Er(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function xt(e){e.forEach(function(t){if(delete t.location,zn(t)||Vn(t))for(var n in t.options)delete t.options[n].location,xt(t.options[n].value);else Dn(t)&&Xn(t.style)||(Fn(t)||jn(t))&&Bt(t.style)?delete t.style.location:Wn(t)&&xt(t.children)})}function Sr(e,t){t===void 0&&(t={}),t=W({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new vr(e,t).parse();if(n.err){var i=SyntaxError(F[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||xt(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:Ir,i=t&&t.serializer?t.serializer:Tr,r=t&&t.strategy?t.strategy:Br;return r(e,{cache:n,serializer:i})}function Ar(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ei(e,t,n,i){var r=Ar(i)?i:n(i),s=t.get(r);return typeof s>"u"&&(s=e.call(this,i),t.set(r,s)),s}function ti(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=t.get(r);return typeof s>"u"&&(s=e.apply(this,i),t.set(r,s)),s}function jt(e,t,n,i,r){return n.bind(t,e,i,r)}function Br(e,t){var n=e.length===1?ei:ti;return jt(e,this,n,t.cache.create(),t.serializer)}function kr(e,t){return jt(e,this,ti,t.cache.create(),t.serializer)}function Hr(e,t){return jt(e,this,ei,t.cache.create(),t.serializer)}var Tr=function(){return JSON.stringify(arguments)};function zt(){this.cache=Object.create(null)}zt.prototype.get=function(e){return this.cache[e]};zt.prototype.set=function(e,t){this.cache[e]=t};var Ir={create:function(){return new zt}},bt={variadic:kr,monadic:Hr},Ne;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ne||(Ne={}));var ut=function(e){at(t,e);function t(n,i,r){var s=e.call(this,n)||this;return s.code=i,s.originalMessage=r,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),fn=function(e){at(t,e);function t(n,i,r,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ne.INVALID_VALUE,s)||this}return t}(ut),xr=function(e){at(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),Ne.INVALID_VALUE,r)||this}return t}(ut),Cr=function(e){at(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),Ne.MISSING_VALUE,i)||this}return t}(ut),le;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(le||(le={}));function Lr(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==le.literal||n.type!==le.literal?t.push(n):i.value+=n.value,t},[])}function Pr(e){return typeof e=="function"}function nt(e,t,n,i,r,s,o){if(e.length===1&&nn(e[0]))return[{type:le.literal,value:e[0].value}];for(var l=[],u=0,a=e;u<a.length;u++){var f=a[u];if(nn(f)){l.push({type:le.literal,value:f.value});continue}if(Qi(f)){typeof s=="number"&&l.push({type:le.literal,value:n.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(r&&d in r))throw new Cr(d,o);var h=r[d];if(Zi(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?le.literal:le.object,value:h});continue}if(Fn(f)){var p=typeof f.style=="string"?i.date[f.style]:Bt(f.style)?f.style.parsedOptions:void 0;l.push({type:le.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(jn(f)){var p=typeof f.style=="string"?i.time[f.style]:Bt(f.style)?f.style.parsedOptions:i.time.medium;l.push({type:le.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(Dn(f)){var p=typeof f.style=="string"?i.number[f.style]:Xn(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),l.push({type:le.literal,value:n.getNumberFormat(t,p).format(h)});continue}if(Wn(f)){var m=f.children,v=f.value,S=r[v];if(!Pr(S))throw new xr(v,"function",o);var k=nt(m,t,n,i,r,s),E=S(k.map(function(A){return A.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(A){return{type:typeof A=="string"?le.literal:le.object,value:A}}))}if(zn(f)){var P=f.options[h]||f.options.other;if(!P)throw new fn(f.value,h,Object.keys(f.options),o);l.push.apply(l,nt(P.value,t,n,i,r));continue}if(Vn(f)){var P=f.options["=".concat(h)];if(!P){if(!Intl.PluralRules)throw new ut(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Ne.MISSING_INTL_API,o);var T=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));P=f.options[T]||f.options.other}if(!P)throw new fn(f.value,h,Object.keys(f.options),o);l.push.apply(l,nt(P.value,t,n,i,r,h-(f.offset||0)));continue}}return Lr(l)}function Nr(e,t){return t?W(W(W({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=W(W({},e[i]),t[i]||{}),n},{})):e}function Mr(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Nr(e[i],t[i]),n},W({},e)):e}function gt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Or(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.number),strategy:bt.variadic}),getDateTimeFormat:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.dateTime),strategy:bt.variadic}),getPluralRules:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.pluralRules),strategy:bt.variadic})}}var Rr=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 u=l.reduce(function(a,f){return!a.length||f.type!==le.literal||typeof a[a.length-1]!="string"?a.push(f.value):a[a.length-1]+=f.value,a},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(o){return nt(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=Mr(e.formats,i),this.formatters=r&&r.formatters||Or(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=Sr,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 Ur=Rr,_e={},Gr=(e,t,n)=>n&&(t in _e||(_e[t]={}),e in _e[t]||(_e[t][e]=n),n),ni=(e,t)=>{if(t==null)return;if(t in _e&&e in _e[t])return _e[t][e];const n=$e(t);for(let i=0;i<n.length;i++){const r=Dr(n[i],e);if(r)return Gr(e,t,r)}};let Vt;const Re=ge({});function Wt(e){return e in Vt}function Dr(e,t){if(!Wt(e))return null;const n=function(i){return Vt[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 u=s.slice(l,s.length).join(".");if(u in o){o=o[u];break}}o=o[s[l]]}else o=void 0;return o}(n,t)}function Fr(e,...t){delete _e[e],Re.update(n=>(n[e]=qi.all([n[e]||{},...t]),n))}ve([Re],([e])=>Object.keys(e));Re.subscribe(e=>Vt=e);const Ve={};function We(e){return Ve[e]}function ot(e){return e!=null&&$e(e).some(t=>{var n;return(n=We(t))===null||n===void 0?void 0:n.size})}function jr(e,t){return Promise.all(t.map(i=>(function(r,s){Ve[r].delete(s),Ve[r].size===0&&delete Ve[r]}(e,i),i().then(r=>r.default||r)))).then(i=>Fr(e,...i))}const Fe={};function ii(e){if(!ot(e))return e in Fe?Fe[e]:Promise.resolve();const t=function(n){return $e(n).map(i=>{const r=We(i);return[i,r?[...r]:[]]}).filter(([,i])=>i.length>0)}(e);return Fe[e]=Promise.all(t.map(([n,i])=>jr(n,i))).then(()=>{if(ot(e))return ii(e);delete Fe[e]}),Fe[e]}function zr(e,t){We(e)||function(i){Ve[i]=new Set}(e);const n=We(e);We(e).has(t)||(Wt(e)||Re.update(i=>(i[e]={},i)),n.add(t))}function Vr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${$e(e).join('", "')}".${ot(ye())?`

Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const je={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 Me(){return je}function Wr(e){const{formats:t,...n}=e,i=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Vr:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(je,n,{initialLocale:i}),t&&("number"in t&&Object.assign(je.formats.number,t.number),"date"in t&&Object.assign(je.formats.date,t.date),"time"in t&&Object.assign(je.formats.time,t.time)),Ue.set(i)}const it=ge(!1);let Ct;const rt=ge(null);function cn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function $e(e,t=Me().fallbackLocale){const n=cn(e);return t?[...new Set([...n,...cn(t)])]:n}function ye(){return Ct!=null?Ct:void 0}rt.subscribe(e=>{Ct=e!=null?e:void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ue={...rt,set:e=>{if(e&&function(t){if(t==null)return;const n=$e(t);for(let i=0;i<n.length;i++){const r=n[i];if(Wt(r))return r}}(e)&&ot(e)){const{loadingDelay:t}=Me();let n;return typeof window<"u"&&ye()!=null&&t?n=window.setTimeout(()=>it.set(!0),t):it.set(!0),ii(e).then(()=>{rt.set(e)}).finally(()=>{clearTimeout(n),it.set(!1)})}return rt.set(e)}},Xr=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],ft=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}},Je=(e,t)=>{const{formats:n}=Me();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},qr=ft(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Je("number",t)),new Intl.NumberFormat(e,n)}),Zr=ft(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Je("date",t):Object.keys(n).length===0&&(n=Je("date","short")),new Intl.DateTimeFormat(e,n)}),Qr=ft(({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=Je("time",t):Object.keys(n).length===0&&(n=Je("time","short")),new Intl.DateTimeFormat(e,n)}),Jr=({locale:e=ye(),...t}={})=>qr({locale:e,...t}),Yr=({locale:e=ye(),...t}={})=>Zr({locale:e,...t}),Kr=({locale:e=ye(),...t}={})=>Qr({locale:e,...t}),$r=ft((e,t=ye())=>new Ur(e,t,Me().formats,{ignoreTag:Me().ignoreTag})),es=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:u=ye(),default:a}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ni(e,u);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=Me()).handleMissingMessage)===null||i===void 0?void 0:i.call(n,{locale:u,id:e,defaultValue:a}))!==null&&r!==void 0?r:a)!==null&&s!==void 0?s:e;if(!l)return f;let d=f;try{d=$r(f,u).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},ts=(e,t)=>Kr(t).format(e),ns=(e,t)=>Yr(t).format(e),is=(e,t)=>Jr(t).format(e),rs=(e,t=ye())=>ni(e,t),Ee=ve([Ue,Re],()=>es);ve([Ue],()=>ts);ve([Ue],()=>ns);ve([Ue],()=>is);ve([Ue,Re],()=>rs);function ss(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,i,r,s,o=[],l="",u=e.split("/");for(u[0]||u.shift();r=u.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 os(e){let t,n,i;const r=[e[2]];var s=e[0];function o(l){let u={};for(let a=0;a<r.length;a+=1)u=Pt(u,r[a]);return{props:u}}return s&&(t=Ce(s,o()),t.$on("routeEvent",e[7])),{c(){t&&G(t.$$.fragment),n=pe()},m(l,u){t&&R(t,l,u),w(l,n,u),i=!0},p(l,u){const a=u&4?Pn(r,[Nn(l[2])]):{};if(u&1&&s!==(s=l[0])){if(t){ne();const f=t;H(f.$$.fragment,1,0,()=>{U(f,1)}),ie()}s?(t=Ce(s,o()),t.$on("routeEvent",l[7]),G(t.$$.fragment),B(t.$$.fragment,1),R(t,n.parentNode,n)):t=null}else s&&t.$set(a)},i(l){i||(t&&B(t.$$.fragment,l),i=!0)},o(l){t&&H(t.$$.fragment,l),i=!1},d(l){l&&y(n),t&&U(t,l)}}}function ls(e){let t,n,i;const r=[{params:e[1]},e[2]];var s=e[0];function o(l){let u={};for(let a=0;a<r.length;a+=1)u=Pt(u,r[a]);return{props:u}}return s&&(t=Ce(s,o()),t.$on("routeEvent",e[6])),{c(){t&&G(t.$$.fragment),n=pe()},m(l,u){t&&R(t,l,u),w(l,n,u),i=!0},p(l,u){const a=u&6?Pn(r,[u&2&&{params:l[1]},u&4&&Nn(l[2])]):{};if(u&1&&s!==(s=l[0])){if(t){ne();const f=t;H(f.$$.fragment,1,0,()=>{U(f,1)}),ie()}s?(t=Ce(s,o()),t.$on("routeEvent",l[6]),G(t.$$.fragment),B(t.$$.fragment,1),R(t,n.parentNode,n)):t=null}else s&&t.$set(a)},i(l){i||(t&&B(t.$$.fragment,l),i=!0)},o(l){t&&H(t.$$.fragment,l),i=!1},d(l){l&&y(n),t&&U(t,l)}}}function as(e){let t,n,i,r;const s=[ls,os],o=[];function l(u,a){return u[1]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function hn(){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 Xt=Un(null,function(t){t(hn());const n=()=>{t(hn())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});ve(Xt,e=>e.location);ve(Xt,e=>e.querystring);const pn=ge(void 0);async function st(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Ft(),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 he(){await Ft(),window.history.back()}function us(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function fs(e,t,n){let{routes:i={}}=t,{prefix:r=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(A,b){if(!b||typeof b!="function"&&(typeof b!="object"||b._sveltesparouter!==!0))throw Error("Invalid component object");if(!A||typeof A=="string"&&(A.length<1||A.charAt(0)!="/"&&A.charAt(0)!="*")||typeof A=="object"&&!(A instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:g,keys:C}=ss(A);this.path=A,typeof b=="object"&&b._sveltesparouter===!0?(this.component=b.component,this.conditions=b.conditions||[],this.userData=b.userData,this.props=b.props||{}):(this.component=()=>Promise.resolve(b),this.conditions=[],this.props={}),this._pattern=g,this._keys=C}match(A){if(r){if(typeof r=="string")if(A.startsWith(r))A=A.substr(r.length)||"/";else return null;else if(r instanceof RegExp){const _=A.match(r);if(_&&_[0])A=A.substr(_[0].length)||"/";else return null}}const b=this._pattern.exec(A);if(b===null)return null;if(this._keys===!1)return b;const g={};let C=0;for(;C<this._keys.length;){try{g[this._keys[C]]=decodeURIComponent(b[C+1]||"")||null}catch{g[this._keys[C]]=null}C++}return g}async checkConditions(A){for(let b=0;b<this.conditions.length;b++)if(!await this.conditions[b](A))return!1;return!0}}const l=[];i instanceof Map?i.forEach((T,A)=>{l.push(new o(A,T))}):Object.keys(i).forEach(T=>{l.push(new o(T,i[T]))});let u=null,a=null,f={};const d=Ke();async function h(T,A){await Ft(),d(T,A)}let p=null,m=null;s&&(m=T=>{T.state&&(T.state.__svelte_spa_router_scrollY||T.state.__svelte_spa_router_scrollX)?p=T.state:p=null},window.addEventListener("popstate",m),In(()=>{us(p)}));let v=null,S=null;const k=Xt.subscribe(async T=>{v=T;let A=0;for(;A<l.length;){const b=l[A].match(T.location);if(!b){A++;continue}const g={route:l[A].path,location:T.location,querystring:T.querystring,userData:l[A].userData,params:b&&typeof b=="object"&&Object.keys(b).length?b:null};if(!await l[A].checkConditions(g)){n(0,u=null),S=null,h("conditionsFailed",g);return}h("routeLoading",Object.assign({},g));const C=l[A].component;if(S!=C){C.loading?(n(0,u=C.loading),S=C,n(1,a=C.loadingParams),n(2,f={}),h("routeLoaded",Object.assign({},g,{component:u,name:u.name,params:a}))):(n(0,u=null),S=null);const _=await C();if(T!=v)return;n(0,u=_&&_.default||_),S=C}b&&typeof b=="object"&&Object.keys(b).length?n(1,a=b):n(1,a=null),n(2,f=l[A].props),h("routeLoaded",Object.assign({},g,{component:u,name:u.name,params:a})).then(()=>{pn.set(a)});return}n(0,u=null),S=null,pn.set(void 0)});Dt(()=>{k(),m&&window.removeEventListener("popstate",m)});function E(T){Ze.call(this,e,T)}function P(T){Ze.call(this,e,T)}return e.$$set=T=>{"routes"in T&&n(3,i=T.routes),"prefix"in T&&n(4,r=T.prefix),"restoreScrollState"in T&&n(5,s=T.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,a,f,i,r,s,E,P]}class cs extends J{constructor(t){super(),Q(this,t,fs,as,q,{routes:3,prefix:4,restoreScrollState:5})}}const fe=ge(!1);function ri(){const{subscribe:e,set:t,update:n}=ge([]);return{subscribe:e,fetch:async()=>{if(!$t(fe))return;const i=await Ei();n(r=>i)},search:async(i,r)=>{if(!$t(fe))return;const s=await Bi(i,r);n(o=>s)},reset:()=>t([])}}const Ie=ri(),vt=ge(""),yt=ri();function hs(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function ps(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 ms extends J{constructor(t){super(),Q(this,t,ps,hs,q,{size:0,strokeWidth:1,class:2})}}function ds(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function _s(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 bs extends J{constructor(t){super(),Q(this,t,_s,ds,q,{size:0,strokeWidth:1,class:2})}}function gs(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function vs(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 ys extends J{constructor(t){super(),Q(this,t,vs,gs,q,{size:0,strokeWidth:1,class:2})}}function ws(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function Es(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 Ss extends J{constructor(t){super(),Q(this,t,Es,ws,q,{size:0,strokeWidth:1,class:2})}}function As(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function Bs(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 ks extends J{constructor(t){super(),Q(this,t,Bs,As,q,{size:0,strokeWidth:1,class:2})}}function Hs(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function Ts(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 si extends J{constructor(t){super(),Q(this,t,Ts,Hs,q,{size:0,strokeWidth:1,class:2})}}function Is(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function xs(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 Cs extends J{constructor(t){super(),Q(this,t,xs,Is,q,{size:0,strokeWidth:1,class:2})}}function Ls(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function Ps(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 Ns extends J{constructor(t){super(),Q(this,t,Ps,Ls,q,{size:0,strokeWidth:1,class:2})}}function Ms(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function Os(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 Lt extends J{constructor(t){super(),Q(this,t,Os,Ms,q,{size:0,strokeWidth:1,class:2})}}function Rs(e){let t,n=e[0]("no_connection")+"",i;return{c(){t=O("p"),i=z(n),c(t,"class","error svelte-dx7iaz")},m(r,s){w(r,t,s),I(t,i)},p(r,[s]){s&1&&n!==(n=r[0]("no_connection")+"")&&X(i,n)},i:N,o:N,d(r){r&&y(t)}}}function Us(e,t,n){let i;return te(e,Ee,r=>n(0,i=r)),[i]}class Gs extends J{constructor(t){super(),Q(this,t,Us,Rs,q,{})}}function mn(e){let t,n;return t=new Gs({}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Ds(e){let t,n,i,r,s,o=!e[1]&&mn();const l=e[4].default,u=Mt(l,e,e[3],null);return{c(){t=O("div"),o&&o.c(),n=D(),u&&u.c(),c(t,"class","screen svelte-i096ea"),Z(t,"centered",e[0])},m(a,f){w(a,t,f),o&&o.m(t,null),I(t,n),u&&u.m(t,null),i=!0,r||(s=[ee(t,"keyup",e[2]),ee(t,"keyup",e[5])],r=!0)},p(a,[f]){a[1]?o&&(ne(),H(o,1,1,()=>{o=null}),ie()):o?f&2&&B(o,1):(o=mn(),o.c(),B(o,1),o.m(t,n)),u&&u.p&&(!i||f&8)&&Rt(u,l,a,a[3],i?Ot(l,a[3],f,null):Ut(a[3]),null),(!i||f&1)&&Z(t,"centered",a[0])},i(a){i||(B(o),B(u,a),i=!0)},o(a){H(o),H(u,a),i=!1},d(a){a&&y(t),o&&o.d(),u&&u.d(a),r=!1,ce(s)}}}function Fs(e,t,n){let i;te(e,fe,f=>n(1,i=f));let{$$slots:r={},$$scope:s}=t,{centered:o=!1}=t;const l=Ke();function u(f){f.key==="Escape"&&(f.preventDefault(),l("cancel"))}function a(f){Ze.call(this,e,f)}return e.$$set=f=>{"centered"in f&&n(0,o=f.centered),"$$scope"in f&&n(3,s=f.$$scope)},[o,i,u,s,r,a]}class Ge extends J{constructor(t){super(),Q(this,t,Fs,Ds,q,{centered:0})}}function js(e){let t,n,i,r,s,o,l,u;var a=e[0];function f(p){return{props:{size:p[2],strokeWidth:p[3]}}}a&&(i=Ce(a,f(e)));const d=e[9].default,h=Mt(d,e,e[8],null);return{c(){t=O("div"),n=O("div"),i&&G(i.$$.fragment),s=D(),h&&h.c(),c(n,"class",r="icon-wrapper "+e[1]+" svelte-bhj2u4"),c(t,"class","content svelte-bhj2u4"),c(t,"tabindex","0"),Z(t,"centered",e[5]),Z(t,"horizontal",e[4])},m(p,m){w(p,t,m),I(t,n),i&&R(i,n,null),I(t,s),h&&h.m(t,null),o=!0,l||(u=[ee(t,"click",e[6]),ee(t,"keyup",e[7])],l=!0)},p(p,[m]){const v={};if(m&4&&(v.size=p[2]),m&8&&(v.strokeWidth=p[3]),m&1&&a!==(a=p[0])){if(i){ne();const S=i;H(S.$$.fragment,1,0,()=>{U(S,1)}),ie()}a?(i=Ce(a,f(p)),G(i.$$.fragment),B(i.$$.fragment,1),R(i,n,null)):i=null}else a&&i.$set(v);(!o||m&2&&r!==(r="icon-wrapper "+p[1]+" svelte-bhj2u4"))&&c(n,"class",r),h&&h.p&&(!o||m&256)&&Rt(h,d,p,p[8],o?Ot(d,p[8],m,null):Ut(p[8]),null),(!o||m&16)&&Z(t,"horizontal",p[4])},i(p){o||(i&&B(i.$$.fragment,p),B(h,p),o=!0)},o(p){i&&H(i.$$.fragment,p),H(h,p),o=!1},d(p){p&&y(t),i&&U(i),h&&h.d(p),l=!1,ce(u)}}}function zs(e,t,n){let{$$slots:i={},$$scope:r}=t,{icon:s=ks}=t,{iconClass:o}=t,{size:l="24"}=t,{strokeWidth:u="2"}=t,{horizontal:a=!1}=t;const f=!a,d=Ke();function h(){d("activate")}function p(m){(m.key==="Enter"||m.key===" ")&&d("activate")}return e.$$set=m=>{"icon"in m&&n(0,s=m.icon),"iconClass"in m&&n(1,o=m.iconClass),"size"in m&&n(2,l=m.size),"strokeWidth"in m&&n(3,u=m.strokeWidth),"horizontal"in m&&n(4,a=m.horizontal),"$$scope"in m&&n(8,r=m.$$scope)},[s,o,l,u,a,f,h,p,r,i]}class be extends J{constructor(t){super(),Q(this,t,zs,js,q,{icon:0,iconClass:1,size:2,strokeWidth:3,horizontal:4})}}function Vs(e,t){t&&setTimeout(()=>{e.focus(),e.select()},250)}function dn(e){let t,n;return{c(){t=O("label"),n=z(e[4]),c(t,"for",e[3])},m(i,r){w(i,t,r),I(t,n)},p(i,r){r&16&&X(n,i[4]),r&8&&c(t,"for",i[3])},d(i){i&&y(t)}}}function _n(e){let t,n,i,r,s;return n=new Cs({}),{c(){t=O("button"),G(n.$$.fragment),c(t,"class","search-icon svelte-1emqogb"),c(t,"tabindex",-1),Z(t,"focussed",e[2])},m(o,l){w(o,t,l),R(n,t,null),i=!0,r||(s=ee(t,"click",e[12]),r=!0)},p(o,l){(!i||l&4)&&Z(t,"focussed",o[2])},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&y(t),U(n),r=!1,s()}}}function bn(e){let t,n,i,r,s;return n=new bs({}),{c(){t=O("button"),G(n.$$.fragment),c(t,"class","clear-icon svelte-1emqogb"),c(t,"tabindex",-1),Z(t,"focussed",e[2])},m(o,l){w(o,t,l),R(n,t,null),i=!0,r||(s=ee(t,"click",e[13]),r=!0)},p(o,l){(!i||l&4)&&Z(t,"focussed",o[2])},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&y(t),U(n),r=!1,s()}}}function gn(e){let t;return{c(){t=O("div"),c(t,"class","error-message svelte-1emqogb")},m(n,i){w(n,t,i),t.innerHTML=e[9]},p(n,i){i&512&&(t.innerHTML=n[9])},d(n){n&&y(t)}}}function Ws(e){let t,n,i,r,s,o,l,u,a,f,d,h,p=e[4]&&dn(e),m=e[7]&&_n(e),v=e[7]&&e[0]&&bn(e),S=!e[7]&&gn(e);return{c(){t=O("div"),p&&p.c(),n=D(),i=O("div"),m&&m.c(),r=D(),s=O("input"),l=D(),v&&v.c(),u=D(),S&&S.c(),a=pe(),c(s,"type","text"),c(s,"id",e[3]),c(s,"name",e[3]),c(s,"placeholder",e[5]),c(s,"tabindex",e[8]),c(s,"class","svelte-1emqogb"),Z(s,"search",e[7]),Z(s,"focussed",e[2]),Z(s,"value",e[0]),c(i,"class","input-control svelte-1emqogb"),c(t,"class","input svelte-1emqogb")},m(k,E){w(k,t,E),p&&p.m(t,null),I(t,n),I(t,i),m&&m.m(i,null),I(i,r),I(i,s),xe(s,e[0]),e[16](s),I(i,l),v&&v.m(i,null),w(k,u,E),S&&S.m(k,E),w(k,a,E),f=!0,d||(h=[ee(s,"input",e[15]),ee(s,"focusin",e[10]),ee(s,"focusout",e[11]),Gt(o=Vs.call(null,s,e[6]))],d=!0)},p(k,[E]){k[4]?p?p.p(k,E):(p=dn(k),p.c(),p.m(t,n)):p&&(p.d(1),p=null),k[7]?m?(m.p(k,E),E&128&&B(m,1)):(m=_n(k),m.c(),B(m,1),m.m(i,r)):m&&(ne(),H(m,1,1,()=>{m=null}),ie()),(!f||E&8)&&c(s,"id",k[3]),(!f||E&8)&&c(s,"name",k[3]),(!f||E&32)&&c(s,"placeholder",k[5]),(!f||E&256)&&c(s,"tabindex",k[8]),E&1&&s.value!==k[0]&&xe(s,k[0]),o&&Oe(o.update)&&E&64&&o.update.call(null,k[6]),(!f||E&128)&&Z(s,"search",k[7]),(!f||E&4)&&Z(s,"focussed",k[2]),(!f||E&1)&&Z(s,"value",k[0]),k[7]&&k[0]?v?(v.p(k,E),E&129&&B(v,1)):(v=bn(k),v.c(),B(v,1),v.m(i,null)):v&&(ne(),H(v,1,1,()=>{v=null}),ie()),k[7]?S&&(S.d(1),S=null):S?S.p(k,E):(S=gn(k),S.c(),S.m(a.parentNode,a))},i(k){f||(B(m),B(v),f=!0)},o(k){H(m),H(v),f=!1},d(k){k&&y(t),p&&p.d(),m&&m.d(),e[16](null),v&&v.d(),k&&y(u),S&&S.d(k),k&&y(a),d=!1,ce(h)}}}function Xs(e,t,n){let i;const r=Ke();let{name:s="input"}=t,{label:o=""}=t,{value:l=""}=t,{errorMessage:u=""}=t,{placeholder:a=""}=t,{autofocus:f=!1}=t,{search:d=!1}=t,{tabindex:h=0}=t,{ref:p}=t,{focussed:m=f}=t;function v(){n(2,m=!0)}function S(){n(2,m=!1)}function k(){r("query",l),document.getElementById(s).focus()}function E(){n(0,l=""),document.getElementById(s).focus()}function P(){l=this.value,n(0,l)}function T(A){ue[A?"unshift":"push"](()=>{p=A,n(1,p)})}return e.$$set=A=>{"name"in A&&n(3,s=A.name),"label"in A&&n(4,o=A.label),"value"in A&&n(0,l=A.value),"errorMessage"in A&&n(14,u=A.errorMessage),"placeholder"in A&&n(5,a=A.placeholder),"autofocus"in A&&n(6,f=A.autofocus),"search"in A&&n(7,d=A.search),"tabindex"in A&&n(8,h=A.tabindex),"ref"in A&&n(1,p=A.ref),"focussed"in A&&n(2,m=A.focussed)},e.$$.update=()=>{e.$$.dirty&16384&&n(9,i=u||"&nbsp;")},[l,p,m,s,o,a,f,d,h,i,v,S,k,E,u,P,T]}class qt extends J{constructor(t){super(),Q(this,t,Xs,Ws,q,{name:3,label:4,value:0,errorMessage:14,placeholder:5,autofocus:6,search:7,tabindex:8,ref:1,focussed:2})}}function oi(e,t){t&&e.focus()}function qs(e){let t;return{c(){t=z(e[0])},m(n,i){w(n,t,i)},p(n,i){i&1&&X(t,n[0])},d(n){n&&y(t)}}}function Zs(e){let t;return{c(){t=z("\xA0")},m(n,i){w(n,t,i)},p:N,d(n){n&&y(t)}}}function Qs(e){let t;function n(s,o){return s[1]?Zs:qs}let r=n(e)(e);return{c(){t=O("span"),r.c(),c(t,"class","shortcut-button svelte-11t060e"),Z(t,"hide",e[1])},m(s,o){w(s,t,o),r.m(t,null)},p(s,[o]){r.p(s,o)},i:N,o:N,d(s){s&&y(t),r.d()}}}function Js(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 li extends J{constructor(t){super(),Q(this,t,Js,Qs,q,{shortcut:0})}}function vn(e){let t,n;return t=new li({props:{shortcut:e[6]}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,r){const s={};r&64&&(s.shortcut=i[6]),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function yn(e){let t,n,i;return n=new Ss({props:{size:"1.25x"}}),{c(){t=O("div"),G(n.$$.fragment),c(t,"class","edit-icon-wrapper svelte-in7i1c")},m(r,s){w(r,t,s),R(n,t,null),i=!0},i(r){i||(B(n.$$.fragment,r),i=!0)},o(r){H(n.$$.fragment,r),i=!1},d(r){r&&y(t),U(n)}}}function Ys(e){let t,n,i,r,s,o=e[0].body+"",l,u,a,f,d,h=e[4]&&vn(e);i=new li({props:{shortcut:e[0].abbreviation}});let p=!e[4]&&yn();return{c(){t=O("li"),h&&h.c(),n=D(),G(i.$$.fragment),r=D(),s=O("span"),l=z(o),u=D(),p&&p.c(),c(s,"class","body svelte-in7i1c"),c(t,"tabindex",e[1]),c(t,"class","svelte-in7i1c"),Z(t,"focussed",e[2]),Z(t,"active",e[3])},m(m,v){w(m,t,v),h&&h.m(t,null),I(t,n),R(i,t,null),I(t,r),I(t,s),I(s,l),I(t,u),p&&p.m(t,null),e[12](t),a=!0,f||(d=ee(t,"click",e[11]),f=!0)},p(m,[v]){m[4]?h?(h.p(m,v),v&16&&B(h,1)):(h=vn(m),h.c(),B(h,1),h.m(t,n)):h&&(ne(),H(h,1,1,()=>{h=null}),ie());const S={};v&1&&(S.shortcut=m[0].abbreviation),i.$set(S),(!a||v&1)&&o!==(o=m[0].body+"")&&X(l,o),m[4]?p&&(ne(),H(p,1,1,()=>{p=null}),ie()):p?v&16&&B(p,1):(p=yn(),p.c(),B(p,1),p.m(t,null)),(!a||v&2)&&c(t,"tabindex",m[1]),(!a||v&4)&&Z(t,"focussed",m[2]),(!a||v&8)&&Z(t,"active",m[3])},i(m){a||(B(h),B(i.$$.fragment,m),B(p),a=!0)},o(m){H(h),H(i.$$.fragment,m),H(p),a=!1},d(m){m&&y(t),h&&h.d(),U(i),p&&p.d(),e[12](null),f=!1,d()}}}function Ks(e,t,n){let{snippet:i}=t,{index:r=-1}=t,{tabindex:s=-1}=t,{focussed:o=!1}=t,{active:l=!1}=t,{selectMode:u=!1}=t,{observer:a=null}=t,f,d=r>=0&&r<10?r+1:"";d===10&&(d=0);function h(){return f.classList.contains("is-visible")}function p(S){f.scrollIntoView({behavior:"smooth",block:S})}Ye(()=>{a&&a.observe(f)}),Dt(()=>{a&&a.unobserve(f)});function m(S){Ze.call(this,e,S)}function v(S){ue[S?"unshift":"push"](()=>{f=S,n(5,f)})}return e.$$set=S=>{"snippet"in S&&n(0,i=S.snippet),"index"in S&&n(7,r=S.index),"tabindex"in S&&n(1,s=S.tabindex),"focussed"in S&&n(2,o=S.focussed),"active"in S&&n(3,l=S.active),"selectMode"in S&&n(4,u=S.selectMode),"observer"in S&&n(8,a=S.observer)},[i,s,o,l,u,f,d,r,a,h,p,m,v]}class $s extends J{constructor(t){super(),Q(this,t,Ks,Ys,q,{snippet:0,index:7,tabindex:1,focussed:2,active:3,selectMode:4,observer:8,isVisible:9,scrollIntoView:10})}get isVisible(){return this.$$.ctx[9]}get scrollIntoView(){return this.$$.ctx[10]}}function wn(e,t,n){const i=e.slice();return i[22]=t[n],i[23]=t,i[24]=n,i}function En(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 $s({props:l}),r(),t.$on("click",o),{c(){G(t.$$.fragment)},m(u,a){R(t,u,a),i=!0},p(u,a){e=u,n!==e[24]&&(s(),n=e[24],r());const f={};a&128&&(f.snippet=e[22]),a&16&&(f.focussed=e[24]===e[4]),a&32&&(f.active=e[5]),a&4&&(f.selectMode=e[2]),t.$set(f)},i(u){i||(B(t.$$.fragment,u),i=!0)},o(u){H(t.$$.fragment,u),i=!1},d(u){s(),U(t,u)}}}function eo(e){let t,n,i,r,s,o=e[7],l=[];for(let a=0;a<o.length;a+=1)l[a]=En(wn(e,o,a));const u=a=>H(l[a],1,1,()=>{l[a]=null});return{c(){t=O("ul");for(let a=0;a<l.length;a+=1)l[a].c();c(t,"tabindex",e[1]),c(t,"class","svelte-1uwz3ip")},m(a,f){w(a,t,f);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(t,null);e[16](t),i=!0,r||(s=[ee(t,"focus",e[9]),ee(t,"blur",e[10]),ee(t,"keydown",e[12]),Gt(n=oi.call(null,t,e[3]))],r=!0)},p(a,[f]){if(f&2548){o=a[7];let d;for(d=0;d<o.length;d+=1){const h=wn(a,o,d);l[d]?(l[d].p(h,f),B(l[d],1)):(l[d]=En(h),l[d].c(),B(l[d],1),l[d].m(t,null))}for(ne(),d=o.length;d<l.length;d+=1)u(d);ie()}(!i||f&2)&&c(t,"tabindex",a[1]),n&&Oe(n.update)&&f&8&&n.update.call(null,a[3])},i(a){if(!i){for(let f=0;f<o.length;f+=1)B(l[f]);i=!0}},o(a){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)H(l[f]);i=!1},d(a){a&&y(t),pi(l,a),e[16](null),r=!1,ce(s)}}}function to(e,t,n){let i;const r=Ke();let{snippets:s=null}=t,{tabindex:o=0}=t,{selectMode:l=!1}=t,{autofocus:u=!1}=t,{ref:a}=t,f=0,d=u,h=[];const p=new IntersectionObserver(function(_){for(let L=0;L<_.length;L++)_[L].isIntersecting?_[L].target.classList.add("is-visible"):_[L].target.classList.remove("is-visible")},{root:a,threshold:[.6]});function m(_){return n(4,f=0),_}function v(){n(5,d=!0)}function S(){n(5,d=!1)}function k(_){l?T(i[_]):A(i[_])}function E(_){!s||s.length===0||P(_)&&_.preventDefault()}function P(_){if(_.key==="Home"||_.key==="g")return n(4,f=0),h[f].scrollIntoView("nearest"),!0;if(_.key==="End"||_.key==="G")return n(4,f=s.length-1),h[f].scrollIntoView("nearest"),!0;if(f<s.length-1&&(_.key==="ArrowDown"||_.key==="j"))return n(4,f++,f),h[f].scrollIntoView("nearest"),!0;if(f>0&&(_.key==="ArrowUp"||_.key==="k"))return n(4,f--,f),h[f].scrollIntoView("nearest"),!0;if(_.key==="PageDown"||_.key==="d"){let L=-1,x=-1;for(let Y=0;Y<h.length;Y++)if(h[Y].isVisible())x=Y,L<0&&(L=Y);else if(x>=0)break;const se=h.length-1,oe=x-L;return x+oe>se?n(4,f=se):n(4,f=x),h[f].scrollIntoView("start"),!0}if(_.key==="PageUp"||_.key==="u"){let L=-1,x=-1;for(let oe=0;oe<h.length;oe++){const Y=h[oe];if(Y.isVisible()&&L<0)L=oe,x=oe;else if(Y.isVisible())x=oe;else if(L>=0)break}const se=x-L;return L-se<=0?n(4,f=0):n(4,f=L),h[f].scrollIntoView("end"),!0}if(l&&f>=0&&f<s.length&&_.key==="Enter")return T(i[f]),!0;if(l&&["1","2","3","4","5","6","7","8","9","0"].includes(_.key)){let L=_.key-1;return L===-1&&(L=9),L+1>i.length?!1:(T(i[L]),!0)}return!l&&f>=0&&f<s.length&&(_.key==="ArrowRight"||_.key==="Enter")?(A(i[f]),!0):!1}function T(_){r("itemActivated",{snippet:_})}function A(_){r("itemEdit",{snippet:_})}In(()=>{h.length!==i.length&&n(6,h.length=i.length,h)});function b(_,L){ue[_?"unshift":"push"](()=>{h[L]=_,n(6,h)})}const g=_=>k(_);function C(_){ue[_?"unshift":"push"](()=>{a=_,n(0,a)})}return e.$$set=_=>{"snippets"in _&&n(13,s=_.snippets),"tabindex"in _&&n(1,o=_.tabindex),"selectMode"in _&&n(2,l=_.selectMode),"autofocus"in _&&n(3,u=_.autofocus),"ref"in _&&n(0,a=_.ref)},e.$$.update=()=>{e.$$.dirty&8192&&n(7,i=m(s))},[a,o,l,u,f,d,h,i,p,v,S,k,E,s,b,g,C]}class no extends J{constructor(t){super(),Q(this,t,to,eo,q,{snippets:13,tabindex:1,selectMode:2,autofocus:3,ref:0})}}function Sn(e){let t,n;return t=new be({props:{iconClass:"dimmed",icon:si,size:"2.3x"}}),t.$on("activate",e[10]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function An(e){let t,n;return t=new be({props:{iconClass:"dimmed",icon:Ns,size:"2x"}}),t.$on("activate",e[11]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function io(e){let t,n,i=e[6]("no_snippets_found.title")+"",r,s,o,l=e[6]("no_snippets_found.description")+"",u;return{c(){t=O("div"),n=O("p"),r=z(i),s=D(),o=O("p"),u=z(l),c(n,"class","no-snippets-found svelte-fbjbp5"),c(o,"class","no-snippets-found description dimmed svelte-fbjbp5"),c(t,"class","centered")},m(a,f){w(a,t,f),I(t,n),I(n,r),I(t,s),I(t,o),I(o,u)},p(a,f){f&64&&i!==(i=a[6]("no_snippets_found.title")+"")&&X(r,i),f&64&&l!==(l=a[6]("no_snippets_found.description")+"")&&X(u,l)},i:N,o:N,d(a){a&&y(t)}}}function ro(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 no({props:s}),ue.push(()=>Te(t,"ref",r)),t.$on("itemActivated",e[12]),t.$on("itemEdit",e[13]),{c(){G(t.$$.fragment)},m(o,l){R(t,o,l),i=!0},p(o,l){const u={};l&128&&(u.snippets=o[7]),l&1&&(u.selectMode=o[0]),!n&&l&16&&(n=!0,u.ref=o[4],He(()=>n=!1)),t.$set(u)},i(o){i||(B(t.$$.fragment,o),i=!0)},o(o){H(t.$$.fragment,o),i=!1},d(o){U(t,o)}}}function so(e){let t,n,i,r,s,o,l,u,a,f,d,h,p=!e[0]&&Sn(e);function m(b){e[18](b)}function v(b){e[19](b)}function S(b){e[20](b)}let k={search:!0,autofocus:e[1],placeholder:e[6]("search"),tabindex:1};e[2]!==void 0&&(k.value=e[2]),e[3]!==void 0&&(k.ref=e[3]),e[5]!==void 0&&(k.focussed=e[5]),i=new qt({props:k}),ue.push(()=>Te(i,"value",m)),ue.push(()=>Te(i,"ref",v)),ue.push(()=>Te(i,"focussed",S)),i.$on("query",e[9]);let E=!e[0]&&An(e);const P=[ro,io],T=[];function A(b,g){return b[7]?0:1}return a=A(e),f=T[a]=P[a](e),{c(){t=O("div"),p&&p.c(),n=D(),G(i.$$.fragment),l=D(),E&&E.c(),u=D(),f.c(),d=pe(),c(t,"class","toolbar svelte-fbjbp5")},m(b,g){w(b,t,g),p&&p.m(t,null),I(t,n),R(i,t,null),I(t,l),E&&E.m(t,null),w(b,u,g),T[a].m(b,g),w(b,d,g),h=!0},p(b,g){b[0]?p&&(ne(),H(p,1,1,()=>{p=null}),ie()):p?(p.p(b,g),g&1&&B(p,1)):(p=Sn(b),p.c(),B(p,1),p.m(t,n));const C={};g&2&&(C.autofocus=b[1]),g&64&&(C.placeholder=b[6]("search")),!r&&g&4&&(r=!0,C.value=b[2],He(()=>r=!1)),!s&&g&8&&(s=!0,C.ref=b[3],He(()=>s=!1)),!o&&g&32&&(o=!0,C.focussed=b[5],He(()=>o=!1)),i.$set(C),b[0]?E&&(ne(),H(E,1,1,()=>{E=null}),ie()):E?(E.p(b,g),g&1&&B(E,1)):(E=An(b),E.c(),B(E,1),E.m(t,null));let _=a;a=A(b),a===_?T[a].p(b,g):(ne(),H(T[_],1,1,()=>{T[_]=null}),ie(),f=T[a],f?f.p(b,g):(f=T[a]=P[a](b),f.c()),B(f,1),f.m(d.parentNode,d))},i(b){h||(B(p),B(i.$$.fragment,b),B(E),B(f),h=!0)},o(b){H(p),H(i.$$.fragment,b),H(E),H(f),h=!1},d(b){b&&y(t),p&&p.d(),U(i),E&&E.d(),b&&y(u),T[a].d(b),b&&y(d)}}}function oo(e){let t,n;return t=new Ge({props:{$$slots:{default:[so]},$$scope:{ctx:e}}}),t.$on("keyup",e[14]),t.$on("cancel",e[15]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&16777471&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function lo(e,t,n){let i,r,s,o;te(e,fe,x=>n(17,i=x)),te(e,vt,x=>n(2,r=x)),te(e,Ee,x=>n(6,s=x)),te(e,yt,x=>n(7,o=x));let{orderByLastUsed:l=!1}=t,{selectMode:u=!1}=t,{focusSearchBox:a=!0}=t;const f=!a;let d,h,p=a;function m(x){hi(vt,r=x.detail,r),yt.search(r,l)}function v(){st("/snippet/add")}function S(){st("/settings")}function k(x){Hi(x.detail.snippet.abbreviation,500)}function E(x){const se=x.detail.snippet.id;st("/snippet/edit/"+se)}function P(x,se,oe){yt.search(x,se)}function T(){p?h.focus():d.focus()}function A(x){x.ctrlKey&&x.key==="n"&&(v(),x.preventDefault()),x.ctrlKey&&x.altKey&&x.key==="s"&&(S(),x.preventDefault()),x.ctrlKey&&x.key==="f"&&(T(),x.preventDefault())}function b(){u&&vi()}function g(x){r=x,vt.set(r)}function C(x){d=x,n(3,d)}function _(x){p=x,n(5,p)}function L(x){h=x,n(4,h)}return e.$$set=x=>{"orderByLastUsed"in x&&n(16,l=x.orderByLastUsed),"selectMode"in x&&n(0,u=x.selectMode),"focusSearchBox"in x&&n(1,a=x.focusSearchBox)},e.$$.update=()=>{e.$$.dirty&196612&&P(r,l)},[u,a,r,d,h,p,s,o,f,m,v,S,k,E,A,b,l,i,g,C,_,L]}class ao extends J{constructor(t){super(),Q(this,t,lo,oo,q,{orderByLastUsed:16,selectMode:0,focusSearchBox:1})}}function Bn(e){let t,n,i,r,s,o;return n=new be({props:{iconClass:"dimmed",icon:si,size:"5x",$$slots:{default:[uo]},$$scope:{ctx:e}}}),n.$on("activate",e[2]),s=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[fo]},$$scope:{ctx:e}}}),s.$on("activate",e[3]),{c(){t=O("p"),G(n.$$.fragment),i=D(),r=O("p"),G(s.$$.fragment),c(t,"class","add-snippet"),c(r,"class","import-snippets")},m(l,u){w(l,t,u),R(n,t,null),w(l,i,u),w(l,r,u),R(s,r,null),o=!0},p(l,u){const a={};u&17&&(a.$$scope={dirty:u,ctx:l}),n.$set(a);const f={};u&17&&(f.$$scope={dirty:u,ctx:l}),s.$set(f)},i(l){o||(B(n.$$.fragment,l),B(s.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),H(s.$$.fragment,l),o=!1},d(l){l&&y(t),U(n),l&&y(i),l&&y(r),U(s)}}}function uo(e){let t=e[0]("add_snippet.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("add_snippet.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function fo(e){let t=e[0]("import_snippets.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("import_snippets.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function co(e){let t,n,i,r=e[0]("no_snippets_found.title")+"",s,o,l,u,a=e[1]&&Bn(e);return{c(){t=O("h1"),t.textContent="Snippet Pixie",n=D(),i=O("p"),s=z(r),o=D(),a&&a.c(),l=pe(),c(i,"class","dimmed")},m(f,d){w(f,t,d),w(f,n,d),w(f,i,d),I(i,s),w(f,o,d),a&&a.m(f,d),w(f,l,d),u=!0},p(f,d){(!u||d&1)&&r!==(r=f[0]("no_snippets_found.title")+"")&&X(s,r),f[1]?a?(a.p(f,d),d&2&&B(a,1)):(a=Bn(f),a.c(),B(a,1),a.m(l.parentNode,l)):a&&(ne(),H(a,1,1,()=>{a=null}),ie())},i(f){u||(B(a),u=!0)},o(f){H(a),u=!1},d(f){f&&y(t),f&&y(n),f&&y(i),f&&y(o),a&&a.d(f),f&&y(l)}}}function ho(e){let t,n;return t=new Ge({props:{centered:!0,$$slots:{default:[co]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&19&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function po(e,t,n){let i,r;te(e,Ee,l=>n(0,i=l)),te(e,fe,l=>n(1,r=l));function s(){st("/snippet/add")}async function o(){try{const l=await Rn(!1)}catch(l){await re(i("import_snippets.error_title"),l)}await Ie.fetch()}return[i,r,s,o]}class mo extends J{constructor(t){super(),Q(this,t,po,ho,q,{})}}function _o(e){let t,n;return t=new mo({}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function bo(e){let t,n;return t=new ao({props:{selectMode:e[2],orderByLastUsed:e[3],focusSearchBox:e[4]}}),{c(){G(t.$$.fragment)},m(i,r){R(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||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function go(e){let t;return{c(){t=z("Checking settings ...")},m(n,i){w(n,t,i)},p:N,i:N,o:N,d(n){n&&y(t)}}}function vo(e){let t,n,i,r;const s=[go,bo,_o],o=[];function l(u,a){return u[1]?0:u[0]&&(u[5]&&u[5].length>0||u[2])?1:2}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function yo(e,t,n){let i,r,s;te(e,Ee,d=>n(6,i=d)),te(e,fe,d=>n(0,r=d)),te(e,Ie,d=>n(5,s=d));let o=!0,l=!1,u=!1,a=!0;function f(d){Ie.fetch()}return Ye(async()=>{if(n(2,l=await Ci()),n(3,u=l),l&&r)try{const d=await Mn("FOCUS_SEARCH_BOX");n(4,a=d!=="false")}catch(d){await re(i("settings.get_error_title"),d)}n(1,o=!1)}),e.$$.update=()=>{e.$$.dirty&1&&f()},[r,o,l,u,a,s]}class wo extends J{constructor(t){super(),Q(this,t,yo,vo,q,{})}}function Eo(e){let t,n,i,r;const s=e[5].default,o=Mt(s,e,e[4],null);return{c(){t=O("button"),o&&o.c(),t.disabled=e[3],c(t,"class","svelte-1jbd97"),Z(t,"primary",e[0]),Z(t,"danger",e[1]),Z(t,"secondary",e[2])},m(l,u){w(l,t,u),o&&o.m(t,null),n=!0,i||(r=ee(t,"click",e[6]),i=!0)},p(l,[u]){o&&o.p&&(!n||u&16)&&Rt(o,s,l,l[4],n?Ot(s,l[4],u,null):Ut(l[4]),null),(!n||u&8)&&(t.disabled=l[3]),(!n||u&1)&&Z(t,"primary",l[0]),(!n||u&2)&&Z(t,"danger",l[1]),(!n||u&4)&&Z(t,"secondary",l[2])},i(l){n||(B(o,l),n=!0)},o(l){H(o,l),n=!1},d(l){l&&y(t),o&&o.d(l),i=!1,r()}}}function So(e,t,n){let{$$slots:i={},$$scope:r}=t,{primary:s=!1}=t,{danger:o=!1}=t,{secondary:l=!1}=t,{disabled:u=!1}=t;s=!s&&!l&&!o?!0:s,o=s&&o?!1:o,l=(s||o)&&l?!1:l;function a(f){Ze.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,u=f.disabled),"$$scope"in f&&n(4,r=f.$$scope)},[s,o,l,u,r,i,a]}class Xe extends J{constructor(t){super(),Q(this,t,So,Eo,q,{primary:0,danger:1,secondary:2,disabled:3})}}function Ao(e){let t=e[4]("button.cancel")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.cancel")+"")&&X(n,t)},d(i){i&&y(n)}}}function Bo(e){let t=e[4]("button.save")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.save")+"")&&X(n,t)},d(i){i&&y(n)}}}function ko(e){let t,n=e[4]("add_snippet.title")+"",i,r,s,o,l,u,a=e[4]("body.title")+"",f,d,h,p,m,v,S,k,E,P,T;function A(g){e[8](g)}let b={label:e[4]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(b.value=e[0]),s=new qt({props:b}),ue.push(()=>Te(s,"value",A)),v=new Xe({props:{secondary:!0,$$slots:{default:[Ao]},$$scope:{ctx:e}}}),v.$on("click",e[5]),k=new Xe({props:{primary:!0,disabled:e[3],$$slots:{default:[Bo]},$$scope:{ctx:e}}}),k.$on("click",e[6]),{c(){t=O("h2"),i=z(n),r=D(),G(s.$$.fragment),l=D(),u=O("label"),f=z(a),d=D(),h=O("textarea"),p=D(),m=O("div"),G(v.$$.fragment),S=D(),G(k.$$.fragment),c(t,"class","svelte-126nfs4"),c(u,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(m,"class","button-row svelte-126nfs4")},m(g,C){w(g,t,C),I(t,i),w(g,r,C),R(s,g,C),w(g,l,C),w(g,u,C),I(u,f),w(g,d,C),w(g,h,C),xe(h,e[2]),w(g,p,C),w(g,m,C),R(v,m,null),I(m,S),R(k,m,null),E=!0,P||(T=ee(h,"input",e[9]),P=!0)},p(g,C){(!E||C&16)&&n!==(n=g[4]("add_snippet.title")+"")&&X(i,n);const _={};C&16&&(_.label=g[4]("abbreviation.title")),C&2&&(_.errorMessage=g[1]),!o&&C&1&&(o=!0,_.value=g[0],He(()=>o=!1)),s.$set(_),(!E||C&16)&&a!==(a=g[4]("body.title")+"")&&X(f,a),C&4&&xe(h,g[2]);const L={};C&2064&&(L.$$scope={dirty:C,ctx:g}),v.$set(L);const x={};C&8&&(x.disabled=g[3]),C&2064&&(x.$$scope={dirty:C,ctx:g}),k.$set(x)},i(g){E||(B(s.$$.fragment,g),B(v.$$.fragment,g),B(k.$$.fragment,g),E=!0)},o(g){H(s.$$.fragment,g),H(v.$$.fragment,g),H(k.$$.fragment,g),E=!1},d(g){g&&y(t),g&&y(r),U(s,g),g&&y(l),g&&y(u),g&&y(d),g&&y(h),g&&y(p),g&&y(m),U(v),U(k),P=!1,T()}}}function Ho(e){let t,n;return t=new Ge({props:{$$slots:{default:[ko]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&2079&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function To(e,t,n){let i,r,s;te(e,Ee,m=>n(4,r=m)),te(e,fe,m=>n(7,s=m));let o="",l="";async function u(m){if(m.length===0){n(1,a=r("abbreviation.empty"));return}if(!s){n(1,a="");return}try{const v=await On(m);if(v.hasOwnProperty("abbreviation")&&v.abbreviation.length>0){n(1,a=r("abbreviation.exists"));return}}catch(v){await re(r("add_snippet.error_title"),v)}n(1,a="")}let a="";function f(){he()}async function d(){try{const m=await yi(o,l);await he()}catch(m){await re(r("add_snippet.error_title"),m)}}function h(m){o=m,n(0,o)}function p(){l=this.value,n(2,l)}return e.$$.update=()=>{e.$$.dirty&1&&u(o),e.$$.dirty&130&&n(3,i=!s||a.length>0)},[o,a,l,i,r,f,d,s,h,p]}class Io extends J{constructor(t){super(),Q(this,t,To,Ho,q,{})}}function xo(e){let t=e[5]("button.remove")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.remove")+"")&&X(n,t)},d(i){i&&y(n)}}}function Co(e){let t=e[5]("button.cancel")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.cancel")+"")&&X(n,t)},d(i){i&&y(n)}}}function Lo(e){let t=e[5]("button.save")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.save")+"")&&X(n,t)},d(i){i&&y(n)}}}function Po(e){let t,n=e[5]("edit_snippet.title")+"",i,r,s,o,l,u,a=e[5]("body.title")+"",f,d,h,p,m,v,S,k,E,P,T,A,b;function g(_){e[11](_)}let C={label:e[5]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(C.value=e[0]),s=new qt({props:C}),ue.push(()=>Te(s,"value",g)),v=new Xe({props:{danger:!0,disabled:e[3],$$slots:{default:[xo]},$$scope:{ctx:e}}}),v.$on("click",e[7]),k=new Xe({props:{secondary:!0,$$slots:{default:[Co]},$$scope:{ctx:e}}}),k.$on("click",e[6]),P=new Xe({props:{primary:!0,disabled:e[4],$$slots:{default:[Lo]},$$scope:{ctx:e}}}),P.$on("click",e[8]),{c(){t=O("h2"),i=z(n),r=D(),G(s.$$.fragment),l=D(),u=O("label"),f=z(a),d=D(),h=O("textarea"),p=D(),m=O("div"),G(v.$$.fragment),S=D(),G(k.$$.fragment),E=D(),G(P.$$.fragment),c(t,"class","svelte-126nfs4"),c(u,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(m,"class","button-row svelte-126nfs4")},m(_,L){w(_,t,L),I(t,i),w(_,r,L),R(s,_,L),w(_,l,L),w(_,u,L),I(u,f),w(_,d,L),w(_,h,L),xe(h,e[2]),w(_,p,L),w(_,m,L),R(v,m,null),I(m,S),R(k,m,null),I(m,E),R(P,m,null),T=!0,A||(b=ee(h,"input",e[12]),A=!0)},p(_,L){(!T||L&32)&&n!==(n=_[5]("edit_snippet.title")+"")&&X(i,n);const x={};L&32&&(x.label=_[5]("abbreviation.title")),L&2&&(x.errorMessage=_[1]),!o&&L&1&&(o=!0,x.value=_[0],He(()=>o=!1)),s.$set(x),(!T||L&32)&&a!==(a=_[5]("body.title")+"")&&X(f,a),L&4&&xe(h,_[2]);const se={};L&8&&(se.disabled=_[3]),L&32800&&(se.$$scope={dirty:L,ctx:_}),v.$set(se);const oe={};L&32800&&(oe.$$scope={dirty:L,ctx:_}),k.$set(oe);const Y={};L&16&&(Y.disabled=_[4]),L&32800&&(Y.$$scope={dirty:L,ctx:_}),P.$set(Y)},i(_){T||(B(s.$$.fragment,_),B(v.$$.fragment,_),B(k.$$.fragment,_),B(P.$$.fragment,_),T=!0)},o(_){H(s.$$.fragment,_),H(v.$$.fragment,_),H(k.$$.fragment,_),H(P.$$.fragment,_),T=!1},d(_){_&&y(t),_&&y(r),U(s,_),_&&y(l),_&&y(u),_&&y(d),_&&y(h),_&&y(p),_&&y(m),U(v),U(k),U(P),A=!1,b()}}}function No(e){let t,n;return t=new Ge({props:{$$slots:{default:[Po]},$$scope:{ctx:e}}}),t.$on("cancel",e[6]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&32831&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Mo(e,t,n){let i,r,s,o;te(e,Ee,E=>n(5,s=E)),te(e,fe,E=>n(10,o=E));let{params:l={}}=t,u={},a="",f="";async function d(E){if(n(1,h=""),!!u.hasOwnProperty("id")){if(E.length===0){n(1,h=s("abbreviation.empty"));return}if(!!o)try{const P=await On(E);P.hasOwnProperty("abbreviation")&&P.abbreviation.length>0&&P.id!==u.id&&n(1,h=s("abbreviation.exists"))}catch(P){await re(s("edit_snippet.error_title"),P)}}}let h="";function p(){he()}async function m(){try{await Ii(u.abbreviation),await he()}catch(E){await re(s("remove_snippet.error_title"),E)}}async function v(){let E={...u};E.abbreviation=a,E.body=f;try{await Pi(u.id,E),await he()}catch(P){await re(s("edit_snippet.error_title"),P)}}Ye(async()=>{l.hasOwnProperty("id")||(await re(s("edit_snippet.error_title"),s("edit_snippet.id_not_supplied")),await he());try{u=await Ai(l.id)}catch(P){await re(s("edit_snippet.error_title"),P),await he()}let E=!1;try{E=await ki(u.id)}catch(P){await re(s("edit_snippet.error_title"),P),await he()}E&&(await re(s("edit_snippet.error_title"),s("edit_snippet.snippet_not_found")),await he()),n(0,a=u.abbreviation),n(2,f=u.body)});function S(E){a=E,n(0,a)}function k(){f=this.value,n(2,f)}return e.$$set=E=>{"params"in E&&n(9,l=E.params)},e.$$.update=()=>{e.$$.dirty&1&&d(a),e.$$.dirty&1026&&n(4,i=!o||h.length>0),e.$$.dirty&1024&&n(3,r=!o)},[a,h,f,r,i,s,p,m,v,l,o,S,k]}class Oo extends J{constructor(t){super(),Q(this,t,Mo,No,q,{params:9})}}function Ro(e){let t=e[3]("settings.no_connection")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("settings.no_connection")+"")&&X(n,t)},i:N,o:N,d(i){i&&y(n)}}}function Uo(e){let t,n=e[3]("settings.import_export_title")+"",i,r,s,o,l,u,a,f,d;o=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[Go]},$$scope:{ctx:e}}}),o.$on("activate",e[14]),u=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[Do]},$$scope:{ctx:e}}}),u.$on("activate",e[15]);let h=e[4]&&e[4].length>0&&kn(e);return{c(){t=O("h3"),i=z(n),r=D(),s=O("p"),G(o.$$.fragment),l=D(),G(u.$$.fragment),a=D(),h&&h.c(),f=pe(),c(t,"class","svelte-17bsaqe"),c(s,"class","import-snippets svelte-17bsaqe")},m(p,m){w(p,t,m),I(t,i),w(p,r,m),w(p,s,m),R(o,s,null),I(s,l),R(u,s,null),w(p,a,m),h&&h.m(p,m),w(p,f,m),d=!0},p(p,m){(!d||m&8)&&n!==(n=p[3]("settings.import_export_title")+"")&&X(i,n);const v={};m&524296&&(v.$$scope={dirty:m,ctx:p}),o.$set(v);const S={};m&524296&&(S.$$scope={dirty:m,ctx:p}),u.$set(S),p[4]&&p[4].length>0?h?(h.p(p,m),m&16&&B(h,1)):(h=kn(p),h.c(),B(h,1),h.m(f.parentNode,f)):h&&(ne(),H(h,1,1,()=>{h=null}),ie())},i(p){d||(B(o.$$.fragment,p),B(u.$$.fragment,p),B(h),d=!0)},o(p){H(o.$$.fragment,p),H(u.$$.fragment,p),H(h),d=!1},d(p){p&&y(t),p&&y(r),p&&y(s),U(o),U(u),p&&y(a),h&&h.d(p),p&&y(f)}}}function Go(e){let t=e[3]("import_snippets.new_only_title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("import_snippets.new_only_title")+"")&&X(n,t)},d(i){i&&y(n)}}}function Do(e){let t=e[3]("import_snippets.update_title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("import_snippets.update_title")+"")&&X(n,t)},d(i){i&&y(n)}}}function kn(e){let t,n,i;return n=new be({props:{horizontal:!0,iconClass:"dimmed",icon:ys,size:"1.5x",$$slots:{default:[Fo]},$$scope:{ctx:e}}}),n.$on("activate",e[9]),{c(){t=O("p"),G(n.$$.fragment),c(t,"class","export-snippets svelte-17bsaqe")},m(r,s){w(r,t,s),R(n,t,null),i=!0},p(r,s){const o={};s&524296&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){i||(B(n.$$.fragment,r),i=!0)},o(r){H(n.$$.fragment,r),i=!1},d(r){r&&y(t),U(n)}}}function Fo(e){let t=e[3]("export_snippets.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("export_snippets.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function jo(e){let t,n,i,r,s=e[3]("settings.title")+"",o,l,u,a=e[3]("settings.autostart_title")+"",f,d,h,p,m,v,S=e[3]("settings.autostart")+"",k,E,P,T=e[3]("settings.search_and_paste_title")+"",A,b,g,C,_,L,x=e[3]("settings.focus_search")+"",se,oe,Y,ae,De,me,ct,Zt;n=new be({props:{horizontal:!0,iconClass:"dimmed",icon:ms,size:"2.5x"}}),n.$on("activate",e[5]);const Qt=[Uo,Ro],de=[];function Jt(M,K){return M[0]?0:1}return Y=Jt(e),ae=de[Y]=Qt[Y](e),{c(){t=O("div"),G(n.$$.fragment),i=D(),r=O("h2"),o=z(s),l=D(),u=O("h3"),f=z(a),d=D(),h=O("p"),p=O("label"),m=O("input"),v=D(),k=z(S),E=D(),P=O("h3"),A=z(T),b=D(),g=O("p"),C=O("label"),_=O("input"),L=D(),se=z(x),oe=D(),ae.c(),De=pe(),c(t,"class","toolbar svelte-17bsaqe"),c(r,"class","svelte-17bsaqe"),c(u,"class","svelte-17bsaqe"),c(m,"type","checkbox"),c(h,"class","svelte-17bsaqe"),c(P,"class","svelte-17bsaqe"),c(_,"type","checkbox"),c(g,"class","svelte-17bsaqe")},m(M,K){w(M,t,K),R(n,t,null),w(M,i,K),w(M,r,K),I(r,o),w(M,l,K),w(M,u,K),I(u,f),w(M,d,K),w(M,h,K),I(h,p),I(p,m),m.checked=e[1],I(p,v),I(p,k),w(M,E,K),w(M,P,K),I(P,A),w(M,b,K),w(M,g,K),I(g,C),I(C,_),_.checked=e[2],I(C,L),I(C,se),w(M,oe,K),de[Y].m(M,K),w(M,De,K),me=!0,ct||(Zt=[ee(m,"change",e[10]),ee(m,"change",e[11]),Gt(oi.call(null,m,!0)),ee(_,"change",e[12]),ee(_,"change",e[13])],ct=!0)},p(M,K){(!me||K&8)&&s!==(s=M[3]("settings.title")+"")&&X(o,s),(!me||K&8)&&a!==(a=M[3]("settings.autostart_title")+"")&&X(f,a),K&2&&(m.checked=M[1]),(!me||K&8)&&S!==(S=M[3]("settings.autostart")+"")&&X(k,S),(!me||K&8)&&T!==(T=M[3]("settings.search_and_paste_title")+"")&&X(A,T),K&4&&(_.checked=M[2]),(!me||K&8)&&x!==(x=M[3]("settings.focus_search")+"")&&X(se,x);let ht=Y;Y=Jt(M),Y===ht?de[Y].p(M,K):(ne(),H(de[ht],1,1,()=>{de[ht]=null}),ie(),ae=de[Y],ae?ae.p(M,K):(ae=de[Y]=Qt[Y](M),ae.c()),B(ae,1),ae.m(De.parentNode,De))},i(M){me||(B(n.$$.fragment,M),B(ae),me=!0)},o(M){H(n.$$.fragment,M),H(ae),me=!1},d(M){M&&y(t),U(n),M&&y(i),M&&y(r),M&&y(l),M&&y(u),M&&y(d),M&&y(h),M&&y(E),M&&y(P),M&&y(b),M&&y(g),M&&y(oe),de[Y].d(M),M&&y(De),ct=!1,ce(Zt)}}}function zo(e){let t,n;return t=new Ge({props:{centered:!0,$$slots:{default:[jo]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&524319&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Vo(e,t,n){let i,r,s;te(e,Ee,b=>n(3,i=b)),te(e,fe,b=>n(0,r=b)),te(e,Ie,b=>n(4,s=b));function o(){he()}let l=!1,u=!0;async function a(){let b=!1;try{b=await Si()}catch(g){await re(i("settings.get_error_title"),g);return}return b}async function f(b){try{await Li(b)}catch(g){await re(i("settings.save_error_title"),g);return}return b}async function d(){let b="";try{b=await Mn("FOCUS_SEARCH_BOX")}catch(g){await re(i("settings.get_error_title"),g);return}return b!=="false"}async function h(b){const g=b?"true":"false";try{await xi("FOCUS_SEARCH_BOX",g)}catch(C){await re(i("settings.save_error_title"),C);return}return b}function p(b){Ie.fetch()}async function m(b){try{const g=await Rn(b)}catch(g){await re(i("import_snippets.error_title"),g)}await Ie.fetch()}async function v(){try{const b=await wi()}catch(b){await re(i("export_snippets.error_title"),b)}}Ye(async()=>{n(1,l=await a()),n(2,u=await d())});function S(){l=this.checked,n(1,l)}const k=()=>f(l);function E(){u=this.checked,n(2,u)}const P=()=>h(u),T=()=>m(!1),A=()=>m(!0);return e.$$.update=()=>{e.$$.dirty&1&&p()},[r,l,u,i,s,o,f,h,m,v,S,k,E,P,T,A]}class Wo extends J{constructor(t){super(),Q(this,t,Vo,zo,q,{})}}function Xo(e){let t;return{c(){t=O("div"),t.innerHTML="<h1>Snippet Pixie</h1>",c(t,"class","centered")},m(n,i){w(n,t,i)},p:N,d(n){n&&y(t)}}}function qo(e){let t,n;return t=new Ge({props:{$$slots:{default:[Xo]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}class Zo extends J{constructor(t){super(),Q(this,t,null,qo,q,{})}}function Qo(e){let t,n;return t=new cs({props:{routes:e[1]}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Jo(e){let t;return{c(){t=z("Loading...")},m(n,i){w(n,t,i)},p:N,i:N,o:N,d(n){n&&y(t)}}}function Yo(e){let t,n,i,r;const s=[Jo,Qo],o=[];function l(u,a){return u[0]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function Ko(e,t,n){let i;te(e,it,l=>n(0,i=l));let r;async function s(){try{const l=await Ti("Pong");l==="Pong"?fe.update(u=>!0):(fe.update(u=>!1),en("Got '"+l+"' back from Ping instead of 'Pong'."))}catch(l){fe.update(u=>!1),en("Ping returned: "+l)}}zr("en-GB",()=>fi(()=>import("./en-GB.d7a5e12b.js"),[])),Wr({fallbackLocale:"en-GB",initialLocale:Xr()});const o={"/":wo,"/snippet/add":Io,"/snippet/edit/:id":Oo,"/settings":Wo,"/no-connection":Zo};return Ye(async()=>{await s(),r=setInterval(s,5e3)}),Dt(()=>{clearInterval(r)}),[i,o]}class $o extends J{constructor(t){super(),Q(this,t,Ko,Yo,q,{})}}new $o({target:document.getElementById("app")});

D cmd/snippetpixiegui/frontend/dist/assets/index.40603b7e.js => cmd/snippetpixiegui/frontend/dist/assets/index.40603b7e.js +0 -5
@@ 1,5 0,0 @@
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const ai="modulepreload",ui=function(e){return"/"+e},Yt={},fi=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=ui(s),s in Yt)return;Yt[s]=!0;const o=s.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!i)for(let f=r.length-1;f>=0;f--){const d=r[f];if(d.href===s&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":ai,o||(a.as="script",a.crossOrigin=""),a.href=s,document.head.appendChild(a),o)return new Promise((f,d)=>{a.addEventListener("load",f),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};function N(){}function Pt(e,t){for(const n in t)e[n]=t[n];return e}function Hn(e){return e()}function Kt(){return Object.create(null)}function ce(e){e.forEach(Hn)}function Me(e){return typeof e=="function"}function q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function ci(e){return Object.keys(e).length===0}function Nt(e,...t){if(e==null)return N;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function $t(e){let t;return Nt(e,n=>t=n)(),t}function te(e,t,n){e.$$.on_destroy.push(Nt(t,n))}function Mt(e,t,n,i){if(e){const r=Tn(e,t,n,i);return e[0](r)}}function Tn(e,t,n,i){return e[1]&&i?Pt(n.ctx.slice(),e[1](i(t))):n.ctx}function Ot(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(t.dirty.length,r.length);for(let l=0;l<o;l+=1)s[l]=t.dirty[l]|r[l];return s}return t.dirty|r}return t.dirty}function Rt(e,t,n,i,r,s){if(r){const o=Tn(t,n,i,s);e.p(o,r)}}function Ut(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function hi(e,t,n){return e.set(n),t}function Gt(e){return e&&Me(e.destroy)?e.destroy:N}function I(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function pi(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function O(e){return document.createElement(e)}function V(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function D(){return z(" ")}function pe(){return z("")}function ee(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function c(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function mi(e){return Array.from(e.childNodes)}function X(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Ie(e,t){e.value=t==null?"":t}function Z(e,t,n){e.classList[n?"add":"remove"](t)}function di(e,t,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,i,t),r}function xe(e,t){return new e(t)}let Xe;function je(e){Xe=e}function lt(){if(!Xe)throw new Error("Function called outside component initialization");return Xe}function Je(e){lt().$$.on_mount.push(e)}function In(e){lt().$$.after_update.push(e)}function Dt(e){lt().$$.on_destroy.push(e)}function Ye(){const e=lt();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const s=di(t,n,{cancelable:i});return r.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function qe(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}const Be=[],ue=[],et=[],wt=[],xn=Promise.resolve();let Et=!1;function Cn(){Et||(Et=!0,xn.then(Ln))}function Ft(){return Cn(),xn}function St(e){et.push(e)}function ke(e){wt.push(e)}const pt=new Set;let Se=0;function Ln(){if(Se!==0)return;const e=Xe;do{try{for(;Se<Be.length;){const t=Be[Se];Se++,je(t),_i(t.$$)}}catch(t){throw Be.length=0,Se=0,t}for(je(null),Be.length=0,Se=0;ue.length;)ue.pop()();for(let t=0;t<et.length;t+=1){const n=et[t];pt.has(n)||(pt.add(n),n())}et.length=0}while(Be.length);for(;wt.length;)wt.pop()();Et=!1,pt.clear(),je(e)}function _i(e){if(e.fragment!==null){e.update(),ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(St)}}const tt=new Set;let we;function ne(){we={r:0,c:[],p:we}}function ie(){we.r||ce(we.c),we=we.p}function B(e,t){e&&e.i&&(tt.delete(e),e.i(t))}function H(e,t,n,i){if(e&&e.o){if(tt.has(e))return;tt.add(e),we.c.push(()=>{tt.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Pn(e,t){const n={},i={},r={$$scope:1};let s=e.length;for(;s--;){const o=e[s],l=t[s];if(l){for(const u in o)u in l||(i[u]=1);for(const u in l)r[u]||(n[u]=l[u],r[u]=1);e[s]=l}else for(const u in o)r[u]=1}for(const o in i)o in n||(n[o]=void 0);return n}function Nn(e){return typeof e=="object"&&e!==null?e:{}}function He(e,t,n){const i=e.$$.props[t];i!==void 0&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function G(e){e&&e.c()}function R(e,t,n,i){const{fragment:r,after_update:s}=e.$$;r&&r.m(t,n),i||St(()=>{const o=e.$$.on_mount.map(Hn).filter(Me);e.$$.on_destroy?e.$$.on_destroy.push(...o):ce(o),e.$$.on_mount=[]}),s.forEach(St)}function U(e,t){const n=e.$$;n.fragment!==null&&(ce(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function bi(e,t){e.$$.dirty[0]===-1&&(Be.push(e),Cn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,i,r,s,o,l=[-1]){const u=Xe;je(e);const a=e.$$={fragment:null,ctx:[],props:s,update:N,not_equal:r,bound:Kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Kt(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};o&&o(a.root);let f=!1;if(a.ctx=n?n(e,t.props||{},(d,h,...p)=>{const m=p.length?p[0]:h;return a.ctx&&r(a.ctx[d],a.ctx[d]=m)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](m),f&&bi(e,d)),h}):[],a.update(),f=!0,ce(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){const d=mi(t.target);a.fragment&&a.fragment.l(d),d.forEach(y)}else a.fragment&&a.fragment.c();t.intro&&B(e.$$.fragment),R(e,t.target,t.anchor,t.customElement),Ln()}je(u)}class J{$destroy(){U(this,1),this.$destroy=N}$on(t,n){if(!Me(n))return N;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ci(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function en(e){window.runtime.LogError(e)}function gi(){window.runtime.Quit()}function vi(e,t){return window.go.main.App.AddSnippet(e,t)}function yi(){return window.go.main.App.ExportSnippets()}function wi(){return window.go.main.App.GetAllSnippets()}function Ei(){return window.go.main.App.GetAutostartStatus()}function Mn(e){return window.go.main.App.GetSetting(e)}function On(e){return window.go.main.App.GetSnippetWithAbbreviation(e)}function Si(e){return window.go.main.App.GetSnippetWithID(e)}function Ai(e,t){return window.go.main.App.GetSnippets(e,t)}function Rn(e){return window.go.main.App.ImportSnippets(e)}function Bi(e){return window.go.main.App.NilUUID(e)}function ki(e,t){return window.go.main.App.PasteSnippetAndQuit(e,t)}function Hi(e){return window.go.main.App.Ping(e)}function Ti(e){return window.go.main.App.RemoveSnippet(e)}function Ii(e,t){return window.go.main.App.SaveSetting(e,t)}function xi(){return window.go.main.App.SearchAndPasteMode()}function re(e,t){return window.go.main.App.ShowError(e,t)}function Ci(e){return window.go.main.App.UpdateAutostart(e)}function Li(e,t){return window.go.main.App.UpdateSnippetWithID(e,t)}const Ae=[];function Un(e,t){return{subscribe:ge(e,t).subscribe}}function ge(e,t=N){let n;const i=new Set;function r(l){if(q(e,l)&&(e=l,n)){const u=!Ae.length;for(const a of i)a[1](),Ae.push(a,e);if(u){for(let a=0;a<Ae.length;a+=2)Ae[a][0](Ae[a+1]);Ae.length=0}}}function s(l){r(l(e))}function o(l,u=N){const a=[l,u];return i.add(a),i.size===1&&(n=t(r)||N),l(e),()=>{i.delete(a),i.size===0&&(n(),n=null)}}return{set:r,update:s,subscribe:o}}function ve(e,t,n){const i=!Array.isArray(e),r=i?[e]:e,s=t.length<2;return Un(n,o=>{let l=!1;const u=[];let a=0,f=N;const d=()=>{if(a)return;f();const p=t(i?u[0]:u,o);s?o(p):f=Me(p)?p:N},h=r.map((p,m)=>Nt(p,v=>{u[m]=v,a&=~(1<<m),l&&d()},()=>{a|=1<<m}));return l=!0,d(),function(){ce(h),f()}})}var Pi=function(t){return Ni(t)&&!Mi(t)};function Ni(e){return!!e&&typeof e=="object"}function Mi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ui(e)}var Oi=typeof Symbol=="function"&&Symbol.for,Ri=Oi?Symbol.for("react.element"):60103;function Ui(e){return e.$$typeof===Ri}function Gi(e){return Array.isArray(e)?[]:{}}function Ze(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ce(Gi(e),e,t):e}function Di(e,t,n){return e.concat(t).map(function(i){return Ze(i,n)})}function Fi(e,t){if(!t.customMerge)return Ce;var n=t.customMerge(e);return typeof n=="function"?n:Ce}function ji(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function tn(e){return Object.keys(e).concat(ji(e))}function Gn(e,t){try{return t in e}catch{return!1}}function zi(e,t){return Gn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vi(e,t,n){var i={};return n.isMergeableObject(e)&&tn(e).forEach(function(r){i[r]=Ze(e[r],n)}),tn(t).forEach(function(r){zi(e,r)||(Gn(e,r)&&n.isMergeableObject(t[r])?i[r]=Fi(r,n)(e[r],t[r],n):i[r]=Ze(t[r],n))}),i}function Ce(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Di,n.isMergeableObject=n.isMergeableObject||Pi,n.cloneUnlessOtherwiseSpecified=Ze;var i=Array.isArray(t),r=Array.isArray(e),s=i===r;return s?i?n.arrayMerge(e,t,n):Vi(e,t,n):Ze(t,n)}Ce.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ce(i,r,n)},{})};var Wi=Ce,Xi=Wi,At=function(e,t){return At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},At(e,t)};function at(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");At(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},W.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var $;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})($||($={}));var Le;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Le||(Le={}));function nn(e){return e.type===$.literal}function qi(e){return e.type===$.argument}function Dn(e){return e.type===$.number}function Fn(e){return e.type===$.date}function jn(e){return e.type===$.time}function zn(e){return e.type===$.select}function Vn(e){return e.type===$.plural}function Zi(e){return e.type===$.pound}function Wn(e){return e.type===$.tag}function Xn(e){return!!(e&&typeof e=="object"&&e.type===Le.number)}function Bt(e){return!!(e&&typeof e=="object"&&e.type===Le.dateTime)}var qn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ji(e){var t={};return e.replace(Qi,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"short":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Yi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ki(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Yi).filter(function(h){return h.length>0}),n=[],i=0,r=t;i<r.length;i++){var s=r[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],u=o.slice(1),a=0,f=u;a<f.length;a++){var d=f[a];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:u})}return n}function $i(e){return e.replace(/^(.*?)-/,"")}var rn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zn=/^(@+)?(\+|#+)?[rs]?$/g,er=/(\*)(0+)|(#+)(0+)|(0+)/g,Qn=/^(0+)$/;function sn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zn,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Jn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function tr(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function on(e){var t={},n=Jn(e);return n||t}function nr(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=$i(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=W(W(W({},t),{notation:"scientific"}),r.options.reduce(function(u,a){return W(W({},u),on(a))},{}));continue;case"engineering":t=W(W(W({},t),{notation:"engineering"}),r.options.reduce(function(u,a){return W(W({},u),on(a))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(er,function(u,a,f,d,h,p){if(a)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qn.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(rn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(rn,function(u,a,f,d,h,p){return f==="*"?t.minimumFractionDigits=a.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""});var s=r.options[0];s==="w"?t=W(W({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=W(W({},t),sn(s)));continue}if(Zn.test(r.stem)){t=W(W({},t),sn(r.stem));continue}var o=Jn(r.stem);o&&(t=W(W({},t),o));var l=tr(r.stem);l&&(t=W(W({},t),l))}return t}var $e={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function ir(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===r;)s++,i++;var o=1+(s&1),l=s<2?1:3+(s>>1),u="a",a=rr(t);for((a=="H"||a=="k")&&(l=0);l-- >0;)n+=u;for(;o-- >0;)n=a+n}else r==="J"?n+="H":n+=r}return n}function rr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=$e[i||""]||$e[n||""]||$e["".concat(n,"-001")]||$e["001"];return r[0]}var dt,sr=new RegExp("^".concat(qn.source,"*")),or=new RegExp("".concat(qn.source,"*$"));function j(e,t){return{start:e,end:t}}var lr=!!String.prototype.startsWith,ar=!!String.fromCodePoint,ur=!!Object.fromEntries,fr=!!String.prototype.codePointAt,cr=!!String.prototype.trimStart,hr=!!String.prototype.trimEnd,pr=!!Number.isSafeInteger,mr=pr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},kt=!0;try{var dr=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kt=((dt=dr.exec("a"))===null||dt===void 0?void 0:dt[0])==="a"}catch{kt=!1}var ln=lr?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},Ht=ar?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,s=0,o;r>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},an=ur?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var s=r[i],o=s[0],l=s[1];n[o]=l}return n},Yn=fr?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),s;return r<55296||r>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},_r=cr?function(t){return t.trimStart()}:function(t){return t.replace(sr,"")},br=hr?function(t){return t.trimEnd()}:function(t){return t.replace(or,"")};function Kn(e,t){return new RegExp(e,t)}var Tt;if(kt){var un=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tt=function(t,n){var i;un.lastIndex=n;var r=un.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else Tt=function(t,n){for(var i=[];;){var r=Yn(t,n);if(r===void 0||$n(r)||wr(r))break;i.push(r),n+=r>=65536?2:1}return Ht.apply(void 0,i)};var gr=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;r.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),r.push({type:$.pound,location:j(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(F.UNMATCHED_CLOSING_TAG,j(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&It(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(r,"/>"),location:j(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!It(this.char()))return this.error(F.INVALID_TAG,j(l,this.clonePosition()));var u=this.clonePosition(),a=this.parseTagName();return r!==a?this.error(F.UNMATCHED_CLOSING_TAG,j(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$.tag,value:r,children:o,location:j(i,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,j(l,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,j(i,this.clonePosition()))}else return this.error(F.INVALID_TAG,j(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yr(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var s=this.tryParseQuote(n);if(s){r+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){r+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){r+=l;continue}break}var u=j(i,this.clonePosition());return{val:{type:$.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return Ht.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),Ht(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,j(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(F.MALFORMED_ARGUMENT,j(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:r,location:j(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(F.MALFORMED_ARGUMENT,j(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=Tt(this.message,n),r=n+i.length;this.bumpTo(r);var s=this.clonePosition(),o=j(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,n,i,r){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,j(o,u));case"number":case"date":case"time":{this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=br(d.val);if(h.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,j(this.clonePosition(),this.clonePosition()));var p=j(f,this.clonePosition());a={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(r);if(m.err)return m;var v=j(r,this.clonePosition());if(a&&ln(a==null?void 0:a.style,"::",0)){var S=_r(a.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(S,a.styleLocation);return d.err?d:{val:{type:$.number,value:i,location:v,style:d.val},err:null}}else{if(S.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,v);var k=S;this.locale&&(k=ir(S,this.locale));var h={type:Le.dateTime,pattern:k,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?Ji(k):{}},E=l==="date"?$.date:$.time;return{val:{type:E,value:i,location:v,style:h},err:null}}}return{val:{type:l==="number"?$.number:l==="date"?$.date:$.time,value:i,location:v,style:(s=a==null?void 0:a.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,j(P,W({},P)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),A=0;if(l!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),A=d.val}var b=this.tryParsePluralOrSelectOptions(t,l,n,T);if(b.err)return b;var m=this.tryParseArgumentClose(r);if(m.err)return m;var g=j(r,this.clonePosition());return l==="select"?{val:{type:$.select,value:i,options:an(b.val),location:g},err:null}:{val:{type:$.plural,value:i,options:an(b.val),offset:A,pluralType:l==="plural"?"cardinal":"ordinal",location:g},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,j(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,j(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=Ki(t)}catch{return this.error(F.INVALID_NUMBER_SKELETON,n)}return{val:{type:Le.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?nr(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var s,o=!1,l=[],u=new Set,a=r.value,f=r.location;;){if(a.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=j(d,this.clonePosition()),a=this.message.slice(d.offset,this.offset())}else break}if(u.has(a))return this.error(n==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);a==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,j(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,i);if(m.err)return m;var v=this.tryParseArgumentClose(p);if(v.err)return v;l.push([a,{value:m.val,location:j(p,this.clonePosition())}]),u.add(a),this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=s.value,f=s.location}return l.length===0?this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,j(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,j(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var u=j(r,this.clonePosition());return s?(o*=i,mr(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Yn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ln(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$n(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i!=null?i:null},e}();function It(e){return e>=97&&e<=122||e>=65&&e<=90}function vr(e){return It(e)||e===47}function yr(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function $n(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wr(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function xt(e){e.forEach(function(t){if(delete t.location,zn(t)||Vn(t))for(var n in t.options)delete t.options[n].location,xt(t.options[n].value);else Dn(t)&&Xn(t.style)||(Fn(t)||jn(t))&&Bt(t.style)?delete t.style.location:Wn(t)&&xt(t.children)})}function Er(e,t){t===void 0&&(t={}),t=W({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new gr(e,t).parse();if(n.err){var i=SyntaxError(F[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||xt(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:Tr,i=t&&t.serializer?t.serializer:Hr,r=t&&t.strategy?t.strategy:Ar;return r(e,{cache:n,serializer:i})}function Sr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ei(e,t,n,i){var r=Sr(i)?i:n(i),s=t.get(r);return typeof s>"u"&&(s=e.call(this,i),t.set(r,s)),s}function ti(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=t.get(r);return typeof s>"u"&&(s=e.apply(this,i),t.set(r,s)),s}function jt(e,t,n,i,r){return n.bind(t,e,i,r)}function Ar(e,t){var n=e.length===1?ei:ti;return jt(e,this,n,t.cache.create(),t.serializer)}function Br(e,t){return jt(e,this,ti,t.cache.create(),t.serializer)}function kr(e,t){return jt(e,this,ei,t.cache.create(),t.serializer)}var Hr=function(){return JSON.stringify(arguments)};function zt(){this.cache=Object.create(null)}zt.prototype.get=function(e){return this.cache[e]};zt.prototype.set=function(e,t){this.cache[e]=t};var Tr={create:function(){return new zt}},bt={variadic:Br,monadic:kr},Pe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Pe||(Pe={}));var ut=function(e){at(t,e);function t(n,i,r){var s=e.call(this,n)||this;return s.code=i,s.originalMessage=r,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),fn=function(e){at(t,e);function t(n,i,r,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pe.INVALID_VALUE,s)||this}return t}(ut),Ir=function(e){at(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),Pe.INVALID_VALUE,r)||this}return t}(ut),xr=function(e){at(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),Pe.MISSING_VALUE,i)||this}return t}(ut),le;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(le||(le={}));function Cr(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==le.literal||n.type!==le.literal?t.push(n):i.value+=n.value,t},[])}function Lr(e){return typeof e=="function"}function nt(e,t,n,i,r,s,o){if(e.length===1&&nn(e[0]))return[{type:le.literal,value:e[0].value}];for(var l=[],u=0,a=e;u<a.length;u++){var f=a[u];if(nn(f)){l.push({type:le.literal,value:f.value});continue}if(Zi(f)){typeof s=="number"&&l.push({type:le.literal,value:n.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(r&&d in r))throw new xr(d,o);var h=r[d];if(qi(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?le.literal:le.object,value:h});continue}if(Fn(f)){var p=typeof f.style=="string"?i.date[f.style]:Bt(f.style)?f.style.parsedOptions:void 0;l.push({type:le.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(jn(f)){var p=typeof f.style=="string"?i.time[f.style]:Bt(f.style)?f.style.parsedOptions:i.time.medium;l.push({type:le.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(Dn(f)){var p=typeof f.style=="string"?i.number[f.style]:Xn(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),l.push({type:le.literal,value:n.getNumberFormat(t,p).format(h)});continue}if(Wn(f)){var m=f.children,v=f.value,S=r[v];if(!Lr(S))throw new Ir(v,"function",o);var k=nt(m,t,n,i,r,s),E=S(k.map(function(A){return A.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(A){return{type:typeof A=="string"?le.literal:le.object,value:A}}))}if(zn(f)){var P=f.options[h]||f.options.other;if(!P)throw new fn(f.value,h,Object.keys(f.options),o);l.push.apply(l,nt(P.value,t,n,i,r));continue}if(Vn(f)){var P=f.options["=".concat(h)];if(!P){if(!Intl.PluralRules)throw new ut(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Pe.MISSING_INTL_API,o);var T=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));P=f.options[T]||f.options.other}if(!P)throw new fn(f.value,h,Object.keys(f.options),o);l.push.apply(l,nt(P.value,t,n,i,r,h-(f.offset||0)));continue}}return Cr(l)}function Pr(e,t){return t?W(W(W({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=W(W({},e[i]),t[i]||{}),n},{})):e}function Nr(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Pr(e[i],t[i]),n},W({},e)):e}function gt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Mr(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.number),strategy:bt.variadic}),getDateTimeFormat:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.dateTime),strategy:bt.variadic}),getPluralRules:_t(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],n,!1)))},{cache:gt(e.pluralRules),strategy:bt.variadic})}}var Or=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 u=l.reduce(function(a,f){return!a.length||f.type!==le.literal||typeof a[a.length-1]!="string"?a.push(f.value):a[a.length-1]+=f.value,a},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(o){return nt(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=Nr(e.formats,i),this.formatters=r&&r.formatters||Mr(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=Er,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 Rr=Or,_e={},Ur=(e,t,n)=>n&&(t in _e||(_e[t]={}),e in _e[t]||(_e[t][e]=n),n),ni=(e,t)=>{if(t==null)return;if(t in _e&&e in _e[t])return _e[t][e];const n=Ke(t);for(let i=0;i<n.length;i++){const r=Gr(n[i],e);if(r)return Ur(e,t,r)}};let Vt;const Oe=ge({});function Wt(e){return e in Vt}function Gr(e,t){if(!Wt(e))return null;const n=function(i){return Vt[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 u=s.slice(l,s.length).join(".");if(u in o){o=o[u];break}}o=o[s[l]]}else o=void 0;return o}(n,t)}function Dr(e,...t){delete _e[e],Oe.update(n=>(n[e]=Xi.all([n[e]||{},...t]),n))}ve([Oe],([e])=>Object.keys(e));Oe.subscribe(e=>Vt=e);const ze={};function Ve(e){return ze[e]}function ot(e){return e!=null&&Ke(e).some(t=>{var n;return(n=Ve(t))===null||n===void 0?void 0:n.size})}function Fr(e,t){return Promise.all(t.map(i=>(function(r,s){ze[r].delete(s),ze[r].size===0&&delete ze[r]}(e,i),i().then(r=>r.default||r)))).then(i=>Dr(e,...i))}const De={};function ii(e){if(!ot(e))return e in De?De[e]:Promise.resolve();const t=function(n){return Ke(n).map(i=>{const r=Ve(i);return[i,r?[...r]:[]]}).filter(([,i])=>i.length>0)}(e);return De[e]=Promise.all(t.map(([n,i])=>Fr(n,i))).then(()=>{if(ot(e))return ii(e);delete De[e]}),De[e]}function jr(e,t){Ve(e)||function(i){ze[i]=new Set}(e);const n=Ve(e);Ve(e).has(t)||(Wt(e)||Oe.update(i=>(i[e]={},i)),n.add(t))}function zr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Ke(e).join('", "')}".${ot(ye())?`

Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Fe={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 Ne(){return Fe}function Vr(e){const{formats:t,...n}=e,i=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=zr:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Fe,n,{initialLocale:i}),t&&("number"in t&&Object.assign(Fe.formats.number,t.number),"date"in t&&Object.assign(Fe.formats.date,t.date),"time"in t&&Object.assign(Fe.formats.time,t.time)),Re.set(i)}const it=ge(!1);let Ct;const rt=ge(null);function cn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function Ke(e,t=Ne().fallbackLocale){const n=cn(e);return t?[...new Set([...n,...cn(t)])]:n}function ye(){return Ct!=null?Ct:void 0}rt.subscribe(e=>{Ct=e!=null?e:void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Re={...rt,set:e=>{if(e&&function(t){if(t==null)return;const n=Ke(t);for(let i=0;i<n.length;i++){const r=n[i];if(Wt(r))return r}}(e)&&ot(e)){const{loadingDelay:t}=Ne();let n;return typeof window<"u"&&ye()!=null&&t?n=window.setTimeout(()=>it.set(!0),t):it.set(!0),ii(e).then(()=>{rt.set(e)}).finally(()=>{clearTimeout(n),it.set(!1)})}return rt.set(e)}},Wr=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],ft=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}},Qe=(e,t)=>{const{formats:n}=Ne();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Xr=ft(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Qe("number",t)),new Intl.NumberFormat(e,n)}),qr=ft(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Qe("date",t):Object.keys(n).length===0&&(n=Qe("date","short")),new Intl.DateTimeFormat(e,n)}),Zr=ft(({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=Qe("time",t):Object.keys(n).length===0&&(n=Qe("time","short")),new Intl.DateTimeFormat(e,n)}),Qr=({locale:e=ye(),...t}={})=>Xr({locale:e,...t}),Jr=({locale:e=ye(),...t}={})=>qr({locale:e,...t}),Yr=({locale:e=ye(),...t}={})=>Zr({locale:e,...t}),Kr=ft((e,t=ye())=>new Rr(e,t,Ne().formats,{ignoreTag:Ne().ignoreTag})),$r=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:u=ye(),default:a}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ni(e,u);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=Ne()).handleMissingMessage)===null||i===void 0?void 0:i.call(n,{locale:u,id:e,defaultValue:a}))!==null&&r!==void 0?r:a)!==null&&s!==void 0?s:e;if(!l)return f;let d=f;try{d=Kr(f,u).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},es=(e,t)=>Yr(t).format(e),ts=(e,t)=>Jr(t).format(e),ns=(e,t)=>Qr(t).format(e),is=(e,t=ye())=>ni(e,t),Ee=ve([Re,Oe],()=>$r);ve([Re],()=>es);ve([Re],()=>ts);ve([Re],()=>ns);ve([Re,Oe],()=>is);function rs(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,i,r,s,o=[],l="",u=e.split("/");for(u[0]||u.shift();r=u.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 ss(e){let t,n,i;const r=[e[2]];var s=e[0];function o(l){let u={};for(let a=0;a<r.length;a+=1)u=Pt(u,r[a]);return{props:u}}return s&&(t=xe(s,o()),t.$on("routeEvent",e[7])),{c(){t&&G(t.$$.fragment),n=pe()},m(l,u){t&&R(t,l,u),w(l,n,u),i=!0},p(l,u){const a=u&4?Pn(r,[Nn(l[2])]):{};if(s!==(s=l[0])){if(t){ne();const f=t;H(f.$$.fragment,1,0,()=>{U(f,1)}),ie()}s?(t=xe(s,o()),t.$on("routeEvent",l[7]),G(t.$$.fragment),B(t.$$.fragment,1),R(t,n.parentNode,n)):t=null}else s&&t.$set(a)},i(l){i||(t&&B(t.$$.fragment,l),i=!0)},o(l){t&&H(t.$$.fragment,l),i=!1},d(l){l&&y(n),t&&U(t,l)}}}function os(e){let t,n,i;const r=[{params:e[1]},e[2]];var s=e[0];function o(l){let u={};for(let a=0;a<r.length;a+=1)u=Pt(u,r[a]);return{props:u}}return s&&(t=xe(s,o()),t.$on("routeEvent",e[6])),{c(){t&&G(t.$$.fragment),n=pe()},m(l,u){t&&R(t,l,u),w(l,n,u),i=!0},p(l,u){const a=u&6?Pn(r,[u&2&&{params:l[1]},u&4&&Nn(l[2])]):{};if(s!==(s=l[0])){if(t){ne();const f=t;H(f.$$.fragment,1,0,()=>{U(f,1)}),ie()}s?(t=xe(s,o()),t.$on("routeEvent",l[6]),G(t.$$.fragment),B(t.$$.fragment,1),R(t,n.parentNode,n)):t=null}else s&&t.$set(a)},i(l){i||(t&&B(t.$$.fragment,l),i=!0)},o(l){t&&H(t.$$.fragment,l),i=!1},d(l){l&&y(n),t&&U(t,l)}}}function ls(e){let t,n,i,r;const s=[os,ss],o=[];function l(u,a){return u[1]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function hn(){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 Xt=Un(null,function(t){t(hn());const n=()=>{t(hn())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});ve(Xt,e=>e.location);ve(Xt,e=>e.querystring);const pn=ge(void 0);async function st(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Ft(),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 he(){await Ft(),window.history.back()}function as(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function us(e,t,n){let{routes:i={}}=t,{prefix:r=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(A,b){if(!b||typeof b!="function"&&(typeof b!="object"||b._sveltesparouter!==!0))throw Error("Invalid component object");if(!A||typeof A=="string"&&(A.length<1||A.charAt(0)!="/"&&A.charAt(0)!="*")||typeof A=="object"&&!(A instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:g,keys:C}=rs(A);this.path=A,typeof b=="object"&&b._sveltesparouter===!0?(this.component=b.component,this.conditions=b.conditions||[],this.userData=b.userData,this.props=b.props||{}):(this.component=()=>Promise.resolve(b),this.conditions=[],this.props={}),this._pattern=g,this._keys=C}match(A){if(r){if(typeof r=="string")if(A.startsWith(r))A=A.substr(r.length)||"/";else return null;else if(r instanceof RegExp){const _=A.match(r);if(_&&_[0])A=A.substr(_[0].length)||"/";else return null}}const b=this._pattern.exec(A);if(b===null)return null;if(this._keys===!1)return b;const g={};let C=0;for(;C<this._keys.length;){try{g[this._keys[C]]=decodeURIComponent(b[C+1]||"")||null}catch{g[this._keys[C]]=null}C++}return g}async checkConditions(A){for(let b=0;b<this.conditions.length;b++)if(!await this.conditions[b](A))return!1;return!0}}const l=[];i instanceof Map?i.forEach((T,A)=>{l.push(new o(A,T))}):Object.keys(i).forEach(T=>{l.push(new o(T,i[T]))});let u=null,a=null,f={};const d=Ye();async function h(T,A){await Ft(),d(T,A)}let p=null,m=null;s&&(m=T=>{T.state&&(T.state.__svelte_spa_router_scrollY||T.state.__svelte_spa_router_scrollX)?p=T.state:p=null},window.addEventListener("popstate",m),In(()=>{as(p)}));let v=null,S=null;const k=Xt.subscribe(async T=>{v=T;let A=0;for(;A<l.length;){const b=l[A].match(T.location);if(!b){A++;continue}const g={route:l[A].path,location:T.location,querystring:T.querystring,userData:l[A].userData,params:b&&typeof b=="object"&&Object.keys(b).length?b:null};if(!await l[A].checkConditions(g)){n(0,u=null),S=null,h("conditionsFailed",g);return}h("routeLoading",Object.assign({},g));const C=l[A].component;if(S!=C){C.loading?(n(0,u=C.loading),S=C,n(1,a=C.loadingParams),n(2,f={}),h("routeLoaded",Object.assign({},g,{component:u,name:u.name,params:a}))):(n(0,u=null),S=null);const _=await C();if(T!=v)return;n(0,u=_&&_.default||_),S=C}b&&typeof b=="object"&&Object.keys(b).length?n(1,a=b):n(1,a=null),n(2,f=l[A].props),h("routeLoaded",Object.assign({},g,{component:u,name:u.name,params:a})).then(()=>{pn.set(a)});return}n(0,u=null),S=null,pn.set(void 0)});Dt(()=>{k(),m&&window.removeEventListener("popstate",m)});function E(T){qe.call(this,e,T)}function P(T){qe.call(this,e,T)}return e.$$set=T=>{"routes"in T&&n(3,i=T.routes),"prefix"in T&&n(4,r=T.prefix),"restoreScrollState"in T&&n(5,s=T.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,a,f,i,r,s,E,P]}class fs extends J{constructor(t){super(),Q(this,t,us,ls,q,{routes:3,prefix:4,restoreScrollState:5})}}const fe=ge(!1);function ri(){const{subscribe:e,set:t,update:n}=ge([]);return{subscribe:e,fetch:async()=>{if(!$t(fe))return;const i=await wi();n(r=>i)},search:async(i,r)=>{if(!$t(fe))return;const s=await Ai(i,r);n(o=>s)},reset:()=>t([])}}const Te=ri(),vt=ge(""),yt=ri();function cs(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function hs(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 ps extends J{constructor(t){super(),Q(this,t,hs,cs,q,{size:0,strokeWidth:1,class:2})}}function ms(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function ds(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 _s extends J{constructor(t){super(),Q(this,t,ds,ms,q,{size:0,strokeWidth:1,class:2})}}function bs(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function gs(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 vs extends J{constructor(t){super(),Q(this,t,gs,bs,q,{size:0,strokeWidth:1,class:2})}}function ys(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function ws(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 Es extends J{constructor(t){super(),Q(this,t,ws,ys,q,{size:0,strokeWidth:1,class:2})}}function Ss(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function As(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 Bs extends J{constructor(t){super(),Q(this,t,As,Ss,q,{size:0,strokeWidth:1,class:2})}}function ks(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function Hs(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 si extends J{constructor(t){super(),Q(this,t,Hs,ks,q,{size:0,strokeWidth:1,class:2})}}function Ts(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function Is(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 xs extends J{constructor(t){super(),Q(this,t,Is,Ts,q,{size:0,strokeWidth:1,class:2})}}function Cs(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){w(s,t,o),I(t,n),I(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:N,o:N,d(s){s&&y(t)}}}function Ls(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 Ps extends J{constructor(t){super(),Q(this,t,Ls,Cs,q,{size:0,strokeWidth:1,class:2})}}function Ns(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){w(o,t,l),I(t,n),I(t,i),I(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:N,o:N,d(o){o&&y(t)}}}function Ms(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 Lt extends J{constructor(t){super(),Q(this,t,Ms,Ns,q,{size:0,strokeWidth:1,class:2})}}function Os(e){let t,n=e[0]("no_connection")+"",i;return{c(){t=O("p"),i=z(n),c(t,"class","error svelte-dx7iaz")},m(r,s){w(r,t,s),I(t,i)},p(r,[s]){s&1&&n!==(n=r[0]("no_connection")+"")&&X(i,n)},i:N,o:N,d(r){r&&y(t)}}}function Rs(e,t,n){let i;return te(e,Ee,r=>n(0,i=r)),[i]}class Us extends J{constructor(t){super(),Q(this,t,Rs,Os,q,{})}}function mn(e){let t,n;return t=new Us({}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Gs(e){let t,n,i,r,s,o=!e[1]&&mn();const l=e[4].default,u=Mt(l,e,e[3],null);return{c(){t=O("div"),o&&o.c(),n=D(),u&&u.c(),c(t,"class","screen svelte-i096ea"),Z(t,"centered",e[0])},m(a,f){w(a,t,f),o&&o.m(t,null),I(t,n),u&&u.m(t,null),i=!0,r||(s=[ee(t,"keyup",e[2]),ee(t,"keyup",e[5])],r=!0)},p(a,[f]){a[1]?o&&(ne(),H(o,1,1,()=>{o=null}),ie()):o?f&2&&B(o,1):(o=mn(),o.c(),B(o,1),o.m(t,n)),u&&u.p&&(!i||f&8)&&Rt(u,l,a,a[3],i?Ot(l,a[3],f,null):Ut(a[3]),null),(!i||f&1)&&Z(t,"centered",a[0])},i(a){i||(B(o),B(u,a),i=!0)},o(a){H(o),H(u,a),i=!1},d(a){a&&y(t),o&&o.d(),u&&u.d(a),r=!1,ce(s)}}}function Ds(e,t,n){let i;te(e,fe,f=>n(1,i=f));let{$$slots:r={},$$scope:s}=t,{centered:o=!1}=t;const l=Ye();function u(f){f.key==="Escape"&&(f.preventDefault(),l("cancel"))}function a(f){qe.call(this,e,f)}return e.$$set=f=>{"centered"in f&&n(0,o=f.centered),"$$scope"in f&&n(3,s=f.$$scope)},[o,i,u,s,r,a]}class Ue extends J{constructor(t){super(),Q(this,t,Ds,Gs,q,{centered:0})}}function Fs(e){let t,n,i,r,s,o,l,u;var a=e[0];function f(p){return{props:{size:p[2],strokeWidth:p[3]}}}a&&(i=xe(a,f(e)));const d=e[9].default,h=Mt(d,e,e[8],null);return{c(){t=O("div"),n=O("div"),i&&G(i.$$.fragment),s=D(),h&&h.c(),c(n,"class",r="icon-wrapper "+e[1]+" svelte-bhj2u4"),c(t,"class","content svelte-bhj2u4"),c(t,"tabindex","0"),Z(t,"centered",e[5]),Z(t,"horizontal",e[4])},m(p,m){w(p,t,m),I(t,n),i&&R(i,n,null),I(t,s),h&&h.m(t,null),o=!0,l||(u=[ee(t,"click",e[6]),ee(t,"keyup",e[7])],l=!0)},p(p,[m]){const v={};if(m&4&&(v.size=p[2]),m&8&&(v.strokeWidth=p[3]),a!==(a=p[0])){if(i){ne();const S=i;H(S.$$.fragment,1,0,()=>{U(S,1)}),ie()}a?(i=xe(a,f(p)),G(i.$$.fragment),B(i.$$.fragment,1),R(i,n,null)):i=null}else a&&i.$set(v);(!o||m&2&&r!==(r="icon-wrapper "+p[1]+" svelte-bhj2u4"))&&c(n,"class",r),h&&h.p&&(!o||m&256)&&Rt(h,d,p,p[8],o?Ot(d,p[8],m,null):Ut(p[8]),null),(!o||m&16)&&Z(t,"horizontal",p[4])},i(p){o||(i&&B(i.$$.fragment,p),B(h,p),o=!0)},o(p){i&&H(i.$$.fragment,p),H(h,p),o=!1},d(p){p&&y(t),i&&U(i),h&&h.d(p),l=!1,ce(u)}}}function js(e,t,n){let{$$slots:i={},$$scope:r}=t,{icon:s=Bs}=t,{iconClass:o}=t,{size:l="24"}=t,{strokeWidth:u="2"}=t,{horizontal:a=!1}=t;const f=!a,d=Ye();function h(){d("activate")}function p(m){(m.key==="Enter"||m.key===" ")&&d("activate")}return e.$$set=m=>{"icon"in m&&n(0,s=m.icon),"iconClass"in m&&n(1,o=m.iconClass),"size"in m&&n(2,l=m.size),"strokeWidth"in m&&n(3,u=m.strokeWidth),"horizontal"in m&&n(4,a=m.horizontal),"$$scope"in m&&n(8,r=m.$$scope)},[s,o,l,u,a,f,h,p,r,i]}class be extends J{constructor(t){super(),Q(this,t,js,Fs,q,{icon:0,iconClass:1,size:2,strokeWidth:3,horizontal:4})}}function zs(e,t){t&&setTimeout(()=>{e.focus(),e.select()},250)}function dn(e){let t,n;return{c(){t=O("label"),n=z(e[4]),c(t,"for",e[3])},m(i,r){w(i,t,r),I(t,n)},p(i,r){r&16&&X(n,i[4]),r&8&&c(t,"for",i[3])},d(i){i&&y(t)}}}function _n(e){let t,n,i,r,s;return n=new xs({}),{c(){t=O("button"),G(n.$$.fragment),c(t,"class","search-icon svelte-1emqogb"),c(t,"tabindex",-1),Z(t,"focussed",e[2])},m(o,l){w(o,t,l),R(n,t,null),i=!0,r||(s=ee(t,"click",e[12]),r=!0)},p(o,l){(!i||l&4)&&Z(t,"focussed",o[2])},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&y(t),U(n),r=!1,s()}}}function bn(e){let t,n,i,r,s;return n=new _s({}),{c(){t=O("button"),G(n.$$.fragment),c(t,"class","clear-icon svelte-1emqogb"),c(t,"tabindex",-1),Z(t,"focussed",e[2])},m(o,l){w(o,t,l),R(n,t,null),i=!0,r||(s=ee(t,"click",e[13]),r=!0)},p(o,l){(!i||l&4)&&Z(t,"focussed",o[2])},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&y(t),U(n),r=!1,s()}}}function gn(e){let t;return{c(){t=O("div"),c(t,"class","error-message svelte-1emqogb")},m(n,i){w(n,t,i),t.innerHTML=e[9]},p(n,i){i&512&&(t.innerHTML=n[9])},d(n){n&&y(t)}}}function Vs(e){let t,n,i,r,s,o,l,u,a,f,d,h,p=e[4]&&dn(e),m=e[7]&&_n(e),v=e[7]&&e[0]&&bn(e),S=!e[7]&&gn(e);return{c(){t=O("div"),p&&p.c(),n=D(),i=O("div"),m&&m.c(),r=D(),s=O("input"),l=D(),v&&v.c(),u=D(),S&&S.c(),a=pe(),c(s,"type","text"),c(s,"id",e[3]),c(s,"name",e[3]),c(s,"placeholder",e[5]),c(s,"tabindex",e[8]),c(s,"class","svelte-1emqogb"),Z(s,"search",e[7]),Z(s,"focussed",e[2]),Z(s,"value",e[0]),c(i,"class","input-control svelte-1emqogb"),c(t,"class","input svelte-1emqogb")},m(k,E){w(k,t,E),p&&p.m(t,null),I(t,n),I(t,i),m&&m.m(i,null),I(i,r),I(i,s),Ie(s,e[0]),e[16](s),I(i,l),v&&v.m(i,null),w(k,u,E),S&&S.m(k,E),w(k,a,E),f=!0,d||(h=[ee(s,"input",e[15]),ee(s,"focusin",e[10]),ee(s,"focusout",e[11]),Gt(o=zs.call(null,s,e[6]))],d=!0)},p(k,[E]){k[4]?p?p.p(k,E):(p=dn(k),p.c(),p.m(t,n)):p&&(p.d(1),p=null),k[7]?m?(m.p(k,E),E&128&&B(m,1)):(m=_n(k),m.c(),B(m,1),m.m(i,r)):m&&(ne(),H(m,1,1,()=>{m=null}),ie()),(!f||E&8)&&c(s,"id",k[3]),(!f||E&8)&&c(s,"name",k[3]),(!f||E&32)&&c(s,"placeholder",k[5]),(!f||E&256)&&c(s,"tabindex",k[8]),E&1&&s.value!==k[0]&&Ie(s,k[0]),o&&Me(o.update)&&E&64&&o.update.call(null,k[6]),(!f||E&128)&&Z(s,"search",k[7]),(!f||E&4)&&Z(s,"focussed",k[2]),(!f||E&1)&&Z(s,"value",k[0]),k[7]&&k[0]?v?(v.p(k,E),E&129&&B(v,1)):(v=bn(k),v.c(),B(v,1),v.m(i,null)):v&&(ne(),H(v,1,1,()=>{v=null}),ie()),k[7]?S&&(S.d(1),S=null):S?S.p(k,E):(S=gn(k),S.c(),S.m(a.parentNode,a))},i(k){f||(B(m),B(v),f=!0)},o(k){H(m),H(v),f=!1},d(k){k&&y(t),p&&p.d(),m&&m.d(),e[16](null),v&&v.d(),k&&y(u),S&&S.d(k),k&&y(a),d=!1,ce(h)}}}function Ws(e,t,n){let i;const r=Ye();let{name:s="input"}=t,{label:o=""}=t,{value:l=""}=t,{errorMessage:u=""}=t,{placeholder:a=""}=t,{autofocus:f=!1}=t,{search:d=!1}=t,{tabindex:h=0}=t,{ref:p}=t,{focussed:m=f}=t;function v(){n(2,m=!0)}function S(){n(2,m=!1)}function k(){r("query",l),document.getElementById(s).focus()}function E(){n(0,l=""),document.getElementById(s).focus()}function P(){l=this.value,n(0,l)}function T(A){ue[A?"unshift":"push"](()=>{p=A,n(1,p)})}return e.$$set=A=>{"name"in A&&n(3,s=A.name),"label"in A&&n(4,o=A.label),"value"in A&&n(0,l=A.value),"errorMessage"in A&&n(14,u=A.errorMessage),"placeholder"in A&&n(5,a=A.placeholder),"autofocus"in A&&n(6,f=A.autofocus),"search"in A&&n(7,d=A.search),"tabindex"in A&&n(8,h=A.tabindex),"ref"in A&&n(1,p=A.ref),"focussed"in A&&n(2,m=A.focussed)},e.$$.update=()=>{e.$$.dirty&16384&&n(9,i=u||"&nbsp;")},[l,p,m,s,o,a,f,d,h,i,v,S,k,E,u,P,T]}class qt extends J{constructor(t){super(),Q(this,t,Ws,Vs,q,{name:3,label:4,value:0,errorMessage:14,placeholder:5,autofocus:6,search:7,tabindex:8,ref:1,focussed:2})}}function oi(e,t){t&&e.focus()}function Xs(e){let t;return{c(){t=z(e[0])},m(n,i){w(n,t,i)},p(n,i){i&1&&X(t,n[0])},d(n){n&&y(t)}}}function qs(e){let t;return{c(){t=z("\xA0")},m(n,i){w(n,t,i)},p:N,d(n){n&&y(t)}}}function Zs(e){let t;function n(s,o){return s[1]?qs:Xs}let r=n(e)(e);return{c(){t=O("span"),r.c(),c(t,"class","shortcut-button svelte-11t060e"),Z(t,"hide",e[1])},m(s,o){w(s,t,o),r.m(t,null)},p(s,[o]){r.p(s,o)},i:N,o:N,d(s){s&&y(t),r.d()}}}function Qs(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 li extends J{constructor(t){super(),Q(this,t,Qs,Zs,q,{shortcut:0})}}function vn(e){let t,n;return t=new li({props:{shortcut:e[6]}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,r){const s={};r&64&&(s.shortcut=i[6]),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function yn(e){let t,n,i;return n=new Es({props:{size:"1.25x"}}),{c(){t=O("div"),G(n.$$.fragment),c(t,"class","edit-icon-wrapper svelte-in7i1c")},m(r,s){w(r,t,s),R(n,t,null),i=!0},i(r){i||(B(n.$$.fragment,r),i=!0)},o(r){H(n.$$.fragment,r),i=!1},d(r){r&&y(t),U(n)}}}function Js(e){let t,n,i,r,s,o=e[0].body+"",l,u,a,f,d,h=e[4]&&vn(e);i=new li({props:{shortcut:e[0].abbreviation}});let p=!e[4]&&yn();return{c(){t=O("li"),h&&h.c(),n=D(),G(i.$$.fragment),r=D(),s=O("span"),l=z(o),u=D(),p&&p.c(),c(s,"class","body svelte-in7i1c"),c(t,"tabindex",e[1]),c(t,"class","svelte-in7i1c"),Z(t,"focussed",e[2]),Z(t,"active",e[3])},m(m,v){w(m,t,v),h&&h.m(t,null),I(t,n),R(i,t,null),I(t,r),I(t,s),I(s,l),I(t,u),p&&p.m(t,null),e[12](t),a=!0,f||(d=ee(t,"click",e[11]),f=!0)},p(m,[v]){m[4]?h?(h.p(m,v),v&16&&B(h,1)):(h=vn(m),h.c(),B(h,1),h.m(t,n)):h&&(ne(),H(h,1,1,()=>{h=null}),ie());const S={};v&1&&(S.shortcut=m[0].abbreviation),i.$set(S),(!a||v&1)&&o!==(o=m[0].body+"")&&X(l,o),m[4]?p&&(ne(),H(p,1,1,()=>{p=null}),ie()):p?v&16&&B(p,1):(p=yn(),p.c(),B(p,1),p.m(t,null)),(!a||v&2)&&c(t,"tabindex",m[1]),(!a||v&4)&&Z(t,"focussed",m[2]),(!a||v&8)&&Z(t,"active",m[3])},i(m){a||(B(h),B(i.$$.fragment,m),B(p),a=!0)},o(m){H(h),H(i.$$.fragment,m),H(p),a=!1},d(m){m&&y(t),h&&h.d(),U(i),p&&p.d(),e[12](null),f=!1,d()}}}function Ys(e,t,n){let{snippet:i}=t,{index:r=-1}=t,{tabindex:s=-1}=t,{focussed:o=!1}=t,{active:l=!1}=t,{selectMode:u=!1}=t,{observer:a=null}=t,f,d=r>=0&&r<10?r+1:"";d===10&&(d=0);function h(){return f.classList.contains("is-visible")}function p(S){f.scrollIntoView({behavior:"smooth",block:S})}Je(()=>{a&&a.observe(f)}),Dt(()=>{a&&a.unobserve(f)});function m(S){qe.call(this,e,S)}function v(S){ue[S?"unshift":"push"](()=>{f=S,n(5,f)})}return e.$$set=S=>{"snippet"in S&&n(0,i=S.snippet),"index"in S&&n(7,r=S.index),"tabindex"in S&&n(1,s=S.tabindex),"focussed"in S&&n(2,o=S.focussed),"active"in S&&n(3,l=S.active),"selectMode"in S&&n(4,u=S.selectMode),"observer"in S&&n(8,a=S.observer)},[i,s,o,l,u,f,d,r,a,h,p,m,v]}class Ks extends J{constructor(t){super(),Q(this,t,Ys,Js,q,{snippet:0,index:7,tabindex:1,focussed:2,active:3,selectMode:4,observer:8,isVisible:9,scrollIntoView:10})}get isVisible(){return this.$$.ctx[9]}get scrollIntoView(){return this.$$.ctx[10]}}function wn(e,t,n){const i=e.slice();return i[22]=t[n],i[23]=t,i[24]=n,i}function En(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 Ks({props:l}),r(),t.$on("click",o),{c(){G(t.$$.fragment)},m(u,a){R(t,u,a),i=!0},p(u,a){e=u,n!==e[24]&&(s(),n=e[24],r());const f={};a&128&&(f.snippet=e[22]),a&16&&(f.focussed=e[24]===e[4]),a&32&&(f.active=e[5]),a&4&&(f.selectMode=e[2]),t.$set(f)},i(u){i||(B(t.$$.fragment,u),i=!0)},o(u){H(t.$$.fragment,u),i=!1},d(u){s(),U(t,u)}}}function $s(e){let t,n,i,r,s,o=e[7],l=[];for(let a=0;a<o.length;a+=1)l[a]=En(wn(e,o,a));const u=a=>H(l[a],1,1,()=>{l[a]=null});return{c(){t=O("ul");for(let a=0;a<l.length;a+=1)l[a].c();c(t,"tabindex",e[1]),c(t,"class","svelte-1uwz3ip")},m(a,f){w(a,t,f);for(let d=0;d<l.length;d+=1)l[d].m(t,null);e[16](t),i=!0,r||(s=[ee(t,"focus",e[9]),ee(t,"blur",e[10]),ee(t,"keydown",e[12]),Gt(n=oi.call(null,t,e[3]))],r=!0)},p(a,[f]){if(f&2548){o=a[7];let d;for(d=0;d<o.length;d+=1){const h=wn(a,o,d);l[d]?(l[d].p(h,f),B(l[d],1)):(l[d]=En(h),l[d].c(),B(l[d],1),l[d].m(t,null))}for(ne(),d=o.length;d<l.length;d+=1)u(d);ie()}(!i||f&2)&&c(t,"tabindex",a[1]),n&&Me(n.update)&&f&8&&n.update.call(null,a[3])},i(a){if(!i){for(let f=0;f<o.length;f+=1)B(l[f]);i=!0}},o(a){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)H(l[f]);i=!1},d(a){a&&y(t),pi(l,a),e[16](null),r=!1,ce(s)}}}function eo(e,t,n){let i;const r=Ye();let{snippets:s=null}=t,{tabindex:o=0}=t,{selectMode:l=!1}=t,{autofocus:u=!1}=t,{ref:a}=t,f=0,d=u,h=[];const p=new IntersectionObserver(function(_){for(let L=0;L<_.length;L++)_[L].isIntersecting?_[L].target.classList.add("is-visible"):_[L].target.classList.remove("is-visible")},{root:a,threshold:[.6]});function m(_){return n(4,f=0),_}function v(){n(5,d=!0)}function S(){n(5,d=!1)}function k(_){l?T(i[_]):A(i[_])}function E(_){!s||s.length===0||P(_)&&_.preventDefault()}function P(_){if(_.key==="Home"||_.key==="g")return n(4,f=0),h[f].scrollIntoView("nearest"),!0;if(_.key==="End"||_.key==="G")return n(4,f=s.length-1),h[f].scrollIntoView("nearest"),!0;if(f<s.length-1&&(_.key==="ArrowDown"||_.key==="j"))return n(4,f++,f),h[f].scrollIntoView("nearest"),!0;if(f>0&&(_.key==="ArrowUp"||_.key==="k"))return n(4,f--,f),h[f].scrollIntoView("nearest"),!0;if(_.key==="PageDown"||_.key==="d"){let L=-1,x=-1;for(let Y=0;Y<h.length;Y++)if(h[Y].isVisible())x=Y,L<0&&(L=Y);else if(x>=0)break;const se=h.length-1,oe=x-L;return x+oe>se?n(4,f=se):n(4,f=x),h[f].scrollIntoView("start"),!0}if(_.key==="PageUp"||_.key==="u"){let L=-1,x=-1;for(let oe=0;oe<h.length;oe++){const Y=h[oe];if(Y.isVisible()&&L<0)L=oe,x=oe;else if(Y.isVisible())x=oe;else if(L>=0)break}const se=x-L;return L-se<=0?n(4,f=0):n(4,f=L),h[f].scrollIntoView("end"),!0}if(l&&f>=0&&f<s.length&&_.key==="Enter")return T(i[f]),!0;if(l&&["1","2","3","4","5","6","7","8","9","0"].includes(_.key)){let L=_.key-1;return L===-1&&(L=9),L+1>i.length?!1:(T(i[L]),!0)}return!l&&f>=0&&f<s.length&&(_.key==="ArrowRight"||_.key==="Enter")?(A(i[f]),!0):!1}function T(_){r("itemActivated",{snippet:_})}function A(_){r("itemEdit",{snippet:_})}In(()=>{h.length!==i.length&&n(6,h.length=i.length,h)});function b(_,L){ue[_?"unshift":"push"](()=>{h[L]=_,n(6,h)})}const g=_=>k(_);function C(_){ue[_?"unshift":"push"](()=>{a=_,n(0,a)})}return e.$$set=_=>{"snippets"in _&&n(13,s=_.snippets),"tabindex"in _&&n(1,o=_.tabindex),"selectMode"in _&&n(2,l=_.selectMode),"autofocus"in _&&n(3,u=_.autofocus),"ref"in _&&n(0,a=_.ref)},e.$$.update=()=>{e.$$.dirty&8192&&n(7,i=m(s))},[a,o,l,u,f,d,h,i,p,v,S,k,E,s,b,g,C]}class to extends J{constructor(t){super(),Q(this,t,eo,$s,q,{snippets:13,tabindex:1,selectMode:2,autofocus:3,ref:0})}}function Sn(e){let t,n;return t=new be({props:{iconClass:"dimmed",icon:si,size:"2.3x"}}),t.$on("activate",e[10]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function An(e){let t,n;return t=new be({props:{iconClass:"dimmed",icon:Ps,size:"2x"}}),t.$on("activate",e[11]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function no(e){let t,n,i=e[6]("no_snippets_found.title")+"",r,s,o,l=e[6]("no_snippets_found.description")+"",u;return{c(){t=O("div"),n=O("p"),r=z(i),s=D(),o=O("p"),u=z(l),c(n,"class","no-snippets-found svelte-fbjbp5"),c(o,"class","no-snippets-found description dimmed svelte-fbjbp5"),c(t,"class","centered")},m(a,f){w(a,t,f),I(t,n),I(n,r),I(t,s),I(t,o),I(o,u)},p(a,f){f&64&&i!==(i=a[6]("no_snippets_found.title")+"")&&X(r,i),f&64&&l!==(l=a[6]("no_snippets_found.description")+"")&&X(u,l)},i:N,o:N,d(a){a&&y(t)}}}function io(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 to({props:s}),ue.push(()=>He(t,"ref",r)),t.$on("itemActivated",e[12]),t.$on("itemEdit",e[13]),{c(){G(t.$$.fragment)},m(o,l){R(t,o,l),i=!0},p(o,l){const u={};l&128&&(u.snippets=o[7]),l&1&&(u.selectMode=o[0]),!n&&l&16&&(n=!0,u.ref=o[4],ke(()=>n=!1)),t.$set(u)},i(o){i||(B(t.$$.fragment,o),i=!0)},o(o){H(t.$$.fragment,o),i=!1},d(o){U(t,o)}}}function ro(e){let t,n,i,r,s,o,l,u,a,f,d,h,p=!e[0]&&Sn(e);function m(b){e[18](b)}function v(b){e[19](b)}function S(b){e[20](b)}let k={search:!0,autofocus:e[1],placeholder:e[6]("search"),tabindex:1};e[2]!==void 0&&(k.value=e[2]),e[3]!==void 0&&(k.ref=e[3]),e[5]!==void 0&&(k.focussed=e[5]),i=new qt({props:k}),ue.push(()=>He(i,"value",m)),ue.push(()=>He(i,"ref",v)),ue.push(()=>He(i,"focussed",S)),i.$on("query",e[9]);let E=!e[0]&&An(e);const P=[io,no],T=[];function A(b,g){return b[7]?0:1}return a=A(e),f=T[a]=P[a](e),{c(){t=O("div"),p&&p.c(),n=D(),G(i.$$.fragment),l=D(),E&&E.c(),u=D(),f.c(),d=pe(),c(t,"class","toolbar svelte-fbjbp5")},m(b,g){w(b,t,g),p&&p.m(t,null),I(t,n),R(i,t,null),I(t,l),E&&E.m(t,null),w(b,u,g),T[a].m(b,g),w(b,d,g),h=!0},p(b,g){b[0]?p&&(ne(),H(p,1,1,()=>{p=null}),ie()):p?(p.p(b,g),g&1&&B(p,1)):(p=Sn(b),p.c(),B(p,1),p.m(t,n));const C={};g&2&&(C.autofocus=b[1]),g&64&&(C.placeholder=b[6]("search")),!r&&g&4&&(r=!0,C.value=b[2],ke(()=>r=!1)),!s&&g&8&&(s=!0,C.ref=b[3],ke(()=>s=!1)),!o&&g&32&&(o=!0,C.focussed=b[5],ke(()=>o=!1)),i.$set(C),b[0]?E&&(ne(),H(E,1,1,()=>{E=null}),ie()):E?(E.p(b,g),g&1&&B(E,1)):(E=An(b),E.c(),B(E,1),E.m(t,null));let _=a;a=A(b),a===_?T[a].p(b,g):(ne(),H(T[_],1,1,()=>{T[_]=null}),ie(),f=T[a],f?f.p(b,g):(f=T[a]=P[a](b),f.c()),B(f,1),f.m(d.parentNode,d))},i(b){h||(B(p),B(i.$$.fragment,b),B(E),B(f),h=!0)},o(b){H(p),H(i.$$.fragment,b),H(E),H(f),h=!1},d(b){b&&y(t),p&&p.d(),U(i),E&&E.d(),b&&y(u),T[a].d(b),b&&y(d)}}}function so(e){let t,n;return t=new Ue({props:{$$slots:{default:[ro]},$$scope:{ctx:e}}}),t.$on("keyup",e[14]),t.$on("cancel",e[15]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&16777471&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function oo(e,t,n){let i,r,s,o;te(e,fe,x=>n(17,i=x)),te(e,vt,x=>n(2,r=x)),te(e,Ee,x=>n(6,s=x)),te(e,yt,x=>n(7,o=x));let{orderByLastUsed:l=!1}=t,{selectMode:u=!1}=t,{focusSearchBox:a=!0}=t;const f=!a;let d,h,p=a;function m(x){hi(vt,r=x.detail,r),yt.search(r,l)}function v(){st("/snippet/add")}function S(){st("/settings")}function k(x){ki(x.detail.snippet.abbreviation,500)}function E(x){const se=x.detail.snippet.id;st("/snippet/edit/"+se)}function P(x,se,oe){yt.search(x,se)}function T(){p?h.focus():d.focus()}function A(x){x.ctrlKey&&x.key==="n"&&(v(),x.preventDefault()),x.ctrlKey&&x.altKey&&x.key==="s"&&(S(),x.preventDefault()),x.ctrlKey&&x.key==="f"&&(T(),x.preventDefault())}function b(){u&&gi()}function g(x){r=x,vt.set(r)}function C(x){d=x,n(3,d)}function _(x){p=x,n(5,p)}function L(x){h=x,n(4,h)}return e.$$set=x=>{"orderByLastUsed"in x&&n(16,l=x.orderByLastUsed),"selectMode"in x&&n(0,u=x.selectMode),"focusSearchBox"in x&&n(1,a=x.focusSearchBox)},e.$$.update=()=>{e.$$.dirty&196612&&P(r,l)},[u,a,r,d,h,p,s,o,f,m,v,S,k,E,A,b,l,i,g,C,_,L]}class lo extends J{constructor(t){super(),Q(this,t,oo,so,q,{orderByLastUsed:16,selectMode:0,focusSearchBox:1})}}function Bn(e){let t,n,i,r,s,o;return n=new be({props:{iconClass:"dimmed",icon:si,size:"5x",$$slots:{default:[ao]},$$scope:{ctx:e}}}),n.$on("activate",e[2]),s=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[uo]},$$scope:{ctx:e}}}),s.$on("activate",e[3]),{c(){t=O("p"),G(n.$$.fragment),i=D(),r=O("p"),G(s.$$.fragment),c(t,"class","add-snippet"),c(r,"class","import-snippets")},m(l,u){w(l,t,u),R(n,t,null),w(l,i,u),w(l,r,u),R(s,r,null),o=!0},p(l,u){const a={};u&17&&(a.$$scope={dirty:u,ctx:l}),n.$set(a);const f={};u&17&&(f.$$scope={dirty:u,ctx:l}),s.$set(f)},i(l){o||(B(n.$$.fragment,l),B(s.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),H(s.$$.fragment,l),o=!1},d(l){l&&y(t),U(n),l&&y(i),l&&y(r),U(s)}}}function ao(e){let t=e[0]("add_snippet.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("add_snippet.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function uo(e){let t=e[0]("import_snippets.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&1&&t!==(t=i[0]("import_snippets.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function fo(e){let t,n,i,r=e[0]("no_snippets_found.title")+"",s,o,l,u,a=e[1]&&Bn(e);return{c(){t=O("h1"),t.textContent="Snippet Pixie",n=D(),i=O("p"),s=z(r),o=D(),a&&a.c(),l=pe(),c(i,"class","dimmed")},m(f,d){w(f,t,d),w(f,n,d),w(f,i,d),I(i,s),w(f,o,d),a&&a.m(f,d),w(f,l,d),u=!0},p(f,d){(!u||d&1)&&r!==(r=f[0]("no_snippets_found.title")+"")&&X(s,r),f[1]?a?(a.p(f,d),d&2&&B(a,1)):(a=Bn(f),a.c(),B(a,1),a.m(l.parentNode,l)):a&&(ne(),H(a,1,1,()=>{a=null}),ie())},i(f){u||(B(a),u=!0)},o(f){H(a),u=!1},d(f){f&&y(t),f&&y(n),f&&y(i),f&&y(o),a&&a.d(f),f&&y(l)}}}function co(e){let t,n;return t=new Ue({props:{centered:!0,$$slots:{default:[fo]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&19&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function ho(e,t,n){let i,r;te(e,Ee,l=>n(0,i=l)),te(e,fe,l=>n(1,r=l));function s(){st("/snippet/add")}async function o(){try{const l=await Rn(!1)}catch(l){await re(i("import_snippets.error_title"),l)}await Te.fetch()}return[i,r,s,o]}class po extends J{constructor(t){super(),Q(this,t,ho,co,q,{})}}function mo(e){let t,n;return t=new po({}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function _o(e){let t,n;return t=new lo({props:{selectMode:e[2],orderByLastUsed:e[3],focusSearchBox:e[4]}}),{c(){G(t.$$.fragment)},m(i,r){R(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||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function bo(e){let t;return{c(){t=z("Checking settings ...")},m(n,i){w(n,t,i)},p:N,i:N,o:N,d(n){n&&y(t)}}}function go(e){let t,n,i,r;const s=[bo,_o,mo],o=[];function l(u,a){return u[1]?0:u[0]&&(u[5]&&u[5].length>0||u[2])?1:2}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function vo(e,t,n){let i,r,s;te(e,Ee,d=>n(6,i=d)),te(e,fe,d=>n(0,r=d)),te(e,Te,d=>n(5,s=d));let o=!0,l=!1,u=!1,a=!0;function f(d){Te.fetch()}return Je(async()=>{if(n(2,l=await xi()),n(3,u=l),l&&r)try{const d=await Mn("FOCUS_SEARCH_BOX");n(4,a=d!=="false")}catch(d){await re(i("settings.get_error_title"),d)}n(1,o=!1)}),e.$$.update=()=>{e.$$.dirty&1&&f()},[r,o,l,u,a,s]}class yo extends J{constructor(t){super(),Q(this,t,vo,go,q,{})}}function wo(e){let t,n,i,r;const s=e[5].default,o=Mt(s,e,e[4],null);return{c(){t=O("button"),o&&o.c(),t.disabled=e[3],c(t,"class","svelte-1jbd97"),Z(t,"primary",e[0]),Z(t,"danger",e[1]),Z(t,"secondary",e[2])},m(l,u){w(l,t,u),o&&o.m(t,null),n=!0,i||(r=ee(t,"click",e[6]),i=!0)},p(l,[u]){o&&o.p&&(!n||u&16)&&Rt(o,s,l,l[4],n?Ot(s,l[4],u,null):Ut(l[4]),null),(!n||u&8)&&(t.disabled=l[3]),(!n||u&1)&&Z(t,"primary",l[0]),(!n||u&2)&&Z(t,"danger",l[1]),(!n||u&4)&&Z(t,"secondary",l[2])},i(l){n||(B(o,l),n=!0)},o(l){H(o,l),n=!1},d(l){l&&y(t),o&&o.d(l),i=!1,r()}}}function Eo(e,t,n){let{$$slots:i={},$$scope:r}=t,{primary:s=!1}=t,{danger:o=!1}=t,{secondary:l=!1}=t,{disabled:u=!1}=t;s=!s&&!l&&!o?!0:s,o=s&&o?!1:o,l=(s||o)&&l?!1:l;function a(f){qe.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,u=f.disabled),"$$scope"in f&&n(4,r=f.$$scope)},[s,o,l,u,r,i,a]}class We extends J{constructor(t){super(),Q(this,t,Eo,wo,q,{primary:0,danger:1,secondary:2,disabled:3})}}function So(e){let t=e[4]("button.cancel")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.cancel")+"")&&X(n,t)},d(i){i&&y(n)}}}function Ao(e){let t=e[4]("button.save")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&16&&t!==(t=i[4]("button.save")+"")&&X(n,t)},d(i){i&&y(n)}}}function Bo(e){let t,n=e[4]("add_snippet.title")+"",i,r,s,o,l,u,a=e[4]("body.title")+"",f,d,h,p,m,v,S,k,E,P,T;function A(g){e[8](g)}let b={label:e[4]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(b.value=e[0]),s=new qt({props:b}),ue.push(()=>He(s,"value",A)),v=new We({props:{secondary:!0,$$slots:{default:[So]},$$scope:{ctx:e}}}),v.$on("click",e[5]),k=new We({props:{primary:!0,disabled:e[3],$$slots:{default:[Ao]},$$scope:{ctx:e}}}),k.$on("click",e[6]),{c(){t=O("h2"),i=z(n),r=D(),G(s.$$.fragment),l=D(),u=O("label"),f=z(a),d=D(),h=O("textarea"),p=D(),m=O("div"),G(v.$$.fragment),S=D(),G(k.$$.fragment),c(t,"class","svelte-126nfs4"),c(u,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(m,"class","button-row svelte-126nfs4")},m(g,C){w(g,t,C),I(t,i),w(g,r,C),R(s,g,C),w(g,l,C),w(g,u,C),I(u,f),w(g,d,C),w(g,h,C),Ie(h,e[2]),w(g,p,C),w(g,m,C),R(v,m,null),I(m,S),R(k,m,null),E=!0,P||(T=ee(h,"input",e[9]),P=!0)},p(g,C){(!E||C&16)&&n!==(n=g[4]("add_snippet.title")+"")&&X(i,n);const _={};C&16&&(_.label=g[4]("abbreviation.title")),C&2&&(_.errorMessage=g[1]),!o&&C&1&&(o=!0,_.value=g[0],ke(()=>o=!1)),s.$set(_),(!E||C&16)&&a!==(a=g[4]("body.title")+"")&&X(f,a),C&4&&Ie(h,g[2]);const L={};C&2064&&(L.$$scope={dirty:C,ctx:g}),v.$set(L);const x={};C&8&&(x.disabled=g[3]),C&2064&&(x.$$scope={dirty:C,ctx:g}),k.$set(x)},i(g){E||(B(s.$$.fragment,g),B(v.$$.fragment,g),B(k.$$.fragment,g),E=!0)},o(g){H(s.$$.fragment,g),H(v.$$.fragment,g),H(k.$$.fragment,g),E=!1},d(g){g&&y(t),g&&y(r),U(s,g),g&&y(l),g&&y(u),g&&y(d),g&&y(h),g&&y(p),g&&y(m),U(v),U(k),P=!1,T()}}}function ko(e){let t,n;return t=new Ue({props:{$$slots:{default:[Bo]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&2079&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Ho(e,t,n){let i,r,s;te(e,Ee,m=>n(4,r=m)),te(e,fe,m=>n(7,s=m));let o="",l="";async function u(m){if(m.length===0){n(1,a=r("abbreviation.empty"));return}if(!s){n(1,a="");return}try{const v=await On(m);if(v.hasOwnProperty("abbreviation")&&v.abbreviation.length>0){n(1,a=r("abbreviation.exists"));return}}catch(v){await re(r("add_snippet.error_title"),v)}n(1,a="")}let a="";function f(){he()}async function d(){try{const m=await vi(o,l);await he()}catch(m){await re(r("add_snippet.error_title"),m)}}function h(m){o=m,n(0,o)}function p(){l=this.value,n(2,l)}return e.$$.update=()=>{e.$$.dirty&1&&u(o),e.$$.dirty&130&&n(3,i=!s||a.length>0)},[o,a,l,i,r,f,d,s,h,p]}class To extends J{constructor(t){super(),Q(this,t,Ho,ko,q,{})}}function Io(e){let t=e[5]("button.remove")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.remove")+"")&&X(n,t)},d(i){i&&y(n)}}}function xo(e){let t=e[5]("button.cancel")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.cancel")+"")&&X(n,t)},d(i){i&&y(n)}}}function Co(e){let t=e[5]("button.save")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&32&&t!==(t=i[5]("button.save")+"")&&X(n,t)},d(i){i&&y(n)}}}function Lo(e){let t,n=e[5]("edit_snippet.title")+"",i,r,s,o,l,u,a=e[5]("body.title")+"",f,d,h,p,m,v,S,k,E,P,T,A,b;function g(_){e[11](_)}let C={label:e[5]("abbreviation.title"),errorMessage:e[1],autofocus:!0};return e[0]!==void 0&&(C.value=e[0]),s=new qt({props:C}),ue.push(()=>He(s,"value",g)),v=new We({props:{danger:!0,disabled:e[3],$$slots:{default:[Io]},$$scope:{ctx:e}}}),v.$on("click",e[7]),k=new We({props:{secondary:!0,$$slots:{default:[xo]},$$scope:{ctx:e}}}),k.$on("click",e[6]),P=new We({props:{primary:!0,disabled:e[4],$$slots:{default:[Co]},$$scope:{ctx:e}}}),P.$on("click",e[8]),{c(){t=O("h2"),i=z(n),r=D(),G(s.$$.fragment),l=D(),u=O("label"),f=z(a),d=D(),h=O("textarea"),p=D(),m=O("div"),G(v.$$.fragment),S=D(),G(k.$$.fragment),E=D(),G(P.$$.fragment),c(t,"class","svelte-126nfs4"),c(u,"for","body"),c(h,"id","body"),c(h,"class","svelte-126nfs4"),c(m,"class","button-row svelte-126nfs4")},m(_,L){w(_,t,L),I(t,i),w(_,r,L),R(s,_,L),w(_,l,L),w(_,u,L),I(u,f),w(_,d,L),w(_,h,L),Ie(h,e[2]),w(_,p,L),w(_,m,L),R(v,m,null),I(m,S),R(k,m,null),I(m,E),R(P,m,null),T=!0,A||(b=ee(h,"input",e[12]),A=!0)},p(_,L){(!T||L&32)&&n!==(n=_[5]("edit_snippet.title")+"")&&X(i,n);const x={};L&32&&(x.label=_[5]("abbreviation.title")),L&2&&(x.errorMessage=_[1]),!o&&L&1&&(o=!0,x.value=_[0],ke(()=>o=!1)),s.$set(x),(!T||L&32)&&a!==(a=_[5]("body.title")+"")&&X(f,a),L&4&&Ie(h,_[2]);const se={};L&8&&(se.disabled=_[3]),L&32800&&(se.$$scope={dirty:L,ctx:_}),v.$set(se);const oe={};L&32800&&(oe.$$scope={dirty:L,ctx:_}),k.$set(oe);const Y={};L&16&&(Y.disabled=_[4]),L&32800&&(Y.$$scope={dirty:L,ctx:_}),P.$set(Y)},i(_){T||(B(s.$$.fragment,_),B(v.$$.fragment,_),B(k.$$.fragment,_),B(P.$$.fragment,_),T=!0)},o(_){H(s.$$.fragment,_),H(v.$$.fragment,_),H(k.$$.fragment,_),H(P.$$.fragment,_),T=!1},d(_){_&&y(t),_&&y(r),U(s,_),_&&y(l),_&&y(u),_&&y(d),_&&y(h),_&&y(p),_&&y(m),U(v),U(k),U(P),A=!1,b()}}}function Po(e){let t,n;return t=new Ue({props:{$$slots:{default:[Lo]},$$scope:{ctx:e}}}),t.$on("cancel",e[6]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&32831&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function No(e,t,n){let i,r,s,o;te(e,Ee,E=>n(5,s=E)),te(e,fe,E=>n(10,o=E));let{params:l={}}=t,u={},a="",f="";async function d(E){if(n(1,h=""),!!u.hasOwnProperty("id")){if(E.length===0){n(1,h=s("abbreviation.empty"));return}if(!!o)try{const P=await On(E);P.hasOwnProperty("abbreviation")&&P.abbreviation.length>0&&P.id!==u.id&&n(1,h=s("abbreviation.exists"))}catch(P){await re(s("edit_snippet.error_title"),P)}}}let h="";function p(){he()}async function m(){try{await Ti(u.abbreviation),await he()}catch(E){await re(s("remove_snippet.error_title"),E)}}async function v(){let E={...u};E.abbreviation=a,E.body=f;try{await Li(u.id,E),await he()}catch(P){await re(s("edit_snippet.error_title"),P)}}Je(async()=>{l.hasOwnProperty("id")||(await re(s("edit_snippet.error_title"),s("edit_snippet.id_not_supplied")),await he());try{u=await Si(l.id)}catch(P){await re(s("edit_snippet.error_title"),P),await he()}let E=!1;try{E=await Bi(u.id)}catch(P){await re(s("edit_snippet.error_title"),P),await he()}E&&(await re(s("edit_snippet.error_title"),s("edit_snippet.snippet_not_found")),await he()),n(0,a=u.abbreviation),n(2,f=u.body)});function S(E){a=E,n(0,a)}function k(){f=this.value,n(2,f)}return e.$$set=E=>{"params"in E&&n(9,l=E.params)},e.$$.update=()=>{e.$$.dirty&1&&d(a),e.$$.dirty&1026&&n(4,i=!o||h.length>0),e.$$.dirty&1024&&n(3,r=!o)},[a,h,f,r,i,s,p,m,v,l,o,S,k]}class Mo extends J{constructor(t){super(),Q(this,t,No,Po,q,{params:9})}}function Oo(e){let t=e[3]("settings.no_connection")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("settings.no_connection")+"")&&X(n,t)},i:N,o:N,d(i){i&&y(n)}}}function Ro(e){let t,n=e[3]("settings.import_export_title")+"",i,r,s,o,l,u,a,f,d;o=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[Uo]},$$scope:{ctx:e}}}),o.$on("activate",e[14]),u=new be({props:{horizontal:!0,iconClass:"dimmed",icon:Lt,size:"1.5x",$$slots:{default:[Go]},$$scope:{ctx:e}}}),u.$on("activate",e[15]);let h=e[4]&&e[4].length>0&&kn(e);return{c(){t=O("h3"),i=z(n),r=D(),s=O("p"),G(o.$$.fragment),l=D(),G(u.$$.fragment),a=D(),h&&h.c(),f=pe(),c(t,"class","svelte-17bsaqe"),c(s,"class","import-snippets svelte-17bsaqe")},m(p,m){w(p,t,m),I(t,i),w(p,r,m),w(p,s,m),R(o,s,null),I(s,l),R(u,s,null),w(p,a,m),h&&h.m(p,m),w(p,f,m),d=!0},p(p,m){(!d||m&8)&&n!==(n=p[3]("settings.import_export_title")+"")&&X(i,n);const v={};m&524296&&(v.$$scope={dirty:m,ctx:p}),o.$set(v);const S={};m&524296&&(S.$$scope={dirty:m,ctx:p}),u.$set(S),p[4]&&p[4].length>0?h?(h.p(p,m),m&16&&B(h,1)):(h=kn(p),h.c(),B(h,1),h.m(f.parentNode,f)):h&&(ne(),H(h,1,1,()=>{h=null}),ie())},i(p){d||(B(o.$$.fragment,p),B(u.$$.fragment,p),B(h),d=!0)},o(p){H(o.$$.fragment,p),H(u.$$.fragment,p),H(h),d=!1},d(p){p&&y(t),p&&y(r),p&&y(s),U(o),U(u),p&&y(a),h&&h.d(p),p&&y(f)}}}function Uo(e){let t=e[3]("import_snippets.new_only_title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("import_snippets.new_only_title")+"")&&X(n,t)},d(i){i&&y(n)}}}function Go(e){let t=e[3]("import_snippets.update_title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("import_snippets.update_title")+"")&&X(n,t)},d(i){i&&y(n)}}}function kn(e){let t,n,i;return n=new be({props:{horizontal:!0,iconClass:"dimmed",icon:vs,size:"1.5x",$$slots:{default:[Do]},$$scope:{ctx:e}}}),n.$on("activate",e[9]),{c(){t=O("p"),G(n.$$.fragment),c(t,"class","export-snippets svelte-17bsaqe")},m(r,s){w(r,t,s),R(n,t,null),i=!0},p(r,s){const o={};s&524296&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){i||(B(n.$$.fragment,r),i=!0)},o(r){H(n.$$.fragment,r),i=!1},d(r){r&&y(t),U(n)}}}function Do(e){let t=e[3]("export_snippets.title")+"",n;return{c(){n=z(t)},m(i,r){w(i,n,r)},p(i,r){r&8&&t!==(t=i[3]("export_snippets.title")+"")&&X(n,t)},d(i){i&&y(n)}}}function Fo(e){let t,n,i,r,s=e[3]("settings.title")+"",o,l,u,a=e[3]("settings.autostart_title")+"",f,d,h,p,m,v,S=e[3]("settings.autostart")+"",k,E,P,T=e[3]("settings.search_and_paste_title")+"",A,b,g,C,_,L,x=e[3]("settings.focus_search")+"",se,oe,Y,ae,Ge,me,ct,Zt;n=new be({props:{horizontal:!0,iconClass:"dimmed",icon:ps,size:"2.5x"}}),n.$on("activate",e[5]);const Qt=[Ro,Oo],de=[];function Jt(M,K){return M[0]?0:1}return Y=Jt(e),ae=de[Y]=Qt[Y](e),{c(){t=O("div"),G(n.$$.fragment),i=D(),r=O("h2"),o=z(s),l=D(),u=O("h3"),f=z(a),d=D(),h=O("p"),p=O("label"),m=O("input"),v=D(),k=z(S),E=D(),P=O("h3"),A=z(T),b=D(),g=O("p"),C=O("label"),_=O("input"),L=D(),se=z(x),oe=D(),ae.c(),Ge=pe(),c(t,"class","toolbar svelte-17bsaqe"),c(r,"class","svelte-17bsaqe"),c(u,"class","svelte-17bsaqe"),c(m,"type","checkbox"),c(h,"class","svelte-17bsaqe"),c(P,"class","svelte-17bsaqe"),c(_,"type","checkbox"),c(g,"class","svelte-17bsaqe")},m(M,K){w(M,t,K),R(n,t,null),w(M,i,K),w(M,r,K),I(r,o),w(M,l,K),w(M,u,K),I(u,f),w(M,d,K),w(M,h,K),I(h,p),I(p,m),m.checked=e[1],I(p,v),I(p,k),w(M,E,K),w(M,P,K),I(P,A),w(M,b,K),w(M,g,K),I(g,C),I(C,_),_.checked=e[2],I(C,L),I(C,se),w(M,oe,K),de[Y].m(M,K),w(M,Ge,K),me=!0,ct||(Zt=[ee(m,"change",e[10]),ee(m,"change",e[11]),Gt(oi.call(null,m,!0)),ee(_,"change",e[12]),ee(_,"change",e[13])],ct=!0)},p(M,K){(!me||K&8)&&s!==(s=M[3]("settings.title")+"")&&X(o,s),(!me||K&8)&&a!==(a=M[3]("settings.autostart_title")+"")&&X(f,a),K&2&&(m.checked=M[1]),(!me||K&8)&&S!==(S=M[3]("settings.autostart")+"")&&X(k,S),(!me||K&8)&&T!==(T=M[3]("settings.search_and_paste_title")+"")&&X(A,T),K&4&&(_.checked=M[2]),(!me||K&8)&&x!==(x=M[3]("settings.focus_search")+"")&&X(se,x);let ht=Y;Y=Jt(M),Y===ht?de[Y].p(M,K):(ne(),H(de[ht],1,1,()=>{de[ht]=null}),ie(),ae=de[Y],ae?ae.p(M,K):(ae=de[Y]=Qt[Y](M),ae.c()),B(ae,1),ae.m(Ge.parentNode,Ge))},i(M){me||(B(n.$$.fragment,M),B(ae),me=!0)},o(M){H(n.$$.fragment,M),H(ae),me=!1},d(M){M&&y(t),U(n),M&&y(i),M&&y(r),M&&y(l),M&&y(u),M&&y(d),M&&y(h),M&&y(E),M&&y(P),M&&y(b),M&&y(g),M&&y(oe),de[Y].d(M),M&&y(Ge),ct=!1,ce(Zt)}}}function jo(e){let t,n;return t=new Ue({props:{centered:!0,$$slots:{default:[Fo]},$$scope:{ctx:e}}}),t.$on("cancel",e[5]),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&524319&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function zo(e,t,n){let i,r,s;te(e,Ee,b=>n(3,i=b)),te(e,fe,b=>n(0,r=b)),te(e,Te,b=>n(4,s=b));function o(){he()}let l=!1,u=!0;async function a(){let b=!1;try{b=await Ei()}catch(g){await re(i("settings.get_error_title"),g);return}return b}async function f(b){try{await Ci(b)}catch(g){await re(i("settings.save_error_title"),g);return}return b}async function d(){let b="";try{b=await Mn("FOCUS_SEARCH_BOX")}catch(g){await re(i("settings.get_error_title"),g);return}return b!=="false"}async function h(b){const g=b?"true":"false";try{await Ii("FOCUS_SEARCH_BOX",g)}catch(C){await re(i("settings.save_error_title"),C);return}return b}function p(b){Te.fetch()}async function m(b){try{const g=await Rn(b)}catch(g){await re(i("import_snippets.error_title"),g)}await Te.fetch()}async function v(){try{const b=await yi()}catch(b){await re(i("export_snippets.error_title"),b)}}Je(async()=>{n(1,l=await a()),n(2,u=await d())});function S(){l=this.checked,n(1,l)}const k=()=>f(l);function E(){u=this.checked,n(2,u)}const P=()=>h(u),T=()=>m(!1),A=()=>m(!0);return e.$$.update=()=>{e.$$.dirty&1&&p()},[r,l,u,i,s,o,f,h,m,v,S,k,E,P,T,A]}class Vo extends J{constructor(t){super(),Q(this,t,zo,jo,q,{})}}function Wo(e){let t;return{c(){t=O("div"),t.innerHTML="<h1>Snippet Pixie</h1>",c(t,"class","centered")},m(n,i){w(n,t,i)},p:N,d(n){n&&y(t)}}}function Xo(e){let t,n;return t=new Ue({props:{$$slots:{default:[Wo]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}class qo extends J{constructor(t){super(),Q(this,t,null,Xo,q,{})}}function Zo(e){let t,n;return t=new fs({props:{routes:e[1]}}),{c(){G(t.$$.fragment)},m(i,r){R(t,i,r),n=!0},p:N,i(i){n||(B(t.$$.fragment,i),n=!0)},o(i){H(t.$$.fragment,i),n=!1},d(i){U(t,i)}}}function Qo(e){let t;return{c(){t=z("Loading...")},m(n,i){w(n,t,i)},p:N,i:N,o:N,d(n){n&&y(t)}}}function Jo(e){let t,n,i,r;const s=[Qo,Zo],o=[];function l(u,a){return u[0]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=pe()},m(u,a){o[t].m(u,a),w(u,i,a),r=!0},p(u,[a]){let f=t;t=l(u),t===f?o[t].p(u,a):(ne(),H(o[f],1,1,()=>{o[f]=null}),ie(),n=o[t],n?n.p(u,a):(n=o[t]=s[t](u),n.c()),B(n,1),n.m(i.parentNode,i))},i(u){r||(B(n),r=!0)},o(u){H(n),r=!1},d(u){o[t].d(u),u&&y(i)}}}function Yo(e,t,n){let i;te(e,it,l=>n(0,i=l));let r;async function s(){try{const l=await Hi("Pong");l==="Pong"?fe.update(u=>!0):(fe.update(u=>!1),en("Got '"+l+"' back from Ping instead of 'Pong'."))}catch(l){fe.update(u=>!1),en("Ping returned: "+l)}}jr("en-GB",()=>fi(()=>import("./en-GB.d7a5e12b.js"),[])),Vr({fallbackLocale:"en-GB",initialLocale:Wr()});const o={"/":yo,"/snippet/add":To,"/snippet/edit/:id":Mo,"/settings":Vo,"/no-connection":qo};return Je(async()=>{await s(),r=setInterval(s,5e3)}),Dt(()=>{clearInterval(r)}),[i,o]}class Ko extends J{constructor(t){super(),Q(this,t,Yo,Jo,q,{})}}new Ko({target:document.getElementById("app")});

M cmd/snippetpixiegui/frontend/dist/index.html => cmd/snippetpixiegui/frontend/dist/index.html +1 -1
@@ 5,7 5,7 @@
	<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
	
	<title>Snippet Pixie</title>
  <script type="module" crossorigin src="/assets/index.40603b7e.js"></script>
  <script type="module" crossorigin src="/assets/index.1261cfbc.js"></script>
  <link rel="stylesheet" href="/assets/index.ba0acffa.css">
</head>
<body>

M cmd/snippetpixiegui/frontend/package-lock.json => cmd/snippetpixiegui/frontend/package-lock.json +7 -7
@@ 9,7 9,7 @@
      "version": "2.0.0-alpha.1",
      "devDependencies": {
        "@sveltejs/vite-plugin-svelte": "^1.4.0",
        "svelte": "^3.55.0",
        "svelte": "^3.57.0",
        "svelte-feather-icons": "^4.0.0",
        "svelte-i18n": "^3.6.0",
        "svelte-spa-router": "^3.3.0",


@@ 162,9 162,9 @@
      }
    },
    "node_modules/deepmerge": {
      "version": "4.3.0",
      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz",
      "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==",
      "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"


@@ 877,9 877,9 @@
      }
    },
    "node_modules/svelte": {
      "version": "3.55.1",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.55.1.tgz",
      "integrity": "sha512-S+87/P0Ve67HxKkEV23iCdAh/SX1xiSfjF1HOglno/YTbSTW7RniICMCofWGdJJbdjw3S+0PfFb1JtGfTXE0oQ==",
      "version": "3.57.0",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.57.0.tgz",
      "integrity": "sha512-WMXEvF+RtAaclw0t3bPDTUe19pplMlfyKDsixbHQYgCWi9+O9VN0kXU1OppzrB9gPAvz4NALuoca2LfW2bOjTQ==",
      "dev": true,
      "engines": {
        "node": ">= 8"

M cmd/snippetpixiegui/frontend/package.json => cmd/snippetpixiegui/frontend/package.json +1 -1
@@ 10,7 10,7 @@
  },
  "devDependencies": {
    "@sveltejs/vite-plugin-svelte": "^1.4.0",
    "svelte": "^3.55.0",
    "svelte": "^3.57.0",
    "svelte-feather-icons": "^4.0.0",
    "svelte-i18n": "^3.6.0",
    "svelte-spa-router": "^3.3.0",

M cmd/snippetpixiegui/frontend/package.json.md5 => cmd/snippetpixiegui/frontend/package.json.md5 +1 -1
@@ 1,1 1,1 @@
cd02b683c07688654778d84c5690b51b
\ No newline at end of file
1e40218472044091ddc582245482a138
\ No newline at end of file

M cmd/snippetpixiegui/go.mod => cmd/snippetpixiegui/go.mod +3 -4
@@ 19,14 19,13 @@ require (
	github.com/gofrs/uuid v4.4.0+incompatible
	github.com/matryer/is v1.4.1
	github.com/spf13/pflag v1.0.5
	github.com/wailsapp/wails/v2 v2.3.1
	github.com/wailsapp/wails/v2 v2.4.0
)

require (
	github.com/bep/debounce v1.2.1 // indirect
	github.com/go-ole/go-ole v1.2.6 // indirect
	github.com/google/uuid v1.3.0 // indirect
	github.com/imdario/mergo v0.3.13 // indirect
	github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
	github.com/labstack/echo/v4 v4.10.2 // indirect
	github.com/labstack/gommon v0.4.0 // indirect


@@ 38,13 37,13 @@ require (
	github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/rivo/uniseg v0.4.4 // indirect
	github.com/samber/lo v1.37.0 // indirect
	github.com/samber/lo v1.38.1 // indirect
	github.com/tkrajina/go-reflector v0.5.6 // indirect
	github.com/valyala/bytebufferpool v1.0.0 // indirect
	github.com/valyala/fasttemplate v1.2.2 // indirect
	github.com/wailsapp/mimetype v1.4.1 // indirect
	golang.org/x/crypto v0.7.0 // indirect
	golang.org/x/exp v0.0.0-20230304125523-9ff063c70017 // indirect
	golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
	golang.org/x/net v0.8.0 // indirect
	golang.org/x/sys v0.6.0 // indirect
	golang.org/x/text v0.8.0 // indirect

M cmd/snippetpixiegui/go.sum => cmd/snippetpixiegui/go.sum +6 -9
@@ 11,8 11,6 @@ github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1
github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4PFpxhErSzU3/PY5sFL5Z6rfv4AbGAck=
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs=
github.com/labstack/echo/v4 v4.10.2 h1:n1jAhnq/elIFTHr1EYpiYtyKgx4RW9ccVgkqByZaN2M=


@@ 47,8 45,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/samber/lo v1.37.0 h1:XjVcB8g6tgUp8rsPsJ2CvhClfImrpL04YpQHXeHPhRw=
github.com/samber/lo v1.37.0/go.mod h1:9vaz2O4o8oOnK23pd2TrXufcbdbJIa3b6cstBWKpopA=
github.com/samber/lo v1.38.1 h1:j2XEAqXKb09Am4ebOg31SpvzUTTs6EN3VfgeLUhPdXM=
github.com/samber/lo v1.38.1/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=


@@ 63,12 61,12 @@ github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQ
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
github.com/wailsapp/wails/v2 v2.3.1 h1:ZJz+pyIBKyASkgO8JO31NuHO1gTTHmvwiHYHwei1CqM=
github.com/wailsapp/wails/v2 v2.3.1/go.mod h1:zlNLI0E2c2qA6miiuAHtp0Bac8FaGH0tlhA19OssR/8=
github.com/wailsapp/wails/v2 v2.4.0 h1:w0uXfFUlldzDGTQJ6fprvJUWEikDP3rgst47Hfe6v8A=
github.com/wailsapp/wails/v2 v2.4.0/go.mod h1:jbOZbcr/zm79PxXxAjP8UoVlDd9wLW3uDs+isIthDfs=
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
golang.org/x/exp v0.0.0-20230304125523-9ff063c70017 h1:3Ea9SZLCB0aRIhSEjM+iaGIlzzeDJdpi579El/YIhEE=
golang.org/x/exp v0.0.0-20230304125523-9ff063c70017/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug=
golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=


@@ 91,5 89,4 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

M internal/manager/go.mod => internal/manager/go.mod +1 -1
@@ 17,7 17,7 @@ require (
require (
	github.com/gohugoio/locales v0.14.0 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017 // indirect
	golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29 // indirect
	golang.org/x/image v0.6.0 // indirect
	golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c // indirect
	golang.org/x/sys v0.6.0 // indirect

M internal/manager/go.sum => internal/manager/go.sum +2 -0
@@ 41,6 41,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017 h1:kSD1TrwPuMkmSEM+uy92j5PWY1dQqwlqdBlBc+tW/Co=
golang.org/x/exp/shiny v0.0.0-20230304125523-9ff063c70017/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0=
golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29 h1:uM92tP2dJQAC0zcyUIRXkokrkXj8fgt6GjCysDDaFh8=
golang.org/x/exp/shiny v0.0.0-20230321023759-10a507213a29/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0=
golang.org/x/image v0.6.0 h1:bR8b5okrPI3g/gyZakLZHeWxAR8Dn5CyxXv1hLH5g/4=
golang.org/x/image v0.6.0/go.mod h1:MXLdDR43H7cDJq5GEGXEVeeNhPgi+YYEQ2pC1byI1x0=
golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c h1:Gk61ECugwEHL6IiyyNLXNzmu8XslmRP2dS0xjIYhbb4=

M site/Makefile => site/Makefile +1 -0
@@ 21,6 21,7 @@ clean-all: clean
tidy:

update-deps:
	npm update --save

run: node_modules
	npm run dev

M site/package-lock.json => site/package-lock.json +131 -131
@@ 8,14 8,14 @@
      "name": "site",
      "version": "0.0.2",
      "devDependencies": {
        "@sveltejs/adapter-static": "^1.0.0",
        "@sveltejs/kit": "^1.0.2"
        "@sveltejs/adapter-static": "^1.0.6",
        "@sveltejs/kit": "^1.13.0"
      }
    },
    "node_modules/@esbuild/android-arm": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.17.tgz",
      "integrity": "sha512-N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYtw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.12.tgz",
      "integrity": "sha512-E/sgkvwoIfj4aMAPL2e35VnUJspzVYl7+M1B2cqeubdBhADV4uPon0KCc8p2G+LqSJ6i8ocYPCqY3A4GGq0zkQ==",
      "cpu": [
        "arm"
      ],


@@ 30,9 30,9 @@
      }
    },
    "node_modules/@esbuild/android-arm64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.17.tgz",
      "integrity": "sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.12.tgz",
      "integrity": "sha512-WQ9p5oiXXYJ33F2EkE3r0FRDFVpEdcDiwNX3u7Xaibxfx6vQE0Sb8ytrfQsA5WO6kDn6mDfKLh6KrPBjvkk7xA==",
      "cpu": [
        "arm64"
      ],


@@ 47,9 47,9 @@
      }
    },
    "node_modules/@esbuild/android-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.17.tgz",
      "integrity": "sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.12.tgz",
      "integrity": "sha512-m4OsaCr5gT+se25rFPHKQXARMyAehHTQAz4XX1Vk3d27VtqiX0ALMBPoXZsGaB6JYryCLfgGwUslMqTfqeLU0w==",
      "cpu": [
        "x64"
      ],


@@ 64,9 64,9 @@
      }
    },
    "node_modules/@esbuild/darwin-arm64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.17.tgz",
      "integrity": "sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.12.tgz",
      "integrity": "sha512-O3GCZghRIx+RAN0NDPhyyhRgwa19MoKlzGonIb5hgTj78krqp9XZbYCvFr9N1eUxg0ZQEpiiZ4QvsOQwBpP+lg==",
      "cpu": [
        "arm64"
      ],


@@ 81,9 81,9 @@
      }
    },
    "node_modules/@esbuild/darwin-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.17.tgz",
      "integrity": "sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.12.tgz",
      "integrity": "sha512-5D48jM3tW27h1qjaD9UNRuN+4v0zvksqZSPZqeSWggfMlsVdAhH3pwSfQIFJwcs9QJ9BRibPS4ViZgs3d2wsCA==",
      "cpu": [
        "x64"
      ],


@@ 98,9 98,9 @@
      }
    },
    "node_modules/@esbuild/freebsd-arm64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.17.tgz",
      "integrity": "sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.12.tgz",
      "integrity": "sha512-OWvHzmLNTdF1erSvrfoEBGlN94IE6vCEaGEkEH29uo/VoONqPnoDFfShi41Ew+yKimx4vrmmAJEGNoyyP+OgOQ==",
      "cpu": [
        "arm64"
      ],


@@ 115,9 115,9 @@
      }
    },
    "node_modules/@esbuild/freebsd-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.17.tgz",
      "integrity": "sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.12.tgz",
      "integrity": "sha512-A0Xg5CZv8MU9xh4a+7NUpi5VHBKh1RaGJKqjxe4KG87X+mTjDE6ZvlJqpWoeJxgfXHT7IMP9tDFu7IZ03OtJAw==",
      "cpu": [
        "x64"
      ],


@@ 132,9 132,9 @@
      }
    },
    "node_modules/@esbuild/linux-arm": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.17.tgz",
      "integrity": "sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.12.tgz",
      "integrity": "sha512-WsHyJ7b7vzHdJ1fv67Yf++2dz3D726oO3QCu8iNYik4fb5YuuReOI9OtA+n7Mk0xyQivNTPbl181s+5oZ38gyA==",
      "cpu": [
        "arm"
      ],


@@ 149,9 149,9 @@
      }
    },
    "node_modules/@esbuild/linux-arm64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.17.tgz",
      "integrity": "sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.12.tgz",
      "integrity": "sha512-cK3AjkEc+8v8YG02hYLQIQlOznW+v9N+OI9BAFuyqkfQFR+DnDLhEM5N8QRxAUz99cJTo1rLNXqRrvY15gbQUg==",
      "cpu": [
        "arm64"
      ],


@@ 166,9 166,9 @@
      }
    },
    "node_modules/@esbuild/linux-ia32": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.17.tgz",
      "integrity": "sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.12.tgz",
      "integrity": "sha512-jdOBXJqcgHlah/nYHnj3Hrnl9l63RjtQ4vn9+bohjQPI2QafASB5MtHAoEv0JQHVb/xYQTFOeuHnNYE1zF7tYw==",
      "cpu": [
        "ia32"
      ],


@@ 183,9 183,9 @@
      }
    },
    "node_modules/@esbuild/linux-loong64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.17.tgz",
      "integrity": "sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.12.tgz",
      "integrity": "sha512-GTOEtj8h9qPKXCyiBBnHconSCV9LwFyx/gv3Phw0pa25qPYjVuuGZ4Dk14bGCfGX3qKF0+ceeQvwmtI+aYBbVA==",
      "cpu": [
        "loong64"
      ],


@@ 200,9 200,9 @@
      }
    },
    "node_modules/@esbuild/linux-mips64el": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.17.tgz",
      "integrity": "sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.12.tgz",
      "integrity": "sha512-o8CIhfBwKcxmEENOH9RwmUejs5jFiNoDw7YgS0EJTF6kgPgcqLFjgoc5kDey5cMHRVCIWc6kK2ShUePOcc7RbA==",
      "cpu": [
        "mips64el"
      ],


@@ 217,9 217,9 @@
      }
    },
    "node_modules/@esbuild/linux-ppc64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.17.tgz",
      "integrity": "sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.12.tgz",
      "integrity": "sha512-biMLH6NR/GR4z+ap0oJYb877LdBpGac8KfZoEnDiBKd7MD/xt8eaw1SFfYRUeMVx519kVkAOL2GExdFmYnZx3A==",
      "cpu": [
        "ppc64"
      ],


@@ 234,9 234,9 @@
      }
    },
    "node_modules/@esbuild/linux-riscv64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.17.tgz",
      "integrity": "sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.12.tgz",
      "integrity": "sha512-jkphYUiO38wZGeWlfIBMB72auOllNA2sLfiZPGDtOBb1ELN8lmqBrlMiucgL8awBw1zBXN69PmZM6g4yTX84TA==",
      "cpu": [
        "riscv64"
      ],


@@ 251,9 251,9 @@
      }
    },
    "node_modules/@esbuild/linux-s390x": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.17.tgz",
      "integrity": "sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.12.tgz",
      "integrity": "sha512-j3ucLdeY9HBcvODhCY4b+Ds3hWGO8t+SAidtmWu/ukfLLG/oYDMaA+dnugTVAg5fnUOGNbIYL9TOjhWgQB8W5g==",
      "cpu": [
        "s390x"
      ],


@@ 268,9 268,9 @@
      }
    },
    "node_modules/@esbuild/linux-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.17.tgz",
      "integrity": "sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.12.tgz",
      "integrity": "sha512-uo5JL3cgaEGotaqSaJdRfFNSCUJOIliKLnDGWaVCgIKkHxwhYMm95pfMbWZ9l7GeW9kDg0tSxcy9NYdEtjwwmA==",
      "cpu": [
        "x64"
      ],


@@ 285,9 285,9 @@
      }
    },
    "node_modules/@esbuild/netbsd-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.17.tgz",
      "integrity": "sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.12.tgz",
      "integrity": "sha512-DNdoRg8JX+gGsbqt2gPgkgb00mqOgOO27KnrWZtdABl6yWTST30aibGJ6geBq3WM2TIeW6COs5AScnC7GwtGPg==",
      "cpu": [
        "x64"
      ],


@@ 302,9 302,9 @@
      }
    },
    "node_modules/@esbuild/openbsd-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.17.tgz",
      "integrity": "sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.12.tgz",
      "integrity": "sha512-aVsENlr7B64w8I1lhHShND5o8cW6sB9n9MUtLumFlPhG3elhNWtE7M1TFpj3m7lT3sKQUMkGFjTQBrvDDO1YWA==",
      "cpu": [
        "x64"
      ],


@@ 319,9 319,9 @@
      }
    },
    "node_modules/@esbuild/sunos-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.17.tgz",
      "integrity": "sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.12.tgz",
      "integrity": "sha512-qbHGVQdKSwi0JQJuZznS4SyY27tYXYF0mrgthbxXrZI3AHKuRvU+Eqbg/F0rmLDpW/jkIZBlCO1XfHUBMNJ1pg==",
      "cpu": [
        "x64"
      ],


@@ 336,9 336,9 @@
      }
    },
    "node_modules/@esbuild/win32-arm64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.17.tgz",
      "integrity": "sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.12.tgz",
      "integrity": "sha512-zsCp8Ql+96xXTVTmm6ffvoTSZSV2B/LzzkUXAY33F/76EajNw1m+jZ9zPfNJlJ3Rh4EzOszNDHsmG/fZOhtqDg==",
      "cpu": [
        "arm64"
      ],


@@ 353,9 353,9 @@
      }
    },
    "node_modules/@esbuild/win32-ia32": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.17.tgz",
      "integrity": "sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.12.tgz",
      "integrity": "sha512-FfrFjR4id7wcFYOdqbDfDET3tjxCozUgbqdkOABsSFzoZGFC92UK7mg4JKRc/B3NNEf1s2WHxJ7VfTdVDPN3ng==",
      "cpu": [
        "ia32"
      ],


@@ 370,9 370,9 @@
      }
    },
    "node_modules/@esbuild/win32-x64": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.17.tgz",
      "integrity": "sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.12.tgz",
      "integrity": "sha512-JOOxw49BVZx2/5tW3FqkdjSD/5gXYeVGPDcB0lvap0gLQshkh1Nyel1QazC+wNxus3xPlsYAgqU1BUmrmCvWtw==",
      "cpu": [
        "x64"
      ],


@@ 408,25 408,25 @@
      }
    },
    "node_modules/@sveltejs/kit": {
      "version": "1.7.2",
      "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.7.2.tgz",
      "integrity": "sha512-qU/kbupIhsA1JA0GIN4cGa6XrhzPc99Z4agsEDeGPMy7qQqYCuFcIL2MLEH+tfqPUCu4m3FQ6ULVSUIVCnHj+A==",
      "version": "1.13.0",
      "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.13.0.tgz",
      "integrity": "sha512-t44xqlSTn/k+BridiJFTD8dCRPNd9msCSSPLZT+/3P9deNp/al6ed396MSpsskK7r2kevYmmxywK16qtn6Rvjw==",
      "dev": true,
      "hasInstallScript": true,
      "dependencies": {
        "@sveltejs/vite-plugin-svelte": "^2.0.0",
        "@types/cookie": "^0.5.1",
        "cookie": "^0.5.0",
        "devalue": "^4.2.3",
        "devalue": "^4.3.0",
        "esm-env": "^1.0.0",
        "kleur": "^4.1.5",
        "magic-string": "^0.29.0",
        "magic-string": "^0.30.0",
        "mime": "^3.0.0",
        "sade": "^1.8.1",
        "set-cookie-parser": "^2.5.1",
        "sirv": "^2.0.2",
        "tiny-glob": "^0.2.9",
        "undici": "5.19.1"
        "undici": "5.21.0"
      },
      "bin": {
        "svelte-kit": "svelte-kit.js"


@@ 440,17 440,17 @@
      }
    },
    "node_modules/@sveltejs/vite-plugin-svelte": {
      "version": "2.0.2",
      "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.0.2.tgz",
      "integrity": "sha512-xCEan0/NNpQuL0l5aS42FjwQ6wwskdxC3pW1OeFtEKNZwRg7Evro9lac9HesGP6TdFsTv2xMes5ASQVKbCacxg==",
      "version": "2.0.3",
      "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.0.3.tgz",
      "integrity": "sha512-o+cguBFdwIGtRbNkYOyqTM7KvRUffxh5bfK4oJsWKG2obu+v/cbpT03tJrGl58C7tRXo/aEC0/axN5FVHBj0nA==",
      "dev": true,
      "dependencies": {
        "debug": "^4.3.4",
        "deepmerge": "^4.2.2",
        "deepmerge": "^4.3.0",
        "kleur": "^4.1.5",
        "magic-string": "^0.27.0",
        "magic-string": "^0.29.0",
        "svelte-hmr": "^0.15.1",
        "vitefu": "^0.2.3"
        "vitefu": "^0.2.4"
      },
      "engines": {
        "node": "^14.18.0 || >= 16"


@@ 461,9 461,9 @@
      }
    },
    "node_modules/@sveltejs/vite-plugin-svelte/node_modules/magic-string": {
      "version": "0.27.0",
      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz",
      "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==",
      "version": "0.29.0",
      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz",
      "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==",
      "dev": true,
      "dependencies": {
        "@jridgewell/sourcemap-codec": "^1.4.13"


@@ 517,9 517,9 @@
      }
    },
    "node_modules/deepmerge": {
      "version": "4.3.0",
      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz",
      "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==",
      "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"


@@ 532,9 532,9 @@
      "dev": true
    },
    "node_modules/esbuild": {
      "version": "0.16.17",
      "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.17.tgz",
      "integrity": "sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==",
      "version": "0.17.12",
      "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.12.tgz",
      "integrity": "sha512-bX/zHl7Gn2CpQwcMtRogTTBf9l1nl+H6R8nUbjk+RuKqAE3+8FDulLA+pHvX7aA7Xe07Iwa+CWvy9I8Y2qqPKQ==",
      "dev": true,
      "hasInstallScript": true,
      "peer": true,


@@ 545,28 545,28 @@
        "node": ">=12"
      },
      "optionalDependencies": {
        "@esbuild/android-arm": "0.16.17",
        "@esbuild/android-arm64": "0.16.17",
        "@esbuild/android-x64": "0.16.17",
        "@esbuild/darwin-arm64": "0.16.17",
        "@esbuild/darwin-x64": "0.16.17",
        "@esbuild/freebsd-arm64": "0.16.17",
        "@esbuild/freebsd-x64": "0.16.17",
        "@esbuild/linux-arm": "0.16.17",
        "@esbuild/linux-arm64": "0.16.17",
        "@esbuild/linux-ia32": "0.16.17",
        "@esbuild/linux-loong64": "0.16.17",
        "@esbuild/linux-mips64el": "0.16.17",
        "@esbuild/linux-ppc64": "0.16.17",
        "@esbuild/linux-riscv64": "0.16.17",
        "@esbuild/linux-s390x": "0.16.17",
        "@esbuild/linux-x64": "0.16.17",
        "@esbuild/netbsd-x64": "0.16.17",
        "@esbuild/openbsd-x64": "0.16.17",
        "@esbuild/sunos-x64": "0.16.17",
        "@esbuild/win32-arm64": "0.16.17",
        "@esbuild/win32-ia32": "0.16.17",
        "@esbuild/win32-x64": "0.16.17"
        "@esbuild/android-arm": "0.17.12",
        "@esbuild/android-arm64": "0.17.12",
        "@esbuild/android-x64": "0.17.12",
        "@esbuild/darwin-arm64": "0.17.12",
        "@esbuild/darwin-x64": "0.17.12",
        "@esbuild/freebsd-arm64": "0.17.12",
        "@esbuild/freebsd-x64": "0.17.12",
        "@esbuild/linux-arm": "0.17.12",
        "@esbuild/linux-arm64": "0.17.12",
        "@esbuild/linux-ia32": "0.17.12",
        "@esbuild/linux-loong64": "0.17.12",
        "@esbuild/linux-mips64el": "0.17.12",
        "@esbuild/linux-ppc64": "0.17.12",
        "@esbuild/linux-riscv64": "0.17.12",
        "@esbuild/linux-s390x": "0.17.12",
        "@esbuild/linux-x64": "0.17.12",
        "@esbuild/netbsd-x64": "0.17.12",
        "@esbuild/openbsd-x64": "0.17.12",
        "@esbuild/sunos-x64": "0.17.12",
        "@esbuild/win32-arm64": "0.17.12",
        "@esbuild/win32-ia32": "0.17.12",
        "@esbuild/win32-x64": "0.17.12"
      }
    },
    "node_modules/esm-env": {


@@ 645,9 645,9 @@
      }
    },
    "node_modules/magic-string": {
      "version": "0.29.0",
      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz",
      "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==",
      "version": "0.30.0",
      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz",
      "integrity": "sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==",
      "dev": true,
      "dependencies": {
        "@jridgewell/sourcemap-codec": "^1.4.13"


@@ 763,9 763,9 @@
      }
    },
    "node_modules/rollup": {
      "version": "3.17.2",
      "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz",
      "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==",
      "version": "3.20.0",
      "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.20.0.tgz",
      "integrity": "sha512-YsIfrk80NqUDrxrjWPXUa7PWvAfegZEXHuPsEZg58fGCdjL1I9C1i/NaG+L+27kxxwkrG/QEDEQc8s/ynXWWGQ==",
      "dev": true,
      "peer": true,
      "bin": {


@@ 792,9 792,9 @@
      }
    },
    "node_modules/set-cookie-parser": {
      "version": "2.5.1",
      "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.5.1.tgz",
      "integrity": "sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==",
      "version": "2.6.0",
      "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.6.0.tgz",
      "integrity": "sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==",
      "dev": true
    },
    "node_modules/sirv": {


@@ 844,9 844,9 @@
      }
    },
    "node_modules/svelte": {
      "version": "3.55.1",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.55.1.tgz",
      "integrity": "sha512-S+87/P0Ve67HxKkEV23iCdAh/SX1xiSfjF1HOglno/YTbSTW7RniICMCofWGdJJbdjw3S+0PfFb1JtGfTXE0oQ==",
      "version": "3.57.0",
      "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.57.0.tgz",
      "integrity": "sha512-WMXEvF+RtAaclw0t3bPDTUe19pplMlfyKDsixbHQYgCWi9+O9VN0kXU1OppzrB9gPAvz4NALuoca2LfW2bOjTQ==",
      "dev": true,
      "peer": true,
      "engines": {


@@ 885,9 885,9 @@
      }
    },
    "node_modules/undici": {
      "version": "5.19.1",
      "resolved": "https://registry.npmjs.org/undici/-/undici-5.19.1.tgz",
      "integrity": "sha512-YiZ61LPIgY73E7syxCDxxa3LV2yl3sN8spnIuTct60boiiRaE1J8mNWHO8Im2Zi/sFrPusjLlmRPrsyraSqX6A==",
      "version": "5.21.0",
      "resolved": "https://registry.npmjs.org/undici/-/undici-5.21.0.tgz",
      "integrity": "sha512-HOjK8l6a57b2ZGXOcUsI5NLfoTrfmbOl90ixJDl0AEFG4wgHNDQxtZy15/ZQp7HhjkpaGlp/eneMgtsu1dIlUA==",
      "dev": true,
      "dependencies": {
        "busboy": "^1.6.0"


@@ 897,16 897,16 @@
      }
    },
    "node_modules/vite": {
      "version": "4.1.3",
      "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.3.tgz",
      "integrity": "sha512-0Zqo4/Fr/swSOBmbl+HAAhOjrqNwju+yTtoe4hQX9UsARdcuc9njyOdr6xU0DDnV7YP0RT6mgTTOiRtZgxfCxA==",
      "version": "4.2.1",
      "resolved": "https://registry.npmjs.org/vite/-/vite-4.2.1.tgz",
      "integrity": "sha512-7MKhqdy0ISo4wnvwtqZkjke6XN4taqQ2TBaTccLIpOKv7Vp2h4Y+NpmWCnGDeSvvn45KxvWgGyb0MkHvY1vgbg==",
      "dev": true,
      "peer": true,
      "dependencies": {
        "esbuild": "^0.16.14",
        "esbuild": "^0.17.5",
        "postcss": "^8.4.21",
        "resolve": "^1.22.1",
        "rollup": "^3.10.0"
        "rollup": "^3.18.0"
      },
      "bin": {
        "vite": "bin/vite.js"

M site/package.json => site/package.json +2 -2
@@ 8,8 8,8 @@
    "preview": "vite preview"
  },
  "devDependencies": {
    "@sveltejs/adapter-static": "^1.0.0",
    "@sveltejs/kit": "^1.0.2"
    "@sveltejs/adapter-static": "^1.0.6",
    "@sveltejs/kit": "^1.13.0"
  },
  "type": "module"
}