(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2422],{26077:function(K,G,J){"use strict";J.d(G,{Z:function(){return createCache}});var et=function(){function StyleSheet(K){var G=this;this._insertTag=function(K){var J;J=0===G.tags.length?G.insertionPoint?G.insertionPoint.nextSibling:G.prepend?G.container.firstChild:G.before:G.tags[G.tags.length-1].nextSibling,G.container.insertBefore(K,J),G.tags.push(K)},this.isSpeedy=void 0===K.speedy||K.speedy,this.tags=[],this.ctr=0,this.nonce=K.nonce,this.key=K.key,this.container=K.container,this.prepend=K.prepend,this.insertionPoint=K.insertionPoint,this.before=null}var K=StyleSheet.prototype;return K.hydrate=function(K){K.forEach(this._insertTag)},K.insert=function(K){if(this.ctr%(this.isSpeedy?65e3:1)==0){var G;this._insertTag(((G=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&G.setAttribute("nonce",this.nonce),G.appendChild(document.createTextNode("")),G.setAttribute("data-s",""),G))}var J=this.tags[this.tags.length-1];if(this.isSpeedy){var et=function(K){if(K.sheet)return K.sheet;for(var G=0;G-1&&!K.return)switch(K.type){case ei.h5:K.return=function prefix(K,G){switch((0,er.vp)(K,G)){case 5103:return ei.G$+"print-"+K+K;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ei.G$+K+K;case 5349:case 4246:case 4810:case 6968:case 2756:return ei.G$+K+ei.uj+K+ei.MS+K+K;case 6828:case 4268:return ei.G$+K+ei.MS+K+K;case 6165:return ei.G$+K+ei.MS+"flex-"+K+K;case 5187:return ei.G$+K+(0,er.gx)(K,/(\w+).+(:[^]+)/,ei.G$+"box-$1$2"+ei.MS+"flex-$1$2")+K;case 5443:return ei.G$+K+ei.MS+"flex-item-"+(0,er.gx)(K,/flex-|-self/,"")+K;case 4675:return ei.G$+K+ei.MS+"flex-line-pack"+(0,er.gx)(K,/align-content|flex-|-self/,"")+K;case 5548:return ei.G$+K+ei.MS+(0,er.gx)(K,"shrink","negative")+K;case 5292:return ei.G$+K+ei.MS+(0,er.gx)(K,"basis","preferred-size")+K;case 6060:return ei.G$+"box-"+(0,er.gx)(K,"-grow","")+ei.G$+K+ei.MS+(0,er.gx)(K,"grow","positive")+K;case 4554:return ei.G$+(0,er.gx)(K,/([^-])(transform)/g,"$1"+ei.G$+"$2")+K;case 6187:return(0,er.gx)((0,er.gx)((0,er.gx)(K,/(zoom-|grab)/,ei.G$+"$1"),/(image-set)/,ei.G$+"$1"),K,"")+K;case 5495:case 3959:return(0,er.gx)(K,/(image-set\([^]*)/,ei.G$+"$1$`$1");case 4968:return(0,er.gx)((0,er.gx)(K,/(.+:)(flex-)?(.*)/,ei.G$+"box-pack:$3"+ei.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ei.G$+K+K;case 4095:case 3583:case 4068:case 2532:return(0,er.gx)(K,/(.+)-inline(.+)/,ei.G$+"$1$2")+K;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,er.to)(K)-1-G>6)switch((0,er.uO)(K,G+1)){case 109:if(45!==(0,er.uO)(K,G+4))break;case 102:return(0,er.gx)(K,/(.+:)(.+)-([^]+)/,"$1"+ei.G$+"$2-$3$1"+ei.uj+(108==(0,er.uO)(K,G+3)?"$3":"$2-$3"))+K;case 115:return~(0,er.Cw)(K,"stretch")?prefix((0,er.gx)(K,"stretch","fill-available"),G)+K:K}break;case 4949:if(115!==(0,er.uO)(K,G+1))break;case 6444:switch((0,er.uO)(K,(0,er.to)(K)-3-(~(0,er.Cw)(K,"!important")&&10))){case 107:return(0,er.gx)(K,":",":"+ei.G$)+K;case 101:return(0,er.gx)(K,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ei.G$+(45===(0,er.uO)(K,14)?"inline-":"")+"box$3$1"+ei.G$+"$2$3$1"+ei.MS+"$2box$3")+K}break;case 5936:switch((0,er.uO)(K,G+11)){case 114:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"tb")+K;case 108:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"tb-rl")+K;case 45:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"lr")+K}return ei.G$+K+ei.MS+K+K}return K}(K.value,K.length);break;case ei.lK:return(0,eo.q)([(0,en.JG)(K,{value:(0,er.gx)(K.value,"@","@"+ei.G$)})],et);case ei.Fr:if(K.length)return(0,er.$e)(K.props,function(G){switch((0,er.EQ)(G,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,eo.q)([(0,en.JG)(K,{props:[(0,er.gx)(G,/:(read-\w+)/,":"+ei.uj+"$1")]})],et);case"::placeholder":return(0,eo.q)([(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,":"+ei.G$+"input-$1")]}),(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,":"+ei.uj+"$1")]}),(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,ei.MS+"input-$1")]})],et)}return""})}}],createCache=function(K){var G=K.key;if("css"===G){var J=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(J,function(K){-1!==K.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(K),K.setAttribute("data-s",""))})}var en=K.stylisPlugins||eu,er={},ei=[];ec=K.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+G+' "]'),function(K){for(var G=K.getAttribute("data-emotion").split(" "),J=1;J-1&&!K.return)switch(K.type){case ei.h5:K.return=function prefix(K,G){switch((0,er.vp)(K,G)){case 5103:return ei.G$+"print-"+K+K;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ei.G$+K+K;case 5349:case 4246:case 4810:case 6968:case 2756:return ei.G$+K+ei.uj+K+ei.MS+K+K;case 6828:case 4268:return ei.G$+K+ei.MS+K+K;case 6165:return ei.G$+K+ei.MS+"flex-"+K+K;case 5187:return ei.G$+K+(0,er.gx)(K,/(\w+).+(:[^]+)/,ei.G$+"box-$1$2"+ei.MS+"flex-$1$2")+K;case 5443:return ei.G$+K+ei.MS+"flex-item-"+(0,er.gx)(K,/flex-|-self/,"")+K;case 4675:return ei.G$+K+ei.MS+"flex-line-pack"+(0,er.gx)(K,/align-content|flex-|-self/,"")+K;case 5548:return ei.G$+K+ei.MS+(0,er.gx)(K,"shrink","negative")+K;case 5292:return ei.G$+K+ei.MS+(0,er.gx)(K,"basis","preferred-size")+K;case 6060:return ei.G$+"box-"+(0,er.gx)(K,"-grow","")+ei.G$+K+ei.MS+(0,er.gx)(K,"grow","positive")+K;case 4554:return ei.G$+(0,er.gx)(K,/([^-])(transform)/g,"$1"+ei.G$+"$2")+K;case 6187:return(0,er.gx)((0,er.gx)((0,er.gx)(K,/(zoom-|grab)/,ei.G$+"$1"),/(image-set)/,ei.G$+"$1"),K,"")+K;case 5495:case 3959:return(0,er.gx)(K,/(image-set\([^]*)/,ei.G$+"$1$`$1");case 4968:return(0,er.gx)((0,er.gx)(K,/(.+:)(flex-)?(.*)/,ei.G$+"box-pack:$3"+ei.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ei.G$+K+K;case 4095:case 3583:case 4068:case 2532:return(0,er.gx)(K,/(.+)-inline(.+)/,ei.G$+"$1$2")+K;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,er.to)(K)-1-G>6)switch((0,er.uO)(K,G+1)){case 109:if(45!==(0,er.uO)(K,G+4))break;case 102:return(0,er.gx)(K,/(.+:)(.+)-([^]+)/,"$1"+ei.G$+"$2-$3$1"+ei.uj+(108==(0,er.uO)(K,G+3)?"$3":"$2-$3"))+K;case 115:return~(0,er.Cw)(K,"stretch")?prefix((0,er.gx)(K,"stretch","fill-available"),G)+K:K}break;case 4949:if(115!==(0,er.uO)(K,G+1))break;case 6444:switch((0,er.uO)(K,(0,er.to)(K)-3-(~(0,er.Cw)(K,"!important")&&10))){case 107:return(0,er.gx)(K,":",":"+ei.G$)+K;case 101:return(0,er.gx)(K,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ei.G$+(45===(0,er.uO)(K,14)?"inline-":"")+"box$3$1"+ei.G$+"$2$3$1"+ei.MS+"$2box$3")+K}break;case 5936:switch((0,er.uO)(K,G+11)){case 114:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"tb")+K;case 108:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"tb-rl")+K;case 45:return ei.G$+K+ei.MS+(0,er.gx)(K,/[svh]\w+-[tblr]{2}/,"lr")+K}return ei.G$+K+ei.MS+K+K}return K}(K.value,K.length);break;case ei.lK:return(0,eo.q)([(0,en.JG)(K,{value:(0,er.gx)(K.value,"@","@"+ei.G$)})],et);case ei.Fr:if(K.length)return(0,er.$e)(K.props,function(G){switch((0,er.EQ)(G,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,eo.q)([(0,en.JG)(K,{props:[(0,er.gx)(G,/:(read-\w+)/,":"+ei.uj+"$1")]})],et);case"::placeholder":return(0,eo.q)([(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,":"+ei.G$+"input-$1")]}),(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,":"+ei.uj+"$1")]}),(0,en.JG)(K,{props:[(0,er.gx)(G,/:(plac\w+)/,ei.MS+"input-$1")]})],et)}return""})}}],createCache=function(K){var G=K.key;if("css"===G){var J=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(J,function(K){-1!==K.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(K),K.setAttribute("data-s",""))})}var en=K.stylisPlugins||eu,er={},ei=[];ec=K.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+G+' "]'),function(K){for(var G=K.getAttribute("data-emotion").split(" "),J=1;J=4;++et,en-=4)G=(65535&(G=255&K.charCodeAt(et)|(255&K.charCodeAt(++et))<<8|(255&K.charCodeAt(++et))<<16|(255&K.charCodeAt(++et))<<24))*1540483477+((G>>>16)*59797<<16),G^=G>>>24,J=(65535&G)*1540483477+((G>>>16)*59797<<16)^(65535&J)*1540483477+((J>>>16)*59797<<16);switch(en){case 3:J^=(255&K.charCodeAt(et+2))<<16;case 2:J^=(255&K.charCodeAt(et+1))<<8;case 1:J^=255&K.charCodeAt(et),J=(65535&J)*1540483477+((J>>>16)*59797<<16)}return J^=J>>>13,(((J=(65535&J)*1540483477+((J>>>16)*59797<<16))^J>>>15)>>>0).toString(36)}(ei)+ec,styles:ei,next:en}}},27278:function(K,G,J){"use strict";J.d(G,{L:function(){return ei}});var et,en=J(67294),er=!!(et||(et=J.t(en,2))).useInsertionEffect&&(et||(et=J.t(en,2))).useInsertionEffect,ei=er||function(K){return K()};er||en.useLayoutEffect},70444:function(K,G,J){"use strict";function getRegisteredStyles(K,G,J){var et="";return J.split(" ").forEach(function(J){void 0!==K[J]?G.push(K[J]+";"):J&&(et+=J+" ")}),et}J.d(G,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});var registerStyles=function(K,G,J){var et=K.key+"-"+G.name;!1===J&&void 0===K.registered[et]&&(K.registered[et]=G.styles)},insertStyles=function(K,G,J){registerStyles(K,G,J);var et=K.key+"-"+G.name;if(void 0===K.inserted[G.name]){var en=G;do K.insert(G===en?"."+et:"",en,K.sheet,!0),en=en.next;while(void 0!==en)}}},74444:function(K,G,J){"use strict";J.d(G,{$s:function(){return calculateBackoffMillis},BH:function(){return Deferred},L:function(){return base64urlEncodeWithoutPadding},LL:function(){return ErrorFactory},ZR:function(){return FirebaseError},aH:function(){return getDefaultAppConfig},eu:function(){return validateIndexedDBOpenable},hl:function(){return isIndexedDBAvailable},m9:function(){return getModularInstance},vZ:function(){return function deepEqual(K,G){if(K===G)return!0;let J=Object.keys(K),et=Object.keys(G);for(let en of J){if(!et.includes(en))return!1;let J=K[en],er=G[en];if(isObject(J)&&isObject(er)){if(!deepEqual(J,er))return!1}else if(J!==er)return!1}for(let K of et)if(!J.includes(K))return!1;return!0}}});var et=J(34155);/** * @license * Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */let stringToByteArray$1=function(K){let G=[],J=0;for(let et=0;et>6|192:((64512&en)==55296&&et+1>18|240,G[J++]=en>>12&63|128):G[J++]=en>>12|224,G[J++]=en>>6&63|128),G[J++]=63&en|128)}return G},byteArrayToString=function(K){let G=[],J=0,et=0;for(;J191&&en<224){let er=K[J++];G[et++]=String.fromCharCode((31&en)<<6|63&er)}else if(en>239&&en<365){let er=K[J++],ei=K[J++],eo=K[J++],es=((7&en)<<18|(63&er)<<12|(63&ei)<<6|63&eo)-65536;G[et++]=String.fromCharCode(55296+(es>>10)),G[et++]=String.fromCharCode(56320+(1023&es))}else{let er=K[J++],ei=K[J++];G[et++]=String.fromCharCode((15&en)<<12|(63&er)<<6|63&ei)}}return G.join("")},en={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(K,G){if(!Array.isArray(K))throw Error("encodeByteArray takes an array as a parameter");this.init_();let J=G?this.byteToCharMapWebSafe_:this.byteToCharMap_,et=[];for(let G=0;G>2,ec=(3&en)<<4|ei>>4,eu=(15&ei)<<2|es>>6,ed=63&es;eo||(ed=64,er||(eu=64)),et.push(J[el],J[ec],J[eu],J[ed])}return et.join("")},encodeString(K,G){return this.HAS_NATIVE_SUPPORT&&!G?btoa(K):this.encodeByteArray(stringToByteArray$1(K),G)},decodeString(K,G){return this.HAS_NATIVE_SUPPORT&&!G?atob(K):byteArrayToString(this.decodeStringToByteArray(K,G))},decodeStringToByteArray(K,G){this.init_();let J=G?this.charToByteMapWebSafe_:this.charToByteMap_,et=[];for(let G=0;G>4;if(et.push(eu),64!==es){let K=ei<<4&240|es>>2;if(et.push(K),64!==ec){let K=es<<6&192|ec;et.push(K)}}}return et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let K=0;K=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(K)]=K,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(K)]=K)}}};let DecodeBase64StringError=class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}};let base64Encode=function(K){let G=stringToByteArray$1(K);return en.encodeByteArray(G,!0)},base64urlEncodeWithoutPadding=function(K){return base64Encode(K).replace(/\./g,"")},base64Decode=function(K){try{return en.decodeString(K,!0)}catch(K){console.error("base64Decode failed: ",K)}return null},getDefaultsFromGlobal=()=>/** * @license * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==J.g)return J.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(void 0===et||void 0===et.env)return;let K=et.env.__FIREBASE_DEFAULTS__;if(K)return JSON.parse(K)},getDefaultsFromCookie=()=>{let K;if("undefined"==typeof document)return;try{K=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(K){return}let G=K&&base64Decode(K[1]);return G&&JSON.parse(G)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(K){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${K}`);return}},getDefaultAppConfig=()=>{var K;return null===(K=getDefaults())||void 0===K?void 0:K.config};/** * @license * Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */let Deferred=class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((K,G)=>{this.resolve=K,this.reject=G})}wrapCallback(K){return(G,J)=>{G?this.reject(G):this.resolve(J),"function"==typeof K&&(this.promise.catch(()=>{}),1===K.length?K(G):K(G,J))}}};function isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch(K){return!1}}function validateIndexedDBOpenable(){return new Promise((K,G)=>{try{let J=!0,et="validate-browser-context-for-indexeddb-analytics-module",en=self.indexedDB.open(et);en.onsuccess=()=>{en.result.close(),J||self.indexedDB.deleteDatabase(et),K(!0)},en.onupgradeneeded=()=>{J=!1},en.onerror=()=>{var K;G((null===(K=en.error)||void 0===K?void 0:K.message)||"")}}catch(K){G(K)}})}let FirebaseError=class FirebaseError extends Error{constructor(K,G,J){super(G),this.code=K,this.customData=J,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}};let ErrorFactory=class ErrorFactory{constructor(K,G,J){this.service=K,this.serviceName=G,this.errors=J}create(K,...G){let J=G[0]||{},et=`${this.service}/${K}`,en=this.errors[K],ei=en?en.replace(er,(K,G)=>{let et=J[G];return null!=et?String(et):`<${G}?>`}):"Error",eo=`${this.serviceName}: ${ei} (${et}).`,es=new FirebaseError(et,eo,J);return es}};let er=/\{\$([^}]+)}/g;function isObject(K){return null!==K&&"object"==typeof K}function calculateBackoffMillis(K,G=1e3,J=2){let et=G*Math.pow(J,K),en=Math.round(.5*et*(Math.random()-.5)*2);return Math.min(144e5,et+en)}/** * @license * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */function getModularInstance(K){return K&&K._delegate?K._delegate:K}},11206:function(K,G,J){"use strict";var et=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(en,er){function fulfilled(K){try{step(et.next(K))}catch(K){er(K)}}function rejected(K){try{step(et.throw(K))}catch(K){er(K)}}function step(K){var G;K.done?en(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.FacebookLoginClient=void 0;let en=J(64356);G.FacebookLoginClient={getFB:()=>{if(!window.FB){console.warn("FB not found");return}return window.FB},getLoginStatus(K,G=!1){let J=this.getFB();if(!J){K({status:"unknown"});return}J.getLoginStatus(K,G)},getProfile(K,G){var J;null===(J=this.getFB())||void 0===J||J.api("me",G,K)},init(K,G){window.fbAsyncInit=()=>{var J;null===(J=this.getFB())||void 0===J||J.init(G),K()}},isRedirected(K){var G;let J=(0,en.paramsToObject)(window.location.search);return J.state===(null==K?void 0:K.state)&&void 0!==J[null!==(G=null==K?void 0:K.response_type)&&void 0!==G?G:""]},loadSdk(K,G){return et(this,void 0,void 0,function*(){yield(0,en.createScriptEle)("facebook-jssdk",`https://connect.facebook.net/${K}/sdk${G?"/xfbml.customerchat":""}.js`)})},redirectToDialog(K,G){window.location.href=`https://www.facebook.com/dialog/oauth${(0,en.objectToParams)(Object.assign(Object.assign({},K),G))}`},login(K,G){var J;null===(J=this.getFB())||void 0===J||J.login(K,G)},logout(K){this.getLoginStatus(G=>{var J;"connected"===G.status?null===(J=this.getFB())||void 0===J||J.logout(K):K()})}}},97526:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__setModuleDefault||(Object.create?function(K,G){Object.defineProperty(K,"default",{enumerable:!0,value:G})}:function(K,G){K.default=G}),er=this&&this.__importStar||function(K){if(K&&K.__esModule)return K;var G={};if(null!=K)for(var J in K)"default"!==J&&Object.prototype.hasOwnProperty.call(K,J)&&et(G,K,J);return en(G,K),G},ei=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(en,er){function fulfilled(K){try{step(et.next(K))}catch(K){er(K)}}function rejected(K){try{step(et.throw(K))}catch(K){er(K)}}function step(K){var G;K.done?en(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0});let eo=er(J(67294)),es=J(11206);G.default=function(K){let{appId:G,language:J="en_US",scope:et="public_profile, email",fields:en="name,email,picture",onSuccess:er,onFail:el,onProfileSuccess:ec,className:eu,style:ed,children:eh="Login with Facebook",render:ep,autoLoad:ef=!1,useRedirect:em=!1,useCustomerChat:eg=!1}=K,ey=Object.assign(Object.assign({version:"v9.0",xfbml:!1,cookie:!1,localStorage:!0},K.initParams),{appId:G}),eb=Object.assign(Object.assign({redirect_uri:"undefined"!=typeof window?location.origin+location.pathname:"/",state:"facebookdirect",response_type:"code"},K.dialogParams),{client_id:G}),ev=Object.assign(Object.assign({auth_type:"",return_scopes:!1},K.loginOptions),{scope:et});(0,eo.useEffect)(()=>{init()},[]);let init=()=>ei(this,void 0,void 0,function*(){yield es.FacebookLoginClient.loadSdk(J,eg),es.FacebookLoginClient.init(()=>{let K=es.FacebookLoginClient.isRedirected(eb);if(!1===K&&ef){handleButtonClick();return}!0===K&&em&&requestLogin()},ey)}),requestLogin=()=>{es.FacebookLoginClient.login(K=>{if(!K.authResponse){el&&el({status:"loginCancelled"});return}er&&er(K.authResponse),ec&&es.FacebookLoginClient.getProfile(ec,{fields:en})},Object.assign(Object.assign({},ev),{scope:et}))},handleButtonClick=()=>{if(em){es.FacebookLoginClient.redirectToDialog(eb,ev);return}if(!window.FB){el&&el({status:"facebookNotLoaded"});return}requestLogin()};return ep?ep({onClick:handleButtonClick,logout:es.FacebookLoginClient.logout}):eo.default.createElement("button",{type:"button",onClick:handleButtonClick,className:eu,style:ed},eh)}},54933:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.createScriptEle=void 0,G.createScriptEle=(K,G)=>new Promise(J=>{let et=document.getElementsByTagName("script")[0];if(document.getElementById(K))return;let en=document.createElement("script");en.id=K,en.src=G,en.onload=J,et.parentNode.insertBefore(en,et)})},64356:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),en(J(54933),G),en(J(11995),G)},11995:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.paramsToObject=G.objectToParams=G.isObject=void 0,G.isObject=K=>"[object Object]"===Object.prototype.toString.call(K),G.objectToParams=K=>(0,G.isObject)(K)&&0!==Object.keys(K).length?"?"+Object.keys(K).map(G=>`${G}=${encodeURIComponent(K[G])}`).join("&"):"",G.paramsToObject=K=>(null==K?void 0:K.replace(/^\?/,"").split("&").reduce((K,G)=>{if(!G)return K;let[J,et]=G.split("=");return Object.assign(Object.assign({},K),{[J]:decodeURIComponent(et)})},{}))||{}},73502:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)},er=this&&this.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};Object.defineProperty(G,"__esModule",{value:!0});let ei=er(J(97526));en(J(64356),G),en(J(43686),G),en(J(97526),G),en(J(11206),G),G.default=ei.default},22653:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},43686:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),en(J(22653),G),en(J(74750),G),en(J(2230),G)},74750:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},2230:function(K,G){"use strict";var J;Object.defineProperty(G,"__esModule",{value:!0}),G.LoginStatus=void 0,(J=G.LoginStatus||(G.LoginStatus={})).Connected="connected",J.NotAuthorized="not_authorized",J.Unknown="unknown"},40964:function(K,G,J){var et=J(82661);function anyBase(K,G){var J=new et(K,G);return function(K){return J.convert(K)}}anyBase.BIN="01",anyBase.OCT="01234567",anyBase.DEC="0123456789",anyBase.HEX="0123456789abcdef",K.exports=anyBase},82661:function(K){"use strict";function Converter(K,G){if(!K||!G||!K.length||!G.length)throw Error("Bad alphabet");this.srcAlphabet=K,this.dstAlphabet=G}Converter.prototype.convert=function(K){var G,J,et,en={},er=this.srcAlphabet.length,ei=this.dstAlphabet.length,eo=K.length,es="string"==typeof K?"":[];if(!this.isValid(K))throw Error('Number "'+K+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return K;for(G=0;G=ei?(en[et++]=parseInt(J/ei,10),J%=ei):et>0&&(en[et++]=0);eo=et,es=this.dstAlphabet.slice(J,J+1).concat(es)}while(0!==et);return es},Converter.prototype.isValid=function(K){for(var G=0;G0?ei-4:ei;for(J=0;J>16&255,es[el++]=G>>8&255,es[el++]=255&G;return 2===eo&&(G=et[K.charCodeAt(J)]<<2|et[K.charCodeAt(J+1)]>>4,es[el++]=255&G),1===eo&&(G=et[K.charCodeAt(J)]<<10|et[K.charCodeAt(J+1)]<<4|et[K.charCodeAt(J+2)]>>2,es[el++]=G>>8&255,es[el++]=255&G),es},G.fromByteArray=function(K){for(var G,et=K.length,en=et%3,er=[],ei=0,eo=et-en;ei>18&63]+J[en>>12&63]+J[en>>6&63]+J[63&en]);return er.join("")}(K,ei,ei+16383>eo?eo:ei+16383));return 1===en?er.push(J[(G=K[et-1])>>2]+J[G<<4&63]+"=="):2===en&&er.push(J[(G=(K[et-2]<<8)+K[et-1])>>10]+J[G>>4&63]+J[G<<2&63]+"="),er.join("")};for(var J=[],et=[],en="undefined"!=typeof Uint8Array?Uint8Array:Array,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=0,eo=er.length;ei0)throw Error("Invalid string. Length must be a multiple of 4");var J=K.indexOf("=");-1===J&&(J=G);var et=J===G?0:4-J%4;return[J,et]}et["-".charCodeAt(0)]=62,et["_".charCodeAt(0)]=63},48764:function(K,G,J){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var et=J(79742),en=J(80645),er="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(K){if(K>2147483647)throw RangeError('The value "'+K+'" is invalid for option "size"');var G=new Uint8Array(K);return Object.setPrototypeOf(G,Buffer.prototype),G}function Buffer(K,G,J){if("number"==typeof K){if("string"==typeof G)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(K)}return from(K,G,J)}function from(K,G,J){if("string"==typeof K)return function(K,G){if(("string"!=typeof G||""===G)&&(G="utf8"),!Buffer.isEncoding(G))throw TypeError("Unknown encoding: "+G);var J=0|byteLength(K,G),et=createBuffer(J),en=et.write(K,G);return en!==J&&(et=et.slice(0,en)),et}(K,G);if(ArrayBuffer.isView(K))return function(K){if(isInstance(K,Uint8Array)){var G=new Uint8Array(K);return fromArrayBuffer(G.buffer,G.byteOffset,G.byteLength)}return fromArrayLike(K)}(K);if(null==K)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(isInstance(K,ArrayBuffer)||K&&isInstance(K.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(K,SharedArrayBuffer)||K&&isInstance(K.buffer,SharedArrayBuffer)))return fromArrayBuffer(K,G,J);if("number"==typeof K)throw TypeError('The "value" argument must not be of type number. Received type number');var et=K.valueOf&&K.valueOf();if(null!=et&&et!==K)return Buffer.from(et,G,J);var en=function(K){if(Buffer.isBuffer(K)){var G,J=0|checked(K.length),et=createBuffer(J);return 0===et.length||K.copy(et,0,0,J),et}return void 0!==K.length?"number"!=typeof K.length||(G=K.length)!=G?createBuffer(0):fromArrayLike(K):"Buffer"===K.type&&Array.isArray(K.data)?fromArrayLike(K.data):void 0}(K);if(en)return en;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof K[Symbol.toPrimitive])return Buffer.from(K[Symbol.toPrimitive]("string"),G,J);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}function assertSize(K){if("number"!=typeof K)throw TypeError('"size" argument must be of type number');if(K<0)throw RangeError('The value "'+K+'" is invalid for option "size"')}function allocUnsafe(K){return assertSize(K),createBuffer(K<0?0:0|checked(K))}function fromArrayLike(K){for(var G=K.length<0?0:0|checked(K.length),J=createBuffer(G),et=0;et=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|K}function byteLength(K,G){if(Buffer.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||isInstance(K,ArrayBuffer))return K.byteLength;if("string"!=typeof K)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var J=K.length,et=arguments.length>2&&!0===arguments[2];if(!et&&0===J)return 0;for(var en=!1;;)switch(G){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return utf8ToBytes(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*J;case"hex":return J>>>1;case"base64":return base64ToBytes(K).length;default:if(en)return et?-1:utf8ToBytes(K).length;G=(""+G).toLowerCase(),en=!0}}function slowToString(K,G,J){var en,er,ei=!1;if((void 0===G||G<0)&&(G=0),G>this.length||((void 0===J||J>this.length)&&(J=this.length),J<=0||(J>>>=0)<=(G>>>=0)))return"";for(K||(K="utf8");;)switch(K){case"hex":return function(K,G,J){var et=K.length;(!G||G<0)&&(G=0),(!J||J<0||J>et)&&(J=et);for(var en="",er=G;er2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),(er=J=+J)!=er&&(J=en?0:K.length-1),J<0&&(J=K.length+J),J>=K.length){if(en)return -1;J=K.length-1}else if(J<0){if(!en)return -1;J=0}if("string"==typeof G&&(G=Buffer.from(G,et)),Buffer.isBuffer(G))return 0===G.length?-1:arrayIndexOf(K,G,J,et,en);if("number"==typeof G)return(G&=255,"function"==typeof Uint8Array.prototype.indexOf)?en?Uint8Array.prototype.indexOf.call(K,G,J):Uint8Array.prototype.lastIndexOf.call(K,G,J):arrayIndexOf(K,[G],J,et,en);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(K,G,J,et,en){var er,ei=1,eo=K.length,es=G.length;if(void 0!==et&&("ucs2"===(et=String(et).toLowerCase())||"ucs-2"===et||"utf16le"===et||"utf-16le"===et)){if(K.length<2||G.length<2)return -1;ei=2,eo/=2,es/=2,J/=2}function read(K,G){return 1===ei?K[G]:K.readUInt16BE(G*ei)}if(en){var el=-1;for(er=J;ereo&&(J=eo-es),er=J;er>=0;er--){for(var ec=!0,eu=0;eu239?4:el>223?3:el>191?2:1;if(en+eu<=J)switch(eu){case 1:el<128&&(ec=el);break;case 2:(192&(er=K[en+1]))==128&&(es=(31&el)<<6|63&er)>127&&(ec=es);break;case 3:er=K[en+1],ei=K[en+2],(192&er)==128&&(192&ei)==128&&(es=(15&el)<<12|(63&er)<<6|63&ei)>2047&&(es<55296||es>57343)&&(ec=es);break;case 4:er=K[en+1],ei=K[en+2],eo=K[en+3],(192&er)==128&&(192&ei)==128&&(192&eo)==128&&(es=(15&el)<<18|(63&er)<<12|(63&ei)<<6|63&eo)>65535&&es<1114112&&(ec=es)}null===ec?(ec=65533,eu=1):ec>65535&&(ec-=65536,et.push(ec>>>10&1023|55296),ec=56320|1023&ec),et.push(ec),en+=eu}return function(K){var G=K.length;if(G<=4096)return String.fromCharCode.apply(String,K);for(var J="",et=0;etJ)throw RangeError("Trying to access beyond buffer length")}function checkInt(K,G,J,et,en,er){if(!Buffer.isBuffer(K))throw TypeError('"buffer" argument must be a Buffer instance');if(G>en||GK.length)throw RangeError("Index out of range")}function checkIEEE754(K,G,J,et,en,er){if(J+et>K.length||J<0)throw RangeError("Index out of range")}function writeFloat(K,G,J,et,er){return G=+G,J>>>=0,er||checkIEEE754(K,G,J,4,34028234663852886e22,-34028234663852886e22),en.write(K,G,J,et,23,4),J+4}function writeDouble(K,G,J,et,er){return G=+G,J>>>=0,er||checkIEEE754(K,G,J,8,17976931348623157e292,-17976931348623157e292),en.write(K,G,J,et,52,8),J+8}G.lW=Buffer,G.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var K=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(K,G),42===K.foo()}catch(K){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(K,G,J){return from(K,G,J)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(K,G,J){return(assertSize(K),K<=0)?createBuffer(K):void 0!==G?"string"==typeof J?createBuffer(K).fill(G,J):createBuffer(K).fill(G):createBuffer(K)},Buffer.allocUnsafe=function(K){return allocUnsafe(K)},Buffer.allocUnsafeSlow=function(K){return allocUnsafe(K)},Buffer.isBuffer=function(K){return null!=K&&!0===K._isBuffer&&K!==Buffer.prototype},Buffer.compare=function(K,G){if(isInstance(K,Uint8Array)&&(K=Buffer.from(K,K.offset,K.byteLength)),isInstance(G,Uint8Array)&&(G=Buffer.from(G,G.offset,G.byteLength)),!Buffer.isBuffer(K)||!Buffer.isBuffer(G))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===G)return 0;for(var J=K.length,et=G.length,en=0,er=Math.min(J,et);enet.length?Buffer.from(er).copy(et,en):Uint8Array.prototype.set.call(et,er,en);else if(Buffer.isBuffer(er))er.copy(et,en);else throw TypeError('"list" argument must be an Array of Buffers');en+=er.length}return et},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var K=this.length;if(K%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;GJ&&(K+=" ... "),""},er&&(Buffer.prototype[er]=Buffer.prototype.inspect),Buffer.prototype.compare=function(K,G,J,et,en){if(isInstance(K,Uint8Array)&&(K=Buffer.from(K,K.offset,K.byteLength)),!Buffer.isBuffer(K))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(void 0===G&&(G=0),void 0===J&&(J=K?K.length:0),void 0===et&&(et=0),void 0===en&&(en=this.length),G<0||J>K.length||et<0||en>this.length)throw RangeError("out of range index");if(et>=en&&G>=J)return 0;if(et>=en)return -1;if(G>=J)return 1;if(G>>>=0,J>>>=0,et>>>=0,en>>>=0,this===K)return 0;for(var er=en-et,ei=J-G,eo=Math.min(er,ei),es=this.slice(et,en),el=K.slice(G,J),ec=0;ec>>=0,isFinite(J)?(J>>>=0,void 0===et&&(et="utf8")):(et=J,J=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var en,er,ei,eo,es,el,ec,eu,ed=this.length-G;if((void 0===J||J>ed)&&(J=ed),K.length>0&&(J<0||G<0)||G>this.length)throw RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var eh=!1;;)switch(et){case"hex":return function(K,G,J,et){J=Number(J)||0;var en=K.length-J;et?(et=Number(et))>en&&(et=en):et=en;var er=G.length;et>er/2&&(et=er/2);for(var ei=0;ei>8,en.push(J%256),en.push(et);return en}(K,this.length-ec),this,ec,eu);default:if(eh)throw TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),eh=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(K,G){var J=this.length;K=~~K,G=void 0===G?J:~~G,K<0?(K+=J)<0&&(K=0):K>J&&(K=J),G<0?(G+=J)<0&&(G=0):G>J&&(G=J),G>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K],en=1,er=0;++er>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K+--G],en=1;G>0&&(en*=256);)et+=this[K+--G]*en;return et},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(K,G){return K>>>=0,G||checkOffset(K,1,this.length),this[K]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(K,G){return K>>>=0,G||checkOffset(K,2,this.length),this[K]|this[K+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(K,G){return K>>>=0,G||checkOffset(K,2,this.length),this[K]<<8|this[K+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},Buffer.prototype.readIntLE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K],en=1,er=0;++er=(en*=128)&&(et-=Math.pow(2,8*G)),et},Buffer.prototype.readIntBE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=G,en=1,er=this[K+--et];et>0&&(en*=256);)er+=this[K+--et]*en;return er>=(en*=128)&&(er-=Math.pow(2,8*G)),er},Buffer.prototype.readInt8=function(K,G){return(K>>>=0,G||checkOffset(K,1,this.length),128&this[K])?-((255-this[K]+1)*1):this[K]},Buffer.prototype.readInt16LE=function(K,G){K>>>=0,G||checkOffset(K,2,this.length);var J=this[K]|this[K+1]<<8;return 32768&J?4294901760|J:J},Buffer.prototype.readInt16BE=function(K,G){K>>>=0,G||checkOffset(K,2,this.length);var J=this[K+1]|this[K]<<8;return 32768&J?4294901760|J:J},Buffer.prototype.readInt32LE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},Buffer.prototype.readInt32BE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},Buffer.prototype.readFloatLE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),en.read(this,K,!0,23,4)},Buffer.prototype.readFloatBE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),en.read(this,K,!1,23,4)},Buffer.prototype.readDoubleLE=function(K,G){return K>>>=0,G||checkOffset(K,8,this.length),en.read(this,K,!0,52,8)},Buffer.prototype.readDoubleBE=function(K,G){return K>>>=0,G||checkOffset(K,8,this.length),en.read(this,K,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(K,G,J,et){if(K=+K,G>>>=0,J>>>=0,!et){var en=Math.pow(2,8*J)-1;checkInt(this,K,G,J,en,0)}var er=1,ei=0;for(this[G]=255&K;++ei>>=0,J>>>=0,!et){var en=Math.pow(2,8*J)-1;checkInt(this,K,G,J,en,0)}var er=J-1,ei=1;for(this[G+er]=255&K;--er>=0&&(ei*=256);)this[G+er]=K/ei&255;return G+J},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,1,255,0),this[G]=255&K,G+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,65535,0),this[G]=255&K,this[G+1]=K>>>8,G+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,65535,0),this[G]=K>>>8,this[G+1]=255&K,G+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,4294967295,0),this[G+3]=K>>>24,this[G+2]=K>>>16,this[G+1]=K>>>8,this[G]=255&K,G+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,4294967295,0),this[G]=K>>>24,this[G+1]=K>>>16,this[G+2]=K>>>8,this[G+3]=255&K,G+4},Buffer.prototype.writeIntLE=function(K,G,J,et){if(K=+K,G>>>=0,!et){var en=Math.pow(2,8*J-1);checkInt(this,K,G,J,en-1,-en)}var er=0,ei=1,eo=0;for(this[G]=255&K;++er>0)-eo&255;return G+J},Buffer.prototype.writeIntBE=function(K,G,J,et){if(K=+K,G>>>=0,!et){var en=Math.pow(2,8*J-1);checkInt(this,K,G,J,en-1,-en)}var er=J-1,ei=1,eo=0;for(this[G+er]=255&K;--er>=0&&(ei*=256);)K<0&&0===eo&&0!==this[G+er+1]&&(eo=1),this[G+er]=(K/ei>>0)-eo&255;return G+J},Buffer.prototype.writeInt8=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,1,127,-128),K<0&&(K=255+K+1),this[G]=255&K,G+1},Buffer.prototype.writeInt16LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,32767,-32768),this[G]=255&K,this[G+1]=K>>>8,G+2},Buffer.prototype.writeInt16BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,32767,-32768),this[G]=K>>>8,this[G+1]=255&K,G+2},Buffer.prototype.writeInt32LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,2147483647,-2147483648),this[G]=255&K,this[G+1]=K>>>8,this[G+2]=K>>>16,this[G+3]=K>>>24,G+4},Buffer.prototype.writeInt32BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[G]=K>>>24,this[G+1]=K>>>16,this[G+2]=K>>>8,this[G+3]=255&K,G+4},Buffer.prototype.writeFloatLE=function(K,G,J){return writeFloat(this,K,G,!0,J)},Buffer.prototype.writeFloatBE=function(K,G,J){return writeFloat(this,K,G,!1,J)},Buffer.prototype.writeDoubleLE=function(K,G,J){return writeDouble(this,K,G,!0,J)},Buffer.prototype.writeDoubleBE=function(K,G,J){return writeDouble(this,K,G,!1,J)},Buffer.prototype.copy=function(K,G,J,et){if(!Buffer.isBuffer(K))throw TypeError("argument should be a Buffer");if(J||(J=0),et||0===et||(et=this.length),G>=K.length&&(G=K.length),G||(G=0),et>0&&et=this.length)throw RangeError("Index out of range");if(et<0)throw RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),K.length-G>>=0,J=void 0===J?this.length:J>>>0,K||(K=0),"number"==typeof K)for(en=G;en55295&&J<57344){if(!en){if(J>56319||ei+1===et){(G-=3)>-1&&er.push(239,191,189);continue}en=J;continue}if(J<56320){(G-=3)>-1&&er.push(239,191,189),en=J;continue}J=(en-55296<<10|J-56320)+65536}else en&&(G-=3)>-1&&er.push(239,191,189);if(en=null,J<128){if((G-=1)<0)break;er.push(J)}else if(J<2048){if((G-=2)<0)break;er.push(J>>6|192,63&J|128)}else if(J<65536){if((G-=3)<0)break;er.push(J>>12|224,J>>6&63|128,63&J|128)}else if(J<1114112){if((G-=4)<0)break;er.push(J>>18|240,J>>12&63|128,J>>6&63|128,63&J|128)}else throw Error("Invalid code point")}return er}function base64ToBytes(K){return et.toByteArray(function(K){if((K=(K=K.split("=")[0]).trim().replace(ei,"")).length<2)return"";for(;K.length%4!=0;)K+="=";return K}(K))}function blitBuffer(K,G,J,et){for(var en=0;en=G.length)&&!(en>=K.length);++en)G[en+J]=K[en];return en}function isInstance(K,G){return K instanceof G||null!=K&&null!=K.constructor&&null!=K.constructor.name&&K.constructor.name===G.name}var eo=function(){for(var K="0123456789abcdef",G=Array(256),J=0;J<16;++J)for(var et=16*J,en=0;en<16;++en)G[et+en]=K[J]+K[en];return G}()},9996:function(K){"use strict";var isMergeableObject=function(K){var J;return!!K&&"object"==typeof K&&"[object RegExp]"!==(J=Object.prototype.toString.call(K))&&"[object Date]"!==J&&K.$$typeof!==G},G="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(K,G){return!1!==G.clone&&G.isMergeableObject(K)?deepmerge(Array.isArray(K)?[]:{},K,G):K}function defaultArrayMerge(K,G,J){return K.concat(G).map(function(K){return cloneUnlessOtherwiseSpecified(K,J)})}function getKeys(K){return Object.keys(K).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(K).filter(function(G){return Object.propertyIsEnumerable.call(K,G)}):[])}function propertyIsOnObject(K,G){try{return G in K}catch(K){return!1}}function deepmerge(K,G,J){(J=J||{}).arrayMerge=J.arrayMerge||defaultArrayMerge,J.isMergeableObject=J.isMergeableObject||isMergeableObject,J.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var et,en,er=Array.isArray(G);return er!==Array.isArray(K)?cloneUnlessOtherwiseSpecified(G,J):er?J.arrayMerge(K,G,J):(en={},(et=J).isMergeableObject(K)&&getKeys(K).forEach(function(G){en[G]=cloneUnlessOtherwiseSpecified(K[G],et)}),getKeys(G).forEach(function(J){(!propertyIsOnObject(K,J)||Object.hasOwnProperty.call(K,J)&&Object.propertyIsEnumerable.call(K,J))&&(propertyIsOnObject(K,J)&&et.isMergeableObject(G[J])?en[J]=(function(K,G){if(!G.customMerge)return deepmerge;var J=G.customMerge(K);return"function"==typeof J?J:deepmerge})(J,et)(K[J],G[J],et):en[J]=cloneUnlessOtherwiseSpecified(G[J],et))}),en)}deepmerge.all=function(K,G){if(!Array.isArray(K))throw Error("first argument should be an array");return K.reduce(function(K,J){return deepmerge(K,J,G)},{})},K.exports=deepmerge},99960:function(K,G){"use strict";var J,et;Object.defineProperty(G,"__esModule",{value:!0}),G.Doctype=G.CDATA=G.Tag=G.Style=G.Script=G.Comment=G.Directive=G.Text=G.Root=G.isTag=G.ElementType=void 0,(et=J=G.ElementType||(G.ElementType={})).Root="root",et.Text="text",et.Directive="directive",et.Comment="comment",et.Script="script",et.Style="style",et.Tag="tag",et.CDATA="cdata",et.Doctype="doctype",G.isTag=function(K){return K.type===J.Tag||K.type===J.Script||K.type===J.Style},G.Root=J.Root,G.Text=J.Text,G.Directive=J.Directive,G.Comment=J.Comment,G.Script=J.Script,G.Style=J.Style,G.Tag=J.Tag,G.CDATA=J.CDATA,G.Doctype=J.Doctype},47915:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J);var en=Object.getOwnPropertyDescriptor(G,J);(!en||("get"in en?!G.__esModule:en.writable||en.configurable))&&(en={enumerable:!0,get:function(){return G[J]}}),Object.defineProperty(K,et,en)}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),G.DomHandler=void 0;var er=J(99960),ei=J(97790);en(J(97790),G);var eo={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},es=function(){function DomHandler(K,G,J){this.dom=[],this.root=new ei.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof G&&(J=G,G=eo),"object"==typeof K&&(G=K,K=void 0),this.callback=null!=K?K:null,this.options=null!=G?G:eo,this.elementCB=null!=J?J:null}return DomHandler.prototype.onparserinit=function(K){this.parser=K},DomHandler.prototype.onreset=function(){this.dom=[],this.root=new ei.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},DomHandler.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},DomHandler.prototype.onerror=function(K){this.handleCallback(K)},DomHandler.prototype.onclosetag=function(){this.lastNode=null;var K=this.tagStack.pop();this.options.withEndIndices&&(K.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(K)},DomHandler.prototype.onopentag=function(K,G){var J=this.options.xmlMode?er.ElementType.Tag:void 0,et=new ei.Element(K,G,void 0,J);this.addNode(et),this.tagStack.push(et)},DomHandler.prototype.ontext=function(K){var G=this.lastNode;if(G&&G.type===er.ElementType.Text)G.data+=K,this.options.withEndIndices&&(G.endIndex=this.parser.endIndex);else{var J=new ei.Text(K);this.addNode(J),this.lastNode=J}},DomHandler.prototype.oncomment=function(K){if(this.lastNode&&this.lastNode.type===er.ElementType.Comment){this.lastNode.data+=K;return}var G=new ei.Comment(K);this.addNode(G),this.lastNode=G},DomHandler.prototype.oncommentend=function(){this.lastNode=null},DomHandler.prototype.oncdatastart=function(){var K=new ei.Text(""),G=new ei.CDATA([K]);this.addNode(G),K.parent=G,this.lastNode=K},DomHandler.prototype.oncdataend=function(){this.lastNode=null},DomHandler.prototype.onprocessinginstruction=function(K,G){var J=new ei.ProcessingInstruction(K,G);this.addNode(J)},DomHandler.prototype.handleCallback=function(K){if("function"==typeof this.callback)this.callback(K,this.dom);else if(K)throw K},DomHandler.prototype.addNode=function(K){var G=this.tagStack[this.tagStack.length-1],J=G.children[G.children.length-1];this.options.withStartIndices&&(K.startIndex=this.parser.startIndex),this.options.withEndIndices&&(K.endIndex=this.parser.endIndex),G.children.push(K),J&&(K.prev=J,J.next=K),K.parent=G,this.lastNode=null},DomHandler}();G.DomHandler=es,G.default=es},97790:function(K,G,J){"use strict";var et,en=this&&this.__extends||(et=function(K,G){return(et=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(K,G){K.__proto__=G}||function(K,G){for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(K[J]=G[J])})(K,G)},function(K,G){if("function"!=typeof G&&null!==G)throw TypeError("Class extends value "+String(G)+" is not a constructor or null");function __(){this.constructor=K}et(K,G),K.prototype=null===G?Object.create(G):(__.prototype=G.prototype,new __)}),er=this&&this.__assign||function(){return(er=Object.assign||function(K){for(var G,J=1,et=arguments.length;J0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren.prototype,"childNodes",{get:function(){return this.children},set:function(K){this.children=K},enumerable:!1,configurable:!0}),NodeWithChildren}(eo);G.NodeWithChildren=ed;var eh=function(K){function CDATA(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.CDATA,G}return en(CDATA,K),Object.defineProperty(CDATA.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),CDATA}(ed);G.CDATA=eh;var ep=function(K){function Document(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.Root,G}return en(Document,K),Object.defineProperty(Document.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Document}(ed);G.Document=ep;var ef=function(K){function Element(G,J,et,en){void 0===et&&(et=[]),void 0===en&&(en="script"===G?ei.ElementType.Script:"style"===G?ei.ElementType.Style:ei.ElementType.Tag);var er=K.call(this,et)||this;return er.name=G,er.attribs=J,er.type=en,er}return en(Element,K),Object.defineProperty(Element.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"tagName",{get:function(){return this.name},set:function(K){this.name=K},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"attributes",{get:function(){var K=this;return Object.keys(this.attribs).map(function(G){var J,et;return{name:G,value:K.attribs[G],namespace:null===(J=K["x-attribsNamespace"])||void 0===J?void 0:J[G],prefix:null===(et=K["x-attribsPrefix"])||void 0===et?void 0:et[G]}})},enumerable:!1,configurable:!0}),Element}(ed);function isTag(K){return(0,ei.isTag)(K)}function isCDATA(K){return K.type===ei.ElementType.CDATA}function isText(K){return K.type===ei.ElementType.Text}function isComment(K){return K.type===ei.ElementType.Comment}function isDirective(K){return K.type===ei.ElementType.Directive}function isDocument(K){return K.type===ei.ElementType.Root}function cloneNode(K,G){if(void 0===G&&(G=!1),isText(K))J=new el(K.data);else if(isComment(K))J=new ec(K.data);else if(isTag(K)){var J,et=G?cloneChildren(K.children):[],en=new ef(K.name,er({},K.attribs),et);et.forEach(function(K){return K.parent=en}),null!=K.namespace&&(en.namespace=K.namespace),K["x-attribsNamespace"]&&(en["x-attribsNamespace"]=er({},K["x-attribsNamespace"])),K["x-attribsPrefix"]&&(en["x-attribsPrefix"]=er({},K["x-attribsPrefix"])),J=en}else if(isCDATA(K)){var et=G?cloneChildren(K.children):[],ei=new eh(et);et.forEach(function(K){return K.parent=ei}),J=ei}else if(isDocument(K)){var et=G?cloneChildren(K.children):[],eo=new ep(et);et.forEach(function(K){return K.parent=eo}),K["x-mode"]&&(eo["x-mode"]=K["x-mode"]),J=eo}else if(isDirective(K)){var es=new eu(K.name,K.data);null!=K["x-name"]&&(es["x-name"]=K["x-name"],es["x-publicId"]=K["x-publicId"],es["x-systemId"]=K["x-systemId"]),J=es}else throw Error("Not implemented yet: ".concat(K.type));return J.startIndex=K.startIndex,J.endIndex=K.endIndex,null!=K.sourceCodeLocation&&(J.sourceCodeLocation=K.sourceCodeLocation),J}function cloneChildren(K){for(var G=K.map(function(K){return cloneNode(K,!0)}),J=1;J{var K={111:(K,G,J)=>{"use strict";J.d(G,{Z:()=>et});let et=class{constructor(K,G){if(this.dom={el:K},"string"==typeof K?this.dom.el=document.querySelector(K):K.jquery&&(this.dom.el=K[0]),null===this.dom.el)throw Error("EmailGenie: No input defined");this.originalSettings={id:`emailGenie-${this.uuidv4}`,domains:["gmail.com","outlook.com","hotmail.com","msn.com","live.com","googlemail.com","yahoo.com","me.com","icloud.com"],overrideDomains:!1,insert:"afterend"},G&&G.domains&&(G.overrideDomains?G.domains=G.domains:G.domains=[...this.originalSettings.domains,...G.domains]),this.settings={...this.originalSettings,...G},this.init()}init(){this.createDataList(),this.bindEvents()}createDataList(){this.dom.el.setAttribute("list",this.settings.id);let K=``;"documentend"===this.settings.insert?document.body.insertAdjacentHTML("beforeend",K):this.dom.el.insertAdjacentHTML(this.settings.insert,K),this.dom.list=document.querySelector(`#${this.settings.id}`)}bindEvents(){this.dom.el.addEventListener("keyup",K=>this.handleKeyup(K))}handleKeyup(K){if(!this.dom.el.value.includes("@"))return;this.user=this.dom.el.value.substring(0,this.dom.el.value.lastIndexOf("@")),this.domain=this.dom.el.value.substring(this.dom.el.value.lastIndexOf("@")+1);let G=this.settings.domains.filter(K=>K.startsWith(this.domain)),J="";G.slice(0,3).forEach(K=>J+=`