Files
DeviceManager/_app/immutable/nodes/8.acoSpNx3.js
2024-07-09 14:44:55 +00:00

24 lines
28 KiB
JavaScript

import{s as aa,e as l,a as b,t as m,c as s,l as N,g,b as v,d as _,f as i,m as t,i as B,h as e,L as ne,q as ya,j as Ea,n as sl,r as na,k as ra,W as Ia,y as Qt,C as Aa,a7 as ka,U as L,p as wa,a8 as Sa}from"../chunks/scheduler.CXEVs2ap.js";import{S as oa,i as ia,a as U,t as R,c as Ba,e as H,f as z,m as K,h as j,g as Ua}from"../chunks/index.CTdcniaS.js";import{s as Oa,b as Da,C as Ra,t as Ma,A as Y}from"../chunks/Action.tNSJ0eLt.js";import{p as Ga}from"../chunks/popup.Ba_9DalD.js";import{s as al}from"../chunks/connection.wgaIHNYB.js";import{e as nl}from"../chunks/each.CypvCfon.js";const T=function(p,{id:a,inverse:u,scale:o}){p.setAttribute("disabled","");const d=p.getAttribute("type"),c=d==="number"||d==="range"||p instanceof HTMLSelectElement,n=p.hasAttribute("min")?Number(p.getAttribute("min")):void 0,r=p.hasAttribute("max")?Number(p.getAttribute("max")):void 0,h=Oa.subscribe(async E=>{if(a in E){const{value:y,isApplied:I}=E[a];c?p.value=(u!==void 0?u/y:o!==void 0?o*y:y).toString():p.checked=y!==0,I?p.classList.remove("pending-changes"):p.classList.add("pending-changes"),p.removeAttribute("disabled")}else p.setAttribute("disabled","")});async function f(){let E;if(c){if(E=Number(p.value),Number.isNaN(E))return;E=Math.floor(u!==void 0?u/E:o!==void 0?E/o:E),n!==void 0&&(E=Math.max(n,E)),r!==void 0&&(E=Math.min(r,E))}else E=p.checked?1:0;Da.update(y=>(y.push({type:Ra.Setting,id:a,setting:E}),y))}return p.addEventListener("change",f),{destroy(){p.removeEventListener("change",f),h()}}};function qa(p){let a,u="Type the following to confirm the action",o,d,c,n,r,h,f,E,y,I,ie,P;return{c(){a=l("h3"),a.textContent=u,o=b(),d=l("p"),c=m(p[2]),n=b(),r=l("input"),h=b(),f=l("button"),E=m("Confirm "),y=m(p[0]),this.h()},l(x){a=s(x,"H3",{"data-svelte-h":!0}),N(a)!=="svelte-1w6zcsk"&&(a.textContent=u),o=g(x),d=s(x,"P",{});var C=v(d);c=_(C,p[2]),C.forEach(i),n=g(x),r=s(x,"INPUT",{type:!0,placeholder:!0,class:!0}),h=g(x),f=s(x,"BUTTON",{class:!0});var ce=v(f);E=_(ce,"Confirm "),y=_(ce,p[0]),ce.forEach(i),this.h()},h(){r.autofocus=!0,t(r,"type","text"),t(r,"placeholder",p[2]),t(r,"class","svelte-1lqm9fg"),f.disabled=I=!p[3],t(f,"class","svelte-1lqm9fg")},m(x,C){B(x,a,C),B(x,o,C),B(x,d,C),e(d,c),B(x,n,C),B(x,r,C),ne(r,p[1]),B(x,h,C),B(x,f,C),e(f,E),e(f,y),r.focus(),ie||(P=[ya(r,"input",p[6]),ya(f,"click",p[7])],ie=!0)},p(x,[C]){C&4&&Ea(c,x[2]),C&4&&t(r,"placeholder",x[2]),C&2&&r.value!==x[1]&&ne(r,x[1]),C&1&&Ea(y,x[0]),C&8&&I!==(I=!x[3])&&(f.disabled=I)},i:sl,o:sl,d(x){x&&(i(a),i(o),i(d),i(n),i(r),i(h),i(f)),ie=!1,na(P)}}}function Fa(p,a,u){let o,d,c;ra(p,al,y=>u(5,c=y));let{challenge:n}=a,r="";const h=Ia();function f(){r=this.value,u(1,r)}const E=()=>h("confirm");return p.$$set=y=>{"challenge"in y&&u(0,n=y.challenge)},p.$$.update=()=>{p.$$.dirty&33&&u(2,o=`${n} ${c.device}`),p.$$.dirty&6&&u(3,d=r===o)},[n,r,o,d,h,c,f,E]}class Ha extends oa{constructor(a){super(),ia(this,a,Fa,qa,aa,{challenge:0})}}const za=(p,{onConfirm:a,challenge:u})=>{let o,d;const c=Ma(p,{interactive:!0,trigger:"click",onShow(n){d=n.popper.querySelector(".tippy-content"),d.classList.add("active"),o===void 0&&(o=new Ha({target:d,props:{challenge:u}}),o.$on("confirm",()=>{c.hide(),a()}))},onHidden(){o?.$destroy(),d?.classList.remove("active"),o=void 0}});return{destroy(){c.destroy()}}};function $a(p,a,u){const o=p.slice();return o[3]=a[u],o[5]=u,o}function Ca(p,a,u){const o=p.slice();return o[6]=a[u][0],o[7]=a[u][1],o}function Ka(p){let a;return{c(){a=l("hr"),this.h()},l(u){a=s(u,"HR",{class:!0}),this.h()},h(){t(a,"class","svelte-y37ne")},m(u,o){B(u,a,o)},d(u){u&&i(a)}}}function xa(p){let a,u=p[7]+"",o,d,c,n,r;function h(){return p[2](p[6])}return{c(){a=l("button"),o=m(u),d=m("..."),this.h()},l(f){a=s(f,"BUTTON",{class:!0});var E=v(a);o=_(E,u),d=_(E,"..."),E.forEach(i),this.h()},h(){t(a,"class","error")},m(f,E){B(f,a,E),e(a,o),e(a,d),n||(r=L(c=za.call(null,a,{onConfirm:h,challenge:p[7]})),n=!0)},p(f,E){p=f,c&&wa(c.update)&&E&1&&c.update.call(null,{onConfirm:h,challenge:p[7]})},d(f){f&&i(a),n=!1,r()}}}function La(p){let a,u,o=p[5]>0&&Ka(),d=nl(p[3]),c=[];for(let n=0;n<d.length;n+=1)c[n]=xa(Ca(p,d,n));return{c(){o&&o.c(),a=b();for(let n=0;n<c.length;n+=1)c[n].c();u=Qt()},l(n){o&&o.l(n),a=g(n);for(let r=0;r<c.length;r+=1)c[r].l(n);u=Qt()},m(n,r){o&&o.m(n,r),B(n,a,r);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(n,r);B(n,u,r)},p(n,r){if(r&3){d=nl(n[3]);let h;for(h=0;h<d.length;h+=1){const f=Ca(n,d,h);c[h]?c[h].p(f,r):(c[h]=xa(f),c[h].c(),c[h].m(u.parentNode,u))}for(;h<c.length;h+=1)c[h].d(1);c.length=d.length}},d(n){n&&(i(a),i(u)),o&&o.d(n),Aa(c,n)}}}function ja(p){let a,u="Reset Device",o,d,c=nl(p[1]),n=[];for(let r=0;r<c.length;r+=1)n[r]=La($a(p,c,r));return{c(){a=l("h3"),a.textContent=u,o=b();for(let r=0;r<n.length;r+=1)n[r].c();d=Qt()},l(r){a=s(r,"H3",{"data-svelte-h":!0}),N(a)!=="svelte-xc6mtn"&&(a.textContent=u),o=g(r);for(let h=0;h<n.length;h+=1)n[h].l(r);d=Qt()},m(r,h){B(r,a,h),B(r,o,h);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(r,h);B(r,d,h)},p(r,[h]){if(h&3){c=nl(r[1]);let f;for(f=0;f<c.length;f+=1){const E=$a(r,c,f);n[f]?n[f].p(E,h):(n[f]=La(E),n[f].c(),n[f].m(d.parentNode,d))}for(;f<n.length;f+=1)n[f].d(1);n.length=c.length}},i:sl,o:sl,d(r){r&&(i(a),i(o),i(d)),Aa(n,r)}}}function Ya(p,a,u){let o;return ra(p,al,n=>u(0,o=n)),[o,[[["FACTORY","Factory Reset"]],[["PARAMS","Reset Settings"],["KEYMAPS","Reset Layout"],["CLEARCML","Clear Chords"]],[["STARTER","Add starter chords"],["FUNC","Add functional chords"]]],function(n){o?.reset(n),ka(al,o=void 0,o)}]}class Va extends oa{constructor(a){super(),ia(this,a,Ya,ja,aa,{})}}function Ta(p){let a,u,o,d,c,n,r,h,f=`"Chording only" mode which tells your device to output chords on a press
rather than a press & release. It also enables you to jump from one
chord to another without releasing everything and can be activated in
GTM or by chording both mirror keys. It can provide significant speed
gains with chording, but also takes away the flexibility of character
entry.`,E,y,I=`Spurring also helps new users learn how to chord by eliminating the need
to focus on timing.`,ie,P,x,C,ce,O,gt,ee,ue,te,pe,k,yt,le,D,M,ve,G,Et,se,de,$t=`A quick, single key press and release used to indicate a suffix, prefix,
or modifier to be associated with a chord.`,Ct,ae,oe="The following keys have special behavior when arpeggiates are enabled:",xt,V,W,A,rl,Ae,ol,Ie,il,cl,fe,ke,ul,we,pl,Se,vl,dl,xe,Be,fl,Ue,hl,ml,Oe,_l,De,Re,bl,gl,he,Me,ca="Chord Modifiers",yl,Ge,ua=`Chord modifiers change a chord when held with the chord or when pressed
after (arpeggiated), <b>provided that arpeggiates are enabled.</b>`,El,J,Lt,qe,$l,Cl,Tt,Fe,xl,Ll,Pt,He,Tl,Pl,Nt,ze,Nl,Al,At,Ke,Il,kl,w,je,pa="Character Entry",wl,Zt,Ye,Sl,It,Bl,Ve,Ul,We,kt,Ol,Dl,Je,Rl,Qe,wt,Ml,Gl,Xe,ql,Ze,St,Fl,Hl,et,zl,tt,Bt,Kl,jl,Q,Ut,lt,Ot,Yl,Vl,Le,Wl,Dt,Rt,Jl,st,Ql,Mt,Xl,Te,Gt,va=`Active Mouse
<p class="svelte-vao3s9">Bounces mouse by 1px every 60s if enabled</p>`,Zl,qt,es,at,ts,nt,Ft,ls,ss,X,Ht,rt,zt,as,ns,ot,rs,it,Ee,os,is,ct,cs,ut,$e,us,ps,pt,vs,vt,Ce,ds,fs,dt,hs,Kt,ms,re,ft,da="Device",_s,ht,bs,jt,gs,mt,ys,Yt,Es,Pe,fa="Reset...",$s,el,Cs,ha;C=new Y({props:{display:"keys",action:540}}),O=new Y({props:{display:"keys",action:542}}),A=new Y({props:{display:"keys",action:44}}),Ae=new Y({props:{display:"keys",action:59}}),Ie=new Y({props:{display:"keys",action:58}}),ke=new Y({props:{display:"keys",action:46}}),we=new Y({props:{display:"keys",action:63}}),Se=new Y({props:{display:"keys",action:33}}),Be=new Y({props:{display:"keys",action:45}}),Ue=new Y({props:{display:"keys",action:47}}),qe=new Y({props:{display:"keys",action:513}}),Fe=new Y({props:{display:"keys",action:540}}),He=new Y({props:{display:"keys",action:542}}),ze=new Y({props:{display:"keys",action:550}}),Ke=new Y({props:{display:"keys",action:551}});let q=p[0].device==="LITE"&&Pa(),F=p[0].device==="LITE"&&Na();return{c(){a=l("section"),u=l("fieldset"),o=l("legend"),d=l("label"),c=l("input"),n=m("Spurring"),r=b(),h=l("p"),h.textContent=f,E=b(),y=l("p"),y.textContent=I,ie=b(),P=l("p"),x=m("Spurring is toggled by chording "),H(C.$$.fragment),ce=m(` and
`),H(O.$$.fragment),gt=m(" together."),ee=b(),ue=l("label"),te=m("Character Counter Timeout"),pe=l("span"),k=l("input"),yt=m("s"),le=b(),D=l("fieldset"),M=l("legend"),ve=l("label"),G=l("input"),Et=m("Arpeggiates"),se=b(),de=l("p"),de.textContent=$t,Ct=b(),ae=l("p"),ae.textContent=oe,xt=b(),V=l("ul"),W=l("li"),H(A.$$.fragment),rl=m(", "),H(Ae.$$.fragment),ol=m(" and "),H(Ie.$$.fragment),il=m(` will be placed before the
auto-inserted space`),cl=b(),fe=l("li"),H(ke.$$.fragment),ul=m(", "),H(we.$$.fragment),pl=m(" and "),H(Se.$$.fragment),vl=m(` will be placed before the
auto-inserted space and capitalize the next word`),dl=b(),xe=l("li"),H(Be.$$.fragment),fl=m(" and "),H(Ue.$$.fragment),hl=m(" will replace the auto-inserted space"),ml=b(),Oe=l("label"),_l=m("Timeout After Chord"),De=l("span"),Re=l("input"),bl=m("ms"),gl=b(),he=l("fieldset"),Me=l("legend"),Me.textContent=ca,yl=b(),Ge=l("p"),Ge.innerHTML=ua,El=b(),J=l("ul"),Lt=l("li"),H(qe.$$.fragment),$l=m(` Capitalizes the first letter of
a chord`),Cl=b(),Tt=l("li"),H(Fe.$$.fragment),xl=m(" Present Tense (supported words only)"),Ll=b(),Pt=l("li"),H(He.$$.fragment),Tl=m(" Plural (supported words only)"),Pl=b(),Nt=l("li"),H(ze.$$.fragment),Nl=m(" Past Tense (supported words only)"),Al=b(),At=l("li"),H(Ke.$$.fragment),Il=m(" Comparative (supported words only)"),kl=b(),w=l("fieldset"),je=l("legend"),je.textContent=pa,wl=b(),q&&q.c(),Zt=b(),Ye=l("label"),Sl=m(`Character Entry (chentry)
`),It=l("input"),Bl=b(),Ve=l("label"),Ul=m(`Key Scan Rate
`),We=l("span"),kt=l("input"),Ol=m("Hz"),Dl=b(),Je=l("label"),Rl=m("Key Debounce Press"),Qe=l("span"),wt=l("input"),Ml=m("ms"),Gl=b(),Xe=l("label"),ql=m("Key Debounce Release"),Ze=l("span"),St=l("input"),Fl=m("ms"),Hl=b(),et=l("label"),zl=m("Output Character Delay"),tt=l("span"),Bt=l("input"),Kl=m("µs"),jl=b(),Q=l("fieldset"),Ut=l("legend"),lt=l("label"),Ot=l("input"),Yl=m("Mouse"),Vl=b(),Le=l("label"),Wl=m("Mouse Speed"),Dt=l("input"),Rt=l("input"),Jl=b(),st=l("label"),Ql=m("Scroll Speed"),Mt=l("input"),Xl=b(),Te=l("label"),Gt=l("span"),Gt.innerHTML=va,Zl=b(),qt=l("input"),es=b(),at=l("label"),ts=m("Poll Rate"),nt=l("span"),Ft=l("input"),ls=m("Hz"),ss=b(),X=l("fieldset"),Ht=l("legend"),rt=l("label"),zt=l("input"),as=m("Chording"),ns=b(),ot=l("label"),rs=m("Auto-delete Timeout "),it=l("span"),Ee=l("input"),os=m("ms"),is=b(),ct=l("label"),cs=m("Press Tolerance"),ut=l("span"),$e=l("input"),us=m("ms"),ps=b(),pt=l("label"),vs=m("Release Tolerance"),vt=l("span"),Ce=l("input"),ds=m("ms"),fs=b(),dt=l("label"),hs=m("Compound Chording"),Kt=l("input"),ms=b(),re=l("fieldset"),ft=l("legend"),ft.textContent=da,_s=b(),ht=l("label"),bs=m("Boot message"),jt=l("input"),gs=b(),mt=l("label"),ys=m("GTM Realtime Feedback"),Yt=l("input"),Es=b(),Pe=l("button"),Pe.textContent=fa,$s=b(),F&&F.c(),this.h()},l($){a=s($,"SECTION",{class:!0});var S=v(a);u=s(S,"FIELDSET",{class:!0});var me=v(u);o=s(me,"LEGEND",{class:!0});var ma=v(o);d=s(ma,"LABEL",{class:!0});var xs=v(d);c=s(xs,"INPUT",{type:!0,class:!0}),n=_(xs,"Spurring"),xs.forEach(i),ma.forEach(i),r=g(me),h=s(me,"P",{class:!0,"data-svelte-h":!0}),N(h)!=="svelte-1absrn6"&&(h.textContent=f),E=g(me),y=s(me,"P",{class:!0,"data-svelte-h":!0}),N(y)!=="svelte-1qgbf7t"&&(y.textContent=I),ie=g(me),P=s(me,"P",{class:!0});var Vt=v(P);x=_(Vt,"Spurring is toggled by chording "),z(C.$$.fragment,Vt),ce=_(Vt,` and
`),z(O.$$.fragment,Vt),gt=_(Vt," together."),Vt.forEach(i),ee=g(me),ue=s(me,"LABEL",{class:!0});var Ls=v(ue);te=_(Ls,"Character Counter Timeout"),pe=s(Ls,"SPAN",{class:!0});var Ts=v(pe);k=s(Ts,"INPUT",{type:!0,step:!0,min:!0,max:!0,class:!0}),yt=_(Ts,"s"),Ts.forEach(i),Ls.forEach(i),me.forEach(i),le=g(S),D=s(S,"FIELDSET",{class:!0});var _e=v(D);M=s(_e,"LEGEND",{class:!0});var _a=v(M);ve=s(_a,"LABEL",{class:!0});var Ps=v(ve);G=s(Ps,"INPUT",{type:!0,class:!0}),Et=_(Ps,"Arpeggiates"),Ps.forEach(i),_a.forEach(i),se=g(_e),de=s(_e,"P",{class:!0,"data-svelte-h":!0}),N(de)!=="svelte-htj8uq"&&(de.textContent=$t),Ct=g(_e),ae=s(_e,"P",{class:!0,"data-svelte-h":!0}),N(ae)!=="svelte-9mi25a"&&(ae.textContent=oe),xt=g(_e),V=s(_e,"UL",{class:!0});var Wt=v(V);W=s(Wt,"LI",{});var _t=v(W);z(A.$$.fragment,_t),rl=_(_t,", "),z(Ae.$$.fragment,_t),ol=_(_t," and "),z(Ie.$$.fragment,_t),il=_(_t,` will be placed before the
auto-inserted space`),_t.forEach(i),cl=g(Wt),fe=s(Wt,"LI",{});var bt=v(fe);z(ke.$$.fragment,bt),ul=_(bt,", "),z(we.$$.fragment,bt),pl=_(bt," and "),z(Se.$$.fragment,bt),vl=_(bt,` will be placed before the
auto-inserted space and capitalize the next word`),bt.forEach(i),dl=g(Wt),xe=s(Wt,"LI",{});var Xt=v(xe);z(Be.$$.fragment,Xt),fl=_(Xt," and "),z(Ue.$$.fragment,Xt),hl=_(Xt," will replace the auto-inserted space"),Xt.forEach(i),Wt.forEach(i),ml=g(_e),Oe=s(_e,"LABEL",{class:!0});var Ns=v(Oe);_l=_(Ns,"Timeout After Chord"),De=s(Ns,"SPAN",{class:!0});var As=v(De);Re=s(As,"INPUT",{type:!0,step:!0,class:!0}),bl=_(As,"ms"),As.forEach(i),Ns.forEach(i),_e.forEach(i),gl=g(S),he=s(S,"FIELDSET",{class:!0});var Jt=v(he);Me=s(Jt,"LEGEND",{class:!0,"data-svelte-h":!0}),N(Me)!=="svelte-jir89i"&&(Me.textContent=ca),yl=g(Jt),Ge=s(Jt,"P",{class:!0,"data-svelte-h":!0}),N(Ge)!=="svelte-1i7und0"&&(Ge.innerHTML=ua),El=g(Jt),J=s(Jt,"UL",{class:!0});var be=v(J);Lt=s(be,"LI",{});var Is=v(Lt);z(qe.$$.fragment,Is),$l=_(Is,` Capitalizes the first letter of
a chord`),Is.forEach(i),Cl=g(be),Tt=s(be,"LI",{});var ks=v(Tt);z(Fe.$$.fragment,ks),xl=_(ks," Present Tense (supported words only)"),ks.forEach(i),Ll=g(be),Pt=s(be,"LI",{});var ws=v(Pt);z(He.$$.fragment,ws),Tl=_(ws," Plural (supported words only)"),ws.forEach(i),Pl=g(be),Nt=s(be,"LI",{});var Ss=v(Nt);z(ze.$$.fragment,Ss),Nl=_(Ss," Past Tense (supported words only)"),Ss.forEach(i),Al=g(be),At=s(be,"LI",{});var Bs=v(At);z(Ke.$$.fragment,Bs),Il=_(Bs," Comparative (supported words only)"),Bs.forEach(i),be.forEach(i),Jt.forEach(i),kl=g(S),w=s(S,"FIELDSET",{class:!0});var Z=v(w);je=s(Z,"LEGEND",{class:!0,"data-svelte-h":!0}),N(je)!=="svelte-1kmih9r"&&(je.textContent=pa),wl=g(Z),q&&q.l(Z),Zt=g(Z),Ye=s(Z,"LABEL",{class:!0});var Us=v(Ye);Sl=_(Us,`Character Entry (chentry)
`),It=s(Us,"INPUT",{type:!0,class:!0}),Us.forEach(i),Bl=g(Z),Ve=s(Z,"LABEL",{class:!0});var Os=v(Ve);Ul=_(Os,`Key Scan Rate
`),We=s(Os,"SPAN",{class:!0});var Ds=v(We);kt=s(Ds,"INPUT",{type:!0,class:!0}),Ol=_(Ds,"Hz"),Ds.forEach(i),Os.forEach(i),Dl=g(Z),Je=s(Z,"LABEL",{class:!0});var Rs=v(Je);Rl=_(Rs,"Key Debounce Press"),Qe=s(Rs,"SPAN",{class:!0});var Ms=v(Qe);wt=s(Ms,"INPUT",{type:!0,class:!0}),Ml=_(Ms,"ms"),Ms.forEach(i),Rs.forEach(i),Gl=g(Z),Xe=s(Z,"LABEL",{class:!0});var Gs=v(Xe);ql=_(Gs,"Key Debounce Release"),Ze=s(Gs,"SPAN",{class:!0});var qs=v(Ze);St=s(qs,"INPUT",{type:!0,class:!0}),Fl=_(qs,"ms"),qs.forEach(i),Gs.forEach(i),Hl=g(Z),et=s(Z,"LABEL",{class:!0});var Fs=v(et);zl=_(Fs,"Output Character Delay"),tt=s(Fs,"SPAN",{class:!0});var Hs=v(tt);Bt=s(Hs,"INPUT",{type:!0,class:!0}),Kl=_(Hs,"µs"),Hs.forEach(i),Fs.forEach(i),Z.forEach(i),jl=g(S),Q=s(S,"FIELDSET",{class:!0});var ge=v(Q);Ut=s(ge,"LEGEND",{class:!0});var ba=v(Ut);lt=s(ba,"LABEL",{class:!0});var zs=v(lt);Ot=s(zs,"INPUT",{type:!0,class:!0}),Yl=_(zs,"Mouse"),zs.forEach(i),ba.forEach(i),Vl=g(ge),Le=s(ge,"LABEL",{class:!0});var tl=v(Le);Wl=_(tl,"Mouse Speed"),Dt=s(tl,"INPUT",{type:!0,class:!0}),Rt=s(tl,"INPUT",{type:!0,class:!0}),tl.forEach(i),Jl=g(ge),st=s(ge,"LABEL",{class:!0});var Ks=v(st);Ql=_(Ks,"Scroll Speed"),Mt=s(Ks,"INPUT",{type:!0,class:!0}),Ks.forEach(i),Xl=g(ge),Te=s(ge,"LABEL",{class:!0});var ll=v(Te);Gt=s(ll,"SPAN",{"data-svelte-h":!0}),N(Gt)!=="svelte-2fni7a"&&(Gt.innerHTML=va),Zl=g(ll),qt=s(ll,"INPUT",{type:!0,class:!0}),ll.forEach(i),es=g(ge),at=s(ge,"LABEL",{class:!0});var js=v(at);ts=_(js,"Poll Rate"),nt=s(js,"SPAN",{class:!0});var Ys=v(nt);Ft=s(Ys,"INPUT",{type:!0,class:!0}),ls=_(Ys,"Hz"),Ys.forEach(i),js.forEach(i),ge.forEach(i),ss=g(S),X=s(S,"FIELDSET",{class:!0});var ye=v(X);Ht=s(ye,"LEGEND",{class:!0});var ga=v(Ht);rt=s(ga,"LABEL",{class:!0});var Vs=v(rt);zt=s(Vs,"INPUT",{type:!0,class:!0}),as=_(Vs,"Chording"),Vs.forEach(i),ga.forEach(i),ns=g(ye),ot=s(ye,"LABEL",{class:!0});var Ws=v(ot);rs=_(Ws,"Auto-delete Timeout "),it=s(Ws,"SPAN",{class:!0});var Js=v(it);Ee=s(Js,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),os=_(Js,"ms"),Js.forEach(i),Ws.forEach(i),is=g(ye),ct=s(ye,"LABEL",{class:!0});var Qs=v(ct);cs=_(Qs,"Press Tolerance"),ut=s(Qs,"SPAN",{class:!0});var Xs=v(ut);$e=s(Xs,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),us=_(Xs,"ms"),Xs.forEach(i),Qs.forEach(i),ps=g(ye),pt=s(ye,"LABEL",{class:!0});var Zs=v(pt);vs=_(Zs,"Release Tolerance"),vt=s(Zs,"SPAN",{class:!0});var ea=v(vt);Ce=s(ea,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),ds=_(ea,"ms"),ea.forEach(i),Zs.forEach(i),fs=g(ye),dt=s(ye,"LABEL",{class:!0});var ta=v(dt);hs=_(ta,"Compound Chording"),Kt=s(ta,"INPUT",{type:!0,class:!0}),ta.forEach(i),ye.forEach(i),ms=g(S),re=s(S,"FIELDSET",{class:!0});var Ne=v(re);ft=s(Ne,"LEGEND",{class:!0,"data-svelte-h":!0}),N(ft)!=="svelte-1gfa4vi"&&(ft.textContent=da),_s=g(Ne),ht=s(Ne,"LABEL",{class:!0});var la=v(ht);bs=_(la,"Boot message"),jt=s(la,"INPUT",{type:!0,class:!0}),la.forEach(i),gs=g(Ne),mt=s(Ne,"LABEL",{class:!0});var sa=v(mt);ys=_(sa,"GTM Realtime Feedback"),Yt=s(sa,"INPUT",{type:!0,class:!0}),sa.forEach(i),Es=g(Ne),Pe=s(Ne,"BUTTON",{class:!0,"data-svelte-h":!0}),N(Pe)!=="svelte-1go1wkp"&&(Pe.textContent=fa),Ne.forEach(i),$s=g(S),F&&F.l(S),S.forEach(i),this.h()},h(){t(c,"type","checkbox"),t(c,"class","svelte-vao3s9"),t(d,"class","svelte-vao3s9"),t(o,"class","svelte-vao3s9"),t(h,"class","svelte-vao3s9"),t(y,"class","svelte-vao3s9"),t(P,"class","svelte-vao3s9"),t(k,"type","number"),t(k,"step","0.001"),t(k,"min","0"),t(k,"max","240"),t(k,"class","svelte-vao3s9"),t(pe,"class","unit svelte-vao3s9"),t(ue,"class","svelte-vao3s9"),t(u,"class","svelte-vao3s9"),t(G,"type","checkbox"),t(G,"class","svelte-vao3s9"),t(ve,"class","svelte-vao3s9"),t(M,"class","svelte-vao3s9"),t(de,"class","svelte-vao3s9"),t(ae,"class","svelte-vao3s9"),t(V,"class","svelte-vao3s9"),t(Re,"type","number"),t(Re,"step","1"),t(Re,"class","svelte-vao3s9"),t(De,"class","unit svelte-vao3s9"),t(Oe,"class","svelte-vao3s9"),t(D,"class","svelte-vao3s9"),t(Me,"class","svelte-vao3s9"),t(Ge,"class","svelte-vao3s9"),t(J,"class","svelte-vao3s9"),t(he,"class","svelte-vao3s9"),t(je,"class","svelte-vao3s9"),t(It,"type","checkbox"),t(It,"class","svelte-vao3s9"),t(Ye,"class","svelte-vao3s9"),t(kt,"type","number"),t(kt,"class","svelte-vao3s9"),t(We,"class","unit svelte-vao3s9"),t(Ve,"class","svelte-vao3s9"),t(wt,"type","number"),t(wt,"class","svelte-vao3s9"),t(Qe,"class","unit svelte-vao3s9"),t(Je,"class","svelte-vao3s9"),t(St,"type","number"),t(St,"class","svelte-vao3s9"),t(Ze,"class","unit svelte-vao3s9"),t(Xe,"class","svelte-vao3s9"),t(Bt,"type","number"),t(Bt,"class","svelte-vao3s9"),t(tt,"class","unit svelte-vao3s9"),t(et,"class","svelte-vao3s9"),t(w,"class","svelte-vao3s9"),t(Ot,"type","checkbox"),t(Ot,"class","svelte-vao3s9"),t(lt,"class","svelte-vao3s9"),t(Ut,"class","svelte-vao3s9"),t(Dt,"type","number"),t(Dt,"class","svelte-vao3s9"),t(Rt,"type","number"),t(Rt,"class","svelte-vao3s9"),t(Le,"class","svelte-vao3s9"),t(Mt,"type","number"),t(Mt,"class","svelte-vao3s9"),t(st,"class","svelte-vao3s9"),t(qt,"type","checkbox"),t(qt,"class","svelte-vao3s9"),t(Te,"class","svelte-vao3s9"),t(Ft,"type","number"),t(Ft,"class","svelte-vao3s9"),t(nt,"class","unit svelte-vao3s9"),t(at,"class","svelte-vao3s9"),t(Q,"class","svelte-vao3s9"),t(zt,"type","checkbox"),t(zt,"class","svelte-vao3s9"),t(rt,"class","svelte-vao3s9"),t(Ht,"class","svelte-vao3s9"),t(Ee,"type","number"),t(Ee,"min","0"),t(Ee,"max","25500"),t(Ee,"step","10"),t(Ee,"class","svelte-vao3s9"),t(it,"class","unit svelte-vao3s9"),t(ot,"class","svelte-vao3s9"),t($e,"type","number"),t($e,"min","1"),t($e,"max","150"),t($e,"step","1"),t($e,"class","svelte-vao3s9"),t(ut,"class","unit svelte-vao3s9"),t(ct,"class","svelte-vao3s9"),t(Ce,"type","number"),t(Ce,"min","1"),t(Ce,"max","150"),t(Ce,"step","1"),t(Ce,"class","svelte-vao3s9"),t(vt,"class","unit svelte-vao3s9"),t(pt,"class","svelte-vao3s9"),t(Kt,"type","checkbox"),t(Kt,"class","svelte-vao3s9"),t(dt,"class","svelte-vao3s9"),t(X,"class","svelte-vao3s9"),t(ft,"class","svelte-vao3s9"),t(jt,"type","checkbox"),t(jt,"class","svelte-vao3s9"),t(ht,"class","svelte-vao3s9"),t(Yt,"type","checkbox"),t(Yt,"class","svelte-vao3s9"),t(mt,"class","svelte-vao3s9"),t(Pe,"class","outline svelte-vao3s9"),t(re,"class","svelte-vao3s9"),t(a,"class","svelte-vao3s9")},m($,S){B($,a,S),e(a,u),e(u,o),e(o,d),e(d,c),e(d,n),e(u,r),e(u,h),e(u,E),e(u,y),e(u,ie),e(u,P),e(P,x),K(C,P,null),e(P,ce),K(O,P,null),e(P,gt),e(u,ee),e(u,ue),e(ue,te),e(ue,pe),e(pe,k),e(pe,yt),e(a,le),e(a,D),e(D,M),e(M,ve),e(ve,G),e(ve,Et),e(D,se),e(D,de),e(D,Ct),e(D,ae),e(D,xt),e(D,V),e(V,W),K(A,W,null),e(W,rl),K(Ae,W,null),e(W,ol),K(Ie,W,null),e(W,il),e(V,cl),e(V,fe),K(ke,fe,null),e(fe,ul),K(we,fe,null),e(fe,pl),K(Se,fe,null),e(fe,vl),e(V,dl),e(V,xe),K(Be,xe,null),e(xe,fl),K(Ue,xe,null),e(xe,hl),e(D,ml),e(D,Oe),e(Oe,_l),e(Oe,De),e(De,Re),e(De,bl),e(a,gl),e(a,he),e(he,Me),e(he,yl),e(he,Ge),e(he,El),e(he,J),e(J,Lt),K(qe,Lt,null),e(Lt,$l),e(J,Cl),e(J,Tt),K(Fe,Tt,null),e(Tt,xl),e(J,Ll),e(J,Pt),K(He,Pt,null),e(Pt,Tl),e(J,Pl),e(J,Nt),K(ze,Nt,null),e(Nt,Nl),e(J,Al),e(J,At),K(Ke,At,null),e(At,Il),e(a,kl),e(a,w),e(w,je),e(w,wl),q&&q.m(w,null),e(w,Zt),e(w,Ye),e(Ye,Sl),e(Ye,It),e(w,Bl),e(w,Ve),e(Ve,Ul),e(Ve,We),e(We,kt),e(We,Ol),e(w,Dl),e(w,Je),e(Je,Rl),e(Je,Qe),e(Qe,wt),e(Qe,Ml),e(w,Gl),e(w,Xe),e(Xe,ql),e(Xe,Ze),e(Ze,St),e(Ze,Fl),e(w,Hl),e(w,et),e(et,zl),e(et,tt),e(tt,Bt),e(tt,Kl),e(a,jl),e(a,Q),e(Q,Ut),e(Ut,lt),e(lt,Ot),e(lt,Yl),e(Q,Vl),e(Q,Le),e(Le,Wl),e(Le,Dt),e(Le,Rt),e(Q,Jl),e(Q,st),e(st,Ql),e(st,Mt),e(Q,Xl),e(Q,Te),e(Te,Gt),e(Te,Zl),e(Te,qt),e(Q,es),e(Q,at),e(at,ts),e(at,nt),e(nt,Ft),e(nt,ls),e(a,ss),e(a,X),e(X,Ht),e(Ht,rt),e(rt,zt),e(rt,as),e(X,ns),e(X,ot),e(ot,rs),e(ot,it),e(it,Ee),e(it,os),e(X,is),e(X,ct),e(ct,cs),e(ct,ut),e(ut,$e),e(ut,us),e(X,ps),e(X,pt),e(pt,vs),e(pt,vt),e(vt,Ce),e(vt,ds),e(X,fs),e(X,dt),e(dt,hs),e(dt,Kt),e(a,ms),e(a,re),e(re,ft),e(re,_s),e(re,ht),e(ht,bs),e(ht,jt),e(re,gs),e(re,mt),e(mt,ys),e(mt,Yt),e(re,Es),e(re,Pe),e(a,$s),F&&F.m(a,null),el=!0,Cs||(ha=[L(T.call(null,c,{id:65})),L(T.call(null,k,{id:67,scale:.001})),L(T.call(null,G,{id:81})),L(T.call(null,Re,{id:84})),L(T.call(null,It,{id:18})),L(T.call(null,kt,{id:20,inverse:1e3})),L(T.call(null,wt,{id:21})),L(T.call(null,St,{id:22})),L(T.call(null,Bt,{id:23})),L(T.call(null,Ot,{id:33})),L(T.call(null,Dt,{id:34})),L(T.call(null,Rt,{id:35})),L(T.call(null,Mt,{id:37})),L(T.call(null,qt,{id:36})),L(T.call(null,Ft,{id:38,inverse:1e3})),L(T.call(null,zt,{id:49})),L(T.call(null,Ee,{id:51})),L(T.call(null,$e,{id:52})),L(T.call(null,Ce,{id:53})),L(T.call(null,Kt,{id:97})),L(T.call(null,jt,{id:147})),L(T.call(null,Yt,{id:146})),L(Ga.call(null,Pe,Va))],Cs=!0)},p($,S){$[0].device==="LITE"?q||(q=Pa(),q.c(),q.m(w,Zt)):q&&(q.d(1),q=null),$[0].device==="LITE"?F||(F=Na(),F.c(),F.m(a,null)):F&&(F.d(1),F=null)},i($){el||(U(C.$$.fragment,$),U(O.$$.fragment,$),U(A.$$.fragment,$),U(Ae.$$.fragment,$),U(Ie.$$.fragment,$),U(ke.$$.fragment,$),U(we.$$.fragment,$),U(Se.$$.fragment,$),U(Be.$$.fragment,$),U(Ue.$$.fragment,$),U(qe.$$.fragment,$),U(Fe.$$.fragment,$),U(He.$$.fragment,$),U(ze.$$.fragment,$),U(Ke.$$.fragment,$),el=!0)},o($){R(C.$$.fragment,$),R(O.$$.fragment,$),R(A.$$.fragment,$),R(Ae.$$.fragment,$),R(Ie.$$.fragment,$),R(ke.$$.fragment,$),R(we.$$.fragment,$),R(Se.$$.fragment,$),R(Be.$$.fragment,$),R(Ue.$$.fragment,$),R(qe.$$.fragment,$),R(Fe.$$.fragment,$),R(He.$$.fragment,$),R(ze.$$.fragment,$),R(Ke.$$.fragment,$),el=!1},d($){$&&i(a),j(C),j(O),j(A),j(Ae),j(Ie),j(ke),j(we),j(Se),j(Be),j(Ue),j(qe),j(Fe),j(He),j(ze),j(Ke),q&&q.d(),F&&F.d(),Cs=!1,na(ha)}}}function Pa(p){let a,u,o,d,c;return{c(){a=l("label"),u=m("Swap Keymap 0 and 1"),o=l("input"),this.h()},l(n){a=s(n,"LABEL",{class:!0});var r=v(a);u=_(r,"Swap Keymap 0 and 1"),o=s(r,"INPUT",{type:!0,class:!0}),r.forEach(i),this.h()},h(){t(o,"type","checkbox"),t(o,"class","svelte-vao3s9"),t(a,"class","svelte-vao3s9")},m(n,r){B(n,a,r),e(a,u),e(a,o),d||(c=L(T.call(null,o,{id:19})),d=!0)},d(n){n&&i(a),d=!1,c()}}}function Na(p){let a,u,o,d,c,n,r,h,f,E,y,I,ie="White",P,x="Red",C,ce="Orange",O,gt="Yellow",ee,ue="Lime",te,pe="Green",k,yt="Cyan",le,D="Blue",M,ve="Violet",G,Et="Pink",se,de="Multicolor",$t,Ct;return{c(){a=l("fieldset"),u=l("legend"),o=l("label"),d=l("input"),c=m("RGB"),n=b(),r=l("label"),h=m("Brightness"),f=l("input"),E=b(),y=l("select"),I=l("option"),I.textContent=ie,P=l("option"),P.textContent=x,C=l("option"),C.textContent=ce,O=l("option"),O.textContent=gt,ee=l("option"),ee.textContent=ue,te=l("option"),te.textContent=pe,k=l("option"),k.textContent=yt,le=l("option"),le.textContent=D,M=l("option"),M.textContent=ve,G=l("option"),G.textContent=Et,se=l("option"),se.textContent=de,this.h()},l(ae){a=s(ae,"FIELDSET",{class:!0});var oe=v(a);u=s(oe,"LEGEND",{class:!0});var xt=v(u);o=s(xt,"LABEL",{class:!0});var V=v(o);d=s(V,"INPUT",{type:!0,class:!0}),c=_(V,"RGB"),V.forEach(i),xt.forEach(i),n=g(oe),r=s(oe,"LABEL",{class:!0});var W=v(r);h=_(W,"Brightness"),f=s(W,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),W.forEach(i),E=g(oe),y=s(oe,"SELECT",{class:!0});var A=v(y);I=s(A,"OPTION",{"data-svelte-h":!0}),N(I)!=="svelte-14mu4z9"&&(I.textContent=ie),P=s(A,"OPTION",{"data-svelte-h":!0}),N(P)!=="svelte-1ggqd5k"&&(P.textContent=x),C=s(A,"OPTION",{"data-svelte-h":!0}),N(C)!=="svelte-1ihdrw0"&&(C.textContent=ce),O=s(A,"OPTION",{"data-svelte-h":!0}),N(O)!=="svelte-1q77lcp"&&(O.textContent=gt),ee=s(A,"OPTION",{"data-svelte-h":!0}),N(ee)!=="svelte-8y4vqp"&&(ee.textContent=ue),te=s(A,"OPTION",{"data-svelte-h":!0}),N(te)!=="svelte-wfyuoo"&&(te.textContent=pe),k=s(A,"OPTION",{"data-svelte-h":!0}),N(k)!=="svelte-u6snoe"&&(k.textContent=yt),le=s(A,"OPTION",{"data-svelte-h":!0}),N(le)!=="svelte-6ap5ln"&&(le.textContent=D),M=s(A,"OPTION",{"data-svelte-h":!0}),N(M)!=="svelte-mt6xi4"&&(M.textContent=ve),G=s(A,"OPTION",{"data-svelte-h":!0}),N(G)!=="svelte-ry6qo8"&&(G.textContent=Et),se=s(A,"OPTION",{"data-svelte-h":!0}),N(se)!=="svelte-wzmt22"&&(se.textContent=de),A.forEach(i),oe.forEach(i),this.h()},h(){t(d,"type","checkbox"),t(d,"class","svelte-vao3s9"),t(o,"class","svelte-vao3s9"),t(u,"class","svelte-vao3s9"),t(f,"type","number"),t(f,"min","0"),t(f,"max","50"),t(f,"step","1"),t(f,"class","svelte-vao3s9"),t(r,"class","svelte-vao3s9"),I.__value="0",ne(I,I.__value),P.__value="1",ne(P,P.__value),C.__value="2",ne(C,C.__value),O.__value="3",ne(O,O.__value),ee.__value="4",ne(ee,ee.__value),te.__value="5",ne(te,te.__value),k.__value="7",ne(k,k.__value),le.__value="9",ne(le,le.__value),M.__value="10",ne(M,M.__value),G.__value="11",ne(G,G.__value),se.__value="13",ne(se,se.__value),t(y,"class","svelte-vao3s9"),t(a,"class","svelte-vao3s9")},m(ae,oe){B(ae,a,oe),e(a,u),e(u,o),e(o,d),e(o,c),e(a,n),e(a,r),e(r,h),e(r,f),e(a,E),e(a,y),e(y,I),e(y,P),e(y,C),e(y,O),e(y,ee),e(y,te),e(y,k),e(y,le),e(y,M),e(y,G),e(y,se),$t||(Ct=[L(T.call(null,d,{id:132})),L(T.call(null,f,{id:129})),L(T.call(null,y,{id:130}))],$t=!0)},d(ae){ae&&i(a),$t=!1,na(Ct)}}}function Wa(p){let a,u,o,d,c=p[0]&&Ta(p);return{c(){a=l("meta"),u=b(),c&&c.c(),o=Qt(),this.h()},l(n){const r=Sa("svelte-1q8w0ws",document.head);a=s(r,"META",{name:!0,content:!0}),r.forEach(i),u=g(n),c&&c.l(n),o=Qt(),this.h()},h(){document.title="Device Settings - CharaChorder Device Manager",t(a,"name","description"),t(a,"content","Change your device's settings")},m(n,r){e(document.head,a),B(n,u,r),c&&c.m(n,r),B(n,o,r),d=!0},p(n,[r]){n[0]?c?(c.p(n,r),r&1&&U(c,1)):(c=Ta(n),c.c(),U(c,1),c.m(o.parentNode,o)):c&&(Ua(),R(c,1,1,()=>{c=null}),Ba())},i(n){d||(U(c),d=!0)},o(n){R(c),d=!1},d(n){n&&(i(u),i(o)),i(a),c&&c.d(n)}}}function Ja(p,a,u){let o;return ra(p,al,d=>u(0,o=d)),[o]}class sn extends oa{constructor(a){super(),ia(this,a,Ja,Wa,aa,{})}}export{sn as component};
//# sourceMappingURL=8.acoSpNx3.js.map