console.log("begin"),(()=>{var e,t=Object.defineProperty,n=(e,o,l)=>new Promise((t,n)=>{var r=e=>{try{a(l.next(e))}catch(e){n(e)}},i=e=>{try{a(l.throw(e))}catch(e){n(e)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,i);a((l=l.apply(e,o)).next())}),r={},i=r,a={create:()=>function(t){return n(this,null,function*(){var e=yield navigator.credentials.create(u(o,y,t));return u(l,b,e)})},get:()=>function(t){return n(this,null,function*(){var e=yield navigator.credentials.get(u(o,m,t));return u(l,w,e)})},schema:()=>C,supported:()=>function(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}};for(e in a)t(i,e,{get:a[e],enumerable:!0});function o(e){var t="==".slice(0,(4-e.length%4)%4),e=e.replace(/-/g,"+").replace(/_/g,"/")+t,n=atob(e),t=new ArrayBuffer(n.length),r=new Uint8Array(t);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return t}function l(e){let t="";for(const n of new Uint8Array(e))t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var s="copy",c="convert";function u(t,n,e){if(n===s)return e;if(n===c)return t(e);if(n instanceof Array)return e.map(e=>u(t,n[0],e));if(n instanceof Object){var r,i,a,o={};for([r,i]of Object.entries(n))if(i.derive&&void 0!==(a=i.derive(e))&&(e[r]=a),r in e)null==e[r]?o[r]=null:o[r]=u(t,i.schema,e[r]);else if(i.required)throw new Error("Missing key: "+r);return o}}function d(e,t){return{required:!0,schema:e,derive:t}}function p(e){return{required:!0,schema:e}}function g(e){return{required:!1,schema:e}}var h={type:p(s),id:p(c),transports:g(s)},f={appid:g(s),appidExclude:g(s),credProps:g(s)},v={appid:g(s),appidExclude:g(s),credProps:g(s)},y={publicKey:p({rp:p(s),user:p({id:p(c),name:p(s),displayName:p(s)}),challenge:p(c),pubKeyCredParams:p(s),timeout:g(s),excludeCredentials:g([h]),authenticatorSelection:g(s),attestation:g(s),extensions:g(f)}),signal:g(s)},b={type:p(s),id:p(s),rawId:p(c),authenticatorAttachment:g(s),response:p({clientDataJSON:p(c),attestationObject:p(c),transports:d(s,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:d(v,e=>e.getClientExtensionResults())},m={mediation:g(s),publicKey:p({challenge:p(c),timeout:g(s),rpId:g(s),allowCredentials:g([h]),userVerification:g(s),extensions:g(f)}),signal:g(s)},w={type:p(s),id:p(s),rawId:p(c),authenticatorAttachment:g(s),response:p({clientDataJSON:p(c),authenticatorData:p(c),signature:p(c),userHandle:p(c)}),clientExtensionResults:d(v,e=>e.getClientExtensionResults())},C={credentialCreationOptions:y,publicKeyCredentialWithAttestation:b,credentialRequestOptions:m,publicKeyCredentialWithAssertion:w};console.log("about"),globalThis.webauthnJSON=r,console.log(globalThis.webauthnJSON)})(),console.log("done");