PageSourceSearch

https://www.thecookscook.com/_next/static/chunks/74449-c63cf87697790ea0.js

js thecookscook.com collected 2026-10-02 06:23:53 UTC 8,599 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74449],{74449:(e,t,r)=>{function n(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,"=")),o=new ArrayBuffer(n.length),a=new Uint8Array(o);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);return o}function a(){return i.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}r.d(t,{QK:()=>d,HS:()=>E,Ct:()=>p});let i={stubThis:e=>e};function s(e){let{id:t}=e;return{...e,id:o(t),transports:e.transports}}function l(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class c extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??r.name,this.code=t}}class u{createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}}let d=new u,h=["cross-platform","platform"];function R(e){if(e&&!(0>h.indexOf(e)))return e}async function p(e){let t,r,i,u,h;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:p,useAutoRegister:f=!1}=e;if(!a())throw Error("WebAuthn is not supported in this browser");let E={...p,challenge:o(p.challenge),user:{...p.user,id:o(p.user.id)},excludeCredentials:p.excludeCredentials?.map(s)},b={};f&&(b.mediation="conditional"),b.publicKey=E,b.signal=d.createNewAbortSignal();try{t=await navigator.credentials.create(b)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new c({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new c({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});else if("conditional"===t.mediation&&r.authenticatorSelection?.userVerification==="required")return new c({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});else if(r.authenticatorSelection?.userVerification==="required")return new c({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new c({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new c({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new c(0===r.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!l(t))return new c({message:`${globalThis.location.hostname}
1 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rp.id!==t)return new c({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new c({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new c({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:b})}if(!t)throw Error("Registration was not completed");let{id:w,rawId:m,response:A,type:y}=t;if("function"==typeof A.getTransports&&(i=A.getTransports()),"function"==typeof A.getPublicKeyAlgorithm)try{u=A.getPublicKeyAlgorithm()}catch(e){g("getPublicKeyAlgorithm()",e)}if("function"==typeof A.getPublicKey)try{let e=A.getPublicKey();null!==e&&(h=n(e))}catch(e){g("getPublicKey()",e)}if("function"==typeof A.getAuthenticatorData)try{r=n(A.getAuthenticatorData())}catch(e){g("getAuthenticatorData()",e)}return{id:w,rawId:n(m),response:{attestationObject:n(A.attestationObject),clientDataJSON:n(A.clientDataJSON),transports:i,publicKeyAlgorithm:u,publicKey:h,authenticatorData:r},type:y,clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:R(t.authenticatorAttachment)}}function g(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
2`,t)}let f={stubThis:e=>e};async function E(e){let t,r,i;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:u,useBrowserAutofill:h=!1,verifyBrowserAutofillInput:p=!0}=e;if(!a())throw Error("WebAuthn is not supported in this browser");u.allowCredentials?.length!==0&&(t=u.allowCredentials?.map(s));let g={...u,challenge:o(u.challenge),allowCredentials:t},E={};if(h){if(!await function(){if(!a())return f.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?f.stubThis(new Promise(e=>e(!1))):f.stubThis(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&p)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');E.mediation="conditional",g.allowCredentials=[]}E.publicKey=g,E.signal=d.createNewAbortSignal();try{r=await navigator.credentials.get(E)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new c({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new c({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!l(t))return new c({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new c({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new c({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:E})}if(!r)throw Error("Authentication was not completed");let{id:b,rawId:w,response:m,type:A}=r;return m.userHandle&&(i=n(m.userHandle)),{id:b,rawId:n(w),response:{authenticatorData:n(m.authenticatorData),clientDataJSON:n(m.clientDataJSON),signature:n(m.signature),userHandle:i},type:A,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:R(r.authenticatorAttachment)}}}}]);

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.