`),dt=c("input"),xe=g(),st=c("div"),qt=c("div"),_t=c("div"),tn=c("div"),tn.textContent="Inner Size",Xn=g(),Vt=c("span"),Yn=S("Width: "),en=S(Ee),Qn=g(),Kt=c("span"),Zn=S("Height: "),nn=S(Oe),xn=g(),bt=c("div"),on=c("div"),on.textContent="Outer Size",ti=g(),Xt=c("span"),ei=S("Width: "),rn=S(We),ni=g(),Yt=c("span"),ii=S("Height: "),ln=S(Ae),oi=g(),Nt=c("div"),yt=c("div"),un=c("div"),un.textContent="Inner Logical Size",ri=g(),Qt=c("span"),li=S("Width: "),sn=S(Re),ui=g(),Zt=c("span"),si=S("Height: "),an=S(De),ai=g(),wt=c("div"),cn=c("div"),cn.textContent="Outer Logical Size",ci=g(),xt=c("span"),di=S("Width: "),dn=S(He),fi=g(),te=c("span"),pi=S("Height: "),fn=S(Ue),hi=g(),Ft=c("div"),kt=c("div"),pn=c("div"),pn.textContent="Inner Position",mi=g(),ee=c("span"),vi=S("x: "),hn=S(je),gi=g(),ne=c("span"),_i=S("y: "),mn=S(Ie),bi=g(),Mt=c("div"),vn=c("div"),vn.textContent="Outer Position",yi=g(),ie=c("span"),wi=S("x: "),gn=S(qe),ki=g(),oe=c("span"),Mi=S("y: "),_n=S(Ne),Ti=g(),Gt=c("div"),Tt=c("div"),bn=c("div"),bn.textContent="Inner Logical Position",Ci=g(),re=c("span"),Si=S("x: "),yn=S(Fe),Pi=g(),le=c("span"),Li=S("y: "),wn=S(Ge),zi=g(),Ct=c("div"),kn=c("div"),kn.textContent="Outer Logical Position",Ei=g(),ue=c("span"),Oi=S("x: "),Mn=S(Be),Wi=g(),se=c("span"),Ai=S("y: "),Tn=S($e),Cn=g(),St=c("form"),Ot=c("input"),Ri=g(),ae=c("button"),ae.textContent="Set title",Sn=g(),Pt=c("form"),Wt=c("input"),Di=g(),ce=c("button"),ce.textContent="Open URL",Pn=g(),At=c("button"),At.textContent="Request attention",Ln=g(),Bt=c("button"),Bt.textContent="New window",d(n,"class","button"),e[0]===void 0&&Fi(()=>e[31].call(n)),d(u,"type","checkbox"),d(s,"type","checkbox"),d(h,"title","Unminimizes after 2 seconds"),d(w,"title","Unminimizes after 2 seconds"),d(P,"title","Visible again after 2 seconds"),d(U,"type","checkbox"),d(F,"type","checkbox"),d(G,"type","checkbox"),d(Z,"type","checkbox"),d(ot,"type","number"),d(ot,"min","0"),d(ot,"class","svelte-12ggtr4"),d(rt,"type","number"),d(rt,"min","0"),d(rt,"class","svelte-12ggtr4"),d(ht,"class","flex col grow svelte-12ggtr4"),d(lt,"type","number"),d(lt,"min","400"),d(lt,"class","svelte-12ggtr4"),d(ut,"type","number"),d(ut,"min","400"),d(ut,"class","svelte-12ggtr4"),d(mt,"class","flex col grow svelte-12ggtr4"),d(vt,"type","number"),d(vt,"class","svelte-12ggtr4"),d(gt,"type","number"),d(gt,"class","svelte-12ggtr4"),d(N,"class","flex col grow svelte-12ggtr4"),d(ct,"type","number"),d(ct,"min","400"),d(ct,"class","svelte-12ggtr4"),d(dt,"type","number"),d(dt,"min","400"),d(dt,"class","svelte-12ggtr4"),d(It,"class","flex col grow svelte-12ggtr4"),d(nt,"class","window-controls flex flex-row svelte-12ggtr4"),d(t,"class","flex col"),d(Vt,"class","svelte-12ggtr4"),d(Kt,"class","svelte-12ggtr4"),d(_t,"class","grow window-property svelte-12ggtr4"),d(Xt,"class","svelte-12ggtr4"),d(Yt,"class","svelte-12ggtr4"),d(bt,"class","grow window-property svelte-12ggtr4"),d(qt,"class","flex"),d(Qt,"class","svelte-12ggtr4"),d(Zt,"class","svelte-12ggtr4"),d(yt,"class","grow window-property svelte-12ggtr4"),d(xt,"class","svelte-12ggtr4"),d(te,"class","svelte-12ggtr4"),d(wt,"class","grow window-property svelte-12ggtr4"),d(Nt,"class","flex"),d(ee,"class","svelte-12ggtr4"),d(ne,"class","svelte-12ggtr4"),d(kt,"class","grow window-property svelte-12ggtr4"),d(ie,"class","svelte-12ggtr4"),d(oe,"class","svelte-12ggtr4"),d(Mt,"class","grow window-property svelte-12ggtr4"),d(Ft,"class","flex"),d(re,"class","svelte-12ggtr4"),d(le,"class","svelte-12ggtr4"),d(Tt,"class","grow window-property svelte-12ggtr4"),d(ue,"class","svelte-12ggtr4"),d(se,"class","svelte-12ggtr4"),d(Ct,"class","grow window-property svelte-12ggtr4"),d(Gt,"class","flex"),d(Ot,"id","title"),d(ae,"class","button"),d(ae,"type","submit"),ft(St,"margin-top","24px"),d(Wt,"id","url"),d(ce,"class","button"),d(ce,"id","open-url"),ft(Pt,"margin-top","24px"),d(At,"class","button"),d(At,"title","Minimizes the window, requests attention for 3s and then resets it"),d(Bt,"class","button")},m(y,W){z(y,t,W),l(t,n);for(let J=0;J<x.length;J+=1)x[J].m(n,null);Ke(n,e[0]),l(t,o),l(t,i),l(i,r),
<videoid="localVideo"autoplay=""playsinline=""><trackkind="captions"/></video>`},m(n,o){z(n,t,o)},p:q,i:q,o:q,d(n){n&&E(t)}}}function al(e,t,n){let{onMessage:o}=t;const i=window.constraints={audio:!0,video:!0};function r(a){const p=document.querySelector("video"),f=a.getVideoTracks();o("Got stream with constraints:",i),o(`Using video device: ${f[0].label}`),window.stream=a,p.srcObject=a}function u(a){if(a.name==="ConstraintNotSatisfiedError"){const p=i.video;o(`The resolution ${p.width.exact}x${p.height.exact} px is not supported by your device.`)}else a.name==="PermissionDeniedError"&&o("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");o(`getUserMedia error: ${a.name}`,a)}return Je(async()=>{try{const a=await navigator.mediaDevices.getUserMedia(i);r(a)}catch(a){u(a)}}),En(()=>{window.stream.getTracks().forEach(function(a){a.stop()})}),e.$$set=a=>{"onMessage"in a&&n(0,o=a.onMessage)},[o]}class cl extends X{constructor(t){super();Y(this,t,al,sl,Q,{onMessage:0})}}function dl(e){let t,n,o,i,r,u,a,p,f,s,v,m;return{c(){t=c("input"),n=g(),o=c("input"),i=g(),r=c("button"),r.textContent="Post it.",u=g(),a=c("p"),a.textContent="Result:",p=g(),f=c("pre"),s=S(e[2]),d(r,"type","button")},m(h,_){z(h,t,_),A(t,e[0]),z(h,n,_),z(h,o,_),A(o,e[1]),z(h,i,_),z(h,r,_),z(h,u,_),z(h,a,_),z(h,p,_),z(h,f,_),l(f,s),v||(m=[T(t,"input",e[4]),T(o,"input",e[5]),T(r,"click",e[3])],v=!0)},p(h,[_]){_&1&&t.value!==h[0]&&A(t,h[0]),_&2&&o.value!==h[1]&&A(o,h[1]),_&4&&$(s,h[2])},i:q,o:q,d(h){h&&E(t),h&&E(n),h&&E(o),h&&E(i),h&&E(r),h&&E(u),h&&E(a),h&&E(p),h&&E(f),v=!1,tt(m)}}}function fl(e,t,n){let o="baz",i="qux",r=null;async function u(){let f=navigator.userAgent.includes("Windows")?"https://customprotocol.test/example.html":"customprotocol://test/example.html";const v=await(await fetch(f,{method:"POST",body:JSON.stringify({foo:o,bar:i})})).json();n(2,r=JSON.stringify(v))}function a(){o=this.value,n(0,o)}function p(){i=this.value,n(1,i)}return[o,i,r,u,a,p]}class pl extends X{constructor(t){super();Y(this,t,fl,dl,Q,{})}}function So(e,t,n){const o=e.slice();return o[10]=t[n],o}function Po(e,t,n){const o=e.slice();return o[13]=t[n],o}function Lo(e){let t,n=e[13].label+"",o,i,r,u,a;function p(){return e[9](e[13])}return{c(){t=c("p"),o=S(n),i=g(),d(t,"class",r="nv noselect "+(e[0]===e[13]?"nv_selected":""))},m(f,s){z(f,t,s),l(t,o),l(t,i),u||(a=T(t,"click",p),u=!0)},p(f,s){e=f,s&1&&r!==(r="nv noselect "+(e[0]===e[13]?"nv_selected":""))&&d(t,"class",r)},d(f){f&&E(t),u=!1,a()}}}function hl(e){let t,n=e[10].html+"",o;return{c(){o=Ji(),t=new Io(o)},m(i,r){t.m(n,i,r),z(i,o,r)},p(i,r){r&2&&n!==(n=i[10].html+"")&&t.p(n)},d(i){i&&E(o),i&&t.d()}}}function ml(e){let t,n=e[10].text+"",o;return{c(){t=c("p"),o=S(n)},m(i,r){z(i,t,r),l(t,o)},p(i,r){r&2&&n!==(n=i[10].text+"")&&$(o,n)},d(i){i&&E(t)}}}function zo(e){let t;function n(r,u){return r[10].text?ml:hl}let o=n(e),i=o(e);return{c(){i.c(),t=Ji()},m(r,u){i.m(r,u),z(r,t,u)},p(r,u){o===(o=n(r))&&i?i.p(r,u):(i.d(1),i=o(r),i&&(i.c(),i.m(t.parentNode,t)))},d(r){i.d(r),r&&E(t)}}}function vl(e){let t,n,o,i,r,u,a,p,f,s,v,m,h,_,w,b,P,C,H,U,j,O,I=e[2],F=[];for(let D=0;D<I.length;D+=1)F[D]=Lo(Po(e,I,D));var et=e[0].component;function at(D){return{props:{onMessage:D[5],insecureRenderHtml:D[6]}}}et&&(m=new et(at(e)));let K=e[1],G=[];for(let D=0;D<K.length;D+=1)G[D]=zo(So(e,K,D));return{c(){t=c("main"),n=c("div"),o=c("img"),r=g(),u=c("div"),u.innerHTML=`<a class="dark-link" target="_blank" href="https://tauri.studio/en/docs/get-started/intro">Documentation</a>