@yemredurur/feedback-app
Version:
This project is a feedback system for websites. It enables customers to provide feedback and saves it to Firebase.
281 lines (276 loc) • 668 kB
JavaScript
(function(be,Mo){typeof exports=="object"&&typeof module<"u"?module.exports=Mo(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],Mo):(be=typeof globalThis<"u"?globalThis:be||self,be.feedback=Mo(be.React,be.ReactDOM))})(this,function(be,Mo){"use strict";var uv=document.createElement("style");uv.textContent=`.icon-button{position:absolute;bottom:2%;right:2%;border:none;background:none;cursor:pointer}.close-button{border:none;background:none;cursor:pointer;margin-left:auto}.primary-button{width:100%;background-color:#ff6720;border:none;color:#fff;padding:16px;border-radius:4px;margin-top:auto;cursor:pointer;font-weight:700;font-size:16px;display:flex;justify-content:center}.primary-button:hover{background-color:#b84f0a}.primary-button-disabled{background-color:#999;cursor:no-drop}.primary-button-disabled:hover{background-color:#999}.animate-spin{animation:spin 1s linear infinite;padding:0 5px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.modal{background-color:#fff;padding:20px;border-radius:4px;width:90%;max-width:400px;display:flex;flex-direction:column;align-items:center;min-height:300px;box-sizing:border-box}.modal-title{font-size:20px;font-weight:700;text-align:center}.textarea-box{width:100%;border:1px solid #ccc;border-radius:4px;outline:none;min-height:120px;box-sizing:border-box;vertical-align:top;text-align:left;padding:10px;resize:none;margin-top:20px}.info-content{display:flex;flex-direction:column;text-align:center;justify-content:center;align-items:center;margin-top:20%}.info-content-text{-webkit-user-select:none;user-select:none;text-align:center;margin-top:20%}.info-content-text-success{color:#4bb543}.info-content-text-error{color:#f33}.modal-text-left-counter{text-align:right;margin:10px 0;width:100%;display:block}
`,document.head.appendChild(uv);var lh={exports:{}},Fo={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var av;function MI(){if(av)return Fo;av=1;var e=be,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(l,f,d){var g,y={},w=null,I=null;d!==void 0&&(w=""+d),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(I=f.ref);for(g in f)i.call(f,g)&&!u.hasOwnProperty(g)&&(y[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)y[g]===void 0&&(y[g]=f[g]);return{$$typeof:t,type:l,key:w,ref:I,props:y,_owner:s.current}}return Fo.Fragment=r,Fo.jsx=c,Fo.jsxs=c,Fo}var Uo={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cv;function FI(){return cv||(cv=1,process.env.NODE_ENV!=="production"&&function(){var e=be,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),E=Symbol.iterator,T="@@iterator";function A(_){if(_===null||typeof _!="object")return null;var P=E&&_[E]||_[T];return typeof P=="function"?P:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(_){{for(var P=arguments.length,V=new Array(P>1?P-1:0),J=1;J<P;J++)V[J-1]=arguments[J];j("error",_,V)}}function j(_,P,V){{var J=D.ReactDebugCurrentFrame,st=J.getStackAddendum();st!==""&&(P+="%s",V=V.concat([st]));var wt=V.map(function(at){return String(at)});wt.unshift("Warning: "+P),Function.prototype.apply.call(console[_],console,wt)}}var $=!1,tt=!1,F=!1,lt=!1,G=!1,kt;kt=Symbol.for("react.module.reference");function S(_){return!!(typeof _=="string"||typeof _=="function"||_===i||_===u||G||_===s||_===d||_===g||lt||_===I||$||tt||F||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===y||_.$$typeof===c||_.$$typeof===l||_.$$typeof===f||_.$$typeof===kt||_.getModuleId!==void 0))}function Zr(_,P,V){var J=_.displayName;if(J)return J;var st=P.displayName||P.name||"";return st!==""?V+"("+st+")":V}function pr(_){return _.displayName||"Context"}function un(_){if(_==null)return null;if(typeof _.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case i:return"Fragment";case r:return"Portal";case u:return"Profiler";case s:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var P=_;return pr(P)+".Consumer";case c:var V=_;return pr(V._context)+".Provider";case f:return Zr(_,_.render,"ForwardRef");case y:var J=_.displayName||null;return J!==null?J:un(_.type)||"Memo";case w:{var st=_,wt=st._payload,at=st._init;try{return un(at(wt))}catch{return null}}}return null}var an=Object.assign,cn=0,dr,Os,ge,oo,jn,so,Ps;function Ls(){}Ls.__reactDisabledLog=!0;function ec(){{if(cn===0){dr=console.log,Os=console.info,ge=console.warn,oo=console.error,jn=console.group,so=console.groupCollapsed,Ps=console.groupEnd;var _={configurable:!0,enumerable:!0,value:Ls,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}cn++}}function Nf(){{if(cn--,cn===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:an({},_,{value:dr}),info:an({},_,{value:Os}),warn:an({},_,{value:ge}),error:an({},_,{value:oo}),group:an({},_,{value:jn}),groupCollapsed:an({},_,{value:so}),groupEnd:an({},_,{value:Ps})})}cn<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ti=D.ReactCurrentDispatcher,uo;function It(_,P,V){{if(uo===void 0)try{throw Error()}catch(st){var J=st.stack.trim().match(/\n( *(at )?)/);uo=J&&J[1]||""}return`
`+uo+_}}var Ms=!1,ao;{var co=typeof WeakMap=="function"?WeakMap:Map;ao=new co}function nc(_,P){if(!_||Ms)return"";{var V=ao.get(_);if(V!==void 0)return V}var J;Ms=!0;var st=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var wt;wt=ti.current,ti.current=null,ec();try{if(P){var at=function(){throw Error()};if(Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch(Ut){J=Ut}Reflect.construct(_,[],at)}else{try{at.call()}catch(Ut){J=Ut}_.call(at.prototype)}}else{try{throw Error()}catch(Ut){J=Ut}_()}}catch(Ut){if(Ut&&J&&typeof Ut.stack=="string"){for(var ut=Ut.stack.split(`
`),Zt=J.stack.split(`
`),Rt=ut.length-1,Ct=Zt.length-1;Rt>=1&&Ct>=0&&ut[Rt]!==Zt[Ct];)Ct--;for(;Rt>=1&&Ct>=0;Rt--,Ct--)if(ut[Rt]!==Zt[Ct]){if(Rt!==1||Ct!==1)do if(Rt--,Ct--,Ct<0||ut[Rt]!==Zt[Ct]){var we=`
`+ut[Rt].replace(" at new "," at ");return _.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",_.displayName)),typeof _=="function"&&ao.set(_,we),we}while(Rt>=1&&Ct>=0);break}}}finally{Ms=!1,ti.current=wt,Nf(),Error.prepareStackTrace=st}var yr=_?_.displayName||_.name:"",fc=yr?It(yr):"";return typeof _=="function"&&ao.set(_,fc),fc}function Rf(_,P,V){return nc(_,!1)}function hn(_){var P=_.prototype;return!!(P&&P.isReactComponent)}function Vn(_,P,V){if(_==null)return"";if(typeof _=="function")return nc(_,hn(_));if(typeof _=="string")return It(_);switch(_){case d:return It("Suspense");case g:return It("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case f:return Rf(_.render);case y:return Vn(_.type,P,V);case w:{var J=_,st=J._payload,wt=J._init;try{return Vn(wt(st),P,V)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,ho={},In=D.ReactDebugCurrentFrame;function ei(_){if(_){var P=_._owner,V=Vn(_.type,_._source,P?P.type:null);In.setExtraStackFrame(V)}else In.setExtraStackFrame(null)}function Cf(_,P,V,J,st){{var wt=Function.call.bind(me);for(var at in _)if(wt(_,at)){var ut=void 0;try{if(typeof _[at]!="function"){var Zt=Error((J||"React class")+": "+V+" type `"+at+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[at]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Zt.name="Invariant Violation",Zt}ut=_[at](P,at,J,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rt){ut=Rt}ut&&!(ut instanceof Error)&&(ei(st),L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",J||"React class",V,at,typeof ut),ei(null)),ut instanceof Error&&!(ut.message in ho)&&(ho[ut.message]=!0,ei(st),L("Failed %s type: %s",V,ut.message),ei(null))}}}var Df=Array.isArray;function Fs(_){return Df(_)}function xf(_){{var P=typeof Symbol=="function"&&Symbol.toStringTag,V=P&&_[Symbol.toStringTag]||_.constructor.name||"Object";return V}}function Of(_){try{return rc(_),!1}catch{return!0}}function rc(_){return""+_}function ic(_){if(Of(_))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xf(_)),rc(_)}var vt=D.ReactCurrentOwner,Us={key:!0,ref:!0,__self:!0,__source:!0},qn,js,lo;lo={};function Ft(_){if(me.call(_,"ref")){var P=Object.getOwnPropertyDescriptor(_,"ref").get;if(P&&P.isReactWarning)return!1}return _.ref!==void 0}function oc(_){if(me.call(_,"key")){var P=Object.getOwnPropertyDescriptor(_,"key").get;if(P&&P.isReactWarning)return!1}return _.key!==void 0}function Bn(_,P){if(typeof _.ref=="string"&&vt.current&&P&&vt.current.stateNode!==P){var V=un(vt.current.type);lo[V]||(L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',un(vt.current.type),_.ref),lo[V]=!0)}}function En(_,P){{var V=function(){qn||(qn=!0,L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};V.isReactWarning=!0,Object.defineProperty(_,"key",{get:V,configurable:!0})}}function sc(_,P){{var V=function(){js||(js=!0,L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};V.isReactWarning=!0,Object.defineProperty(_,"ref",{get:V,configurable:!0})}}var ye=function(_,P,V,J,st,wt,at){var ut={$$typeof:t,type:_,key:P,ref:V,props:at,_owner:wt};return ut._store={},Object.defineProperty(ut._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ut,"_self",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.defineProperty(ut,"_source",{configurable:!1,enumerable:!1,writable:!1,value:st}),Object.freeze&&(Object.freeze(ut.props),Object.freeze(ut)),ut};function uc(_,P,V,J,st){{var wt,at={},ut=null,Zt=null;V!==void 0&&(ic(V),ut=""+V),oc(P)&&(ic(P.key),ut=""+P.key),Ft(P)&&(Zt=P.ref,Bn(P,st));for(wt in P)me.call(P,wt)&&!Us.hasOwnProperty(wt)&&(at[wt]=P[wt]);if(_&&_.defaultProps){var Rt=_.defaultProps;for(wt in Rt)at[wt]===void 0&&(at[wt]=Rt[wt])}if(ut||Zt){var Ct=typeof _=="function"?_.displayName||_.name||"Unknown":_;ut&&En(at,Ct),Zt&&sc(at,Ct)}return ye(_,ut,Zt,st,J,vt.current,at)}}var Le=D.ReactCurrentOwner,fo=D.ReactDebugCurrentFrame;function Kn(_){if(_){var P=_._owner,V=Vn(_.type,_._source,P?P.type:null);fo.setExtraStackFrame(V)}else fo.setExtraStackFrame(null)}var vr;vr=!1;function gr(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Vs(){{if(Le.current){var _=un(Le.current.type);if(_)return`
Check the render method of \``+_+"`."}return""}}function mr(_){{if(_!==void 0){var P=_.fileName.replace(/^.*[\\\/]/,""),V=_.lineNumber;return`
Check your code at `+P+":"+V+"."}return""}}var qs={};function Bs(_){{var P=Vs();if(!P){var V=typeof _=="string"?_:_.displayName||_.name;V&&(P=`
Check the top-level render call using <`+V+">.")}return P}}function ac(_,P){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var V=Bs(P);if(qs[V])return;qs[V]=!0;var J="";_&&_._owner&&_._owner!==Le.current&&(J=" It was passed a child from "+un(_._owner.type)+"."),Kn(_),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,J),Kn(null)}}function cc(_,P){{if(typeof _!="object")return;if(Fs(_))for(var V=0;V<_.length;V++){var J=_[V];gr(J)&&ac(J,P)}else if(gr(_))_._store&&(_._store.validated=!0);else if(_){var st=A(_);if(typeof st=="function"&&st!==_.entries)for(var wt=st.call(_),at;!(at=wt.next()).done;)gr(at.value)&&ac(at.value,P)}}}function hc(_){{var P=_.type;if(P==null||typeof P=="string")return;var V;if(typeof P=="function")V=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===f||P.$$typeof===y))V=P.propTypes;else return;if(V){var J=un(P);Cf(V,_.props,"prop",J,_)}else if(P.PropTypes!==void 0&&!vr){vr=!0;var st=un(P);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",st||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pf(_){{for(var P=Object.keys(_.props),V=0;V<P.length;V++){var J=P[V];if(J!=="children"&&J!=="key"){Kn(_),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Kn(null);break}}_.ref!==null&&(Kn(_),L("Invalid attribute `ref` supplied to `React.Fragment`."),Kn(null))}}function ue(_,P,V,J,st,wt){{var at=S(_);if(!at){var ut="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ut+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Zt=mr(st);Zt?ut+=Zt:ut+=Vs();var Rt;_===null?Rt="null":Fs(_)?Rt="array":_!==void 0&&_.$$typeof===t?(Rt="<"+(un(_.type)||"Unknown")+" />",ut=" Did you accidentally export a JSX literal instead of a component?"):Rt=typeof _,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Rt,ut)}var Ct=uc(_,P,V,st,wt);if(Ct==null)return Ct;if(at){var we=P.children;if(we!==void 0)if(J)if(Fs(we)){for(var yr=0;yr<we.length;yr++)cc(we[yr],_);Object.freeze&&Object.freeze(we)}else L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cc(we,_)}return _===i?Pf(Ct):hc(Ct),Ct}}function po(_,P,V){return ue(_,P,V,!0)}function Lf(_,P,V){return ue(_,P,V,!1)}var Mf=Lf,lc=po;Uo.Fragment=i,Uo.jsx=Mf,Uo.jsxs=lc}()),Uo}process.env.NODE_ENV==="production"?lh.exports=MI():lh.exports=FI();var it=lh.exports;const UI=e=>it.jsxs("svg",{width:e.size,height:e.size,stroke:e.color,fill:"none",strokeWidth:"0",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"animate-spin -ml-1 mr-3 h-5 w-5",children:[it.jsx("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),it.jsx("path",{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",stroke:e.color,fill:e.color})]}),YD="",Tu=({children:e,onClick:t,disabled:r,id:i,className:s,icon:u,loading:c})=>it.jsxs("button",{id:`button-${i}`,className:`button ${s}`,onClick:t,disabled:r,children:[c&&it.jsx(UI,{size:"20",color:"white"}),e&&e,u&&!e&&u]});Tu.defaultProps={disabled:!1,loading:!1,className:"primary-button"};const jI=e=>it.jsx("svg",{width:e.size,height:e.size,stroke:e.color,fill:e.color,strokeWidth:"0",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:it.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 11.29l1-1v1.42l-1.15 1.14L3 12.5V10H1.5L1 9.5v-8l.5-.5h12l.5.5V6h-1V2H2v7h1.5l.5.5v1.79zM10.29 13l1.86 1.85.85-.35V13h1.5l.5-.5v-5l-.5-.5h-8l-.5.5v5l.5.5h3.79zm.21-1H7V8h7v4h-1.5l-.5.5v.79l-1.15-1.14-.35-.15z"})});var fh=function(e,t){return fh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},fh(e,t)};function Y(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _i=function(){return _i=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u])}return t},_i.apply(this,arguments)};function C(e,t,r,i){function s(u){return u instanceof r?u:new r(function(c){c(u)})}return new(r||(r=Promise))(function(u,c){function l(g){try{d(i.next(g))}catch(y){c(y)}}function f(g){try{d(i.throw(g))}catch(y){c(y)}}function d(g){g.done?u(g.value):s(g.value).then(l,f)}d((i=i.apply(e,t||[])).next())})}function R(e,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,s,u,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(d){return function(g){return f([d,g])}}function f(d){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(r=0)),r;)try{if(i=1,s&&(u=d[0]&2?s.return:d[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,d[1])).done)return u;switch(s=0,u&&(d=[d[0]&2,u.value]),d[0]){case 0:case 1:u=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,s=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!u||d[1]>u[0]&&d[1]<u[3])){r.label=d[1];break}if(d[0]===6&&r.label<u[1]){r.label=u[1],u=d;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(d);break}u[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(g){d=[6,g],s=0}finally{i=u=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function ph(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Su(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,u=[],c;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)u.push(s.value)}catch(l){c={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(c)throw c.error}}return u}function At(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,u;i<s;i++)(u||!(i in t))&&(u||(u=Array.prototype.slice.call(t,0,i)),u[i]=t[i]);return e.concat(u||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;/**
* @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.
*/var hv=function(e){for(var t=[],r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?t[r++]=s:s<2048?(t[r++]=s>>6|192,t[r++]=s&63|128):(s&64512)===55296&&i+1<e.length&&(e.charCodeAt(i+1)&64512)===56320?(s=65536+((s&1023)<<10)+(e.charCodeAt(++i)&1023),t[r++]=s>>18|240,t[r++]=s>>12&63|128,t[r++]=s>>6&63|128,t[r++]=s&63|128):(t[r++]=s>>12|224,t[r++]=s>>6&63|128,t[r++]=s&63|128)}return t},VI=function(e){for(var t=[],r=0,i=0;r<e.length;){var s=e[r++];if(s<128)t[i++]=String.fromCharCode(s);else if(s>191&&s<224){var u=e[r++];t[i++]=String.fromCharCode((s&31)<<6|u&63)}else if(s>239&&s<365){var u=e[r++],c=e[r++],l=e[r++],f=((s&7)<<18|(u&63)<<12|(c&63)<<6|l&63)-65536;t[i++]=String.fromCharCode(55296+(f>>10)),t[i++]=String.fromCharCode(56320+(f&1023))}else{var u=e[r++],c=e[r++];t[i++]=String.fromCharCode((s&15)<<12|(u&63)<<6|c&63)}}return t.join("")},qI={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:typeof atob=="function",encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],s=0;s<e.length;s+=3){var u=e[s],c=s+1<e.length,l=c?e[s+1]:0,f=s+2<e.length,d=f?e[s+2]:0,g=u>>2,y=(u&3)<<4|l>>4,w=(l&15)<<2|d>>6,I=d&63;f||(I=64,c||(w=64)),i.push(r[g],r[y],r[w],r[I])}return i.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(hv(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):VI(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var r=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],s=0;s<e.length;){var u=r[e.charAt(s++)],c=s<e.length,l=c?r[e.charAt(s)]:0;++s;var f=s<e.length,d=f?r[e.charAt(s)]:64;++s;var g=s<e.length,y=g?r[e.charAt(s)]:64;if(++s,u==null||l==null||d==null||y==null)throw Error();var w=u<<2|l>>4;if(i.push(w),d!==64){var I=l<<4&240|d>>2;if(i.push(I),y!==64){var E=d<<6&192|y;i.push(E)}}}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},BI=function(e){var t=hv(e);return qI.encodeByteArray(t,!0)},lv=function(e){return BI(e).replace(/\./g,"")};/**
* @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.
*/function KI(e){return jo(void 0,e)}function jo(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:var r=t;return new Date(r.getTime());case Object:e===void 0&&(e={});break;case Array:e=[];break;default:return t}for(var i in t)!t.hasOwnProperty(i)||!HI(i)||(e[i]=jo(e[i],t[i]));return e}function HI(e){return e!=="__proto__"}/**
* @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.
*/var zI=function(){function e(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(r,i){t.resolve=r,t.reject=i})}return e.prototype.wrapCallback=function(t){var r=this;return function(i,s){i?r.reject(i):r.resolve(s),typeof t=="function"&&(r.promise.catch(function(){}),t.length===1?t(i):t(i,s))}},e}();/**
* @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 fv(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var r={alg:"none",type:"JWT"},i=t||"demo-project",s=e.iat||0,u=e.sub||e.user_id;if(!u)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var c=_i({iss:"https://securetoken.google.com/"+i,aud:i,iat:s,exp:s+3600,auth_time:s,sub:u,user_id:u,firebase:{sign_in_provider:"custom",identities:{}}},e),l="";return[lv(JSON.stringify(r)),lv(JSON.stringify(c)),l].join(".")}/**
* @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.
*/function Ar(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function GI(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ar())}function pv(){try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function WI(){return typeof self=="object"&&self.self===self}function $I(){var e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function XI(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function YI(){return Ar().indexOf("Electron/")>=0}function QI(){var e=Ar();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function JI(){return Ar().indexOf("MSAppHost/")>=0}function ZI(){return!pv()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}/**
* @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.
*/var tE="FirebaseError",dv=function(e){Y(t,e);function t(r,i,s){var u=e.call(this,i)||this;return u.code=r,u.customData=s,u.name=tE,Object.setPrototypeOf(u,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(u,dh.prototype.create),u}return t}(Error),dh=function(){function e(t,r,i){this.service=t,this.serviceName=r,this.errors=i}return e.prototype.create=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var s=r[0]||{},u=this.service+"/"+t,c=this.errors[t],l=c?eE(c,s):"Error",f=this.serviceName+": "+l+" ("+u+").",d=new dv(u,f,s);return d},e}();function eE(e,t){return e.replace(nE,function(r,i){var s=t[i];return s!=null?String(s):"<"+i+"?>"})}var nE=/\{\$([^}]+)}/g;/**
* @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.
*/function vv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rE(e,t){var r=new iE(e,t);return r.subscribe.bind(r)}var iE=function(){function e(t,r){var i=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=r,this.task.then(function(){t(i)}).catch(function(s){i.error(s)})}return e.prototype.next=function(t){this.forEachObserver(function(r){r.next(t)})},e.prototype.error=function(t){this.forEachObserver(function(r){r.error(t)}),this.close(t)},e.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},e.prototype.subscribe=function(t,r,i){var s=this,u;if(t===void 0&&r===void 0&&i===void 0)throw new Error("Missing Observer.");oE(t,["next","error","complete"])?u=t:u={next:t,error:r,complete:i},u.next===void 0&&(u.next=vh),u.error===void 0&&(u.error=vh),u.complete===void 0&&(u.complete=vh);var c=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{s.finalError?u.error(s.finalError):u.complete()}catch{}}),this.observers.push(u),c},e.prototype.unsubscribeOne=function(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},e.prototype.forEachObserver=function(t){if(!this.finalized)for(var r=0;r<this.observers.length;r++)this.sendOne(r,t)},e.prototype.sendOne=function(t,r){var i=this;this.task.then(function(){if(i.observers!==void 0&&i.observers[t]!==void 0)try{r(i.observers[t])}catch(s){typeof console<"u"&&console.error&&console.error(s)}})},e.prototype.close=function(t){var r=this;this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(function(){r.observers=void 0,r.onNoObservers=void 0}))},e}();function oE(e,t){if(typeof e!="object"||e===null)return!1;for(var r=0,i=t;r<i.length;r++){var s=i[r];if(s in e&&typeof e[s]=="function")return!0}return!1}function vh(){}/**
* @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 _t(e){return e&&e._delegate?e._delegate:e}var Vo=function(){function e(t,r,i){this.name=t,this.instanceFactory=r,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},e.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},e.prototype.setServiceProps=function(t){return this.serviceProps=t,this},e.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},e}();/**
* @license
* Copyright 2019 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.
*/var Nr="[DEFAULT]";/**
* @license
* Copyright 2019 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.
*/var sE=function(){function e(t,r){this.name=t,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(t){var r=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(r)){var i=new zI;if(this.instancesDeferred.set(r,i),this.isInitialized(r)||this.shouldAutoInitialize())try{var s=this.getOrInitializeService({instanceIdentifier:r});s&&i.resolve(s)}catch{}}return this.instancesDeferred.get(r).promise},e.prototype.getImmediate=function(t){var r,i=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),s=(r=t==null?void 0:t.optional)!==null&&r!==void 0?r:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(u){if(s)return null;throw u}else{if(s)return null;throw Error("Service "+this.name+" is not available")}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(t){var r,i;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,!!this.shouldAutoInitialize()){if(aE(t))try{this.getOrInitializeService({instanceIdentifier:Nr})}catch{}try{for(var s=ph(this.instancesDeferred.entries()),u=s.next();!u.done;u=s.next()){var c=Su(u.value,2),l=c[0],f=c[1],d=this.normalizeInstanceIdentifier(l);try{var g=this.getOrInitializeService({instanceIdentifier:d});f.resolve(g)}catch{}}}catch(y){r={error:y}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}},e.prototype.clearInstance=function(t){t===void 0&&(t=Nr),this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)},e.prototype.delete=function(){return C(this,void 0,void 0,function(){var t;return R(this,function(r){switch(r.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(At(At([],Su(t.filter(function(i){return"INTERNAL"in i}).map(function(i){return i.INTERNAL.delete()}))),Su(t.filter(function(i){return"_delete"in i}).map(function(i){return i._delete()}))))];case 1:return r.sent(),[2]}})})},e.prototype.isComponentSet=function(){return this.component!=null},e.prototype.isInitialized=function(t){return t===void 0&&(t=Nr),this.instances.has(t)},e.prototype.getOptions=function(t){return t===void 0&&(t=Nr),this.instancesOptions.get(t)||{}},e.prototype.initialize=function(t){var r,i;t===void 0&&(t={});var s=t.options,u=s===void 0?{}:s,c=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(c))throw Error(this.name+"("+c+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var l=this.getOrInitializeService({instanceIdentifier:c,options:u});try{for(var f=ph(this.instancesDeferred.entries()),d=f.next();!d.done;d=f.next()){var g=Su(d.value,2),y=g[0],w=g[1],I=this.normalizeInstanceIdentifier(y);c===I&&w.resolve(l)}}catch(E){r={error:E}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return l},e.prototype.onInit=function(t,r){var i,s=this.normalizeInstanceIdentifier(r),u=(i=this.onInitCallbacks.get(s))!==null&&i!==void 0?i:new Set;u.add(t),this.onInitCallbacks.set(s,u);var c=this.instances.get(s);return c&&t(c,s),function(){u.delete(t)}},e.prototype.invokeOnInitCallbacks=function(t,r){var i,s,u=this.onInitCallbacks.get(r);if(u)try{for(var c=ph(u),l=c.next();!l.done;l=c.next()){var f=l.value;try{f(t,r)}catch{}}}catch(d){i={error:d}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},e.prototype.getOrInitializeService=function(t){var r=t.instanceIdentifier,i=t.options,s=i===void 0?{}:i,u=this.instances.get(r);if(!u&&this.component&&(u=this.component.instanceFactory(this.container,{instanceIdentifier:uE(r),options:s}),this.instances.set(r,u),this.instancesOptions.set(r,s),this.invokeOnInitCallbacks(u,r),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,r,u)}catch{}return u||null},e.prototype.normalizeInstanceIdentifier=function(t){return t===void 0&&(t=Nr),this.component?this.component.multipleInstances?t:Nr:t},e.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"},e}();function uE(e){return e===Nr?void 0:e}function aE(e){return e.instantiationMode==="EAGER"}/**
* @license
* Copyright 2019 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.
*/var cE=function(){function e(t){this.name=t,this.providers=new Map}return e.prototype.addComponent=function(t){var r=this.getProvider(t.name);if(r.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);r.setComponent(t)},e.prototype.addOrOverwriteComponent=function(t){var r=this.getProvider(t.name);r.isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},e.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var r=new sE(t,this);return this.providers.set(t,r),r},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
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
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function en(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<r;t++)for(var u=arguments[t],c=0,l=u.length;c<l;c++,s++)i[s]=u[c];return i}/**
* @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.
*/var Rr,gh=[],dt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(dt||(dt={}));var gv={debug:dt.DEBUG,verbose:dt.VERBOSE,info:dt.INFO,warn:dt.WARN,error:dt.ERROR,silent:dt.SILENT},hE=dt.INFO,lE=(Rr={},Rr[dt.DEBUG]="log",Rr[dt.VERBOSE]="log",Rr[dt.INFO]="info",Rr[dt.WARN]="warn",Rr[dt.ERROR]="error",Rr),fE=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!(t<e.logLevel)){var s=new Date().toISOString(),u=lE[t];if(u)console[u].apply(console,en(["["+s+"] "+e.name+":"],r));else throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}},mv=function(){function e(t){this.name=t,this._logLevel=hE,this._logHandler=fE,this._userLogHandler=null,gh.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in dt))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(t){this._logLevel=typeof t=="string"?gv[t]:t},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,en([this,dt.DEBUG],t)),this._logHandler.apply(this,en([this,dt.DEBUG],t))},e.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,en([this,dt.VERBOSE],t)),this._logHandler.apply(this,en([this,dt.VERBOSE],t))},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,en([this,dt.INFO],t)),this._logHandler.apply(this,en([this,dt.INFO],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,en([this,dt.WARN],t)),this._logHandler.apply(this,en([this,dt.WARN],t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,en([this,dt.ERROR],t)),this._logHandler.apply(this,en([this,dt.ERROR],t))},e}();function pE(e){gh.forEach(function(t){t.setLogLevel(e)})}function dE(e,t){for(var r=function(c){var l=null;t&&t.level&&(l=gv[t.level]),e===null?c.userLogHandler=null:c.userLogHandler=function(f,d){for(var g=[],y=2;y<arguments.length;y++)g[y-2]=arguments[y];var w=g.map(function(I){if(I==null)return null;if(typeof I=="string")return I;if(typeof I=="number"||typeof I=="boolean")return I.toString();if(I instanceof Error)return I.message;try{return JSON.stringify(I)}catch{return null}}).filter(function(I){return I}).join(" ");d>=(l??f.logLevel)&&e({level:dt[d].toLowerCase(),message:w,args:g,type:f.name})}},i=0,s=gh;i<s.length;i++){var u=s[i];r(u)}}/**
* @license
* Copyright 2019 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.
*/var Xn,vE=(Xn={},Xn["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",Xn["bad-app-name"]="Illegal App name: '{$appName}",Xn["duplicate-app"]="Firebase App named '{$appName}' already exists",Xn["app-deleted"]="Firebase App named '{$appName}' already deleted",Xn["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",Xn["invalid-log-argument"]="First argument to `onLog` must be null or a function.",Xn),Ii=new dh("app","Firebase",vE),yv="@firebase/app",gE="0.6.30",mE="@firebase/analytics",yE="@firebase/app-check",wE="@firebase/auth",bE="@firebase/database",_E="@firebase/functions",IE="@firebase/installations",EE="@firebase/messaging",TE="@firebase/performance",SE="@firebase/remote-config",kE="@firebase/storage",AE="@firebase/firestore",NE="firebase-wrapper";/**
* @license
* Copyright 2019 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.
*/var ce,ku="[DEFAULT]",RE=(ce={},ce[yv]="fire-core",ce[mE]="fire-analytics",ce[yE]="fire-app-check",ce[wE]="fire-auth",ce[bE]="fire-rtdb",ce[_E]="fire-fn",ce[IE]="fire-iid",ce[EE]="fire-fcm",ce[TE]="fire-perf",ce[SE]="fire-rc",ce[kE]="fire-gcs",ce[AE]="fire-fst",ce["fire-js"]="fire-js",ce[NE]="fire-js-all",ce);/**
* @license
* Copyright 2019 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.
*/var Ei=new mv("@firebase/app");/**
* @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.
*/var Au=function(){function e(t,r,i){var s=this;this.firebase_=i,this.isDeleted_=!1,this.name_=r.name,this.automaticDataCollectionEnabled_=r.automaticDataCollectionEnabled||!1,this.options_=KI(t),this.container=new cE(r.name),this._addComponent(new Vo("app",function(){return s},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(u){return s._addComponent(u)})}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var t=this;return new Promise(function(r){t.checkDestroyed_(),r()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(r){return r.delete()}))}).then(function(){t.isDeleted_=!0})},e.p