1/** 2 * Minified by jsDelivr using Terser v5.15.1. 3 * Original file: /npm/@github/[email protected]/dist/browser-global/webauthn-json.browser-global.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7"use strict";(()=>{var e=Object.defineProperty,t=(e,t,n)=>new Promise(((r,i)=>{var a=e=>{try{c(n.next(e))}catch(e){i(e)}},o=e=>{try{c(n.throw(e))}catch(e){i(e)}},c=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);c((n=n.apply(e,t)).next())})),n={};function r(e){const t="==".slice(0,(4-e.length%4)%4),n=e.replace(/-/g,"+").replace(/_/g,"/")+t,r=atob(n),i=new ArrayBuffer(r.length),a=new Uint8Array(i);for(let e=0;e<r.length;e++)a[e]=r.charCodeAt(e);return i}function i(e){const t=new Uint8Array(e);let n="";for(const e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(n,{create:()=>b,get:()=>w,schema:()=>m,supported:()=>C});var a="copy",o="convert";function c(e,t,n){if(t===a)return n;if(t===o)return e(n);if(t instanceof Array)return n.map((n=>c(e,t[0],n)));if(t instanceof Object){const r={};for(const[i,a]of Object.entries(t)){if(a.derive){const e=a.derive(n);void 0!==e&&(n[i]=e)}if(i in n)null!=n[i]?r[i]=c(e,a.schema,n[i]):r[i]=null;else if(a.required)throw new Error(`Missing key: ${i}`)}return r}}function s(e,t){return{required:!0,schema:e,derive:t}}function l(e){return{required:!0,schema:e}}function u(e){return{required:!1,schema:e}}var d={type:l(a),id:l(o),transports:u(a)},p={appid:u(a),appidExclude:u(a),credProps:u(a)},f={appid:u(a),appidExclude:u(a),credProps:u(a)},h={publicKey:l({rp:l(a),user:l({id:l(o),name:l(a),displayName:l(a)}),challenge:l(o),pubKeyCredParams:l(a),timeout:u(a),excludeCredentials:u([d]),authenticatorSelection:u(a),attestation:u(a),extensions:u(p)}),signal:u(a)},g={type:l(a),id:l(a),rawId:l(o),authenticatorAttachment:u(a),response:l({clientDataJSON:l(o),attestationObject:l(o),transports:s(a,(e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]}))}),clientExtensionResults:s(f,(e=>e.getClientExtensionResults()))},y={mediation:u(a),publicKey:l({challenge:l(o),timeout:u(a),rpId:u(a),allowCredentials:u([d]),userVerification:u(a),extensions:u(p)}),signal:u(a)},v={type:l(a),id:l(a),rawId:l(o),authenticatorAttachment:u(a),response:l({clientDataJSON:l(o),authenticatorData:l(o),signature:l(o),userHandle:l(o)}),clientExtensionResults:s(f,(e=>e.getClientExtensionResults()))},m={credentialCreationOptions:h,publicKeyCredentialWithAttestation:g,credentialRequestOptions:y,publicKeyCredentialWithAssertion:v};function b(e){return t(this,null,(function*(){const t=yield navigator.credentials.create(function(e){return c(r,h,e)}(e));return function(e){return c(i,g,e)}(t)}))}function w(e){return t(this,null,(function*(){const t=yield navigator.credentials.get(function(e){return c(r,y,e)}(e));return function(e){return c(i,v,e)}(t)}))}function C(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}globalThis.webauthnJSON=n})(); 8//# sourceMappingURL=/sm/9f25fda52a07417d88f37e1f0fa93af17c12217dfddcd6b15a1ce5eac86b6c97.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.