mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-24 14:23:18 +00:00
3 lines
326 KiB
JavaScript
3 lines
326 KiB
JavaScript
|
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var LogLevel,firebase=_interopDefault(require("@firebase/app")),tslib=require("tslib"),logger=require("@firebase/logger"),util=require("@firebase/util"),component=require("@firebase/component"),webchannelWrapper=require("@firebase/webchannel-wrapper"),SDK_VERSION=firebase.SDK_VERSION,__PRIVATE_logClient=new logger.Logger("@firebase/firestore");function __PRIVATE_getLogLevel(){return __PRIVATE_logClient.logLevel===logger.LogLevel.DEBUG?LogLevel.DEBUG:__PRIVATE_logClient.logLevel===logger.LogLevel.SILENT?LogLevel.SILENT:LogLevel.ERROR}function setLogLevel(t){switch(t){case LogLevel.DEBUG:__PRIVATE_logClient.logLevel=logger.LogLevel.DEBUG;break;case LogLevel.ERROR:__PRIVATE_logClient.logLevel=logger.LogLevel.ERROR;break;case LogLevel.SILENT:__PRIVATE_logClient.logLevel=logger.LogLevel.SILENT;break;default:__PRIVATE_logClient.error("Firestore ("+SDK_VERSION+"): Invalid value passed to `setLogLevel`")}}function debug(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(__PRIVATE_logClient.logLevel<=logger.LogLevel.DEBUG){var i=n.map(__PRIVATE_argToString);__PRIVATE_logClient.debug.apply(__PRIVATE_logClient,tslib.__spreadArrays(["Firestore ("+SDK_VERSION+") ["+t+"]: "+e],i))}}function error(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(__PRIVATE_logClient.logLevel<=logger.LogLevel.ERROR){var r=e.map(__PRIVATE_argToString);__PRIVATE_logClient.error.apply(__PRIVATE_logClient,tslib.__spreadArrays(["Firestore ("+SDK_VERSION+"): "+t],r))}}function __PRIVATE_argToString(t){if("string"==typeof t)return t;var e=__PRIVATE_PlatformSupport.t();try{return e.i(t)}catch(e){return t}}function fail(t){var e="FIRESTORE ("+SDK_VERSION+") INTERNAL ASSERTION FAILED: "+t;throw error(e),new Error(e)}function assert(t,e){t||fail(e)}!function(t){t[t.DEBUG=0]="DEBUG",t[t.ERROR=1]="ERROR",t[t.SILENT=2]="SILENT"}(LogLevel||(LogLevel={}));var __PRIVATE_AutoId=function(){function t(){}return t.s=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e="",n=0;n<20;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return assert(20===e.length,"Invalid auto ID: "+e),e},t}();function __PRIVATE_primitiveComparator(t,e){return t<e?-1:t>e?1:0}function __PRIVATE_equals(t,e){return null!=t?!(!e||!t.isEqual(e)):t===e}function __PRIVATE_arrayEquals(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].isEqual(e[n]))return!1;return!0}function __PRIVATE_immediateSuccessor(t){return t+"\0"}var __PRIVATE_OnlineState,__PRIVATE_OnlineStateSource,__PRIVATE_DatabaseInfo=function(t,e,n,r,i){this.o=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},__PRIVATE_DEFAULT_DATABASE_NAME="(default)",__PRIVATE_DatabaseId=function(){function t(t,e){this.projectId=t,this.database=e||__PRIVATE_DEFAULT_DATABASE_NAME}return Object.defineProperty(t.prototype,"u",{get:function(){return this.database===__PRIVATE_DEFAULT_DATABASE_NAME},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype._=function(t){return __PRIVATE_primitiveComparator(this.projectId,t.projectId)||__PRIVATE_primitiveComparator(this.database,t.database)},t}();!function(t){t[t.h=0]="__PRIVATE_Unknown",t[t.l=1]="__PRIVATE_Online",t[t.T=2]="__PRIVATE_Offline"}(__PRIVATE_OnlineState||(__PRIVATE_OnlineState={})),function(t){t[t.P=0]="__PRIVATE_RemoteStore",t[t.A=1]="__PRIVATE_SharedClientState"}(__PRIVATE_OnlineStateSource||(__PRIVATE_OnlineStateSource={}));var User=function(){function t(t){this.uid=t}return t.prototype.R=function(){return null!=this.uid},t.prototype.I=function(){return this.R()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t.UNAUTHENTICATED=new t(null),t.V=new t("google-credentials-uid"),t.m=new t("first-party-uid"),t}(),Code={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DE
|
||
|
//# sourceMappingURL=index.cjs.min.js.map
|