2023-10-24 00:22:00 +03:00
|
|
|
var Rs=Object.defineProperty;var Hs=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ft=(e,t,n)=>(Hs(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const g of r.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&i(g)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ee(){}function Es(e){return e()}function is(){return Object.create(null)}function je(e){e.forEach(Es)}function Is(e){return typeof e=="function"}function Ot(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Sl;function Fs(e,t){return e===t?!0:(Sl||(Sl=document.createElement("a")),Sl.href=t,e===Sl.href)}function Us(e){return Object.keys(e).length===0}function qs(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Bs(e,t,n){e.$$.on_destroy.push(qs(t,n))}function l(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function Pt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function s(e){return document.createElement(e)}function js(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function p(e){return document.createTextNode(e)}function c(){return p(" ")}function fi(){return p("")}function k(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function ss(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function q(e){return e===""?null:+e}function Vs(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t){e.value=t??""}function Qt(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function Ke(e,t,n){for(let i=0;i<e.options.length;i+=1){const o=e.options[i];if(o.__value===t){o.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function yn(e){const t=e.querySelector(":checked");return t&&t.__value}class Gs{constructor(t=!1){ft(this,"is_svg",!1);ft(this,"e");ft(this,"n");ft(this,"t");ft(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=js(n.nodeName):this.e=s(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)w(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(m)}}function os(e,t){return new e(t)}let Ln;function kn(e){Ln=e}function Ms(){if(!Ln)throw new Error("Function called outside component initialization");return Ln}function Pl(e){Ms().$$.on_mount.push(e)}function Ws(e){Ms().$$.on_destroy.push(e)}const xt=[],oi=[];let $t=[];const as=[],Xs=Promise.resolve();let ai=!1;function Ys(){ai||(ai=!0,Xs.then(As))}function ht(e){$t.push(e)}const ii=new Set;let Zt=0;function As(){if(Zt!==0)return;const e=Ln;do{try{for(;Zt<xt.length;){const t=xt[Zt];Zt++,kn(t),Ks(t.$$)}}catch(t){throw xt.length=0,Zt=0,t}for(kn(null),xt.length=0,Zt=0;oi.length;)oi.pop()();for(let t=0;t<$t.length;t+=1){const n=$t[t];ii.has(n)||(ii.add(n),n())}$t.length=0}while(xt.length);for(;as.length;)as.pop()();ai=!1,ii.clear(),kn(e)}function Ks(e){if(e.fragment!==null){e.update(),je(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ht)}}function Qs(e){const t=
|
2023-08-14 04:25:50 +03:00
|
|
|
development process. In the future, this app will be used on Tauri's integration
|
2023-10-24 00:22:00 +03:00
|
|
|
tests.`,i=c(),o=s("br"),r=c(),g=s("br"),h=c(),b=s("pre"),d=p(" App name: "),W=s("code"),L=p(e[2]),Y=p(`
|
|
|
|
App version: `),S=s("code"),I=p(e[0]),M=p(`
|
|
|
|
Tauri version: `),D=s("code"),ae=p(e[1]),H=p(`
|
|
|
|
`),N=c(),V=s("br"),G=c(),O=s("button"),O.textContent="Context menu",a(O,"class","btn")},m(T,x){w(T,t,x),l(t,n),l(t,i),l(t,o),l(t,r),l(t,g),l(t,h),l(t,b),l(b,d),l(b,W),l(W,L),l(b,Y),l(b,S),l(S,I),l(b,M),l(b,D),l(D,ae),l(b,H),l(t,N),l(t,V),l(t,G),l(t,O),B||(re=k(O,"click",e[3]),B=!0)},p(T,[x]){x&4&&se(L,T[2]),x&1&&se(I,T[0]),x&2&&se(ae,T[1])},i:ee,o:ee,d(T){T&&m(t),B=!1,re()}}}function ro(e,t,n){let i="1.0.0",o="1.0.0",r="Unknown";lo().then(h=>{n(2,r=h)}),no().then(h=>{n(0,i=h)}),io().then(h=>{n(1,o=h)});function g(){_("popup_context_menu")}return[i,o,r,g]}class uo extends nn{constructor(t){super(),tn(this,t,ro,ao,Ot,{})}}var Se;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu"})(Se||(Se={}));async function Ds(e,t){await _("plugin:event|unlisten",{event:e,eventId:t})}async function hi(e,t,n){return _("plugin:event|listen",{event:e,windowLabel:n==null?void 0:n.target,handler:to(t)}).then(i=>async()=>Ds(e,i))}async function co(e,t,n){return hi(e,i=>{t(i),Ds(e,i.id).catch(()=>{})},n)}async function Ns(e,t,n){await _("plugin:event|emit",{event:e,windowLabel:n==null?void 0:n.target,payload:t})}function fo(e){let t,n,i,o,r,g,h,b;return{c(){t=s("div"),n=s("button"),n.textContent="Call Log API",i=c(),o=s("button"),o.textContent="Call Request (async) API",r=c(),g=s("button"),g.textContent="Send event to Rust",a(n,"class","btn"),a(n,"id","log"),a(o,"class","btn"),a(o,"id","request"),a(g,"class","btn"),a(g,"id","event")},m(d,W){w(d,t,W),l(t,n),l(t,i),l(t,o),l(t,r),l(t,g),h||(b=[k(n,"click",e[0]),k(o,"click",e[1]),k(g,"click",e[2])],h=!0)},p:ee,i:ee,o:ee,d(d){d&&m(t),h=!1,je(b)}}}function ho(e,t,n){let{onMessage:i}=t,o;Pl(async()=>{o=await hi("rust-event",i)}),Ws(()=>{o&&o()});function r(){_("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function g(){_("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function h(){Ns("js-event","this is the payload string")}return e.$$set=b=>{"onMessage"in b&&n(3,i=b.onMessage)},[r,g,h,i]}class po extends nn{constructor(t){super(),tn(this,t,ho,fo,Ot,{onMessage:3})}}class di{constructor(t,n){this.type="Logical",this.width=t,this.height=n}}class en{constructor(t,n){this.type="Physical",this.width=t,this.height=n}toLogical(t){return new di(this.width/t,this.height/t)}}class bo{constructor(t,n){this.type="Logical",this.x=t,this.y=n}}class zt{constructor(t,n){this.type="Physical",this.x=t,this.y=n}toLogical(t){return new bo(this.x/t,this.y/t)}}var Ol;(function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"})(Ol||(Ol={}));class _o{constructor(t){this._preventDefault=!1,this.event=t.event,this.windowLabel=t.windowLabel,this.id=t.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var El;(function(e){e.None="none",e.Normal="normal",e.Indeterminate="indeterminate",e.Paused="paused",e.Error="error"})(El||(El={}));function Ts(){return new Cn(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function si(){return window.__TAURI_INTERNALS__.metadata.windows.map(e=>new Cn(e.label,{skip:!0}))}const cs=["tauri://created","tauri://error"];class Cn{constructor(t,n={}){this.label=t,this.listeners=Object.create(null),n!=null&&n.skip||_("plugin:window|create",{options:{...n,label:t}}).then(async()=>this.emit("tauri://created")).catch(async i=>this.emit("tauri://error",i))}static getByLabel(t){return si().some(n=>n.label===t)?new Cn(t,{skip:!0}):null}static getCurrent(){return Ts()}static getAll(){return si()}static async getFocusedWindow(){for(const t of si())if(awa
|
|
|
|
`),T=s("input"),x=c(),te=s("label"),y=p(`Resizable
|
|
|
|
`),F=s("input"),j=c(),$=s("label"),ue=p(`Maximizable
|
|
|
|
`),K=s("input"),ge=c(),ke=s("label"),de=p(`Minimizable
|
|
|
|
`),oe=s("input"),Q=c(),he=s("label"),U=p(`Closable
|
|
|
|
`),ne=s("input"),J=c(),v=s("label"),X=p(`Has decorations
|
|
|
|
`),z=s("input"),fe=c(),ze=s("label"),me=p(`Always on top
|
|
|
|
`),pe=s("input"),We=c(),Pe=s("label"),Ae=p(`Always on bottom
|
|
|
|
`),be=s("input"),_e=c(),Le=s("label"),Oe=p(`Content protected
|
|
|
|
`),ce=s("input"),Ce=c(),le=s("label"),De=p(`Fullscreen
|
|
|
|
`),Ne=s("input"),Ee=c(),ie=s("br"),C=c(),Z=s("div"),P=s("div"),Ie=s("div"),Sn=p(`X
|
|
|
|
`),Te=s("input"),zn=c(),Et=s("div"),Pn=p(`Y
|
|
|
|
`),Re=s("input"),On=c(),$e=s("div"),It=s("div"),En=p(`Width
|
|
|
|
`),He=s("input"),In=c(),Mt=s("div"),Mn=p(`Height
|
|
|
|
`),Fe=s("input"),Wn=c(),et=s("div"),Wt=s("div"),An=p(`Min width
|
|
|
|
`),Ve=s("input"),Dn=c(),At=s("div"),Nn=p(`Min height
|
|
|
|
`),Ge=s("input"),Tn=c(),tt=s("div"),Dt=s("div"),Rn=p(`Max width
|
|
|
|
`),Ue=s("input"),Hn=c(),Nt=s("div"),Fn=p(`Max height
|
|
|
|
`),qe=s("input"),ln=c(),sn=s("br"),on=c(),Me=s("div"),nt=s("div"),Xe=s("div"),A=s("div"),A.textContent="Inner Size",an=c(),pt=s("span"),rn=p("Width: "),Tt=p(bt),un=c(),_t=s("span"),cn=p("Height: "),Rt=p(gt),dn=c(),Be=s("div"),mt=s("div"),mt.textContent="Outer Size",fn=c(),wt=s("span"),hn=p("Width: "),Ht=p(vt),pn=c(),yt=s("span"),bn=p("Height: "),Ft=p(kt),Un=c(),Ut=s("div"),lt=s("div"),qn=s("div"),qn.textContent="Inner Logical Size",pi=c(),Bn=s("span"),bi=p("Width: "),Wl=p(jn),_i=c(),Vn=s("span"),gi=p("Height: "),Al=p(Gn),mi=c(),it=s("div"),Xn=s("div"),Xn.textContent="Outer Logical Size",wi=c(),Yn=s("span"),vi=p("Width: "),Dl=p(Kn),yi=c(),Qn=s("span"),ki=p("Height: "),Nl=p(Zn),Li=c(),qt=s("div"),st=s("div"),Jn=s("div"),Jn.textContent="Inner Position",Ci=c(),xn=s("span"),Si=p("x: "),Tl=p($n),zi=c(),el=s("span"),Pi=p("y: "),Rl=p(tl),Oi=c(),ot=s("div"),nl=s("div"),nl.textContent="Outer Position",Ei=c(),ll=s("span"),Ii=p("x: "),Hl=p(il),Mi=c(),sl=s("span"),Wi=p("y: "),Fl=p(ol),Ai=c(),Bt=s("div"),at=s("div"),al=s("div"),al.textContent="Inner Logical Position",Di=c(),rl=s("span"),Ni=p("x: "),Ul=p(ul),Ti=c(),cl=s("span"),Ri=p("y: "),ql=p(dl),Hi=c(),rt=s("div"),fl=s("div"),fl.textContent="Outer Logical Position",Fi=c(),hl=s("span"),Ui=p("x: "),Bl=p(pl),qi=c(),bl=s("span"),Bi=p("y: "),jl=p(_l),Vl=c(),Gl=s("br"),Xl=c(),_n=s("h4"),_n.textContent="Cursor",Yl=c(),Qe=s("div"),gl=s("label"),jt=s("input"),ji=p(`
|
|
|
|
Grab`),Vi=c(),ml=s("label"),Vt=s("input"),Gi=p(`
|
|
|
|
Visible`),Xi=c(),wl=s("label"),Gt=s("input"),Yi=p(`
|
|
|
|
Ignore events`),Kl=c(),Ze=s("div"),vl=s("label"),Ki=p(`Icon
|
|
|
|
`),Je=s("select");for(let u=0;u<we.length;u+=1)we[u].c();Qi=c(),yl=s("label"),Zi=p(`X position
|
|
|
|
`),ut=s("input"),Ji=c(),kl=s("label"),xi=p(`Y position
|
|
|
|
`),ct=s("input"),Ql=c(),Zl=s("br"),Jl=c(),gn=s("div"),Lt=s("form"),dt=s("input"),$i=c(),mn=s("button"),mn.textContent="Set title",xl=c(),$l=s("br"),ei=c(),wn=s("div"),Xt=s("div"),Ll=s("label"),es=p(`Progress Status
|
|
|
|
`),xe=s("select");for(let u=0;u<ve.length;u+=1)ve[u].c();ts=c(),Cl=s("label"),ns=p(`Progress
|
|
|
|
`),Ye=s("input"),ti=c(),Ct&&Ct.c(),ni=fi(),a(h,"class","input grow"),a(d,"class","btn"),a(d,"type","submit"),a(g,"class","flex gap-1 grow"),a(i,"class","flex gap-1 items-center"),a(I,"class","btn"),a(I,"title","Unminimizes after 2 seconds"),a(D,"class","btn"),a(D,"title","Unminimizes after 2 seconds"),a(H,"class","btn"),a(H,"title","Visible again after 2 seconds"),a(V,"class","btn"),a(V,"title","Minimizes the window, requests attention for 3s and then resets it"),a(S,"class","flex flex-wrap gap-2"),a(T,"type","checkbox"),a(F,"type","checkbox"),a(K,"type","checkbox"),a(oe,"type","checkbox"),a(ne,"type","checkbox"),a(z,"type","checkbox"),a(pe,"type","checkbox"),a(be,"type","checkbox"),a(ce,"type","checkbox"),a(Ne,"type","checkbox"),a(O,"class","flex flex-wrap gap-2"),a(Te,"class","input"),a(Te,"type","number"),a(Te,"min","0"),a(Re,"class","input"),a(Re,"type","number"),a(Re,"min","0"),a(P,"class","flex children:grow flex-col"),a(He,"class","input"),a(He,"type","number"),a(He,"min","400"),a(Fe,"class","input"),a(Fe,"type","number"),a(Fe,"min","400"),a($e,"class","flex children:grow flex-col"),a(Ve,"class","input"),a(Ve,"type","number"),a(Ge,"class","input"),a(Ge,"type","number"),a(et,"class","flex children:grow flex-col"),a(Ue,"class","input"),a(Ue,"type","number"),a(Ue,"min","800"),a(qe,"class","input"),a(qe,"type","number"),a(qe,"min","400"),a(tt,"class","flex children:grow flex-col"),a(Z,"class","flex flex-row gap-2 flex-wrap"),a(A,"class","text-accent dark:text-darkAccent font-700"),a(Xe,"class","grow"),a(mt,"class","text-accent dark:text-darkAccent font-700"),a(Be,"class","grow"),a(nt,"class","flex"),a(qn,"class","text-accent dark:text-darkAccent font-700"),a(lt,"class","grow"),a(Xn,"class","text-accent dark:text-darkAccent font-700"),a(it,"class","grow"),a(Ut,"class","flex"),a(Jn,"class","text-accent dark:text-darkAccent font-700"),a(st,"class","grow"),a(nl,"class","text-accent dark:text-darkAccent font-700"),a(ot,"class","grow"),a(qt,"class","flex"),a(al,"class","text-accent dark:text-darkAccent font-700"),a(at,"class","grow"),a(fl,"class","text-accent dark:text-darkAccent font-700"),a(rt,"class","grow"),a(Bt,"class","flex"),a(_n,"class","mb-2"),a(jt,"type","checkbox"),a(Vt,"type","checkbox"),a(Gt,"type","checkbox"),a(Qe,"class","flex gap-2"),a(Je,"class","input"),e[24]===void 0&&ht(()=>e[83].call(Je)),a(ut,"class","input"),a(ut,"type","number"),a(ct,"class","input"),a(ct,"type","number"),a(Ze,"class","flex gap-2"),a(dt,"class","input grow"),a(dt,"id","title"),a(mn,"class","btn"),a(mn,"type","submit"),a(Lt,"class","flex gap-1"),a(gn,"class","flex flex-col gap-1"),a(xe,"class","input"),e[26]===void 0&&ht(()=>e[87].call(xe)),a(Ye,"class","input"),a(Ye,"type","number"),a(Ye,"min","0"),a(Ye,"max","100"),a(Xt,"class","flex gap-2"),a(wn,"class","flex flex-col gap-1")},m(u,f){w(u,t,f),w(u,n,f),w(u,i,f),l(i,o),l(i,r),l(i,g),l(g,h),E(h,e[43]),l(g,b),l(g,d),w(u,W,f),w(u,L,f),w(u,Y,f),w(u,S,f),l(S,I),l(S,M),l(S,D),l(S,ae),l(S,H),l(S,N),l(S,V),w(u,G,f),w(u,O,f),l(O,B),l(B,re),l(B,T),T.checked=e[6],l(O,x),l(O,te),l(te,y),l(te,F),F.checked=e[2],l(O,j),l(O,$),l($,ue),l($,K),K.checked=e[3],l(O,ge),l(O,ke),l(ke,de),l(ke,oe),oe.checked=e[4],l(O,Q),l(O,he),l(he,U),l(he,ne),ne.checked=e[5],l(O,J),l(O,v),l(v,X),l(v,z),z.checked=e[7],l(O,fe),l(O,ze),l(ze,me),l(ze,pe),pe.checked=e[8],l(O,We),l(O,Pe),l(Pe,Ae),l(Pe,be),be.checked=e[9],l(O,_e),l(O,Le),l(Le,Oe),l(Le,ce),ce.checked=e[10],l(O,Ce),l(O,le),l(le,De),l(le,Ne),Ne.checked=e[11],w(u,Ee,f),w(u,ie,f),w(u,C,f),w(u,Z,f),l(Z,P),l(P,Ie),l(Ie,Sn),l(Ie,Te),E(Te,e[18]),l(P,zn),l(P,Et),l(Et,Pn),l(Et,Re),E(Re,e[19]),l(Z,On),l(Z,$e),l($e,It),l(It,En),l(It,He),E(He,e[12]),l($e,In),l($e,Mt),l(Mt,Mn),l(Mt,Fe),E(Fe,e[13]),l(Z,Wn),l(Z,et),l(et,Wt),l(Wt,An),l(Wt,Ve),E(Ve,e[14]),l(et,Dn),l(et,At),l(At,Nn),l(At,Ge),E(Ge,e[15]),l(Z,Tn),l(Z,tt),l(tt,Dt),l(Dt,Rn),l(Dt,Ue),E(Ue,e[16]),l(tt,Hn),l(tt,Nt),l(Nt,Fn),l(Nt,qe),E(qe,e[17]),w(u,ln,f),w(u,sn,f),w(u,on,f),w(u,Me,f),l(Me,nt),l(nt,Xe),l(Xe,A),l(Xe,an),l(Xe,pt),l(pt,rn),l(pt,Tt),l(Xe,un),l(Xe,_t),l(_t,cn),l(_t,Rt),l(nt,dn),l(nt,Be),l(Be,mt),l(Be
|
|
|
|
`),r=s("select");for(let v=0;v<U.length;v+=1)U[v].c();g=c(),h=s("label"),b=p(`State
|
|
|
|
`),d=s("select");for(let v=0;v<J.length;v+=1)J[v].c();W=c(),L=s("label"),Y=p(`Radius
|
|
|
|
`),S=s("input"),I=c(),M=s("div"),D=s("label"),ae=p(`Color
|
|
|
|
`),H=s("div"),N=s("input"),V=c(),G=s("input"),O=c(),B=s("input"),re=c(),T=s("input"),x=c(),te=s("div"),y=s("button"),y.textContent="Add",F=c(),j=s("div"),$=s("div"),ue=p("Applied effects: "),ge=p(K),ke=c(),de=s("button"),de.textContent="Clear",a(r,"class","input"),e[36]===void 0&&ht(()=>e[89].call(r)),a(d,"class","input"),e[37]===void 0&&ht(()=>e[90].call(d)),a(S,"class","input"),a(S,"type","number"),a(n,"class","flex"),Qt(N,"max-width","120px"),a(N,"class","input"),a(N,"type","number"),a(N,"placeholder","R"),Qt(G,"max-width","120px"),a(G,"class","input"),a(G,"type","number"),a(G,"placeholder","G"),Qt(B,"max-width","120px"),a(B,"class","input"),a(B,"type","number"),a(B,"placeholder","B"),Qt(T,"max-width","120px"),a(T,"class","input"),a(T,"type","number"),a(T,"placeholder","A"),a(H,"class","flex"),a(M,"class","flex"),a(y,"class","btn"),Qt(y,"width","80px"),a(te,"class","flex"),a(de,"class","btn"),Qt(de,"width","80px"),a(j,"class","flex"),a(t,"class","flex flex-col gap-1")},m(v,X){w(v,t,X),l(t,n),l(n,i),l(i,o),l(i,r);for(let z=0;z<U.length;z+=1)U[z]&&U[z].m(r,null);Ke(r,e[36],!0),l(n,g),l(n,h),l(h,b),l(h,d);for(let z=0;z<J.length;z+=1)J[z]&&J[z].m(d,null);Ke(d,e[37],!0),l(n,W),l(n,L),l(L,Y),l(L,S),E(S,e[38]),l(t,I),l(t,M),l(M,D),l(D,ae),l(D,H),l(H,N),E(N,e[39]),l(H,V),l(H,G),E(G,e[40]),l(H,O),l(H,B),E(B,e[41]),l(H,re),l(H,T),E(T,e[42]),l(t,x),l(t,te),l(te,y),l(t,F),l(t,j),l(j,$),l($,ue),l($,ge),l(j,ke),l(j,de),oe||(Q=[k(r,"change",e[89]),k(d,"change",e[90]),k(S,"input",e[91]),k(N,"input",e[92]),k(G,"input",e[93]),k(B,"input",e[94]),k(T,"input",e[95]),k(y,"click",e[55]),k(de,"click",e[56])],oe=!0)},p(v,X){if(X[1]&65536){he=ye(v[47]);let z;for(z=0;z<he.length;z+=1){const fe=fs(v,he,z);U[z]?U[z].p(fe,X):(U[z]=ys(fe),U[z].c(),U[z].m(r,null))}for(;z<U.length;z+=1)U[z].d(1);U.length=he.length}if(X[1]&65568&&Ke(r,v[36]),X[1]&131072){ne=ye(v[48]);let z;for(z=0;z<ne.length;z+=1){const fe=ds(v,ne,z);J[z]?J[z].p(fe,X):(J[z]=ks(fe),J[z].c(),J[z].m(d,null))}for(;z<J.length;z+=1)J[z].d(1);J.length=ne.length}X[1]&131136&&Ke(d,v[37]),X[1]&128&&q(S.value)!==v[38]&&E(S,v[38]),X[1]&256&&q(N.value)!==v[39]&&E(N,v[39]),X[1]&512&&q(G.value)!==v[40]&&E(G,v[40]),X[1]&1024&&q(B.value)!==v[41]&&E(B,v[41]),X[1]&2048&&q(T.value)!==v[42]&&E(T,v[42]),X[1]&16&&K!==(K=(v[35].length?v[35].join(","):"None")+"")&&se(ge,K)},d(v){v&&m(t),Pt(U,v),Pt(J,v),oe=!1,je(Q)}}}function ys(e){let t,n=e[108]+"",i;return{c(){t=s("option"),i=p(n),t.__value=e[108],E(t,t.__value)},m(o,r){w(o,t,r),l(t,i)},p:ee,d(o){o&&m(t)}}}function ks(e){let t,n=e[105]+"",i;return{c(){t=s("option"),i=p(n),t.__value=e[105],E(t,t.__value)},m(o,r){w(o,t,r),l(t,i)},p:ee,d(o){o&&m(t)}}}function vo(e){let t,n,i,o,r,g,h,b,d=Object.keys(e[1]).length>=1,W,L,Y,S=d&&_s(e),I=e[1][e[0]]&&ms(e);return{c(){t=s("div"),n=s("div"),i=s("input"),o=c(),r=s("button"),r.textContent="New window",g=c(),h=s("br"),b=c(),S&&S.c(),W=c(),I&&I.c(),a(i,"class","input grow"),a(i,"type","text"),a(i,"placeholder","New Window label.."),a(r,"class","btn"),a(n,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(M,D){w(M,t,D),l(t,n),l(n,i),E(i,e[28]),l(n,o),l(n,r),l(t,g),l(t,h),l(t,b),S&&S.m(t,null),l(t,W),I&&I.m(t,null),L||(Y=[k(i,"input",e[58]),k(r,"click",e[53])],L=!0)},p(M,D){D[0]&268435456&&i.value!==M[28]&&E(i,M[28]),D[0]&2&&(d=Object.keys(M[1]).length>=1),d?S?S.p(M,D):(S=_s(M),S.c(),S.m(t,W)):S&&(S.d(1),S=null),M[1][M[0]]?I?I.p(M,D):(I=ms(M),I.c(),I.m(t,null)):I&&(I.d(1),I=null)},i:ee,o:ee,d(M){M&&m(t),S&&S.d(),I&&I.d(),L=!1,je(Y)}}}function yo(e,t,n){const i=Ts();let o=i.label;const r={[i.label]:i},g=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"],h=["mica","blur","acrylic","tabbed","tabbedDark","tabbedLight"],b=navigator.appVersion.includes("Windows"),d=navigator.appVersion.includes(
|
|
|
|
`),n=s("div"),a(n,"class","i-ph-moon")},m(i,o){w(i,t,o),w(i,n,o)},d(i){i&&(m(t),m(n))}}}function Wo(e){let t,n;return{c(){t=p(`Switch to Light mode
|
|
|
|
`),n=s("div"),a(n,"class","i-ph-sun")},m(i,o){w(i,t,o),w(i,n,o)},d(i){i&&(m(t),m(n))}}}function Ao(e){let t,n,i,o,r,g,h;function b(){return e[14](e[28])}return{c(){t=s("a"),n=s("div"),i=c(),o=s("p"),o.textContent=`${e[28].label}`,a(n,"class",e[28].icon+" mr-2"),a(t,"href","##"),a(t,"class",r="nv "+(e[1]===e[28]?"nv_selected":""))},m(d,W){w(d,t,W),l(t,n),l(t,i),l(t,o),g||(h=k(t,"click",b),g=!0)},p(d,W){e=d,W&2&&r!==(r="nv "+(e[1]===e[28]?"nv_selected":""))&&a(t,"class",r)},d(d){d&&m(t),g=!1,h()}}}function Ss(e){let t,n=e[28]&&Ao(e);return{c(){n&&n.c(),t=fi()},m(i,o){n&&n.m(i,o),w(i,t,o)},p(i,o){i[28]&&n.p(i,o)},d(i){i&&m(t),n&&n.d(i)}}}function zs(e){let t,n=e[25].html+"",i;return{c(){t=new Gs(!1),i=fi(),t.a=i},m(o,r){t.m(n,o,r),w(o,i,r)},p(o,r){r&16&&n!==(n=o[25].html+"")&&t.p(n)},d(o){o&&(m(i),t.d())}}}function Do(e){let t,n,i,o,r,g,h,b,d,W,L,Y,S,I,M,D,ae,H,N,V,G,O,B,re,T,x,te,y,F,j,$,ue,K=e[1].label+"",ge,ke,de,oe,Q,he,U,ne,J,v,X,z,fe,ze,me,pe,We,Pe;function Ae(C,Z){return C[0]?Io:Eo}let be=Ae(e),_e=be(e);function Le(C,Z){return C[2]?Wo:Mo}let Oe=Le(e),ce=Oe(e),Ce=ye(e[5]),le=[];for(let C=0;C<Ce.length;C+=1)le[C]=Ss(Cs(e,Ce,C));var De=e[1].component;function Ne(C,Z){return{props:{onMessage:C[9],insecureRenderHtml:C[10]}}}De&&(Q=os(De,Ne(e)));let Ee=ye(e[4]),ie=[];for(let C=0;C<Ee.length;C+=1)ie[C]=zs(Ls(e,Ee,C));return{c(){t=s("div"),_e.c(),n=c(),i=s("div"),o=s("aside"),r=s("img"),h=c(),b=s("a"),ce.c(),d=c(),W=s("br"),L=c(),Y=s("div"),S=c(),I=s("br"),M=c(),D=s("a"),D.innerHTML=`Documentation
|
2023-10-20 06:04:26 +03:00
|
|
|
<span class="i-codicon-link-external"></span>`,ae=c(),H=s("a"),H.innerHTML=`GitHub
|
2023-10-24 00:22:00 +03:00
|
|
|
<span class="i-codicon-link-external"></span>`,N=c(),V=s("a"),V.innerHTML=`Source
|
|
|
|
<span class="i-codicon-link-external"></span>`,G=c(),O=s("br"),B=c(),re=s("div"),T=c(),x=s("br"),te=c(),y=s("div");for(let C=0;C<le.length;C+=1)le[C].c();F=c(),j=s("main"),$=s("div"),ue=s("h1"),ge=p(K),ke=c(),de=s("div"),oe=s("div"),Q&&us(Q.$$.fragment),he=c(),U=s("div"),ne=s("div"),J=c(),v=s("div"),X=s("p"),X.textContent="Console",z=c(),fe=s("div"),fe.innerHTML='<div class="i-codicon-clear-all"></div>',ze=c(),me=s("div");for(let C=0;C<ie.length;C+=1)ie[C].c();a(t,"id","sidebarToggle"),a(t,"class","z-2000 display-none lt-sm:flex justify-center items-center absolute top-2 left-2 w-8 h-8 rd-8 bg-accent dark:bg-darkAccent active:bg-accentDark dark:active:bg-darkAccentDark"),a(r,"class","self-center p-7 cursor-pointer"),Fs(r.src,g="tauri_logo.png")||a(r,"src",g),a(r,"alt","Tauri logo"),a(b,"href","##"),a(b,"class","nv justify-between h-8"),a(Y,"class","bg-white/5 h-2px"),a(D,"class","nv justify-between h-8"),a(D,"target","_blank"),a(D,"href","https://tauri.app/v1/guides/"),a(H,"class","nv justify-between h-8"),a(H,"target","_blank"),a(H,"href","https://github.com/tauri-apps/tauri"),a(V,"class","nv justify-between h-8"),a(V,"target","_blank"),a(V,"href","https://github.com/tauri-apps/tauri/tree/dev/examples/api"),a(re,"class","bg-white/5 h-2px"),a(y,"class","flex flex-col overflow-y-auto children-h-10 children-flex-none gap-1"),a(o,"id","sidebar"),a(o,"class","lt-sm:h-screen lt-sm:shadow-lg lt-sm:shadow lt-sm:transition-transform lt-sm:absolute lt-sm:z-1999 bg-darkPrimaryLighter transition-colors-250 overflow-hidden grid grid-rows-[min-content_auto] select-none px-2"),a(oe,"class","mr-2"),a(de,"class","overflow-y-auto"),a($,"class","px-5 overflow-hidden grid grid-rows-[auto_1fr]"),a(ne,"class","bg-black/20 h-2px cursor-ns-resize"),a(X,"class","font-semibold"),a(fe,"class","cursor-pointer h-85% rd-1 p-1 flex justify-center items-center hover:bg-hoverOverlay dark:hover:bg-darkHoverOverlay active:bg-hoverOverlay/25 dark:active:bg-darkHoverOverlay/25 "),a(v,"class","flex justify-between items-center px-2"),a(me,"class","px-2 overflow-y-auto all:font-mono code-block all:text-xs"),a(U,"id","console"),a(U,"class","select-none h-15rem grid grid-rows-[2px_2rem_1fr] gap-1 overflow-hidden"),a(j,"class","flex-1 bg-primary dark:bg-darkPrimary transition-transform transition-colors-250 grid grid-rows-[2fr_auto]"),a(i,"class","flex h-screen w-screen overflow-hidden children-pt8 children-pb-2 text-primaryText dark:text-darkPrimaryText")},m(C,Z){w(C,t,Z),_e.m(t,null),w(C,n,Z),w(C,i,Z),l(i,o),l(o,r),l(o,h),l(o,b),ce.m(b,null),l(o,d),l(o,W),l(o,L),l(o,Y),l(o,S),l(o,I),l(o,M),l(o,D),l(o,ae),l(o,H),l(o,N),l(o,V),l(o,G),l(o,O),l(o,B),l(o,re),l(o,T),l(o,x),l(o,te),l(o,y);for(let P=0;P<le.length;P+=1)le[P]&&le[P].m(y,null);l(i,F),l(i,j),l(j,$),l($,ue),l(ue,ge),l($,ke),l($,de),l(de,oe),Q&&ui(Q,oe,null),l(j,he),l(j,U),l(U,ne),l(U,J),l(U,v),l(v,X),l(v,z),l(v,fe),l(U,ze),l(U,me);for(let P=0;P<ie.length;P+=1)ie[P]&&ie[P].m(me,null);e[15](U),pe=!0,We||(Pe=[k(b,"click",e[7]),k(ne,"mousedown",e[12]),k(fe,"click",e[11])],We=!0)},p(C,[Z]){if(be!==(be=Ae(C))&&(_e.d(1),_e=be(C),_e&&(_e.c(),_e.m(t,null))),Oe!==(Oe=Le(C))&&(ce.d(1),ce=Oe(C),ce&&(ce.c(),ce.m(b,null))),Z&99){Ce=ye(C[5]);let P;for(P=0;P<Ce.length;P+=1){const Ie=Cs(C,Ce,P);le[P]?le[P].p(Ie,Z):(le[P]=Ss(Ie),le[P].c(),le[P].m(y,null))}for(;P<le.length;P+=1)le[P].d(1);le.length=Ce.length}if((!pe||Z&2)&&K!==(K=C[1].label+"")&&se(ge,K),Z&2&&De!==(De=C[1].component)){if(Q){Zs();const P=Q;rs(P.$$.fragment,1,0,()=>{ci(P,1)}),Js()}De?(Q=os(De,Ne(C)),us(Q.$$.fragment),ri(Q.$$.fragment,1),ui(Q,oe,null)):Q=null}if(Z&16){Ee=ye(C[4]);let P;for(P=0;P<Ee.length;P+=1){const Ie=Ls(C,Ee,P);ie[P]?ie[P].p(Ie,Z):(ie[P]=zs(Ie),ie[P].c(),ie[P].m(me,null))}for(;P<ie.length;P+=1)ie[P].d(1);ie.length=Ee.length}},i(C){pe||(Q&&ri(Q.$$.fragment,C),pe=!0)},o(C){Q&&rs(Q.$$.fragment,C),pe=!1},d(C){C&&(m(t),m(n),m(i)),_e.d(),ce.d(),Pt(le,C),Q&&ci(Q),Pt(ie,C),e[15](null),We=!1,je(Pe)}}}let Ps=50;function Os(e){const t=document.querySelector("html");e?t.classList.add("dark"):t.classList.remove("dark"),localStorage&&localStorage.
|