1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+6XX":function(t,e,n){var r=n("y1pI");t.exports=function(t){return r(this.__data__,t)>-1}},"+K+b":function(t,e,n){var r=n("JHRd");t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},"+iFO":function(t,e,n){var r=n("dTAl"),i=n("LcsW"),o=n("6sVZ");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},0:function(t,e,n){t.exports=n("zUnb")},"03A+":function(t,e,n){var r=n("JTzB"),i=n("ExA7"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},"0Cz8":function(t,e,n){var r=n("Xi7e"),i=n("ebwN"),o=n("e4Nc");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},"0jNN":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],s=Object.keys(o),a=0;a<s.length;++a){var u=s[a],c=o[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:o,prop:u}),n.push(c))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],i=0;i<e.length;++i)void 0!==e[i]&&r.push(e[i]);n.obj[n.prop]=r}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",r=0;r<e.length;++r){var o=e.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(o=65536+((1023&o)<<10|1023&e.charCodeAt(r+=1)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,i){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var s=e;return Array.isArray(e)&&!Array.isArray(n)&&(s=o(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach((function(n,o){r.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],n,i):e.push(n):e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return e[o]=r.call(e,o)?t(e[o],s,i):s,e}),s)}}},"0ycA":function(t,e){t.exports=function(){return[]}},1:function(t,e){},"1+5i":function(t,e,n){var r=n("w/wX"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isSet,a=s?i(s):r;t.exports=a},"2SVd":function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"2gN3":function(t,e,n){var r=n("Kz5y");t.exports=r["__core-js_shared__"]},"3/DG":function(t,e){function n(t,e){var n=[],r=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(e)).join(".")+"]"}),function(i,o){if(n.length>0){var s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?r.splice(s,1/0,i):r.push(i),~n.indexOf(o)&&(o=e.call(this,i,o))}else n.push(o);return null==t?o:t.call(this,i,o)}}(t.exports=function(t,e,r,i){return JSON.stringify(t,n(e,i),r)}).getSerialize=n},"3Fdi":function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},"4kuk":function(t,e,n){var r=n("SfRM"),i=n("Hvzi"),o=n("u8Dt"),s=n("ekgI"),a=n("JSQU");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},"5Tg0":function(t,e,n){(function(t){var r=n("Kz5y"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("YuTi")(t))},"5oMp":function(t,e,n){"use strict";
1t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},"6Joi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n("os0x"),o=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r,s=n("q/0M"),a=n("zVF4"),u=n("S+S0"),c=n("x7I3"),l=o.SDK_VERSION,h=function(){function t(t){this.uid=t}return t.prototype.t=function(){return null!=this.uid},t.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();h.UNAUTHENTICATED=new h(null),h.i=new h("google-credentials-uid"),h.h=new h("first-party-uid");var p={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},d=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return i.__extends(e,t),e}(Error),f=function(t,e){this.user=e,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+t},g=function(){function t(){this.u=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype._=function(){},t.prototype.l=function(t){this.u=t,t(h.UNAUTHENTICATED)},t.prototype.T=function(){this.u=null},t}(),m=function(){function t(t){var e=this;this.I=null,this.currentUser=h.UNAUTHENTICATED,this.R=!1,this.A=0,this.u=null,this.forceRefresh=!1,this.I=function(){e.A++,e.currentUser=e.m(),e.R=!0,e.u&&e.u(e.currentUser)},this.A=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),t.get().then((function(t){e.auth=t,e.I&&e.auth.addAuthTokenListener(e.I)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.A,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(t.A!==e)throw new d(p.ABORTED,"getToken aborted due to token change.");return n?(_e("string"==typeof n.accessToken),new f(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype._=function(){this.forceRefresh=!0},t.prototype.l=function(t){this.u=t,this.R&&t(this.currentUser)},t.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},t.prototype.m=function(){var t=this.auth&&this.auth.getUid();return _e(null===t||"string"==typeof t),new h(t)},t}(),y=function(){function t(t,e){this.P=t,this.V=e,this.type="FirstParty",this.user=h.h}return Object.defineProperty(t.prototype,"o",{get:function(){var t={"X-Goog-AuthUser":this.V},e=this.P.auth.g([]);return e&&(t.Authorization=e),t},enumerable:!0,configurable:!0}),t}(),v=function(){function t(t,e){this.P=t,this.V=e}return t.prototype.getToken=function(){return Promise.resolve(new y(this.P,this.V))},t.prototype.l=function(t){t(h.h)},t.prototype.T=function(){},t.prototype._=function(){},t}(),_=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new d(p.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new d(p.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new d(p.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new d(p.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.p=function(t){return this.seconds===t.seconds?Ce(this.nanoseconds,t.nanoseconds):Ce(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1,t}(),b=function(){function t(t){this.timestamp=t}return t.v=function(e){return new t(e)},t.min=function(){return new t(new _(0,0))},t.prototype.S=function(t){return this.timestamp.p(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.D=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.C=function(){return this.timestamp},t}(),w=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&ve(),void 0===n?n=t.length-e:n>t.length-e&&ve(),this.segments=t,this.offset=e,this.F=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.F},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.N(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.$(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.k=function(t){return this.$(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.M=function(){return this.$(this.segments,this.offset,this.length-1)},t.prototype.L=function(){return this.segments[this.offset]},t.prototype.O=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.B=function(){return 0===this.length},t.prototype.q=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.U=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.W=function(){return this.segments.slice(this.offset,this.limit())},t.N=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.$=function(t,n,r){return new e(t,n,r)},e.prototype.j=function(){return this.W().join("/")},e.prototype.toString=function(){return this.j()},e.K=function(t){if(t.indexOf("//")>=0)throw new d(p.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e}(w);C.G=new C([]);var O=/^[_a-zA-Z][_a-zA-Z0-9]*$/,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.$=function(t,n,r){return new e(t,n,r)},e.H=function(t){return O.test(t)},e.prototype.j=function(){return this.W().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.H(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.j()},e.prototype.Y=function(){return 1===this.length&&"__name__"===this.get(0)},e.J=function(){return new e(["__name__"])},e.X=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new d(p.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<t.length;){var a=t[i];if("\\"===a){if(i+1===t.length)throw new d(p.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new d(p.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new d(p.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e}(w);x.G=new x([]);var E=function(){function t(t){this.path=t}return t.Z=function(e){return new t(C.K(e).k(5))},t.prototype.tt=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===C.N(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.N=function(t,e){return C.N(t.path,e.path)},t.et=function(t){return t.length%2==0},t.st=function(e){return new t(new C(e.slice()))},t}();function P(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function M(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function S(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
1E.EMPTY=new E(new C([]));var T=function(){function t(t){this.it=t}return t.fromBase64String=function(e){return new t(pe.nt().atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return pe.nt().btoa(this.it)},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.it)},t.prototype.rt=function(){return 2*this.it.length},t.prototype.S=function(t){return Ce(this.it,t.it)},t.prototype.isEqual=function(t){return this.it===t.it},t}();function A(t){return null==t}function k(t){return-0===t&&1/t==-1/0}function I(t){return"number"==typeof t&&Number.isInteger(t)&&!k(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}function D(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function N(t){var e=q(t.mapValue.fields.__local_write_time__.timestampValue);return new _(e.seconds,e.nanos)}T.ht=new T("");var R=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function j(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?D(t)?4:10:ve()}function F(t,e){var n=j(t);if(n!==j(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return N(t).isEqual(N(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=q(t.timestampValue),r=q(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return H(t.bytesValue).isEqual(H(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return z(t.geoPointValue.latitude)===z(e.geoPointValue.latitude)&&z(t.geoPointValue.longitude)===z(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return z(t.integerValue)===z(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=z(t.doubleValue),r=z(e.doubleValue);return n===r?k(n)===k(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return Oe(t.arrayValue.values||[],e.arrayValue.values||[],F);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(P(n)!==P(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!F(n[i],r[i])))return!1;return!0}(t,e);default:return ve()}}function L(t,e){return void 0!==(t.values||[]).find((function(t){return F(t,e)}))}function U(t,e){var n=j(t),r=j(e);if(n!==r)return Ce(n,r);switch(n){case 0:return 0;case 1:return Ce(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=z(t.integerValue||t.doubleValue),r=z(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return V(t.timestampValue,e.timestampValue);case 4:return V(N(t),N(e));case 5:return Ce(t.stringValue,e.stringValue);case 6:return function(t,e){var n=H(t),r=H(e);return n.S(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=Ce(n[i],r[i]);if(0!==o)return o}return Ce(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=Ce(z(t.latitude),z(e.latitude));return 0!==n?n:Ce(z(t.longitude),z(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=U(n[i],r[i]);if(o)return o}return Ce(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=Ce(r[s],o[s]);if(0!==a)return a;var u=U(n[r[s]],i[o[s]]);if(0!==u)return u}return Ce(r.length,o.length)}(t.mapValue,e.mapValue);default:throw ve()}}function V(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return Ce(t,e);var n=q(t),r=q(e),i=Ce(n.seconds,r.seconds);return 0!==i?i:Ce(n.nanos,r.nanos)}function B(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=q(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?H(e.bytesValue).toBase64():"referenceValue"in e?E.Z(e.referenceValue).toString():"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",r=!0,i=0,o=e.values||[];i<o.length;i++)r?r=!1:n+=",",n+=t(o[i]);return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",r=!0,i=0,o=Object.keys(e.fields||{}).sort();i<o.length;i++){var s=o[i];r?r=!1:n+=",",n+=s+":"+t(e.fields[s])}return n+"}"}(e.mapValue):ve();var n}(t)}function q(t){if(_e(!!t),"string"==typeof t){var e=0,n=R.exec(t);if(_e(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:z(t.seconds),nanos:z(t.nanos)}}function z(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function H(t){return"string"==typeof t?T.fromBase64String(t):T.fromUint8Array(t)}function W(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.j()}}function G(t){return!!t&&"integerValue"in t}function $(t){return!!t&&"arrayValue"in t}function Q(t){return!!t&&"nullValue"in t}function K(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Y(t){return!!t&&"mapValue"in t}var Z=function(){function t(){}return t.prototype.ot=function(t,e){return function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(e,t)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t},t}();Z.instance=new Z;var X=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e.some((function(e){return F(e,t)}))||e.push(t)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Oe(this.elements,e.elements,F)},t}(),J=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e=e.filter((function(e){return!F(e,t)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Oe(this.elements,e.elements,F)},t}
1(),tt=function(){function t(t,e){this.serializer=t,this.ct=e}return t.prototype.ot=function(t,e){var n=this.ut(t),r=this.asNumber(n)+this.asNumber(this.ct);return G(n)&&G(this.ct)?this.serializer._t(r):this.serializer.lt(r)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return G(e=t)||function(t){return!!t&&"doubleValue"in t}(e)?t:{integerValue:0};var e},t.prototype.isEqual=function(e){return e instanceof t&&F(this.ct,e.ct)},t.prototype.asNumber=function(t){return z(t.integerValue||t.doubleValue)},t}();function et(t){return $(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var nt=function(){function t(t){this.fields=t,t.sort(x.N)}return t.prototype.dt=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].q(t))return!0;return!1},t.prototype.isEqual=function(t){return Oe(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),rt=function(){function t(t,e){this.field=t,this.transform=e}return t.prototype.isEqual=function(t){return this.field.isEqual(t.field)&&this.transform.isEqual(t.transform)},t}(),it=function(t,e){this.version=t,this.transformResults=e},ot=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ft=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tt",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),t.prototype.Et=function(t){return void 0!==this.updateTime?t instanceof vt&&t.version.isEqual(this.updateTime):void 0===this.exists||this.exists===t instanceof vt},t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}(),st=function(){function t(){}return t.prototype.wt=function(t){},t.It=function(t){return t instanceof vt?t.version:b.min()},t}(),at=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Rt=r,i.type=0,i}return i.__extends(e,t),e.prototype.at=function(t,e){return this.wt(t),new vt(this.key,e.version,this.value,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.wt(t),!this.Rt.Et(t))return t;var r=st.It(t);return new vt(this.key,r,this.value,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.value.isEqual(t.value)&&this.Rt.isEqual(t.Rt)},e}(st),ut=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.Vt=r,o.Rt=i,o.type=1,o}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.wt(t),!this.Rt.Et(t))return new bt(this.key,e.version);var n=this.gt(t);return new vt(this.key,e.version,n,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.wt(t),!this.Rt.Et(t))return t;var r=st.It(t),i=this.gt(t);return new vt(this.key,r,i,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Vt.isEqual(t.Vt)&&this.Rt.isEqual(t.Rt)},e.prototype.gt=function(t){var e;return e=t instanceof vt?t.data():pt.empty(),this.pt(e)},e.prototype.pt=function(t){var e=this,n=new dt(t);return this.Vt.fields.forEach((function(t){if(!t.B()){var r=e.data.field(t);null!==r?n.set(t,r):n.delete(t)}})),n.yt()},e}(st),ct=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Rt=ot.exists(!0),r}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.wt(t),_e(null!=e.transformResults),!this.Rt.Et(t))return new bt(this.key,e.version);var n=this.bt(t),r=this.vt(t,e.transformResults),i=e.version,o=this.St(n.data(),r);return new vt(this.key,i,o,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.wt(t),!this.Rt.Et(t))return t;var r=this.bt(t),i=this.Dt(n,t,e),o=this.St(r.data(),i);return new vt(this.key,r.version,o,{At:!0})},e.prototype.Pt=function(t){for(var e=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],o=t instanceof vt?t.field(i.field):void 0,s=i.transform.ut(o||null);null!=s&&(e=null==e?(new dt).set(i.field,s):e.set(i.field,s))}return e?e.yt():null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&Oe(this.fieldTransforms,t.fieldTransforms,(function(t,e){return t.isEqual(e)}))&&this.Rt.isEqual(t.Rt)},e.prototype.bt=function(t){return t},e.prototype.vt=function(t,e){var n=[];_e(this.fieldTransforms.length===e.length);for(var r=0;r<e.length;r++){var i=this.fieldTransforms[r],o=i.transform,s=null;t instanceof vt&&(s=t.field(i.field)),n.push(o.at(s,e[r]))}return n},e.prototype.Dt=function(t,e,n){for(var r=[],i=0,o=this.fieldTransforms;i<o.length;i++){var s=o[i],a=s.transform,u=null;e instanceof vt&&(u=e.field(s.field)),null===u&&n instanceof vt&&(u=n.field(s.field)),r.push(a.ot(u,t))}return r},e.prototype.St=function(t,e){for(var n=new dt(t),r=0;r<this.fieldTransforms.length;r++)n.set(this.fieldTransforms[r].field,e[r]);return n.yt()},e}(st),lt=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=3,r}return i.__extends(e,t),e.prototype.at=function(t,e){return this.wt(t),new _t(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){return this.wt(t),this.Rt.Et(t)?new _t(this.key,b.min()):t},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(st),ht=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=4,r}return i.__extends(e,t),e.prototype.at=function(t,e){ve()},e.prototype.ot=function(t,e,n){ve()},e.prototype.Pt=function(t){ve()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(st),pt=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.B())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!Y(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t.O()])||null},t.prototype.isEqual=function(t){return F(this.proto,t.proto)},t}(),dt=function(){function t(t){void 0===t&&(t=pt.empty()),this.Ct=t,this.Ft=new Map}return t.prototype.set=function(t,e){return this.Nt(t,e),this},t.prototype.delete=function(t){return this.Nt(t,null),this},t.prototype.Nt=function(t,e){for(var n=this.Ft,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===j(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t.O(),e)}
1,t.prototype.yt=function(){var t=this.$t(x.G,this.Ft);return null!=t?new pt(t):this.Ct},t.prototype.$t=function(t,e){var n=this,r=!1,i=this.Ct.field(t),o=Y(i)?Object.assign({},i.mapValue.fields):{};return e.forEach((function(e,i){if(e instanceof Map){var s=n.$t(t.child(i),e);null!=s&&(o[i]=s,r=!0)}else null!==e?(o[i]=e,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)})),r?{mapValue:{fields:o}}:null},t}();function ft(t){var e=[];return M(t.fields||{},(function(t,n){var r=new x([t]);if(Y(n)){var i=ft(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,s=i;o<s.length;o++)e.push(r.child(s[o]))}else e.push(r)})),new nt(e)}var gt,mt,yt=function(t,e){this.key=t,this.version=e},vt=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).kt=r,o.At=!!i.At,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return i.__extends(e,t),e.prototype.field=function(t){return this.kt.field(t)},e.prototype.data=function(){return this.kt},e.prototype.Mt=function(){return this.kt.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.At===t.At&&this.hasCommittedMutations===t.hasCommittedMutations&&this.kt.isEqual(t.kt)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.kt.toString()+", {hasLocalMutations: "+this.At+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.At||this.hasCommittedMutations},enumerable:!0,configurable:!0}),e}(yt),_t=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return i.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(yt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(yt),wt=function(){function t(t,e,n,r,i,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.xt=null}return t.prototype.canonicalId=function(){if(null===this.xt){var t=this.path.j();null!==this.collectionGroup&&(t+="|cg:"+this.collectionGroup),t+="|f:",t+=this.filters.map((function(t){return t.canonicalId()})).join(","),t+="|ob:",t+=this.orderBy.map((function(t){return t.canonicalId()})).join(","),A(this.limit)||(t+="|l:",t+=this.limit),this.startAt&&(t+="|lb:",t+=this.startAt.canonicalId()),this.endAt&&(t+="|ub:",t+=this.endAt.canonicalId()),this.xt=t}return this.xt},t.prototype.toString=function(){var t=this.path.j();return null!==this.collectionGroup&&(t+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(t+=", filters: ["+this.filters.join(", ")+"]"),A(this.limit)||(t+=", limit: "+this.limit),this.orderBy.length>0&&(t+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(t+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(t+=", endAt: "+this.endAt.canonicalId()),"Target("+t+")"},t.prototype.isEqual=function(t){if(this.limit!==t.limit)return!1;if(this.orderBy.length!==t.orderBy.length)return!1;for(var e=0;e<this.orderBy.length;e++)if(!this.orderBy[e].isEqual(t.orderBy[e]))return!1;if(this.filters.length!==t.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(t.filters[n]))return!1;return this.collectionGroup===t.collectionGroup&&!!this.path.isEqual(t.path)&&!!(null!==this.startAt?this.startAt.isEqual(t.startAt):null===t.startAt)&&(null!==this.endAt?this.endAt.isEqual(t.endAt):null===t.endAt)},t.prototype.Lt=function(){return E.et(this.path)&&null===this.collectionGroup&&0===this.filters.length},t}(),Ct=function(){function t(t,e,n,r,i,o,s,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.Ot=n,this.filters=r,this.limit=i,this.Bt=o,this.startAt=s,this.endAt=a,this.qt=null,this.Ut=null,this.startAt&&this.Qt(this.startAt),this.endAt&&this.Qt(this.endAt)}return t.Wt=function(e){return new t(e)},Object.defineProperty(t.prototype,"orderBy",{get:function(){if(null===this.qt){this.qt=[];var t=this.jt(),e=this.Kt();if(null!==t&&null===e)t.Y()||this.qt.push(new At(t)),this.qt.push(new At(x.J(),"asc"));else{for(var n=!1,r=0,i=this.Ot;r<i.length;r++){var o=i[r];this.qt.push(o),o.field.Y()&&(n=!0)}if(!n){var s=this.Ot.length>0?this.Ot[this.Ot.length-1].dir:"asc";this.qt.push(new At(x.J(),s))}}}return this.qt},enumerable:!0,configurable:!0}),t.prototype.Gt=function(e){var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.Ot.slice(),n,this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.zt=function(e){var n=this.Ot.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.Ht=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.Yt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.Jt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,e,this.endAt)},t.prototype.Xt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,e)},t.prototype.Zt=function(e){return new t(e,null,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.te=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.Ot.length||1===this.Ot.length&&this.Ot[0].field.Y())},t.prototype.canonicalId=function(){return this.ee().canonicalId()+"|lt:"+this.Bt},t.prototype.toString=function(){return"Query(target="+this.ee().toString()+"; limitType="+this.Bt+")"},t.prototype.isEqual=function(t){return this.ee().isEqual(t.ee())&&this.Bt===t.Bt},t.prototype.se=function(t,e){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],s=o.compare(t,e);if(0!==s)return s;n=n||o.field.Y()}return 0},t.prototype.matches=function(t){return this.ie(t)&&this.ne(t)&&this.re(t)&&this.he(t)},t.prototype.oe=function(){return!A(this.limit)&&"F"===this.Bt},t.prototype.ae=function(){return!A(this.limit)&&"L"===this.Bt},t.prototype.Kt=function(){return this.Ot.length>0?this.Ot[0].field:null},t.prototype.jt=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n instanceof Ot&&n.ue())return n.field}return null},t.prototype.ce=function(t){for(var e=0,n=this.filters;e<n.length;e++){var r=n[e];if(r instanceof Ot&&t.indexOf(r.op)>=0)return r.op}return null},t.prototype.Lt=function(){return this.ee().Lt()},t.prototype._e=function(){return null!==this.collectionGroup},t.prototype.ee=function(){if(!this.Ut)if("F"===this.Bt)this.Ut=new wt(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var t=[],e=0,n=this.orderBy;e<n.length;e++){var r=n[e];t.push(new At(r.field,"desc"===r.dir?"asc":"desc"))}var i=this.endAt?new Tt(this.endAt.position,!this.endAt.before):null,o=this.startAt?new Tt(this.startAt.position,!this.startAt.before):null;this.Ut=new wt(this.path,this.collectionGroup,t,this.filters,this.limit,i,o)}return this.Ut},t.prototype.ie=function(t){var e=t.key.path;return null!==this.collectionGroup?t.key.tt(this.collectionGroup)&&this.path.q(e):E.et(this.path)?this.path.isEqual(e):this.path.U(e)},t.prototype.ne=function(t){for(var e=0,n=this.Ot;e<n.length;e++){var r=n[e];if(!r.field.Y()&&null===t.field(r.field))return!1}return!0},t.prototype.re=function(t){for(var e=0,n=this.filters;e<n.length;e++)if(!n[e].matches(t))return!1;return!0},t.prototype.he=function(t){return!(this.startAt&&!this.startAt.le(this.orderBy,t)||this.endAt&&this.endAt.le(this.orderBy,t))},t.prototype.Qt=function(t){},t}(),Ot=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return i.__extends(e,t),e.create=function(t,n,r){if(t.Y())return"in"===n?new Et(t,r):new xt(t,n,r);if(Q(r)){if("=="!==n)throw new d(p.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,r)}if(K(r)){if("=="!==n)throw new d(p.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,r)}return"array-contains"===n?new Pt(t,r):"in"===n?new Mt(t,r):"array-contains-any"===n?new St(t,r):new e(t,n,r)},e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&j(this.value)===j(e)&&this.de(U(e,this.value))},e.prototype.de=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case">":return t>0;case">=":return t>=0;default:return ve()}},e.prototype.ue=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e.prototype.canonicalId=function(){return this.field.j()+this.op.toString()+B(this.value)},e.prototype.isEqual=function(t){return t instanceof e&&this.op===t.op&&this.field.isEqual(t.field)&&F(this.value,t.value)},e.prototype.toString=function(){return this.field.j()+" "+this.op+" "+B(this.value)},e}((function(){})),xt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=E.Z(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=E.N(t.key,this.key);return this.de(e)},e}(Ot),Et=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return E.Z(t.referenceValue)})),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Ot),Pt=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return $(e)&&L(e.arrayValue,this.value)},e}(Ot),Mt=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&L(this.value.arrayValue,e)},e}(Ot),St=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!$(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return L(e.value.arrayValue,t)}))},e}(Ot),Tt=function(){function t(t,e){this.position=t,this.before=e}return t.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(t){return B(t)})).join(",")},t.prototype.le=function(t,e){for(var n=0,r=0;r<this.position.length;r++){var i=t[r],o=this.position[r];if(n=i.field.Y()?E.N(E.Z(o.referenceValue),e.key):U(o,e.field(i.field)),"desc"===i.dir&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},t.prototype.isEqual=function(t){if(null===t)return!1;if(this.before!==t.before||this.position.length!==t.position.length)return!1;for(var e=0;e<this.position.length;e++)if(!F(this.position[e],t.position[e]))return!1;return!0},t}(),At=function(){function t(t,e){this.field=t,void 0===e&&(e="asc"),this.dir=e,this.fe=t.Y()}return t.prototype.compare=function(t,e){var n=this.fe?E.N(t.key,e.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?U(r,i):ve()}(this.field,t,e);switch(this.dir){case"asc":return n;
1case"desc":return-1*n;default:return ve()}},t.prototype.canonicalId=function(){return this.field.j()+this.dir.toString()},t.prototype.toString=function(){return this.field.j()+" ("+this.dir+")"},t.prototype.isEqual=function(t){return this.dir===t.dir&&this.field.isEqual(t.field)},t}(),kt=function(){function t(t,e,n,r,i,o,s){void 0===i&&(i=b.min()),void 0===o&&(o=b.min()),void 0===s&&(s=T.ht),this.target=t,this.targetId=e,this.Te=n,this.sequenceNumber=r,this.Ee=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return t.prototype.we=function(e){return new t(this.target,this.targetId,this.Te,e,this.Ee,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.Ie=function(e,n){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.Re=function(e){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,this.Ee,e,this.resumeToken)},t}(),It=function(t){this.count=t};function Dt(t){switch(t){case p.OK:return ve();case p.CANCELLED:case p.UNKNOWN:case p.DEADLINE_EXCEEDED:case p.RESOURCE_EXHAUSTED:case p.INTERNAL:case p.UNAVAILABLE:case p.UNAUTHENTICATED:return!1;case p.INVALID_ARGUMENT:case p.NOT_FOUND:case p.ALREADY_EXISTS:case p.PERMISSION_DENIED:case p.FAILED_PRECONDITION:case p.ABORTED:case p.OUT_OF_RANGE:case p.UNIMPLEMENTED:case p.DATA_LOSS:return!0;default:return ve()}}function Nt(t){if(void 0===t)return me("GRPC error has no .code"),p.UNKNOWN;switch(t){case gt.OK:return p.OK;case gt.CANCELLED:return p.CANCELLED;case gt.UNKNOWN:return p.UNKNOWN;case gt.DEADLINE_EXCEEDED:return p.DEADLINE_EXCEEDED;case gt.RESOURCE_EXHAUSTED:return p.RESOURCE_EXHAUSTED;case gt.INTERNAL:return p.INTERNAL;case gt.UNAVAILABLE:return p.UNAVAILABLE;case gt.UNAUTHENTICATED:return p.UNAUTHENTICATED;case gt.INVALID_ARGUMENT:return p.INVALID_ARGUMENT;case gt.NOT_FOUND:return p.NOT_FOUND;case gt.ALREADY_EXISTS:return p.ALREADY_EXISTS;case gt.PERMISSION_DENIED:return p.PERMISSION_DENIED;case gt.FAILED_PRECONDITION:return p.FAILED_PRECONDITION;case gt.ABORTED:return p.ABORTED;case gt.OUT_OF_RANGE:return p.OUT_OF_RANGE;case gt.UNIMPLEMENTED:return p.UNIMPLEMENTED;case gt.DATA_LOSS:return p.DATA_LOSS;default:return ve()}}(mt=gt||(gt={}))[mt.OK=0]="OK",mt[mt.CANCELLED=1]="CANCELLED",mt[mt.UNKNOWN=2]="UNKNOWN",mt[mt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",mt[mt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",mt[mt.NOT_FOUND=5]="NOT_FOUND",mt[mt.ALREADY_EXISTS=6]="ALREADY_EXISTS",mt[mt.PERMISSION_DENIED=7]="PERMISSION_DENIED",mt[mt.UNAUTHENTICATED=16]="UNAUTHENTICATED",mt[mt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",mt[mt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",mt[mt.ABORTED=10]="ABORTED",mt[mt.OUT_OF_RANGE=11]="OUT_OF_RANGE",mt[mt.UNIMPLEMENTED=12]="UNIMPLEMENTED",mt[mt.INTERNAL=13]="INTERNAL",mt[mt.UNAVAILABLE=14]="UNAVAILABLE",mt[mt.DATA_LOSS=15]="DATA_LOSS";var Rt=function(){function t(t,e){this.N=t,this.root=e||Ft.EMPTY}return t.prototype.Ae=function(e,n){return new t(this.N,this.root.Ae(e,n,this.N).me(null,null,Ft.Pe,null,null))},t.prototype.remove=function(e){return new t(this.N,this.root.remove(e,this.N).me(null,null,Ft.Pe,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.B();){var n=this.N(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.B();){var r=this.N(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.B=function(){return this.root.B()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),t.prototype.Ve=function(){return this.root.Ve()},t.prototype.ge=function(){return this.root.ge()},t.prototype.pe=function(t){return this.root.pe(t)},t.prototype.forEach=function(t){this.pe((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.pe((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ye=function(t){return this.root.ye(t)},t.prototype.be=function(){return new jt(this.root,null,this.N,!1)},t.prototype.ve=function(t){return new jt(this.root,t,this.N,!1)},t.prototype.Se=function(){return new jt(this.root,null,this.N,!0)},t.prototype.De=function(t){return new jt(this.root,t,this.N,!0)},t}(),jt=function(){function t(t,e,n,r){this.Ce=r,this.Fe=[];for(var i=1;!t.B();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Ce?t.left:t.right;else{if(0===i){this.Fe.push(t);break}this.Fe.push(t),t=this.Ce?t.right:t.left}}return t.prototype.Ne=function(){var t=this.Fe.pop(),e={key:t.key,value:t.value};if(this.Ce)for(t=t.left;!t.B();)this.Fe.push(t),t=t.right;else for(t=t.right;!t.B();)this.Fe.push(t),t=t.left;return e},t.prototype.$e=function(){return this.Fe.length>0},t.prototype.ke=function(){if(0===this.Fe.length)return null;var t=this.Fe[this.Fe.length-1];return{key:t.key,value:t.value}},t}(),Ft=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.me=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
1null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.B=function(){return!1},t.prototype.pe=function(t){return this.left.pe(t)||t(this.key,this.value)||this.right.pe(t)},t.prototype.ye=function(t){return this.right.ye(t)||t(this.key,this.value)||this.left.ye(t)},t.prototype.min=function(){return this.left.B()?this:this.left.min()},t.prototype.Ve=function(){return this.min().key},t.prototype.ge=function(){return this.right.B()?this.key:this.right.ge()},t.prototype.Ae=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.me(null,null,null,r.left.Ae(t,e,n),null):0===i?r.me(null,e,null,null,null):r.me(null,null,null,null,r.right.Ae(t,e,n))).Me()},t.prototype.xe=function(){if(this.left.B())return t.EMPTY;var e=this;return e.left.Le()||e.left.left.Le()||(e=e.Oe()),(e=e.me(null,null,null,e.left.xe(),null)).Me()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.B()||i.left.Le()||i.left.left.Le()||(i=i.Oe()),i=i.me(null,null,null,i.left.remove(e,n),null);else{if(i.left.Le()&&(i=i.Be()),i.right.B()||i.right.Le()||i.right.left.Le()||(i=i.qe()),0===n(e,i.key)){if(i.right.B())return t.EMPTY;r=i.right.min(),i=i.me(r.key,r.value,null,null,i.right.xe())}i=i.me(null,null,null,null,i.right.remove(e,n))}return i.Me()},t.prototype.Le=function(){return this.color},t.prototype.Me=function(){var t=this;return t.right.Le()&&!t.left.Le()&&(t=t.Ue()),t.left.Le()&&t.left.left.Le()&&(t=t.Be()),t.left.Le()&&t.right.Le()&&(t=t.Qe()),t},t.prototype.Oe=function(){var t=this.Qe();return t.right.left.Le()&&(t=(t=(t=t.me(null,null,null,null,t.right.Be())).Ue()).Qe()),t},t.prototype.qe=function(){var t=this.Qe();return t.left.left.Le()&&(t=(t=t.Be()).Qe()),t},t.prototype.Ue=function(){var e=this.me(null,null,t.RED,null,this.right.left);return this.right.me(null,null,this.color,e,null)},t.prototype.Be=function(){var e=this.me(null,null,t.RED,this.left.right,null);return this.left.me(null,null,this.color,null,e)},t.prototype.Qe=function(){var t=this.left.me(null,null,!this.left.color,null,null),e=this.right.me(null,null,!this.right.color,null,null);return this.me(null,null,!this.color,t,e)},t.prototype.We=function(){var t=this.je();return Math.pow(2,t)<=this.size+1},t.prototype.je=function(){if(this.Le()&&this.left.Le())throw ve();if(this.right.Le())throw ve();var t=this.left.je();if(t!==this.right.je())throw ve();return t+(this.Le()?0:1)},t}();Ft.EMPTY=null,Ft.RED=!0,Ft.Pe=!1,Ft.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw ve()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw ve()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw ve()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw ve()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw ve()},enumerable:!0,configurable:!0}),t.prototype.me=function(t,e,n,r,i){return this},t.prototype.Ae=function(t,e,n){return new Ft(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.B=function(){return!0},t.prototype.pe=function(t){return!1},t.prototype.ye=function(t){return!1},t.prototype.Ve=function(){return null},t.prototype.ge=function(){return null},t.prototype.Le=function(){return!1},t.prototype.We=function(){return!0},t.prototype.je=function(){return 0},t}());var Lt=function(){function t(t){this.N=t,this.data=new Rt(this.N)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.Ve()},t.prototype.last=function(){return this.data.ge()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.pe((function(e,n){return t(e),!1}))},t.prototype.Ke=function(t,e){for(var n=this.data.ve(t[0]);n.$e();){var r=n.Ne();if(this.N(r.key,t[1])>=0)return;e(r.key)}},t.prototype.Ge=function(t,e){var n;for(n=void 0!==e?this.data.ve(e):this.data.be();n.$e();
1)if(!t(n.Ne().key))return},t.prototype.ze=function(t){var e=this.data.ve(t);return e.$e()?e.Ne().key:null},t.prototype.be=function(){return new Ut(this.data.be())},t.prototype.ve=function(t){return new Ut(this.data.ve(t))},t.prototype.add=function(t){return this.me(this.data.remove(t).Ae(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.me(this.data.remove(t)):this},t.prototype.B=function(){return this.data.B()},t.prototype.He=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.be(),r=e.data.be();n.$e();){var i=n.Ne().key,o=r.Ne().key;if(0!==this.N(i,o))return!1}return!0},t.prototype.W=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.me=function(e){var n=new t(this.N);return n.data=e,n},t}(),Ut=function(){function t(t){this.Ye=t}return t.prototype.Ne=function(){return this.Ye.Ne().key},t.prototype.$e=function(){return this.Ye.$e()},t}(),Vt=new Rt(E.N);function Bt(){return Vt}function qt(){return Bt()}var zt=new Rt(E.N);function Ht(){return zt}var Wt=new Rt(E.N),Gt=new Lt(E.N);function $t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Gt,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Qt=new Lt(Ce);function Kt(){return Qt}var Yt=function(){function t(t){this.N=t?function(e,n){return t(e,n)||E.N(e.key,n.key)}:function(t,e){return E.N(t.key,e.key)},this.Je=Ht(),this.Xe=new Rt(this.N)}return t.Ze=function(e){return new t(e.N)},t.prototype.has=function(t){return null!=this.Je.get(t)},t.prototype.get=function(t){return this.Je.get(t)},t.prototype.first=function(){return this.Xe.Ve()},t.prototype.last=function(){return this.Xe.ge()},t.prototype.B=function(){return this.Xe.B()},t.prototype.indexOf=function(t){var e=this.Je.get(t);return e?this.Xe.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Xe.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.Xe.pe((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.me(e.Je.Ae(t.key,t),e.Xe.Ae(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.me(this.Je.remove(t),this.Xe.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.Xe.be(),r=e.Xe.be();n.$e();){var i=n.Ne().key,o=r.Ne().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.me=function(e,n){var r=new t;return r.N=this.N,r.Je=e,r.Xe=n,r},t}(),Zt=function(){function t(){this.ts=new Rt(E.N)}return t.prototype.track=function(t){var e=t.doc.key,n=this.ts.get(e);n?0!==t.type&&3===n.type?this.ts=this.ts.Ae(e,t):3===t.type&&1!==n.type?this.ts=this.ts.Ae(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.ts=this.ts.Ae(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.ts=this.ts.remove(e):1===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):ve():this.ts=this.ts.Ae(e,t)},t.prototype.es=function(){var t=[];return this.ts.pe((function(e,n){t.push(n)})),t},t}(),Xt=function(){function t(t,e,n,r,i,o,s,a){this.query=t,this.docs=e,this.ss=n,this.docChanges=r,this.ns=i,this.fromCache=o,this.rs=s,this.hs=a}return t.os=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,Yt.Ze(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.ns.B()},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.rs===t.rs&&this.ns.isEqual(t.ns)&&this.query.isEqual(t.query)&&this.docs.isEqual(t.docs)&&this.ss.isEqual(t.ss)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),Jt=function(){function t(t,e,n,r,i){this.Ee=t,this.as=e,this.us=n,this.cs=r,this._s=i}return t.ls=function(e,n){var r=new Map;return r.set(e,te.ds(e,n)),new t(b.min(),r,Kt(),Bt(),$t())},t}(),te=function(){function t(t,e,n,r,i){this.resumeToken=t,this.fs=e,this.Ts=n,this.Es=r,this.ws=i}
1return t.ds=function(e,n){return new t(T.ht,n,$t(),$t(),$t())},t}(),ee=function(t,e,n,r){this.Is=t,this.removedTargetIds=e,this.key=n,this.Rs=r},ne=function(t,e){this.targetId=t,this.As=e},re=function(t,e,n,r){void 0===n&&(n=T.ht),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},ie=function(){function t(){this.ms=0,this.Ps=ae(),this.Vs=T.ht,this.gs=!1,this.ps=!0}return Object.defineProperty(t.prototype,"fs",{get:function(){return this.gs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.Vs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ys",{get:function(){return 0!==this.ms},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bs",{get:function(){return this.ps},enumerable:!0,configurable:!0}),t.prototype.vs=function(t){t.rt()>0&&(this.ps=!0,this.Vs=t)},t.prototype.Ss=function(){var t=$t(),e=$t(),n=$t();return this.Ps.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:ve()}})),new te(this.Vs,this.gs,t,e,n)},t.prototype.Ds=function(){this.ps=!1,this.Ps=ae()},t.prototype.Cs=function(t,e){this.ps=!0,this.Ps=this.Ps.Ae(t,e)},t.prototype.Fs=function(t){this.ps=!0,this.Ps=this.Ps.remove(t)},t.prototype.Ns=function(){this.ms+=1},t.prototype.$s=function(){this.ms-=1},t.prototype.ks=function(){this.ps=!0,this.gs=!0},t}(),oe=function(){function t(t){this.Ms=t,this.xs=new Map,this.Ls=Bt(),this.Os=se(),this.Bs=new Lt(Ce)}return t.prototype.qs=function(t){for(var e=0,n=t.Is;e<n.length;e++){var r=n[e];t.Rs instanceof vt?this.Us(r,t.Rs):t.Rs instanceof _t&&this.Qs(r,t.key,t.Rs)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)this.Qs(o[i],t.key,t.Rs)},t.prototype.Ws=function(t){var e=this;this.js(t,(function(n){var r=e.Ks(n);switch(t.state){case 0:e.Gs(n)&&r.vs(t.resumeToken);break;case 1:r.$s(),r.ys||r.Ds(),r.vs(t.resumeToken);break;case 2:r.$s(),r.ys||e.removeTarget(n);break;case 3:e.Gs(n)&&(r.ks(),r.vs(t.resumeToken));break;case 4:e.Gs(n)&&(e.zs(n),r.vs(t.resumeToken));break;default:ve()}}))},t.prototype.js=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.xs.forEach((function(t,r){n.Gs(r)&&e(r)}))},t.prototype.Hs=function(t){var e=t.targetId,n=t.As.count,r=this.Ys(e);if(r){var i=r.target;if(i.Lt())if(0===n){var o=new E(i.path);this.Qs(e,o,new _t(o,b.min()))}else _e(1===n);else this.Js(e)!==n&&(this.zs(e),this.Bs=this.Bs.add(e))}},t.prototype.Xs=function(t){var e=this,n=new Map;this.xs.forEach((function(r,i){var o=e.Ys(i);if(o){if(r.fs&&o.target.Lt()){var s=new E(o.target.path);null!==e.Ls.get(s)||e.Zs(i,s)||e.Qs(i,s,new _t(s,t))}r.bs&&(n.set(i,r.Ss()),r.Ds())}}));var r=$t();this.Os.forEach((function(t,n){var i=!0;n.Ge((function(t){var n=e.Ys(t);return!n||2===n.Te||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new Jt(t,n,this.Bs,this.Ls,r);return this.Ls=Bt(),this.Os=se(),this.Bs=new Lt(Ce),i},t.prototype.Us=function(t,e){if(this.Gs(t)){var n=this.Zs(t,e.key)?2:0;this.Ks(t).Cs(e.key,n),this.Ls=this.Ls.Ae(e.key,e),this.Os=this.Os.Ae(e.key,this.ti(e.key).add(t))}},t.prototype.Qs=function(t,e,n){if(this.Gs(t)){var r=this.Ks(t);this.Zs(t,e)?r.Cs(e,1):r.Fs(e),this.Os=this.Os.Ae(e,this.ti(e).delete(t)),n&&(this.Ls=this.Ls.Ae(e,n))}},t.prototype.removeTarget=function(t){this.xs.delete(t)},t.prototype.Js=function(t){var e=this.Ks(t).Ss();return this.Ms.ei(t).size+e.Ts.size-e.ws.size},t.prototype.Ns=function(t){this.Ks(t).Ns()},t.prototype.Ks=function(t){var e=this.xs.get(t);return e||(e=new ie,this.xs.set(t,e)),e},t.prototype.ti=function(t){var e=this.Os.get(t);return e||(e=new Lt(Ce),this.Os=this.Os.Ae(t,e)),e},t.prototype.Gs=function(t){var e=null!==this.Ys(t);return e||ge("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ys=function(t){var e=this.xs.get(t);return e&&e.ys?null:this.Ms.si(t)},t.prototype.zs=function(t){var e=this;this.xs.set(t,new ie),this.Ms.ei(t).forEach((function(n){e.Qs(t,n,null)}))},t.prototype.Zs=function(t,e){return this.Ms.ei(t).has(e)},t}();function se(){return new Rt(E.N)}function ae(){return new Rt(E.N)}var ue={asc:"ASCENDING",desc:"DESCENDING"},ce={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},le=function(){function t(t,e){this.ii=t,this.options=e}return t.prototype.ni=function(t){var e=void 0===t.code?p.UNKNOWN:Nt(t.code);return new d(e,t.message||"")},t.prototype.ri=function(t){return this.options.hi||A(t)?t:{value:t}},t.prototype.oi=function(t){var e;return A(e="object"==typeof t?t.value:t)?null:e},t.prototype._t=function(t){return{integerValue:""+t}},t.prototype.lt=function(t){if(this.options.hi){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:k(t)?"-0":t}},t.prototype.ai=function(t){return I(t)?this._t(t):this.lt(t)},t.prototype.C=function(t){return this.options.hi?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}},t.prototype.v=function(t){var e=q(t);return new _(e.seconds,e.nanos)},t.prototype.ui=function(t){return this.options.hi?t.toBase64():t.toUint8Array()},t.prototype.ci=function(t){return this.options.hi?(_e(void 0===t||"string"==typeof t),T.fromBase64String(t||"")):(_e(void 0===t||t instanceof Uint8Array),T.fromUint8Array(t||new Uint8Array))},t.prototype.toVersion=function(t){return this.C(t.C())},t.prototype.fromVersion=function(t){return _e(!!t),b.v(this.v(t))},t.prototype._i=function(t,e){return this.li(e||this.ii).child("documents").child(t).j()},t.prototype.di=function(t){var e=C.K(t);return _e(he(e)),e},t.prototype.fi=function(t){return this._i(t.path)},t.prototype.Z=function(t){var e=this.di(t);return _e(e.get(1)===this.ii.projectId),_e(!e.get(3)&&!this.ii.database||e.get(3)===this.ii.database),new E(this.Ti(e))},t.prototype.Ei=function(t){return this._i(t)},t.prototype.wi=function(t){var e=this.di(t);return 4===e.length?C.G:this.Ti(e)},Object.defineProperty(t.prototype,"Ii",{get:function(){return new C(["projects",this.ii.projectId,"databases",this.ii.database]).j()},enumerable:!0,configurable:!0}),t.prototype.li=function(t){return new C(["projects",t.projectId,"databases",t.database])},t.prototype.Ti=function(t){return _e(t.length>4&&"documents"===t.get(4)),t.k(5)},t.prototype.Ri=function(t,e){return{name:this.fi(t),fields:e.proto.mapValue.fields}},t.prototype.Ai=function(t){return{name:this.fi(t.key),fields:t.Mt().mapValue.fields,updateTime:this.C(t.version.C())}},t.prototype.mi=function(t,e){var n=this.Z(t.name),r=this.fromVersion(t.updateTime),i=new pt({mapValue:{fields:t.fields}});return new vt(n,r,i,{hasCommittedMutations:!!e})},t.prototype.Pi=function(t){_e(!!t.found);var e=this.Z(t.found.name),n=this.fromVersion(t.found.updateTime),r=new pt({mapValue:{fields:t.found.fields}});return new vt(e,n,r,{})},t.prototype.Vi=function(t){_e(!!t.missing),_e(!!t.readTime);var e=this.Z(t.missing),n=this.fromVersion(t.readTime);return new _t(e,n)},t.prototype.gi=function(t){return"found"in t?this.Pi(t):"missing"in t?this.Vi(t):ve()},t.prototype.pi=function(t){var e;if("targetChange"in t){var n=this.yi(t.targetChange.targetChangeType||"NO_CHANGE"),r=t.targetChange.targetIds||[],i=this.ci(t.targetChange.resumeToken),o=t.targetChange.cause,s=o&&this.ni(o);e=new re(n,r,i,s||null)}else if("documentChange"in t){var a=t.documentChange,u=this.Z(a.document.name),c=this.fromVersion(a.document.updateTime),l=new pt({mapValue:{fields:a.document.fields}}),h=new vt(u,c,l,{});e=new ee(a.targetIds||[],a.removedTargetIds||[],h.key,h)}else if("documentDelete"in t){var p=t.documentDelete,d=this.Z(p.document),f=p.readTime?this.fromVersion(p.readTime):b.min(),g=new _t(d,f);e=new ee([],p.removedTargetIds||[],g.key,g)}else if("documentRemove"in t){var m=t.documentRemove,y=this.Z(m.document);e=new ee([],m.removedTargetIds||[],y,null)}else{if(!("filter"in t))return ve();var v=t.filter,_=new It(v.count||0);e=new ne(v.targetId,_)}return e},t.prototype.yi=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:ve()},t.prototype.bi=function(t){if(!("targetChange"in t))return b.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?b.min():e.readTime?this.fromVersion(e.readTime):b.min()},t.prototype.vi=function(t){var e,n=this;if(t instanceof at)e={update:this.Ri(t.key,t.value)};else if(t instanceof lt)e={delete:this.fi(t.key)};else if(t instanceof ut)e={update:this.Ri(t.key,t.data),updateMask:this.Si(t.Vt)};else if(t instanceof ct)e={transform:{document:this.fi(t.key),fieldTransforms:t.fieldTransforms.map((function(t){return n.Di(t)}))}};else{if(!(t instanceof ht))return ve();e={verify:this.fi(t.key)}}return t.Rt.Tt||(e.currentDocument=this.Ci(t.Rt)),e},t.prototype.Fi=function(t){var e=this,n=t.currentDocument?this.Ni(t.currentDocument):ot.ft();if(t.update){var r=this.Z(t.update.name),i=new pt({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=this.$i(t.updateMask);return new ut(r,i,o,n)}return new at(r,i,n)}if(t.delete){var s=this.Z(t.delete);return new lt(s,n)}if(t.transform){var a=this.Z(t.transform.document),u=t.transform.fieldTransforms.map((function(t){return e.ki(t)}));return _e(!0===n.exists),new ct(a,u)}if(t.verify){var c=this.Z(t.verify);return new ht(c,n)}return ve()},t.prototype.Ci=function(t){return void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:ve()},t.prototype.Ni=function(t){return void 0!==t.updateTime?ot.updateTime(this.fromVersion(t.updateTime)):void 0!==t.exists?ot.exists(t.exists):ot.ft()},t.prototype.Mi=function(t,e){var n=this.fromVersion(t.updateTime?t.updateTime:e);n.isEqual(b.min())&&(n=this.fromVersion(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new it(n,r)},t.prototype.xi=function(t,e){var n=this;return t&&t.length>0?(_e(void 0!==e),t.map((function(t){return n.Mi(t,e)}))):[]},t.prototype.Di=function(t){var e=t.transform;if(e instanceof Z)return{fieldPath:t.field.j(),setToServerValue:"REQUEST_TIME"};if(e instanceof X)return{fieldPath:t.field.j(),appendMissingElements:{values:e.elements}};if(e instanceof J)return{fieldPath:t.field.j(),removeAllFromArray:{values:e.elements}};if(e instanceof tt)return{fieldPath:t.field.j(),increment:e.ct};throw ve()},t.prototype.ki=function(t){var e=null;"setToServerValue"in t?(_e("REQUEST_TIME"===t.setToServerValue),e=Z.instance):"appendMissingElements"in t?e=new X(t.appendMissingElements.values||[]):"removeAllFromArray"in t?e=new J(t.removeAllFromArray.values||[]):"increment"in t?e=new tt(this,t.increment):ve();var n=x.X(t.fieldPath);return new rt(n,e)},t.prototype.Li=function(t){return{documents:[this.Ei(t.path)]}},t.prototype.Oi=function(t){return _e(1===t.documents.length),Ct.Wt(this.wi(t.documents[0])).ee()},t.prototype.Bi=function(t){var e={structuredQuery:{}},n=t.path;null!==t.collectionGroup?(e.parent=this.Ei(n),e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(e.parent=this.Ei(n.M()),e.structuredQuery.from=[{collectionId:n.O()}]);var r=this.qi(t.filters);r&&(e.structuredQuery.where=r);var i=this.Ui(t.orderBy);i&&(e.structuredQuery.orderBy=i);var o=this.ri(t.limit);return null!==o&&(e.structuredQuery.limit=o),t.startAt&&(e.structuredQuery.startAt=this.Qi(t.startAt)),t.endAt&&(e.structuredQuery.endAt=this.Qi(t.endAt)),e},t.prototype.Wi=function(t){var e=this.wi(t.parent),n=t.structuredQuery,r
1=n.from?n.from.length:0,i=null;if(r>0){_e(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=this.ji(n.where));var a=[];n.orderBy&&(a=this.Ki(n.orderBy));var u=null;n.limit&&(u=this.oi(n.limit));var c=null;n.startAt&&(c=this.Gi(n.startAt));var l=null;return n.endAt&&(l=this.Gi(n.endAt)),new Ct(e,i,a,s,u,"F",c,l).ee()},t.prototype.zi=function(t){var e=this.Hi(t.Te);return null==e?null:{"goog-listen-tags":e}},t.prototype.Hi=function(t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return ve()}},t.prototype.ee=function(t){var e,n=t.target;return(e=n.Lt()?{documents:this.Li(n)}:{query:this.Bi(n)}).targetId=t.targetId,t.resumeToken.rt()>0&&(e.resumeToken=this.ui(t.resumeToken)),e},t.prototype.qi=function(t){var e=this;if(0!==t.length){var n=t.map((function(t){return t instanceof Ot?e.Yi(t):ve()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},t.prototype.ji=function(t){var e=this;return t?void 0!==t.unaryFilter?[this.Ji(t)]:void 0!==t.fieldFilter?[this.Xi(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return e.ji(t)})).reduce((function(t,e){return t.concat(e)})):ve():[]},t.prototype.Ui=function(t){var e=this;if(0!==t.length)return t.map((function(t){return e.Zi(t)}))},t.prototype.Ki=function(t){var e=this;return t.map((function(t){return e.tn(t)}))},t.prototype.Qi=function(t){return{before:t.before,values:t.position}},t.prototype.Gi=function(t){return new Tt(t.values||[],!!t.before)},t.prototype.en=function(t){return ue[t]},t.prototype.sn=function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}},t.prototype.nn=function(t){return ce[t]},t.prototype.rn=function(t){switch(t){case"EQUAL":return"==";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return ve()}},t.prototype.hn=function(t){return{fieldPath:t.j()}},t.prototype.on=function(t){return x.X(t.fieldPath)},t.prototype.Zi=function(t){return{field:this.hn(t.field),direction:this.en(t.dir)}},t.prototype.tn=function(t){return new At(this.on(t.field),this.sn(t.direction))},t.prototype.Xi=function(t){return Ot.create(this.on(t.fieldFilter.field),this.rn(t.fieldFilter.op),t.fieldFilter.value)},t.prototype.Yi=function(t){if("=="===t.op){if(K(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NAN"}};if(Q(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.hn(t.field),op:this.nn(t.op),value:t.value}}},t.prototype.Ji=function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=this.on(t.unaryFilter.field);return Ot.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return Ot.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return ve()}},t.prototype.Si=function(t){var e=[];return t.fields.forEach((function(t){return e.push(t.j())})),{fieldPaths:e}},t.prototype.$i=function(t){return new nt((t.fieldPaths||[]).map((function(t){return x.X(t)})))},t}();function he(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var pe=function(){function t(){}return t.an=function(e){t.platform&&ve(),t.platform=e},t.nt=function(){return t.platform||ve(),t.platform},t}(),de=new s.Logger("@firebase/firestore");function fe(){return de.logLevel}function ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(de.logLevel<=s.LogLevel.DEBUG){var r=e.map(ye);de.debug.apply(de,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function me(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(de.logLevel<=s.LogLevel.ERROR){var r=e.map(ye);de.error.apply(de,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function ye(t){if("string"==typeof t)return t;var e=pe.nt();try{return e.un(t)}catch(e){return t}}function ve(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE ("+l+") INTERNAL ASSERTION FAILED: "+t;throw me(e),new Error(e)}function _e(t,e){t||ve()}function be(t,e){return t}var we=function(){function t(){}return t.cn=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=pe.nt()._n(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function Ce(t,e){return t<e?-1:t>e?1:0}function Oe(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function xe(t){return t+"\0"}var Ee=function(t,e,n,r,i){this.ii=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},Pe=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"ln",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.S=function(t){return Ce(this.projectId,t.projectId)||Ce(this.database,t.database)},t}(),Me=function(){function t(t){this.dn=t,this.fn={}}return t.prototype.get=function(t){var e=this.dn(t),n=this.fn[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[1];if(o[0].isEqual(t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.dn(t),r=this.fn[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(t))return void(r[i]=[t,e]);r.push([t,e])}else this.fn[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.dn(t),n=this.fn[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(t))return 1===n.length?delete this.fn[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){M(this.fn,(function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];t(o[0],o[1])}}))},t.prototype.B=function(){return S(this.fn)},t}(),Se=function(){function t(t,e,n,r){this.batchId=t,this.Tn=e,this.baseMutations=n,this.mutations=r}return t.prototype.at=function(t,e,n){for(var r=n.En,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=o.at(e,r[i]))}return e},t.prototype.ot=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=i.ot(e,e,this.Tn))}for(var o=e,s=0,a=this.mutations;s<a.length;s++){var u=a[s];u.key.isEqual(t)&&(e=u.ot(e,o,this.Tn))}return e},t.prototype.wn=function(t){var e=this,n=t;return this.mutations.forEach((function(r){var i=e.ot(r.key,t.get(r.key));i&&(n=n.Ae(r.key,i))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}
1),$t())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Oe(this.mutations,t.mutations,(function(t,e){return t.isEqual(e)}))&&Oe(this.baseMutations,t.baseMutations,(function(t,e){return t.isEqual(e)}))},t}(),Te=function(){function t(t,e,n,r){this.batch=t,this.In=e,this.En=n,this.Rn=r}return t.from=function(e,n,r){_e(e.mutations.length===r.length);for(var i=Wt,o=e.mutations,s=0;s<o.length;s++)i=i.Ae(o[s].key,r[s].version);return new t(e,n,r,i)},t}(),Ae=function(){function t(t){var e=this;this.An=null,this.mn=null,this.result=void 0,this.error=void 0,this.Pn=!1,this.Vn=!1,t((function(t){e.Pn=!0,e.result=t,e.An&&e.An(t)}),(function(t){e.Pn=!0,e.error=t,e.mn&&e.mn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Vn&&ve(),this.Vn=!0,this.Pn?this.error?this.gn(n,this.error):this.pn(e,this.result):new t((function(t,i){r.An=function(n){r.pn(e,n).next(t,i)},r.mn=function(e){r.gn(n,e).next(t,i)}}))},t.prototype.yn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.bn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.pn=function(e,n){return e?this.bn((function(){return e(n)})):t.resolve(n)},t.prototype.gn=function(e,n){return e?this.bn((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.vn=function(e){return new t((function(t,n){var r=0,i=0,o=!1;e.forEach((function(e){++r,e.next((function(){++i,o&&i===r&&t()}),(function(t){return n(t)}))})),o=!0,i===r&&t()}))},t.Sn=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach((function(t,i){r.push(e.call(n,t,i))})),this.vn(r)},t}(),ke=function(){function t(){this.Dn=new Me((function(t){return t.toString()})),this.Cn=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Fn},set:function(t){this.Fn=t},enumerable:!0,configurable:!0}),t.prototype.Nn=function(t,e){this.$n(),this.readTime=e,this.Dn.set(t.key,t)},t.prototype.kn=function(t,e){this.$n(),e&&(this.readTime=e),this.Dn.set(t,null)},t.prototype.Mn=function(t,e){this.$n();var n=this.Dn.get(e);return void 0!==n?Ae.resolve(n):this.xn(t,e)},t.prototype.getEntries=function(t,e){return this.Ln(t,e)},t.prototype.apply=function(t){return this.$n(),this.Cn=!0,this.On(t)},t.prototype.$n=function(){},t}(),Ie="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",De=function(){function t(){this.Bn=[]}return t.prototype.qn=function(t){this.Bn.push(t)},t.prototype.Un=function(){this.Bn.forEach((function(t){return t()}))},t}(),Ne=function(){function t(t,e,n){this.Qn=t,this.Wn=e,this.jn=n}return t.prototype.Kn=function(t,e){var n=this;return this.Wn.Gn(t,e).next((function(r){return n.zn(t,e,r)}))},t.prototype.zn=function(t,e,n){return this.Qn.Mn(t,e).next((function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].ot(e,t);return t}))},t.prototype.Hn=function(t,e,n){var r=qt();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].ot(t,e);r=r.Ae(t,e)})),r},t.prototype.Yn=function(t,e){var n=this;return this.Qn.getEntries(t,e).next((function(e){return n.Jn(t,e)}))},t.prototype.Jn=function(t,e){var n=this;return this.Wn.Xn(t,e).next((function(r){var i=n.Hn(t,e,r),o=Bt();return i.forEach((function(t,e){e||(e=new _t(t,b.min())),o=o.Ae(t,e)})),o}))},t.prototype.Zn=function(t,e,n){return e.Lt()?this.tr(t,e.path):e._e()?this.er(t,e,n):this.sr(t,e,n)},t.prototype.tr=function(t,e){return this.Kn(t,new E(e)).next((function(t){var e=Ht();return t instanceof vt&&(e=e.Ae(t.key,t)),e}))},t.prototype.er=function(t,e,n){var r=this,i=e.collectionGroup,o=Ht();return this.jn.ir(t,i).next((function(s){return Ae.forEach(s,(function(s){var a=e.Zt(s.child(i));return r.sr(t,a,n).next((function(t){t.forEach((function(t,e){o=o.Ae(t,e)}))}))})).next((function(){return o}
1))}))},t.prototype.sr=function(t,e,n){var r,i,o=this;return this.Qn.Zn(t,e,n).next((function(n){return r=n,o.Wn.nr(t,e)})).next((function(e){return o.rr(t,i=e,r).next((function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],s=0,a=o.mutations;s<a.length;s++){var u=a[s],c=u.key,l=r.get(c),h=u.ot(l,l,o.Tn);r=h instanceof vt?r.Ae(c,h):r.remove(c)}}))})).next((function(){return r.forEach((function(t,n){e.matches(n)||(r=r.remove(t))})),r}))},t.prototype.rr=function(t,e,n){for(var r=$t(),i=0,o=e;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var u=a[s];u instanceof ut&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.Qn.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof vt&&(c=c.Ae(t,e))})),c}))},t}(),Re=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.hr=n,this.or=r}return t.ar=function(e,n){for(var r=$t(),i=$t(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),je=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.ur=function(t){return n.cr(t)},this._r=function(t){return e.lr(t)})}return t.prototype.cr=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this._r&&this._r(t),t},t}();je.dr=-1;var Fe=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Le=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Tr=t,this.Er=e,this.wr=n,this.Ir=r,this.Rr=i,this.Ar=0,this.mr=null,this.Pr=Date.now(),this.reset()}return t.prototype.reset=function(){this.Ar=0},t.prototype.Vr=function(){this.Ar=this.Rr},t.prototype.gr=function(t){var e=this;this.cancel();var n=Math.floor(this.Ar+this.pr()),r=Math.max(0,Date.now()-this.Pr),i=Math.max(0,n-r);i>0&&ge("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Ar+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.mr=this.Tr.yr(this.Er,i,(function(){return e.Pr=Date.now(),t()})),this.Ar*=this.Ir,this.Ar<this.wr&&(this.Ar=this.wr),this.Ar>this.Rr&&(this.Ar=this.Rr)},t.prototype.br=function(){null!==this.mr&&(this.mr.vr(),this.mr=null)},t.prototype.cancel=function(){null!==this.mr&&(this.mr.cancel(),this.mr=null)},t.prototype.pr=function(){return(Math.random()-.5)*this.Ar},t}();function Ue(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Be(e)),e=Ve(t.get(n),e);return Be(e)}function Ve(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function Be(t){return t+"\x01\x01"}function qe(t){var e=t.length;if(_e(e>=2),2===e)return _e("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),C.G;for(var n=e-2,r=[],i="",o=0;o<e;){var s=t.indexOf("\x01",o);switch((s<0||s>n)&&ve(),t.charAt(s+1)){case"\x01":var a=t.substring(o,s),u=void 0;0===i.length?u=a:(u=i+=a,i=""),r.push(u);break;case"\x10":i+=t.substring(o,s),i+="\0";break;case"\x11":i+=t.substring(o,s+1);break;default:ve()}o=s+2}return new C(r)}var ze=function(){function t(){this.Sr=new He}return t.prototype.Dr=function(t,e){return this.Sr.add(e),Ae.resolve()},t.prototype.ir=function(t,e){return Ae.resolve(this.Sr.getEntries(e))},t}(),He=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.O(),n=t.M(),r=this.index[e]||new Lt(C.N),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.O(),n=t.M(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Lt(C.N)).W()},t}(),We=function(){function t(){this.Cr=new He}return t.prototype.Dr=function(t,e){var n=this;if(!this.Cr.has(e)){var r=e.O(),i=e.M();t.qn((function(){n.Cr.add(e)}));var o={collectionId:r,parent:Ue(i)};return Ge(t).put(o)}return Ae.resolve()},t.prototype.ir=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[xe(e),""],!1,!0);return Ge(t).Fr(r).next((function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(qe(o.parent))}return n}))},t}();function Ge(t){return an.Nr(t,In.store)}
1var $e=function(){function t(t,e){this.serializer=t,this.jn=e}return t.prototype.Nn=function(t,e,n){return Ke(t).put(Ye(e),n)},t.prototype.kn=function(t,e){var n=Ke(t),r=Ye(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.$r(t,r)}))},t.prototype.Mn=function(t,e){var n=this;return Ke(t).get(Ye(e)).next((function(t){return n.kr(t)}))},t.prototype.Mr=function(t,e){var n=this;return Ke(t).get(Ye(e)).next((function(t){var e=n.kr(t);return e?{xr:e,size:Ze(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=qt();return this.Lr(t,e,(function(t,e){var i=n.kr(e);r=r.Ae(t,i)})).next((function(){return r}))},t.prototype.Or=function(t,e){var n=this,r=qt(),i=new Rt(E.N);return this.Lr(t,e,(function(t,e){var o=n.kr(e);o?(r=r.Ae(t,o),i=i.Ae(t,Ze(e))):(r=r.Ae(t,null),i=i.Ae(t,0))})).next((function(){return{Br:r,qr:i}}))},t.prototype.Lr=function(t,e,n){if(e.B())return Ae.resolve();var r=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),i=e.be(),o=i.Ne();return Ke(t).Ur({range:r},(function(t,e,r){for(var s=E.st(t);o&&E.N(o,s)<0;)n(o,null),o=i.Ne();o&&o.isEqual(s)&&(n(o,e),o=i.$e()?i.Ne():null),o?r.Qr(o.path.W()):r.done()})).next((function(){for(;o;)n(o,null),o=i.$e()?i.Ne():null}))},t.prototype.Zn=function(t,e,n){var r=this,i=Ht(),o=e.path.length+1,s={};if(n.isEqual(b.min())){var a=e.path.W();s.range=IDBKeyRange.lowerBound(a)}else{var u=e.path.W(),c=this.serializer.Wr(n);s.range=IDBKeyRange.lowerBound([u,c],!0),s.index=Mn.collectionReadTimeIndex}return Ke(t).Ur(s,(function(t,n,s){if(t.length===o){var a=r.serializer.jr(n);e.path.q(a.key.path)?a instanceof vt&&e.matches(a)&&(i=i.Ae(a.key,a)):s.done()}})).next((function(){return i}))},t.prototype.Kr=function(t,e){var n=this,r=Bt(),i=this.serializer.Wr(e),o=Ke(t),s=IDBKeyRange.lowerBound(i,!0);return o.Ur({index:Mn.readTimeIndex,range:s},(function(t,e){var o=n.serializer.jr(e);r=r.Ae(o.key,o),i=e.readTime})).next((function(){return{Gr:r,readTime:n.serializer.zr(i)}}))},t.prototype.Hr=function(t){var e=this,n=Ke(t),r=b.min();return n.Ur({index:Mn.readTimeIndex,reverse:!0},(function(t,n,i){n.readTime&&(r=e.serializer.zr(n.readTime)),i.done()})).next((function(){return r}))},t.prototype.Yr=function(e){return new t.Jr(this,!!e&&e.Xr)},t.prototype.Zr=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return Qe(t).get(Sn.key).next((function(t){return _e(!!t),t}))},t.prototype.$r=function(t,e){return Qe(t).put(Sn.key,e)},t.prototype.kr=function(t){if(t){var e=this.serializer.jr(t);return e instanceof _t&&e.version.isEqual(b.min())?null:e}return null},t}();function Qe(t){return an.Nr(t,Sn.store)}function Ke(t){return an.Nr(t,Mn.store)}function Ye(t){return t.path.W()}function Ze(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw ve();e=t.noDocument}return JSON.stringify(e).length}$e.Jr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).th=e,r.Xr=n,r.eh=new Me((function(t){return t.toString()})),r}return i.__extends(e,t),e.prototype.On=function(t){var e=this,n=[],r=0,i=new Lt((function(t,e){return Ce(t.j(),e.j())}));return this.Dn.forEach((function(o,s){var a=e.eh.get(o);if(s){var u=e.th.serializer.sh(s,e.readTime);i=i.add(o.path.M());var c=Ze(u);r+=c-a,n.push(e.th.Nn(t,o,u))}else if(r-=a,e.Xr){var l=e.th.serializer.sh(new _t(o,b.min()),e.readTime);n.push(e.th.Nn(t,o,l))}else n.push(e.th.kn(t,o))})),i.forEach((function(r){n.push(e.th.jn.Dr(t,r))})),n.push(this.th.updateMetadata(t,r)),Ae.vn(n)},e.prototype.xn=function(t,e){var n=this;return this.th.Mr(t,e).next((function(t){return null===t?(n.eh.set(e,0),null):(n.eh.set(e,t.size),t.xr)}))},e.prototype.Ln=function(t,e){var n=this;return this.th.Or(t,e).next((function(t){var e=t.Br;return t.qr.forEach((function(t,e){n.eh.set(t,e)})),e}))},e}(ke);var Xe=function(){function t(t){this.ih=t}return t.prototype.next=function(){return this.ih+=2,this.ih},t.nh=function(){return new t(0)},t.rh=function(){return new t(-1)},t}
1(),Je=function(){function t(t,e){this.hh=t,this.serializer=e}return t.prototype.oh=function(t){var e=this;return this.ah(t).next((function(n){var r=new Xe(n.highestTargetId);return n.highestTargetId=r.next(),e.uh(t,n).next((function(){return n.highestTargetId}))}))},t.prototype._h=function(t){return this.ah(t).next((function(t){return b.v(new _(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.lh=function(t){return this.ah(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.dh=function(t,e,n){var r=this;return this.ah(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.C()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.uh(t,i)}))},t.prototype.fh=function(t,e){var n=this;return this.Th(t,e).next((function(){return n.ah(t).next((function(r){return r.targetCount+=1,n.Eh(e,r),n.uh(t,r)}))}))},t.prototype.wh=function(t,e){return this.Th(t,e)},t.prototype.Ih=function(t,e){var n=this;return this.Rh(t,e.targetId).next((function(){return tn(t).delete(e.targetId)})).next((function(){return n.ah(t)})).next((function(e){return _e(e.targetCount>0),e.targetCount-=1,n.uh(t,e)}))},t.prototype.Ah=function(t,e,n){var r=this,i=0,o=[];return tn(t).Ur((function(s,a){var u=r.serializer.mh(a);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.Ih(t,u)))})).next((function(){return Ae.vn(o)})).next((function(){return i}))},t.prototype.js=function(t,e){var n=this;return tn(t).Ur((function(t,r){var i=n.serializer.mh(r);e(i)}))},t.prototype.ah=function(t){return en(t).get(kn.key).next((function(t){return _e(null!==t),t}))},t.prototype.uh=function(t,e){return en(t).put(kn.key,e)},t.prototype.Th=function(t,e){return tn(t).put(this.serializer.Ph(e))},t.prototype.Eh=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.Vh=function(t){return this.ah(t).next((function(t){return t.targetCount}))},t.prototype.gh=function(t,e){var n=this,r=e.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return tn(t).Ur({range:i,index:Tn.queryTargetsIndexName},(function(t,r,i){var s=n.serializer.mh(r);e.isEqual(s.target)&&(o=s,i.done())})).next((function(){return o}))},t.prototype.ph=function(t,e,n){var r=this,i=[],o=nn(t);return e.forEach((function(e){var s=Ue(e.path);i.push(o.put(new An(n,s))),i.push(r.hh.yh(t,n,e))})),Ae.vn(i)},t.prototype.bh=function(t,e,n){var r=this,i=nn(t);return Ae.forEach(e,(function(e){var o=Ue(e.path);return Ae.vn([i.delete([n,o]),r.hh.vh(t,n,e)])}))},t.prototype.Rh=function(t,e){var n=nn(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Sh=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=nn(t),i=$t();return r.Ur({range:n,Dh:!0},(function(t,e,n){var r=qe(t[1]),o=new E(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Ch=function(t,e){var n=Ue(e.path),r=IDBKeyRange.bound([n],[xe(n)],!1,!0),i=0;return nn(t).Ur({index:An.documentTargetsIndex,Dh:!0,range:r},(function(t,e,n){0!==t[0]&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.si=function(t,e){var n=this;return tn(t).get(e).next((function(t){return t?n.serializer.mh(t):null}))},t}();function tn(t){return an.Nr(t,Tn.store)}function en(t){return an.Nr(t,kn.store)}function nn(t){return an.Nr(t,An.store)}var rn=function(){function t(t){this.Fh=t}return t.prototype.jr=function(t){if(t.document)return this.Fh.mi(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=E.st(t.noDocument.path),n=this.Nh(t.noDocument.readTime);return new _t(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var r=E.st(t.unknownDocument.path),i=this.Nh(t.unknownDocument.version);return new bt(r,i)}return ve()},t.prototype.sh=function(t,e){var n=this.Wr(e),r=t.key.path.M().W();if(t instanceof vt){var i=this.Fh.Ai(t);return new Mn(null,null,i,t.hasCommittedMutations,n,r)}if(t instanceof _t){var o=t.key.path.W(),s=this.$h(t.version),a=t.hasCommittedMutations;return new Mn(null,new En(o,s),null,a,n,r)}if(t instanceof bt){var u=t.key.path.W(),c=this.$h(t.version);return new Mn(new Pn(u,c),null,null,!0,n,r)}return ve()},t.prototype.Wr=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.zr=function(t){var e=new _(t[0],t[1]);return b.v(e)},t.prototype.$h=function(t){var e=t.C();return new bn(e.seconds,e.nanoseconds)},t.prototype.Nh=function(t){var e=new _(t.seconds,t.nanoseconds);return b.v(e)},t.prototype.kh=function(t,e){var n=this,r=e.baseMutations.map((function(t){return n.Fh.vi(t)})),i=e.mutations.map((function(t){return n.Fh.vi(t)}));return new On(t,e.batchId,e.Tn.toMillis(),r,i)},t.prototype.Mh=function(t){var e=this,n=(t.baseMutations||[]).map((function(t){return e.Fh.Fi(t)})),r=t.mutations.map((function(t){return e.Fh.Fi(t)})),i=_.fromMillis(t.localWriteTimeMs);return new Se(t.batchId,i,n,r)},t.prototype.mh=function(t){var e,n=this.Nh(t.readTime),r=void 0!==t.lastLimboFreeSnapshotVersion?this.Nh(t.lastLimboFreeSnapshotVersion):b.min();return e=void 0!==t.query.documents?this.Fh.Oi(t.query):this.Fh.Wi(t.query),new kt(e,t.targetId,0,t.lastListenSequenceNumber,n,r,T.fromBase64String(t.resumeToken))},t.prototype.Ph=function(t){var e,n=this.$h(t.Ee),r=this.$h(t.lastLimboFreeSnapshotVersion);e=t.target.Lt()?this.Fh.Li(t.target):this.Fh.Bi(t.target);var i=t.resumeToken.toBase64();return new Tn(t.targetId,t.target.canonicalId(),n,i,t.sequenceNumber,r,e)},t}(),on="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",sn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).xh=e,r.Lh=n,r}return i.__extends(e,t),e}(De),an=function(){function t(e,n,r,i,o,s,a,u,c){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Tr=s,this.Oh=u,this.Bh=c,this.qh=null,this.Uh=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Qh=null,this.inForeground=!1,this.Wh=null,this.jh=null,this.Kh=Number.NEGATIVE_INFINITY,this.Gh=function(t){return Promise.resolve()}
1,!t.zh())throw new d(p.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.hh=new ln(this,o),this.Hh=n+t.Yh,this.serializer=new rn(a),this.document=i.document,this.Jh=new Je(this.hh,this.serializer),this.jn=new We,this.Qn=new $e(this.serializer,this.jn),this.window=i.window,i.window&&i.window.localStorage?this.Xh=i.window.localStorage:(this.Xh=null,!1===c&&me("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Nr=function(t,e){if(t instanceof sn)return jn.Nr(t.xh,e);throw ve()},t.prototype.start=function(){var t=this;return jn.Zh(this.Hh,vn,new _n(this.serializer)).then((function(e){return t.to=e,t.eo(t.Bh)})).then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new d(p.FAILED_PRECONDITION,on);return t.so(),t.io(),t.no(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.Jh.lh(e)}))})).then((function(e){t.qh=new je(e,t.Oh)})).then((function(){t.Uh=!0})).catch((function(e){return t.to&&t.to.close(),Promise.reject(e)}))},t.prototype.ro=function(t){var e=this;return this.Gh=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.ho?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.oo=function(t){var e=this;this.to.ao((function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
1))}))}))},t.prototype.uo=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Tr.co((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.ho?[4,this.eo()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.eo=function(t){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(t){return cn(t).put(new Nn(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e._o(t).next((function(t){t||(e.isPrimary=!1,e.Tr.lo((function(){return e.Gh(!1)})))}))})).next((function(){return e.do(t)})).next((function(n){return e.isPrimary&&!n?e.fo(t).next((function(){return!1})):!!n&&e.To(t).next((function(){return!0}))}))})).catch((function(t){if(!e.allowTabSynchronization){if(Un(t))return ge("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;throw t}return ge("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Tr.lo((function(){return e.Gh(t)})),e.isPrimary=t}))},t.prototype._o=function(t){var e=this;return un(t).get(wn.key).next((function(t){return Ae.resolve(e.Eo(t))}))},t.prototype.wo=function(t){return cn(t).delete(this.clientId)},t.prototype.Io=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!this.isPrimary||this.Ro(this.Kh,18e5)?[3,2]:(this.Kh=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var n=t.Nr(e,Nn.store);return n.Fr().next((function(t){var e=o.Ao(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return Ae.forEach(r,(function(t){return n.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=i.sent(),this.Xh)for(n=0,r=e;n<r.length;n++)this.Xh.removeItem(this.mo(r[n].clientId));i.label=2;case 2:return[2]}}
1))}))},t.prototype.no=function(){var t=this;this.jh=this.Tr.yr("client_metadata_refresh",4e3,(function(){return t.eo().then((function(){return t.Io()})).then((function(){return t.no()}))}))},t.prototype.Eo=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.do=function(t){var e=this;return this.Bh?Ae.resolve(!0):un(t).get(wn.key).next((function(n){if(null!==n&&e.Ro(n.leaseTimestampMs,5e3)&&!e.Po(n.ownerId)){if(e.Eo(n)&&e.networkEnabled)return!0;if(!e.Eo(n)){if(!n.allowTabSynchronization)throw new d(p.FAILED_PRECONDITION,on);return!1}}return!(!e.networkEnabled||!e.inForeground)||cn(t).Fr().next((function(t){return void 0===e.Ao(t,5e3).find((function(t){return!(e.clientId===t.clientId||!(!e.networkEnabled&&t.networkEnabled||!e.inForeground&&t.inForeground&&e.networkEnabled===t.networkEnabled))}))}))})).next((function(t){return e.isPrimary!==t&&ge("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.Vo=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){switch(e.label){case 0:return this.Uh=!1,this.po(),this.jh&&(this.jh.cancel(),this.jh=null),this.yo(),this.bo(),[4,this.runTransaction("shutdown","readwrite",(function(e){return t.fo(e).next((function(){return t.wo(e)}))})).catch((function(t){ge("IndexedDbPersistence","Proceeding with shutdown despite failure: ",t)}))];case 1:return e.sent(),this.to.close(),this.vo(),[2]}}))}))},t.prototype.Ao=function(t,e){var n=this;return t.filter((function(t){return n.Ro(t.updateTimeMs,e)&&!n.Po(t.clientId)}))},t.prototype.So=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return cn(e).Fr().next((function(e){return t.Ao(e,18e5).map((function(t){return t.clientId}))}))}))},t.clearPersistence=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return t.zh()?[4,jn.delete(e+t.Yh)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))},Object.defineProperty(t.prototype,"ho",{get:function(){return this.Uh},enumerable:!0,configurable:!0}),t.prototype.Do=function(t){return pn.Co(t,this.serializer,this.jn,this.hh)},t.prototype.Fo=function(){return this.Jh},t.prototype.No=function(){return this.Qn},t.prototype.$o=function(){return this.jn},t.prototype.runTransaction=function(t,e,n){var r,i=this;return ge("IndexedDbPersistence","Starting transaction:",t),this.to.runTransaction("readonly"===e?"readonly":"readwrite",Rn,(function(o){return r=new sn(o,i.qh?i.qh.next():je.dr),"readwrite-primary"===e?i._o(r).next((function(t){return!!t||i.do(r)})).next((function(e){if(!e)throw me("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.Tr.lo((function(){return i.Gh(!1)})),new d(p.FAILED_PRECONDITION,Ie);return n(r)})).next((function(t){return i.To(r).next((function(){return t}))})):i.ko(r).next((function(){return n(r)}))})).then((function(t){return r.Un(),t}))},t.prototype.ko=function(t){var e=this;return un(t).get(wn.key).next((function(t){if(null!==t&&e.Ro(t.leaseTimestampMs,5e3)&&!e.Po(t.ownerId)&&!e.Eo(t)&&!(e.Bh||e.allowTabSynchronization&&t.allowTabSynchronization))throw new d(p.FAILED_PRECONDITION,on)}))},t.prototype.To=function(t){var e=new wn(this.clientId,this.allowTabSynchronization,Date.now());return un(t).put(wn.key,e)},t.zh=function(){return jn.zh()},t.Mo=function(t){var e=t.ii.projectId;return t.ii.ln||(e+="."+t.ii.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.fo=function(t){var e=this,n=un(t);return n.get(wn.key).next((function(t){return e.Eo(t)?(ge("IndexedDbPersistence","Releasing primary lease."),n.delete(wn.key)):Ae.resolve()}))},t.prototype.Ro=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(me("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.so=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Wh=function(){t.Tr.co((function(){return t.inForeground="visible"===t.document.visibilityState,t.eo()}))},this.document.addEventListener("visibilitychange",this.Wh),this.inForeground="visible"===this.document.visibilityState)},t.prototype.yo=function(){this.Wh&&(this.document.removeEventListener("visibilitychange",this.Wh),this.Wh=null)},t.prototype.io=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.Qh=function(){e.po(),e.Tr.co((function(){return e.Vo()}))},this.window.addEventListener("unload",this.Qh))},t.prototype.bo=function(){this.Qh&&(this.window.removeEventListener("unload",this.Qh),this.Qh=null)},t.prototype.Po=function(t){var e;try{var n=null!==(null===(e=this.Xh)||void 0===e?void 0:e.getItem(this.mo(t)));return ge("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return me("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.po=function(){if(this.Xh)try{this.Xh.setItem(this.mo(this.clientId),String(Date.now()))}catch(t){me("Failed to set zombie client id.",t)}},t.prototype.vo=function(){if(this.Xh)try{this.Xh.removeItem(this.mo(this.clientId))}catch(t){}},t.prototype.mo=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function un(t){return an.Nr(t,wn.store)}function cn(t){return an.Nr(t,Nn.store)}an.Yh="main";var ln=function(){function t(t,e){this.db=t,this.xo=new Jn(this,e)}return t.prototype.Lo=function(t){var e=this.Oo(t);return this.db.Fo().Vh(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Oo=function(t){var e=0;return this.Bo(t,(function(t){e++})).next((function(){return e}))},t.prototype.js=function(t,e){return this.db.Fo().js(t,e)},t.prototype.Bo=function(t,e){return this.qo(t,(function(t,n){return e(n)}))},t.prototype.yh=function(t,e,n){return hn(t,n)},t.prototype.vh=function(t,e,n){return hn(t,n)},t.prototype.Ah=function(t,e,n){return this.db.Fo().Ah(t,e,n)},t.prototype.Uo=function(t,e){return hn(t,e)},t.prototype.Qo=function(t,e){return function(t,e){var n=!1;return yn(t).Wo((function(r){return dn(t,r,e).next((function(t){return t&&(n=!0),Ae.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.jo=function(t,e){var n=this,r=this.db.No().Yr(),i=[],o=0;return this.qo(t,(function(s,a){if(a<=e){var u=n.Qo(t,s).next((function(e){if(!e)return o++,r.Mn(t,s).next((function(){return r.kn(s),nn(t).delete([0,Ue(s.path)])}))}));i.push(u)}})).next((function(){return Ae.vn(i)})).next((function(){return r.apply(t)})).next((function(){return o}
1))},t.prototype.removeTarget=function(t,e){var n=e.we(t.Lh);return this.db.Fo().wh(t,n)},t.prototype.Ko=function(t,e){return hn(t,e)},t.prototype.qo=function(t,e){var n,r=nn(t),i=je.dr;return r.Ur({index:An.documentTargetsIndex},(function(t,r){var o=r.path,s=r.sequenceNumber;0===t[0]?(i!==je.dr&&e(new E(qe(n)),i),i=s,n=o):i=je.dr})).next((function(){i!==je.dr&&e(new E(qe(n)),i)}))},t.prototype.Go=function(t){return this.db.No().Zr(t)},t}();function hn(t,e){return nn(t).put(function(t,e){return new An(0,Ue(t.path),e)}(e,t.Lh))}var pn=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.jn=n,this.hh=r,this.zo={}}return t.Co=function(e,n,r,i){return _e(""!==e.uid),new t(e.t()?e.uid:"",n,r,i)},t.prototype.Ho=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return gn(t).Ur({index:On.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.Yo=function(t,e,n,r){var i=this,o=mn(t),s=gn(t);return s.add({}).next((function(a){_e("number"==typeof a);for(var u=new Se(a,e,n,r),c=i.serializer.kh(i.userId,u),l=[],h=new Lt((function(t,e){return Ce(t.j(),e.j())})),p=0,d=r;p<d.length;p++){var f=d[p],g=xn.key(i.userId,f.key.path,a);h=h.add(f.key.path.M()),l.push(s.put(c)),l.push(o.put(g,xn.PLACEHOLDER))}return h.forEach((function(e){l.push(i.jn.Dr(t,e))})),t.qn((function(){i.zo[a]=u.keys()})),Ae.vn(l).next((function(){return u}))}))},t.prototype.Jo=function(t,e){var n=this;return gn(t).get(e).next((function(t){return t?(_e(t.userId===n.userId),n.serializer.Mh(t)):null}))},t.prototype.Xo=function(t,e){var n=this;return this.zo[e]?Ae.resolve(this.zo[e]):this.Jo(t,e).next((function(t){if(t){var r=t.keys();return n.zo[e]=r,r}return null}))},t.prototype.Zo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return gn(t).Ur({index:On.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(_e(e.batchId>=r),o=n.serializer.Mh(e)),i.done()})).next((function(){return o}))},t.prototype.ta=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return gn(t).Ur({index:On.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.ea=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return gn(t).Fr(On.userMutationsIndex,n).next((function(t){return t.map((function(t){return e.serializer.Mh(t)}))}))},t.prototype.Gn=function(t,e){var n=this,r=xn.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return mn(t).Ur({range:i},(function(r,i,s){var a=r[0],u=r[2],c=qe(r[1]);if(a===n.userId&&e.path.isEqual(c))return gn(t).get(u).next((function(t){if(!t)throw ve();_e(t.userId===n.userId),o.push(n.serializer.Mh(t))}));s.done()})).next((function(){return o}))},t.prototype.Xn=function(t,e){var n=this,r=new Lt(Ce),i=[];return e.forEach((function(e){var o=xn.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=mn(t).Ur({range:s},(function(t,i,o){var s=t[0],a=t[2],u=qe(t[1]);s===n.userId&&e.path.isEqual(u)?r=r.add(a):o.done()}));i.push(a)})),Ae.vn(i).next((function(){return n.sa(t,r)}))},t.prototype.nr=function(t,e){var n=this,r=e.path,i=r.length+1,o=xn.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new Lt(Ce);return mn(t).Ur({range:s},(function(t,e,o){var s=t[0],u=t[2],c=qe(t[1]);s===n.userId&&r.q(c)?c.length===i&&(a=a.add(u)):o.done()})).next((function(){return n.sa(t,a)}))},t.prototype.sa=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(gn(t).get(e).next((function(t){if(null===t)throw ve();_e(t.userId===n.userId),r.push(n.serializer.Mh(t))})))})),Ae.vn(i).next((function(){return r}))},t.prototype.ia=function(t,e){var n=this;return fn(t.xh,this.userId,e).next((function(r){return t.qn((function(){n.na(e.batchId)})),Ae.forEach(r,(function(e){return n.hh.Uo(t,e)}))}))},t.prototype.na=function(t){delete this.zo[t]},t.prototype.ra=function(t){var e=this;return this.Ho(t).next((function(n){if(!n)return Ae.resolve();
1var r=IDBKeyRange.lowerBound(xn.prefixForUser(e.userId)),i=[];return mn(t).Ur({range:r},(function(t,n,r){if(t[0]===e.userId){var o=qe(t[1]);i.push(o)}else r.done()})).next((function(){_e(0===i.length)}))}))},t.prototype.Ch=function(t,e){return dn(t,this.userId,e)},t.prototype.ha=function(t){var e=this;return yn(t).get(this.userId).next((function(t){return t||new Cn(e.userId,-1,"")}))},t}();function dn(t,e,n){var r=xn.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return mn(t).Ur({range:o,Dh:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(s=!0),r.done()})).next((function(){return s}))}function fn(t,e,n){var r=t.store(On.store),i=t.store(xn.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,u=r.Ur({range:s},(function(t,e,n){return a++,n.delete()}));o.push(u.next((function(){_e(1===a)})));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var p=h[l],d=xn.key(e,p.key.path,n.batchId);o.push(i.delete(d)),c.push(p.key)}return Ae.vn(o).next((function(){return c}))}function gn(t){return an.Nr(t,On.store)}function mn(t){return an.Nr(t,xn.store)}function yn(t){return an.Nr(t,Cn.store)}var vn=10,_n=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;_e(n<r&&n>=0&&r<=vn);var o=new Vn(e);n<1&&r>=1&&(function(t){t.createObjectStore(wn.store)}(t),function(t){t.createObjectStore(Cn.store,{keyPath:Cn.keyPath}),t.createObjectStore(On.store,{keyPath:On.keyPath,autoIncrement:!0}).createIndex(On.userMutationsIndex,On.userMutationsKeyPath,{unique:!0}),t.createObjectStore(xn.store)}(t),Dn(t),function(t){t.createObjectStore(Mn.store)}(t));var s=Ae.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(An.store),t.deleteObjectStore(Tn.store),t.deleteObjectStore(kn.store)}(t),Dn(t)),s=s.next((function(){return function(t){var e=t.store(kn.store),n=new kn(0,0,b.min().C(),0);return e.put(kn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(t,e){return e.store(On.store).Fr().next((function(n){t.deleteObjectStore(On.store),t.createObjectStore(On.store,{keyPath:On.keyPath,autoIncrement:!0}).createIndex(On.userMutationsIndex,On.userMutationsKeyPath,{unique:!0});var r=e.store(On.store),i=n.map((function(t){return r.put(t)}));return Ae.vn(i)}))}(t,o)}))),s=s.next((function(){!function(t){t.createObjectStore(Nn.store,{keyPath:Nn.keyPath})}(t)}))),n<5&&r>=5&&(s=s.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(s=s.next((function(){return function(t){t.createObjectStore(Sn.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(s=s.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(s=s.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(s=s.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Mn.store);e.createIndex(Mn.readTimeIndex,Mn.readTimeIndexPath,{unique:!1}),e.createIndex(Mn.collectionReadTimeIndex,Mn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(s=s.next((function(){return i.rewriteCanonicalIds(o)}))),s},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Mn.store).Ur((function(t,n){e+=Ze(n)})).next((function(){var n=new Sn(e);return t.store(Sn.store).put(Sn.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Cn.store),r=t.store(On.store);return n.Fr().next((function(n){return Ae.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Fr(On.userMutationsIndex,i).next((function(r){return Ae.forEach(r,(function(r){_e(r.userId===n.userId);var i=e.serializer.Mh(r);return fn(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(An.store),n=t.store(Mn.store);return t.store(kn.store).get(kn.key).next((function(t){var r=[];return n.Ur((function(n,i){var o=new C(n),s=function(t){return[0,Ue(t)]}(o);r.push(e.get(s).next((function(n){return n?Ae.resolve():function(n){return e.put(new An(0,Ue(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return Ae.vn(r)}))}
1))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(In.store,{keyPath:In.keyPath});var n=e.store(In.store),r=new He,i=function(t){if(r.add(t)){var e=t.O(),i=t.M();return n.put({collectionId:e,parent:Ue(i)})}};return e.store(Mn.store).Ur({Dh:!0},(function(t,e){var n=new C(t);return i(n.M())})).next((function(){return e.store(xn.store).Ur({Dh:!0},(function(t,e){var n=qe(t[1]);return i(n.M())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Tn.store);return n.Ur((function(t,r){var i=e.serializer.mh(r),o=e.serializer.Ph(i);return n.put(o)}))},t}(),bn=function(t,e){this.seconds=t,this.nanoseconds=e},wn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};wn.store="owner",wn.key="owner";var Cn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Cn.store="mutationQueues",Cn.keyPath="userId";var On=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};On.store="mutations",On.keyPath="batchId",On.userMutationsIndex="userMutationsIndex",On.userMutationsKeyPath=["userId","batchId"];var xn=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Ue(e)]},t.key=function(t,e,n){return[t,Ue(e),n]},t}();xn.store="documentMutations",xn.PLACEHOLDER=new xn;var En=function(t,e){this.path=t,this.readTime=e},Pn=function(t,e){this.path=t,this.version=e},Mn=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Mn.store="remoteDocuments",Mn.readTimeIndex="readTimeIndex",Mn.readTimeIndexPath="readTime",Mn.collectionReadTimeIndex="collectionReadTimeIndex",Mn.collectionReadTimeIndexPath=["parentPath","readTime"];var Sn=function(t){this.byteSize=t};Sn.store="remoteDocumentGlobal",Sn.key="remoteDocumentGlobalKey";var Tn=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};Tn.store="targets",Tn.keyPath="targetId",Tn.queryTargetsIndexName="queryTargetsIndex",Tn.queryTargetsKeyPath=["canonicalId","targetId"];var An=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};An.store="targetDocuments",An.keyPath=["targetId","path"],An.documentTargetsIndex="documentTargetsIndex",An.documentTargetsKeyPath=["path","targetId"];var kn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};kn.key="targetGlobalKey",kn.store="targetGlobal";var In=function(t,e){this.collectionId=t,this.parent=e};function Dn(t){t.createObjectStore(An.store,{keyPath:An.keyPath}).createIndex(An.documentTargetsIndex,An.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Tn.store,{keyPath:Tn.keyPath}).createIndex(Tn.queryTargetsIndexName,Tn.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(kn.store)}In.store="collectionParents",In.keyPath=["collectionId","parent"];var Nn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Nn.store="clientMetadata",Nn.keyPath="clientId";var Rn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Cn.store,On.store,xn.store,Mn.store,Tn.store,wn.store,kn.store,An.store],[Nn.store]),[Sn.store]),[In.store]),jn=function(){function t(e){this.db=e,12.2===t.oa(a.getUA())&&me("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.Zh=function(e,n,r){return ge("SimpleDb","Opening database:",e),new Ae((function(i,o){var s=indexedDB.open(e,n);s.onsuccess=function(e){i(new t(e.target.result))},s.onblocked=function(){o(new d(p.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=function(t){var e=t.target.error;o("VersionError"===e.name?new d(p.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):e)},s.onupgradeneeded=function(t){ge("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),r.createOrUpgrade(t.target.result,s.transaction,t.oldVersion,vn).next((function(){ge("SimpleDb","Database upgrade to version "+vn+" complete")}
1))}})).yn()},t.delete=function(t){return ge("SimpleDb","Removing database:",t),qn(window.indexedDB.deleteDatabase(t)).yn()},t.zh=function(){if("undefined"==typeof indexedDB)return!1;if(t.aa())return!0;var e=a.getUA(),n=t.oa(e),r=0<n&&n<10,i=t.ua(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.aa=function(){var t;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(t=__PRIVATE_process.__PRIVATE_env)||void 0===t?void 0:t.ca)},t.Nr=function(t,e){return t.store(e)},t.oa=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.ua=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.ao=function(t){this.db.onversionchange=function(e){return t(e)}},t.prototype.runTransaction=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,u;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===t,o=0,s=function(){var t,s,u,c,l;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=Vn.open(a.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),s=n(t).catch((function(e){return t.abort(e),Ae.reject(e)})).yn(),u={},s.catch((function(){})),[4,t._a];case 2:return[2,(u.value=(i.sent(),s),u)];case 3:return ge("SimpleDb","Transaction failed with error: %s. Retrying: %s.",(c=i.sent()).message,l="FirebaseError"!==c.name&&o<3),l?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}
1))},a=this,c.label=1;case 1:return[5,s()];case 2:if("object"==typeof(u=c.sent()))return[2,u.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),Fn=function(){function t(t){this.la=t,this.da=!1,this.fa=null}return Object.defineProperty(t.prototype,"Pn",{get:function(){return this.da},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ta",{get:function(){return this.fa},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.la=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.da=!0},t.prototype.Qr=function(t){this.fa=t},t.prototype.delete=function(){return qn(this.la.delete())},t}(),Ln=function(t){function e(e){var n=this;return(n=t.call(this,p.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(d);function Un(t){return"IndexedDbTransactionError"===t.name}var Vn=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.Ea=new Fe,this.transaction.oncomplete=function(){e.Ea.resolve()},this.transaction.onabort=function(){t.error?e.Ea.reject(new Ln(t.error)):e.Ea.resolve()},this.transaction.onerror=function(t){var n=Hn(t.target.error);e.Ea.reject(new Ln(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"_a",{get:function(){return this.Ea.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.Ea.reject(t),this.aborted||(ge("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new Bn(e)},t}(),Bn=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(ge("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(ge("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),qn(n)},t.prototype.add=function(t){return ge("SimpleDb","ADD",this.store.name,t,t),qn(this.store.add(t))},t.prototype.get=function(t){var e=this;return qn(this.store.get(t)).next((function(n){return void 0===n&&(n=null),ge("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return ge("SimpleDb","DELETE",this.store.name,t),qn(this.store.delete(t))},t.prototype.count=function(){return ge("SimpleDb","COUNT",this.store.name),qn(this.store.count())},t.prototype.Fr=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.wa(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Ia=function(t,e){ge("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Dh=!1;var r=this.cursor(n);return this.wa(r,(function(t,e,n){return n.delete()}))},t.prototype.Ur=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.wa(r,e)},t.prototype.Wo=function(t){var e=this.cursor({});return new Ae((function(n,r){e.onerror=function(t){var e=Hn(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.wa=function(t,e){var n=[];return new Ae((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new Fn(i),s=e(i.primaryKey,i.value,o);if(s instanceof Ae){var a=s.catch((function(t){return o.done(),Ae.reject(t)}));n.push(a)}o.Pn?r():null===o.Ta?i.continue():i.continue(o.Ta)}else r()}})).next((function(){return Ae.vn(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.Dh?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function qn(t){return new Ae((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Hn(t.target.error);n(e)}}))}var zn=!1;function Hn(t){var e=jn.oa(a.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new d("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return zn||(zn=!0,setTimeout((function(){throw r}),0)),r}}return t}var Wn=function(){function t(t,e,n,r,i){this.Ra=t,this.Er=e,this.Aa=n,this.op=r,this.ma=i,this.Pa=new Fe,this.then=this.Pa.promise.then.bind(this.Pa.promise),this.Pa.promise.catch((function(t){}))}return t.Va=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.ga=setTimeout((function(){return e.pa()}),t)},t.prototype.vr=function(){return this.pa()},t.prototype.cancel=function(t){null!==this.ga&&(this.clearTimeout(),this.Pa.reject(new d(p.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},t.prototype.pa=function(){var t=this;this.Ra.co((function(){return null!==t.ga?(t.clearTimeout(),t.op().then((function(e){return t.Pa.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.ga&&(this.ma(this),clearTimeout(this.ga),this.ga=null)},t}(),Gn=function(){function t(){var t=this;this.ya=Promise.resolve(),this.ba=Promise.resolve(),this.va=!1,this.Sa=[],this.Da=null,this.Ca=!1,this.Fa=[],this.Na=new Le(this,"async_queue_retry"),this.$a=function(){return t.Na.br()};var e=pe.nt().window;e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.$a)}return Object.defineProperty(t.prototype,"ka",{get:function(){return this.va},enumerable:!0,configurable:!0}),t.prototype.co=function(t){this.enqueue(t)},t.prototype.Ma=function(t){this.xa(),this.La(t)},t.prototype.Oa=function(t){return this.xa(),this.La(t)},t.prototype.Ba=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.xa(),this.va?[3,2]:(this.va=!0,(e=pe.nt().window)&&e.removeEventListener("visibilitychange",this.$a),[4,this.Oa(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
1))}))},t.prototype.enqueue=function(t){return this.xa(),this.va?new Promise((function(t){})):this.La(t)},t.prototype.lo=function(t){var e=this;this.xa(),this.va||(this.ba=this.ba.then((function(){var n=new Fe,r=function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t()];case 1:return i.sent(),n.resolve(),this.Na.reset(),[3,3];case 2:if(!Un(e=i.sent()))throw n.resolve(),e;return ge("AsyncQueue","Operation failed with retryable error: "+e),this.Na.gr(r),[3,3];case 3:return[2]}}))}))};return e.co(r),n.promise})))},t.prototype.La=function(t){var e=this,n=this.ya.then((function(){return e.Ca=!0,t().catch((function(t){throw e.Da=t,e.Ca=!1,me("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.Ca=!1,t}))}));return this.ya=n,n},t.prototype.yr=function(t,e,n){var r=this;this.xa(),this.Fa.indexOf(t)>-1&&(e=0);var i=Wn.Va(this,t,e,n,(function(t){return r.qa(t)}));return this.Sa.push(i),i},t.prototype.xa=function(){this.Da&&ve()},t.prototype.Ua=function(){},t.prototype.Qa=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.ya];case 1:e.sent(),e.label=2;case 2:if(t!==this.ya)return[3,0];e.label=3;case 3:return[2]}}
1))}))},t.prototype.Wa=function(t){for(var e=0,n=this.Sa;e<n.length;e++)if(n[e].Er===t)return!0;return!1},t.prototype.ja=function(t){var e=this;return this.Qa().then((function(){e.Sa.sort((function(t,e){return t.Aa-e.Aa}));for(var n=0,r=e.Sa;n<r.length;n++){var i=r[n];if(i.vr(),"all"!==t&&i.Er===t)break}return e.Qa()}))},t.prototype.Ka=function(t){this.Fa.push(t)},t.prototype.qa=function(t){var e=this.Sa.indexOf(t);this.Sa.splice(e,1)},t}();function $n(t,e){if(me("AsyncQueue",e+": "+t),Un(t))return new d(p.UNAVAILABLE,e+": "+t);throw t}function Qn(t,e){var n=t[1],r=e[1],i=Ce(t[0],e[0]);return 0===i?Ce(n,r):i}var Kn=function(){function t(t){this.Ga=t,this.buffer=new Lt(Qn),this.za=0}return t.prototype.Ha=function(){return++this.za},t.prototype.Ya=function(t){var e=[t,this.Ha()];if(this.buffer.size<this.Ga)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();Qn(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),t}(),Yn={Ja:!1,Xa:0,Za:0,tu:0},Zn=function(){function t(t,e,n){this.eu=t,this.su=e,this.iu=n}return t.nu=function(e){return new t(e,t.ru,t.hu)},t}();Zn.ou=-1,Zn.au=1048576,Zn.uu=41943040,Zn.ru=10,Zn.hu=1e3,Zn.cu=new Zn(Zn.uu,Zn.ru,Zn.hu),Zn.DISABLED=new Zn(Zn.ou,0,0);var Xn=function(){function t(t,e){this.xo=t,this.Ra=e,this._u=!1,this.lu=null}return t.prototype.start=function(t){this.xo.du.eu!==Zn.ou&&this.fu(t)},t.prototype.stop=function(){this.lu&&(this.lu.cancel(),this.lu=null)},Object.defineProperty(t.prototype,"ho",{get:function(){return null!==this.lu},enumerable:!0,configurable:!0}),t.prototype.fu=function(t){var e=this,n=this._u?3e5:6e4;ge("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.lu=this.Ra.yr("lru_garbage_collection",n,(function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:this.lu=null,this._u=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Tu(this.xo)];case 2:return n.sent(),[3,7];case 3:return Un(e=n.sent())?(ge("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,nr(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.fu(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),Jn=function(){function t(t,e){this.Eu=t,this.du=e}return t.prototype.wu=function(t,e){return this.Eu.Lo(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.Iu=function(t,e){var n=this;if(0===e)return Ae.resolve(je.dr);var r=new Kn(e);return this.Eu.js(t,(function(t){return r.Ya(t.sequenceNumber)})).next((function(){return n.Eu.Bo(t,(function(t){return r.Ya(t)}))})).next((function(){return r.maxValue}))},t.prototype.Ah=function(t,e,n){return this.Eu.Ah(t,e,n)},t.prototype.jo=function(t,e){return this.Eu.jo(t,e)},t.prototype.Ru=function(t,e){var n=this;return this.du.eu===Zn.ou?(ge("LruGarbageCollector","Garbage collection skipped; disabled"),Ae.resolve(Yn)):this.Go(t).next((function(r){return r<n.du.eu?(ge("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.du.eu),Yn):n.Au(t,e)}))},t.prototype.Go=function(t){return this.Eu.Go(t)},t.prototype.Au=function(t,e){var n,r,i,o,a,u,c,l=this,h=Date.now();return this.wu(t,this.du.su).next((function(e){return e>l.du.iu?(ge("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.du.iu+" from "+e),r=l.du.iu):r=e,o=Date.now(),l.Iu(t,r)})).next((function(r){return n=r,a=Date.now(),l.Ah(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.jo(t,n)})).next((function(t){return c=Date.now(),fe()<=s.LogLevel.DEBUG&&ge("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-h)+"ms\n\tDetermined least recently used "+r+" in "+(a-o)+"ms\n\tRemoved "+i+" targets in "+(u-a)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),Ae.resolve({Ja:!0,Xa:r,Za:i,tu:t})}))},t}(),tr=function(){function t(t,e,n){this.persistence=t,this.mu=e,this.Pu=new Rt(Ce),this.Vu=new Me((function(t){return t.canonicalId()})),this.gu=b.min(),this.Wn=t.Do(n),this.pu=t.No(),this.Jh=t.Fo(),this.yu=new Ne(this.pu,this.Wn,this.persistence.$o()),this.mu.bu(this.yu)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.vu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.Wn,n=this.yu,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.Wn.ea(r).next((function(s){return i=s,e=o.persistence.Do(t),n=new Ne(o.pu,e,o.persistence.$o()),e.ea(r)})).next((function(t){for(var e=[],o=[],s=$t(),a=0,u=i;a<u.length;a++){var c=u[a];e.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++)s=s.add(h[l].key)}for(var p=0,d=t;p<d.length;p++){var f=d[p];o.push(f.batchId);for(var g=0,m=f.mutations;g<m.length;g++)s=s.add(m[g].key)}return n.Yn(r,s).next((function(t){return{Su:t,Du:e,Cu:o}}))}))}))];case 1:return r=i.sent(),[2,(this.Wn=e,this.yu=n,this.mu.bu(this.yu),r)]}}))}))},t.prototype.Fu=function(t){var e,n=this,r=_.now(),i=t.reduce((function(t,e){return t.add(e.key)}
1),$t());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.yu.Yn(o,i).next((function(i){e=i;for(var s=[],a=0,u=t;a<u.length;a++){var c=u[a],l=c.Pt(e.get(c.key));null!=l&&s.push(new ut(c.key,l,ft(l.proto.mapValue),ot.exists(!0)))}return n.Wn.Yo(o,r,s,t)}))})).then((function(t){var n=t.wn(e);return{batchId:t.batchId,Dn:n}}))},t.prototype.Nu=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=t.batch.keys(),i=e.pu.Yr({Xr:!0});return e.$u(n,t,i).next((function(){return i.apply(n)})).next((function(){return e.Wn.ra(n)})).next((function(){return e.yu.Yn(n,r)}))}))},t.prototype.ku=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return e.Wn.Jo(n,t).next((function(t){return _e(null!==t),r=t.keys(),e.Wn.ia(n,t)})).next((function(){return e.Wn.ra(n)})).next((function(){return e.yu.Yn(n,r)}))}))},t.prototype.ta=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.Wn.ta(e)}))},t.prototype._h=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Jh._h(e)}))},t.prototype.Mu=function(e){var n=this,r=e.Ee,i=this.Pu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var s=n.pu.Yr({Xr:!0});i=n.Pu;var a=[];e.as.forEach((function(e,s){var u=i.get(s);if(u){a.push(n.Jh.bh(o,e.ws,s).next((function(){return n.Jh.ph(o,e.Ts,s)})));var c=e.resumeToken;if(c.rt()>0){var l=u.Ie(c,r).we(o.Lh);i=i.Ae(s,l),t.xu(u,l,e)&&a.push(n.Jh.wh(o,l))}}}));var u=Bt(),c=$t();if(e.cs.forEach((function(t,e){c=c.add(t)})),a.push(s.getEntries(o,c).next((function(t){e.cs.forEach((function(i,c){var l=t.get(i);c instanceof _t&&c.version.isEqual(b.min())?(s.kn(i,r),u=u.Ae(i,c)):null==l||c.version.S(l.version)>0||0===c.version.S(l.version)&&l.hasPendingWrites?(s.Nn(c,r),u=u.Ae(i,c)):ge("LocalStore","Ignoring outdated watch update for ",i,". Current version:",l.version," Watch version:",c.version),e._s.has(i)&&a.push(n.persistence.hh.Ko(o,i))}))}))),!r.isEqual(b.min())){var l=n.Jh._h(o).next((function(t){return n.Jh.dh(o,o.Lh,r)}));a.push(l)}return Ae.vn(a).next((function(){return s.apply(o)})).next((function(){return n.yu.Jn(o,u)}))})).then((function(t){return n.Pu=i,t}))},t.xu=function(t,e,n){return _e(e.resumeToken.rt()>0),0===t.resumeToken.rt()||e.Ee.D()-t.Ee.D()>=this.Lu||n.Ts.size+n.Es.size+n.ws.size>0},t.prototype.Ou=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,u,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return Ae.forEach(t,(function(t){return Ae.forEach(t.hr,(function(n){return c.persistence.hh.yh(e,t.targetId,n)})).next((function(){return Ae.forEach(t.or,(function(n){return c.persistence.hh.vh(e,t.targetId,n)}))}))}))}))];case 1:return i.sent(),[3,3];case 2:if(!Un(e=i.sent()))throw e;return ge("LocalStore","Failed to update sequence numbers: "+e),[3,3];case 3:for(n=0,r=t;n<r.length;n++)s=(o=r[n]).targetId,o.fromCache||(a=this.Pu.get(s),u=a.Re(a.Ee),this.Pu=this.Pu.Ae(s,u));return[2]}}))}))},t.prototype.Bu=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.Wn.Zo(n,t)}))},t.prototype.qu=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.yu.Kn(n,t)}))},t.prototype.Uu=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return e.Jh.gh(n,t).next((function(i){return i?Ae.resolve(r=i):e.Jh.oh(n).next((function(i){return r=new kt(t,i,0,n.Lh),e.Jh.fh(n,r).next((function(){return r}))}))}))})).then((function(n){var r=e.Pu.get(n.targetId);return(null===r||n.Ee.S(r.Ee)>0)&&(e.Pu=e.Pu.Ae(n.targetId,n),e.Vu.set(t,n.targetId)),n}))},t.prototype.gh=function(t,e){var n=this.Vu.get(e);return void 0!==n?Ae.resolve(this.Pu.get(n)):this.Jh.gh(t,e)},t.prototype.Qu=function(t,e){var n=this,r=this.Pu.get(t);return this.persistence.runTransaction("Release target",e?"readwrite":"readwrite-primary",(function(t){return e?Ae.resolve():n.persistence.hh.removeTarget(t,r)})).then((function(){n.Pu=n.Pu.remove(t),n.Vu.delete(r.target)}))},t.prototype.Wu=function(t,e){var n=this,r=b.min(),i=$t();
1return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.gh(o,t.ee()).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.Jh.Sh(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.mu.Zn(o,t,e?r:b.min(),e?i:$t())})).next((function(t){return{documents:t,ju:i}}))}))},t.prototype.$u=function(t,e,n){var r=this,i=e.batch,o=i.keys(),s=Ae.resolve();return o.forEach((function(r){s=s.next((function(){return n.Mn(t,r)})).next((function(t){var o=t,s=e.Rn.get(r);_e(null!==s),(!o||o.version.S(s)<0)&&(o=i.at(r,o,e))&&n.Nn(o,e.In)}))})),s.next((function(){return r.Wn.ia(t,i)}))},t.prototype.Tu=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Ru(n,e.Pu)}))},t}();tr.Lu=3e8;var er=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).persistence=e,i.Wn=e.Do(r),i.pu=e.No(),i.Jh=e.Fo(),i}return i.__extends(e,t),e.prototype.start=function(){return this.Ku()},e.prototype.Gu=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.Wn.Xo(n,t).next((function(t){return t?e.yu.Yn(n,t):Ae.resolve(null)}))}))},e.prototype.zu=function(t){this.Wn.na(t)},e.prototype.uo=function(t){this.persistence.uo(t)},e.prototype.So=function(){return this.persistence.So()},e.prototype.Hu=function(t){var e=this,n=this.Pu.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Jh.si(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.Kr=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.pu.Kr(e,t.gu)})).then((function(e){var n=e.Gr;return t.gu=e.readTime,n}))},e.prototype.Ku=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return e.pu.Hr(t)}))];case 1:return t.gu=n.sent(),[2]}}))}))},e}(tr);function nr(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==p.FAILED_PRECONDITION||t.message!==Ie)throw t;return ge("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var rr=function(){function t(){this.Yu=new Lt(ir.Ju),this.Xu=new Lt(ir.Zu)}return t.prototype.B=function(){return this.Yu.B()},t.prototype.yh=function(t,e){var n=new ir(t,e);this.Yu=this.Yu.add(n),this.Xu=this.Xu.add(n)},t.prototype.tc=function(t,e){var n=this;t.forEach((function(t){return n.yh(t,e)}))},t.prototype.vh=function(t,e){this.ec(new ir(t,e))},t.prototype.sc=function(t,e){var n=this;t.forEach((function(t){return n.vh(t,e)}))},t.prototype.ic=function(t){var e=this,n=E.EMPTY,r=new ir(n,t),i=new ir(n,t+1),o=[];return this.Xu.Ke([r,i],(function(t){e.ec(t),o.push(t.key)})),o},t.prototype.nc=function(){var t=this;this.Yu.forEach((function(e){return t.ec(e)}))},t.prototype.ec=function(t){this.Yu=this.Yu.delete(t),this.Xu=this.Xu.delete(t)},t.prototype.rc=function(t){var e=E.EMPTY,n=new ir(e,t),r=new ir(e,t+1),i=$t();return this.Xu.Ke([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Ch=function(t){var e=new ir(t,0),n=this.Yu.ze(e);return null!==n&&t.isEqual(n.key)},t}(),ir=function(){function t(t,e){this.key=t,this.hc=e}return t.Ju=function(t,e){return E.N(t.key,e.key)||Ce(t.hc,e.hc)},t.Zu=function(t,e){return Ce(t.hc,e.hc)||E.N(t.key,e.key)},t}();function or(t,e){if(0!==e.length)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+Or(e.length,"argument")+".")}function sr(t,e,n){if(e.length!==n)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires "+Or(n,"argument")+", but was called with "+Or(e.length,"argument")+".")}function ar(t,e,n){if(e.length<n)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires at least "+Or(n,"argument")+", but was called with "+Or(e.length,"argument")+".")}function ur(t,e,n,r){if(e.length<n||e.length>r)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+Or(e.length,"argument")+".")}function cr(t,e,n,r){gr(t,e,Cr(n)+" argument",r)}function lr(t,e,n,r){void 0!==r&&cr(t,e,n,r)}function hr(t,e,n,r){gr(t,e,n+" option",r)}function pr(t,e,n,r){void 0!==r&&hr(t,e,n,r)}function dr(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],s=0,a=i;s<a.length;s++){var u=a[s];if(u===r)return;o.push(yr(u))}var c=yr(r);throw new d(p.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function fr(t,e,n,r){if(!e.some((function(t){return t===r})))throw new d(p.INVALID_ARGUMENT,"Invalid value "+yr(r)+" provided to function "+t+"() for its "+Cr(n)+" argument. Acceptable values: "+e.join(", "));return r}function gr(t,e,n,r){if(!("object"===e?mr(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=yr(r);throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function mr(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function yr(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":ve()}function vr(t,e,n){if(void 0===n)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Cr(e)+" argument, but it was undefined.")}function _r(t,e,n){M(e,(function(e,r){if(n.indexOf(e)<0)throw new d(p.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function br(t,e,n,r){var i=yr(r);return new d(p.INVALID_ARGUMENT,"Function "+t+"() requires its "+Cr(n)+" argument to be a "+e+", but it was: "+i)}function wr(t,e,n){if(n<=0)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires its "+Cr(e)+" argument to be a positive number, but it was: "+n+".")}function Cr(t){switch(t){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return t+"th"}}function Or(t,e){return t+" "+e+(1===t?"":"s")}function xr(){if("undefined"==typeof Uint8Array)throw new d(p.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Er(){if(!pe.nt().oc)throw new d(p.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Pr=function(){function t(t){Er(),this.ac=t}return t.fromBase64String=function(e){sr("Blob.fromBase64String",arguments,1),cr("Blob.fromBase64String","string",1,e),Er();try{return new t(T.fromBase64String(e))}catch(e){throw new d(p.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(sr("Blob.fromUint8Array",arguments,1),xr(),!(e instanceof Uint8Array))throw br("Blob.fromUint8Array","Uint8Array",1,e);return new t(T.fromUint8Array(e))},t.prototype.toBase64=function(){return sr("Blob.toBase64",arguments,0),Er(),this.ac.toBase64()},t.prototype.toUint8Array=function(){return sr("Blob.toUint8Array",arguments,0),xr(),this.ac.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.ac.isEqual(t.ac)},t}(),Mr=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new d(p.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Or(1,"element")+".")}(0,t);for(var n=0;n<t.length;++n)if(cr("FieldPath","string",n,t[n]),0===t[n].length)throw new d(p.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.uc=new x(t)}return t.documentId=function(){return t.cc},t.prototype.isEqual=function(e){if(!(e instanceof t))throw br("isEqual","FieldPath",1,e);return this.uc.isEqual(e.uc)},t}();Mr.cc=new Mr(x.J().j());var Sr=new RegExp("[~\\*/\\[\\]]"),Tr=function(){this._c=this},Ar=function(t){function e(e){var n=this;return(n=t.call(this)||this).lc=e,n}return i.__extends(e,t),e.prototype.dc=function(t){if(2!==t.fc)throw t.Tc(1===t.fc?this.lc+"() can only appear at the top level of your update data":this.lc+"() cannot be used with set() unless you pass {merge:true}");return t.Vt.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(Tr),kr=function(t){function e(e){var n=this;return(n=t.call(this)||this).lc=e,n}return i.__extends(e,t),e.prototype.dc=function(t){return new rt(t.path,Z.instance)},e.prototype.isEqual=function(t){return t instanceof e},e}(Tr),Ir=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).lc=e,r.Ec=n,r}return i.__extends(e,t),e.prototype.dc=function(t){var e=new zr({fc:3,methodName:this.lc,wc:!0},t.ii,t.serializer,t.ignoreUndefinedProperties),n=this.Ec.map((function(t){return Wr(t,e)})),r=new X(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Tr),Dr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).lc=e,r.Ec=n,r}return i.__extends(e,t),e.prototype.dc=function(t){var e=new zr({fc:3,methodName:this.lc,wc:!0},t.ii,t.serializer,t.ignoreUndefinedProperties),n=this.Ec.map((function(t){return Wr(t,e)})),r=new J(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Tr),Nr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).lc=e,r.Ic=n,r}return i.__extends(e,t),e.prototype.dc=function(t){var e=new zr({fc:3,methodName:this.lc},t.ii,t.serializer,t.ignoreUndefinedProperties),n=Wr(this.Ic,e),r=new tt(t.serializer,n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Tr),Rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.delete=function(){return or("FieldValue.delete",arguments),new jr(new Ar("FieldValue.delete"))},e.serverTimestamp=function(){return or("FieldValue.serverTimestamp",arguments),new jr(new kr("FieldValue.serverTimestamp"))},e.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ar("FieldValue.arrayUnion",arguments,1),new jr(new Ir("FieldValue.arrayUnion",t))},e.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];
1return ar("FieldValue.arrayRemove",arguments,1),new jr(new Dr("FieldValue.arrayRemove",t))},e.increment=function(t){return cr("FieldValue.increment","number",1,t),sr("FieldValue.increment",arguments,1),new jr(new Nr("FieldValue.increment",t))},e}(Tr),jr=function(t){function e(e){var n=this;return(n=t.call(this)||this)._c=e,n.lc=e.lc,n}return i.__extends(e,t),e.prototype.dc=function(t){return this._c.dc(t)},e.prototype.isEqual=function(t){return t instanceof e&&this._c.isEqual(t._c)},e}(Rr),Fr=function(){function t(t,e){if(sr("GeoPoint",arguments,2),cr("GeoPoint","number",1,t),cr("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new d(p.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new d(p.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.Rc=t,this.Ac=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.Rc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.Ac},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.Rc===t.Rc&&this.Ac===t.Ac},t.prototype.p=function(t){return Ce(this.Rc,t.Rc)||Ce(this.Ac,t.Ac)},t}(),Lr=/^__.*__$/,Ur=function(t,e,n){this.mc=t,this.Pc=e,this.Vc=n},Vr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=function(t,e){var n=[];return n.push(null!==this.Vt?new ut(t,this.data,this.Vt,e):new at(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}(),Br=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=function(t,e){var n=[new ut(t,this.data,this.Vt,e)];return this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}();function qr(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ve()}}var zr=function(){function t(t,e,n,r,i,o){this.settings=t,this.ii=e,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.pc(),this.fieldTransforms=i||[],this.Vt=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fc",{get:function(){return this.settings.fc},enumerable:!0,configurable:!0}),t.prototype.yc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.ii,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.Vt)},t.prototype.bc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.yc({path:n,wc:!1});return r.vc(t),r},t.prototype.Sc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.yc({path:n,wc:!1});return r.pc(),r},t.prototype.Dc=function(t){return this.yc({path:void 0,wc:!0})},t.prototype.Tc=function(t){var e=!this.path||this.path.B()?"":" (found in field "+this.path.toString()+")";return new d(p.INVALID_ARGUMENT,"Function "+this.settings.methodName+"() called with invalid data. "+t+e)},t.prototype.contains=function(t){return void 0!==this.Vt.find((function(e){return t.q(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.q(e.field)}))},t.prototype.pc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.vc(this.path.get(t))},t.prototype.vc=function(t){if(0===t.length)throw this.Tc("Document fields must not be empty");if(qr(this.fc)&&Lr.test(t))throw this.Tc('Document fields cannot begin and end with "__"')},t}(),Hr=function(){function t(t,e,n){this.ii=t,this.ignoreUndefinedProperties=e,this.serializer=n||pe.nt().Cc(t)}return t.prototype.Fc=function(t,e){var n=this.Nc(0,t);Qr("Data must be an object, but it was:",n,e);var r=Gr(e,n);return new Vr(new pt(r),null,n.fieldTransforms)},t.prototype.$c=function(t,e,n){var r=this.Nc(2,t);Qr("Data must be an object, but it was:",r,e);var i,o,s=Gr(e,r);if(n){for(var a=[],u=0,c=n;u<c.length;u++){var l=c[u],h=void 0;if(l instanceof Mr)h=l.uc;else{if("string"!=typeof l)throw ve();h=Yr(t,l)}if(!r.contains(h))throw new d(p.INVALID_ARGUMENT,"Field '"+h+"' is specified in your field mask but missing from your input data.");Zr(a,h)||a.push(h)}i=new nt(a),o=r.fieldTransforms.filter((function(t){return i.dt(t.field)}))}else i=new nt(r.Vt),o=r.fieldTransforms;return new Vr(new pt(s),i,o)},t.prototype.kc=function(t,e){var n=this.Nc(1,t);Qr("Data must be an object, but it was:",n,e);var r=[],i=new dt;M(e,(function(e,o){var s=Yr(t,e),a=n.Sc(s);if(o instanceof Tr&&o._c instanceof Ar)r.push(s);else{var u=Wr(o,a);null!=u&&(r.push(s),i.set(s,u))}}));var o=new nt(r);return new Br(i.yt(),o,n.fieldTransforms)},t.prototype.Mc=function(t,e,n,r){var i=this.Nc(1,t),o=[Kr(t,e)],s=[n];if(r.length%2!=0)throw new d(p.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var a=0;a<r.length;a+=2)o.push(Kr(t,r[a])),s.push(r[a+1]);for(var u=[],c=new dt,l=o.length-1;l>=0;--l)if(!Zr(u,o[l])){var h=o[l],f=s[l],g=i.Sc(h);if(f instanceof Tr&&f._c instanceof Ar)u.push(h);else{var m=Wr(f,g);null!=m&&(u.push(h),c.set(h,m))}}var y=new nt(u);return new Br(c.yt(),y,i.fieldTransforms)},t.prototype.Nc=function(t,e){return new zr({fc:t,methodName:e,path:x.G,wc:!1},this.ii,this.serializer,this.ignoreUndefinedProperties)},t.prototype.xc=function(t,e,n){return void 0===n&&(n=!1),Wr(e,this.Nc(n?4:3,t))},t}();function Wr(t,e){if($r(t))return Qr("Unsupported field value:",e,t),Gr(t,e);if(t instanceof Tr)return function(t,e){if(!qr(e.fc))throw e.Tc(t.lc+"() can only be used with update(
1) and set()");if(null===e.path)throw e.Tc(t.lc+"() is not currently supported inside arrays");var n=t.dc(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Vt.push(e.path),t instanceof Array){if(e.settings.wc&&4!==e.fc)throw e.Tc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var s=Wr(o[i],e.Dc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return e.serializer.ai(t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=_.fromDate(t);return{timestampValue:e.serializer.C(n)}}if(t instanceof _){var r=new _(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:e.serializer.C(r)}}if(t instanceof Fr)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Pr)return{bytesValue:e.serializer.ui(t)};if(t instanceof Ur){var i=e.ii,o=t.mc;if(!o.isEqual(i))throw e.Tc("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:e.serializer._i(t.Pc.path,t.mc)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.Tc("Unsupported field value: "+yr(t))}(t,e)}function Gr(t,e){var n={};return S(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):M(t,(function(t,r){var i=Wr(r,e.bc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function $r(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof _||t instanceof Fr||t instanceof Pr||t instanceof Ur||t instanceof Tr)}function Qr(t,e,n){if(!$r(n)||!mr(n)){var r=yr(n);throw e.Tc("an object"===r?t+" a custom object":t+" "+r)}}function Kr(t,e){if(e instanceof Mr)return e.uc;if("string"==typeof e)return Yr(t,e);throw new d(p.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function Yr(t,e){try{return function(t){if(t.search(Sr)>=0)throw new d(p.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Mr.bind.apply(Mr,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new d(p.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).uc}catch(e){var n=(r=e)instanceof Error?r.message:r.toString();throw new d(p.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. "+n)}var r}function Zr(t,e){return t.some((function(t){return t.isEqual(e)}))}var Xr=function(){function t(t,e,n,r,i,o){this.Tr=t,this.Lc=n,this.Oc=r,this.Bc=i,this.listener=o,this.state=0,this.qc=0,this.Uc=null,this.stream=null,this.Na=new Le(t,e)}return t.prototype.Qc=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.Wc=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.jc()},t.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Qc()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))},t.prototype.Kc=function(){this.state=0,this.Na.reset()},t.prototype.Gc=function(){var t=this;this.Wc()&&null===this.Uc&&(this.Uc=this.Tr.yr(this.Lc,6e4,(function(){return t.zc()})))},t.prototype.Hc=function(t){this.Yc(),this.stream.send(t)},t.prototype.zc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Wc()?[2,this.close(0)]:[2]}))}))},t.prototype.Yc=function(){this.Uc&&(this.Uc.cancel(),this.Uc=null)},t.prototype.close=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.Yc(),this.Na.cancel(),this.qc++,3!==t?this.Na.reset():e&&e.code===p.RESOURCE_EXHAUSTED?(me(e.toString()),me("Using maximum backoff delay to prevent overloading the backend."),this.Na.Vr()):e&&e.code===p.UNAUTHENTICATED&&this.Bc._(),null!==this.stream&&(this.Jc(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Xc(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.Jc=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Zc(this.qc),n=this.qc;this.Bc.getToken().then((function(e){t.qc===n&&t.t_(e)}),(function(n){e((function(){var e=new d(p.UNKNOWN,"Fetching auth token failed: "+n.message);return t.e_(e)}))}))},t.prototype.t_=function(t){var e=this,n=this.Zc(this.qc);this.stream=this.s_(t),this.stream.i_((function(){n((function(){return e.state=2,e.listener.i_()}))})),this.stream.Xc((function(t){n((function(){return e.e_(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.jc=function(){var t=this;this.state=4,this.Na.gr((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.e_=function(t){return ge("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Zc=function(t){var e=this;return function(n){e.Tr.co((function(){return e.qc===t?n():(ge("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Jr=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,s}return i.__extends(e,t),e.prototype.s_=function(t){return this.Oc.n_("Listen",t)},e.prototype.onMessage=function(t){this.Na.reset();var e=this.serializer.pi(t),n=this.serializer.bi(t);return this.listener.r_(e,n)},e.prototype.h_=function(t){var e={};e.database=this.serializer.Ii,e.addTarget=this.serializer.ee(t);var n=this.serializer.zi(t);n&&(e.labels=n),this.Hc(e)},e.prototype.o_=function(t){var e={};e.database=this.serializer.Ii,e.removeTarget=t,this.Hc(e)},e}(Xr),ti=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,s.a_=!1,s.lastStreamToken=T.ht,s}return i.__extends(e,t),Object.defineProperty(e.prototype,"u_",{get:function(){return this.a_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.a_=!1,this.lastStreamToken=T.ht,t.prototype.start.call(this)},e.prototype.Jc=function(){this.a_&&this.c_([])},e.prototype.s_=function(t){return this.Oc.n_("Write",t)},e.prototype.onMessage=function(t){if(_e(!!t.streamToken),this.lastStreamToken=this.serializer.ci(t.streamToken),this.a_){this.Na.reset();var e=this.serializer.xi(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.__(n,e)}return _e(!t.writeResults||0===t.writeResults.length),this.a_=!0,this.listener.l_()},e.prototype.d_=function(){var t={};t.database=this.serializer.Ii,this.Hc(t)},e.prototype.c_=function(t){var e=this,n={streamToken:this.serializer.ui(this.lastStreamToken),writes:t.map((function(t){return e.serializer.vi(t)}))};this.Hc(n)},e}(Xr),ei=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Oc=e,i.credentials=n,i.serializer=r,i}return i.__extends(e,t),e.prototype.T_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Oc.T_(t,e,r)})).catch((function(t){throw t.code===p.UNAUTHENTICATED&&n.credentials._(),t}))},e.prototype.E_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Oc.E_(t,e,r)})).catch((function(t){throw t.code===p.UNAUTHENTICATED&&n.credentials._(),t}))},e}((function(){this.f_=void 0})),ni=function(){function t(t){this.w_=t,this.I_=new Map,this.mutations=[],this.R_=!1,this.A_=null,this.m_=new Set}return t.prototype.P_=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.V_(),this.mutations.length>0)throw new d(p.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:return n=be(t),r={database:n.seri
1alizer.Ii,documents:e.map((function(t){return n.serializer.fi(t)}))},[4,n.E_("BatchGetDocuments",r)];case 1:return o=i.sent(),s=new Map,o.forEach((function(t){var e=n.serializer.gi(t);s.set(e.key.toString(),e)})),a=[],[2,(e.forEach((function(t){var e=s.get(t.toString());_e(!!e),a.push(e)})),a)]}}))}))}(this.w_,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof _t||t instanceof vt?n.g_(t):ve()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.gc(t,this.Rt(t))),this.m_.add(t)},t.prototype.update=function(t,e){try{this.write(e.gc(t,this.p_(t)))}catch(t){this.A_=t}this.m_.add(t)},t.prototype.delete=function(t){this.write([new lt(t,this.Rt(t))]),this.m_.add(t)},t.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.V_(),this.A_)throw this.A_;return t=this.I_,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=new E(C.K(n));e.mutations.push(new ht(r,e.Rt(r)))})),[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return n=be(t),r={database:n.seri
1alizer.Ii,writes:e.map((function(t){return n.serializer.vi(t)}))},[4,n.T_("Commit",r)];case 1:return o=i.sent(),[2,n.serializer.xi(o.writeResults,o.commitTime)]}}))}))}(this.w_,this.mutations)];case 1:return n.sent(),this.R_=!0,[2]}}))}))},t.prototype.g_=function(t){var e;if(t instanceof vt)e=t.version;else{if(!(t instanceof _t))throw ve();e=b.min()}var n=this.I_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new d(p.ABORTED,"Document version changed between two reads.")}else this.I_.set(t.key.toString(),e)},t.prototype.Rt=function(t){var e=this.I_.get(t.toString());return!this.m_.has(t)&&e?ot.updateTime(e):ot.ft()},t.prototype.p_=function(t){var e=this.I_.get(t.toString());if(!this.m_.has(t)&&e){if(e.isEqual(b.min()))throw new d(p.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ot.updateTime(e)}return ot.exists(!0)},t.prototype.write=function(t){this.V_(),this.mutations=this.mutations.concat(t)},t.prototype.V_=function(){},t}(),ri=function(){function t(t,e){this.Ra=t,this.y_=e,this.state="Unknown",this.b_=0,this.v_=null,this.S_=!0}return t.prototype.D_=function(){var t=this;0===this.b_&&(this.C_("Unknown"),this.v_=this.Ra.yr("online_state_timeout",1e4,(function(){return t.v_=null,t.F_("Backend didn't respond within 10 seconds."),t.C_("Offline"),Promise.resolve()})))},t.prototype.N_=function(t){"Online"===this.state?this.C_("Unknown"):(this.b_++,this.b_>=1&&(this.k_(),this.F_("Connection failed 1 times. Most recent error: "+t.toString()),this.C_("Offline")))},t.prototype.set=function(t){this.k_(),this.b_=0,"Online"===t&&(this.S_=!1),this.C_(t)},t.prototype.C_=function(t){t!==this.state&&(this.state=t,this.y_(t))},t.prototype.F_=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.S_?(me(e),this.S_=!1):ge("OnlineStateTracker",e)},t.prototype.k_=function(){null!==this.v_&&(this.v_.cancel(),this.v_=null)},t}(),ii=function(){function t(t,e,n,r,o){var s=this;this.M_=t,this.w_=e,this.Ra=n,this.x_=[],this.L_=new Map,this.O_=null,this.networkEnabled=!1,this.isPrimary=!1,this.B_=!1,this.q_=o,this.q_.U_((function(t){n.co((function(){return i.__awaiter(s,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Q_()?(ge("RemoteStore","Restarting streams for network reachability change."),[4,this.W_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))}))})),this.j_=new ri(n,r),this.K_=function(t,e,n){var r=be(t);return new Jr(e,r.Oc,r.credentials,r.serializer,n)}(this.w_,n,{i_:this.G_.bind(this),Xc:this.z_.bind(this),r_:this.H_.bind(this)}),this.Y_=function(t,e,n){var r=be(t);return new ti(e,r.Oc,r.credentials,r.serializer,n)}(this.w_,n,{i_:this.J_.bind(this),Xc:this.X_.bind(this),l_:this.Z_.bind(this),__:this.__.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.networkEnabled=!0,this.tl()},t.prototype.tl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Q_()?(this.el()?this.sl():this.j_.set("Unknown"),[4,this.il()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.nl()];case 1:return t.sent(),this.j_.set("Offline"),[2]}}))}))},t.prototype.nl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.Y_.stop()];case 1:return t.sent(),[4,this.K_.stop()];case 2:return t.sent(),this.x_.length>0&&(ge("RemoteStore","Stopping write stream with "+this.x_.length+" pending writes"),this.x_=[]),this.rl(),[2]}}))}))},t.prototype.Vo=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ge("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.nl()];case 1:return t.sent(),this.q_.Vo(),this.j_.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.L_.has(t.targetId)||(this.L_.set(t.targetId,t),this.el()?this.sl():this.K_.Wc()&&this.hl(t))},t.prototype.ol=function(t){this.L_.delete(t),this.K_.Wc()&&this.al(t),0===this.L_.size&&(this.K_.Wc()?this.K_.Gc():this.Q_()&&this.j_.set("Unknown"))},t.prototype.si=function(t){return this.L_.get(t)||null},t.prototype.ei=function(t){return this.ul.ei(t)},t.prototype.hl=function(t){this.O_.Ns(t.targetId),this.K_.h_(t)},t.prototype.al=function(t){this.O_.Ns(t),this.K_.o_(t)},t.prototype.sl=function(){this.O_=new oe(this),this.K_.start(),this.j_.D_()},t.prototype.el=function(){return this.Q_()&&!this.K_.Qc()&&this.L_.size>0},t.prototype.Q_=function(){return!this.B_&&this.isPrimary&&this.networkEnabled},t.prototype.rl=function(){this.O_=null},t.prototype.G_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.L_.forEach((function(e,n){t.hl(e)})),[2]}))}))},t.prototype.z_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.rl(),this.el()?(this.j_.N_(t),this.sl()):this.j_.set("Unknown"),[2]}))}))},t.prototype.H_=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.j_.set("Online"),!(t instanceof re&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this.cl(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),ge("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this._l(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof ee?this.O_.qs(t):t instanceof ne?this.O_.Hs(t):this.O_.Ws(t),e.isEqual(b.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.M_._h()];case 8:return r=i.sent(),e.S(r)>=0?[4,this.ll(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return ge("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this._l(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}
1))}))},t.prototype._l=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(!Un(t))throw t;return this.B_=!0,[4,this.nl()];case 1:return r.sent(),this.j_.set("Offline"),e||(e=function(){return n.M_._h()}),this.Ra.lo((function(){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ge("RemoteStore","Retrying IndexedDB access"),[4,e()];case 1:return t.sent(),this.B_=!1,[4,this.tl()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.dl=function(t){var e=this;return t().catch((function(n){return e._l(n,t)}))},t.prototype.ll=function(t){var e=this,n=this.O_.Xs(t);return n.as.forEach((function(n,r){if(n.resumeToken.rt()>0){var i=e.L_.get(r);i&&e.L_.set(r,i.Ie(n.resumeToken,t))}})),n.us.forEach((function(t){var n=e.L_.get(t);if(n){e.L_.set(t,n.Ie(T.ht,n.Ee)),e.al(t);var r=new kt(n.target,t,1,n.sequenceNumber);e.hl(r)}})),this.ul.Mu(n)},t.prototype.cl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:e=t.cause,n=0,r=t.targetIds,i.label=1;case 1:return n<r.length?this.L_.has(o=r[n])?[4,this.ul.fl(o,e)]:[3,3]:[3,5];case 2:i.sent(),this.L_.delete(o),this.O_.removeTarget(o),i.label=3;case 3:i.label=4;case 4:return n++,[3,1];case 5:return[2]}}
1))}))},t.prototype.il=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n;return i.__generator(this,(function(r){switch(r.label){case 0:t=this.x_.length>0?this.x_[this.x_.length-1].batchId:-1,r.label=1;case 1:if(!this.Tl())return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.M_.Bu(t)];case 3:return null===(e=r.sent())?(0===this.x_.length&&this.Y_.Gc(),[3,7]):(t=e.batchId,this.El(e),[3,6]);case 4:return n=r.sent(),[4,this._l(n)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return this.wl()&&this.Il(),[2]}}))}))},t.prototype.Tl=function(){return this.Q_()&&this.x_.length<10},t.prototype.Rl=function(){return this.x_.length},t.prototype.El=function(t){this.x_.push(t),this.Y_.Wc()&&this.Y_.u_&&this.Y_.c_(t.mutations)},t.prototype.wl=function(){return this.Q_()&&!this.Y_.Qc()&&this.x_.length>0},t.prototype.Il=function(){this.Y_.start()},t.prototype.J_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Y_.d_(),[2]}))}))},t.prototype.Z_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e;return i.__generator(this,(function(n){for(t=0,e=this.x_;t<e.length;t++)this.Y_.c_(e[t].mutations);return[2]}))}))},t.prototype.__=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=this.x_.shift(),r=Te.from(n,t,e),[4,this.dl((function(){return o.ul.Al(r)}))];case 1:return i.sent(),[4,this.il()];case 2:return i.sent(),[2]}}))}))},t.prototype.X_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return t&&this.Y_.u_?[4,this.ml(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.wl()&&this.Il(),[2]}}))}))},t.prototype.ml=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return Dt(n=t.code)&&n!==p.ABORTED?(e=this.x_.shift(),this.Y_.Kc(),[4,this.dl((function(){return r.ul.Pl(e.batchId,t)}))]):[3,3];case 1:return i.sent(),[4,this.il()];case 2:i.sent(),i.label=3;case 3:return[2]}}
1))}))},t.prototype.Vl=function(){return new ni(this.w_)},t.prototype.W_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.nl()];case 1:return t.sent(),this.j_.set("Unknown"),[4,this.enableNetwork()];case 2:return t.sent(),[2]}}))}))},t.prototype.gl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Q_()?(ge("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.W_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.isPrimary=t,t&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return e.sent(),[3,5];case 2:return t?[3,4]:[4,this.nl()];case 3:e.sent(),this.j_.set("Unknown"),e.label=4;case 4:e.label=5;case 5:return[2]}}))}))},t}();function oi(t,e){return"firestore_clients_"+t+"_"+e}function si(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.t()&&(r+="_"+e.uid),r}function ai(t,e){return"firestore_targets_"+t+"_"+e}var ui=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.yl=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),s=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(s=new d(i.error.code,i.error.message)),o?new t(e,n,i.state,s):(me("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.bl=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),ci=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.yl=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new d(r.error.code,r.error.message)),i?new t(e,r.state,o):(me("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.bl=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),li=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.yl=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Kt(),s=0;i&&s<r.activeTargetIds.length;++s)i=I(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new t(e,o):(me("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),hi=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.yl=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(me("SharedClientState","Failed to parse online state: "+e),null)},t}(),pi=function(){function t(){this.activeTargetIds=Kt()}return t.prototype.vl=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Sl=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.bl=function(){var t={activeTargetIds:this.activeTargetIds.W(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),di=function(){function t(e,n,r,i,o){if(this.Tr=e,this.platform=n,this.persistenceKey=r,this.Dl=i,this.ul=null,this.y_=null,this.ur=null,this.Cl=this.Fl.bind(this),this.Nl=new Rt(Ce),this.ho=!1,this.$l=[],!t.zh(this.platform))throw new d(p.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.kl=oi(this.persistenceKey,this.Dl),this.Ml=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Nl=this.Nl.Ae(this.Dl,new pi),this.xl=new RegExp("^firestore_clients_"+s+"_([^_]*)$"),this.Ll=new RegExp("^firestore_mutations_"+s+"_(\\d+)(?:_(.*))?$"),this.Ol=new RegExp("^firestore_targets_"+s+"_(\\d+)$"),this.Bl=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Cl)}
1return t.zh=function(t){return!(!t.window||null==t.window.localStorage)},t.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,o,s,a,u,c,l,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.ul.So()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Dl&&(o=this.getItem(oi(this.persistenceKey,r)))&&(s=li.yl(r,o))&&(this.Nl=this.Nl.Ae(s.clientId,s));for(this.ql(),(a=this.storage.getItem(this.Bl))&&(u=this.Ul(a))&&this.Ql(u),c=0,l=this.$l;c<l.length;c++)this.Fl(l[c]);return this.$l=[],this.platform.window.addEventListener("unload",(function(){return h.Vo()})),this.ho=!0,[2]}}))}))},t.prototype.lr=function(t){this.setItem(this.Ml,JSON.stringify(t))},t.prototype.Wl=function(){return this.jl(this.Nl)},t.prototype.Kl=function(t){var e=!1;return this.Nl.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.Gl=function(t){this.zl(t,"pending")},t.prototype.Hl=function(t,e,n){this.zl(t,e,n),this.Yl(t)},t.prototype.Jl=function(t){var e="not-current";if(this.Kl(t)){var n=this.storage.getItem(ai(this.persistenceKey,t));if(n){var r=ci.yl(t,n);r&&(e=r.state)}}return this.Xl.vl(t),this.ql(),e},t.prototype.Zl=function(t){this.Xl.Sl(t),this.ql()},t.prototype.td=function(t){return this.Xl.activeTargetIds.has(t)},t.prototype.ed=function(t){this.removeItem(ai(this.persistenceKey,t))},t.prototype.sd=function(t,e,n){this.nd(t,e,n)},t.prototype.vu=function(t,e,n){var r=this;e.forEach((function(t){r.Yl(t)})),this.currentUser=t,n.forEach((function(t){r.Gl(t)}))},t.prototype.rd=function(t){this.hd(t)},t.prototype.Vo=function(){this.ho&&(this.platform.window.removeEventListener("storage",this.Cl),this.removeItem(this.kl),this.ho=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return ge("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){ge("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){ge("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Fl=function(t){var e=this;if(t.storageArea===this.storage){if(ge("SharedClientState","EVENT",t.key,t.newValue),t.key===this.kl)return void me("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Tr.lo((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,r,o,s,a;return i.__generator(this,(function(i){if(this.ho){if(null!==t.key)if(this.xl.test(t.key)){if(null==t.newValue)return e=this.od(t.key),[2,this.ad(e,null)];if(n=this.ud(t.key,t.newValue))return[2,this.ad(n.clientId,n)]}else if(this.Ll.test(t.key)){if(null!==t.newValue&&(r=this._d(t.key,t.newValue)))return[2,this.ld(r)]}else if(this.Ol.test(t.key)){if(null!==t.newValue&&(o=this.dd(t.key,t.newValue)))return[2,this.fd(o)]}else if(t.key===this.Bl){if(null!==t.newValue&&(s=this.Ul(t.newValue)))return[2,this.Ql(s)]}else t.key===this.Ml&&(a=function(t){var e=je.dr;if(null!=t)try{var n=JSON.parse(t);_e("number"==typeof n),e=n}catch(t){me("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(t.newValue))!==je.dr&&this.ur(a)}else this.$l.push(t);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Xl",{get:function(){return this.Nl.get(this.Dl)},enumerable:!0,configurable:!0}),t.prototype.ql=function(){this.setItem(this.kl,this.Xl.bl())},t.prototype.zl=function(t,e,n){var r=new ui(this.currentUser,t,e,n),i=si(this.persistenceKey,this.currentUser,t);this.setItem(i,r.bl())},t.prototype.Yl=function(t){var e=si(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.hd=function(t){this.storage.setItem(this.Bl,JSON.stringify({clientId:this.Dl,onlineState:t}))},t.prototype.nd=function(t,e,n){var r=ai(this.persistenceKey,t),i=new ci(t,e,n);this.setItem(r,i.bl())},t.prototype.od=function(t){var e=this.xl.exec(t);return e?e[1]:null},t.prototype.ud=function(t,e){var n=this.od(t);return li.yl(n,e)},t.prototype._d=function(t,e){var n=this.Ll.exec(t),r=Number(n[1]);return ui.yl(new h(void 0!==n[2]?n[2]:null),r,e)},t.prototype.dd=function(t,e){var n=this.Ol.exec(t),r=Number(n[1]);return ci.yl(r,e)},t.prototype.Ul=function(t){return hi.yl(t)},t.prototype.ld=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.ul.Td(t.batchId,t.state,t.error)]:(ge("SharedCl
1ientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.fd=function(t){return this.ul.Ed(t.targetId,t.state,t.error)},t.prototype.ad=function(t,e){var n=this,r=e?this.Nl.Ae(t,e):this.Nl.remove(t),i=this.jl(this.Nl),o=this.jl(r),s=[],a=[];return o.forEach((function(t){i.has(t)||s.push(t)})),i.forEach((function(t){o.has(t)||a.push(t)})),this.ul.wd(s,a).then((function(){n.Nl=r}))},t.prototype.Ql=function(t){this.Nl.get(t.clientId)&&this.y_(t.onlineState)},t.prototype.jl=function(t){var e=Kt();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),fi=function(){function t(){this.Id=new pi,this.Rd={},this.ul=null,this.y_=null,this.ur=null}return t.prototype.Gl=function(t){},t.prototype.Hl=function(t,e,n){},t.prototype.Jl=function(t){return this.Id.vl(t),this.Rd[t]||"not-current"},t.prototype.sd=function(t,e,n){this.Rd[t]=e},t.prototype.Zl=function(t){this.Id.Sl(t)},t.prototype.td=function(t){return this.Id.activeTargetIds.has(t)},t.prototype.ed=function(t){delete this.Rd[t]},t.prototype.Wl=function(){return this.Id.activeTargetIds},t.prototype.Kl=function(t){return this.Id.activeTargetIds.has(t)},t.prototype.start=function(){return this.Id=new pi,Promise.resolve()},t.prototype.vu=function(t,e,n){},t.prototype.rd=function(t){},t.prototype.Vo=function(){},t.prototype.lr=function(t){},t}(),gi=function(t){this.key=t},mi=function(t){this.key=t},yi=function(){function t(t,e){this.query=t,this.Ad=e,this.md=null,this.fs=!1,this.Pd=$t(),this.ns=$t(),this.Vd=new Yt(t.se.bind(t))}return Object.defineProperty(t.prototype,"gd",{get:function(){return this.Ad},enumerable:!0,configurable:!0}),t.prototype.pd=function(t,e){var n=this,r=e?e.yd:new Zt,i=e?e.Vd:this.Vd,o=e?e.ns:this.ns,s=i,a=!1,u=this.query.oe()&&i.size===this.query.limit?i.last():null,c=this.query.ae()&&i.size===this.query.limit?i.first():null;if(t.pe((function(t,e){var l=i.get(t),h=e instanceof vt?e:null;h&&(h=n.query.matches(h)?h:null);var p=!!l&&n.ns.has(l.key),d=!!h&&(h.At||n.ns.has(h.key)&&h.hasCommittedMutations),f=!1;l&&h?l.data().isEqual(h.data())?p!==d&&(r.track({type:3,doc:h}),f=!0):n.bd(l,h)||(r.track({type:2,doc:h}),f=!0,(u&&n.query.se(h,u)>0||c&&n.query.se(h,c)<0)&&(a=!0)):!l&&h?(r.track({type:0,doc:h}),f=!0):l&&!h&&(r.track({type:1,doc:l}),f=!0,(u||c)&&(a=!0)),f&&(h?(s=s.add(h),o=d?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))})),this.query.oe()||this.query.ae())for(;s.size>this.query.limit;){var l=this.query.oe()?s.last():s.first();s=s.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{Vd:s,yd:r,vd:a,ns:o}},t.prototype.bd=function(t,e){return t.At&&e.hasCommittedMutations&&!e.At},t.prototype.On=function(t,e,n){var r=this,i=this.Vd;this.Vd=t.Vd,this.ns=t.ns;var o=t.yd.es();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ve()}};return n(t)-n(e)}(t.type,e.type)||r.query.se(t.doc,e.doc)})),this.Sd(n);var s=e?this.Dd():[],a=0===this.Pd.size&&this.fs?1:0,u=a!==this.md;return this.md=a,0!==o.length||u?{snapshot:new Xt(this.query,t.Vd,i,o,t.ns,0===a,u,!1),Cd:s}:{Cd:s}},t.prototype.Fd=function(t){return this.fs&&"Offline"===t?(this.fs=!1,this.On({Vd:this.Vd,yd:new Zt,ns:this.ns,vd:!1},!1)):{Cd:[]}},t.prototype.Nd=function(t){return!this.Ad.has(t)&&!!this.Vd.has(t)&&!this.Vd.get(t).At},t.prototype.Sd=function(t){var e=this;t&&(t.Ts.forEach((function(t){return e.Ad=e.Ad.add(t)})),t.Es.forEach((function(t){})),t.ws.forEach((function(t){return e.Ad=e.Ad.delete(t)})),this.fs=t.fs)},t.prototype.Dd=function(){var t=this;if(!this.fs)return[];var e=this.Pd;this.Pd=$t(),this.Vd.forEach((function(e){t.Nd(e.key)&&(t.Pd=t.Pd.add(e.key))}));var n=[];return e.forEach((function(e){t.Pd.has(e)||n.push(new mi(e))})),this.Pd.forEach((function(t){e.has(t)||n.push(new gi(t))})),n},t.prototype.$d=function(t){this.Ad=t.ju,this.Pd=$t();var e=this.pd(t.documents);return this.On(e,!0)},t.prototype.kd=function(){return Xt.os(this.query,this.Vd,this.ns,0===this.md)},t}(),vi=function(){function t(t,e,n,r){this.Ra=t,this.w_=e,this.updateFunction=n,this.Pa=r,this.Md=5,this.Na=new Le(this.Ra,"transaction_retry")}return t.prototype.xd=function(){this.Ld()},t.prototype.Ld=function(){var t=this;this.Na.gr((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=new ni(this.w_),(e=this.Od(t))&&e.then((function(e){n.Ra.co((function(){return t.commit().then((function(){n.Pa.resolve(e)})).catch((function(t){n.Bd(t)}))}))})).catch((function(t){n.Bd(t)})),[2]}))}
1))}))},t.prototype.Od=function(t){try{var e=this.updateFunction(t);return!A(e)&&e.catch&&e.then?e:(this.Pa.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Pa.reject(t),null}},t.prototype.Bd=function(t){var e=this;this.Md>0&&this.qd(t)?(this.Md-=1,this.Ra.co((function(){return e.Ld(),Promise.resolve()}))):this.Pa.reject(t)},t.prototype.qd=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Dt(e)}return!1},t}(),_i=function(t,e,n){this.query=t,this.targetId=e,this.view=n},bi=function(t){this.key=t,this.Ud=!1},wi=function(){function t(t,e,n,r,i,o){this.M_=t,this.Qd=e,this.w_=n,this.Wd=r,this.currentUser=i,this.jd=o,this.Kd=null,this.Gd=new Me((function(t){return t.canonicalId()})),this.zd=new Map,this.Hd=[],this.Yd=new Rt(E.N),this.Jd=new Map,this.Xd=new rr,this.Zd={},this.tf=new Map,this.ef=Xe.rh(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"sf",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){this.Kd=t},t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.if("listen()"),(n=this.Gd.get(t))?(this.Wd.Jl(n.targetId),e=n.view.kd(),[3,4]):[3,1];case 1:return[4,this.M_.Uu(t.ee())];case 2:return r=i.sent(),o=this.Wd.Jl(r.targetId),[4,this.nf(t,r.targetId,"current"===o)];case 3:e=i.sent(),this.sf&&this.Qd.listen(r),i.label=4;case 4:return[2,e]}}))}))},t.prototype.nf=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,u,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.M_.Wu(t,!0)];case 1:return r=i.sent(),o=new yi(t,r.ju),s=o.pd(r.documents),a=te.ds(e,n&&"Offline"!==this.onlineState),u=o.On(s,this.sf,a),this.rf(e,u.Cd),c=new _i(t,e,o),[2,(this.Gd.set(t,c),this.zd.has(e)?this.zd.get(e).push(t):this.zd.set(e,[t]),u.snapshot)]}}))}))},t.prototype.ol=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.if("unlisten()"),e=this.Gd.get(t),(n=this.zd.get(e.targetId)).length>1?[2,(this.zd.set(e.targetId,n.filter((function(e){return!e.isEqual(t)}))),void this.Gd.delete(t))]:this.sf?(this.Wd.Zl(e.targetId),this.Wd.Kl(e.targetId)?[3,2]:[4,this.M_.Qu(e.targetId,!1).then((function(){r.Wd.ed(e.targetId),r.Qd.ol(e.targetId),r.hf(e.targetId)})).catch(nr)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.hf(e.targetId),[4,this.M_.Qu(e.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}
1))}))},t.prototype.write=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.if("write()"),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this.M_.Fu(t)];case 2:return n=i.sent(),this.Wd.Gl(n.batchId),this.af(n.batchId,e),[4,this.uf(n.Dn)];case 3:return i.sent(),[4,this.Qd.il()];case 4:return i.sent(),[3,6];case 5:return r=i.sent(),o=$n(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new vi(t,this.w_,e,n).xd()},t.prototype.Mu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.if("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.M_.Mu(t)];case 2:return e=r.sent(),t.as.forEach((function(t,e){var r=n.Jd.get(e);r&&(_e(t.Ts.size+t.Es.size+t.ws.size<=1),t.Ts.size>0?r.Ud=!0:t.Es.size>0?_e(r.Ud):t.ws.size>0&&(_e(r.Ud),r.Ud=!1))})),[4,this.uf(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,nr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
1))}))},t.prototype.Fd=function(t,e){this.if("applyOnlineStateChange()");var n=[];this.Gd.forEach((function(e,r){var i=r.view.Fd(t);i.snapshot&&n.push(i.snapshot)})),this.Kd.cf(t),this.Kd.r_(n),this.onlineState=t},t.prototype.fl=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.if("rejectListens()"),this.Wd.sd(t,"rejected",e),n=this.Jd.get(t),(r=n&&n.key)?(o=(o=new Rt(E.N)).Ae(r,new _t(r,b.min())),s=$t().add(r),a=new Jt(b.min(),new Map,new Lt(Ce),o,s),[4,this.Mu(a)]):[3,2];case 1:return i.sent(),this.Yd=this.Yd.remove(r),this.Jd.delete(t),this._f(),[3,4];case 2:return[4,this.M_.Qu(t,!1).then((function(){return u.hf(t,e)})).catch(nr)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t.prototype.Al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.if("applySuccessfulWrite()"),e=t.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.M_.Nu(t)];case 2:return n=r.sent(),this.lf(e,null),this.df(e),this.Wd.Hl(e,"acknowledged"),[4,this.uf(n)];case 3:return r.sent(),[3,6];case 4:return[4,nr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
1))}))},t.prototype.Pl=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.if("rejectFailedWrite()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.M_.ku(t)];case 2:return n=r.sent(),this.lf(t,e),this.df(t),this.Wd.Hl(t,"rejected",e),[4,this.uf(n)];case 3:return r.sent(),[3,6];case 4:return[4,nr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.ff=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.Qd.Q_()||ge("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.M_.ta()];case 2:return-1===(e=i.sent())?[2,void t.resolve()]:((n=this.tf.get(e)||[]).push(t),this.tf.set(e,n),[3,4]);case 3:return r=i.sent(),o=$n(r,"Initialization of waitForPendingWrites() operation failed"),t.reject(o),[3,4];case 4:return[2]}}
1))}))},t.prototype.df=function(t){(this.tf.get(t)||[]).forEach((function(t){t.resolve()})),this.tf.delete(t)},t.prototype.Tf=function(t){this.tf.forEach((function(e){e.forEach((function(e){e.reject(new d(p.CANCELLED,t))}))})),this.tf.clear()},t.prototype.af=function(t,e){var n=this.Zd[this.currentUser.s()];n||(n=new Rt(Ce)),n=n.Ae(t,e),this.Zd[this.currentUser.s()]=n},t.prototype.lf=function(t,e){var n=this.Zd[this.currentUser.s()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.Zd[this.currentUser.s()]=n}},t.prototype.hf=function(t,e){var n=this;void 0===e&&(e=null),this.Wd.Zl(t);for(var r=0,i=this.zd.get(t);r<i.length;r++){var o=i[r];this.Gd.delete(o),e&&this.Kd.Ef(o,e)}this.zd.delete(t),this.sf&&this.Xd.ic(t).forEach((function(t){n.Xd.Ch(t)||n.wf(t)}))},t.prototype.wf=function(t){var e=this.Yd.get(t);null!==e&&(this.Qd.ol(e),this.Yd=this.Yd.remove(t),this.Jd.delete(e),this._f())},t.prototype.rf=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof gi?(this.Xd.yh(i.key,t),this.If(i)):i instanceof mi?(ge("SyncEngine","Document no longer in limbo: "+i.key),this.Xd.vh(i.key,t),this.Xd.Ch(i.key)||this.wf(i.key)):ve()}},t.prototype.If=function(t){var e=t.key;this.Yd.get(e)||(ge("SyncEngine","New document in limbo: "+e),this.Hd.push(e),this._f())},t.prototype._f=function(){for(;this.Hd.length>0&&this.Yd.size<this.jd;){var t=this.Hd.shift(),e=this.ef.next();this.Jd.set(e,new bi(t)),this.Yd=this.Yd.Ae(t,e),this.Qd.listen(new kt(Ct.Wt(t.path).ee(),e,2,je.dr))}},t.prototype.Rf=function(){return this.Yd},t.prototype.Af=function(){return this.Hd},t.prototype.uf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],o=[],this.Gd.forEach((function(i,a){o.push(Promise.resolve().then((function(){var e=a.view.pd(t);return e.vd?s.M_.Wu(a.query,!1).then((function(t){return a.view.pd(t.documents,e)})):e})).then((function(t){var i=e&&e.as.get(a.targetId),o=a.view.On(t,s.sf,i);if(s.rf(a.targetId,o.Cd),o.snapshot){s.sf&&s.Wd.sd(a.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Re.ar(a.targetId,o.snapshot);r.push(u)}})))})),[4,Promise.all(o)];case 1:return i.sent(),this.Kd.r_(n),[4,this.M_.Ou(r)];case 2:return i.sent(),[2]}}))}))},t.prototype.if=function(t){},t.prototype.gl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.currentUser.isEqual(t)?[3,3]:[4,this.M_.vu(t)];
1case 1:return e=n.sent(),this.currentUser=t,this.Tf("'waitForPendingWrites' promise is rejected due to a user change."),this.Wd.vu(t,e.Du,e.Cu),[4,this.uf(e.Su)];case 2:n.sent(),n.label=3;case 3:return[4,this.Qd.gl()];case 4:return n.sent(),[2]}}))}))},t.prototype.enableNetwork=function(){return this.Qd.enableNetwork()},t.prototype.disableNetwork=function(){return this.Qd.disableNetwork()},t.prototype.ei=function(t){var e=this.Jd.get(t);if(e&&e.Ud)return $t().add(e.key);var n=$t(),r=this.zd.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var s=this.Gd.get(o[i]);n=n.He(s.view.gd)}return n},t}(),Ci=function(t){function e(e,n,r,i,o,s){var a=this;return(a=t.call(this,e,n,r,i,o,s)||this).M_=e,a.mf=void 0,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"sf",{get:function(){return!0===this.mf},enumerable:!0,configurable:!0}),e.prototype.enableNetwork=function(){return this.M_.uo(!0),t.prototype.enableNetwork.call(this)},e.prototype.disableNetwork=function(){return this.M_.uo(!1),t.prototype.disableNetwork.call(this)},e.prototype.Pf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.M_.Wu(t.query,!0)];case 1:return e=r.sent(),n=t.view.$d(e),[2,(this.mf&&this.rf(t.targetId,n.Cd),n)]}}))}))},e.prototype.Fd=function(e,n){this.sf&&0===n&&(t.prototype.Fd.call(this,e,n),this.Wd.rd(e)),this.sf||1!==n||t.prototype.Fd.call(this,e,n)},e.prototype.Td=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.if("applyBatchState()"),[4,this.M_.Gu(t)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==e?[3,3]:[4,this.Qd.il()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.lf(t,n||null),this.M_.zu(t)):ve(),i.label=4;case 4:return[4,this.uf(r)];case 5:return i.sent(),[3,7];case 6:ge("SyncEngine","Cannot apply mutation batch with id: "+t),i.label=7;case 7:return[2]}}
1))}))},e.prototype.pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!0!==t||!0===this.mf?[3,3]:(e=this.Wd.Wl(),[4,this.Vf(e.W(),!0)]);case 1:return n=i.sent(),this.mf=!0,[4,this.Qd.pl(!0)];case 2:for(i.sent(),r=0,o=n;r<o.length;r++)this.Qd.listen(o[r]);return[3,7];case 3:return!1!==t||!1===this.mf?[3,7]:(s=[],a=Promise.resolve(),this.zd.forEach((function(t,e){u.Wd.td(e)?s.push(e):a=a.then((function(){return u.hf(e),u.M_.Qu(e,!0)})),u.Qd.ol(e)})),[4,a]);case 4:return i.sent(),[4,this.Vf(s,!1)];case 5:return i.sent(),this.gf(),this.mf=!1,[4,this.Qd.pl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},e.prototype.gf=function(){var t=this;this.Jd.forEach((function(e,n){t.Qd.ol(n)})),this.Xd.nc(),this.Jd=new Map,this.Yd=new Rt(E.N)},e.prototype.Vf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,u,c,l,h,p,d;return i.__generator(this,(function(i){switch(i.label){case 0:e=[],n=[],r=0,o=t,i.label=1;case 1:return r<o.length?(a=void 0,(u=this.zd.get(s=o[r]))&&0!==u.length?[4,this.M_.Uu(u[0].ee())]:[3,7]):[3,13];case 2:a=i.sent(),c=0,l=u,i.label=3;case 3:return c<l.length?(h=this.Gd.get(l[c]),[4,this.Pf(h)]):[3,6];case 4:(p=i.sent()).snapshot&&n.push(p.snapshot),i.label=5;case 5:return c++,[3,3];case 6:return[3,11];case 7:return[4,this.M_.Hu(s)];case 8:return d=i.sent(),[4,this.M_.Uu(d)];case 9:return a=i.sent(),[4,this.nf(this.pf(d),s,!1)];case 10:i.sent(),i.label=11;case 11:e.push(a),i.label=12;case 12:return r++,[3,1];case 13:return[2,(this.Kd.r_(n),e)]}}))}))},e.prototype.pf=function(t){return new Ct(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)},e.prototype.So=function(){return this.M_.So()},e.prototype.Ed=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.mf?(ge("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.zd.has(t))return[3,8];switch(e){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.M_.Kr()];case 3:return r=i.sent(),o=Jt.ls(t,"current"===e),[4,this.uf(r,o)];case 4:return i.sent(),[3,8];case 5:return[4,this.M_.Qu(t,!0)];case 6:return i.sent(),this.hf(t,n),[3,8];case 7:ve(),i.label=8;case 8:return[2]}}
1))}))},e.prototype.wd=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a,u,c,l,h,p=this;return i.__generator(this,(function(d){switch(d.label){case 0:if(!this.mf)return[3,10];n=0,r=t,d.label=1;case 1:return n<r.length?this.zd.has(o=r[n])?(ge("SyncEngine","Adding an already active target "+o),[3,5]):[4,this.M_.Hu(o)]:[3,6];case 2:return s=d.sent(),[4,this.M_.Uu(s)];case 3:return a=d.sent(),[4,this.nf(this.pf(s),a.targetId,!1)];case 4:d.sent(),this.Qd.listen(a),d.label=5;case 5:return n++,[3,1];case 6:u=function(t){return i.__generator(this,(function(e){switch(e.label){case 0:return c.zd.has(t)?[4,c.M_.Qu(t,!1).then((function(){p.Qd.ol(t),p.hf(t)})).catch(nr)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},c=this,l=0,h=e,d.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:d.sent(),d.label=9;case 9:return l++,[3,7];case 10:return[2]}}))}))},e}(wi),Oi=function(){this.yf=void 0,this.bf=[]},xi=function(){function t(t){this.ul=t,this.vf=new Me((function(t){return t.canonicalId()})),this.onlineState="Unknown",this.Sf=new Set,this.ul.subscribe(this)}return t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:if(n=!1,(r=this.vf.get(e=t.query))||(n=!0,r=new Oi),!n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),o=r,[4,this.ul.listen(e)];case 2:return o.yf=i.sent(),[3,4];case 3:return s=i.sent(),a=$n(s,"Initialization of query '"+t.query+"' failed"),[2,void t.onError(a)];case 4:return this.vf.set(e,r),r.bf.push(t),t.Fd(this.onlineState),r.yf&&t.Df(r.yf)&&this.Cf(),[2]}}))}))},t.prototype.ol=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){return n=!1,(r=this.vf.get(e=t.query))&&(o=r.bf.indexOf(t))>=0&&(r.bf.splice(o,1),n=0===r.bf.length),n?[2,(this.vf.delete(e),this.ul.ol(e))]:[2]}))}))},t.prototype.r_=function(t){for(var e=!1,n=0,r=t;n<r.length;n++){var i=r[n],o=this.vf.get(i.query);if(o){for(var s=0,a=o.bf;s<a.length;s++)a[s].Df(i)&&(e=!0);o.yf=i}}e&&this.Cf()},t.prototype.Ef=function(t,e){var n=this.vf.get(t);if(n)for(var r=0,i=n.bf;r<i.length;r++)i[r].onError(e);this.vf.delete(t)},t.prototype.cf=function(t){this.onlineState=t;var e=!1;this.vf.forEach((function(n,r){for(var i=0,o=r.bf;i<o.length;i++)o[i].Fd(t)&&(e=!0)})),e&&this.Cf()},t.prototype.Ff=function(t){this.Sf.add(t),t.next()},t.prototype.Nf=function(t){this.Sf.delete(t)},t.prototype.Cf=function(){this.Sf.forEach((function(t){t.next()}))},t}(),Ei=function(){function t(t,e,n){this.query=t,this.$f=e,this.kf=!1,this.Mf=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Df=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new Xt(t.query,t.docs,t.ss,e,t.ns,t.fromCache,t.rs,!0)}var o=!1;return this.kf?this.xf(t)&&(this.$f.next(t),o=!0):this.Lf(t,this.onlineState)&&(this.Of(t),o=!0),this.Mf=t,o},t.prototype.onError=function(t){this.$f.error(t)},t.prototype.Fd=function(t){this.onlineState=t;var e=!1;return this.Mf&&!this.kf&&this.Lf(this.Mf,t)&&(this.Of(this.Mf),e=!0),e},t.prototype.Lf=function(t,e){return!t.fromCache||!(this.options.Bf&&"Offline"!==e||t.docs.B()&&"Offline"!==e)},t.prototype.xf=function(t){return t.docChanges.length>0||!!(t.rs||this.Mf&&this.Mf.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.Of=function(t){t=Xt.os(t.query,t.docs,t.ns,t.fromCache),this.kf=!0,this.$f.next(t)},t}(),Pi=function(){function t(){}return t.prototype.bu=function(t){this.qf=t},t.prototype.Zn=function(t,e,n,r){var i=this;return e.te()||n.isEqual(b.min())?this.Uf(t,e):this.qf.Yn(t,r).next((function(o){var a=i.Qf(e,o);return(e.oe()||e.ae())&&i.vd(e.Bt,a,r,n)?i.Uf(t,e):(fe()<=s.LogLevel.DEBUG&&ge("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),e.toString()),i.qf.Zn(t,e,n).next((function(t){return a.forEach((function(e){t=t.Ae(e.key,e)})),t})))}))},t.prototype.Qf=function(t,e){var n=new Lt((function(e,n){return t.se(e,n)}));return e.forEach((function(e,r){r instanceof vt&&t.matches(r)&&(n=n.add(r))})),n},t.prototype.vd=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.S(r)>0)},t.prototype.Uf=function(t,e){return fe()<=s.LogLevel.DEBUG&&ge("IndexFreeQueryEngine","Using full collection scan to execute query:",e.toString()),this.qf.Zn(t,e,b.min())},t}(),Mi=function(){function t(t,e){this.jn=t,this.hh=e,this.Wn=[],this.Wf=1,this.jf=new Lt(ir.Ju)}return t.prototype.Ho=function(t){return Ae.resolve(0===this.Wn.length)},t.prototype.Yo=function(t,e,n,r){var i=this.Wf;this.Wf++;var o=new Se(i,e,n,r);this.Wn.push(o);for(var s=0,a=r;s<a.length;s++){var u=a[s];this.jf=this.jf.add(new ir(u.key,i)),this.jn.Dr(t,u.key.path.M())}return Ae.resolve(o)},t.prototype.Jo=function(t,e){return Ae.resolve(this.Kf(e))},t.prototype.Zo=function(t,e){var n=this.Gf(e+1),r=n<0?0:n;return Ae.resolve(this.Wn.length>r?this.Wn[r]:null)},t.prototype.ta=function(){return Ae.resolve(0===this.Wn.length?-1:this.Wf-1)},t.prototype.ea=function(t){return Ae.resolve(this.Wn.slice())},t.prototype.Gn=function(t,e){var n=this,r=new ir(e,0),i=new ir(e,Number.POSITIVE_INFINITY),o=[];return this.jf.Ke([r,i],(function(t){var e=n.Kf(t.hc);o.push(e)})),Ae.resolve(o)},t.prototype.Xn=function(t,e){var n=this,r=new Lt(Ce);return e.forEach((function(t){var e=new ir(t,0),i=new ir(t,Number.POSITIVE_INFINITY);n.jf.Ke([e,i],(function(t){r=r.add(t.hc)}))})),Ae.resolve(this.zf(r))},t.prototype.nr=function(t,e){var n=e.path,r=n.length+1,i=n;E.et(i)||(i=i.child(""));var o=new ir(new E(i),0),s=new Lt(Ce);return this.jf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===r&&(s=s.add(t.hc)),!0)}),o),Ae.resolve(this.zf(s))},t.prototype.zf=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Kf(t);null!==r&&n.push(r)})),n},t.prototype.ia=function(t,e){var n=this;_e(0===this.Hf(e.batchId,"removed")),this.Wn.shift();var r=this.jf;return Ae.forEach(e.mutations,(function(i){var o=new ir(i.key,e.batchId);return r=r.delete(o),n.hh.Uo(t,i.key)})).next((function(){n.jf=r}))},t.prototype.na=function(t){},t.prototype.Ch=function(t,e){var n=new ir(e,0),r=this.jf.ze(n);return Ae.resolve(e.isEqual(r&&r.key))},t.prototype.ra=function(t){return Ae.resolve()},t.prototype.Hf=function(t,e){return this.Gf(t)},t.prototype.Gf=function(t){return 0===this.Wn.length?0:t-this.Wn[0].batchId},t.prototype.Kf=function(t){var e=this.Gf(t);return e<0||e>=this.Wn.length?null:this.Wn[e]},t}(),Si=function(){function t(t,e){this.jn=t,this.Yf=e,this.docs=new Rt(E.N),this.size=0}return t.prototype.Nn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.Yf(e);return this.docs=this.docs.Ae(r,{xr:e,size:s,readTime:n}),this.size+=s-o,this.jn.Dr(t,r.path.M())},t.prototype.kn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Mn=function(t,e){var n=this.docs.get(e);return Ae.resolve(n?n.xr:null)},t.prototype.getEntries=function(t,e){var n=this,r=qt();return e.forEach((function(t){var e=n.docs.get(t);r=r.Ae(t,e?e.xr:null)})),Ae.resolve(r)},t.prototype.Zn=function(t,e,n){for(var r=Ht(),i=new E(e.path.child("")),o=this.docs.ve(i);o.$e();){var s=o.Ne(),a=s.value,u=a.xr,c=a.readTime;if(!e.path.q(s.key.path))break;c.S(n)<=0||u instanceof vt&&e.matches(u)&&(r=r.Ae(u.key,u))}return Ae.resolve(r)},t.prototype.Jf=function(t,e){return Ae.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Yr=function(e){return new t.Jr(this)},t.prototype.Zr=function(t){return Ae.resolve(this.size)},t}();Si.Jr=function(t){function e(e){var n=this;return(n=t.call(this)||this).th=e,n}return i.__extends(e,t),e.prototype.On=function(t){var e=this,n=[];return this.Dn.forEach((function(r,i){i?n.push(e.th.Nn(t,i,e.readTime)):e.th.kn(r)})),Ae.vn(n)},e.prototype.xn=function(t,e){return this.th.Mn(t,e)},e.prototype.Ln=function(t,e){return this.th.getEntries(t,e)},e}(ke);var Ti=function(){function t(t){this.persistence=t,this.Xf=new Me((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=b.min(),this.highestTargetId=0,this.Zf=0,this.tT=new rr,this.targetCount=0,this.eT=Xe.nh()}return t.prototype.js=function(t,e){return this.Xf.forEach((function(t,n){return e(n)})),Ae.resolve()},t.prototype._h=function(t){return Ae.resolve(this.lastRemoteSnapshotVersion)},t.prototype.lh=function(t){return Ae.resolve(this.Zf)},t.prototype.oh=function(t){return this.highestTargetId=this.eT.next(),Ae.resolve(this.highestTargetId)},t.prototype.dh=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Zf&&(this.Zf=e),Ae.resolve()},t.prototype.Th=function(t){this.Xf.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.eT=new Xe(e),this.highestTargetId=e),t.sequenceNumber>this.Zf&&(this.Zf=t.sequenceNumber)},t.prototype.fh=function(t,e){return this.Th(e),this.targetCount+=1,Ae.resolve()},t.prototype.wh=function(t,e){return this.Th(e),Ae.resolve()},t.prototype.Ih=function(t,e){return this.Xf.delete(e.target),this.tT.ic(e.targetId),this.targetCount-=1,Ae.resolve()},t.prototype.Ah=function(t,e,n){var r=this,i=0,o=[];return this.Xf.forEach((function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.Xf.delete(s),o.push(r.Rh(t,a.targetId)),i++)})),Ae.vn(o).next((function(){return i}))},t.prototype.Vh=function(t){return Ae.resolve(this.targetCount)},t.prototype.gh=function(t,e){var n=this.Xf.get(e)||null;return Ae.resolve(n)},t.prototype.ph=function(t,e,n){return this.tT.tc(e,n),Ae.resolve()},t.prototype.bh=function(t,e,n){this.tT.sc(e,n);var r=this.persistence.hh,i=[];return r&&e.forEach((function(e){i.push(r.Uo(t,e))})),Ae.vn(i)},t.prototype.Rh=function(t,e){return this.tT.ic(e),Ae.resolve()},t.prototype.Sh=function(t,e){var n=this.tT.rc(e);return Ae.resolve(n)},t.prototype.Ch=function(t,e){return Ae.resolve(this.tT.Ch(e))},t}(),Ai=function(){function t(t){var e=this;this.sT={},this.qh=new je(0),this.Uh=!1,this.Uh=!0,this.hh=t(this),this.Jh=new Ti(this),this.jn=new ze,this.Qn=new Si(this.jn,(function(t){return e.hh.iT(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Vo=function(){return this.Uh=!1,Promise.resolve()},Object.defineProperty(t.prototype,"ho",{get:function(){return this.Uh},enumerable:!0,configurable:!0}),t.prototype.oo=function(){},t.prototype.$o=function(){return this.jn},t.prototype.Do=function(t){var e=this.sT[t.s()];return e||(e=new Mi(this.jn,this.hh),this.sT[t.s()]=e),e},t.prototype.Fo=function(){return this.Jh},t.prototype.No=function(){return this.Qn},t.prototype.runTransaction=function(t,e,n){var r=this;ge("MemoryPersistence","Starting transaction:",t);var i=new ki(this.qh.next());return this.hh.nT(),n(i).next((function(t){return r.hh.rT(i).next((function(){return t}))})).yn().then((function(t){return i.Un(),t}))},t.prototype.hT=function(t,e){return Ae.Sn(Object.values(this.sT).map((function(n){return function(){return n.Ch(t,e)}})))},t}(),ki=function(t){function e(e){var n=this;return(n=t.call(this)||this).Lh=e,n}return i.__extends(e,t),e}(De),Ii=function(){function t(t){this.persistence=t,this.oT=new rr,this.aT=null}return t.uT=function(e){return new t(e)},Object.defineProperty(t.prototype,"cT",{get:function(){if(this.aT)return this.aT;throw ve()},enumerable:!0,configurable:!0}),t.prototype.yh=function(t,e,n){return this.oT.yh(n,e),this.cT.delete(n),Ae.resolve()},t.prototype.vh=function(t,e,n){return this.oT.vh(n,e),this.cT.add(n),Ae.resolve()},t.prototype.Uo=function(t,e){return this.cT.add(e),Ae.resolve()},t.prototype.removeTarget=function(t,e){var n=this;
1this.oT.ic(e.targetId).forEach((function(t){return n.cT.add(t)}));var r=this.persistence.Fo();return r.Sh(t,e.targetId).next((function(t){t.forEach((function(t){return n.cT.add(t)}))})).next((function(){return r.Ih(t,e)}))},t.prototype.nT=function(){this.aT=new Set},t.prototype.rT=function(t){var e=this,n=this.persistence.No().Yr();return Ae.forEach(this.cT,(function(r){return e._T(t,r).next((function(t){t||n.kn(r)}))})).next((function(){return e.aT=null,n.apply(t)}))},t.prototype.Ko=function(t,e){var n=this;return this._T(t,e).next((function(t){t?n.cT.delete(e):n.cT.add(e)}))},t.prototype.iT=function(t){return 0},t.prototype._T=function(t,e){var n=this;return Ae.Sn([function(){return Ae.resolve(n.oT.Ch(e))},function(){return n.persistence.Fo().Ch(t,e)},function(){return n.persistence.hT(t,e)}])},t}(),Di="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",Ni=function(){function t(){}return t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Wd=this.lT(t),this.persistence=this.dT(t),[4,this.persistence.start()];case 1:return n.sent(),this.fT=this.TT(t),this.M_=this.ET(t),this.Qd=this.wT(t),this.ul=this.IT(t),this.RT=this.AT(t),this.Wd.y_=function(t){return e.ul.Fd(t,1)},this.Qd.ul=this.ul,[4,this.M_.start()];case 2:return n.sent(),[4,this.Wd.start()];case 3:return n.sent(),[4,this.Qd.start()];case 4:return n.sent(),[4,this.Qd.pl(this.ul.sf)];case 5:return n.sent(),[2]}}))}))},t.prototype.AT=function(t){return new xi(this.ul)},t.prototype.TT=function(t){return null},t.prototype.ET=function(t){return new tr(this.persistence,new Pi,t.mT)},t.prototype.dT=function(t){if(t.VT.PT)throw new d(p.FAILED_PRECONDITION,Di);return new Ai(Ii.uT)},t.prototype.wT=function(t){var e=this;return new ii(this.M_,t.w_,t.Ra,(function(t){return e.ul.Fd(t,0)}),t.platform.gT())},t.prototype.lT=function(t){return new fi},t.prototype.IT=function(t){return new wi(this.M_,this.Qd,t.w_,this.Wd,t.mT,t.jd)},t.prototype.clearPersistence=function(t){throw new d(p.FAILED_PRECONDITION,Di)},t}(),Ri=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return r.sent(),[4,this.persistence.ro((function(t){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.ul.pl(t)];case 1:return e.sent(),this.fT&&(t&&!this.fT.ho?this.fT.start(this.M_):t||this.fT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},e.prototype.ET=function(t){return new er(this.persistence,new Pi,t.mT)},e.prototype.IT=function(t){var e=new Ci(this.M_,this.Qd,t.w_,this.Wd,t.mT,t.jd);return this.Wd instanceof di&&(this.Wd.ul=e),e},e.prototype.TT=function(t){return new Xn(this.persistence.hh.xo,t.Ra)},e.prototype.dT=function(t){var e=an.Mo(t.pT),n=t.platform.Cc(t.pT.ii);return new an(t.VT.synchronizeTabs,e,t.clientId,t.platform,Zn.nu(t.VT.cacheSizeBytes),t.Ra,n,this.Wd,t.VT.Bh)},e.prototype.lT=function(t){if(t.VT.PT&&t.VT.synchronizeTabs){if(!di.zh(t.platform))throw new d(p.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=an.Mo(t.pT);return new di(t.Ra,t.platform,e,t.clientId,t.mT)}return new fi},e.prototype.clearPersistence=function(t){var e=an.Mo(t);return an.clearPersistence(e)},e}(Ni),ji=function(){function t(t,e,n,r){this.platform=t,this.pT=e,this.credentials=n,this.Ra=r,this.clientId=we.cn()}return t.prototype.start=function(t,e){var n=this;this.yT();var r=new Fe,i=new Fe,o=!1;return this.credentials.l((function(s){if(!o)return o=!0,ge("FirestoreClient","Initializing. user=",s.uid),n.bT(t,e,s,i).then(r.resolve,r.reject);n.Ra.lo((function(){return n.gl(s)}))})),this.Ra.co((function(){return r.promise})),i.promise},t.prototype.enableNetwork=function(){var t=this;return this.yT(),this.Ra.enqueue((function(){return t.ul.enableNetwork()}))},t.prototype.bT=function(t,e,n,r){return i.__awaiter(this,void 0,void 0,(function(){var o,s,a,u,c=this;return i.__generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,this.platform.vT(this.pT)];case 1:return o=l.sent(),s=this.platform.Cc(this.pT.ii),a=function(t,e,n){return new ei(t,e,n)}(o,this.credentials,s),[4,t.initialize({Ra:this.Ra,pT:this.pT,platform:this.platform,w_:a,clientId:this.clientId,mT:n,jd:100,VT:e})];case 2:return l.sent(),this.persistence=t.persistence,this.Wd=t.Wd,this.M_=t.M_,this.Qd=t.Qd,this.ul=t.ul,this.fT=t.fT,this.ST=t.RT,this.persistence.oo((function(){return i.__awaiter(c,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}}))}))})),r.resolve(),[3,4];case 3:if(u=l.sent(),r.reject(u),!this.DT(u))throw u;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+u),this.bT(new Ni,{PT:!1},n,r))];case 4:return[2]}}
1))}))},t.prototype.DT=function(t){return"FirebaseError"===t.name?t.code===p.FAILED_PRECONDITION||t.code===p.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.yT=function(){if(this.Ra.ka)throw new d(p.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.gl=function(t){return this.Ra.Ua(),ge("FirestoreClient","Credential Changed. Current user: "+t.uid),this.ul.gl(t)},t.prototype.disableNetwork=function(){var t=this;return this.yT(),this.Ra.enqueue((function(){return t.ul.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.Ra.Ba((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.fT&&this.fT.stop(),[4,this.Qd.Vo()];case 1:return t.sent(),[4,this.Wd.Vo()];case 2:return t.sent(),[4,this.persistence.Vo()];case 3:return t.sent(),this.credentials.T(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.yT();var e=new Fe;
1return this.Ra.co((function(){return t.ul.ff(e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.yT();var i=new Ei(t,e,n);return this.Ra.co((function(){return r.ST.listen(i)})),i},t.prototype.ol=function(t){var e=this;this.CT||this.Ra.co((function(){return e.ST.ol(t)}))},t.prototype.FT=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return this.yT(),e=new Fe,[4,this.Ra.enqueue((function(){return i.__awaiter(n,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.M_.qu(t)];case 1:return(n=i.sent())instanceof vt?e.resolve(n):n instanceof _t?e.resolve(null):e.reject(new d(p.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return r=i.sent(),o=$n(r,"Failed to get document '"+t+" from cache"),e.reject(o),[3,3];case 3:return[2]}}
1))}))}))];case 1:return[2,(r.sent(),e.promise)]}}))}))},t.prototype.NT=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return this.yT(),e=new Fe,[4,this.Ra.enqueue((function(){return i.__awaiter(n,void 0,void 0,(function(){var n,r,o,s,a,u;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.M_.Wu(t,!0)];case 1:return n=i.sent(),r=new yi(t,n.ju),o=r.pd(n.documents),s=r.On(o,!1),e.resolve(s.snapshot),[3,3];case 2:return a=i.sent(),u=$n(a,"Failed to execute query '"+t+" against cache"),e.reject(u),[3,3];case 3:return[2]}}))}))}))];case 1:return[2,(r.sent(),e.promise)]}}))}))},t.prototype.write=function(t){var e=this;this.yT();var n=new Fe;return this.Ra.co((function(){return e.ul.write(t,n)})),n.promise},t.prototype.ii=function(){return this.pT.ii},t.prototype.Ff=function(t){var e=this;this.yT(),this.Ra.co((function(){return e.ST.Ff(t),Promise.resolve()}))},t.prototype.Nf=function(t){var e=this;this.CT||this.Ra.co((function(){return e.ST.Nf(t),Promise.resolve()}))},Object.defineProperty(t.prototype,"CT",{get:function(){return this.Ra.ka},enumerable:!0,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.yT();var n=new Fe;
1return this.Ra.co((function(){return e.ul.runTransaction(e.Ra,t,n),Promise.resolve()})),n.promise},t}(),Fi=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.$T(this.observer.next,t)},t.prototype.error=function(t){this.$T(this.observer.error,t)},t.prototype.kT=function(){this.muted=!0},t.prototype.$T=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function Li(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var Ui=function(){function t(t,e,n,r){this.ii=t,this.timestampsInSnapshots=e,this.MT=n,this.xT=r}return t.prototype.LT=function(t){switch(j(t)){case 0:return null;case 1:return t.booleanValue;case 2:return z(t.integerValue||t.doubleValue);case 3:return this.OT(t.timestampValue);case 4:return this.BT(t);case 5:return t.stringValue;case 6:return new Pr(H(t.bytesValue));case 7:return this.qT(t.referenceValue);case 8:return this.UT(t.geoPointValue);case 9:return this.QT(t.arrayValue);case 10:return this.WT(t.mapValue);default:throw ve()}},t.prototype.WT=function(t){var e=this,n={};return M(t.fields||{},(function(t,r){n[t]=e.LT(r)})),n},t.prototype.UT=function(t){return new Fr(z(t.latitude),z(t.longitude))},t.prototype.QT=function(t){var e=this;return(t.values||[]).map((function(t){return e.LT(t)}))},t.prototype.BT=function(t){switch(this.MT){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return D(n)?t(n):n}(t);return null==e?null:this.LT(e);case"estimate":return this.OT(N(t));default:return null}},t.prototype.OT=function(t){var e=q(t),n=new _(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.qT=function(t){var e=C.K(t);_e(he(e));var n=new Pe(e.get(1),e.get(3)),r=new E(e.k(5));return n.isEqual(this.ii)||me("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.ii.projectId+"/"+this.ii.database+") instead."),this.xT(r)},t}(),Vi=Zn.ou,Bi=function(){function t(t){var e,n,r,i;if(void 0===t.host){if(void 0!==t.ssl)throw new d(p.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else hr("settings","non-empty string","host",t.host),this.host=t.host,pr("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(_r("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","ignoreUndefinedProperties"]),pr("settings","object","credentials",t.credentials),this.credentials=t.credentials,pr("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),pr("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?me("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&me("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(r=t.ignoreUndefinedProperties)&&void 0!==r&&r,pr("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Zn.uu;else{if(t.cacheSizeBytes!==Vi&&t.cacheSizeBytes<Zn.au)throw new d(p.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Zn.au);this.cacheSizeBytes=t.cacheSizeBytes}pr("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=null!==(i=t.experimentalForceLongPolling)&&void 0!==i&&i}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.forceLongPolling===t.forceLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),qi=function(){function t(e,n,r){var o=this;if(void 0===r&&(r=new Ni),this.jT=null,this.KT=new Gn,this.INTERNAL={delete:function(){return i.__awaiter(o,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.GT(),[4,this.zT.terminate()];case 1:return t.sent(),[2]}}))}))}}
1,"object"==typeof e.options){var s=e;this.jT=s,this.mc=t.HT(s),this.YT=s.name,this.JT=new m(n)}else{var a=e;if(!a.projectId)throw new d(p.INVALID_ARGUMENT,"Must provide projectId");this.mc=new Pe(a.projectId,a.database),this.YT="[DEFAULT]",this.JT=new g}this.XT=r,this.ZT=new Bi({})}return Object.defineProperty(t.prototype,"tE",{get:function(){return this.eE||(this.eE=new Hr(this.mc,this.ZT.ignoreUndefinedProperties)),this.eE},enumerable:!0,configurable:!0}),t.prototype.settings=function(t){sr("Firestore.settings",arguments,1),cr("Firestore.settings","object",1,t);var e=new Bi(t);if(this.zT&&!this.ZT.isEqual(e))throw new d(p.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.ZT=e,void 0!==e.credentials&&(this.JT=function(t){if(!t)return new g;switch(t.type){case"gapi":var e=t.sE;return _e(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new v(e,t.V||"0");case"provider":return t.sE;default:throw new d(p.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.GT(),this.zT.enableNetwork()},t.prototype.disableNetwork=function(){return this.GT(),this.zT.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.zT)throw new d(p.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1,i=!1;if(t&&(void 0!==t.experimentalTabSynchronization&&me("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n,i=!!t.experimentalForceOwningTab&&t.experimentalForceOwningTab,r&&i))throw new d(p.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.iE(this.XT,{PT:!0,cacheSizeBytes:this.ZT.cacheSizeBytes,synchronizeTabs:r,Bh:i})},t.prototype.clearPersistence=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){if(void 0!==this.zT&&!this.zT.CT)throw new d(p.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return t=new Fe,[2,(this.KT.Ma((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=this.nE(),[4,this.XT.clearPersistence(e)];case 1:return r.sent(),t.resolve(),[3,3];case 2:return n=r.sent(),t.reject(n),[3,3];case 3:return[2]}}
1))}))})),t.promise)]}))}))},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"rE",{get:function(){return this.GT(),this.zT.CT},enumerable:!0,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.GT(),this.zT.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){return this.GT(),Li(t)?this.hE(t):(cr("Firestore.onSnapshotsInSync","function",1,t),this.hE({next:t}))},t.prototype.hE=function(t){var e=this,n=new Fi({next:function(){t.next&&t.next()},error:function(t){throw ve()}});return this.zT.Ff(n),function(){n.kT(),e.zT.Nf(n)}},t.prototype.GT=function(){return this.zT||this.iE(new Ni,{PT:!1}),this.zT},t.prototype.nE=function(){return new Ee(this.mc,this.YT,this.ZT.host,this.ZT.ssl,this.ZT.forceLongPolling)},t.prototype.iE=function(t,e){var n=this.nE();return this.zT=new ji(pe.nt(),n,this.JT,this.KT),this.zT.start(t,e)},t.HT=function(t){if(!Object.prototype.hasOwnProperty.call(t.options,"projectId"))throw new d(p.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e=t.options.projectId;if(!e||"string"!=typeof e)throw new d(p.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Pe(e)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.jT)throw new d(p.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.jT},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return sr("Firestore.collection",arguments,1),cr("Firestore.collection","non-empty string",1,t),this.GT(),new Zi(C.K(t),this)},t.prototype.doc=function(t){return sr("Firestore.doc",arguments,1),cr("Firestore.doc","non-empty string",1,t),this.GT(),Wi.oE(C.K(t),this)},t.prototype.collectionGroup=function(t){if(sr("Firestore.collectionGroup",arguments,1),cr("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new d(p.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.GT(),new Ki(new Ct(C.G,t),this)},t.prototype.runTransaction=function(t){var e=this;return sr("Firestore.runTransaction",arguments,1),cr("Firestore.runTransaction","function",1,t),this.GT().transaction((function(n){return t(new zi(e,n))}))},t.prototype.batch=function(){return this.GT(),new Hi(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(fe()){case s.LogLevel.DEBUG:return"debug";case s.LogLevel.ERROR:return"error";case s.LogLevel.SILENT:return"silent";case s.LogLevel.WARN:return"warn";case s.LogLevel.INFO:return"info";case s.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){sr("Firestore.setLogLevel",arguments,1),fr("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),de.setLogLevel(t)},t.prototype.aE=function(){return this.ZT.timestampsInSnapshots},t}(),zi=function(){function t(t,e){this.uE=t,this.cE=e}return t.prototype.get=function(t){var e=this;sr("Transaction.get",arguments,1);var n=eo("Transaction.get",t,this.uE);return this.cE.P_([n.Pc]).then((function(t){if(!t||1!==t.length)return ve();var r=t[0];if(r instanceof _t)return new $i(e.uE,n.Pc,null,!1,!1,n.Vc);if(r instanceof vt)return new $i(e.uE,n.Pc,r,!1,!1,n.Vc);throw ve()}))},t.prototype.set=function(t,e,n){ur("Transaction.set",arguments,2,3);var r=eo("Transaction.set",t,this.uE);n=Xi("Transaction.set",n);var i=ro(r.Vc,e,"Transaction.set"),o=i[0],s=i[1],a=n.merge||n.mergeFields?this.uE.tE.$c(s,o,n.mergeFields):this.uE.tE.Fc(s,o);return this.cE.set(r.Pc,a),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return"string"==typeof e||e instanceof Mr?(ar("Transaction.update",arguments,3),r=eo("Transaction.update",t,this.uE),i=this.uE.tE.Mc("Transaction.update",e,n,o)):(sr("Transaction.update",arguments,2),r=eo("Transaction.update",t,this.uE),i=this.uE.tE.kc("Transaction.update",e)),this.cE.update(r.Pc,i),this},t.prototype.delete=function(t){sr("Transaction.delete",arguments,1
1);var e=eo("Transaction.delete",t,this.uE);return this.cE.delete(e.Pc),this},t}(),Hi=function(){function t(t){this.uE=t,this._E=[],this.lE=!1}return t.prototype.set=function(t,e,n){ur("WriteBatch.set",arguments,2,3),this.dE();var r=eo("WriteBatch.set",t,this.uE);n=Xi("WriteBatch.set",n);var i=ro(r.Vc,e,"WriteBatch.set"),o=i[0],s=i[1],a=n.merge||n.mergeFields?this.uE.tE.$c(s,o,n.mergeFields):this.uE.tE.Fc(s,o);return this._E=this._E.concat(a.gc(r.Pc,ot.ft())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return this.dE(),"string"==typeof e||e instanceof Mr?(ar("WriteBatch.update",arguments,3),r=eo("WriteBatch.update",t,this.uE),i=this.uE.tE.Mc("WriteBatch.update",e,n,o)):(sr("WriteBatch.update",arguments,2),r=eo("WriteBatch.update",t,this.uE),i=this.uE.tE.kc("WriteBatch.update",e)),this._E=this._E.concat(i.gc(r.Pc,ot.exists(!0))),this},t.prototype.delete=function(t){sr("WriteBatch.delete",arguments,1),this.dE();var e=eo("WriteBatch.delete",t,this.uE);return this._E=this._E.concat(new lt(e.Pc,ot.ft())),this},t.prototype.commit=function(){return this.dE(),this.lE=!0,this._E.length>0?this.uE.GT().write(this._E):Promise.resolve()},t.prototype.dE=function(){if(this.lE)throw new d(p.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Wi=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.mc,e,r)||this).Pc=e,i.firestore=n,i.Vc=r,i.zT=i.firestore.GT(),i}return i.__extends(e,t),e.oE=function(t,n,r){if(t.length%2!=0)throw new d(p.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.j()+" has "+t.length);return new e(new E(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.Pc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Zi(this.Pc.path.M(),this.firestore,this.Vc)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Pc.path.j()},enumerable:!0,configurable:!0}),e.prototype.collection=function(t){if(sr("DocumentReference.collection",arguments,1),cr("DocumentReference.collection","non-empty string",1,t),!t)throw new d(p.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=C.K(t);return new Zi(this.Pc.path.child(e),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw br("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.Pc.isEqual(t.Pc)&&this.Vc===t.Vc},e.prototype.set=function(t,e){ur("DocumentReference.set",arguments,1,2),e=Xi("DocumentReference.set",e);var n=ro(this.Vc,t,"DocumentReference.set"),r=n[0],i=n[1],o=e.merge||e.mergeFields?this.firestore.tE.$c(i,r,e.mergeFields):this.firestore.tE.Fc(i,r);return this.zT.write(o.gc(this.Pc,ot.ft()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof Mr?(ar("DocumentReference.update",arguments,2),n=this.firestore.tE.Mc("DocumentReference.update",t,e,r)):(sr("DocumentReference.update",arguments,1),n=this.firestore.tE.kc("DocumentReference.update",t)),this.zT.write(n.gc(this.Pc,ot.exists(!0)))},e.prototype.delete=function(){return sr("DocumentReference.delete",arguments,0),this.zT.write([new lt(this.Pc,ot.ft())])},e.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];ur("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof t[i]||Li(t[i])||(_r("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Li(t[i])?n=t[i]:(cr("DocumentReference.onSnapshot","function",i,t[i]),lr("DocumentReference.onSnapshot","function",i+1,t[i+1]),lr("DocumentReference.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.fE(o,n)},e.prototype.fE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Fi({next:function(t){if(e.next){var r=t.docs.get(n.Pc);
1e.next(new $i(n.firestore,n.Pc,r,t.fromCache,t.hasPendingWrites,n.Vc))}},error:r}),o=this.zT.listen(Ct.Wt(this.Pc.path),i,t);return function(){i.kT(),n.zT.ol(o)}},e.prototype.get=function(t){var e=this;return ur("DocumentReference.get",arguments,0,1),to("DocumentReference.get",t),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.GT().FT(e.Pc).then((function(t){n(new $i(e.firestore,e.Pc,t,!0,t instanceof vt&&t.At,e.Vc))}),r):e.TE(n,r,t)}))},e.prototype.TE=function(t,e,n){var r=this.fE({includeMetadataChanges:!0,Bf:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?e(new d(p.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?e(new d(p.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):t(i)},error:e})},e.prototype.withConverter=function(t){return new e(this.Pc,this.firestore,t)},e}(Ur),Gi=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),$i=function(){function t(t,e,n,r,i,o){this.uE=t,this.Pc=e,this.EE=n,this.wE=r,this.IE=i,this.Vc=o}return t.prototype.data=function(t){var e=this;if(ur("DocumentSnapshot.data",arguments,0,1),t=Ji("DocumentSnapshot.data",t),this.EE){if(this.Vc){var n=new Qi(this.uE,this.Pc,this.EE,this.wE,this.IE);return this.Vc.fromFirestore(n,t)}return new Ui(this.uE.mc,this.uE.aE(),t.serverTimestamps||"none",(function(t){return new Wi(t,e.uE)})).LT(this.EE.Mt())}},t.prototype.get=function(t,e){var n=this;if(ur("DocumentSnapshot.get",arguments,1,2),e=Ji("DocumentSnapshot.get",e),this.EE){var r=this.EE.data().field(Kr("DocumentSnapshot.get",t));if(null!==r)return new Ui(this.uE.mc,this.uE.aE(),e.serverTimestamps||"none",(function(t){return new Wi(t,n.uE,n.Vc)})).LT(r)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.Pc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Wi(this.Pc,this.uE,this.Vc)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.EE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new Gi(this.IE,this.wE)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw br("isEqual","DocumentSnapshot",1,e);return this.uE===e.uE&&this.wE===e.wE&&this.Pc.isEqual(e.Pc)&&(null===this.EE?null===e.EE:this.EE.isEqual(e.EE))&&this.Vc===e.Vc},t}(),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}($i),Ki=function(){function t(t,e,n){this.RE=t,this.firestore=e,this.Vc=n}return t.prototype.where=function(e,n,r){sr("Query.where",arguments,3),vr("Query.where",3,r);var i,o=fr("Query.where",["<","<=","==",">=",">","array-contains","in","array-contains-any"],2,n),s=Kr("Query.where",e);if(s.Y()){if("array-contains"===o||"array-contains-any"===o)throw new d(p.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o){this.AE(r,o);for(var a=[],u=0,c=r;u<c.length;u++){var l=c[u];a.push(this.mE(l))}i={arrayValue:{values:a}}}else i=this.mE(r)}else"in"!==o&&"array-contains-any"!==o||this.AE(r,o),i=this.firestore.tE.xc("Query.where",r,"in"===o);var h=Ot.create(s,o,i);return this.PE(h),new t(this.RE.Gt(h),this.firestore,this.Vc)},t.prototype.orderBy=function(e,n){var r;if(ur("Query.orderBy",arguments,1,2),lr("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new d(p.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}if(null!==this.RE.startAt)throw new d(p.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.RE.endAt)throw new d(p.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Kr("Query.orderBy",e),o=new At(i,r);return this.VE(o),new t(this.RE.zt(o),this.firestore,this.Vc)},t.prototype.limit=function(e){return sr("Query.limit",arguments,1
1),cr("Query.limit","number",1,e),wr("Query.limit",1,e),new t(this.RE.Ht(e),this.firestore,this.Vc)},t.prototype.limitToLast=function(e){return sr("Query.limitToLast",arguments,1),cr("Query.limitToLast","number",1,e),wr("Query.limitToLast",1,e),new t(this.RE.Yt(e),this.firestore,this.Vc)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ar("Query.startAt",arguments,1);var i=this.gE("Query.startAt",e,n,!0);return new t(this.RE.Jt(i),this.firestore,this.Vc)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ar("Query.startAfter",arguments,1);var i=this.gE("Query.startAfter",e,n,!1);return new t(this.RE.Jt(i),this.firestore,this.Vc)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ar("Query.endBefore",arguments,1);var i=this.gE("Query.endBefore",e,n,!0);return new t(this.RE.Xt(i),this.firestore,this.Vc)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ar("Query.endAt",arguments,1);var i=this.gE("Query.endAt",e,n,!1);return new t(this.RE.Xt(i),this.firestore,this.Vc)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw br("isEqual","Query",1,e);return this.firestore===e.firestore&&this.RE.isEqual(e.RE)},t.prototype.withConverter=function(e){return new t(this.RE,this.firestore,e)},t.prototype.gE=function(t,e,n,r){if(vr(t,1,e),e instanceof $i){if(n.length>0)throw new d(p.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var i=e;if(!i.exists)throw new d(p.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+t+"().");return this.pE(i.EE,r)}var o=[e].concat(n);return this.yE(t,o,r)},t.prototype.pE=function(t,e){for(var n=[],r=0,i=this.RE.orderBy;r<i.length;r++){var o=i[r];if(o.field.Y())n.push(W(this.firestore.mc,t.key));else{var s=t.field(o.field);if(D(s))throw new d(p.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+o.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===s){var a=o.field.j();throw new d(p.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+a+"' (used as the orderBy) does not exist.")}n.push(s)}}return new Tt(n,e)},t.prototype.yE=function(t,e,n){var r=this.RE.Ot;if(e.length>r.length)throw new d(p.INVALID_ARGUMENT,"Too many arguments provided to "+t+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<e.length;o++){var s=e[o];if(r[o].field.Y()){if("string"!=typeof s)throw new d(p.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof s);if(!this.RE._e()&&-1!==s.indexOf("/"))throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+t+"() must be a plain document ID, but '"+s+"' contains a slash.");var a=this.RE.path.child(C.K(s));if(!E.et(a))throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+t+"() must result in a valid document path, but '"+a+"' is not because it contains an odd number of segments.");var u=new E(a);i.push(W(this.firestore.mc,u))}else{var c=this.firestore.tE.xc(t,s);i.push(c)}}return new Tt(i,n)},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];ur("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof t[i]||Li(t[i])||(_r("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Li(t[i])?n=t[i]:(cr("Query.onSnapshot","function",i,t[i]),lr("Query.onSnapshot","function",i+1,t[i+1]),lr("Query.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.bE(this.RE),this.fE(r,n)},t.prototype.fE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Fi({next:function(t){e.next&&e.next(new Yi(n.firestore,
1n.RE,t,n.Vc))},error:r}),o=this.firestore.GT(),s=o.listen(this.RE,i,t);return function(){i.kT(),o.ol(s)}},t.prototype.bE=function(t){if(t.ae()&&0===t.Ot.length)throw new d(p.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},t.prototype.get=function(t){var e=this;return ur("Query.get",arguments,0,1),to("Query.get",t),this.bE(this.RE),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.GT().NT(e.RE).then((function(t){n(new Yi(e.firestore,e.RE,t,e.Vc))}),r):e.TE(n,r,t)}))},t.prototype.TE=function(t,e,n){var r=this.fE({includeMetadataChanges:!0,Bf:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?e(new d(p.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):t(i)},error:e})},t.prototype.mE=function(t){if("string"==typeof t){if(""===t)throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.RE._e()&&-1!==t.indexOf("/"))throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+t+"' contains a '/' character.");var e=this.RE.path.child(C.K(t));if(!E.et(e))throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+e+"' is not because it has an odd number of segments ("+e.length+").");return W(this.firestore.mc,new E(e))}if(t instanceof Wi)return W(this.firestore.mc,t.Pc);throw new d(p.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+yr(t)+".")},t.prototype.AE=function(t,e){if(!Array.isArray(t)||0===t.length)throw new d(p.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new d(p.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new d(p.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new d(p.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.PE=function(t){if(t instanceof Ot){var e=["array-contains","array-contains-any"],n=["in","array-contains-any"],r=e.indexOf(t.op)>=0,i=n.indexOf(t.op)>=0;if(t.ue()){var o=this.RE.jt();if(null!==o&&!o.isEqual(t.field))throw new d(p.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+t.field.toString()+"'");var s=this.RE.Kt();null!==s&&this.vE(t.field,s)}else if(i||r){var a=null;if(i&&(a=this.RE.ce(n)),null===a&&r&&(a=this.RE.ce(e)),null!=a)throw new d(p.INVALID_ARGUMENT,a===t.op?"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter.":"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+a.toString()+"' filters.")}}},t.prototype.VE=function(t){if(null===this.RE.Kt()){var e=this.RE.jt();null!==e&&this.vE(e,t.field)}},t.prototype.vE=function(t,e){if(!e.isEqual(t))throw new d(p.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e.toString()+"' instead.")},t}(),Yi=function(){function t(t,e,n,r){this.uE=t,this.SE=e,this.DE=n,this.Vc=r,this.CE=null,this.FE=null,this.metadata=new Gi(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.DE.docs.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.DE.docs.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;
1ur("QuerySnapshot.forEach",arguments,1,2),cr("QuerySnapshot.forEach","function",1,t),this.DE.docs.forEach((function(r){t.call(e,n.NE(r))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Ki(this.SE,this.uE,this.Vc)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(_r("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),pr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.DE.hs)throw new d(p.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.CE&&this.FE===e||(this.CE=function(t,e,n,r){if(n.ss.B()){var i=0;return n.docChanges.map((function(e){return{type:"added",doc:new Qi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),oldIndex:-1,newIndex:i++}}))}var o=n.ss;return n.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var i=new Qi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),s=-1,a=-1;return 0!==e.type&&(s=o.indexOf(e.doc.key),o=o.delete(e.doc.key)),1!==e.type&&(a=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:no(e.type),doc:i,oldIndex:s,newIndex:a}}))}(this.uE,e,this.DE,this.Vc),this.FE=e),this.CE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw br("isEqual","QuerySnapshot",1,e);return this.uE===e.uE&&this.SE.isEqual(e.SE)&&this.DE.isEqual(e.DE)&&this.Vc===e.Vc},t.prototype.NE=function(t){return new Qi(this.uE,t.key,t,this.metadata.fromCache,this.DE.ns.has(t.key),this.Vc)},t}(),Zi=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Ct.Wt(e),n,r)||this).$E=e,e.length%2!=1)throw new d(p.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.j()+" has "+e.length);return i}return i.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.RE.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.RE.path.M();return t.B()?null:new Wi(new E(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.RE.path.j()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){ur("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=we.cn()),cr("CollectionReference.doc","non-empty string",1,t);var e=C.K(t);return Wi.oE(this.RE.path.child(e),this.firestore,this.Vc)},e.prototype.add=function(t){sr("CollectionReference.add",arguments,1),cr("CollectionReference.add","object",1,this.Vc?this.Vc.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.$E,this.firestore,t)},e}(Ki);function Xi(t,e){if(void 0===e)return{merge:!1};if(_r(t,e,["merge","mergeFields"]),pr(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+yr(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new d(p.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+yr(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof Mr}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new d(p.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Ji(t,e){return void 0===e?{}:(_r(t,e,["serverTimestamps"]),dr(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function to(t,e){lr(t,"object",1,e),e&&(_r(t,e,["source"]),dr(t,0,"source",e.source,["default","server","cache"]))}function eo(t,e,n){if(e instanceof Ur){if(e.firestore!==n)throw new d(p.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw br(t,"DocumentReference",1,e)}function no(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ve()}}function ro(t,e,n){var r;return t?(r=t.toFirestore(e),n="toFirestore() in "+n):r=e,[r,n]}function io(t,e){function n(){var t="This constructor is private.";throw e&&(t+=" ",t+=e),new d(p.INVALID_ARGUMENT,t)}return n.prototype=t.prototype,Object.assign(n,t),n}var oo=io(qi,"Use firebase.firestore() instead."),so=io(zi,"Use firebase.firestore().runTransaction() instead."),ao=io(Hi,"Use firebase.firestore().batch() instead."),uo=io(Wi,"Use firebase.firestore().doc() instead."),co=io($i),lo=io(Qi),ho=io(Ki),po=io(Yi),fo=io(Zi,"Use firebase.firestore().collection() instead."),go=io(Rr,"Use FieldValue.<field>() instead."),mo=io(Pr,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),yo={Firestore:oo,GeoPoint:Fr,Timestamp:_,Blob:mo,Transaction:so,WriteBatch:ao,DocumentReference:uo,DocumentSnapshot:co,Query:ho,QueryDocumentSnapshot:lo,QuerySnapsh
1ot:po,CollectionReference:fo,FieldPath:Mr,FieldValue:go,setLogLevel:qi.setLogLevel,CACHE_SIZE_UNLIMITED:Vi},vo=function(){function t(){}return t.prototype.U_=function(t){},t.prototype.Vo=function(){},t}(),_o=function(){function t(){var t=this;this.kE=function(){return t.ME()},this.xE=function(){return t.LE()},this.OE=[],this.BE()}return t.prototype.U_=function(t){this.OE.push(t)},t.prototype.Vo=function(){window.removeEventListener("online",this.kE),window.removeEventListener("offline",this.xE)},t.prototype.BE=function(){window.addEventListener("online",this.kE),window.addEventListener("offline",this.xE)},t.prototype.ME=function(){ge("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.OE;t<e.length;t++)(0,e[t])(0)},t.prototype.LE=function(){ge("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.OE;t<e.length;t++)(0,e[t])(1)},t.zh=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),bo=function(){function t(t){this.qE=t.qE,this.UE=t.UE}return t.prototype.i_=function(t){this.QE=t},t.prototype.Xc=function(t){this.WE=t},t.prototype.onMessage=function(t){this.jE=t},t.prototype.close=function(){this.UE()},t.prototype.send=function(t){this.qE(t)},t.prototype.KE=function(){this.QE()},t.prototype.GE=function(t){this.WE(t)},t.prototype.zE=function(t){this.jE(t)},t}(),wo={BatchGetDocuments:"batchGet",Commit:"commit"},Co="gl-js/ fire/"+l,Oo=function(){function t(t){this.ii=t.ii,this.HE=(t.ssl?"https":"http")+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.YE=function(t,e){if(e)for(var n in e.o)e.o.hasOwnProperty(n)&&(t[n]=e.o[n]);t["X-Goog-Api-Client"]=Co},t.prototype.T_=function(t,e,n){var r=this,i=this.JE(t);return new Promise((function(o,s){var a=new c.XhrIo;a.listenOnce(c.EventType.COMPLETE,(function(){try{switch(a.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var e=a.getResponseJson();ge("Connection","XHR received:",JSON.stringify(e)),o(e);break;case c.ErrorCode.TIMEOUT:ge("Connection",'RPC "'+t+'" timed out'),s(new d(p.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(ge("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(p).indexOf(e)>=0?e:p.UNKNOWN}(r.status);s(new d(i,r.message))}else s(new d(p.UNKNOWN,"Server responded with status "+a.getStatus()))}else ge("Connection",'RPC "'+t+'" failed'),s(new d(p.UNAVAILABLE,"Connection failed."));break;default:ve()}}finally{ge("Connection",'RPC "'+t+'" completed.')}}));var u=Object.assign({},e);delete u.database;var l=JSON.stringify(u);ge("Connection","XHR sending: ",i+" "+l);var h={"Content-Type":"text/plain"};r.YE(h,n),a.send(i,"POST",l,h,15)}))},t.prototype.E_=function(t,e,n){return this.T_(t,e,n)},t.prototype.n_=function(t,e){var n=[this.HE,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=c.createWebChannelTransport(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ii.projectId+"/databases/"+this.ii.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.YE(o.initMessageHeaders,e),a.isMobileCordova()||a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(o.httpHeadersOverwriteParam="$httpHeaders");var u=n.join("");ge("Connection","Creating WebChannel: "+u+" "+o);var h=r.createWebChannel(u,o),f=!1,g=!1,m=new bo({qE:function(t){g?ge("Connection","Not sending because WebChannel is closed:",t):(f||(ge("Connection","Opening WebChannel transport."),h.open(),f=!0),ge("Connection","WebChannel sending:",t),h.send(t))},UE:function(){return h.close()}}),y=function(t,e){h.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return y(c.WebChannel.EventType.OPEN,(function(){g||ge("Connection","WebChannel transport opened.")})),y(c.WebChannel.EventType.CLOSE,(function(){g||(g=!0,ge("Connection","WebChannel transport closed"),m.GE())}
1)),y(c.WebChannel.EventType.ERROR,(function(t){g||(g=!0,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(de.logLevel<=s.LogLevel.WARN){var r=e.map(ye);de.warn.apply(de,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}("Connection","WebChannel transport errored:",t),m.GE(new d(p.UNAVAILABLE,"The operation could not be completed")))})),y(c.WebChannel.EventType.MESSAGE,(function(t){var e;if(!g){var n=t.data[0];_e(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){ge("Connection","WebChannel received error:",r);var i=r.status,o=function(t){var e=gt[t];if(void 0!==e)return Nt(e)}(i),s=r.message;void 0===o&&(o=p.INTERNAL,s="Unknown error status: "+i+" with message "+r.message),g=!0,m.GE(new d(o,s)),h.close()}else ge("Connection","WebChannel received:",n),m.zE(n)}})),setTimeout((function(){m.KE()}),0),m},t.prototype.JE=function(t){return this.HE+"/v1/projects/"+this.ii.projectId+"/databases/"+this.ii.database+"/documents:"+wo[t]},t}();function xo(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){return new qi(t,e,new Ri)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},yo)))}(t),t.registerVersion("@firebase/firestore","1.15.0")}pe.an(new(function(){function t(){this.oc="undefined"!=typeof atob}return Object.defineProperty(t.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),t.prototype.vT=function(t){return Promise.resolve(new Oo(t))},t.prototype.gT=function(){return _o.zh()?new _o:new vo},t.prototype.Cc=function(t){return new le(t,{hi:!0})},t.prototype.un=function(t){return JSON.stringify(t)},t.prototype.atob=function(t){return atob(t)},t.prototype.btoa=function(t){return btoa(t)},t.prototype._n=function(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n},t}())),xo(o),e.__PRIVATE_registerFirestore=xo},"6sVZ":function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},"77Zs":function(t,e,n){var r=n("Xi7e");t.exports=function(){this.__data__=new r,this.size=0}},"7GkX":function(t,e,n){var r=n("b80T"),i=n("A90E"),o=n("MMmD");t.exports=function(t){return o(t)?r(t):i(t)}},"7Ix3":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"9rSQ":function(t,e,n){"use strict";var r=n("xTJ+");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},A90E:function(t,e,n){var r=n("6sVZ"),i=n("V6Ve"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},AP2z:function(t,e,n){var r=n("nmnc"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(u){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},B8du:function(t,e){t.exports=function(){return!1}},BkRI:function(t,e,n){var r=n("OBhP");t.exports=function(t){return r(t,5)}},CH3K:function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},CgaS:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("MLWZ"),o=n("9rSQ"),s=n("UnBK"),a=n("SntB");function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=u},Cwc5:function(t,e,n){var r=n("NKxu"),i=n("Npjl");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},DSRE:function(t,e,n){(function(t){var r=n("Kz5y"),i=n("B8du"),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||i}).call(this,n("YuTi")(t))},DfZB:function(t,e,n){"use strict";
1t.exports=function(t){return function(e){return t.apply(null,e)}}},DlQD:function(t,e,n){t.exports=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t){var n=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,n){if(t){if("string"==typeof t)return e(t,undefined);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,undefined):void 0}}(t)))return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var r=function(t,e){return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return u[t]},l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(l,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var p=/(^|[^\[])\^/g,d=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},m=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var o=t.charAt(r-i-1);if(o!==e||n){if(o===e||!n)break;i++}else i++}return t.substr(0,r-i)}var b=function(t,e){if(e){if(i.test(t))return t.replace(o,c)}else if(s.test(t))return t.replace(a,c);return t},w=h,C=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},O=r.defaults,x=_,E=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},P=b;function M(t,e,n){var r=e.href,i=e.title?P(e.title):null;return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:t[1]}:{type:"image",raw:n,text:P(t[1]),href:r,title:i}}var S=function(){function t(t){this.options=t||O}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:x(i,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=r.length?t.slice(r.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:E(e[1].replace(/^ *| *\| *$/g,"")),al
vendor: 25,553 bytes, line 1
1ign:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=E(n.cells[r],n.header.length);return n}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){for(var n,r,i,o,s,a,u,c=e[0],l=e[2],h=l.length>1,p={type:"list",raw:c,ordered:h,start:h?+l:"",loose:!1,items:[]},d=e[0].match(this.rules.block.item),f=!1,g=d.length,m=0;m<g;m++)c=n=d[m],r=n.length,~(n=n.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),m!==g-1&&(i=this.rules.block.bullet.exec(d[m+1])[0],(l.length>1?1===i.length:i.length>1||this.options.smartLists&&i!==l)&&(o=d.slice(m+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),m=g-1)),s=f||/\n\n(?!\s*$)/.test(n),m!==g-1&&(f="\n"===n.charAt(n.length-1),s||(s=f)),s&&(p.loose=!0),u=void 0,(a=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),p.items.push({type:"list_item",raw:c,task:a,checked:u,loose:s,text:n});return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:E(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=E(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:P(e[1])}},e.tag=function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):P(r[0]):r[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1}(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],o="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s?(i=s[1],o=s[3]):o=""}else o=e[3]?e[3].slice(1,-1):"";return M(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return M(n,r,n[0])}},e.strong=function(t){var e=this.rules.inline.strong.exec(t);if(e)return{type:"strong",raw:e[0],text:e[4]||e[3]||e[2]||e[1]}},e.em=function(t){var e=this.rules.inline.em.exec(t);if(e)return{type:"em",raw:e[0],text:e[6]||e[5]||e[4]||e[3]||e[2]||e[1]}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=P(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[1]}},e.autolink=function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=P(this.options.mangle?e(i[1]):i[1])):n=P(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,i;if("@"===n[2])i="mailto:"+(r=P(this.options.mangle?e(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=P(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):P(i[0]):i[0]:P(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),T={exec:function(){}},A=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(p,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},k=C,I={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};I.def=A(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}\.)/,I.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,I.item=A(I.item,"gm").replace(/bull/g,I.bullet).getRegex(),I.list=A(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?-->/,I.html=A(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=A(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.blockquote=A(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=k({},I),I.gfm=k({},I.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.nptable=A(I.gfm.nptable).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.gfm.table=A(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.pedantic=k({},I.normal,{html:A("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:T,paragraph:A(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var D={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\s,punctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\s,punctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~"};D.em=A(D.em).replace(/punctuation/g,D._punctuation).getRegex(),D._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,D._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,D._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,D.autolink=A(D.autolink).replace("scheme",D._scheme).replace("email",D._email).getRegex(),D._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,D.tag=A(D.tag).replace("comment",I._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=A(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=A(D.reflink).replace("label",D._label).getRegex(),D.normal=k({},D),D.pedantic=k({},D.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=k({},D.normal,{escape:A(D.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),D.gfm.url=A(D.gfm.url,"i").replace("email",D.gfm._extended_email).getRegex(),D.breaks=k({},D.gfm,{br:A(D.br).replace("{2,}","*").getRegex(),text:A(D.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var N={block:I,inline:D},R=r.defaults,j=N.block,F=N.inline;function L(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function U(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var V=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||R,this.options.tokenizer=this.options.tokenizer||new S,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:j.normal,inline:F.normal};this.options.pedantic?(e.block=j.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=j.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)};var n,r,i=e.prototype;return i.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(t,e,n){var r,i,o,s;for(void 0===e&&(e=[]),void 0===n&&(n=!0),t=t.replace(/^ +$/gm,"");t;)if(r=this.tokenizer.space(t))t=t.substring(r.raw.length),r.type&&e.push(r);else if(r=this.tokenizer.code(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((s=e[e.length-1]).raw+="\n"+r.raw,s.text+="\n"+r.text);else if(r=this.tokenizer.fences(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.heading(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.nptable(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.hr(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.blockquote(t))t=t.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),e.push(r);else if(r=this.tokenizer.list(t)){for(t=t.substring(r.raw.length),o=r.items.length,i=0;i<o;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);e.push(r)}else if(r=this.tokenizer.html(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.def(t)))t=t.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.lheading(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.paragraph(t)))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.text(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((s=e[e.length-1]).raw+="\n"+r.raw,s.text+="\n"+r.text);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return e},i.inline=function(t){var e,n,r,i,o,s,a=t.length;for(e=0;e<a;e++)switch((s=t[e]).type){case"paragraph":case"text":case"heading":s.tokens=[],this.inlineTokens(s.text,s.tokens);break;case"table":for(s.tokens={header:[],cells:[]},i=s.header.length,n=0;n<i;n++)s.tokens.header[n]=[],this.inlineTokens(s.header[n],s.tokens.header[n]);for(i=s.cells.length,n=0;n<i;n++)for(o=s.cells[n],s.tokens.cells[n]=[],r=0;r<o.length;r++)s.tokens.cells[n][r]=[],this.inlineTokens(o[r],s.tokens.cells[n][r]);break;case"blockquote":this.inline(s.tokens);break;case"list":for(i=s.items.length,n=0;n<i;n++)this.inline(s.items[n].tokens)}return t},i.inlineTokens=function(t,e,n,r){var i;for(void 0===e&&(e=[]),void 0===n&&(n=!1),void 0===r&&(r=!1);t;)if(i=this.tokenizer.escape(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.tag(t,n,r))t=t.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,e.push(i);else if(i=this.tokenizer.link(t))t=t.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),e.push(i);else if(i=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),e.push(i);else if(i=this.tokenizer.strong(t))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.em(t))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.codespan(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.br(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.del(t))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.autolink(t,U))t=t.substring(i.raw.length),e.push(i);else if(n||!(i=this.tokenizer.url(t,U))){if(i=this.tokenizer.inlineText(t,r,L))t=t.substring(i.raw.length),e.push(i);else if(t){var o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}}else t=t.substring(i.raw.length),e.push(i);return e},n=e,r=[{key:"rules",get:function(){return{block:j,inline:F}}}],null&&t(n.prototype,null),r&&t(n,r),e}(),B=r.defaults,q=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(d,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!f.test(n)&&(n=function(t,e){g[" "+t]||(g[" "+t]=m.test(t)?t+"/":_(t,"/",!0));var n=-1===(t=g[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(y,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(v,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},z=b,H=function(){function t(t){this.options=t||B}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+z(r,!0)+'">'+(n?t:z(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:z(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=q(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+z(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=q(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),W=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),G=function(){function t(){this.seen={}}return t.prototype.slug=function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var n=e;do{this.seen[n]++,e=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e},t}(),$=r.defaults,Q=w,K=function(){function t(t){this.options=t||$,this.options.renderer=this.options.renderer||new H,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new G}t.parse=function(e,n){return new t(n).parse(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,i,o,s,a,u,c,l,h,p,d,f,g,m,y,v,_,b="",w=t.length;for(n=0;n<w;n++)switch((h=t[n]).type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Q(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",u="",o=h.header.length,r=0;r<o;r++)u+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(c+=this.renderer.tablerow(u),l="",o=h.cells.length,r=0;r<o;r++){for(u="",s=(a=h.tokens.cells[r]).length,i=0;i<s;i++)u+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});l+=this.renderer.tablerow(u)}b+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(h.tokens),b+=this.renderer.blockquote(l);continue;case"list":for(p=h.ordered,d=h.start,f=h.loose,o=h.items.length,l="",r=0;r<o;r++)y=(m=h.items[r]).checked,v=m.task,g="",m.task&&(_=this.renderer.checkbox(y),f?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=_+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=_+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:_}):g+=_),g+=this.parse(m.tokens,f),l+=this.renderer.listitem(g,v,y);b+=this.renderer.list(l,p,d);continue;case"html":b+=this.renderer.html(h.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(l=h.tokens?this.parseInline(h.tokens):h.text;n+1<w&&"text"===t[n+1].type;)l+="\n"+((h=t[++n]).tokens?this.parseInline(h.tokens):h.text);b+=e?this.renderer.paragraph(l):l;continue;default:var C='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(C);throw new Error(C)}return b},e.parseInline=function(t,e){e=e||this.renderer;var n,r,i="",o=t.length;for(n=0;n<o;n++)switch((r=t[n]).type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return i},t}(),Y=C,Z=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},X=b,J=r.getDefaults,tt=r.changeDefaults,et=r.defaults;function nt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=Y({},nt.defaults,e||{}),Z(e),n){var r,i=e.highlight;try{r=V.lex(t,e)}catch(u){return n(u)}var o=function(t){var o;if(!t)try{o=K.parse(r,e)}catch(u){t=u}return e.highlight=i,t?n(t):n(null,o)};if(!i||i.length<3)return o();if(delete e.highlight,!r.length)return o();var s=0;return nt.walkTokens(r,(function(t){"code"===t.type&&(s++,i(t.text,t.lang,(function(e,n){if(e)return o(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--s&&o()})))})),void(0===s&&o())}try{var a=V.lex(t,e);
1return e.walkTokens&&nt.walkTokens(a,e.walkTokens),K.parse(a,e)}catch(u){if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+X(u.message+"",!0)+"</pre>";throw u}}return nt.options=nt.setOptions=function(t){return Y(nt.defaults,t),tt(nt.defaults),nt},nt.getDefaults=J,nt.defaults=et,nt.use=function(t){var e=Y({},t);if(t.renderer&&function(){var n=nt.defaults.renderer||new H,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=t.renderer[e].apply(n,o);return!1===a&&(a=r.apply(n,o)),a}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=nt.defaults.tokenizer||new S,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=t.tokenizer[e].apply(n,o);return!1===a&&(a=r.apply(n,o)),a}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=nt.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}nt.setOptions(e)},nt.walkTokens=function(t,e){for(var r,i=n(t);!(r=i()).done;){var o=r.value;switch(e(o),o.type){case"table":for(var s,a=n(o.tokens.header);!(s=a()).done;)nt.walkTokens(s.value,e);for(var u,c=n(o.tokens.cells);!(u=c()).done;)for(var l,h=n(u.value);!(l=h()).done;)nt.walkTokens(l.value,e);break;case"list":nt.walkTokens(o.items,e);break;default:o.tokens&&nt.walkTokens(o.tokens,e)}}},nt.Parser=K,nt.parser=K.parse,nt.Renderer=H,nt.TextRenderer=W,nt.Lexer=V,nt.lexer=V.lex,nt.Tokenizer=S,nt.Slugger=G,nt.parse=nt,nt}()},"Dw+G":function(t,e,n){var r=n("juv8"),i=n("mTTR");t.exports=function(t,e){return t&&r(e,i(e),t)}},E2jh:function(t,e,n){var r,i=n("2gN3"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},EEGq:function(t,e,n){var r=n("juv8"),i=n("oCl/");t.exports=function(t,e){return r(t,i(t),e)}},EpBk:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},G6z8:function(t,e,n){var r=n("fR/l"),i=n("oCl/"),o=n("mTTR");t.exports=function(t){return r(t,o,i)}},Gi0A:function(t,e,n){var r=n("QqLw"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},H8j4:function(t,e,n){var r=n("QkVE");t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},HOxn:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Promise");t.exports=r},HSsa:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},Hvzi:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},JEQr:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("yK9s"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a=function(){var t;return{adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(t=n("tQ2B")),t),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}}}();r.forEach(["delete","get","head"],(function(t){a.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){a.headers[t]=r.merge(o)})),t.exports=a},JHRd:function(t,e,n){var r=n("Kz5y");t.exports=r.Uint8Array},JHgL:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).get(t)}},JSQU:function(t,e,n){var r=n("YESw");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},JTzB:function(t,e,n){var r=n("NykK"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},KMkd:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},Kz5y:function(t,e,n){var r=n("WFqU"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},L8xA:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},LXxW:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},LYNF:function(t,e,n){"use strict";var r=n("OH9c");t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},LcsW:function(t,e,n){var r=n("kekF")(Object.getPrototypeOf,Object);t.exports=r},Lmem:function(t,e,n){"use strict";
1t.exports=function(t){return!(!t||!t.__CANCEL__)}},MLWZ:function(t,e,n){"use strict";var r=n("xTJ+");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},MMmD:function(t,e,n){var r=n("lSCD"),i=n("shjB");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},MrPd:function(t,e,n){var r=n("hypo"),i=n("ljhN"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},MvSz:function(t,e,n){var r=n("LXxW"),i=n("0ycA"),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i},NKxu:function(t,e,n){var r=n("lSCD"),i=n("E2jh"),o=n("GoyQ"),s=n("3Fdi"),a=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?u:a).test(s(t))}},Npjl:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},NykK:function(t,e,n){var r=n("nmnc"),i=n("AP2z"),o=n("KfNM"),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},O0oS:function(t,e,n){var r=n("Cwc5"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},OBhP:function(t,e,n){var r=n("fmRc"),i=n("gFfm"),o=n("MrPd"),s=n("WwFo"),a=n("Dw+G"),u=n("5Tg0"),c=n("Q1l4"),l=n("VOtZ"),h=n("EEGq"),p=n("qZTm"),d=n("G6z8"),f=n("QqLw"),g=n("yHx3"),m=n("wrZu"),y=n("+iFO"),v=n("Z0cm"),_=n("DSRE"),b=n("zEVN"),w=n("GoyQ"),C=n("1+5i"),O=n("7GkX"),x=n("mTTR"),E={};E["[object Arguments]"]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E["[object Object]"]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E["[object Function]"]=E["[object WeakMap]"]=!1,t.exports=function t(e,n,P,M,S,T){var A,k=1&n,I=2&n,D=4&n;if(P&&(A=S?P(e,M,S,T):P(e)),void 0!==A)return A;if(!w(e))return e;var N=v(e);if(N){if(A=g(e),!k)return c(e,A)}else{var R=f(e),j="[object Function]"==R||"[object GeneratorFunction]"==R;if(_(e))return u(e,k);if("[object Object]"==R||"[object Arguments]"==R||j&&!S){if(A=I||j?{}:y(e),!k)return I?h(e,a(A,e)):l(e,s(A,e))}else{if(!E[R])return S?e:{};A=m(e,R,k)}}T||(T=new r);var F=T.get(e);if(F)return F;T.set(e,A),C(e)?e.forEach((function(r){A.add(t(r,n,P,r,e,T))})):b(e)&&e.forEach((function(r,i){A.set(i,t(r,n,P,i,e,T))}));var L=N?void 0:(D?I?d:p:I?x:O)(e);return i(L||e,(function(r,i){L&&(r=e[i=r]),o(A,i,t(r,n,P,i,e,T))})),A}},OH9c:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}}
1,OTTw:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"Of+w":function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"WeakMap");t.exports=r},Q1l4:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},QSc6:function(t,e,n){"use strict";var r=n("0jNN"),i=n("sxOR"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Date.prototype.toISOString,a={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,n,i,o,s,u,c,l,h,p,d,f){var g=e;if("function"==typeof c)g=c(n,g);else if(g instanceof Date)g=p(g);else if(null===g){if(o)return u&&!f?u(n,a.encoder):n;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||r.isBuffer(g))return u?[d(f?n:u(n,a.encoder))+"="+d(u(g,a.encoder))]:[d(n)+"="+d(String(g))];var m,y=[];if(void 0===g)return y;if(Array.isArray(c))m=c;else{var v=Object.keys(g);m=l?v.sort(l):v}for(var _=0;_<m.length;++_){var b=m[_];s&&null===g[b]||(y=Array.isArray(g)?y.concat(t(g[b],i(n,b),i,o,s,u,c,l,h,p,d,f)):y.concat(t(g[b],n+(h?"."+b:"["+b+"]"),i,o,s,u,c,l,h,p,d,f)))}return y};t.exports=function(t,e){var n=t,s=e?r.assign({},e):{};if(null!=s.encoder&&"function"!=typeof s.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===s.delimiter?a.delimiter:s.delimiter,l="boolean"==typeof s.strictNullHandling?s.strictNullHandling:a.strictNullHandling,h="boolean"==typeof s.skipNulls?s.skipNulls:a.skipNulls,p="boolean"==typeof s.encode?s.encode:a.encode,d="function"==typeof s.encoder?s.encoder:a.encoder,f="function"==typeof s.sort?s.sort:null,g=void 0!==s.allowDots&&s.allowDots,m="function"==typeof s.serializeDate?s.serializeDate:a.serializeDate,y="boolean"==typeof s.encodeValuesOnly?s.encodeValuesOnly:a.encodeValuesOnly;if(void 0===s.format)s.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,s.format))throw new TypeError("Unknown format option provided.");var v,_,b=i.formatters[s.format];"function"==typeof s.filter?n=(_=s.filter)("",n):Array.isArray(s.filter)&&(v=_=s.filter);var w=[];if("object"!=typeof n||null===n)return"";var C=o[s.arrayFormat in o?s.arrayFormat:"indices"in s?s.indices?"indices":"repeat":"indices"];v||(v=Object.keys(n)),f&&v.sort(f);for(var O=0;O<v.length;++O){var x=v[O];h&&null===n[x]||(w=w.concat(u(n[x],x,C,l,h,p?d:null,_,f,g,m,b,y)))}var E=w.join(c);return E.length>0?(!0===s.addQueryPrefix?"?":"")+E:""}},QcOe:function(t,e,n){var r=n("GoyQ"),i=n("6sVZ"),o=n("7Ix3"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},QkVE:function(t,e,n){var r=n("EpBk");t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},QqLw:function(t,e,n){var r=n("tadb"),i=n("ebwN"),o=n("HOxn"),s=n("yGk4"),a=n("Of+w"),u=n("NykK"),c=n("3Fdi"),l=c(r),h=c(i),p=c(o),d=c(s),f=c(a),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case h:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=g},Qyje:function(t,e,n){"use strict";var r=n("QSc6"),i=n("nmq7"),o=n("sxOR");t.exports={formats:o,parse:i,stringify:r}},"Rn+g":function(t,e,n){"use strict";var r=n("LYNF");t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},"S+S0":function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var r=n("os0x"),i=n("zVF4"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.optional,i=this.normalizeInstanceIdentifier(e.identifier);try{var o=this.getOrInitializeService(i);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;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,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(l){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=r.__read(o.value,2),a=s[1],u=this.normalizeInstanceIdentifier(s[0]);try{var c=this.getOrInitializeService(u);a.resolve(c)}catch(l){}}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}(),a=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=a,e.Provider=s},SfRM:function(t,e,n){var r=n("YESw");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},SntB:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):void 0!==e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])})),r.forEach(s,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var a=i.concat(o).concat(s),u=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return r.forEach(u,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},"UNi/":function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},UnBK:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("xAGQ"),o=n("Lmem"),s=n("JEQr");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},V6Ve:function(t,e,n){var r=n("kekF")(Object.keys,Object);t.exports=r},VOtZ:function(t,e,n){var r=n("juv8"),i=n("MvSz");t.exports=function(t,e){return r(t,i(t),e)}},VaNO:function(t,e){t.exports=function(t){return this.__data__.has(t)}},WFqU:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},Wcq6:function(t,e,n){"use strict";var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r;
1i.registerVersion("firebase","7.15.0","app"),t.exports=i},WwFo:function(t,e,n){var r=n("juv8"),i=n("7GkX");t.exports=function(t,e){return t&&r(e,i(e),t)}},XYm9:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},Xi7e:function(t,e,n){var r=n("KMkd"),i=n("adU4"),o=n("tMB7"),s=n("+6XX"),a=n("Z8oC");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},YESw:function(t,e,n){var r=n("Cwc5")(Object,"create");t.exports=r},YO3V:function(t,e,n){var r=n("NykK"),i=n("LcsW"),o=n("ExA7"),s=Function.prototype.toString,a=Object.prototype.hasOwnProperty,u=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Z0cm:function(t,e){t.exports=Array.isArray},Z8oC:function(t,e,n){var r=n("y1pI");t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},adU4:function(t,e,n){var r=n("y1pI"),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},b2z7:function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},b80T:function(t,e,n){var r=n("UNi/"),i=n("03A+"),o=n("Z0cm"),s=n("DSRE"),a=n("wJg7"),u=n("c6wG"),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),p=!n&&!l&&!h&&u(t),d=n||l||h||p,f=d?r(t.length,String):[],g=f.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},c6wG:function(t,e,n){var r=n("dD9F"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},dD9F:function(t,e,n){var r=n("NykK"),i=n("shjB"),o=n("ExA7"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},dTAl:function(t,e,n){var r=n("GoyQ"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},e4Nc:function(t,e,n){var r=n("fGT3"),i=n("k+1r"),o=n("JHgL"),s=n("pSRY"),a=n("H8j4");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},ebwN:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Map");t.exports=r},ekgI:function(t,e,n){var r=n("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},endd:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},eqyj:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},fGT3:function(t,e,n){var r=n("4kuk"),i=n("Xi7e"),o=n("ebwN");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},"fR/l":function(t,e,n){var r=n("CH3K"),i=n("Z0cm");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},fmRc:function(t,e,n){var r=n("Xi7e"),i=n("77Zs"),o=n("L8xA"),s=n("gCq4"),a=n("VaNO"),u=n("0Cz8");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},g7np:function(t,e,n){"use strict";var r=n("2SVd"),i=n("5oMp");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},gCq4:function(t,e){t.exports=function(t){return this.__data__.get(t)}},gFfm:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},hypo:function(t,e,n){var r=n("O0oS");t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},"jfS+":function(t,e,n){"use strict";var r=n("endd");function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},juv8:function(t,e,n){var r=n("MrPd"),i=n("hypo");t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},"k+1r":function(t,e,n){var r=n("QkVE");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},kekF:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},lSCD:function(t,e,n){var r=n("NykK"),i=n("GoyQ");t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},ljhN:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},mTTR:function(t,e,n){var r=n("b80T"),i=n("QcOe"),o=n("MMmD");t.exports=function(t){return o(t)?r(t,!0):i(t)}},mdPL:function(t,e,n){(function(t){var r=n("WFqU"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").t
1ypes||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n("YuTi")(t))},nmnc:function(t,e,n){var r=n("Kz5y");t.exports=r.Symbol},nmq7:function(t,e,n){"use strict";var r=n("0jNN"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,u=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;u.push(a)}for(var c=0;null!==(s=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+r.slice(s.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,s=t[i];if("[]"===s)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[a]=r}r=o}return r}(u,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!=n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null==t)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof t?function(t,e){for(var n={},r=(e.ignoreQueryPrefix?t.replace(/^\?/,""):t).split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),s=0;s<r.length;++s){var a,u,c=r[s],l=c.indexOf("]="),h=-1===l?c.indexOf("="):l+1;-1===h?(a=e.decoder(c,o.decoder),u=e.strictNullHandling?null:""):(a=e.decoder(c.slice(0,h),o.decoder),u=e.decoder(c.slice(h+1),o.decoder)),n[a]=i.call(n,a)?[].concat(n[a]).concat(u):u}return n}(t,n):t,u=n.plainObjects?Object.create(null):{},c=Object.keys(a),l=0;l<c.length;++l){var h=c[l],p=s(h,a[h],n);u=r.merge(u,p,n)}return r.compact(u)}},"oCl/":function(t,e,n){var r=n("CH3K"),i=n("LcsW"),o=n("MvSz"),s=n("0ycA");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s},os0x:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return f})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return v})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
vendor: 5,778 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return O})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return E}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function p(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"otv/":function(t,e,n){var r=n("nmnc"),i=r?r.prototype:void 0,o=i?i.valueOf
1:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},pSRY:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).has(t)}},"q/0M":function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var i;n.r(e),n.d(e,"LogLevel",(function(){return s})),n.d(e,"Logger",(function(){return h})),n.d(e,"setLogLevel",(function(){return p})),n.d(e,"setUserLogHandler",(function(){return d}));var o=[],s=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}({}),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},u=s.INFO,c=((i={})[s.DEBUG]="log",i[s.VERBOSE]="log",i[s.INFO]="info",i[s.WARN]="warn",i[s.ERROR]="error",i),l=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),s=c[e];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[s].apply(console,r(["["+o+"] "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in s))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!0,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!0,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.DEBUG],t)),this._logHandler.apply(this,r([this,s.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.VERBOSE],t)),this._logHandler.apply(this,r([this,s.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.INFO],t)),this._logHandler.apply(this,r([this,s.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.WARN],t)),this._logHandler.apply(this,r([this,s.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.ERROR],t)),this._logHandler.apply(this,r([this,s.ERROR],t))},t}();function p(t){o.forEach((function(e){e.setLogLevel(t)}))}function d(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a=i.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!=r?r:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:i,type:e.name})}},r=0,i=o;r<i.length;r++)n(i[r])}},qZTm:function(t,e,n){var r=n("fR/l"),i=n("MvSz"),o=n("7GkX");t.exports=function(t){return r(t,o,i)}},sEf8:function(t,e){t.exports=function(t){return function(e){return t(e)}}},shjB:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},sxOR:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,i,"+")}
1,RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},tMB7:function(t,e,n){var r=n("y1pI");t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},tQ2B:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("Rn+g"),o=n("MLWZ"),s=n("g7np"),a=n("w0Vi"),u=n("OTTw"),c=n("LYNF");t.exports=function(t){return new Promise((function(e,l){var h=t.data,p=t.headers;r.isFormData(h)&&delete p["Content-Type"];var d=new XMLHttpRequest;t.auth&&(p.Authorization="Basic "+btoa((t.auth.username||"")+":"+(t.auth.password||"")));var f=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null;i(e,l,{data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d}),d=null}},d.onabort=function(){d&&(l(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(c(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n("eqyj"),m=(t.withCredentials||u(f))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;m&&(p[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(p,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)}
1)),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),l(t),d=null)})),void 0===h&&(h=null),d.send(h)}))}},tadb:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"DataView");t.exports=r},u8Dt:function(t,e,n){var r=n("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},vDqi:function(t,e,n){t.exports=n("zuR4")},"w/wX":function(t,e,n){var r=n("QqLw"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},w0Vi:function(t,e,n){"use strict";var r=n("xTJ+"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},wJg7:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},wj3C:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n("os0x"),s=n("zVF4"),a=n("S+S0"),u=n("q/0M"),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new s.ErrorFactory("app","Firebase",c),h=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),p=new u.Logger("@firebase/app"),d=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=s.deepCopy(t),this.container=new a.ComponentContainer(e.name),this._addComponent(new a.Component("app",(function(){return u}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next())this._addComponent(l.value)}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),t.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(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){p.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();d.prototype.name&&d.prototype.options||d.prototype.delete||console.log("dc");var f=function t(){var e=function(t){var e={}
1,n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var o=i;void 0===o.name&&(o.name="[DEFAULT]");var a=o.name;if("string"!=typeof a||!a)throw l.create("bad-app-name",{appName:String(a)});if(s.contains(e,a))throw l.create("duplicate-app",{appName:a});var u=new t(n,o,r);return e[a]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=h[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&s&&u.push("and"),s&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void p.warn(u.join(" "))}c(new a.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.15.0",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function i(t){if(!s.contains(e,t=t||"[DEFAULT]"))throw l.create("no-app",{appName:t});return e[t]}function c(a){var u,c,h=a.name;if(n.has(h))return p.debug("There were multiple attempts to register component "+h+"."),"PUBLIC"===a.type?r[h]:null;if(n.set(h,a),"PUBLIC"===a.type){var d=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[h])throw l.create("invalid-app-argument",{appName:h});return t[h]()};void 0!==a.serviceProps&&s.deepExtend(d,a.serviceProps),r[h]=d,t.prototype[h]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,h).apply(this,a.multipleInstances?t:[])}}try{for(var f=o.__values(Object.keys(e)),g=f.next();!g.done;g=f.next())e[g.value]._addComponent(a)}catch(m){u={error:m}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return"PUBLIC"===a.type?r[h]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(d);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){s.deepExtend(e,t)},createSubscribe:s.createSubscribe,ErrorFactory:s.ErrorFactory,deepExtend:s.deepExtend}),e}(),g=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(s.isBrowser()&&void 0!==self.firebase){p.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&p.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var y=f.initializeApp;f.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.isNode()&&p.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),y.apply(void 0,t)};var v=f;!function(t,e){t.INTERNAL.registerComponent(new a.Component("platform-logger",(function(t){return new g(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.5",void 0),t.registerVersion("fire-js","")}(v),e.default=v,e.firebase=v},wrZu:function(t,e,n){var r=n("+K+b"),i=n("XYm9"),o=n("b2z7"),s=n("otv/"),a=n("yP5f");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return s(t)}}},x7I3:function(t,e,n){"use strict";function r(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}n.r(e),n.d(e,"ErrorCode",(function(){return Qn})),n.d(e,"EventType",(function(){return Kn})),n.d(e,"WebChannel",(function(){return Yn})),n.d(e,"XhrIo",(function(){return Zn})),n.d(e,"createWebChannelTransport",(function(){return $n}));var i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=s||{},a=o||self;function u(){}function c(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function l(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var p="closure_uid_"+(1e9*Math.random()>>>0),d=0;function f(t,e,n){return t.call.apply(t.bind,arguments)}function g(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function m(t,e,n){return(m=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?f:g).apply(null,arguments)}function y(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var v=Date.now||function(){return+new Date};function _(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t}function b(){this.j=this.j,this.i=this.i}b.prototype.j=!1,b.prototype.da=function(){!this.j&&(this.j=!0,this.C(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,p)&&t[p]||(t[p]=++d)}(this)},b.prototype.C=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var w=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},C=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"==typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function O(t){return Array.prototype.concat.apply([],arguments)}function x(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function E(t){return/^[\s\xa0]*$/.test(t)}var P,M=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function S(t,e){return-1!=t.indexOf(e)}function T(t,e){return t<e?-1:t>e?1:0}t:{var A=a.navigator;if(A){var k=A.userAgent;if(k){P=k;break t}}P=""}function I(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function D(t){var e={};for(var n in t)e[n]=t[n];return e}var N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function R(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<N.length;o++)n=N[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function j(t){return j[" "](t),t}j[" "]=u;var F,L,U=S(P,"Opera"),V=S(P,"Trident")||S(P,"MSIE"),B=S(P,"Edge"),q=B||V,z=S(P,"Gecko")&&!(S(P.toLowerCase(),"webkit")&&!S(P,"Edge"))&&!(S(P,"Trident")||S(P,"MSIE"))&&!S(P,"Edge"),H=S(P.toLowerCase(),"webkit")&&!S(P,"Edge");function W(){var t=a.document;return t?t.documentMode:void 0}t:{var G="",$=(L=P,z?/rv:([^\);]+)(\)|;)/.exec(L):B?/Edge\/([\d\.]+)/.exec(L):V?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(L):H?/WebKit\/(\S+)/.exec(L):U?/(?:Version)[ \/]?(\S+)/.exec(L):void 0);if($&&(G=$?$[1]:""),V){var Q=W();if(null!=Q&&Q>parseFloat(G)){F=String(Q);break t}}F=G}var K={};function Y(t){return function(t,e){var n=K;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=M(String(F)).split("."),r=M(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var s=n[o]||"",a=r[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=T(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||T(0==s[2].length,0==a[2].length)||T(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e}))}var Z=a.document&&V&&(W()||parseInt(F,10))||void 0,X=!V||9<=Number(Z),J=V&&!Y("9"),tt=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",u,e),a.removeEventListener("test",u,e)}catch(n){}return t}();function et(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function nt(t,e){if(et.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(z){t:{try{j(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:rt[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}et.prototype.b=function(){this.defaultPrevented=!0},_(nt,et);var rt={2:"touch",3:"pen",4:"mouse"};nt.prototype.b=function(){nt.M.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,J)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var it="closure_listenable_"+(1e6*Math.random()|0),ot=0;function st(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.aa=i,this.key=++ot,this.V=this.X=!1}function at(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ut(t){this.src=t,this.a={},this.b=0}function ct(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=w(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(at(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function lt(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.V&&o.listener==e&&o.capture==!!n&&o.aa==r)return i}return-1}ut.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=lt(t,e,r,i);return-1<s?(e=t[s],n||(e.X=!1)):((e=new st(e,this.src,o,!!r,i)).X=n,t.pu
1sh(e)),e};var ht="closure_lm_"+(1e6*Math.random()|0),pt={};function dt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(Array.isArray(n)){for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);return null}return r=wt(r),e&&e[it]?e.sa(n,r,h(i)?!!i.capture:!!i,o):ft(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)dt(t,e[o],n,r,i);return null}return n=wt(n),t&&t[it]?t.ra(e,n,h(r)?!!r.capture:!!r,i):ft(t,e,n,!1,r,i)}function ft(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=h(i)?!!i.capture:!!i;if(s&&!X)return null;var a=_t(t);if(a||(t[ht]=a=new ut(t)),(n=a.add(e,n,r,s,o)).proxy)return n;if(r=function(){var t=vt,e=X?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)tt||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(mt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function gt(t){if("number"!=typeof t&&t&&!t.V){var e=t.src;if(e&&e[it])ct(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(mt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=_t(e))?(ct(n,t),0==n.b&&(n.src=null,e[ht]=null)):at(t)}}}function mt(t){return t in pt?pt[t]:pt[t]="on"+t}function yt(t,e){var n=t.listener,r=t.aa||t.src;return t.X&>(t),n.call(r,e)}function vt(t,e){if(t.V)return!0;if(!X){if(!e)t:{e=["window","event"];for(var n=a,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return yt(t,e=new nt(e,this))}return yt(t,new nt(e,this))}function _t(t){return(t=t[ht])instanceof ut?t:null}var bt="__closure_events_fn_"+(1e9*Math.random()>>>0);function wt(t){return"function"==c(t)?t:(t[bt]||(t[bt]=function(e){return t.handleEvent(e)}),t[bt])}function Ct(){b.call(this),this.c=new ut(this),this.J=this,this.A=null}function Ot(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.V&&s.capture==n){var a=s.listener,u=s.aa||s.src;s.X&&ct(t.c,s),i=!1!==a.call(u,r)&&i}}return i&&!r.defaultPrevented}_(Ct,b),Ct.prototype[it]=!0,(i=Ct.prototype).addEventListener=function(t,e,n,r){dt(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,o){if(Array.isArray(n))for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);else i=h(i)?!!i.capture:!!i,r=wt(r),e&&e[it]?(e=e.c,(n=String(n).toString())in e.a&&-1<(r=lt(s=e.a[n],r,i,o))&&(at(s[r]),Array.prototype.splice.call(s,r,1),0==s.length&&(delete e.a[n],e.b--))):e&&(e=_t(e))&&(n=e.a[n.toString()],e=-1,n&&(e=lt(n,r,i,o)),(r=-1<e?n[e]:null)&>(r))}(this,t,e,n,r)},i.dispatchEvent=function(t){var e,n=this.A;if(n)for(e=[];n;n=n.A)e.push(n);n=this.J;var r=t.type||t;if("string"==typeof t)t=new et(t,n);else if(t instanceof et)t.target=t.target||n;else{var i=t;R(t=new et(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var s=t.a=e[o];i=Ot(s,r,!0,t)&&i}if(i=Ot(s=t.a=n,r,!0,t)&&i,i=Ot(s,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=Ot(s=t.a=e[o],r,!1,t)&&i;return i},i.C=function(){if(Ct.M.C.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)at(n[r]);delete e.a[t],e.b--}}this.A=null},i.ra=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},i.sa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var xt=a.JSON.stringify;function Et(){this.b=this.a=null}var Pt,Mt=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,this.a=(t=this.a).next,t.next=null):t=this.c(),t},t}())((function(){return new Tt}),(function(t){t.reset()}),100);function St(){var t=Dt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Tt(){this.next=this.b=this.a=null}function At(t){a.setTimeout((function(){throw t}),0)}function kt(t,e){Pt||function(){var t=a.Promise.resolve(void 0);Pt=function(){t.then(Nt)}}(),It||(Pt(),It=!0),Dt.add(t,e)}Et.prototype.add=function(t,e){var n=Mt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Tt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Tt.prototype.reset=function(){this.next=this.b=this.a=null};var It=!1,Dt=new Et;function Nt(){for(var t;t=St();
1){try{t.a.call(t.b)}catch(n){At(n)}var e=Mt;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}It=!1}function Rt(t,e){Ct.call(this),this.b=t||1,this.a=e||a,this.f=m(this.Ua,this),this.g=v()}function jt(t){t.Z=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function Ft(t,e,n){if("function"==c(t))n&&(t=m(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=m(t.handleEvent,t)}return 2147483647<Number(e)?-1:a.setTimeout(t,e||0)}function Lt(t,e,n){b.call(this),this.f=null!=n?m(t,n):t,this.c=e,this.b=m(this.Pa,this),this.a=[]}function Ut(t){t.T=Ft(t.b,t.c),t.f.apply(null,t.a)}function Vt(t){b.call(this),this.b=t,this.a={}}_(Rt,Ct),(i=Rt.prototype).Z=!1,i.L=null,i.Ua=function(){if(this.Z){var t=v()-this.g;0<t&&t<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-t):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.Z&&(jt(this),this.start()))}},i.start=function(){this.Z=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=v())},i.C=function(){Rt.M.C.call(this),jt(this),delete this.a},_(Lt,b),(i=Lt.prototype).ba=!1,i.T=null,i.Ia=function(t){this.a=arguments,this.T?this.ba=!0:Ut(this)},i.C=function(){Lt.M.C.call(this),this.T&&(a.clearTimeout(this.T),this.T=null,this.ba=!1,this.a=[])},i.Pa=function(){this.T=null,this.ba&&(this.ba=!1,Ut(this))},_(Vt,b);var Bt=[];function qt(t,e,n,r){Array.isArray(n)||(n&&(Bt[0]=n.toString()),n=Bt);for(var i=0;i<n.length;i++){var o=dt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function zt(t){I(t.a,(function(t,e){this.a.hasOwnProperty(e)&>(t)}),t),t.a={}}function Ht(){}Vt.prototype.C=function(){Vt.M.C.call(this),zt(this)},Vt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Wt=null;function Gt(){return Wt=Wt||new Ct}function $t(t){et.call(this,"serverreachability",t)}function Qt(t){var e=Gt();e.dispatchEvent(new $t(e,t))}function Kt(t){et.call(this,"statevent",t)}function Yt(t){var e=Gt();e.dispatchEvent(new Kt(e,t))}function Zt(t){et.call(this,"timingevent",t)}function Xt(t,e){if("function"!=c(t))throw Error("Fn must not be null and must be a function");return a.setTimeout((function(){t()}),e)}_($t,et),_(Kt,et),_(Zt,et);var Jt={NO_ERROR:0,Va:1,bb:2,ab:3,Ya:4,$a:5,cb:6,za:7,TIMEOUT:8,gb:9},te={Xa:"complete",kb:"success",Aa:"error",za:"abort",ib:"ready",jb:"readystatechange",TIMEOUT:"timeout",eb:"incrementaldata",hb:"progress",Za:"downloadprogress",lb:"uploadprogress"};function ee(){}function ne(){}ee.prototype.a=null;var re,ie={OPEN:"a",Wa:"b",Aa:"c",fb:"d"};function oe(){et.call(this,"d")}function se(){et.call(this,"c")}function ae(){}function ue(t,e,n){this.g=t,this.W=e,this.U=n||1,this.G=new Vt(this),this.N=ce,this.O=new Rt(t=q?125:void 0),this.m=null,this.b=!1,this.j=this.A=this.f=this.B=this.s=this.P=this.h=null,this.i=[],this.a=null,this.w=0,this.c=this.v=null,this.H=-1,this.l=!1,this.J=0,this.D=null,this.o=this.R=this.F=!1}_(oe,et),_(se,et),_(ae,ee),re=new ae;var ce=45e3,le={},he={};function pe(t,e,n){t.B=1,t.f=Ne(Se(e)),t.j=n,t.F=!0,de(t,null)}function de(t,e){t.s=v(),me(t),t.A=Se(t.f);var n=t.A,r=t.U;Array.isArray(r)||(r=[String(r)]),$e(n.b,"t",r),t.w=0,t.a=Un(t.g,t.g.w?e:null),0<t.J&&(t.D=new Lt(m(t.ya,t,t.a),t.J)),qt(t.G,t.a,"readystatechange",t.Sa),e=t.m?D(t.m):{},t.j?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.$(t.A,t.v,t.j,e)):(t.v="GET",t.a.$(t.A,t.v,null,e)),Qt(1)}function fe(t,e,n){for(var r=!0;!t.l&&t.w<n.length;){var i=ge(t,n);if(i==he){4==e&&(t.c=4,Yt(14),r=!1);break}if(i==le){t.c=4,Yt(15),r=!1;break}we(t,i)}4==e&&0==n.length&&(t.c=1,Yt(16),r=!1),t.b=t.b&&r,r||(be(t),_e(t))}function ge(t,e){var n=t.w,r=e.indexOf("\n",n);return-1==r?he:(n=Number(e.substring(n,r)),isNaN(n)?le:(r+=1)+n>e.length?he:(e=e.substr(r,n),t.w=r+n,e))}function me(t){t.P=v()+t.N,ye(t,t.N)}function ye(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Xt(m(t.Qa,t),e)}function ve(t){t.h&&(a.clearTimeout(t.h),t.h=null)}function _e(t){0==t.g.u||t.l||Nn(t.g,t)}function be(t){ve(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,jt(t.O),zt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function we(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||tn(n.b,t)))if(n.A=t.H,!t.o&&tn(n.b,t)&&3==n.u){try{var r=n.ja.a.parse(e)}catch(g){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3<t.s))break t;Dn(n),n.a.cancel(),n.a=null}In(n),Yt(18)}}else n.ia=i[1],0<n.ia-n.G&&37500>i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Xt(m(n.Na,n),6e3));if(1>
1=Je(n.b)&&n.O){try{n.O()}catch(g){}n.O=void 0}}else jn(n,11)}else if((t.o||n.a==t)&&Dn(n),!E(e))for(e=r=n.ja.a.parse(e),r=0;r<e.length;r++)if(n.G=(i=e[r])[0],i=i[1],2==n.u)if("c"==i[0]){n.B=i[1],n.R=i[2];var o=i[3];null!=o&&(n.oa=o);var s=i[5];null!=s&&"number"==typeof s&&0<s&&(n.D=1.5*s);var a=n,u=t.a;if(u){var c=u.a?u.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var l=a.b;!l.a&&(S(c,"spdy")||S(c,"quic")||S(c,"h2"))&&(l.f=l.g,l.a=new Set,l.b&&(en(l,l.b),l.b=null))}if(a.s){var h=u.a?u.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(a.ha=h,De(a.v,a.s,h))}}n.u=3,n.c&&n.c.na();var p=t;if((a=n).ea=Ln(a,a.w?a.R:null,a.P),p.o){nn(a.b,p);var d=p,f=a.D;f&&d.setTimeout(f),d.h&&(ve(d),me(d)),a.a=p}else kn(a);0<n.f.length&&Mn(n)}else"stop"!=i[0]&&"close"!=i[0]||jn(n,7);else 3==n.u&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?jn(n,7):xn(n):"noop"!=i[0]&&n.c&&n.c.ma(i),n.m=0);Qt(4)}catch(g){}}function Ce(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(l(t)||"string"==typeof t)C(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.I&&"function"==typeof t.I)n=void 0;else if(l(t)||"string"==typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.I&&"function"==typeof t.I)return t.I();if("string"==typeof t)return t.split("");if(l(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Oe(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Oe)for(n=t.K(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function xe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Ee(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)Ee(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(i=ue.prototype).setTimeout=function(t){this.N=t},i.Sa=function(t){t=t.target;var e=this.D;e&&3==bn(t)?e.Ia():this.ya(t)},i.ya=function(t){try{if(t==this.a)t:{var e=bn(this.a),n=this.a.qa(),r=this.a.S();if(!(3>e||3==e&&!q&&!this.a.Y())){this.l||4!=e||7==n||Qt(8==n||0>=r?3:2),ve(this);var i=this.a.S();this.H=i;var o=this.a.Y();if(this.b=200==i){if(this.R&&!this.o){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!E(s)){var u=s;break e}}u=null}if(!u){this.b=!1,this.c=3,Yt(12),be(this),_e(this);break t}this.o=!0,we(this,u)}this.F?(fe(this,e,o),q&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):we(this,o),4==e&&be(this),this.b&&!this.l&&(4==e?Nn(this.g,this):(this.b=!1,me(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Yt(12)):(this.c=0,Yt(13)),be(this),_e(this)}}}catch(c){}},i.Ra=function(){if(this.a){var t=bn(this.a),e=this.a.Y();this.w<e.length&&(ve(this),fe(this,t,e),this.b&&4!=t&&me(this))}},i.cancel=function(){this.l=!0,be(this)},i.Qa=function(){this.h=null;var t=v();0<=t-this.P?(2!=this.B&&(Qt(3),Yt(17)),be(this),this.c=2,_e(this)):ye(this,this.P-t)},(i=Oe.prototype).I=function(){xe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},i.K=function(){return xe(this),this.a.concat()},i.get=function(t,e){return Ee(this.b,t)?this.b[t]:e},i.set=function(t,e){Ee(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},i.forEach=function(t,e){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Pe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Me(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Me){this.a=void 0!==e?e:t.a,Te(this,t.f),this.j=t.j,Ae(this,t.c),ke(this,t.h),this.g=t.g,e=t.b;var n=new ze;n.c=e.c,e.a&&(n.a=new Oe(e.a),n.b=e.b),Ie(this,n),this.i=t.i}else t&&(n=String(t).match(Pe))?(this.a=!!e,Te(this,n[1]||"",!0),this.j=Re(n[2]||""),Ae(this,n[3]||"",!0),ke(this,n[4]),this.g=Re(n[5]||"",!0),Ie(this,n[6]||"",!0),this.i=Re(n[7]||"")):(this.a=!!e,this.b=new ze(null,this.a))}function Se(t){return new Me(t)}
vendor: 2,651 bytes, line 1
1function Te(t,e,n){t.f=n?Re(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Ae(t,e,n){t.c=n?Re(e,!0):e}function ke(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Ie(t,e,n){e instanceof ze?(t.b=e,function(t,e){e&&!t.f&&(He(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(We(this,e),$e(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=je(e,Be)),t.b=new ze(e,t.a))}function De(t,e,n){t.b.set(e,n)}function Ne(t){return De(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36)),t}function Re(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function je(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Fe),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Fe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Me.prototype.toString=function(){var t=[],e=this.f;e&&t.push(je(e,Le,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(je(e,Le,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(je(n,"/"==n.charAt(0)?Ve:Ue,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",je(n,qe)),t.join("")};var Le=/[#\/\?@]/g,Ue=/[#\?:]/g,Ve=/[#\?]/g,Be=/[#\?@]/g,qe=/#/g;function ze(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function He(t){t.a||(t.a=new Oe,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function We(t,e){He(t),e=Qe(t,e),Ee(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Ee((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&xe(t)))}function Ge(t,e){return He(t),e=Qe(t,e),Ee(t.a.b,e)}function $e(t,e,n){We(t,e),0<n.length&&(t.c=null,t.a.set(Qe(t,e),x(n)),t.b+=n.length)}function Qe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Ke(t,e){this.b=t,this.a=e}function Ye(t){this.g=t||Ze,t=a.PerformanceNavigationTiming?0<(t=a.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(a.ca&&a.ca.ua&&a.ca.ua()&&a.ca.ua().mb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(i=ze.prototype).add=function(t,e){He(this),this.c=null,t=Qe(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this}
1,i.forEach=function(t,e){He(this),this.a.forEach((function(n,r){C(n,(function(n){t.call(e,n,r,this)}),this)}),this)},i.K=function(){He(this);for(var t=this.a.I(),e=this.a.K(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},i.I=function(t){He(this);var e=[];if("string"==typeof t)Ge(this,t)&&(e=O(e,this.a.get(Qe(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=O(e,t[n])}return e},i.set=function(t,e){return He(this),this.c=null,Ge(this,t=Qe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},i.get=function(t,e){return t&&0<(t=this.I(t)).length?String(t[0]):e},i.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.K(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.I(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),t.push(s)}}return this.c=t.join("&")};var Ze=10;function Xe(t){return!!t.b||!!t.a&&t.a.size>=t.f}function Je(t){return t.b?1:t.a?t.a.size:0}function tn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function en(t,e){t.a?t.a.add(e):t.b=e}function nn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function rn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var i=t.c;try{for(var o=r(t.a.values()),s=o.next();!s.done;s=o.next())i=i.concat(s.value.i)}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return x(t.c)}function on(){}function sn(){this.a=new on}function an(t,e,n){var r=n||"";try{Ce(t,(function(t,n){var i=t;h(t)&&(i=xt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function un(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Ye.prototype.cancel=function(){var t,e;if(this.c=rn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=r(this.a.values()),i=n.next();!i.done;i=n.next())i.value.cancel()}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},on.prototype.stringify=function(t){return a.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return a.JSON.parse(t,void 0)};var cn=a.JSON.parse;function ln(t){Ct.call(this),this.headers=new Oe,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=hn,this.B=this.F=!1}_(ln,Ct);var hn="",pn=/^https?$/i,dn=["POST","PUT"];function fn(t){return"content-type"==t.toLowerCase()}function gn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,mn(t),vn(t)}function mn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function yn(t){if(t.b&&void 0!==s&&(!t.s[1]||4!=bn(t)||2!=t.S()))if(t.l&&4==bn(t))Ft(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==bn(t)){t.b=!1;try{var e,n=t.S();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.D).match(Pe)[1]||null;if(!o&&a.self&&a.self.location){var u=a.self.location.protocol;o=u.substr(0,u.length-1)}i=!pn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<bn(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.S()+"]",mn(t)}}finally{vn(t)}}}function vn(t,e){if(t.a){_n(t);var n=t.a,r=t.s[0]?u:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function _n(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(a.clearTimeout(t.m),t.m=null)}function bn(t){return t.a?t.a.readyState:0}function wn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return I(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):De(t,e,n))}function Cn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function On(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=Cn("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=Cn("baseRetryDelayMs",5e3,t),this.Ga=Cn("retryDelaySeedMs",1e4,t),this.Da=Cn("forwardChannelMaxRetries",2,t),this.ga=Cn("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new Ye(t&&t.concurrentRequestLimit),this.ja=new sn,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function xn(t){if(En(t),3==t.u){var e=t.H++,n=Se(t.v);De(n,"SID",t.B),De(n,"RID",e),De(n,"TYPE","terminate"),Tn(t,n),(e=new ue(t,e,void 0)).B=2,e.f=Ne(Se(n)),n=!1,a.navigator&&a.navigator.sendBeacon&&(n=a.navigator.sendBeacon(e.f.toString(),"")),!n&&a.Image&&((new Image).src=e.f,n=!0),n||(e.a=Un(e.g,null),e.a.$(e.f)),e.s=v(),me(e)}Fn(t)}function En(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(a.clearTimeout(t.i),t.i=null),Dn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&a.clearTimeout(t.g),t.g=null)}function Pn(t,e){t.f.push(new Ke(t.Fa++,e)),3==t.u&&Mn(t)}function Mn(t){Xe(t.b)||t.g||(t.g=!0,kt(t.xa,t),t.o=0)}function Sn(t,e){var n;n=e?e.W:t.H++;var r=Se(t.v);De(r,"SID",t.B),De(r,"RID",n),De(r,"AID",t.G),Tn(t,r),t.h&&t.j&&wn(r,t.h,t.j),n=new ue(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=An(t,n,1e3),n.setTimeout(
1Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),en(t.b,n),pe(n,r,e)}function Tn(t,e){t.c&&Ce({},(function(t,n){De(e,n,t)}))}function An(t,e,n){n=Math.min(t.f.length,n);var r=t.c?m(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var s=["count="+n];-1==o?0<n?s.push("ofs="+(o=i[0].b)):o=0:s.push("ofs="+o);for(var a=!0,u=0;u<n;u++){var c=i[u].b,l=i[u].a;if(0>(c-=o))o=Math.max(0,i[u].b-100),a=!1;else try{an(l,s,"req"+c+"_")}catch(h){r&&r(l)}}if(a){r=s.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function kn(t){t.a||t.i||(t.J=1,kt(t.wa,t),t.m=0)}function In(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Xt(m(t.wa,t),Rn(t,t.m)),t.m++,0))}function Dn(t){null!=t.l&&(a.clearTimeout(t.l),t.l=null)}function Nn(t,e){var n=null;if(t.a==e){Dn(t),t.a=null;var r=2}else{if(!tn(t.b,e))return;n=e.i,nn(t.b,e),r=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==r){n=e.j?e.j.length:0,e=v()-e.s;var i=t.o;(r=Gt()).dispatchEvent(new Zt(r,n,e,i)),Mn(t)}else kn(t);else if(3==(i=e.c)||0==i&&0<t.A||!(1==r&&function(t,e){return!(Je(t.b)>=t.b.f-(t.g?1:0)||(t.g?(t.f=e.i.concat(t.f),0):1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da)||(t.g=Xt(m(t.xa,t,e),Rn(t,t.o)),t.o++,0)))}(t,e)||2==r&&In(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:jn(t,5);break;case 4:jn(t,10);break;case 3:jn(t,6);break;default:jn(t,2)}}function Rn(t,e){var n=t.Ba+Math.floor(Math.random()*t.Ga);return t.c||(n*=2),n*e}function jn(t,e){if(2==e){var n=null;t.c&&(n=null);var r=m(t.Ta,t);n||(n=new Me("//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||Te(n,"https"),Ne(n)),function(t,e){var n=new Ht;if(a.Image){var r=new Image;r.onload=y(un,n,r,"TestLoadImage: loaded",!0,e),r.onerror=y(un,n,r,"TestLoadImage: error",!1,e),r.onabort=y(un,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=y(un,n,r,"TestLoadImage: timeout",!1,e),a.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Yt(2);t.u=0,t.c&&t.c.la(e),Fn(t),En(t)}function Fn(t){t.u=0,t.A=-1,t.c&&(0==rn(t.b).length&&0==t.f.length||(t.b.c.length=0,x(t.f),t.f.length=0),t.c.ka())}function Ln(t,e,n){var r=function(t){return t instanceof Me?Se(t):new Me(t,void 0)}(n);if(""!=r.c)e&&Ae(r,e+"."+r.c),ke(r,r.h);else{var i=a.location;r=function(t,e,n,r){var i=new Me(null,void 0);return t&&Te(i,t),e&&Ae(i,e),n&&ke(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.N&&I(t.N,(function(t,e){De(r,e,t)})),n=t.ha,(e=t.s)&&n&&De(r,e,n),De(r,"VER",t.oa),Tn(t,r),r}function Un(t,e){if(e&&!t.w)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new ln(t.Ea)).F=t.w,e}function Vn(){}function Bn(){if(V&&!(10<=Number(Z)))throw Error("Environmental error: no available transport.")}function qn(t,e){Ct.call(this),this.a=new On(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.j=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.pa&&(t?t["X-WebChannel-Client-Profile"]=e.pa:t={"X-WebChannel-Client-Profile":e.pa}),this.a.F=t,(t=e&&e.httpHeadersOverwriteParam)&&!E(t)&&(this.a.h=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!E(e)&&(this.a.s=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new Wn(this)}function zn(t){oe.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function Hn(){se.call(this),this.status=1}function Wn(t){this.a=t}(i=ln.prototype).$=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(t){var e;return(e=t.a)||(e=t.a={}),e}(this.G?this.G:re),this.a.onreadystatechange=m(this.va,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void gn(this,o)}t=n||"";var i=new Oe(this.headers);r&&Ce(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=fn,n=t.length,r="string"==typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(i.K()),n=a.FormData&&t instanceof a.FormData,!(0<=w(dn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
1charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{_n(this),0<this.o&&((this.B=function(t){return V&&Y(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=m(this.ta,this)):this.m=Ft(this.ta,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){gn(this,o)}},i.ta=function(){void 0!==s&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},i.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vn(this))},i.C=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),vn(this,!0)),ln.M.C.call(this)},i.va=function(){this.j||(this.w||this.l||this.g?yn(this):this.Oa())},i.Oa=function(){yn(this)},i.S=function(){try{return 2<bn(this)?this.a.status:-1}catch(L){return-1}},i.Y=function(){try{return this.a?this.a.responseText:""}catch(L){return""}},i.Ja=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),cn(e)}},i.qa=function(){return this.h},i.Ma=function(){return"string"==typeof this.f?this.f:String(this.f)},(i=On.prototype).oa=8,i.u=1,i.xa=function(t){if(this.g)if(this.g=null,1==this.u){if(!t){this.H=Math.floor(1e5*Math.random());var e,n=new ue(this,t=this.H++,void 0),r=this.j;if(this.F&&(r?R(r=D(r),this.F):r=this.F),null===this.h&&(n.m=r),this.fa)t:{for(var i=e=0;i<this.f.length;i++){var o=this.f[i];if(void 0===(o="__data__"in o.a&&"string"==typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=i;break t}if(4096===e||i===this.f.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=An(this,n,e),De(i=Se(this.v),"RID",t),De(i,"CVER",22),this.s&&De(i,"X-HTTP-Session-Id",this.s),Tn(this,i),this.h&&r&&wn(i,this.h,r),en(this.b,n),this.fa?(De(i,"$req",e),De(i,"SID","null"),n.R=!0,pe(n,i,null)):pe(n,i,e),this.u=2}}else 3==this.u&&(t?Sn(this,t):0==this.f.length||Xe(this.b)||Sn(this))},i.wa=function(){this.i=null,this.a=new ue(this,"rpc",this.J),null===this.h&&(this.a.m=this.j),this.a.J=0;var t=Se(this.ea);De(t,"RID","rpc"),De(t,"SID",this.B),De(t,"CI",this.U?"0":"1"),De(t,"AID",this.G),Tn(this,t),De(t,"TYPE","xmlhttp"),this.h&&this.j&&wn(t,this.h,this.j),this.D&&this.a.setTimeout(this.D);var e=this.a,n=this.R;e.B=1,e.f=Ne(Se(t)),e.j=null,e.F=!0,de(e,n)},i.Na=function(){null!=this.l&&(this.l=null,this.a.cancel(),this.a=null,In(this),Yt(19))},i.Ta=function(t){Yt(t?2:1)},(i=Vn.prototype).na=function(){},i.ma=function(){},i.la=function(){},i.ka=function(){},i.Ha=function(){},Bn.prototype.a=function(t,e){return new qn(t,e)},_(qn,Ct),(i=qn.prototype).addEventListener=function(t,e,n,r){qn.M.addEventListener.call(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){qn.M.removeEventListener.call(this,t,e,n,r)},i.Ka=function(){this.a.c=this.f,this.h&&(this.a.w=!0);var t=this.a,e=this.l,n=this.b||void 0;Yt(0),t.P=e,t.N=n||{},t.U=t.W,t.v=Ln(t,null,t.P),Mn(t)},i.close=function(){xn(this.a)},i.La=function(t){if("string"==typeof t){var e={};e.__data__=t,Pn(this.a,e)}else this.g?((e={}).__data__=xt(t),Pn(this.a,e)):Pn(this.a,t)},i.C=function(){this.a.c=null,delete this.f,xn(this.a),delete this.a,qn.M.C.call(this)},_(zn,oe),_(Hn,se),_(Wn,Vn),Wn.prototype.na=function(){this.a.dispatchEvent("a")},Wn.prototype.ma=function(t){this.a.dispatchEvent(new zn(t))},Wn.prototype.la=function(t){this.a.dispatchEvent(new Hn(t))},Wn.prototype.ka=function(){this.a.dispatchEvent("b")},Bn.prototype.createWebChannel=Bn.prototype.a,qn.prototype.send=qn.prototype.La,qn.prototype.open=qn.prototype.Ka,qn.prototype.close=qn.prototype.close,Jt.NO_ERROR=0,Jt.TIMEOUT=8,Jt.HTTP_ERROR=6,te.COMPLETE="complete",ne.EventType=ie,ie.OPEN="a",ie.CLOSE="b",ie.ERROR="c",ie.MESSAGE="d",Ct.prototype.listen=Ct.prototype.ra,ln.prototype.listenOnce=ln.prototype.sa,ln.prototype.getLastError=ln.prototype.Ma,ln.prototype.getLastErrorCode=ln.prototype.qa,ln.prototype.getStatus=ln.prototype.S,ln.prototype.getResponseJson=ln.prototype.Ja,ln.prototype.getResponseText=ln.prototype.Y,ln.prototype.send=ln.prototype.$;var Gn={createWebChannelTransport:function(){return new Bn},ErrorCode:Jt,EventType:te,WebChannel:ne,XhrIo:ln},$n=Gn.createWebChannelTransport,Qn=Gn.ErrorCode,Kn=Gn.EventType,Yn=Gn.WebChannel,Zn=Gn.XhrIo;e.default=Gn},xAGQ:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},"xTJ+":function(t,e,n){"use strict";var r=n("HSsa"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:s,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){e[r]="object"==typeof e[r]&&"object"==typeof n?t(e[r],n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){e[r]="object"==typeof e[r]&&"object"==typeof n?t(e[r],n):"object"==typeof n?t({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},y1pI:function(t,e,n){var r=n("ljhN");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},yGk4:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Set");t.exports=r},yHx3:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input
1=t.input),r}},yK9s:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},yP5f:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},zEVN:function(t,e,n){var r=n("Gi0A"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isMap,a=s?i(s):r;t.exports=a},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"wrapSpace",(function(){return o_}));var i={};n.r(i),n.d(i,"wrapEntry",(function(){return f_})),n.d(i,"wrapEntryCollection",(function(){return g_}));var o={};n.r(o),n.d(o,"wrapAsset",(function(){return m_})),n.d(o,"wrapAssetCollection",(function(){return y_}));var s={};n.r(s),n.d(s,"wrapContentType",(function(){return v_})),n.d(s,"wrapContentTypeCollection",(function(){return __}));var a={};function u(t){return"function"==typeof t}n.r(a),n.d(a,"wrapLocale",(function(){return b_})),n.d(a,"wrapLocaleCollection",(function(){return w_}));let c=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=t},get useDeprecatedSynchronousErrorHandling(){return c}};function h(t){setTimeout(()=>{throw t},0)}const p={closed:!0,next(t){},error(t){if(l.useDeprecatedSynchronousErrorHandling)throw t;h(t)},complete(){}},d=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function f(t){return null!==t&&"object"==typeof t}const g=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let m=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:r,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(u(r))try{r.call(this)}catch(o){e=o instanceof g?y(o.errors):[o]}if(d(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(f(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof g?e=e.concat(y(o.errors)):e.push(o)}}}if(e)throw new g(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function y(t){return t.reduce((t,e)=>t.concat(e instanceof g?e.errors:e),[])}const v=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class _ extends m{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=p;break;case 1:if(!t){this.destination=p;break}if("object"==typeof t){t instanceof _?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new b(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new b(this,t,e,n)}}[v](){return this}static create(t,e,n){const r=new _(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class b extends _{constructor(t,e,n,r){let i;super(),this._parentSubscriber=t;let o=this;
vendor: 10,749 bytes, line 1
1u(e)?i=e:e&&(i=e.next,n=e.error,r=e.complete,e!==p&&(o=Object.create(e),u(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=l;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):h(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;h(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);l.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)throw n;h(n)}}__tryOrSetError(t,e,n){if(!l.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return l.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(h(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const w=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function C(t){return t}let O=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,i=function(t,e,n){if(t){if(t instanceof _)return t;if(t[v])return t[v]()}return t||e||n?new _(t,e,n):new _(p)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||l.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof _?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[w](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?C:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=x(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=l.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const E=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class P extends m{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class M extends _{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends O{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[v](){return new M(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new E;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new E;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),m.EMPTY):this.isStopped?(t.complete(),m.EMPTY):(this.observers.push(t),new P(this,t))}asObservable(){const t=new O;return t.source=this,t}}return t.create=(t,e)=>new T(t,e),t})();class T extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):m.EMPTY}}function A(t){return t&&"function"==typeof t.schedule}class k extends _{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const I=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const N=D(),R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function j(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[w])return r=t,t=>{const e=r[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return I(t);if(j(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,h),t);if(t&&"function"==typeof t[N])return e=t,t=>{const n=e[N]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=f(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function L(t,e,n,r,i=new k(t,n,r)){if(!i.closed)return e instanceof O?e.subscribe(i):F(e)(i)}class U extends _{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function V(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B(t,e))}}class B{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new q(t,this.project,this.thisArg))}}class q extends _{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function z(t,e){return new O(n=>{const r=new m;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function H(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new O(n=>{const r=new m;return r.add(e.schedule(()=>{const i=t[w]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(j(t))return function(t,e){return new O(n=>{const r=new m;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(R(t))return z(t,e);if(function(t){return t&&"function"==typeof t[N]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new O(n=>{const r=new m;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[N](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof O?t:new O(F(t))}function W(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(W((n,r)=>H(t(n,r)).pipe(V((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new G(t,n)))}class G{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends U{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const r=new k(this,e,n),i=this.destination;i.add(r);const o=L(this,t,void 0,void 0,r);o!==r&&i.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,i){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Q(t=Number.POSITIVE_INFINITY){return W(C,t)}function K(t,e){return e?z(t,e):new O(I(t))}function Y(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new X(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class X extends _{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class J extends O{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}
1_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new m,t.add(this.source.subscribe(new et(this.getSubject(),this))),t.closed&&(this._connection=null,t=m.EMPTY)),t}refCount(){return Y()(this)}}const tt=(()=>{const t=J.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class et extends M{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function nt(){return new S}function rt(t){return{toString:t}.toString()}function it(t,e,n){return rt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const ot=it("Inject",t=>({token:t})),st=it("Optional"),at=it("Self"),ut=it("SkipSelf");var ct=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function pt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return gt(t,t[yt])||gt(t,t[bt])}function gt(t,e){return e&&e.token===t?e:null}function mt(t){return t&&(t.hasOwnProperty(vt)||t.hasOwnProperty(wt))?t[vt]:null}const yt=lt({\u0275prov:lt}),vt=lt({\u0275inj:lt}),_t=lt({\u0275provFallback:lt}),bt=lt({ngInjectableDef:lt}),wt=lt({ngInjectorDef:lt});function Ct(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ot(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const xt=lt({__forward_ref__:lt});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return Ct(this())},t}function Pt(t){return Mt(t)?t():t}function Mt(t){return"function"==typeof t&&t.hasOwnProperty(xt)&&t.__forward_ref__===Et}const St="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt="undefined"!=typeof global&&global,It=St||kt||Tt||At,Dt=lt({\u0275cmp:lt}),Nt=lt({\u0275dir:lt}),Rt=lt({\u0275pipe:lt}),jt=lt({\u0275mod:lt}),Ft=lt({\u0275loc:lt}),Lt=lt({\u0275fac:lt}),Ut=lt({__NG_ELEMENT_ID__:lt});class Vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=pt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Bt=new Vt("INJECTOR",-1),qt={},zt=/\n/gm,Ht=lt({provide:String,useValue:lt});let Wt,Gt=void 0;function $t(t){const e=Gt;return Gt=t,e}function Qt(t){const e=Wt;return Wt=t,e}function Kt(t,e=ct.Default){if(void 0===Gt)throw new Error("inject() must be called from an injection context");return null===Gt?Zt(t,void 0,e):Gt.get(t,e&ct.Optional?null:void 0,e)}function Yt(t,e=ct.Default){return(Wt||Kt)(Pt(t),e)}function Zt(t,e,n){const r=ft(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ct.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${Ct(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const r=Pt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=ct.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof st||"Optional"===i.ngMetadataName||i===st?n|=ct.Optional:i instanceof ut||"SkipSelf"===i.ngMetadataName||i===ut?n|=ct.SkipSelf:i instanceof at||"Self"===i.ngMetadataName||i===at?n|=ct.Self:t=i instanceof ot||i===ot?i.token:i}e.push(Yt(t,n))}else e.push(Yt(r))}return e}class Jt{get(t,e=qt){if(e===qt){const e=new Error(`NullInjectorError: No provider for ${Ct(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}class ee{}function ne(t,e){t.forEach(t=>Array.isArray(t)?ne(t,e):e(t))}function re(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oe(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function se(t,e,n){let r=ue(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;
vendor: 4,681 bytes, line 1
1else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ae(t,e){const n=ue(t,e);if(n>=0)return t[1|n]}function ue(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}var ce=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),le=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},pe=[];let de=0;function fe(t){return rt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||pe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||le.Emulated,id:"c",styles:t.styles||pe,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=de++,n.inputs=_e(t.inputs,e),n.outputs=_e(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ge):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(me):null,n})}function ge(t){return Ce(t)||function(t){return t[Nt]||null}(t)}function me(t){return function(t){return t[Rt]||null}(t)}const ye={};function ve(t){const e={type:t.type,bootstrap:t.bootstrap||pe,declarations:t.declarations||pe,imports:t.imports||pe,exports:t.exports||pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&rt(()=>{ye[t.id]=t.type}),e}function _e(t,e){if(null==t)return he;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const be=fe;function we(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ce(t){return t[Dt]||null}function Oe(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}function xe(t,e){const n=t[jt]||null;if(!n&&!0===e)throw new Error(`Type ${Ct(t)} does not have '\u0275mod' property.`);return n}function Ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function Pe(t){return Array.isArray(t)&&!0===t[1]}function Me(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function Te(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function ke(t){return 0!=(512&t[2])}function Ie(t){return"string"==typeof t?t:null==t?"":""+t}function De(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ie(t)}const Ne=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(It))();function Re(t){return t instanceof Function?t():t}function je(t,e){const n=e?" in "+e:"";throw new Error(`No provider for ${De(t)} found${n}`)}class Fe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Le(){return Ue}function Ue(t){return t.type.prototype.ngOnChanges&&(t.setInput=Be),Ve}function Ve(){const t=qe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Be(t,e,n,r){const i=qe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Fe(u&&u.currentValue,e,s===he),t[r]=e}function qe(t){return t.__ngSimpleChanges__||null}Le.ngInherit=!0;let ze=void 0;function He(){return void 0!==ze?ze:"undefined"!=typeof document?document:void 0}function We(t){return!!t.listen}const Ge={createRenderer:(t,e)=>He()};function $e(t){for(;Array.isArray(t);)t=t[0];return t}function Qe(t,e){return $e(e[t+20])}function Ke(t,e){return $e(e[t.index])}function Ye(t,e){return t.data[e+20]}function Ze(t,e){return t[e+20]}function Xe(t,e){const n=e[t];return Ee(n)?n:n[0]}function Je(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function tn(t){return 4==(4&t[2])}function en(t){return 128==(128&t[2])}function nn(t,e){return null===t||null==e?null:t[e]}function rn(t){t[18]=0}function on(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const sn={lFrame:Sn(null),bindingsEnabled:!0,isInCheckNoChangesMo
1de:!1};function an(){return sn.bindingsEnabled}function un(){return sn.lFrame.lView}function cn(){return sn.lFrame.tView}function ln(t){sn.lFrame.contextLView=t}function hn(){return sn.lFrame.currentTNode}function pn(t,e){sn.lFrame.currentTNode=t,sn.lFrame.isParent=e}function dn(){return sn.lFrame.isParent}function fn(){sn.lFrame.isParent=!1}function gn(){return sn.isInCheckNoChangesMode}function mn(t){sn.isInCheckNoChangesMode=t}function yn(){const t=sn.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function vn(){return sn.lFrame.bindingIndex}function _n(){return sn.lFrame.bindingIndex++}function bn(t){const e=sn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function wn(t,e){const n=sn.lFrame;n.bindingIndex=n.bindingRootIndex=t,Cn(e)}function Cn(t){sn.lFrame.currentDirectiveIndex=t}function On(){return sn.lFrame.currentQueryIndex}function xn(t){sn.lFrame.currentQueryIndex=t}function En(t,e){const n=Mn();sn.lFrame=n,n.currentTNode=e,n.lView=t}function Pn(t){const e=Mn(),n=t[1];sn.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function Mn(){const t=sn.lFrame,e=null===t?null:t.child;return null===e?Sn(t):e}function Sn(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Tn(){const t=sn.lFrame;return sn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const An=Tn;function kn(){const t=Tn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function In(){return sn.lFrame.selectedIndex}function Dn(t){sn.lFrame.selectedIndex=t}function Nn(){const t=sn.lFrame;return Ye(t.tView,t.selectedIndex)}function Rn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function jn(t,e,n){Un(t,e,3,n)}function Fn(t,e,n,r){(3&t[2])===n&&Un(t,e,n,r)}function Ln(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Un(t,e,n,r){const i=null!=r?r:-1;let o=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=r&&o>=r)break}else e[s]<0&&(t[18]+=65536),(o<i||-1==i)&&(Vn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function Vn(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}class Bn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function qn(t,e,n){const r=We(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],u=n[i++];r?t.setAttribute(e,a,u,s):e.setAttributeNS(s,a,u)}else{const s=o,a=n[++i];Hn(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function zn(t){return 3===t||4===t||6===t}function Hn(t){return 64===t.charCodeAt(0)}function Wn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||Gn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function Gn(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function $n(t){return-1!==t}function Qn(t){return 32767&t}function Kn(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}let Yn=!0;function Zn(t){const e=Yn;return Yn=t,e}let Xn=0;function Jn(t,e){const n=er(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,tr(r.data,t),tr(e,null),tr(r.blueprint,null));const i=nr(t,e),o=t.injectorIndex;if($n(i)){const t=Qn(i),n=Kn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function tr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function er(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function nr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(r=2===e?t.declTNode:1===e?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function rr(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ut)&&(r=n[Ut]),null==r&&(r=n[Ut]=Xn++);const i=255&r,o=1<<i,s=64&i,a=32&i,u=e.data;128&i?s?a?u[t+7]|=o:u[t+6]|=o:a?u[t+5]|=o:u[t+4]|=o:s?a?u[t+3]|=o:u[t+2]|=o:a?u[t+1]|=o:u[t]|=o}(t,e,n)}function ir(t,e,n,r=ct.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ut)?t[Ut]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){En(e,t);try{const t=i();if(null!=t||r&ct.Optional)return t;je(n)}finally{An()}}else if("number"==typeof i){if(-1===i)return new hr(t,e);let o=null,s=er(t,e),a=-1,u=r&ct.Host?e[16][6]:null;for((-1===s||r&ct.SkipSelf)&&(a=-1===s?nr(t,e):e[s+8],-1!==a&&lr(r,!1)?(o=e[1],s=Qn(a),e=Kn(a,e)):s=-1);-1!==s;){const t=e[1];if(cr(i,s,t.data)){const t=sr(s,e,n,o,r,u);if(t!==or)return t}a=e[s+8],-1!==a&&lr(r,e[1].data[s+8]===u)&&cr(i,s,e)?(o=t,s=Qn(a),e=Kn(a,e)):s=-1}}}if(r&ct.Optional&&void 0===i&&(i=null),0==(r&(ct.Self|ct.Host))){const t=e[9],o=Qt(void 0);try{return t?t.get(n,i,r&ct.Optional):Zt(n,i,r&ct.Optional)}finally{Qt(o)}}if(r&ct.Optional)return i;je(n,"NodeInjector")}const or={};function sr(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],u=ar(a,s,n,null==r?Se(a)&&Yn:r!=s&&2===a.type,i&ct.Host&&o===a);return null!==u?ur(e,s,u,a):or}function ar(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,u=t.directiveStart,c=o>>20,l=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<l;h++){const t=s[h];if(h<u&&n===t||h>=u&&t.type===n)return h}if(i){const t=s[u];if(t&&Ae(t)&&t.type===n)return u}return null}function ur(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof Bn){const s=i;s.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}(De(o[n]));const a=Zn(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Qt(s.injectImpl):null;En(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=Ue(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==u&&Qt(u),Zn(a),s.resolving=!1,An()}}return i}function cr(t,e,n){const r=64&t,i=32&t;let o;return o=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(o&1<<t)}function lr(t,e){return!(t&ct.Self||t&ct.Host&&e)}class hr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ir(this._tNode,this._lView,t,void 0,e)}}function pr(t){const e=t;if(Mt(t))return()=>{const t=pr(Pt(e));return t?t():null};let n=Oe(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function dr(t){return rt(()=>{const e=t.prototype.constructor,n=e[Lt]||pr(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Lt]||pr(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function fr(t){return t.ngDebugContext}function gr(t){return t.ngOriginalError}function mr(t,...e){t.error(...e)}class yr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||mr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?fr(t)?fr(t):this._findContext(gr(t)):null}_findOriginalError(t){let e=gr(t);for(;e&&gr(e);)e=gr(e);return e}}class vr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class _r extends vr{getTypeName(){return"HTML"}}class br extends vr{getTypeName(){return"Style"}}
1class wr extends vr{getTypeName(){return"Script"}}class Cr extends vr{getTypeName(){return"URL"}}class Or extends vr{getTypeName(){return"ResourceURL"}}function xr(t){return t instanceof vr?t.changingThisBreaksApplicationSecurity:t}function Er(t,e){const n=Pr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Pr(t){return t instanceof vr&&t.getTypeName()||null}let Mr=!0,Sr=!1;function Tr(){return Sr=!0,Mr}class Ar{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class kr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Ir=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Dr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Nr(t){return(t=String(t)).match(Ir)||t.match(Dr)?t:(Tr()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Rr(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function jr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Fr=Rr("area,br,col,hr,img,wbr"),Lr=Rr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ur=Rr("rp,rt"),Vr=jr(Ur,Lr),Br=jr(Fr,jr(Lr,Rr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jr(Ur,Rr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vr),qr=Rr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zr=Rr("srcset"),Hr=jr(qr,zr,Rr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Rr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Wr=Rr("script,style,template");class Gr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Br.hasOwnProperty(e))return this.sanitizedSomething=!0,!Wr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,o=e.toLowerCase();if(!Hr.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let s=t.value;qr[o]&&(s=Nr(s)),zr[o]&&(r=s,s=(r=String(r)).split(",").map(t=>Nr(t.trim())).join(", ")),this.buf.push(" ",e,'="',Kr(s),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Br.hasOwnProperty(e)&&!Fr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Kr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const $r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qr=/([^\#-~ |!])/g;function Kr(t){return t.replace(/&/g,"&").replace($r,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Qr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Yr;function Zr(t,e){let n=null;try{Yr=Yr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ar:new kr(t)}
1(t);let r=e?String(e):"";n=Yr.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Yr.getInertBodyElement(r)}while(r!==o);const s=new Gr,a=s.sanitizeChildren(Xr(n)||n);return Tr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Xr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Xr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Jr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ti(t){const e=ni();return e?e.sanitize(Jr.HTML,t)||"":Er(t,"HTML")?xr(t):Zr(He(),Ie(t))}function ei(t){const e=ni();return e?e.sanitize(Jr.URL,t)||"":Er(t,"URL")?xr(t):Nr(Ie(t))}function ni(){const t=un();return t&&t[12]}function ri(t,e){t.__ngContext__=e}function ii(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function oi(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];
vendor: 13,857 bytes, line 1
1if(n&&"class"===i){if(i=t[r],-1!==ii(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function si(t){return 0===t.type&&"ng-template"!==t.tagName}function ai(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function ui(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(zn(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const u=e[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!ai(t,u,n)||""===u&&1===e.length){if(ci(r))return!1;s=!0}}else{const c=8&r?u:e[++a];if(8&r&&null!==t.attrs){if(!oi(t.attrs,c,n)){if(ci(r))return!1;s=!0}continue}const l=li(8&r?"class":u,i,si(t),n);if(-1===l){if(ci(r))return!1;s=!0;continue}if(""!==c){let t;t=l>o?"":i[l+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ii(e,c,0)||2&r&&c!==t){if(ci(r))return!1;s=!0}}}}else{if(!s&&!ci(r)&&!ci(u))return!1;if(s&&ci(u))continue;s=!1,r=u|1&r}}return ci(r)||s}function ci(t){return 0==(1&t)}function li(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function hi(t,e,n=!1){for(let r=0;r<e.length;r++)if(ui(t,e[r],n))return!0;return!1}function pi(t,e){return t?":not("+e.trim()+")":e}function di(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||ci(s)||(e+=pi(o,i),i=""),r=s,o=o||!ci(r);n++}return""!==i&&(e+=pi(o,i)),e}const fi={};function gi(t){const e=t[3];return Pe(e)?e[3]:e}function mi(t){return vi(t[13])}function yi(t){return vi(t[4])}function vi(t){for(;null!==t&&!Pe(t);)t=t[4];return t}function _i(t){bi(cn(),un(),In()+t,gn())}function bi(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&jn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Fn(e,r,0,n)}Dn(n)}function wi(t,e){return t<<17|e<<2}function Ci(t){return t>>17&32767}function Oi(t){return 2|t}function xi(t){return(131068&t)>>2}function Ei(t,e){return-131069&t|e<<2}function Pi(t){return 1|t}function Mi(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];xn(i),n.contentQueries(2,e[o],o)}}}function Si(t,e,n){return We(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ti(t,e,n,r,i,o,s,a,u,c){const l=e.blueprint.slice();return l[0]=i,l[2]=140|r,rn(l),l[3]=l[15]=t,l[8]=n,l[10]=s||t&&t[10],l[11]=a||t&&t[11],l[12]=u||t&&t[12]||null,l[9]=c||t&&t[9]||null,l[6]=o,l[16]=2==e.type?t[16]:l,l}function Ai(t,e,n,r,i){const o=e+20,s=t.data[o]||function(t,e,n,r,i){const o=hn(),s=dn(),a=t.data[e]=function(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=a),null!==o&&(s&&null==o.child&&null!==a.parent?o.child=a:s||(o.next=a)),a}(t,o,n,r,i);return pn(s,!0),s}function ki(t,e,n){Pn(e);try{const r=t.viewQuery;null!==r&&uo(1,r,n);const i=t.template;null!==i&&Ni(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Mi(t,e),t.staticViewQueries&&uo(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)ro(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,kn()}}function Ii(t,e,n,r){const i=e[2];if(256==(256&i))return;Pn(e);const o=gn();try{rn(e),sn.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ni(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&jn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Fn(e,n,0,null),Ln(e,0)}if(function(t){for(let e=mi(t);null!==e;e=yi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&on(r,1),n[2]|=1024}}}(e),function(t){for(let e=mi(t);null!==e;e=yi(e))for(let t=10;t<e.length;t++){const n=e[t],r=n[1];en(n)&&Ii(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Mi(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&jn(e,n)}else{const n=t.contentHooks;null!==n&&Fn(e,n,1),Ln(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,i=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,Dn(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(wn(r,i),s(2,e[i])),i++)}}}finally{Dn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)no(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&uo(2,u,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&jn(e,n)}else{const n=t.viewHooks;null!==n&&Fn(e,n,2),Ln(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,on(e[3],-1))}finally{kn()}}function Di(t,e,n,r){const i=e[10],o=!gn(),s=tn(e);try{o&&!s&&i.begin&&i.begin(),s&&ki(t,e,r),Ii(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function Ni(t,e,n,r,i){const o=In();try{Dn(-1),2&r&&e.length>20&&bi(t,e,0,gn()),n(r,i)}finally{Dn(o)}}function Ri(t,e,n){if(Me(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function ji(t,e,n){an()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Jn(n,e),ri(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=Ae(r);o&&Xi(e,n,r);const u=ur(e,t,a,n);ri(u,e),null!==s&&Ji(0,a-i,u,r,0,s),o&&(Xe(n.index,e)[8]=u)}}(t,e,n,Ke(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-20,u=sn.lFrame.currentDirectiveIndex;try{Dn(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];Cn(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Gi(r,i):s&&o.push(null)}}finally{Dn(-1),Cn(u)}}(t,e,n))}function Fi(t,e,n=Ke){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function Li(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Ui(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Ui(t,e,n,r,i,o,s,a,u,c){const l=20+r,h=l+i,p=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:fi);return n}(l,h),d="function"==typeof c?c():c;return p[1]={type:t,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:e,data:p.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:d,incompleteFirstPass:!1}}function Vi(t,e,n,r){const i=lo(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1)}function Bi(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function qi(t,e,n,r,i,o,s,a){const u=Ke(e,n);let c,l=e.inputs;!a&&null!=l&&(c=l[r])?(po(t,n,c,r,i),Se(e)&&function(t,e){const n=Xe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):2===e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,e.tagName||"",r):i,We(o)?o.setProperty(u,r,i):Hn(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}function zi(t,e,n,r){let i=!1;if(an()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];hi(n,s.selectors,!1)&&(i||(i=[]),rr(Jn(n,e),t,s.type),Ae(s)?(Qi(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){let r=0;i=!0,Yi(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}$i(t,n,o.length);let a=!1,u=!1;for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=Wn(n.mergedAttrs,c.hostAttrs),Zi(t,e,c),Ki(t.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const l=c.type.prototype;!a&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),u||!l.ngOnChanges&&!l.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),u=!0),Hi(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let u=e.directiveStart;u<n;u++){const t=r[u],n=t.inputs,c=null===i||si(e)?null:to(n,i);o.push(c),s=Bi(n,u,s),a=Bi(t.outputs,u,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),Wi(t,e,r)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=Wn(n.mergedAttrs,n.attrs),i}function Hi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Wi(t,e,n){for(let r=0;r<n;r++)e.push(fi),t.blueprint.push(fi),t.data.push(null)}function Gi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $i(t,e,n){const r=20-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function Qi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ki(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ae(e)&&(n[""]=t)}}function Yi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Zi(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Oe(n.type)),i=new Bn(r,Ae(n),null);t.blueprint.push(i),e.push(i)}function Xi(t,e,n){const r=Ke(e,t),i=Li(n),o=t[10],s=io(t,Ti(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=s}function Ji(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function to(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function eo(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function no(t,e){const n=Xe(e,t);if(en(n)){const t=n[1];80&n[2]?Ii(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=mi(e);null!==r;r=yi(r))for(let e=10;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Ii(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=Xe(n[r],e);en(i)&&i[5]>0&&t(i)}}(n)}}function ro(t,e){const n=Xe(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),ki(r,n,n[8])}function io(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function oo(t){for(;t;){t[2]|=64;const e=gi(t);if(ke(t)&&!e)return t;t=e}return null}function so(t,e,n){const r=e[10];r.begin&&r.begin();try{Ii(t,e,t.template,n)}catch(i){throw ho(e,i),i}finally{r.end&&r.end()}}function ao(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Je(n),i=r[1];Di(i,r,i.template,n)}}(t[8])}function uo(t,e,n){xn(0),e(t,n)}const co=(()=>Promise.resolve(null))();function lo(t){return t[7]||(t[7]=[])}function ho(t,e){const n=t[9],r=n?n.get(yr,null):null;r&&r.handleError(e)}function po(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=e[s],c=t.data[s];null!==c.setInput?c.setInput(u,i,r,a):u[a]=i}}function fo(t,e,n){const r=Qe(e,t),i=t[11];We(i)?i.setValue(r,n):r.textContent=n}function go(t,e,n,r,i){if(null!=r){let o,s=!1;Pe(r)?o=r:Ee(r)&&(s=!0,r=r[0]);const a=$e(r);0===t&&null!==n?null==i?Co(e,n,a):wo(e,n,a,i||null):1===t&&null!==n?wo(e,n,a,i||null):2===t?function(t,e,n){const r=xo(t,e);r&&function(t,e,n,r){We(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==$e(n)&&go(e,t,r,o,i);for(let s=10;s<n.length;s++){const i=n[s];So(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function mo(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,on(i,-1)),n.splice(r,1)}function yo(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&mo(o,r),e>0&&(t[n-1][4]=r[4]);const s=ie(t,10+e);So(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function vo(t,e){if(!(256&e[2])){const n=e[11];We(n)&&n.destroyNode&&So(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return _o(t[1],t);for(;e;){let n=null;if(Ee(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ee(e)&&_o(e[1],e),e=e[3];null===e&&(e=t),Ee(e)&&_o(e[1],e),n=e&&e[4]}e=n}}(e)}}function _o(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;
1r+=2){const t=e[n[r]];if(!(t instanceof Bn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],o="function"==typeof i?i(e):$e(e[i]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],s,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e),1===e[1].type&&We(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Pe(e[3])){n!==e[3]&&mo(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function bo(t,e,n){let r=e.parent;for(;null!=r&&(3===r.type||4===r.type);)r=(e=r).parent;if(null===r)return n[0];if(e&&4===e.type&&4&e.flags)return Ke(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==le.ShadowDom&&n!==le.Native)return null}return Ke(r,n)}function wo(t,e,n,r){We(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Co(t,e,n){We(t)?t.appendChild(e,n):e.appendChild(n)}function Oo(t,e,n,r){null!==r?wo(t,e,n,r):Co(t,e,n)}function xo(t,e){return We(t)?t.parentNode(e):e.parentNode}function Eo(t,e){return 3===t.type||4===t.type?Ke(t,e):null}function Po(t,e,n,r){const i=bo(t,r,e);if(null!=i){const t=e[11],o=Eo(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Oo(t,i,n[e],o);else Oo(t,i,n,o)}}function Mo(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;s&&0===e&&(a&&ri($e(a),r),n.flags|=4),64!=(64&n.flags)&&(3===u||4===u?(Mo(t,e,n.child,r,i,o,!1),go(e,t,i,a,o)):1===u?To(t,e,r,n,i,o):go(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function So(t,e,n,r,i,o){Mo(n,r,t.firstChild,e,i,o,!1)}function To(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++)go(e,t,i,a[u],o);else Mo(t,e,a,s[3],i,o,!0)}function Ao(t,e,n){We(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ko(t,e,n){We(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Io{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView,e=t[1];return function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push($e(s)),Pe(s))for(let e=10;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,i)}const a=r.type;if(3===a||4===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6].projection[r.projection];if(Array.isArray(o))i.push(...o);else{const n=gi(e);t(n[1],n,o,i,!0)}}r=o?r.projectionNext:r.next}return i}(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}vo(this._lView[1],this._lView)}onDestroy(t){Vi(this._lView[1],this._lView,null,t)}markForCheck(){oo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){so(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){mn(!0);try{so(t,e,n)}finally{mn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,So(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Do extends Io{constructor(t){super(t),this._view=t}detectChanges(){ao(this._view)}checkNoChanges(){!function(t){mn(!0);try{ao(t)}finally{mn(!1)}}(this._view)}get context(){return null}}let No,Ro,jo;function Fo(t,e,n){return No||(No=class extends t{}),new No(Ke(e,n))}function Lo(t,e,n,r){return Ro||(Ro=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ti(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),ki(e,n,t),new Io(n)}}),0===n.type?new Ro(r,n,Fo(e,n,r)):null}function Uo(t,e,n,r){let i;jo||(jo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}
1get element(){return Fo(e,this._hostTNode,this._hostView)}get injector(){return new hr(this._hostTNode,this._hostView)}get parentInjector(){const t=nr(this._hostTNode,this._hostView);if($n(t)){const e=Kn(t,this._hostView),n=Qn(t);return new hr(e[1].data[n+8],e)}return new hr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(te,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Pe(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new jo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],re(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,o,i);const s=function t(e,n){const r=10+e+1;if(r<n.length){const e=n[r],i=e[1].firstChild;if(null!==i)return function e(n,r){if(null!==r){const i=r.type;if(2===i)return Ke(r,n);if(0===i)return t(-1,n[r.index]);if(3===i||4===i){const i=r.child;if(null!==i)return e(n,i);{const e=n[r.index];return Pe(e)?t(-1,e):$e(e)}}{const t=n[16],i=t[6],o=gi(t),s=i.projection[r.projection];return null!=s?e(o,s):e(n,r.next)}}return null}(e,i)}return n[7]}(i,o),a=n[11],u=xo(a,o[7]);return null!==u&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,So(t,r,n,1,i,o)}(r,o[6],a,n,u,s),t.attachToViewContainerRef(this),re(o[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=yo(this._lContainer,e);n&&(ie(this._lContainer[8],e),vo(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=yo(this._lContainer,e);return n&&null!=ie(this._lContainer[8],e)?new Io(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(Pe(o))i=o;else{let t;if(3===n.type)t=$e(o);else if(t=r[11].createComment(""),ke(r)){const e=r[11],i=Ke(n,r);wo(e,xo(e,i),t,function(t,e){return We(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Po(r[1],r,t,n);r[n.index]=i=eo(o,r,t,n),io(r,i)}return new jo(i,n,r)}function Vo(t=!1){return function(t,e,n){if(!n&&Se(t)){const n=Xe(t.index,e);return new Io(n,n)}return 2===t.type||0===t.type||3===t.type||4===t.type?new Io(e[16],e):null}(hn(),un(),t)}let Bo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qo(),t})();const qo=Vo,zo=Function,Ho=new Vt("Set Injector scope."),Wo={},Go={},$o=[];let Qo=void 0;function Ko(){return void 0===Qo&&(Qo=new Jt),Qo}function Yo(t,e=null,n=null,r){return new Zo(t,n,e||Ko(),r)}class Zo{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ne(e,n=>this.processProvider(n,t,e)),ne([t],t=>this.processInjectorType(t,[],i)),this.records.set(Bt,ts(void 0,this));const o=this.records.get(Ho);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:Ct(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=qt,n=ct.Default){this.assertNotDestroyed();const r=$t(this);try{if(!(n&ct.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Vt)&&ft(t);e=n&&this.injectableDefInScope(n)?ts(Xo(t),Wo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ct.Self?Ko():this.parent).get(t,e=n&ct.Optional&&e===qt?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(Ct(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=Ct(e);if(Array.isArray(e))i=e.map(Ct).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];
vendor: 4,975 bytes, line 1
1t.push(n+":"+("string"==typeof r?JSON.stringify(r):Ct(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(zt,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{$t(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(Ct(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Pt(t)))return!1;let r=mt(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=mt(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{ne(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];ne(r,t=>this.processProvider(t,n,r||$o))}}this.injectorDefTypes.add(o),this.records.set(o,ts(r.factory,Wo));const a=r.providers;if(null!=a&&!s){const e=t;ne(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=ns(t=Pt(t))?t:Pt(t&&t.provide);const i=function(t,e,n){return es(t)?ts(void 0,t.useValue):ts(Jo(t),Wo)}(t);if(ns(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=ts(void 0,Wo,!0),e.factory=()=>Xt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Wo&&(e.value=Go,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Xo(t){const e=ft(t),n=null!==e?e.factory:Oe(t);if(null!==n)return n;const r=mt(t);if(null!==r)return r.factory;if(t instanceof Vt)throw new Error(`Token ${Ct(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=oe(e,"?");throw new Error(`Can't resolve all parameters for ${Ct(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[yt]||t[bt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Jo(t,e,n){let r=void 0;if(ns(t)){const e=Pt(t);return Oe(e)||Xo(e)}if(es(t))r=()=>Pt(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Yt(Pt(t.useExisting));else{const e=Pt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Oe(e)||Xo(e);r=()=>new e(...Xt(t.deps))}var i;return r}function ts(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function es(t){return null!==t&&"object"==typeof t&&Ht in t}function ns(t){return"function"==typeof t}const rs=function(t,e,n){return function(t,e=null,n=null,r){const i=Yo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let is=(()=>{class t{static create(t,e){return Array.isArray(t)?rs(t,e,""):rs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=qt,t.NULL=new Jt,t.\u0275prov=pt({token:t,providedIn:"any",factory:()=>Yt(Bt)}),t.__NG_ELEMENT_ID__=-1,t})();const os=new Vt("AnalyzeForEntryComponents");function ss(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?i=Ot(i,t):2==o&&(r=Ot(r,t+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function as(t,e){const n=Je(t)[1],r=n.data.length-1;Rn(n,{directiveStart:r,directiveEnd:r+1})}function us(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(Ae(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=cs(t.inputs),e.declaredInputs=cs(t.declaredInputs),e.outputs=cs(t.outputs);const n=i.hostBindings;n&&ps(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&ls(t,o),s&&hs(t,s),ht(t.inputs,i.inputs),ht(t.declaredInputs,i.declaredInputs),ht(t.outputs,i.outputs),Ae(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===us&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];
1i.hostVars=e+=i.hostVars,i.hostAttrs=Wn(i.hostAttrs,n=Wn(n,i.hostAttrs))}}(r)}function cs(t){return t===he?{}:t===pe?[]:t}function ls(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function hs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function ps(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let ds=null;function fs(){if(!ds){const t=It.Symbol;if(t&&t.iterator)ds=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(ds=n)}}}return ds}class gs{constructor(t){this.wrapped=t}static wrap(t){return new gs(t)}static unwrap(t){return gs.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof gs}}function ms(t){return!!ys(t)&&(Array.isArray(t)||!(t instanceof Map)&&fs()in t)}function ys(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function vs(t,e,n){return t[e]=n}function _s(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function bs(t,e,n,r){const i=_s(t,e,n);return _s(t,e+1,r)||i}function ws(t,e,n,r){const i=un();return _s(i,_n(),e)&&(cn(),function(t,e,n,r,i,o){const s=Ke(t,e),a=e[11];if(null==r)We(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?Ie(r):i(r,t.tagName||"",n);We(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}(Nn(),i,t,e,n,r)),ws}function Cs(t,e,n,r){return _s(t,_n(),n)?e+Ie(n)+r:fi}function Os(t,e,n,r,i,o,s,a){const u=un(),c=cn(),l=t+20,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,u){const c=e.consts,l=Ai(e,t,0,s||null,nn(c,a));zi(e,n,l,nn(c,u)),Rn(e,l);const h=l.tViews=Ui(2,l,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(t,c,u,e,n,r,i,o,s):c.data[l];pn(h,!1);const p=u[11].createComment("");Po(c,u,p,h),ri(p,u),io(u,u[l]=eo(p,u,p,h)),Te(h)&&ji(c,u,h),null!=s&&Fi(u,h,a)}function xs(t){return Ze(sn.lFrame.contextLView,t)}function Es(t,e=ct.Default){const n=un();return null===n?Yt(t,e):ir(hn(),n,Pt(t),e)}function Ps(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const i=n[r];if(zn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}(hn(),t)}function Ms(t,e,n){const r=un();return _s(r,_n(),e)&&qi(cn(),Nn(),r,t,e,r[11],n,!1),Ms}function Ss(t,e,n,r,i){const o=i?"class":"style";po(t,n,e.inputs[o],o,r)}function Ts(t,e,n,r){const i=un(),o=cn(),s=20+t,a=i[11],u=i[s]=Si(e,a,sn.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,u=Ai(e,t,2,i,nn(a,o));return zi(e,n,u,nn(a,s)),null!==u.attrs&&ss(u,u.attrs,!1),null!==u.mergedAttrs&&ss(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,i,0,e,n,r):o.data[s];pn(c,!0);const l=c.mergedAttrs;null!==l&&qn(a,u,l);const h=c.classes;null!==h&&ko(a,u,h);const p=c.styles;null!==p&&Ao(a,u,p),Po(o,i,u,c),0===sn.lFrame.elementDepthCount&&ri(u,i),sn.lFrame.elementDepthCount++,Te(c)&&(ji(o,i,c),Ri(o,c,i)),null!==r&&Fi(i,c)}function As(){let t=hn();dn()?fn():(t=t.parent,pn(t,!1));const e=t;sn.lFrame.elementDepthCount--;const n=cn();n.firstCreatePass&&(Rn(n,t),Me(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ss(n,e,un(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ss(n,e,un(),e.stylesWithoutHost,!1)}function ks(t,e,n,r){Ts(t,e,n,r),As()}function Is(t,e,n){const r=un(),i=cn(),o=t+20,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=nn(o,r),a=Ai(e,t,3,"ng-container",s);return null!==s&&ss(a,s,!0),zi(e,n,a,nn(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,r,e,n):i.data[o];pn(s,!0);const a=r[o]=r[11].createComment("");Po(i,r,a,s),ri(a,r),Te(s)&&(ji(i,r,s),Ri(i,s,r)),null!=n&&Fi(r,s)}function Ds(){let t=hn();const e=cn();dn()?fn():(t=t.parent,pn(t,!1)),e.firstCreatePass&&(Rn(e,t),Me(t)&&e.queries.elementEnd(t))}function Ns(){return un()}function Rs(t){return!!t&&"function"==typeof t.then}function js(t){return!!t&&"function"==typeof t.subscribe}
vendor: 24,038 bytes, line 1
1function Fs(t,e,n=!1,r){const i=un(),o=cn(),s=hn();return function(t,e,n,r,i,o,s=!1,a){const u=Te(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=lo(e);let h=!0;if(2===r.type){const p=Ke(r,e),d=a?a(p):he,f=d.target||p,g=l.length,m=a?t=>a($e(t[r.index])).target:r.index;if(We(n)){let s=null;if(!a&&u&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=Us(r,e,o,!1);const t=n.listen(d.name||f,i,o);l.push(o,t),c&&c.push(i,m,g,g+1)}}else o=Us(r,e,o,!0),f.addEventListener(i,o,s),l.push(o),c&&c.push(i,m,g,s)}const p=r.outputs;let d;if(h&&null!==p&&(d=p[i])){const t=d.length;if(t)for(let n=0;n<t;n+=2){const t=e[d[n]][d[n+1]].subscribe(o),s=l.length;l.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,t,e,n,r),Fs}function Ls(t,e,n){try{return!1!==e(n)}catch(r){return ho(t,r),!1}}function Us(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?Xe(t.index,e):e;0==(32&e[2])&&oo(s);let a=Ls(e,n,o),u=i.__ngNextListenerFn__;for(;u;)a=Ls(e,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Vs(t=1){return function(t){return(sn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,sn.lFrame.contextLView))[8]}(t)}function Bs(t,e,n,r,i){const o=un(),s=Cs(o,e,n,r);return s!==fi&&qi(cn(),Nn(),o,t,s,o[11],i,!1),Bs}const qs=[];function zs(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?Ci(o):xi(o),u=!1;for(;0!==a&&(!1===u||s);){const n=t[a+1];Hs(t[a],e)&&(u=!0,t[a+1]=r?Pi(n):Oi(n)),a=r?Ci(n):xi(n)}u&&(t[n+1]=r?Oi(o):Pi(o))}function Hs(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ue(t,e)>=0}function Ws(t,e,n){return $s(t,e,n,!1),Ws}function Gs(t,e){return $s(t,e,null,!0),Gs}function $s(t,e,n,r){const i=un(),o=cn(),s=bn(2);o.firstUpdatePass&&function(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[In()+20],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=sn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Ks(n=Qs(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=Qs(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==xi(r))return t[Ci(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Qs(null,t,e,n[1],r),n=Ks(n,e.attrs,r),function(t,e,n,r){t[Ci(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Ks(r,t[o].hostAttrs,n);return Ks(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ci(s),u=xi(s);t[r]=n;let c,l=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ue(t,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){const e=Ci(t[a+1]);t[r+1]=wi(e,a),0!==e&&(t[e+1]=Ei(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=wi(a,0),0!==a&&(t[a+1]=Ei(t[a+1],r)),a=r;else t[r+1]=wi(u,0),0===a?a=r:t[u+1]=Ei(t[u+1],r),u=r;l&&(t[r+1]=Oi(t[r+1])),zs(t,c,r,!0),zs(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ue(o,e)>=0&&(n[r+1]=Pi(n[r+1]))}(e,c,t,r,o),s=wi(a,u),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}(o,t,s,r),e!==fi&&_s(i,s,e)&&function(t,e,n,r,i,o,s,a){if(2!==e.type)return;const u=t.data,c=u[a+1];Zs(1==(1&c)?Ys(u,e,n,i,xi(c),s):void 0)||(Zs(o)||function(t){return 2==(2&t)}(c)&&(o=Ys(u,null,n,i,a,s)),function(t,e,n,r,i){const o=We(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,e):n.style.removeProperty(r):o?t.setStyle(n,r,i,e):n.style.setProperty(r,i)}}(r,s,Qe(In(),n),i,o))}(o,o.data[In()+20],i,i[11],t,i[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Ct(xr(t)))),t}(e,n),r,s)}function Qs(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Ks(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ks(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),se(t,s,!!n||e[++o]))}return void 0===t?null:t}function Ys(t,e,n,r,i,o){const s=null===e;let a=void 0;for(;i>0;){const e=t[i],o=Array.isArray(e),u=o?e[1]:e,c=null===u;let l=n[i+1];l===fi&&(l=c?qs:void 0);let h=c?ae(l,r):u===r?l:void 0;if(o&&!Zs(h)&&(h=ae(e,r)),Zs(h)&&(a=h,s))return a;const p=t[i+1];i=s?Ci(p):xi(p)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=ae(t,r))}return a}function Zs(t){return void 0!==t}function Xs(t,e=""){const n=un(),r=cn(),i=t+20,o=r.firstCreatePass?Ai(r,t,2,null,null):r.data[i],s=n[i]=function(t,e){return We(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Po(r,n,s,o),pn(o,!1)}function Js(t){return ta("",t,""),Js}function ta(t,e,n){const r=un(),i=Cs(r,t,e,n);return i!==fi&&fo(r,In(),i),ta}function ea(t,e,n,r,i){const o=un(),s=function(t,e,n,r,i,o){const s=bs(t,vn(),n,i);return bn(2),s?e+Ie(n)+r+Ie(i)+o:fi}(o,t,e,n,r,i);return s!==fi&&fo(o,In(),s),ea}function na(t,e,n){const r=un();return _s(r,_n(),e)&&qi(cn(),Nn(),r,t,e,r[11],n,!0),na}const ra=void 0;var ia=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ra,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ra,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let oa={};function sa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=aa(e);if(n)return n;const r=e.split("-")[0];if(n=aa(r),n)return n;if("en"===r)return ia;throw new Error(`Missing locale data for the locale "${t}".`)}function aa(t){return t in oa||(oa[t]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[t]),oa[t]}var ua=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ca="en-US";function la(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ca=t.toLowerCase().replace(/_/g,"-"))}function ha(t,e,n,r,i){if(t=Pt(t),Array.isArray(t))for(let o=0;o<t.length;o++)ha(t[o],e,n,r,i);else{const o=cn(),s=un();let a=ns(t)?t:Pt(t.provide),u=Jo(t);const c=hn(),l=1048575&c.providerIndexes,h=c.directiveStart,p=c.providerIndexes>>20;if(ns(t)||!t.multi){const r=new Bn(u,i,Es),d=fa(a,e,i?l:l+p,h);-1===d?(rr(Jn(c,s),o,a),pa(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[d]=r,s[d]=r)}else{const d=fa(a,e,l+p,h),f=fa(a,e,l,l+p),g=d>=0&&n[d],m=f>=0&&n[f];if(i&&!m||!i&&!g){rr(Jn(c,s),o,a);const l=function(t,e,n,r,i){const o=new Bn(t,n,Es);return o.multi=[],o.index=e,o.componentProviders=0,da(o,i,r&&!n),o}(i?ma:ga,n.length,i,r,u);!i&&m&&(n[f].providerFactory=l),pa(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(l),s.push(l)}else pa(o,t,d>-1?d:f,da(n[i?f:d],u,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function pa(t,e,n,r){const i=ns(e);if(i||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function da(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function fa(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function ga(t,e,n,r){return ya(this.multi,[])}function ma(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ur(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),ya(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],ya(i,o);return o}function ya(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function va(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=cn();if(r.firstCreatePass){const i=Ae(t);ha(n,r.data,r.blueprint,i,!0),ha(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class _a{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${Ct(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let wa=(()=>{class t{}return t.NULL=new ba,t})(),Ca=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Oa(t),t})();const Oa=function(t){return Fo(t,hn(),un())};class xa{}var Ea=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ma(),t})();const Ma=function(){const t=un(),e=Xe(hn().index,t);return function(t){const e=t[11];if(We(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ee(e)?e:t)};let Sa=(()=>{class t{}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>null}),t})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Aa=new Ta("10.2.5");class ka{constructor(){}supports(t){return ms(t)}create(t){return new Da(t)}}const Ia=(t,e)=>e;class Da{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ia}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Fa(n,r,i)?e:n,s=Fa(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ms(t))throw new Error(`Error trying to diff '${Ct(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[fs()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Na(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ja),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ja),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Na{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ra{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ja{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ra,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fa(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class La{constructor(){}supports(t){return t instanceof Map||ys(t)}create(){return new Ua}}class Ua{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ys(t)))throw new Error(`Error trying to diff '${Ct(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Va(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Va{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ut,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>new t([new ka])}),t})(),qa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ut,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>new t([new La])}),t})();const za=[new La],Ha=new Ba([new ka]),Wa=new qa(za);let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$a(t,Ca),t})();const $a=function(t,e){return Lo(t,e,hn(),un())};let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ka(t,Ca),t})();const Ka=function(t,e){return Uo(t,e,hn(),un())},Ya={};class Za extends wa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ce(t);return new tu(e,this.ngModule)}}function Xa(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ja=new Vt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ne});class tu extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(di).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Xa(this.componentDef.inputs)}get outputs(){return Xa(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,Ya,i);return o!==Ya||r===Ya?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(xa,Ge),s=i.get(Sa,null),a=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(We(t))return t.selectRootElement(e,n===le.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Si(u,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Ne,clean:co,playerHandler:null,flags:0}
1,p=Ui(0,null,null,1,0,null,null,null,null,null),d=Ti(null,p,h,l,null,null,o,a,s,i);let f,g;Pn(d);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=Ai(s,0,2,null,null),u=a.mergedAttrs=e.hostAttrs;null!==u&&(ss(a,u,!0),null!==t&&(qn(i,t,u),null!==a.classes&&ko(i,t,a.classes),null!==a.styles&&Ao(i,t,a.styles)));const c=r.createRenderer(t,e),l=Ti(n,Li(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return s.firstCreatePass&&(rr(Jn(a,n),s,e.type),Qi(s,a),Yi(a,n.length,1)),io(n,l),n[20]=l}(c,this.componentDef,d,o,a);if(c)if(n)qn(a,c,["ng-version",Aa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!ci(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&qn(a,c,t),e&&e.length>0&&ko(a,c,e.join(" "))}if(g=Ye(p,0),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}f=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=hn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$i(t,r,1),Zi(t,e,n));const i=ur(e,t,e.length-1,r);ri(i,e);const o=Ke(r,e);return o&&ri(o,e),i}(o,n,e);r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=hn();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Dn(a.index-20);const t=n[1];Hi(t,e),Wi(t,n,e.hostVars),Gi(e,s)}return s}(t,this.componentDef,d,h,[as]),ki(p,d,null)}finally{kn()}return new eu(this.componentType,f,Fo(Ca,g,d),d,g)}}class eu extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Do(r),this.componentType=t}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const nu=new Map;class ru extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Za(this);const n=xe(t),r=t[Ft]||null;r&&la(r),this._bootstrapComponents=Re(n.bootstrap),this._r3Injector=Yo(t,e,[{provide:te,useValue:this},{provide:wa,useValue:this.componentFactoryResolver}],Ct(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=is.THROW_IF_NOT_FOUND,n=ct.Default){return t===is||t===te||t===Bt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class iu extends ee{constructor(t){super(),this.moduleType=t,null!==xe(t)&&function(t){const e=new Set;!function t(n){const r=xe(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Ct(e)} vs ${Ct(e.name)}`)}(i,nu.get(i),n),nu.set(i,n));const o=Re(r.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new ru(this.moduleType,t)}}function ou(t,e,n,r){return uu(un(),yn(),t,e,n,r)}function su(t,e,n,r,i){return cu(un(),yn(),t,e,n,r,i)}function au(t,e){const n=t[e];return n===fi?void 0:n}function uu(t,e,n,r,i,o){const s=e+n;return _s(t,s,i)?vs(t,s+1,o?r.call(o,i):r(i)):au(t,s+1)}function cu(t,e,n,r,i,o,s){const a=e+n;return bs(t,a,i,o)?vs(t,a+2,s?r.call(s,i,o):r(i,o)):au(t,a+2)}function lu(t,e){const n=cn();let r;const i=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Oe(r.type)),s=Qt(Es);try{const e=Zn(!1),r=o();return Zn(e),function(t,e,n,r){const i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(n,un(),t,r),r}finally{Qt(s)}}function hu(t,e,n){const r=un(),i=Ze(r,t);return du(r,pu(r,t)?uu(r,yn(),e,i.transform,n,i):i.transform(n))}function pu(t,e){return t[1].data[e+20].pure}function du(t,e){return gs.isWrapped(e)&&(e=gs.unwrap(e),t[vn()]=fi),e}const fu=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()}
1)):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(r,i,o);return t instanceof m&&t.add(s),s}};function gu(){return this._results[fs()]()}class mu{constructor(){this.dirty=!0,this._results=[],this.changes=new fu,this.length=0;const t=fs(),e=mu.prototype;e[t]||(e[t]=gu)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class yu{constructor(t){this.queryList=t,this.matches=null}clone(){return new yu(this.queryList)}setDirty(){this.queryList.setDirty()}}class vu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new vu(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Su(t,e).matches&&this.queries[e].setDirty()}}class _u{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class bu{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new bu(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class wu{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new wu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&3===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(t,e,Cu(e,i)),this.matchTNodeWithReadOption(t,e,ar(e,t,i,!1,!1))}else n===Ga?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ar(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ca||r===Qa||r===Ga&&0===e.type)this.addMatch(e.index,-2);else{const n=ar(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Cu(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Ou(t,e,n,r){return-1===n?function(t,e){return 2===t.type||3===t.type?Fo(Ca,t,e):0===t.type?Lo(Ga,Ca,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ca?Fo(Ca,e,t):n===Ga?Lo(Ga,Ca,e,t):n===Qa?Uo(Qa,Ca,e,t):void 0}(t,e,r):ur(t,t[1],n,e)}function xu(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:Ou(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function Eu(t){const e=un(),n=cn(),r=On();xn(r+1);const i=Su(n,r);if(t.dirty&&tn(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?function t(e,n,r,i){const o=e.queries.getByIndex(r),s=o.matches;if(null!==s){const a=xu(e,n,o,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):xu(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Pu(t,e,n){!function(t,e,n,r,i,o){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new bu),t.queries.track(new wu(e,-1))}(t,new _u(n,r,true,i)),t.staticViewQueries=!0),function(t,e){const n=new mu;Vi(t,e,n,n.destroy),null===e[19]&&(e[19]=new vu),e[19].queries.push(new yu(n))}(t,e)}(cn(),un(),t,e,n)}function Mu(){return t=un(),e=On(),t[19].queries[e].queryList;var t,e}function Su(t,e){return t.queries.getByIndex(e)}function Tu(t,e){return Lo(Ga,Ca,t,e)}const Au=new Vt("Application Initializer");let ku=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}
vendor: 9,881 bytes, line 1
1runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Rs(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Yt(Au,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Iu=new Vt("AppId"),Du={provide:Iu,useFactory:function(){return`${Nu()}${Nu()}${Nu()}`},deps:[]};function Nu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ru=new Vt("Platform Initializer"),ju=new Vt("Platform ID"),Fu=new Vt("appBootstrapListener");let Lu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Uu=new Vt("LocaleId"),Vu=new Vt("DefaultCurrencyCode");class Bu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const qu=function(t){return new iu(t)},zu=qu,Hu=function(t){return Promise.resolve(qu(t))},Wu=function(t){const e=qu(t),n=Re(xe(t).declarations).reduce((t,e)=>{const n=Ce(e);return n&&t.push(new tu(n)),t},[]);return new Bu(e,n)},Gu=Wu,$u=function(t){return Promise.resolve(Wu(t))};let Qu=(()=>{class t{constructor(){this.compileModuleSync=zu,this.compileModuleAsync=Hu,this.compileModuleAndAllComponentsSync=Gu,this.compileModuleAndAllComponentsAsync=$u}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Ku=(()=>Promise.resolve(0))();function Yu(t){"undefined"==typeof Zone?Ku.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Zu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fu(!1),this.onMicrotaskEmpty=new fu(!1),this.onStable=new fu(!1),this.onError=new fu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=It.requestAnimationFrame,e=It.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(It,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ec(t),tc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ec(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return nc(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),rc(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return nc(t),e.invoke(r,i,o,s,a)}finally{rc(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,ec(t),tc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Zu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ju,Xu,Xu);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Xu(){}const Ju={};function tc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ec(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function nc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rc(t){t._nesting--,tc(t)}class ic{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fu,this.onMicrotaskEmpty=new fu,this.onStable=new fu,this.onError=new fu}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let oc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Zu.assertNotInAngularZone(),Yu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Yu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),sc=(()=>{class t{constructor(){this._applications=new Map,cc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return cc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class ac{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let uc,cc=new ac;const lc=new Vt("AllowMultipleToken");class hc{constructor(t,e){this.name=t,this.token=e}}function pc(t,e,n=[]){const r="Platform: "+e,i=new Vt(r);return(e=[])=>{let o=dc();if(!o||o.injector.get(lc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Ho,useValue:"platform"});!function(t){if(uc&&!uc.destroyed&&!uc.injector.get(lc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uc=t.get(fc);const e=t.get(Ru,null);e&&e.forEach(t=>t())}(is.create({providers:t,name:r}))}return function(t){const e=dc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function dc(){return uc&&!uc.destroyed?uc:null}let fc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ic:("zone.js"===t?void 0:t)||new Zu({enableLongStackTrace:Tr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Zu,useValue:n}];return n.run(()=>{const e=is.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(yr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>yc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return Rs(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(ku);
1return t.runInitializers(),t.donePromise.then(()=>(la(i.injector.get(Uu,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=gc({},e);return function(t,e,n){const r=new iu(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(mc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${Ct(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Yt(is))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function gc(t,e){return Array.isArray(e)?e.reduce(gc,t):Object.assign(Object.assign({},t),e)}let mc=(()=>{class t{constructor(t,e,n,r,i,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Tr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new O(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new O(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Zu.assertNotInAngularZone(),Yu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Zu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return A(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof O?t[0]:Q(e)(K(t,n))}(s,a.pipe(t=>{return Y()((e=nt,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,tt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(is.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(oc,null);return o&&i.injector.get(sc).registerApplication(i.location.nativeElement,o),this._loadComponent(i),Tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Fu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),yc(this.components,t)}
1ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zu),Yt(Lu),Yt(is),Yt(yr),Yt(wa),Yt(ku))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class vc{}class _c{}const bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let wc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Cc(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Cc(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Qu),Yt(_c,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Cc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Oc=pc(null,"core",[{provide:ju,useValue:"unknown"},{provide:fc,deps:[is]},{provide:sc,deps:[]},{provide:Lu,deps:[]}]),xc=[{provide:mc,useClass:mc,deps:[Zu,Lu,is,yr,wa,ku]},{provide:Ja,deps:[Zu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ku,useClass:ku,deps:[[new st,Au]]},{provide:Qu,useClass:Qu,deps:[]},Du,{provide:Ba,useFactory:function(){return Ha},deps:[]},{provide:qa,useFactory:function(){return Wa},deps:[]},{provide:Uu,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new ot(Uu),new st,new ut]]},{provide:Vu,useValue:"USD"}];let Ec=(()=>{class t{constructor(t){}}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(mc))},providers:xc}),t})();const Pc={apiKey:"AIzaSyCDGnpoYVB7Xq0ZEsQ0UmSbFUDo1kzdkjc",authDomain:"virtualceo-io.firebaseapp.com",databaseURL:"https://virtualceo-io.firebaseio.com",projectId:"virtualceo-io",storageBucket:"virtualceo-io.appspot.com",messagingSenderId:"570527473700",appId:"1:570527473700:web:c053d0c14405b679a6f8b1",measurementId:"G-PPPVPSM0PK"},Mc={accessToken:"czhf5j-7OchXCHdT0qI1DgiyVjcJso98GsE4hkqa4bo",host:"cdn.contentful.com",space:"tl66n0f8xpst"},Sc="https://us-central1-virtualceo-io.cloudfunctions.net";let Tc=null;function Ac(){return Tc}const kc=new Vt("DocumentToken");let Ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:Dc,token:t,providedIn:"platform"}),t})();function Dc(){return Yt(Rc)}const Nc=new Vt("Location Initialized");let Rc=(()=>{class t extends Ic{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Ac().getLocation(),this._history=Ac().getHistory()}getBaseHrefFromDOM(){return Ac().getBaseHref(this._doc)}onPopState(t){Ac().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Ac().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){jc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){jc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc))},t.\u0275prov=pt({factory:Fc,token:t,providedIn:"platform"}),t})();function jc(){return!!window.history.pushState}function Fc(){return new Rc(Yt(kc))}function Lc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Uc(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Vc(t){return t&&"?"!==t[0]?"?"+t:t}let Bc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:qc,token:t,providedIn:"root"}),t})();function qc(t){const e=Yt(kc).location;return new Hc(Yt(Ic),e&&e.origin||"")}const zc=new Vt("appBaseHref");let Hc=(()=>{class t extends Bc{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Lc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Vc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+Vc(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+Vc(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ic),Yt(zc,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Wc=(()=>{class t extends Bc{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Lc(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+Vc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+Vc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ic),Yt(zc,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Gc=(()=>{class t{constructor(t,e){this._subject=new fu,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Uc(Qc(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Vc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Qc(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vc(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vc(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Bc),Yt(Ic))},t.normalizeQueryParams=Vc,t.joinWithSlash=Lc,t.stripTrailingSlash=Uc,t.\u0275prov=pt({factory:$c,token:t,providedIn:"root"}),t})();function $c(){return new Gc(Yt(Bc),Yt(Ic))}function Qc(t){return t.replace(/\/index.html$/,"")}var Kc=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),Yc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Zc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Xc(t,e){const n=sa(t),r=n[ua.NumberSymbols][e];if(void 0===r){if(e===Zc.CurrencyDecimal)return n[ua.NumberSymbols][Zc.Decimal];if(e===Zc.CurrencyGroup)return n[ua.NumberSymbols][Zc.Group]}return r}const Jc=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function tl(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class el{}let nl=(()=>{class t extends el{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return sa(t)[ua.PluralCase]}(e||this.locale)(t)){case Yc.Zero:return"zero";case Yc.One:return"one";case Yc.Two:return"two";case Yc.Few:return"few";case Yc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Uu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function rl(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let il=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ms(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>
vendor: 4,548 bytes, line 1
1{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ct(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Es(Ba),Es(qa),Es(Ca),Es(Pa))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ol{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let sl=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Tr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ol(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new al(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new al(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Es(Qa),Es(Ga),Es(Ba))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class al{constructor(t,e){this.record=t,this.view=e}}let ul=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new cl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ll("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ll("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Es(Qa),Es(Ga))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class cl{constructor(){this.$implicit=null,this.ngIf=null}}function ll(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ct(e)}'.`)}function hl(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Ct(t)}'`)}const pl
vendor: 7,071 bytes, line 1
1=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let
vendor: 9,594 bytes, line 1
1dl=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw hl(t,e);return e.replace(pl,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=we({name:"titlecase",type:t,pure:!0}),t})(),fl=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(function(t){return null==t||""===t||t!=t}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,r,i,o,s=!1){let a="",u=!1;if(isFinite(t)){let c=function(t){let e,n,r,i,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(s.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let l=e.minInt,h=e.minFrac,p=e.maxFrac;if(o){const t=o.match(Jc);if(null===t)throw new Error(o+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(l=tl(e)),null!=n&&(h=tl(n)),null!=r?p=tl(r):null!=n&&h>p&&(p=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen;const o=Math.min(Math.max(e,i),n);let s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let t=s;t<r.length;t++)r[t]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let t=1;t<s;t++)r[t]=0}if(a>=5)if(s-1<0){for(let e=0;e>s;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let u=0!==o;const c=e+t.integerLen,l=r.reduceRight((function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,u&&(0===r[n]&&n>=c?r.pop():u=!1),e>=10?1:0}),0);l&&(r.unshift(l),t.integerLen++)}(c,h,p);let d=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(u=d.every(t=>!t);f<l;f++)d.unshift(0);for(;f<0;f++)d.unshift(0);f>0?m=d.splice(f,d.length):(m=d,d=[0]);const y=[];for(d.length>=e.lgSize&&y.unshift(d.splice(-e.lgSize,d.length).join(""));d.length>e.gSize;)y.unshift(d.splice(-e.gSize,d.length).join(""));d.length&&y.unshift(d.join("")),a=y.join(Xc(n,r)),m.length&&(a+=Xc(n,i)+m.join("")),g&&(a+=Xc(n,Zc.Exponential)+"+"+g)}else a=Xc(n,Zc.Infinity);return a=t<0&&!u?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let l=0;l<u.length;l++){const t=u.charAt(l);"0"===t?n.minFrac=n.maxFrac=l+1:"#"===t?n.maxFrac=l+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const t=i.length-n.posPre.length-n.posSuf.length,e=o.indexOf("#");n.negPre=o.substr(0,e).replace(/'/g,""),n.negSuf=o.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return sa(t)[ua.NumberFormats][e]}(e,Kc.Decimal),Xc(e,Zc.MinusSign)),e,Zc.Group,Zc.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(e),r,n)}catch(i){throw hl(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(Es(Uu))},t.\u0275pipe=we({name:"number",type:t,pure:!0}),t})(),gl=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:el,useClass:nl}]}),t})();function ml(t){return"browser"===t}function yl(t){return"server"===t}let vl=(()=>{class t{}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>new _l(Yt(kc),window,Yt(yr))}),t})();class _l{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=bl(this.window.history)||bl(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function bl(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class wl extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new wl,Tc||(Tc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Ol||(Ol=document.querySelector("base"),Ol)?Ol.getAttribute("href"):null;return null==e?null:(n=e,Cl||(Cl=document.createElement("a")),Cl.setAttribute("href",n),"/"===Cl.pathname.charAt(0)?Cl.pathname:"/"+Cl.pathname);var n}resetBaseElement(){Ol=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return rl(document.cookie,t)}}let Cl,Ol=null;const xl=new Vt("TRANSITION_ID"),El=[{provide:Au,useFactory:function(t,e,n){return()=>{n.get(ku).donePromise.then(()=>{const n=Ac();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[xl,kc,is],multi:!0}];class Pl{static init(){var t;t=new Pl,cc=t}addToWindow(t){It.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},It.getAllAngularTestabilities=()=>t.getAllTestabilities(),It.getAllAngularRootElements=()=>t.getAllRootElements(),It.frameworkStabilizers||(It.frameworkStabilizers=[]),It.frameworkStabilizers.push(t=>{const e=It.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Ac().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Ml=new Vt("EventManagerPlugins");let Sl=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ml),Yt(Zu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class Tl{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Ac().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let Al=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),kl=(()=>{class t extends Al{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}
vendor: 7,912 bytes, line 1
1onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Ac().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Il={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dl=/%COMP%/g;function Nl(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Nl(t,i,n):(i=i.replace(Dl,t),n.push(i))}return n}function Rl(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let jl=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Fl(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case le.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ll(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case le.Native:case le.ShadowDom:return new Ul(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Nl(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Yt(Sl),Yt(kl),Yt(Iu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class Fl{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Il[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=Il[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Il[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&Ea.DashCase?t.style.setProperty(e,n,r&Ea.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ea.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Rl(n)):this.eventManager.addEventListener(t,e,Rl(n))}}class Ll extends Fl{constructor(t,e,n,r){super(t),this.component=n;const i=Nl(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Dl,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Dl,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Ul extends Fl{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===le.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=Nl(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Vl=(()=>{class t extends Tl{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Bl=["alt","control","meta","shift"],ql={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zl={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Hl={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Wl=(()=>{class t extends Tl{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ac().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(Bl.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&zl.hasOwnProperty(e)&&(e=zl[e]))}return ql[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Bl.forEach(r=>{r!=n&&(0,Hl[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return Yt($l)},token:t,providedIn:"root"}),t})(),$l=(()=>{class t extends Gl{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Jr.NONE:return e;case Jr.HTML:return Er(e,"HTML")?xr(e):Zr(this._doc,String(e));case Jr.STYLE:return Er(e,"Style")?xr(e):e;case Jr.SCRIPT:if(Er(e,"Script"))return xr(e);throw new Error("unsafe value used in a script context");case Jr.URL:return Pr(e),Er(e,"URL")?xr(e):Nr(String(e));case Jr.RESOURCE_URL:if(Er(e,"ResourceURL"))return xr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new _r(t)}bypassSecurityTrustStyle(t){return new br(t)}bypassSecurityTrustScript(t){return new wr(t)}bypassSecurityTrustUrl(t){return new Cr(t)}bypassSecurityTrustResourceUrl(t){return new Or(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc))},t.\u0275prov=pt({factory:function(){return t=Yt(Bt),new $l(t.get(kc));var t},token:t,providedIn:"root"}),t})();const Ql=pc(Oc,"browser",[{provide:ju,useValue:"browser"},{provide:Ru,useValue:function(){wl.makeCurrent(),Pl.init()},multi:!0},{provide:kc,useFactory:function(){return function(t){ze=t}(document),document},deps:[]}]),Kl=[[],{provide:Ho,useValue:"root"},{provide:yr,useFactory:function(){return new yr},deps:[]},{provide:Ml,useClass:Vl,multi:!0,deps:[kc,Zu,ju]},{provide:Ml,useClass:Wl,multi:!0,deps:[kc]},[],{provide:jl,useClass:jl,deps:[Sl,kl,Iu]},{provide:xa,useExisting:jl},{provide:Al,useExisting:kl},{provide:kl,useClass:kl,deps:[kc]},{provide:oc,useClass:oc,deps:[Zu]}
1,{provide:Sl,useClass:Sl,deps:[Ml,Zu]},[]];let Yl=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Iu,useValue:e.appId},{provide:xl,useExisting:Iu},El]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(t,12))},providers:Kl,imports:[gl,Ec]}),t})();function Zl(t,e){return new O(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const u=H(t[a]);let c=!1;n.add(u.subscribe({next:t=>{c||(c=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&c||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;const Xl=new Vt("NgValueAccessor"),Jl={provide:Xl,useExisting:Et(()=>th),multi:!0};let th=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[va([Jl])]}),t})();const eh={provide:Xl,useExisting:Et(()=>rh),multi:!0},nh=new Vt("CompositionEventMode");let rh=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Ac()?Ac().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca),Es(nh,8))},t.\u0275dir=be({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Fs("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[va([eh])]}),t})(),ih=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),oh=(()=>{class t extends ih{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return sh(e||t)},t.\u0275dir=be({type:t,features:[us]}),t})();const sh=dr(oh);class ah extends ih{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class uh{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let ch=(()=>{class t extends uh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Es(ah,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Gs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[us]}),t})(),lh=(()=>{class t extends uh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Es(oh,2))},t.\u0275dir=be({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Gs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[us]}),t})();function hh(t){return null==t||0===t.length}function ph(t){return null!=t&&"number"==typeof t.length}const dh=new Vt("NgValidators"),fh=new Vt("NgAsyncValidators"),gh=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class mh{static min(t){return e=>{if(hh(e.value)||hh(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(hh(e.value)||hh(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return hh(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return hh(t.value)||gh.test(t.value)?null:{email:!0}}static minLength(t){return e=>hh(e.value)||!ph(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>ph(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}
1static pattern(t){if(!t)return mh.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(hh(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(yh);return 0==e.length?null:function(t){return _h(bh(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(yh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(d(e))return Zl(e,null);if(f(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zl(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zl(t=1===t.length&&d(t[0])?t[0]:t,null).pipe(V(t=>e(...t)))}return Zl(t,null)}(bh(t,e).map(vh)).pipe(V(_h))}}}function yh(t){return null!=t}function vh(t){const e=Rs(t)?H(t):t;return js(e),e}function _h(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function bh(t,e){return e.map(e=>e(t))}function wh(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const Ch={provide:Xl,useExisting:Et(()=>Oh),multi:!0};let Oh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[va([Ch])]}),t})();const xh={provide:Xl,useExisting:Et(()=>Ph),multi:!0};let Eh=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Ph=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(ah),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca),Es(Eh),Es(is))},t.\u0275dir=be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[va([xh])]}),t})();const Mh={provide:Xl,useExisting:Et(()=>Sh),multi:!0};let Sh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[va([Mh])]}),t})();const Th={provide:Xl,useExisting:Et(()=>Ah),multi:!0};let Ah=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[va([Th])]}),t})();const kh={provide:Xl,useExisting:Et(()=>Ih),multi:!0};let Ih=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};
1this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),i=this._getOptionValue(r.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[va([kh])]}),t})();function Dh(t,e){t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Nh(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Nh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Nh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Rh(t){return null!=t?mh.compose(wh(t)):null}function jh(t){return null!=t?mh.composeAsync(wh(t)):null}const Fh=[th,Sh,Oh,Ah,Ih,Ph];function Lh(t){return(qh(t)?t.validators:t)||null}function Uh(t){return Array.isArray(t)?Rh(t):t||null}function Vh(t,e){return(qh(e)?e.asyncValidators:t)||null}function Bh(t){return Array.isArray(t)?jh(t):t||null}function qh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class zh{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Uh(this._rawValidators),this._composedAsyncValidatorFn=Bh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Uh(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Bh(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}
vendor: 8,821 bytes, line 1
1),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=vh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Wh?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Gh&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new fu,this.statusChanges=new fu}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){qh(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Hh extends zh{constructor(t=null,e,n){super(Lh(e),Vh(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Wh extends zh{constructor(t,e,n){super(Lh(e),Vh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Hh?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Gh extends zh{constructor(t,e,n){super(Lh(e),Vh(n,e)),this.controls=t,this._initOb
1servables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Hh?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const $h={provide:oh,useExisting:Et(()=>Kh)},Qh=(()=>Promise.resolve(null))();let Kh=(()=>{class t extends oh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new fu,this.form=new Wh({},Rh(t),jh(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Qh.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Dh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){Qh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){Qh.then(()=>{const e=this._findContainer(t.path),n=new Wh({});(function(t,e){t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Qh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Qh.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Es(dh,10),Es(fh,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Fs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[va([$h]),us]}),t})();const Yh={provide:ah,useExisting:Et(()=>Xh)},Zh=(()=>Promise.resolve(null))();let Xh=(()=>{class t extends ah{constructor(t,e,n,r){super(),this.control=new Hh,this._registered=!1,this.update=new fu,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,r=void 0,i=void 0;return e.forEach(t=>{var e;t.constructor===rh?n=t:(e=t,Fh.some(t=>e.constructor===t)?r=t:i=t)}),i||r||n||null}(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Rh(this._rawValidators)}get asyncValidator(){return jh(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Dh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Zh.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Zh.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Es(oh,9),Es(dh,10),Es(fh,10),Es(Xl,10))},t.\u0275dir=be({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[va([Yh]),us,Le]}),t})(),Jh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const tp={provide:dh,useExisting:Et(()=>ep),multi:!0};let ep=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?mh.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&ws("required",e.required?"":null)},inputs:{required:"required"},features:[va([tp])]}),t})();const np={provide:dh,useExisting:Et(()=>rp),multi:!0};let rp=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?mh.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[va([np])]}),t})();const ip={provide:dh,useExisting:Et(()=>op),multi:!0};let op=(()=>
1{class t{constructor(){this._validator=mh.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=mh.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ws("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[va([ip]),Le]}),t})(),sp=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),ap=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Eh],imports:[sp]}),t})();class up extends m{constructor(t,e){super()}schedule(t,e=0){return this}}class cp extends up{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class lp extends cp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let hp=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class pp extends hp{constructor(t,e=hp.now){super(t,()=>pp.delegate&&pp.delegate!==this?pp.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return pp.delegate&&pp.delegate!==this?pp.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class dp extends pp{}const fp=new dp(lp),gp=new pp(cp);function mp(){}function yp(t,e,n){return function(r){return r.lift(new vp(t,e,n))}}class vp{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new _p(t,this.nextOrObserver,this.error,this.complete))}}class _p extends _{constructor(t,e,n,r){super(t),this._tapNext=mp,this._tapError=mp,this._tapComplete=mp,this._tapError=n||mp,this._tapComplete=r||mp,u(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||mp,this._tapError=e.error||mp,this._tapComplete=e.complete||mp)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}let bp=1;const wp=(()=>Promise.resolve())(),Cp={};function Op(t){return t in Cp&&(delete Cp[t],!0)}const xp={setImmediate(t){const e=bp++;return Cp[e]=!0,wp.then(()=>Op(e)&&t()),e},clearImmediate(t){Op(t)}};
1class Ep extends cp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=xp.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(xp.clearImmediate(e),t.scheduled=void 0)}}class Pp extends pp{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}const Mp=new Pp(Ep);function Sp(t){return!d(t)&&t-parseFloat(t)+1>=0}class Tp extends O{constructor(t,e=0,n=Mp){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Sp(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=Mp)}static create(t,e=0,n=Mp){return new Tp(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(Tp.dispatch,this.delayTime,{source:this.source,subscriber:t})}}class Ap{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new Tp(e,this.delay,this.scheduler).subscribe(t)}}const kp=new O(t=>t.complete());function Ip(t){return t?function(t){return new O(e=>t.schedule(()=>e.complete()))}(t):kp}function Dp(...t){let e=t[t.length-1];return A(e)?(t.pop(),z(t,e)):K(t)}let Np=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Dp(this.value);case"E":return t=this.error,new O(e=>e.error(t));case"C":return Ip()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function Rp(t,e=0){return function(n){return n.lift(new jp(t,e))}}class jp{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new Fp(t,this.scheduler,this.delay))}}class Fp extends _{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Fp.dispatch,this.delay,new Lp(t,this.destination)))}_next(t){this.scheduleMessage(Np.createNext(t))}_error(t){this.scheduleMessage(Np.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Np.createComplete()),this.unsubscribe()}}class Lp{constructor(t,e){this.notification=t,this.destination=e}}var Up=n("Wcq6");function Vp(){}class Bp{constructor(t,e=fp){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const r=this.zone;return this.delegate.schedule((function(e){r.runGuarded(()=>{t.apply(this,[e])})}),e,n)}}class qp{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Vp,{},Vp,Vp)),e.pipe(yp(n,n,n)).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class zp{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Bp(Zone.current)),this.insideAngular=t.run(()=>new Bp(Zone.current,gp))}}function Hp(t,e){return function(e){return(e=e.lift(new qp(t.ngZone))).pipe(function(t,e=0){return function(n){return n.lift(new Ap(t,e))}}(t.outsideAngular),Rp(t.insideAngular))}}const Wp=["ngOnDestroy"],Gp=new Vt("angularfire2.app.options"),$p=new Vt("angularfire2.app.nameOrConfig"),Qp=new Ta("6.0.0");function Kp(t,e,n){const r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",Up.apps.filter(t=>t&&t.name===r.name)[0]||e.runOutsideAngular(()=>Object(Up.initializeApp)(t,r))}const Yp={provide:class{},useFactory:Kp,deps:[Gp,Zu,[new st,$p]]};let Zp=(()=>{class t{constructor(t){Object(Up.registerVersion)("angularfire",Qp.full,t.toString()),Object(Up.registerVersion)("angular",Aa.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:Gp,useValue:e},{provide:$p,useValue:n}]}}}return t.\u0275mod=ve({type:t}
1),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(ju))},providers:[Yp]}),t})();function Xp(t,e){return"function"==typeof e?n=>n.pipe(Xp((n,r)=>H(t(n,r)).pipe(V((t,i)=>e(n,t,r,i))))):e=>e.lift(new Jp(t))}class Jp{constructor(t){this.project=t}call(t,e){return e.subscribe(new td(t,this.project))}}class td extends U{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const i=new k(this,e,n),o=this.destination;o.add(i),this.innerSubscription=L(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,i){this.destination.next(e)}}class ed extends S{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new nd(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new E;if(this.isStopped||this.hasError?o=m.EMPTY:(this.observers.push(t),o=new P(this,t)),r&&t.add(t=new Fp(t,r)),e)for(let s=0;s<i&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<i&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||fp).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}class nd{constructor(t,e){this.time=t,this.value=e}}function rd(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,o,s=0,a=!1,u=!1;return function(c){s++,i&&!a||(a=!1,i=new ed(t,e,r),o=c.subscribe({next(t){i.next(t)},error(t){a=!0,i.error(t)},complete(){u=!0,o=void 0,i.complete()}}));const l=i.subscribe(this);this.add(()=>{s--,l.unsubscribe(),o&&!u&&n&&0===s&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}let id=(()=>{class t{constructor(t,e,r,i){const o=new zp(i),s=Hp(o),a=Dp(void 0).pipe(Rp(o.outsideAngular),Xp(()=>i.runOutsideAngular(()=>n.e(5).then(n.bind(null,"6nsN")))),V(()=>Kp(t,i,e)),V(t=>t.auth()),rd({bufferSize:1,refCount:!1}));return this.authState=a.pipe(Rp(o.outsideAngular),Xp(t=>new O(t.onAuthStateChanged.bind(t))),s),this.user=a.pipe(Rp(o.outsideAngular),Xp(t=>new O(t.onIdTokenChanged.bind(t))),s),this.idToken=this.user.pipe(Xp(t=>t?H(t.getIdToken()):Dp(null))),this.idTokenResult=this.user.pipe(Xp(t=>t?H(t.getIdTokenResult()):Dp(null))),((t,e,n)=>new Proxy(t,{get:(r,i)=>n.runOutsideAngular(()=>{if(t[i])return t[i];if(Wp.includes(i))return()=>{};let r=e.toPromise().then(t=>{const e=t&&t[i];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>r[e],apply:(t,e,n)=>r.then(t=>t&&t(...n))})})}))(this,a,i)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Gp),Yt($p,8),Yt(ju),Yt(Zu))},t.\u0275prov=pt({factory:function(){return new t(Yt(Gp),Yt($p,8),Yt(ju),Yt(Zu))},token:t,providedIn:"any"}),t})(),od=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[id]}),t})();function sd(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new ad(t,e,n))}}class ad{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new ud(t,this.accumulator,this.seed,this.hasSeed))}}class ud extends _{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function cd(t,e){return function(n){return n.lift(new ld(t,e))}}class ld{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new hd(t,this.predicate,this.thisArg))}}class hd extends _{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}
1var pd=n("wj3C"),dd=n.n(pd),fd=n("6Joi");function gd(t,e){return function(t,e=gp){return new O(n=>{let r;return null!=e?e.schedule(()=>{r=t.onSnapshot(n)}):r=t.onSnapshot(n),function(){null!=r&&r()}})}(t,e)}function md(t,e){return gd(t,e).pipe(V(t=>({payload:t,type:"query"})))}function yd(t,e){return md(t,e).pipe(V(t=>t.payload.docChanges().map(t=>({type:t.type,payload:t}))))}function vd(t,e,n){return md(t,n).pipe(V(t=>t.payload.docChanges()),sd((t,n)=>function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":t[e.newIndex]&&t[e.newIndex].doc.ref.isEqual(e.doc.ref)||t.splice(e.newIndex,0,e);break;case"modified":(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref))&&(e.oldIndex!==e.newIndex?(t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e)):t.splice(e.newIndex,1,e));break;case"removed":t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref)&&t.splice(e.oldIndex,1)}return t}(t,e))}),t}(t,n,e),[]),V(t=>t.map(t=>({type:t.type,payload:t}))))}function _d(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}class bd{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){return t&&0!==t.length?yd(this.query,this.afs.schedulers.outsideAngular).pipe(V(e=>e.filter(e=>t.indexOf(e.type)>-1)),cd(t=>t.length>0),this.afs.keepUnstableUntilFirst):yd(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(sd((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=_d(t);return vd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return md(this.query,this.afs.schedulers.outsideAngular).pipe(V(e=>e.payload.docs.map(e=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return H(this.query.get(t)).pipe(Rp(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new wd(this.ref.doc(t),this.afs)}}class wd{constructor(t,e){this.ref=t,this.afs=e}set(t,e){return this.ref.set(t,e)}update(t){return this.ref.update(t)}delete(){return this.ref.delete()}collection(t,e){const n=this.ref.collection(t),{ref:r,query:i}=Pd(n,e);return new bd(r,i,this.afs)}snapshotChanges(){return gd(this.ref,this.afs.schedulers.outsideAngular).pipe(V(t=>({payload:t,type:"value"}))).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return this.snapshotChanges().pipe(V(t=>t.payload.data()))}get(t){return H(this.ref.get(t)).pipe(Rp(this.afs.schedulers.insideAngular))}}class Cd{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?yd(this.query,this.afs.schedulers.outsideAngular).pipe(V(e=>e.filter(e=>t.indexOf(e.type)>-1)),cd(t=>t.length>0),this.afs.keepUnstableUntilFirst):yd(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(sd((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=_d(t);return vd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return md(this.query,this.afs.schedulers.outsideAngular).pipe(V(t=>t.payload.docs.map(t=>t.data())),this.afs.keepUnstableUntilFirst)}get(t){return H(this.query.get(t)).pipe(Rp(this.afs.schedulers.insideAngular))}}const Od=new Vt("angularfire2.enableFirestorePersistence"),xd=new Vt("angularfire2.firestore.persistenceSettings"),Ed=new Vt("angularfire2.firestore.settings");function Pd(t,e=(t=>t)){return{query:e(t),ref:t}}let Md=(()=>{class t{constructor(t,e,n,r,i,o,s){this.schedulers=new zp(o),this.keepUnstableUntilFirst=Hp(this.schedulers),this.firestore=o.runOutsideAngular(()=>{const n=Kp(t,o,e);fd.registerFirestore&&Object(fd.registerFirestore)(dd.a);const i=n.firestore();return r&&i.settings(r),i}),this.persistenceEnabled$=n&&!yl(i)?o.runOutsideAngular(()=>{try{return H(this.firestore.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(t){return Dp(!1)}}):Dp(!1)}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:r,query:i}=Pd(n,e);return new bd(r,i,this)}collectionGroup(t,e){const n=e||(t=>t),r=this.firestore.collectionGroup(t);return new Cd(n(r),this)}doc(t){let e;
1return e="string"==typeof t?this.firestore.doc(t):t,new wd(e,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(Yt(Gp),Yt($p,8),Yt(Od,8),Yt(Ed,8),Yt(ju),Yt(Zu),Yt(xd,8))},t.\u0275prov=pt({factory:function(){return new t(Yt(Gp),Yt($p,8),Yt(Od,8),Yt(Ed,8),Yt(ju),Yt(Zu),Yt(xd,8))},token:t,providedIn:"any"}),t})(),Sd=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:Od,useValue:!0},{provide:xd,useValue:e}]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Md]}),t})();var Td=n("os0x"),Ad=n("S+S0"),kd=function(){function t(t,e){this.code_=Id(t),this.message_="Firebase Storage: "+e,this.serverResponse_=null,this.name_="FirebaseError"}return t.prototype.codeProp=function(){return this.code},t.prototype.codeEquals=function(t){return Id(t)===this.codeProp()},t.prototype.serverResponseProp=function(){return this.serverResponse_},t.prototype.setServerResponseProp=function(t){this.serverResponse_=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),t}();function Id(t){return"storage/"+t}function Dd(){return new kd("unknown","An unknown error occurred, please check the error payload for server response.")}function Nd(){return new kd("canceled","User canceled the upload/download.")}function Rd(){return new kd("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function jd(){return new kd("no-download-url","The given file does not have any download URLs.")}function Fd(t,e,n){return new kd("invalid-argument","Invalid argument in `"+e+"` at index "+t+": "+n)}function Ld(){return new kd("app-deleted","The Firebase app was deleted.")}function Ud(t,e){return new kd("invalid-format","String does not match format '"+t+"': "+e)}function Vd(t){throw new kd("internal-error","Internal error: "+t)}var Bd={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function qd(t){switch(t){case Bd.RAW:case Bd.BASE64:case Bd.BASE64URL:case Bd.DATA_URL:return;default:throw"Expected one of the event types: ["+Bd.RAW+", "+Bd.BASE64+", "+Bd.BASE64URL+", "+Bd.DATA_URL+"]."}}var zd=function(){return function(t,e){this.data=t,this.contentType=e||null}}();function Hd(t,e){switch(t){case Bd.RAW:return new zd(Wd(e));case Bd.BASE64:case Bd.BASE64URL:return new zd(Gd(t,e));case Bd.DATA_URL:return new zd((n=new $d(e)).base64?Gd(Bd.BASE64,n.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw Ud(Bd.DATA_URL,"Malformed data URL.")}return Wd(e)}(n.rest),new $d(e).contentType)}var n;throw Dd()}function Wd(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<t.length-1&&56320==(64512&t.charCodeAt(n+1))){var i=r,o=t.charCodeAt(++n);e.push(240|(r=65536|(1023&i)<<10|1023&o)>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else e.push(239,191,189);else 56320==(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function Gd(t,e){switch(t){case Bd.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw Ud(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case Bd.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw Ud(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(e)}catch(c){throw Ud(t,"Invalid character found")}for(var a=new Uint8Array(s.length),u=0;u<s.length;u++)a[u]=s.charCodeAt(u);return a}var $d=function(){return function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw Ud(Bd.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n,r=e[1]||null;null!=r&&(this.base64=(n=r).length>=";base64".length&&";base64"===n.substring(n.length-";base64".length),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}}(),Qd={STATE_CHANGED:"state_changed"},Kd={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Yd(t){switch(t){case"running":case"pausing":case"canceling":return Kd.RUNNING;case"paused":return Kd.PAUSED;case"success":return Kd.SUCCESS;case"canceled":return Kd.CANCELED;case"error":default:return Kd.ERROR}}function Zd(t){return null!=t}function Xd(t){return void 0!==t}function Jd(t){return"function"==typeof t}function tf(t){return"object"==typeof t}function ef(t){return tf(t)&&null!==t}function nf(t){return"string"==typeof t||t instanceof String}function rf(t){return of(t)&&Number.isInteger(t)}function of(t){return"number"==typeof t||t instanceof Number}function sf(t){return af()&&t instanceof Blob}function af(){return"undefined"!=typeof Blob}var uf=function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_E
1RROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t}({}),cf=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=uf.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=uf.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=uf.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw Vd("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),Zd(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return Zd(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw Vd("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw Vd("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw Vd("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){Zd(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){Zd(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),lf=function(){function t(){}return t.prototype.createXhrIo=function(){return new cf},t}();function hf(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function pf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=hf();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(af())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}var df=function(){function t(t,e){var n=0,r="";sf(t)?(this.data_=t,n=t.size,r=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=r}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(sf(this.data_)){var r=(o=e,s=n,(i=this.data_).webkitSlice?i.webkitSlice(o,s):i.mozSlice?i.mozSlice(o,s):i.slice?i.slice(o,s):null);return null===r?null:new t(r)}var i,o,s;return new t(new Uint8Array(this.data_.buffer,e,n-e),!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(af()){var r=e.map((function(e){return e instanceof t?e.data_:e}));return new t(pf.apply(null,r))}var i=e.map((function(t){return nf(t)?Hd(Bd.RAW,t).data:t.data_})),o=0;i.forEach((function(t){o+=t.byteLength}));var s=new Uint8Array(o),a=0;return i.forEach((function(t){for(var e=0;e<t.length;e++)s[a++]=t[e]})),new t(s,!0)},t.prototype.uploadData=function(){return this.data_},t}(),ff=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var n;try{n=t.makeFromUrl(e)}catch(r){return new t(e,"")}if(""===n.path)return n;throw new kd("invalid-default-bucket","Invalid default bucket '"+e+"'.")},t.makeFromUrl=function(e){var n=null,r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(t){t.path_=decodeURIComponent(t.path)}for(var o="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),s=[{regex:r,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+o+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],a=0;a<s.length;a++){var u=s[a],c=u.regex.exec(e);if(c){var l=c[u.indices.path];l||(l=""),n=new t(c[u.indices.bucket],l),u.postModify(n);break}}if(null==n)throw function(t){return new kd("invalid-url","Invalid URL '"+t+"'.")}(e);return n},t}();function gf(t){var e,n;try{e=JSON.parse(t)}catch(r){return null}return tf(n=e)&&!Array.isArray(n)?e:null}function mf(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function yf(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function vf(t){return"https://firebasestorage.googleapis.com/v0"+t}function _f(t){var e=encodeURIComponent,n="?";for(var r in t)t.hasOwnProperty(r)&&(n=n+(e(r)+"=")+e(t[r])+"&");return n.slice(0,-1)}function bf(t,e){return e}var wf=function(){return function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||bf}}(),Cf=null;function Of(t,e,n){var r=gf(e);return null===r?null:function(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var s=n[o];r[s.local]=s.xform(r,e[s.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new ff(t.bucket,t.fullPath);return e.makeStorageReference(n)}})}(r,t),r}(t,r,n)}function xf(t,e){for(var n={},r=e.length,i=0;i<r;i++){var o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}function Ef(t){if(!tf(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!tf(n))throw"Expected object for 'customMetadata' mapping."}else if(ef(n))throw"Mapping for '"+e+"' cannot be an object."}}function Pf(t){if(!tf(t)||!t)throw"Expected ListOptions object.";for(var e in t)if("maxResults"===e){if(!rf(t.maxResults)||t.maxResults<=0)throw"Expected maxResults to be a positive number.";if(t.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==e)throw"Unknown option: "+e;if(t.pageToken&&!nf(t.pageToken))throw"Expected pageToken to be string."}}var Mf=function(){return function(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParam
1s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();function Sf(t){if(!t)throw Dd()}function Tf(t,e){return function(n,r){var i=Of(t,r,e);return Sf(null!==i),i}}function Af(t){return function(e,n){var r;return(r=401===e.getStatus()?new kd("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new kd("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new kd("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),r}}function kf(t){var e=Af(t);return function(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=new kd("object-not-found","Object '"+t.path+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function If(t,e,n){var r=vf(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Mf(r,"GET",Tf(t,n),i);return o.errorHandler=kf(e),o}function Df(t,e,n,r,i){var o={};o.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var s=vf(e.bucketOnlyServerUrl()),a=t.maxOperationRetryTime(),u=new Mf(s,"GET",function(t,e){return function(n,r){var i=function(t,e,n){var r=gf(n);return null===r?null:function(t,e,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,o=n.prefixes;i<o.length;i++){var s=o[i].replace(/\/$/,""),a=t.makeStorageReference(new ff(e,s));r.prefixes.push(a)}if(n.items)for(var u=0,c=n.items;u<c.length;u++)a=t.makeStorageReference(new ff(e,c[u].name)),r.items.push(a);return r}(t,e,r)}(t,e,r);return Sf(null!==i),i}}(t,e.bucket),a);return u.urlParams=o,u.errorHandler=Af(e),u}function Nf(t,e,n){var r=vf(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Mf(r,"GET",function(t,e){return function(n,r){var i=Of(t,r,e);return Sf(null!==i),function(t,e){var n=gf(e);if(null===n)return null;if(!nf(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(e){var n=t.fullPath;return vf("/b/"+i(t.bucket)+"/o/"+i(n))+_f({alt:"media",token:e})}))[0]}(i,r)}}(t,n),i);return o.errorHandler=kf(e),o}function Rf(t,e,n,r){var i=vf(e.fullServerUrl()),o=xf(n,r),s=t.maxOperationRetryTime(),a=new Mf(i,"PATCH",Tf(t,r),s);return a.headers={"Content-Type":"application/json; charset=utf-8"},a.body=o,a.errorHandler=kf(e),a}function jf(t,e){var n=vf(e.fullServerUrl()),r=t.maxOperationRetryTime(),i=new Mf(n,"DELETE",(function(t,e){}),r);return i.successCodes=[200,204],i.errorHandler=kf(e),i}function Ff(t,e,n){var r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=function(t,e){return e&&e.type()||"application/octet-stream"}(0,e)),r}var Lf=function(){return function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null}}();function Uf(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){Sf(!1)}return Sf(!!n&&-1!==(e||["active"]).indexOf(n)),n}var Vf=function(){return function(t,e,n){if(Jd(t)||Zd(e)||Zd(n))this.next=t,this.error=e||null,this.complete=n||null;else{var r=t;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}}}(),Bf=function(){return function(t,e,n,r,i,o){this.bytesTransferred=t,this.totalBytes=e,this.state=n,this.metadata=r,this.task=i,this.ref=o}}();function qf(t,e,n){for(var r=e.length,i=e.length,o=0;o<e.length;o++)if(e[o].optional){r=o;break}if(!(r<=n.length&&n.length<=i))throw(s=r)===(a=i)?(u=s,c=1===s?"argument":"arguments"):(u="between "+s+" and "+a,c="arguments"),new kd("invalid-argument-count","Invalid argument count in `"+t+"`: Expected "+u+" "+c+", received "+n.length+".");var s,a,u,c;for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(l){throw l instanceof Error?Fd(o,t,l.message):Fd(o,t,l)}}var zf=function(){return function(t,e){var n=this;this.validator=function(e){n.optional&&!Xd(e)||t(e)},this.optional=!!e}}();function Hf(t,e){function n(t){if(!nf(t))throw"Expected string."}var r,i,o;return t?(i=n,o=t,r=function(t){i(t),o(t)}):r=n,new zf(r,e)}function Wf(){return new zf((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||af(
1)&&t instanceof Blob))throw"Expected Blob or File."}))}function Gf(t){return new zf(Ef,t)}function $f(t){return new zf(Pf,t)}function Qf(){return new zf((function(t){if(!(of(t)&&t>=0))throw"Expected a number 0 or greater."}))}function Kf(t,e){return new zf((function(e){if(!(null===e||Zd(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function Yf(t){return new zf((function(t){if(null!==t&&!Jd(t))throw"Expected a Function."}),t)}function Zf(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then((function(){return t.apply(void 0,e)}))}}var Xf=function(){function t(t,e,n,r,i,o){var s=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=t,this.authWrapper_=e,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_="running",this.errorHandler_=function(t){s.request_=null,s.chunkMultiplier_=1,t.codeEquals("canceled")?(s.needToFetchStatus_=!0,s.completeTransitions_()):(s.error_=t,s.transition_("error"))},this.metadataErrorHandler_=function(t){s.request_=null,t.codeEquals("canceled")?s.completeTransitions_():(s.error_=t,s.transition_("error"))},this.promise_=new Promise((function(t,e){s.resolve_=t,s.reject_=e,s.start_()}
1)),this.promise_.then(null,(function(){}))}return t.prototype.makeProgressCallback_=function(){var t=this,e=this.transferred_;return function(n){return t.updateProgress_(e+n)}},t.prototype.shouldDoResumable_=function(t){return t.size()>262144},t.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.authWrapper_.getAuthToken().then((function(n){switch(e.state_){case"running":t(n);break;case"canceling":e.transition_("canceled");break;case"pausing":e.transition_("paused")}}))},t.prototype.createResumable_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s=Ff(e,r,i),a={name:s.fullPath},u=vf(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},l=xf(s,n),h=t.maxUploadRetryTime(),p=new Mf(u,"POST",(function(t){var e;Uf(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){Sf(!1)}return Sf(nf(e)),e}),h);return p.urlParams=a,p.headers=c,p.body=l,p.errorHandler=Af(e),p}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_((function(n){var r=function(t,e,n,r){var i=t.maxUploadRetryTime(),o=new Mf(n,"POST",(function(t){var e=Uf(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){Sf(!1)}n||Sf(!1);var i=Number(n);return Sf(!isNaN(i)),new Lf(i,r.size(),"final"===e)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Af(e),o}(t.authWrapper_,t.location_,e,t.blob_),i=t.authWrapper_.makeRequest(r,n);t.request_=i,i.getPromise().then((function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.continueUpload_=function(){var t=this,e=262144*this.chunkMultiplier_,n=new Lf(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=function(t,e,n,r,i,o,s,a){var u=new Lf(0,0);if(s?(u.current=s.current,u.total=s.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new kd("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var h=u.current,p={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},d=r.slice(h,h+l);if(null===d)throw Rd();var f=e.maxUploadRetryTime(),g=new Mf(n,"POST",(function(t,n){var i,s=Uf(t,["active","final"]),a=u.current+l,c=r.size();return i="final"===s?Tf(e,o)(t,n):null,new Lf(a,c,"final"===s,i)}),f);return g.headers=p,g.body=d.uploadData(),g.progressCallback=a||null,g.errorHandler=Af(t),g}(t.location_,t.authWrapper_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(a){return t.error_=a,void t.transition_("error")}var s=t.authWrapper_.makeRequest(o,i);t.request_=s,s.getPromise().then((function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_("success")):t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_((function(e){var n=If(t.authWrapper_,t.location_,t.mappings_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_("success")}),t.metadataErrorHandler_)}))},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();s["Content-Type"]="multipart/related; boundary="+a;var u=Ff(e,r,i),c=xf(u,n),l=df.getBlob("--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+c+"\r\n--"+a+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",r,"\r\n--"
1+a+"--");if(null===l)throw Rd();var h={name:u.fullPath},p=vf(o),d=t.maxUploadRetryTime(),f=new Mf(p,"POST",Tf(t,n),d);return f.urlParams=h,f.headers=s,f.body=l.uploadData(),f.errorHandler=Af(e),f}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_("success")}),t.errorHandler_)}))},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case"canceling":case"pausing":this.state_=t,null!==this.request_&&this.request_.cancel();break;case"running":var e="paused"===this.state_;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case"paused":this.state_=t,this.notifyObservers_();break;case"canceled":this.error_=Nd(),this.state_=t,this.notifyObservers_();break;case"error":case"success":this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=Yd(this.state_);return new Bf(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==Qd.STATE_CHANGED)throw"Expected one of the event types: ["+Qd.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",s=Yf(!0).validator,a=Kf(null,!0).validator;function u(t){try{return void s(t)}catch(e){}try{if(a(t),!(Xd(t.next)||Xd(t.error)||Xd(t.complete)))throw"";return}catch(e){throw o}}var c=[Hf(i),Kf(u,!0),Yf(!0),Yf(!0)];qf("on",c,arguments);var l=this;function h(t){return function(e,n,i){null!==t&&qf("on",t,arguments);var o=new Vf(e,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function p(t){if(null===t)throw o;u(t)}var d=[Kf(p),Yf(!0),Yf(!0)],f=!(Xd(e)||Xd(n)||Xd(r));return f?h(d):h(null)(e,n,r)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(Yd(this.state_)){case Kd.SUCCESS:Zf(this.resolve_.bind(null,this.snapshot))();break;case Kd.CANCELED:case Kd.ERROR:Zf(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(Yd(this.state_)){case Kd.RUNNING:case Kd.PAUSED:t.next&&Zf(t.next.bind(t,this.snapshot))();break;case Kd.SUCCESS:t.complete&&Zf(t.complete.bind(t))();break;case Kd.CANCELED:case Kd.ERROR:t.error&&Zf(t.error.bind(t,this.error_))();break;default:t.error&&Zf(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){qf("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){qf("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){qf("cancel",[],arguments);var t="running"===this.state_||"pausing"===this.state_;return t&&this.transition_("canceling"),t},t}(),Jf=function(){function t(t,e){this.authWrapper=t,this.location=e instanceof ff?e:ff.makeFromUrl(e)}return t.prototype.toString=function(){return qf("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return function(){if(Cf)return Cf;var t=[];t.push(new wf("bucket")),t.push(new wf("generation")),t.push(new wf("metageneration")),t.push(new wf("name","fullPath",!0));var e=new wf("name");e.xform=function(t,e){return function(t){return!nf(t)||t.length<2?t:yf(t)}(e)},t.push(e);var n=new wf("size");return n.xform=function(t,e){return Zd(e)?Number(e):e},t.push(n),t.push(new wf("timeCreated")),t.push(new wf("updated")),t.push(new wf("md5Hash",null,!0)),t.push(new wf("cacheControl",null,!0)),t.push(new wf("contentDisposition",null,!0)),t.push(new wf("contentEncoding",null,!0)),t.push(new wf("contentLanguage",null,!0)),t.push(new wf("contentType",null,!0)),t.push(new wf("metadata","customMetadata",!0)),Cf=t}()},t.prototype.child=function(t){qf("child",[Hf()],arguments);var e=mf(this.location.path,t),n=new ff(this.location.bucket,e);return this.newRef(this.authWrapper,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this.location.path);if(null===t)return null;var e=new ff(this.location.bucket,t);return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new ff(this.location.bucket,"");return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return yf(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),qf("put",[Wf(),Gf(!0)],arguments),this.throwIfRoot_("put"),new Xf(this,this.authWrapper,this.location,this.mappings(),new df(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=Bd.RAW),qf("putString",[Hf(),Hf(qd,!0),Gf(!0)],arguments),this.throwIfRoot_("putString");var r=Hd(e,t),i=Object.assign({},n);return!Zd(i.contentType)&&Zd(r.contentType)&&(i.contentType=r.contentType),new Xf(this,this.authWrapper,this.location,this.mappings(),new df(r.data,!0),i)},t.prototype.delete=function(){var t=this;return qf("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(e){var n=jf(t.authWrapper,t.location);
1return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){qf("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return Object(Td.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(Td.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.list({pageToken:e})];case 1:return n=o.sent(),(r=t.prefixes).push.apply(r,n.prefixes),(i=t.items).push.apply(i,n.items),null==n.nextPageToken?[3,3]:[4,this.listAllHelper(t,n.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},t.prototype.list=function(t){qf("list",[$f(!0)],arguments);var e=this;return this.authWrapper.getAuthToken().then((function(n){var r=t||{},i=Df(e.authWrapper,e.location,"/",r.pageToken,r.maxResults);return e.authWrapper.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return qf("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(e){var n=If(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return qf("updateMetadata",[Gf()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=Rf(e.authWrapper,e.location,t,e.mappings());return e.authWrapper.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return qf("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(e){var n=Nf(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw jd();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new kd("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(t)},t}(),tg=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}(),eg=function(){function t(){this.map=new Map,this.id=-9007199254740991}return t.prototype.addRequest=function(t){var e=this,n=this.id;this.id++,this.map.set(n,t),t.getPromise().then((function(){return e.map.delete(n)}),(function(){return e.map.delete(n)}))},t.prototype.clear=function(){this.map.forEach((function(t){t&&t.cancel(!0)})),this.map.clear()},t}(),ng=function(){function t(e,n,r,i,o,s){var a;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var u=this.app_.options;Zd(u)&&(this.bucket_=t.extractBucket_(u),this.appId_=null!==(a=u.appId)&&void 0!==a?a:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=s,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new eg}return t.extractBucket_=function(t){var e=t.storageBucket||null;return null==e?null:ff.makeFromBucketSpec(e).bucket},t.prototype.getAuthToken=function(){var t=this.authProvider_.getImmediate({optional:!0});return t?t.getToken().then((function(t){return null!==t?t.accessToken:null}),(function(){return null})):Promise.resolve(null)},t.prototype.bucket=function(){if(this.deleted_)throw Ld();return this.bucket_},t.prototype.service=function(){return this.service_},t.prototype.makeStorageReference=function(t){return this.storageRefMaker_(this,t)},t.prototype.makeRequest=function(t,e){if(this.deleted_)return new tg(Ld());var n=this.requestMaker_(t,this.appId_,e,this.pool_);return this.requestMap_.addRequest(n),n},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},t.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},t.prototype.setMaxUploadRetryTime=function(t){this.maxUploadRetryTime_=t},t.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},t.prototype.setMaxOperationRetryTime=function(t){this.maxOperationRetryTime_=t},t}(),rg=function(){function t(t,e,n,r,i,o,s,a,u,c,l){var h=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=s,this.errorCallback_=a,this.progressCallback_=c,this.timeout_=u,this.pool_=l,this.promise_=new Promise((function(t,e){h.resolve_=t,h.reject_=e,h.start_()}
1))}return t.prototype.start_=function(){var t=this;function e(e,n){var r,i=t.resolve_,o=t.reject_,s=n.xhr;if(n.wasSuccessCode)try{var a=t.callback_(s,s.getResponseText());Xd(a)?i(a):i()}catch(u){o(u)}else null!==s?((r=Dd()).setServerResponseProp(s.getResponseText()),o(t.errorCallback_?t.errorCallback_(s,r):r)):o(r=n.canceled?t.appDelete_?Ld():Nd():new kd("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new ig(!1,null,!0)):this.backoffId_=function(e,n,r){var i=1,o=null,s=!1,a=0;function u(){return 2===a}var c=!1;function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];c||(c=!0,n.apply(null,t))}function h(e){o=setTimeout((function(){o=null,function(e,n){if(n)e(!1,new ig(!1,null,!0));else{var r=t.pool_.createXhrIo();t.pendingXhr_=r,null!==t.progressCallback_&&r.addUploadProgressListener(i),r.send(t.url_,t.method_,t.body_,t.headers_).then((function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(i),t.pendingXhr_=null;var r=(n=n).getErrorCode()===uf.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var s=-1!==t.successCodes_.indexOf(o);e(!0,new ig(s,n))}else{var a=n.getErrorCode()===uf.ABORT;e(!1,new ig(!1,null,a))}}))}function i(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}}(p,u())}),e)}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c)if(t)l.call.apply(l,Object(Td.__spreadArrays)([null,t],e));else{var r;u()||s?l.call.apply(l,Object(Td.__spreadArrays)([null,t],e)):(i<64&&(i*=2),1===a?(a=2,r=0):r=1e3*(i+Math.random()),h(r))}}var d=!1;function f(t){d||(d=!0,c||(null!==o?(t||(a=2),clearTimeout(o),h(0)):t||(a=1)))}return h(0),setTimeout((function(){s=!0,f(!0)}),r),f}(0,e,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=-1!==[408,429].indexOf(t),r=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||r},t}(),ig=function(){return function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n}}();function og(t,e,n,r){var i=_f(t.urlParams),o=t.url+i,s=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(s,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(s,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==dd.a?dd.a.SDK_VERSION:"AppManager")}(s),new rg(o,t.method,s,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}var sg,ag,ug=function(){function t(t,e,n,r){if(this.bucket_=null,this.authWrapper_=new ng(t,e,(function(t,e){return new Jf(t,e)}),og,this,n),this.app_=t,null!=r)this.bucket_=ff.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new ff(i,""))}this.internals_=new cg(this)}return t.prototype.ref=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(qf("ref",[Hf(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new Jf(this.authWrapper_,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{ff.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return qf("refFromURL",[Hf(e,!1)],arguments),new Jf(this.authWrapper_,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){qf("setMaxUploadRetryTime",[Qf()],arguments),this.authWrapper_.setMaxUploadRetryTime(t)},t.prototype.setMaxOperationRetryTime=function(t){qf("setMaxOperationRetryTime",[Qf()],arguments),this.authWrapper_.setMaxOperationRetryTime(t)},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),t}(),cg=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},t}();function lg(t){const e=function(t){return new O(e=>(t.on("state_changed",t=>e.next(t),t=>e.error(t),()=>e.complete()),()=>t.cancel()))}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:()=>e,percentageChanges:()=>e.pipe(V(t=>t.bytesTransferred/t.totalBytes*100))}}function hg(t,e,n){return{getDownloadURL:()=>Dp(void 0).pipe(Rp(e.outsideAngular),Xp(()=>t.getDownloadURL()),n),getMetadata:()=>Dp().pipe(Rp(e.outsideAngular),Xp(()=>t.getMetadata()),n),delete:()=>H(t.delete()),child:r=>hg(t.child(r),e,n),updateMetadata:e=>H(t.updateMetadata(e)),put:(e,n)=>lg(t.put(e,n)),putString:(e,n,r)=>lg(t.putString(e,n,r)),listAll:()=>H(t.listAll())}}ag={TaskState:Kd,TaskEvent:Qd,StringFormat:Bd,Storage:ug,Reference:Jf},(sg=dd.a).INTERNAL.registerComponent(new Ad.Component("storage",(function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new ug(n,r,new lf,e)}),"PUBLIC").setServiceProps(ag).setMultipleInstances(!0)),sg.registerVersion("@firebase/storage","0.3.35");const pg=new Vt("angularfire2.storageBucket");let dg=(()=>{class t{constructor(t,e,n,r,i){this.schedulers=new zp(i),this.keepUnstableUntilFirst=Hp(this.schedulers),this.storage=i.runOutsideAngular(()=>Kp(t,i,e).storage(n||void 0))}ref(t){return hg(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}upload(t,e,n){return hg(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Gp),Yt($p,8),Yt(pg,8),Yt(ju),Yt(Zu))},t.\u0275prov=pt({factory:function(){return new t(Yt(Gp),Yt($p,8),Yt(pg,8),Yt(ju),Yt(Zu))},token:t,providedIn:"any"}),t})(),fg=(()=>{class t{}return t.\u0275mod=ve({type:t}
1),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dg]}),t})();class gg extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(t){super.next(this._value=t)}}const mg={};class yg{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new vg(t,this.resultSelector))}}class vg extends U{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(mg),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(L(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,i){const o=this.values,s=this.toRespond?o[n]===mg?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const _g=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function bg(t){return new O(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?H(n):Ip()).subscribe(e)})}function wg(){return Q(1)}const Cg=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Og(t){return function(e){return 0===t?Ip():e.lift(new xg(t))}}class xg{constructor(t){if(this.total=t,this.total<0)throw new Cg}call(t,e){return e.subscribe(new Eg(t,this.total))}}class Eg extends _{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}function Pg(t=Tg){return e=>e.lift(new Mg(t))}class Mg{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Sg(t,this.errorFactory))}}class Sg extends _{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Tg(){return new _g}function Ag(t=null){return e=>e.lift(new kg(t))}class kg{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Ig(t,this.defaultValue))}}class Ig extends _{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Dg(t){return e=>0===t?Ip():e.lift(new Ng(t))}class Ng{constructor(t){if(this.total=t,this.total<0)throw new Cg}call(t,e){return e.subscribe(new Rg(t,this.total))}}class Rg extends _{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function jg(...t){return wg()(Dp(...t))}function Fg(t){return function(e){const n=new Lg(t),r=e.lift(n);return n.caught=r}}class Lg{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ug(t,this.selector,this.caught))}}class Ug extends U{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new k(this,void 0,void 0);this.add(r);const i=L(this,n,void 0,void 0,r);i!==r&&this.add(i)}}}function Vg(t,e){return W(t,e,1)}function Bg(t,e){const n=arguments.length>=2;return r=>r.pipe(t?cd((e,n)=>t(e,n,r)):C,Dg(1),n?Ag(e):Pg(()=>new _g))}class qg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new zg(t,this.callback))}}class zg extends _{constructor(t,e){super(t),this.add(new m(e))}}
1class Hg{constructor(t,e){this.id=t,this.url=e}}class Wg extends Hg{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gg extends Hg{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $g extends Hg{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qg extends Hg{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Kg extends Hg{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yg extends Hg{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zg extends Hg{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Xg extends Hg{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jg extends Hg{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tm{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class em{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nm{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rm{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class im{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class om{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sm{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class am{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function um(t){return new am(t)}function cm(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function lm(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function hm(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!pm(t[i],e[i]))return!1;return!0}function pm(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((t,e)=>r[e]===t)}return t===e}function dm(t){return Array.prototype.concat.apply([],t)}function fm(t){return t.length>0?t[t.length-1]:null}function gm(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function mm(t){return js(t)?t:Rs(t)?H(Promise.resolve(t)):Dp(t)}function ym(t,e,n){return n?function(t,e){return hm(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!wm(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>pm(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!wm(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!wm(n.segments,i))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!!wm(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class vm{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=um(this.queryParams)),this._queryParamMap}toString(){return Em.serialize(this)}}class _m{constructor(t,e){this.segments=t,this.children=e,this.parent=null,gm(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pm(this)}}class bm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=um(this.parameters)),this._parameterMap}toString(){return Im(this)}}function wm(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Cm(t,e){let n=[];return gm(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),gm(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Om{}class xm{parse(t){const e=new Fm(t);return new vm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return Pm(e);
1if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return gm(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Cm(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Pm(e)}/${n[0]}`:`${Pm(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Sm(e)}=${Sm(t)}`).join("&"):`${Sm(e)}=${Sm(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Em=new xm;function Pm(t){return t.segments.map(t=>Im(t)).join("/")}function Mm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sm(t){return Mm(t).replace(/%3B/gi,";")}function Tm(t){return Mm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Am(t){return decodeURIComponent(t)}function km(t){return Am(t.replace(/\+/g,"%20"))}function Im(t){return`${Tm(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Tm(t)}=${Tm(e[t])}`).join("")}`;var e}const Dm=/^[^\/()?;=#]+/;function Nm(t){const e=t.match(Dm);return e?e[0]:""}const Rm=/^[^=?&#]+/,jm=/^[^?&#]+/;class Fm{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _m([],{}):new _m([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new _m(t,e)),n}parseSegment(){const t=Nm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bm(Am(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Nm(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Nm(this.remaining);t&&(n=t,this.capture(n))}t[Am(e)]=Am(n)}parseQueryParam(t){const e=function(t){const e=t.match(Rm);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(jm);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=km(e),i=km(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Nm(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new _m([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Lm{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Um(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Um(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Vm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Vm(t,this._root).map(t=>t.value)}}function Um(t,e){if(t===e.value)return e;for(const n of e.children){const e=Um(t,n);if(e)return e}return null}function Vm(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Vm(t,n);if(r.length)return r.unshift(e),r}return[]}class Bm{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function qm(t){const e={};
vendor: 9,673 bytes, line 1
1return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class zm extends Lm{constructor(t,e){super(t),this.snapshot=e,Km(this,t)}toString(){return this.snapshot.toString()}}function Hm(t,e){const n=function(t,e){const n=new $m([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Qm("",new Bm(n,[]))}(t,e),r=new gg([new bm("",{})]),i=new gg({}),o=new gg({}),s=new gg({}),a=new gg(""),u=new Wm(r,i,s,a,o,"primary",e,n.root);return u.snapshot=n.root,new zm(new Bm(u,[]),n)}class Wm{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(V(t=>um(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V(t=>um(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gm(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class $m{constructor(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=um(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=um(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qm extends Lm{constructor(t,e){super(e),this.url=t,Km(this,e)}toString(){return Ym(this._root)}}function Km(t,e){e.value._routerState=t,e.children.forEach(e=>Km(t,e))}function Ym(t){const e=t.children.length>0?` { ${t.children.map(Ym).join(", ")} } `:"";return`${t.value}${e}`}function Zm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,hm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),hm(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!hm(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),hm(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Xm(t,e){var n,r;return hm(t.params,e.params)&&wm(n=t.url,r=e.url)&&n.every((t,e)=>hm(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xm(t.parent,e.parent))}function Jm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ty(t){return"object"==typeof t&&null!=t&&t.outlets}function ey(t,e,n,r,i){let o={};return r&&gm(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new vm(n.root===t?e:function t(e,n,r){const i={};return gm(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new _m(e.segments,i)}(n.root,t,e),o,i)}class ny{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Jm(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(ty);if(r&&r!==fm(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ry{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function iy(t,e,n){if(t||(t=new _m([],{})),0===t.segments.length&&t.hasChildren())return oy(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=n[r];if(ty(s))break;const a=""+s,u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!cy(a,u,e))return o;r+=2}else{if(!cy(a,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new _m(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new _m(t.segments.slice(r.pathIndex),t.children),oy(e,0,i)}return r.match&&0===i.length?new _m(t.segments,{}):r.match&&!t.hasChildren()?sy(t,e,n):r.match?oy(t,0,i):sy(t,e,n)}function oy(t,e,n){if(0===n.length)return new _m(t.segments,{});{const r=function(t){return ty(t[0])?t[0].outlets:{primary:t}}(n),i={};return gm(r,(n,r)=>{null!==n&&(i[r]=iy(t.children[r],e,n))}),gm(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new _m(t.segments,i)}}function sy(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const o=n[i];if(ty(o)){const t=ay(o.outlets);return new _m(r,t)}if(0===i&&Jm(n[0])){r.push(new bm(t.segments[e].path,n[0])),i++;continue}const s=ty(o)?o.outlets.primary:""+o,a=i<n.length-1?n[i+1]:null;s&&a&&Jm(a)?(r.push(new bm(s,uy(a))),i+=2):(r.push(new bm(s,{})),i++)}return new _m(r,{})}function ay(t){const e={};return gm(t,(t,n)=>{null!==t&&(e[n]=sy(new _m([],{}),0,t))}),e}function uy(t){const e={};return gm(t,(t,n)=>e[n]=""+t),e}function cy(t,e,n){return t==n.path&&hm(e,n.parameters)}class ly{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Zm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=qm(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),gm(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=qm(t),i=t.value.component?n.children:e;gm(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=qm(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new om(t.value.snapshot))}),t.children.length&&this.forwardEvent(new rm(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(Zm(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),hy(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function hy(t){Zm(t.value),t.children.forEach(hy)}class py{constructor(t,e){this.routes=t,this.module=e}}function dy(t){return"function"==typeof t}function fy(t){return t instanceof vm}const gy=Symbol("INITIAL_VALUE");function my(){return Xp(t=>function(...t){let e=null,n=null;return A(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&d(t[0])&&(t=t[0]),K(t,n).lift(new yg(e))}(...t.map(t=>t.pipe(Dg(1),function(...t){const e=t[t.length-1];return A(e)?(t.pop(),n=>jg(t,n,e)):e=>jg(t,e)}(gy)))).pipe(sd((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==gy)return t;if(r===gy&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||fy(r))return r}return t},t)},gy),cd(t=>t!==gy),V(t=>fy(t)?t:!0===t),Dg(1)))}class yy{constructor(t){this.segmentGroup=t||null}}class vy{constructor(t){this.urlTree=t}}function _y(t){return new O(e=>e.error(new yy(t)))}function by(t){return new O(e=>e.error(new vy(t)))}function wy(t){return new O(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Cy{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer
1=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(te)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(V(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fg(t=>{if(t instanceof vy)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof yy)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(V(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Fg(t=>{if(t instanceof yy)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new _m([],{primary:t}):t;return new vm(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(V(t=>new _m([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Dp({});const n=[],r=[],i={};return gm(t,(t,o)=>{const s=e(o,t).pipe(V(t=>i[o]=t));"primary"===o?n.push(s):r.push(s)}),Dp.apply(null,n.concat(r)).pipe(wg(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?cd((e,n)=>t(e,n,r)):C,Og(1),n?Ag(e):Pg(()=>new _g))}(),V(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,o){return Dp(...n).pipe(Vg(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Fg(t=>{if(t instanceof yy)return Dp(null);throw t}))),Bg(t=>!!t),Fg((t,n)=>{if(t instanceof _g||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Dp(new _m([],{}));throw new yy(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return Py(r)!==o?_y(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):_y(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?by(i):this.lineralizeSegments(n,i).pipe(W(n=>{const i=new _m(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:u,positionalParamSegments:c}=Oy(e,r,i);if(!s)return _y(e);const l=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?by(l):this.lineralizeSegments(r,l).pipe(W(r=>this.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(V(t=>(n._loadedConfig=t,new _m(r,{})))):Dp(new _m(r,{}));const{matched:i,consumedSegments:o,lastChild:s}=Oy(e,n,r);if(!i)return _y(e);const a=r.slice(s);return this.getChildConfig(t,n,r).pipe(W(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:s}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Ey(t,e,n)&&"primary"!==Py(n))}(t,n,r)?{segmentGroup:xy(new _m(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==Py(r)&&(n[Py(r)]=new _m([],{}));return n}(r,new _m(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ey(t,e,n))}(t,n,r)?{segmentGroup:xy(new _m(t.segments,function(t,e,n,r){const i={};for(const o of n)Ey(t,e,o)&&!r[Py(o)]&&(i[Py(o)]=new _m([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,a,r);return 0===s.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(V(t=>new _m(o,t))):0===r.length&&0===s.length?Dp(new _m(o,{})):this.expandSegment(n,i,r,s,"primary",!0).pipe(V(t=>new _m(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Dp(new py(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Dp(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(W(n=>n?this.configLoader.load(t.injector,e).pipe(V(t=>(e._loadedConfig=t,t))):function(t){return new O(e=>e.error(cm(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Dp(new py([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Dp(r.map(r=>{const i=t.get(r);let o;if(function(t){return t&&dy(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!dy(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}
1return mm(o)})).pipe(my(),yp(t=>{if(!fy(t))return;const e=cm(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),V(t=>!0===t)):Dp(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Dp(n);if(r.numberOfChildren>1||!r.children.primary)return wy(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new vm(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return gm(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return gm(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new _m(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Oy(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||lm)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function xy(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new _m(t.segments.concat(e.segments),e.children)}return t}function Ey(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Py(t){return t.outlet||"primary"}class My{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Sy{constructor(t,e){this.component=t,this.route=e}}function Ty(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=qm(n);return e.children.forEach(e=>{!function(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!wm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wm(t.url,e.url)||!hm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xm(t,e)||!hm(t.queryParams,e.queryParams);case"paramsChange":default:return!Xm(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new My(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?u?u.children:null:r,i,o),c&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new Sy(u.outlet.component,a))}else a&&ky(n,u,o),o.canActivateChecks.push(new My(i)),t(e,null,s.component?u?u.children:null:r,i,o)}(e,s[e.value.outlet],r,i.concat([e.value]),o),delete s[e.value.outlet]}),gm(s,(t,e)=>ky(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function Ay(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function ky(t,e,n){const r=qm(t),i=t.value;gm(r,(t,r)=>{ky(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Sy(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function Iy(t,e){return null!==t&&e&&e(new im(t)),Dp(!0)}function Dy(t,e){return null!==t&&e&&e(new nm(t)),Dp(!0)}function Ny(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Dp(r.map(r=>bg(()=>{const i=Ay(r,e,n);let o;if(function(t){return t&&dy(t.canActivate)}(i))o=mm(i.canActivate(e,t));else{if(!dy(i))throw new Error("Invalid CanActivate guard");o=mm(i(e,t))}
1return o.pipe(Bg())}))).pipe(my()):Dp(!0)}function Ry(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>bg(()=>Dp(e.guards.map(i=>{const o=Ay(i,e.node,n);let s;if(function(t){return t&&dy(t.canActivateChild)}(o))s=mm(o.canActivateChild(r,t));else{if(!dy(o))throw new Error("Invalid CanActivateChild guard");s=mm(o(r,t))}return s.pipe(Bg())})).pipe(my())));return Dp(i).pipe(my())}class jy{}class Fy{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){try{const t=Vy(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new $m([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Bm(n,e),i=new Qm(this.url,r);return this.inheritParamsAndData(i._root),Dp(i)}catch(t){return new O(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Gm(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Cm(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(i){if(!(i instanceof jy))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new jy}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new jy;if((t.outlet||"primary")!==r)throw new jy;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?fm(n).parameters:{};i=new $m(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zy(t),r,t.component,t,Ly(e),Uy(e)+n.length,Hy(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new jy;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||lm)(n,t,e);if(!r)throw new jy;const i={};gm(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new $m(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zy(t),r,t.component,t,Ly(e),Uy(e)+o.length,Hy(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:u,slicedSegments:c}=Vy(e,o,s,a,this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const t=this.processChildren(a,u);return[new Bm(i,t)]}if(0===a.length&&0===c.length)return[new Bm(i,[])];const l=this.processSegment(a,u,c,"primary");return[new Bm(i,l)]}}function Ly(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Uy(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Vy(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>By(t,e,n)&&"primary"!==qy(n))}(t,n,r)){const i=new _m(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==qy(o)){const n=new _m([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[qy(o)]=n}return i}(t,e,r,new _m(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>By(t,e,n))}(t,n,r)){const o=new _m(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(By(t,n,a)&&!i[qy(a)]){const n=new _m([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[qy(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new _m(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function By(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function qy(t){return t.outlet||"primary"}function zy(t){return t.data||{}}function Hy(t){return t.resolve||{}}function Wy(t){return function(e){return e.pipe(Xp(e=>{const n=t(e);return n?H(n).pipe(V(()=>e)):H([e])}))}}class Gy extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let $y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ks(0,"router-outlet")},directives:function(){return[lv]},encapsulation:2}),t})();function Qy(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Ky(r,Yy(e,r))}}function Ky(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Qy(t.children,e)}function Yy(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Zy(t){const e=t.children&&t.children.map(Zy),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=$y),n}const Xy=new Vt("ROUTES");class Jy{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(V(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new py(dm(r.injector.get(Xy)).map(Zy),r)}))}loadModuleFactory(t){return"string"==typeof t?H(this.loader.load(t)):mm(t()).pipe(W(t=>t instanceof ee?Dp(t):H(this.compiler.compileModuleAsync(t))))}}class tv{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ev,this.attachRef=null}}class ev{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new tv,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class nv{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rv(t){throw t}function iv(t,e,n){return e.parse("/")}function ov(t,e){return Dp(null)}let sv=(()=>{class t{constructor(t,e,n,r,i,o,s,a){this.rootComponentType=t,this.urlSerializer
1=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=rv,this.malformedUriErrorHandler=iv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ov,afterPreactivation:ov},this.urlHandlingStrategy=new nv,this.routeReuseStrategy=new Gy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(te),this.console=i.get(Lu);const u=i.get(Zu);this.isNgZoneEnabled=u instanceof Zu,this.resetConfig(a),this.currentUrlTree=new vm(new _m([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jy(o,s,t=>this.triggerEvent(new tm(t)),t=>this.triggerEvent(new em(t))),this.routerState=Hm(this.currentUrlTree,this.rootComponentType),this.transitions=new gg({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(cd(t=>0!==t.id),V(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Xp(t=>{let n=!1,r=!1;return Dp(t).pipe(yp(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xp(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Dp(t).pipe(Xp(t=>{const n=this.transitions.getValue();return e.next(new Wg(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?kp:[t]}),Xp(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,s=this.config,function(t){return t.pipe(Xp(t=>function(t,e,n,r,i){return new Cy(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,s).pipe(V(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),yp(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(o){return o.pipe(W(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new Fy(t,e,n,r,i,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(V(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),yp(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),yp(t=>{const n=new Kg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,o,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new Wg(n,this.serializeUrl(r),i,o);e.next(a);const u=Hm(r,this.rootComponentType).snapshot;return Dp(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),kp}),Wy(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),yp(t=>{const e=new Yg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),V(t=>Object.assign(Object.assign({},t),{guards:Ty(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Dp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return H(t).pipe(W(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;
1return o&&0!==o.length?Dp(o.map(o=>{const s=Ay(o,e,i);let a;if(function(t){return t&&dy(t.canDeactivate)}(s))a=mm(s.canDeactivate(t,e,n,r));else{if(!dy(s))throw new Error("Invalid CanDeactivate guard");a=mm(s(t,e,n,r))}return a.pipe(Bg())})).pipe(my()):Dp(!0)}(t.component,t.route,n,e,r)),Bg(t=>!0!==t,!0))}(s,r,i,t).pipe(W(n=>n&&"boolean"==typeof n?function(t,e,n,r){return H(e).pipe(Vg(e=>H([Dy(e.route.parent,r),Iy(e.route,r),Ry(t,e.path,n),Ny(t,e.route,n)]).pipe(wg(),Bg(t=>!0!==t,!0))),Bg(t=>!0!==t,!0))}(r,o,t,e):Dp(n)),V(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),yp(t=>{if(fy(t.guardsResult)){const e=cm(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),yp(t=>{const e=new Zg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),cd(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new $g(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Wy(t=>{if(t.guards.canActivateChecks.length)return Dp(t).pipe(yp(t=>{const e=new Xg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Xp(t=>{let n=!1;return Dp(t).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(W(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Dp(t);let o=0;return H(n).pipe(Vg(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Dp({});const o={};return H(i).pipe(W(i=>function(t,e,n,r){const i=Ay(t,e,r);return mm(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(yp(t=>{o[i]=t}))),Og(1),W(()=>Object.keys(o).length===i.length?Dp(o):kp))}(t._resolve,t,e,r).pipe(V(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gm(t,n).resolve),null)))}(t.route,e,r,i)),yp(()=>o++),Og(1),W(e=>o===n.length?Dp(t):kp))}))}),yp({next:()=>n=!0,complete:()=>{if(!n){const n=new $g(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,i}),yp(t=>{const e=new Jg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Wy(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),V(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new Bm(i,o)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new Wm(new gg((i=n.value).url),new gg(i.params),new gg(i.queryParams),new gg(i.fragment),new gg(i.data),i.outlet,i.component,i),o=n.children.map(n=>t(e,n));return new Bm(r,o)}}var i}(t,e._root,n?n._root:void 0);return new zm(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),yp(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(o=this.rootContexts,s=this.routeReuseStrategy,a=t=>this.triggerEvent(t),V(t=>(new ly(s,t.targetRouterState,t.currentRouterState,a).activate(o),t))),yp({next(){
1n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new $g(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new qg(i))),Fg(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=fy(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new $g(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Qg(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return kp}));var i,o,s,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(r,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Qy(t),this.config=t.map(Zy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:s,preserveFragment:a}=e;Tr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const u=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i;let l=null;if(s)switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}else l=o?this.currentUrlTree.queryParams:r||null;return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,r,i){if(0===n.length)return ey(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ny(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return gm(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new ny(n,e,r)}(n);if(o.toRoot())return ey(e.root,new _m([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new ry(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ry(t,t===e.root,0)}const r=Jm(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new ry(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?oy(s.segmentGroup,s.index,o.commands):iy(s.segmentGroup,s.index,o.commands);return ey(s.segmentGroup,a,e,r,i)}(u,this.currentUrlTree,t,l,c)}navigateByUrl(t,e={skipLocationChange:!1}){Tr()&&this.isNgZoneEnabled&&!Zu.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
1you forget to call 'ngZone.run()'?");const n=fy(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(fy(t))return ym(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ym(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Gg(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){const o=this.getTransition(),s="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(s&&a)return Promise.resolve(!0);let u,c,l;i?(u=i.resolve,c=i.reject,l=i.promise):l=new Promise((t,e)=>{u=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(Yt(zo),Yt(Om),Yt(ev),Yt(Gc),Yt(is),Yt(vc),Yt(Qu),Yt(void 0))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),av=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Tr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:cv(this.skipLocationChange),replaceUrl:cv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:cv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:cv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Es(sv),Es(Wm),Ps("tabindex"),Es(Pa),Es(Ca))},t.\u0275dir=be({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Fs("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Le]}),t})(),uv=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof Gg&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Tr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,i){if(0!==t||e||n||r||i)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:cv(this.skipLocationChange),replaceUrl:cv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:cv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:cv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Es(sv),Es(Wm),Es(Bc))},t.\u0275dir=be({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Fs("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(na("href",e.href,ei),ws("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Le]}),t})();function cv(t){return""===t||!!t}let lv=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new fu,this.deactivateEvents=new fu,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new hv(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Es(ev),Es(Qa),Es(wa),Ps("name"),Es(Bo))},t.\u0275dir=be({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class hv{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Wm?this.route:t===ev?this.childContexts:this.parent.get(t,e)}}class pv{}class dv{preload(t,e){return Dp(null)}}let fv=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Jy(e,n,e=>t.triggerEvent(new tm(e)),e=>t.triggerEvent(new em(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(cd(t=>t instanceof Gg),Vg(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(te);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return H(n).pipe(Q(),V(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(W(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Yt(sv),Yt(vc),Yt(Qu),Yt(is),Yt(pv))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),gv=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Wg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Gg&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof sm&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new sm(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Yt(sv),Yt(vl),Yt(void 0))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const mv=new Vt("ROUTER_CONFIGURATION"),yv=new Vt("ROUTER_FORROOT_GUARD"),vv=[Gc,{provide:Om,useClass:xm},{provide:sv,useFactory:function(t,e,n,r,i,o,s,a={},u,c){const l=new sv(null,t,e,n,r,i,o,dm(s));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),a.errorHandler&&(l.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(l.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Ac();l.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(l.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(l.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(l.relativeLinkResolution=a.relativeLinkResolution),l},deps:[Om,ev,Gc,is,vc,Qu,Xy,mv,[class{},new st],[class{},new st]]},ev,{provide:Wm,useFactory:function(t){return t.routerState.root},deps:[sv]},{provide:vc,useClass:wc},fv,dv,class{preload(t,e){return e().pipe(Fg(()=>Dp(null)))}},{provide:mv,useValue:{enableTracing:!1}}];function _v(){return new hc("Router",sv)}let bv=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[vv,xv(e),{provide:yv,useFactory:Ov,deps:[[sv,new st,new ut]]},{provide:mv,useValue:n||{}},{provide:Bc,useFactory:Cv,deps:[Ic,[new ot(zc),new st],mv]},{provide:gv,useFactory:wv,deps:[sv,vl,mv]},{provide:pv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:dv},{provide:hc,multi:!0,useFactory:_v},[Ev,{provide:Au,multi:!0,useFactory:Pv,deps:[Ev]},{provide:Sv,useFactory:Mv,deps:[Ev]},{provide:Fu,multi:!0,useExisting:Sv}]]}}static forChild(e){return{ngModule:t,providers:[xv(e)]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(yv,8),Yt(sv,8))}}),t})();function wv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new gv(t,e,n)}function Cv(t,e,n={}){return n.useHash?new Wc(t,e):new Hc(t,e)}function Ov(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function xv(t){return[{provide:os,multi:!0,useValue:t},{provide:Xy,multi:!0,useValue:t}]}let Ev=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Nc,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(sv),r=this.injector.get(mv);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Dp(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(mv),n=this.injector.get(fv),r=this.injector.get(gv),i=this.injector.get(sv),o=this.injector.get(mc);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Yt(is))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Pv(t){return t.appInitializer.bind(t)}function Mv(t){return t.bootstrapListener.bind(t)}const Sv=new Vt("Router Initializer");
1function Tv(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}let Av=(()=>{class t{constructor(t){this.afs=t}getCollection(t,e){return new Promise((n,r)=>{const i=this.afs.collection(t).get(e).subscribe(t=>{n(t),i.unsubscribe()},r)})}getLiveCollection(t){return this.afs.collection(t).valueChanges()}createDocument(t,e){return Tv(this,void 0,void 0,(function*(){const{id:n}=yield this.afs.collection(t).add(e);return n}))}createDocumentWithId(t,e,n){return this.afs.doc(`${t}/${e}`).set(n)}getDocuments(t,e=[],n,r,i,o,s){return new Promise((a,u)=>{const c=this.afs.collection(t,t=>{let s=t;for(const n of e)s=s.where(...n);return n&&(s=s.limit(n)),i&&(s=s.orderBy(i,null!=r?r:"asc")),o&&(s=s.startAfter(o)),s}).get(s).subscribe(t=>{a(t.docs.map(t=>t.data())),c.unsubscribe()},u)})}getLiveDocument(t){return this.afs.doc(t).valueChanges()}getLiveDocuments(t,e=[],n,r,i,o){return this.afs.collection(t,t=>{let s=t;for(const n of e)s=s.where(...n);return n&&(s=s.limit(n)),i&&(s=s.orderBy(i,null!=r?r:"asc")),o&&(s=s.startAfter(o)),s}).snapshotChanges()}setDocument(t,e,n){return this.afs.doc(t).set(e,n)}updateDocument(t,e){return this.afs.doc(t).update(e)}deleteDocument(t){return this.afs.doc(t).delete()}arrayUnion(t,e,n){const r={};return r[e]=Up.firestore.FieldValue.arrayUnion(n),this.afs.doc(t).update(r)}arrayRemove(t,e,n){const r={};return r[e]=Up.firestore.FieldValue.arrayRemove(n),this.afs.doc(t).update(r)}generateId(){return this.afs.createId()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Md))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kv=(()=>{class t{constructor(t){this.db=t}loadUserData(t){return Tv(this,void 0,void 0,(function*(){return Promise.all([new Promise((e,n)=>this.db.getLiveDocument("users/"+t).subscribe(t=>{this.userData=t,t&&e(t)},n)),new Promise((e,n)=>this.db.getLiveDocument(`users/${t}/private/membership`).subscribe(t=>{this.membershipData=t,t&&e(t)},n))])}))}createUserDocument(t){return Tv(this,void 0,void 0,(function*(){yield this.db.createDocumentWithId("users",t.uid,t)}))}logout(){this.userData=null,this.membershipData=null}}return t.\u0275fac=function(e){return new(e||t)(Yt(Av))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Iv=(()=>{class t{constructor(t){this.afs=t,this.storageRef=this.afs.storage.ref()}uploadFile(t,e){return Tv(this,void 0,void 0,(function*(){return yield this.storageRef.child(t).put(e)}))}getUrl(t){return Tv(this,void 0,void 0,(function*(){return yield this.storageRef.child(t).getDownloadURL()}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(dg))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dv=(()=>{class t{constructor(t,e){this.db=t,this.fs=e,this.inbox=new Map,this.streamSubscriptions=[]}loadUrls(t){return Tv(this,void 0,void 0,(function*(){for(const e of t){for(const t of e.files)t.url=yield this.fs.getUrl(t.path);for(const t of e.images)t.url=yield this.fs.getUrl(t.path)}}))}loadLiveChats(t){this.chatsSubscription=this.db.getLiveDocuments("chats",[["participantIds","array-contains",t]]).pipe(V(t=>Object.keys(t).map(e=>t[e])),V(t=>t.map(t=>t.payload.doc.data()))).subscribe(t=>{this.chats=t,t.forEach(t=>{let e=this.inbox.get(t.id);if(e)return;const n=this.db.getLiveDocuments(`chats/${t.id}/messages`,[],1,"desc","time").pipe(V(t=>Object.keys(t).map(e=>t[e])),V(t=>t.map(t=>t.payload.doc.data()))).subscribe(n=>Tv(this,void 0,void 0,(function*(){yield this.loadUrls(n),e=this.inbox.get(t.id),e?e.push(...n):this.inbox.set(t.id,[...n])})));this.streamSubscriptions.push(n)})})}loadMessages(t,e,n=10){return Tv(this,void 0,void 0,(function*(){const r=yield this.db.getDocuments(`chats/${t}/messages`,[],n,"desc","time",e);return yield this.loadUrls(r),r.reverse(),this.inbox.get(t).unshift(...r),r.length<10}))}createChat(t,e,n){return Tv(this,void 0,void 0,(function*(){const r={name:e,createdAt:Up.firestore.Timestamp.fromDate(new Date),participantIds:[t.uid,"GPoeZD0Jdvaklh6M0ZqUev1CVrm1"],participants:[t,{name:"Imelda Fossu",uid:"GPoeZD0Jdvaklh6M0ZqUev1CVrm1"}],id:this.db.generateId()};yield this.db.createDocumentWithId("chats",r.id,r),yield this.db.createDocument(`chats/${r.id}/messages`,n)}))}sendMessage(t,e){return e.id=this.db.generateId(),this.db.createDocumentWithId(`chats/${t}/messages`,e.id,e)}logout(){this.chats=null,this.inbox=new Map,this.chatsSubscription.unsubscribe(),this.streamSubscriptions.forEach(t=>t.unsubscribe())}generateDummyMessages(t){const e=Up.firestore.Timestamp.fromDate(new Date);return[{text:"Hi "+t.name+", how are you? How is the project coming along?",senderId:"GPoeZD0Jdvaklh6M0ZqUev1CVrm1",time:e,status:"SEEN",files:[],images:[],id:this.db.generateId()},{text:"Are we meeting today? Project has been already finished and I have results to show you.",senderId:t.uid,time:Up.firestore.Timestamp.fromMillis(e.toMillis()+100),status:"SEEN",files:[],images:[],id:this.db.generateId()},{text:"Well I am not sure. The rest of the team is not\n here yet. Maybe in an hour or so? Have you faced\n any problems at the last phase of the project?",senderId:"GPoeZD0Jdvaklh6M0ZqUev1CVrm1",time:Up.firestore.Timestamp.fromMillis(e.toMillis()+300),status:"SEEN",files:[],images:[],id:this.db.generateId()}]}}return t.\u0275fac=function(e){return new(e||t)(Yt(Av),Yt(Iv))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nv=(()=>{class t{constructor(t,e,n,r){this.afAuth=t,this.us=e,this.cs=n,this.db=r,this.user=null,this.authState=new gg(!1),this.afAuth.authState.subscribe(t=>Tv(this,void 0,void 0,(function*(){this.user=t,t?(yield this.us.loadUserData(t.uid
1),this.authState.next(!0),this.cs.loadLiveChats(t.uid)):this.authState.next(!1)})))}isAuthenticated(){return this.authState.value}resetPassword(t){return this.afAuth.sendPasswordResetEmail(t)}login(t,e){return new Promise((n,r)=>Tv(this,void 0,void 0,(function*(){if(e.length<6)return r({code:"auth/wrong-password",message:"Invalid password."});try{const r=yield this.afAuth.signInWithEmailAndPassword(t,e);if(r.user)return this.user=r.user,n()}catch(i){r(i)}})))}emailExists(t){return Tv(this,void 0,void 0,(function*(){return 0!==(yield this.afAuth.fetchSignInMethodsForEmail(t)).length}))}signup(t,e,n){return Tv(this,void 0,void 0,(function*(){const r=yield this.afAuth.createUserWithEmailAndPassword(e,n);return yield r.user.updateProfile({displayName:t}),r.user}))}usernameExists(t){return Tv(this,void 0,void 0,(function*(){return(yield this.db.getDocuments("users",[["username","==",t]])).length>0}))}logout(){return Tv(this,void 0,void 0,(function*(){this.cs.logout(),this.us.logout(),yield this.afAuth.signOut(),this.authState.next(!1),this.user=null}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(id),Yt(kv),Yt(Dv),Yt(Av))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Rv={base:{iconColor:"#9aa6b3",color:"#999999",fontSize:"14px",fontFamily:"Poppins"},invalid:{iconColor:"#ff3860",color:"#ff3860"}},jv={sales:{productId:"prod_Hb2GzAKqOUcCmZ",monthly:{priceId:"price_1H1qCRIaLgEDpYYy3qjTUTVc",price:62900},yearly:{priceId:"price_1H1qCRIaLgEDpYYyi4JiFyVB",price:629700}},marketing:{productId:"prod_Hb2Ila6AOBcS6N",monthly:{priceId:"price_1H1qDwIaLgEDpYYySoNwdIXg",price:74900},yearly:{priceId:"price_1H1qDxIaLgEDpYYyBHbgF74Z",price:699900}},tech:{productId:"prod_Hb2Js67iPP6RKW",monthly:{priceId:"price_1H1qEtIaLgEDpYYyZyhZowmd",price:249700},yearly:{priceId:"price_1H1qEtIaLgEDpYYypNX6Tekr",price:2499900}}};var Fv=n("vDqi"),Lv=n.n(Fv),Uv=n("BkRI"),Vv=n.n(Uv),Bv=n("Qyje"),qv=n.n(Bv),zv=n("YO3V"),Hv=n.n(zv),Wv=n(1);function Gv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$v(Object(n),!0).forEach((function(e){Gv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yv={},Zv=0;function Xv(){return"undefined"!=typeof process&&!process.browser}function Jv(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}var t_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function e_(t){var e=t.query,n={};return delete e.resolveLinks,n.params=Vv()(e),n}function n_(t){return function t(e){return Object.keys(e).forEach((function(n){var r=e[n];Hv()(r)&&t(r)})),Object.freeze(e)}(t.sys||{}),t}function r_(){if(!window)return null;var t=window.navigator.userAgent,e=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(e)?n="macOS":-1!==["iPhone","iPad","iPod"].indexOf(e)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(e)?n="Windows":/Android/.test(t)?n="Android":/Linux/.test(e)&&(n="Linux"),n}function i_(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Vv()(this)}})}function o_(t){return n_(i_(t))}var s_=n("3/DG"),a_=n.n(s_);function u_(t){return Object.defineProperty(t,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a_()(this,t,e,(function(t,e){return{sys:{type:"Link",linkType:"Entry",id:e.sys.id,circular:!0}}}))}})}var c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function l_(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var h_={},p_=function(t){return t&&t.sys&&"Link"===t.sys.type},d_=function(t,e){if(e=e||{},!t.items)return[];var n=Vv()(t),r=Object.keys(n.includes||{}).reduce((function(e,n){return[].concat(l_(e),l_(t.includes[n]))}),[]),i=[].concat(l_(n.items),l_(r));
1return i.forEach((function(t){var n=function(t,e){return Array.isArray(e)?Object.keys(t).filter((function(t){return-1!==e.indexOf(t)})).reduce((function(e,n){return e[n]=t[n],e}),{}):t}(t,e.itemEntryPoints);Object.assign(t,function t(e,n,r,i){if(n(e))return r(e);if(e&&"object"===(void 0===e?"undefined":c_(e))){for(var o in e)e.hasOwnProperty(o)&&(e[o]=t(e[o],n,r,i));i&&(e=function(t){if(Array.isArray(t))return t.filter((function(t){return t!==h_}));for(var e in t)t[e]===h_&&delete t[e];return t}(e))}return e}(n,p_,(function(t){return function(t,e,n){var r=function(t,e){var n=e.sys,r=n.linkType,i=n.id;return function(t,e){for(var n=0,o=t.length;n<o;n++)if(void 0,(s=t[n].sys).type===r&&s.id===i)return t[n];var s;return h_}(t)}(t,e);return r===h_?n?r:e:r}(i,t,e.removeUnresolved)}),e.removeUnresolved))})),n.items};function f_(t){return n_(i_(Vv()(t)))}function g_(t,e){var n=e.resolveLinks,r=e.removeUnresolved,i=u_(i_(Vv()(t)));return n&&(i.items=d_(i,{removeUnresolved:r,itemEntryPoints:["fields"]})),n_(i)}function m_(t){return n_(i_(Vv()(t)))}function y_(t){return n_(i_(Vv()(t)))}function v_(t){return n_(i_(Vv()(t)))}function __(t){return n_(i_(Vv()(t)))}function b_(t){return n_(i_(Vv()(t)))}function w_(t){return n_(i_(Vv()(t)))}var C_={space:r,entry:i,asset:o,contentType:s,locale:a};function O_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O_(Object(n),!0).forEach((function(e){E_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P_(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!e.initial&&!e.nextSyncToken&&!e.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(e&&e.content_type&&!e.type)e.type="Entry";else if(e&&e.content_type&&e.type&&"Entry"!==e.type)throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");var r={resolveLinks:!0,removeUnresolved:!1,paginate:!0},i=x_({},r,{},n),o=i.resolveLinks,s=i.removeUnresolved,a=i.paginate,u={paginate:a};return S_(t,[],e,u).then((function(t){o&&(t.items=d_(t,{removeUnresolved:s,itemEntryPoints:["fields"]}));var e=M_(t.items);return t.nextSyncToken&&(e.nextSyncToken=t.nextSyncToken),t.nextPageToken&&(e.nextPageToken=t.nextPageToken),n_(u_(i_(e)))}),(function(t){throw t}))}function M_(t){var e=function(t){return function(e,n){return n.sys.type===t&&e.push(i_(n)),e}};return{entries:t.reduce(e("Entry"),[]),assets:t.reduce(e("Asset"),[]),deletedEntries:t.reduce(e("DeletedEntry"),[]),deletedAssets:t.reduce(e("DeletedAsset"),[])}}function S_(t,e,n,r){var i=r.paginate;return n.nextSyncToken&&(n.sync_token=n.nextSyncToken,delete n.nextSyncToken),n.nextPageToken&&(n.sync_token=n.nextPageToken,delete n.nextPageToken),n.sync_token&&(delete n.initial,delete n.type,delete n.content_type,delete n.limit),t.get("sync",e_({query:n})).then((function(r){var o=r.data;return e=e.concat(o.items),o.nextPageUrl?i?(delete n.initial,n.sync_token=T_(o.nextPageUrl),S_(t,e,n,{paginate:i})):{items:e,nextPageToken:T_(o.nextPageUrl)}:o.nextSyncUrl?{items:e,nextSyncToken:T_(o.nextSyncUrl)}:void 0}))}function T_(t){var e=t.split("?");return e.length>0?e[1].replace("sync_token=",""):""}function A_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?A_(Object(n),!0).forEach((function(e){I_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D_(Object(n),!0).forEach((function(e){R_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j_(t){if(!t.accessToken)throw new TypeError("Expected parameter accessToken");if(!t.space)throw new TypeError("Expected parameter space");var e=N_({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"},{},t),n=function(t,e,n,r){var i=[];e&&i.push("app ".concat(e)),n&&i.push("integration ".concat(n)),i.push("sdk ".concat(t));var o=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(o=r_(),i.push("platform ReactNative")):Xv()?(o=function(){var t=Object(Wv.platform)()||"linux",e=Object(Wv.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?"".concat(n[t]||"Linux","/").concat(e):null}(),i.push("platform node.js/".concat(Jv()))):(o=r_(),i.push("platform browser"))}catch(s){o=null}return o&&i.push("os ".concat(o)),"".concat(i.filter((function(t){return""!==t})).join("; "),";")}("contentful.js/".concat("0.0.0-determined-by-semantic-release"),e.application,e.integration);e.headers=N_({},e.headers,{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":n});var r,i=function t(e,n){var r=Qv({},{insecure:!1,retryOnError:!0,logHandler:function(t,e){if("error"===t&&e){var n=[e.name,e.message].filter((function(t){return t})).join(" - ");return console.error("[error] ".concat(n)),void console.error(e)}console.log("[".concat(t,"] ").concat(e))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1,maxContentLength:1073741824},{},n);if(!r.accessToken){var i=new TypeError("Expected parameter accessToken");throw r.logHandler("error",i),i}var o,s=r.insecure?"http":"https",a=r.space?"".concat(r.space,"/"):"",u=r.defaultHostname,c=r.insecure?80:443;if(r.host&&t_.test(r.host)){var l=r.host.split(":");if(2===l.length){var h=function(t){if(Array.isArray(t))return t}(o=l)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),2!==n.length);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(o)||function(t,e){if(t){if("string"==typeof t)return Kv(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kv(t,2):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=h[0],c=h[1]}else u=l[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var p=n.baseURL||"".concat(s,"://").concat(u,":").concat(c).concat(r.basePath,"/spaces/").concat(a);r.headers.Authorization||(r.headers.Authorization="Bearer "+r.accessToken),Xv()&&(r.headers["user-agent"]="node.js/"+Jv(),r.headers["Accept-Encoding"]="gzip");var d=e.create({baseURL:p,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:qv.a.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError});return d.httpClientParams=n,d.cloneWithNewParams=function(r){return t(e,Qv({},Vv()(n),{},r))},function(t){var e=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,i=void 0===r?function(){}:r,o=n.requestLogger,s=void 0===o?function(){}:o;t.interceptors.request.use((function(t){return s(t),t}),(function(t){return Promise.reject(t)})),t.interceptors.response.use((function(t){return i(t),t}),(function(n){var r=n.response,i=n.config;if(!i||!t.defaults.retryOnError)return Promise.reject(n);var o,s=null,a=0;if(r)Zv=0;else{if(s="Connection",++Zv>e)return n.attempts=Zv,Promise.reject(n);a=Math.pow(Math.SQRT2,Zv),r={}}if(r.status>=500&&r.status<600){s="Server ".concat(r.status);var u=(r.headers||{})["x-contentful-request-id"]||null;if(Yv[u]=Yv[u]||0,Yv[u]++,Yv[u]>e||!u)return n.attempts=Yv[u],Promise.reject(n);a=Math.pow(Math.SQRT2,Yv[u])}else 429===r.status&&(s="Rate limit",r.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(a=r.headers["x-contentful-ratelimit-reset"]));return s?(a=Math.floor(1e3*a+200*Math.random()+500),t.defaults.logHandler("warning","".concat(s," error occurred. Waiting for ").concat(a," ms before retrying...")),delete i.httpAgent,delete i.httpsAgent,(o=a,new Promise((function(t){setTimeout(t,o)}))).then((function(){return t(i)}))):Promise.reject(n)}))}(d,r.retryLimit),d}(Lv.a,e),o=(r={resolveLinks:e.resolveLinks,environment:e.environment,removeUnresolved:e.removeUnresolved,spaceBaseUrl:i.defaults.baseURL,environmentBaseUrl:"".concat(i.defaults.baseURL,"environments/").concat(e.environment)},function(t){return Object.assign({},r,t)});return i.defaults.baseURL=o().environmentBaseUrl,function(t){t.interceptors.response.use((function(t){return t}),(function(t){if(t.response&&t.response.config.headers.Authorization){var e=t.response.config.headers.Authorization;t.response.config.headers.Authorization=t.response.config.headers.Authorization.replace(e,"Bearer...".concat(e.substr(-5))),t.response.request._headers&&t.response.request._headers.authorization&&(t.response.request._headers.authorization=t.response.request._headers.authorization.replace(e,"Bearer...".concat(e.substr(-5)))),t.response.request._header&&(t.response.request._header=t.response.request._header.replace(e,"Bearer...".concat(e.substr(-5))))}return Promise.reject(t)}))}(i),function(t){var e=t.http,n=t.getGlobalOptions,r=C_.space.wrapSpace,i=C_.contentType,o=i.wrapContentType,s=i.wrapContentTypeCollection,a=C_.entry,u=a.wrapEntry,c=a.wrapEntryCollection,l=C_.asset,h=l.wrapAsset,p=l.wrapAssetCollection,d=C_.locale.wrapLocaleCollection,f=function(t){var e=new Error("The resource could not be found.");return e.sys={type:"Error",id:"NotFound"},e.details={type:"Entry",id:t,environment:n().environment,space:n().space},e};function g(t){if(t.data)throw t.data;if(t.response&&t.response.data)throw t.response.data;throw t}function m(t){t.select&&!/sys/i.test(t.select)&&(t.select+=",sys")}function y(t){t.defaults.baseURL=n().environmentBaseUrl}return{getSpace:function(){return function(t){t.defaults.baseURL=n().spaceBaseUrl}(e),e.get("").then((function(t){return r(t.data)}),g)},getContentType:function(t){return y(e),e.get("content_types/"+t).then((function(t){return o(t.data)}),g)},getContentTypes:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(e),e.get("content_types",e_({query:t})).then((function(t){return s(t.data)}),g)},getEntry:function(t){return t?this.getEntries(k_({"sys.id":t},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})).then((function(e){if(e.items.length>0)return u(e.items[0]);throw f(t)}),g):Promise.reject(f(t))},getEntries:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y(e);var r=n(t),i=r.resolveLinks,o=r.removeUnresolved;return m(t),e.get("entries",e_({query:t})).then((function(t){return c(t.data,{resolveLinks:i,removeUnresolved:o})}),g)},getAsset:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(e),m(n),e.get("assets/"+t,e_({query:n})).then((function(t){return h(t.data)}),g)},getAssets:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(e),m(t),e.get("assets",e_({query:t})).then((function(t){return p(t.data)}),g)},getLocales:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(e),e.get("locales",e_({query:t})).then((function(t){return d(t.data)}),g)},parseEntries:function(t){var e=n({});return c(t,{resolveLinks:e.resolveLinks,removeUnresolved:e.removeUnresolved})},sync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{paginate:!0},i=n(t),o=i.resolveLinks,s=i.removeUnresolved;return y(e),P_(e,t,k_({resolveLinks:o,removeUnresolved:s},r))}}}({http:i,getGlobalOptions:o})}let F_=(()=>{class t{constructor(){this.client=j_(Object.assign({},Mc))}getContent(){return Tv(this,void 0,void 0,(function*(){return(yield this.client.getEntries()).items.map(t=>({type:t.sys.contentType.sys.id,fields:Object.assign({id:t.sys.id},t.fields)}))}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),L_=(()=>{class t{constructor(t){this.contentful=t,this.testimonials=[],this.services={title:"Our Services",subtitle:"What we do",cards:[{title:"Sales",details:"Lead Generation, Cold Calling, Inbound Sales Management, Cold Emailing, Prospecting Lists and more all for a flat fee.",icon:"sales"},{title:"Marketing",details:"Copywriting, Ads, Design, Email, Social Media Management, Content Creation, Inbound Lead Gen, and Marketing Strategy.",icon:"marketing"},{title:"Tech",details:"Web Development, Software Development, Content Management and Mobile App Development.",icon:"tech"}]},this.plans={sales:{icon:"sales_purple",type:"SALES",productDetails:jv.sales,details:"Get your sales department on subscription, with daily management and reporting as well as unlimited work requests.",advantages:[`\xa3${jv.sales.monthly.price/100} per month + % of sales`,"Lead Generation","Cold Calling","Inbound Sales Management","Cold Emailing","Prospecting Lists"]},marketing:{icon:"marketing_purple",type:"MARKETING",productDetails:jv.marketing,details:"Get your marketing department on subscription with unlimited work requests managed via our digital platform.",advantages:[`\xa3${jv.marketing.monthly.price/100} per month`,"Copywriting","Ads & Marketing Strategy","Design & Content Creation","Email & Inbound Leads","Social Media Management"]},tech:{icon:"tech_white",type:"TECH",productDetails:jv.tech,details:"Get your tech department on subscription with a dedicated team of developers working on your project for a flat-rate fee.",advantages:[`\xa3${jv.tech.monthly.price/100}
1 per month`,"Web Development","Software Development","Content Management","Mobile App Development","Tech Department"]}},this.pros={icon:"tech_white",type:"THE PROS",title:"Why you\u2019ll love Virtual CEO",details:"Here are some reasons why you will love our serivce, if you weren\u2019t already sold.",advantages:["Reason 1","Reason 2","Reason 3","Reason 4","Reason 5","Reason 6","Reason 7"]},this.questionnaire={type:"ONBOARDING",title:"Help us to understand you",details:"Complete all of the steps below in order to enable you to submit your first work requests.",advantages:["Step 1","Step 2","Step 3","Step 4","Step 5","Step 6"]},this.facts={title:"Virtual CEO",subtitle:"Facts about us",cards:[]},this.blogs=[],this.projects=[],this.questions=[],this.questions=[]}loadContent(){return Tv(this,void 0,void 0,(function*(){(yield this.contentful.getContent()).forEach(t=>{"fact"===t.type?this.facts.cards.push(t.fields):"testimonial"===t.type?this.testimonials.push(t.fields):"blog"===t.type?this.blogs.push(t.fields):"project"===t.type?this.projects.push(t.fields):"question"===t.type&&this.questions.push(t.fields)})}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(F_))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function U_(t,e){1&t&&(Is(0),Ts(1,"div",14),Ts(2,"p"),Xs(3,"Login"),As(),As(),Ts(4,"button",15),Ts(5,"p"),Xs(6,"Start Free Trial"),As(),As(),Ds())}const V_=function(t){return{hide:t}};function B_(t,e){if(1&t){const t=Ns();Is(0),Ts(1,"div",20),Fs("click",(function(){return ln(t),Vs(2).outerMenuOpen=!0}))("mouseover",(function(){return ln(t),Vs(2).outerMenuOpen=!0}))("mouseleave",(function(){return ln(t),Vs(2).outerMenuOpen=!1})),Ts(2,"p"),Xs(3,"My Account"),As(),Ts(4,"div",21),Fs("click",(function(){return ln(t),Vs(2).outerMenuOpen=!0}))("mouseover",(function(){return ln(t),Vs(2).outerMenuOpen=!0}))("mouseleave",(function(){return ln(t),Vs(2).outerMenuOpen=!1})),Ts(5,"div",22),Ts(6,"p"),Xs(7,"Change Billing"),As(),As(),Ts(8,"div",23),Ts(9,"p"),Xs(10,"My Plan"),As(),As(),Ts(11,"div",24),Ts(12,"p"),Xs(13,"Questionnaire"),As(),As(),Ts(14,"div",25),Ts(15,"p"),Xs(16,"Submit Request"),As(),As(),As(),As(),Ds()}if(2&t){const t=Vs(2);_i(4),Ms("ngClass",ou(1,V_,!t.outerMenuOpen))}}function q_(t,e){1&t&&(Ts(0,"div",26),Ts(1,"p"),Xs(2,"Setup Billing"),As(),As())}function z_(t,e){1&t&&(Ts(0,"div",22),Ts(1,"p"),Xs(2,"Update Card"),As(),As())}function H_(t,e){if(1&t){const t=Ns();Os(0,B_,17,3,"ng-container",16),Os(1,q_,3,0,"div",17),Os(2,z_,3,0,"div",18),Ts(3,"button",19),Fs("click",(function(){return ln(t),Vs().logout()})),Ts(4,"p"),Xs(5,"Logout"),As(),As()}if(2&t){const t=Vs();Ms("ngIf",t.validSubscription),_i(1),Ms("ngIf",!t.billingSetup),_i(1),Ms("ngIf",t.billingSetup&&!t.validSubscription),_i(1),Ms("disabled",t.logging)}}let W_=(()=>{class t{constructor(t,e,n){this.auth=t,this.user=e,this.router=n,this.hideBackground=!0}ngOnInit(){}logout(){return Tv(this,void 0,void 0,(function*(){this.logging=!0,yield this.auth.logout(),this.logging=!1,this.router.navigate(["/"])}))}get loggedIn(){return this.auth.authState.value}get billingSetup(){var t;return null===(t=this.user.membershipData)||void 0===t?void 0:t.cardDetails}get validSubscription(){var t,e;return"trialing"===(null===(t=this.user.membershipData)||void 0===t?void 0:t.subscriptionStatus)||"active"===(null===(e=this.user.membershipData)||void 0===e?void 0:e.subscriptionStatus)}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(kv),Es(sv))},t.\u0275cmp=fe({type:t,selectors:[["app-menu"]],inputs:{hideBackground:"hideBackground"},decls:23,vars:5,consts:[[1,"menu-container"],[1,"menu-background"],["src","../assets/svgs/top_rectangle.svg",3,"ngClass"],[1,"menu-overlay"],[1,"pages"],["routerLink","/",1,"logo"],["src","../assets/logo.svg"],["routerLink","/work",1,"menu-option"],["routerLink","/plans",1,"menu-option"],["routerLink","/blog",1,"menu-option"],["routerLink","/about",1,"menu-option"],[1,"account"],[4,"ngIf","ngIfElse"],["logoutContainer",""],["routerLink","/login",1,"login"],["routerLink","/signup",1,"trial"],[4,"ngIf"],["routerLink","/signup",4,"ngIf"],["routerLink","/billing",4,"ngIf"],[1,"logout",3,"disabled","click"],[3,"click","mouseover","mouseleave"],[1,"outer-menu",3,"ngClass","click","mouseover","mouseleave"],["routerLink","/billing"],["routerLink","/my-plan"],["routerLink","/questionnaire"],["routerLink","/submit-request"],["routerLink","/signup"]],template:function(t,e){if(1&t&&(Ts(0,"div",0),Ts(1,"div",1),ks(2,"img",2),As(),Ts(3,"div",3),Ts(4,"div",4),Ts(5,"div",5),ks(6,"img",6),As(),Ts(7,"div",7),Ts(8,"p"),Xs(9,"Our Work"),As(),As(),Ts(10,"div",8),Ts(11,"p"),Xs(12,"Pricing"),As(),As(),Ts(13,"div",9),Ts(14,"p"),Xs(15,"Blog"),As(),As(),Ts(16,"div",10),Ts(17,"p"),Xs(18,"About"),As(),As(),As(),Ts(19,"div",11),Os(20,U_,7,0,"ng-container",12),Os(21,H_,6,4,"ng-template",null,13,Tu),As(),As(),As()),2&t){const t=xs(22);
1_i(2),Ms("ngClass",ou(3,V_,e.hideBackground)),_i(18),Ms("ngIf",!e.loggedIn)("ngIfElse",t)}},directives:[il,av,ul],styles:["p[_ngcontent-%COMP%]{color:var(--text-light-color);font-family:Poppins-Medium;cursor:pointer}p[_ngcontent-%COMP%]:hover{text-decoration:underline}.menu-container[_ngcontent-%COMP%]{position:relative;height:112px;width:100%}.menu-container[_ngcontent-%COMP%] .menu-background[_ngcontent-%COMP%]{transform:translateY(-50%);min-height:8rem}.menu-container[_ngcontent-%COMP%] .menu-background[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:228px;width:100%;-o-object-fit:cover;object-fit:cover}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%]{position:absolute;top:2rem;left:0;width:100%;display:flex;flex-wrap:wrap}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%]{flex-grow:3;display:flex;flex-wrap:wrap}@media (min-width:992px){.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%]{margin-left:5rem}}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{cursor:pointer;margin-left:.5rem;display:flex;align-items:center}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%] .menu-option[_ngcontent-%COMP%]{padding:0 .5rem;margin:0 1rem}@media (max-width:767px){.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%] .menu-option[_ngcontent-%COMP%]{display:none}}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;align-items:center}@media (min-width:992px){.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%]{margin-right:5rem}}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:relative;cursor:pointer;transition:background-color 1s;background-color:var(--text-light-color);border:0;border-radius:2rem;margin:0 1rem}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:0 1.5rem;color:var(--primary-color)}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--subtitle-color)}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .outer-menu[_ngcontent-%COMP%]{position:absolute;z-index:1000;left:-2rem;background-color:var(--text-light-color);border-radius:1rem;padding:0 1rem;-webkit-animation-name:slidein;animation-name:slidein;-webkit-animation-duration:.25s;animation-duration:.25s}.menu-container[_ngcontent-%COMP%] .menu-overlay[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .outer-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--primary-color)}@-webkit-keyframes slidein{0%{opacity:0}to{opacity:1}}@keyframes slidein{0%{opacity:0}to{opacity:1}}"]}),t})(),G_=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}sendToSignup(){this.router.navigate(["/","signup"],{queryParams:{email:this.email}})}}return t.\u0275fac=function(e){return new(e||t)(Es(sv))},t.\u0275cmp=fe({type:t,selectors:[["app-free-trial-button"]],decls:5,vars:2,consts:[[1,"trial-email",3,"submit"],["freeTrialForm","ngForm"],["type","email","name","email","email","","placeholder","Enter your email address...","required","",3,"ngModel","ngModelChange"],["type","submit",3,"disabled"]],template:function(t,e){if(1&t&&(Ts(0,"form",0,1),Fs("submit",(function(){return e.sendToSignup()})),Ts(2,"input",2),Fs("ngModelChange",(function(t){return e.email=t})),As(),Ts(3,"button",3),Xs(4," Start Free Trial "),As(),As()),2&t){const t=xs(1);_i(2),Ms("ngModel",e.email),_i(1),Ms("disabled",t.invalid)}},directives:[Jh,lh,Kh,rh,rp,ep,ch,Xh],styles:[".trial-email[_ngcontent-%COMP%]{margin:0 auto;max-width:28rem}"]}),t})();var $_=n("DlQD");let Q_=(()=>{class t{transform(t,...e){return $_(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=we({name:"mdToHtml",type:t,pure:!0}),t})();function K_(t,e){if(1&t&&(Ts(0,"div",4),Ts(1,"div",5),ks(2,"img",6),As(),Ts(3,"h1"),Xs(4),As(),ks(5,"p",7),lu(6,"mdToHtml"),As()),2&t){const t=e.$implicit,n=Vs();_i(2),Ms("src",n.getCardIconUrl(t.icon),ei)("alt",t.icon),_i(2),Js(t.title),_i(1),Ms("innerHTML",hu(6,4,t.details),ti)}}let Y_=(()=>{class t{constructor(){}ngOnInit(){}getCardIconUrl(t){return`../../../assets/svgs/${t}_icon.svg`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-cards-section"]],inputs:{cardSectionContent:"cardSectionContent"},decls:8,vars:3,consts:[[1,"cards-sections"],[1,"top-text"],[1,"cards"],["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"icon-holder"],[3,"src","alt"],[3,"innerHTML"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"div",1),Ts(2,"h5"),Xs(3),As(),Ts(4,"h1"),Xs(5),As(),As(),Ts(6,"div",2),Os(7,K_,7,6,"div",3),As(),As()),2&t&&(_i(3),Js(e.cardSectionContent.title),_i(2),Js(e.cardSectionContent.subtitle),_i(2),Ms("ngForOf",e.cardSectionContent.cards))},directives:[sl],pipes:[Q_],styles:[".cards-sections[_ngcontent-%COMP%]{padding-bottom:5rem;text-align:center}
1.cards-sections[_ngcontent-%COMP%] .top-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-top:0;color:var(--primary-color)}.cards-sections[_ngcontent-%COMP%] .top-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{line-height:36px;font-size:30px;color:var(--text-dark-color)}@media (min-width:786px){.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}}.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{margin-top:5rem;flex-basis:33%;background-color:#fff;border-radius:1rem}@media (min-width:992px){.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{flex-basis:25%}}@media (max-width:786px){.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}}.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .icon-holder[_ngcontent-%COMP%]{position:relative;bottom:5rem;margin:0 0 -5rem}.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:10%;margin-right:10%}.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--text-dark-color);font-size:25px}.cards-sections[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color);font-size:14px;margin-bottom:2rem;padding-bottom:2.5rem}"]}),t})();const Z_=["*"];let X_=(()=>{class t{constructor(t,e,n){this.el=t,this.zone=e,this.platformId=n,this.afterChange=new fu,this.beforeChange=new fu,this.breakpoint=new fu,this.destroy=new fu,this.init=new fu,this.currentIndex=0,this.slides=[],this.initialized=!1,this._removedSlides=[],this._addedSlides=[]}ngOnDestroy(){this.unslick()}ngAfterViewInit(){this.ngAfterViewChecked()}ngAfterViewChecked(){if(!yl(this.platformId)&&(this._addedSlides.length>0||this._removedSlides.length>0)){const t=this.slides.length-this._removedSlides.length+this._addedSlides.length;this.initialized?0===t?this.unslick():(this._addedSlides.forEach(t=>{this.slides.push(t),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickAdd",t.el.nativeElement)})}),this._addedSlides=[],this._removedSlides.forEach(t=>{const e=this.slides.indexOf(t);this.slides=this.slides.filter(e=>e!==t),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickRemove",e)})}),this._removedSlides=[]):t>0&&this.initSlick()}}initSlick(){this.slides=this._addedSlides,this._addedSlides=[],this._removedSlides=[],this.zone.runOutsideAngular(()=>{this.$instance=jQuery(this.el.nativeElement),this.$instance.on("init",(t,e)=>{this.zone.run(()=>{this.init.emit({event:t,slick:e})})}),this.$instance.slick(this.config),this.zone.run(()=>{var t;this.initialized=!0,this.currentIndex=(null===(t=this.config)||void 0===t?void 0:t.initialSlide)||0}),this.$instance.on("afterChange",(t,e,n)=>{this.zone.run(()=>{this.afterChange.emit({event:t,slick:e,currentSlide:n,first:0===n,last:e.$slides.length===n+e.options.slidesToScroll}),this.currentIndex=n})}),this.$instance.on("beforeChange",(t,e,n,r)=>{this.zone.run(()=>{this.beforeChange.emit({event:t,slick:e,currentSlide:n,nextSlide:r}),this.currentIndex=r})}),this.$instance.on("breakpoint",(t,e,n)=>{this.zone.run(()=>{this.breakpoint.emit({event:t,slick:e,breakpoint:n})})}),this.$instance.on("destroy",(t,e)=>{this.zone.run(()=>{this.destroy.emit({event:t,slick:e}),this.initialized=!1})})})}addSlide(t){this._addedSlides.push(t)}removeSlide(t){this._removedSlides.push(t)}slickGoTo(t){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickGoTo",t)})}slickNext(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickNext")})}slickPrev(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPrev")})}slickPause(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPause")})}slickPlay(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPlay")})}unslick(){this.$instance&&(this.zone.runOutsideAngular(()=>{this.$instance.slick("unslick")}),this.$instance=void 0),this.initialized=!1}ngOnChanges(t){if(this.initialized){const e=t.config;if(e.previousValue!==e.currentValue&&void 0!==e.currentValue){const t=e.currentValue.refresh,n=Object.assign({},e.currentValue);delete n.refresh,this.zone.runOutsideAngular(()=>{this.$instance.slick("slickSetOption",n,t)})}}}}return t.\u0275fac=function(e){return new(e||t)(Es(Ca),Es(Zu),Es(ju))},t.\u0275cmp=fe({type:t,selectors:[["ngx-slick-carousel"]],inputs:{config:"config"},outputs:{afterChange:"afterChange",beforeChange:"beforeChange",breakpoint:"breakpoint",destroy:"destroy",init:"init"},exportAs:["slick-carousel"],features:[va([{provide:Xl,useExisting:Et(()=>t),multi:!0}]),Le],ngContentSelectors:Z_,decls:1,vars:0,template:function(t,e){1&t&&(function(t){const e=un()[16][6];if(!e.projection){const t=e.projection=oe(1,null),n=t.slice();let r=e.child;for(;null!==r;){const e=0;null!==e&&(n[e]?n[e].projectionNext=r:t[e]=r,n[e]=r),r=r.next}}}(),function(t,e=0,n){const r=un(),i=cn(),o=Ai(i,t,1,null,n||null);null===o.projection&&(o.projection=e),fn(),function(t,e,n){To(e[11],0,e,n,bo(t,n,e),Eo(n.parent||e[6],e))}(i,r,o)}(0))},encapsulation:2}),t})(),J_=(()=>{class t{constructor(t,e,n){this.el=t,this.platformId=e,this.carousel=n}ngOnInit(){ml(this.platformId)&&this.carousel.addSlide(this)}ngOnDestroy(){ml(this.platformId)&&this.carousel.removeSlide(this)}}return t.\u0275fac=function(e){return new(e||t)(Es(Ca),Es(ju),Es(X_,1))},t.\u0275dir=be({type:t,selectors:[["","ngxSlickItem",""]]}),t})(),tb=(()=>{class t{}return t.\u0275mod=ve({type:t}
1),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[gl]]}),t})();function eb(t,e){if(1&t&&(Ts(0,"div",6),ks(1,"p",7),lu(2,"mdToHtml"),Ts(3,"div",8),Ts(4,"p"),Xs(5),As(),Ts(6,"p"),Xs(7),As(),As(),As()),2&t){const t=e.$implicit;_i(1),Ms("innerHTML",hu(2,3,t.quote),ti),_i(4),Js(t.quotee),_i(2),Js(t.quoteeTitle)}}let nb=(()=>{class t{constructor(t){this.dataService=t}ngOnInit(){this.slideConfig={dots:!0,autoplay:!0,adaptiveHeight:!0,arrows:!1}}trackByIndex(t,e){return e}get testimonials(){return this.dataService.testimonials}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-testimonials"]],decls:10,vars:3,consts:[[1,"testimonials","covers-page-width"],[1,"icon-holder"],["src","../../../assets/svgs/testimonials_icon.svg"],[1,"text-holder"],[3,"config"],["ngxSlickItem","",4,"ngFor","ngForOf","ngForTrackBy"],["ngxSlickItem",""],[1,"quote",3,"innerHTML"],[1,"testifier"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"div",1),ks(2,"img",2),As(),Ts(3,"div",3),Ts(4,"h5"),Xs(5,"Testimonials"),As(),Ts(6,"h1"),Xs(7,"What they think about us"),As(),Ts(8,"ngx-slick-carousel",4),Os(9,eb,8,5,"div",5),As(),As(),As()),2&t&&(_i(8),Ms("config",e.slideConfig),_i(1),Ms("ngForOf",e.testimonials)("ngForTrackBy",e.trackByIndex))},directives:[X_,sl,J_],pipes:[Q_],styles:[".testimonials[_ngcontent-%COMP%]{background-color:var(--primary-color);padding-top:3rem;padding-bottom:3rem}@media (min-width:786px){.testimonials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}}@media (max-width:786px){.testimonials[_ngcontent-%COMP%]{text-align:center}}.testimonials[_ngcontent-%COMP%] .icon-holder[_ngcontent-%COMP%]{display:inline-block;width:100%}@media (min-width:786px){.testimonials[_ngcontent-%COMP%] .icon-holder[_ngcontent-%COMP%]{width:25%;text-align:right;margin-right:1rem}}.testimonials[_ngcontent-%COMP%] .icon-holder[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%]{color:var(--text-light-color);display:inline-block;width:50%}@media (max-width:786px){.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%]{width:85%}}.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:var(--text-light-color)}.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:30px}.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem}.testimonials[_ngcontent-%COMP%] .text-holder[_ngcontent-%COMP%] .testifier[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"]}),t})();function rb(t,e){if(1&t&&(Ts(0,"div",7),ks(1,"img",8),As()),2&t){const t=Vs();_i(1),Ms("src",t.getIconLocation(t.reasonsCard.icon),ei)("alt",t.reasonsCard.type)}}function ib(t,e){if(1&t&&(Ts(0,"h1"),Xs(1),lu(2,"number"),Ts(3,"span"),Xs(4,"/year"),As(),As()),2&t){const t=Vs();_i(1),ta(" \xa3",hu(2,1,t.reasonsCard.productDetails.yearly.price/100),"")}}function ob(t,e){if(1&t&&(Ts(0,"h1"),Xs(1),As()),2&t){const t=Vs();_i(1),Js(t.reasonsCard.title)}}function sb(t,e){if(1&t&&(Ts(0,"div",9),Ts(1,"div",7),ks(2,"img",10),As(),Ts(3,"p",2),Xs(4),As(),As()),2&t){const t=e.$implicit;_i(4),ta(" ",t," ")}}function ab(t,e){1&t&&(Ts(0,"button",11),Ts(1,"p"),Xs(2,"Start Free Trial"),As(),As())}const ub=function(t,e){return{"last-card":t,"black-card":e}};let cb=(()=>{class t{constructor(){this.purpleColor=!1,this.blackBackground=!1,this.showTrialButton=!0}ngOnInit(){}getIconLocation(t){return`../../../assets/svgs/${t}.svg`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-reasons-card"]],inputs:{reasonsCard:"reasonsCard",purpleColor:"purpleColor",blackBackground:"blackBackground",showTrialButton:"showTrialButton"},decls:13,vars:11,consts:[[1,"card",3,"ngClass"],["class","icon-container",4,"ngIf"],[1,"text-container"],[4,"ngIf"],[1,"points"],["class","point",4,"ngFor","ngForOf"],["class","trial-button","routerLink","/signup",4,"ngIf"],[1,"icon-container"],[3,"src","alt"],[1,"point"],["src","../../../assets/svgs/tick_purple.svg","alt","Tick"],["routerLink","/signup",1,"trial-button"]],template:function(t,e){1&t&&(Ts(0,"div",0),Os(1,rb,2,2,"div",1),Ts(2,"div",2),Ts(3,"h5"),Xs(4),As(),Os(5,ib,5,3,"h1",3),Os(6,ob,2,1,"h1",3),Ts(7,"p"),Xs(8),As(),As(),ks(9,"hr"),Ts(10,"div",4),Os(11,sb,5,1,"div",5),As(),Os(12,ab,3,0,"button",6),As()),2&t&&(Ms("ngClass",su(8,ub,e.purpleColor||e.blackBackgroun
vendor: 8,425 bytes, line 1
1d,e.blackBackground)),_i(1),Ms("ngIf",e.reasonsCard.icon),_i(3),Js(e.reasonsCard.type),_i(1),Ms("ngIf",e.reasonsCard.productDetails),_i(1),Ms("ngIf",e.reasonsCard.title),_i(2),Js(e.reasonsCard.details),_i(3),Ms("ngForOf",e.reasonsCard.advantages),_i(1),Ms("ngIf",e.showTrialButton))},directives:[il,ul,sl,av],pipes:[fl],styles:[".card[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;flex-direction:column;border-radius:2rem;flex-basis:28%;margin:0 1rem;background-color:var(--text-light-color)}@media (max-width:992px){.card[_ngcontent-%COMP%]{margin:5rem 1rem}}.card[_ngcontent-%COMP%] > .icon-container[_ngcontent-%COMP%]{position:absolute;top:-3rem;right:3rem}.card[_ngcontent-%COMP%] > .text-container[_ngcontent-%COMP%]{margin:2rem}.card[_ngcontent-%COMP%] > .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.card[_ngcontent-%COMP%] > .text-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color)}.card[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{margin:0 2rem;border-width:0;height:1px;background-color:#e0e0e0}.card[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{padding:1rem 0;margin-left:1rem}.card[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:flex;align-items:center}.card[_ngcontent-%COMP%] .trial-button[_ngcontent-%COMP%]{margin:0 2.5rem 2rem}.last-card[_ngcontent-%COMP%]{background-color:var(--primary-color)}.last-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .last-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .last-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-light-color)}.last-card[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.last-card[_ngcontent-%COMP%] .trial-button[_ngcontent-%COMP%]{background-color:var(--text-light-color)}.last-card[_ngcontent-%COMP%] .trial-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--primary-color)}.black-card[_ngcontent-%COMP%]{background-color:#081029}"]}),t})(),lb=(()=>{class t{constructor(t){this.dataService=t}ngOnInit(){}get plans(){return this.dataService.plans}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-pricing"]],decls:14,vars:4,consts:[[1,"pricing","covers-page-width"],[1,"text-container"],[1,"cards-container"],[3,"reasonsCard"],[3,"reasonsCard","purpleColor"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"div",1),Ts(2,"h5"),Xs(3,"Our Pricing"),As(),Ts(4,"h1"),Xs(5,"Choose a plan"),As(),Ts(6,"p"),Xs(7," We offer different packages that suit businesses of all sizes and types. "),ks(8,"br"),Xs(9,"Compare and find the best plan for you. "),As(),As(),Ts(10,"div",2),ks(11,"app-reasons-card",3),ks(12,"app-reasons-card",3),ks(13,"app-reasons-card",4),As(),As()),2&t&&(_i(11),Ms("reasonsCard",e.plans.sales),_i(1),Ms("reasonsCard",e.plans.marketing),_i(1),Ms("reasonsCard",e.plans.tech)("purpleColor",!0))},directives:[cb],styles:[".pricing[_ngcontent-%COMP%] > .text-container[_ngcontent-%COMP%]{text-align:center;padding:5rem 0}.pricing[_ngcontent-%COMP%] > .text-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color)}.pricing[_ngcontent-%COMP%] .cards-container[_ngcontent-%COMP%]{justify-content:space-evenly;padding-bottom:5rem}@media (min-width:992px){.pricing[_ngcontent-%COMP%] .cards-container[_ngcontent-%COMP%]{display:flex}}"]}),t})(),hb=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-free-trial"]],decls:8,vars:0,consts:[[1,"free-trial","covers-page-width"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"h5"),Xs(2,"Free Trial"),As(),Ts(3,"h1"),Xs(4,"Still not sure?"),As(),Ts(5,"p"),Xs(6," Our free trial has no obligations, feel free to cancel at any time before the trial expires. "),As(),ks(7,"app-free-trial-button"),As())},directives:[G_],styles:[".free-trial[_ngcontent-%COMP%]{padding:3rem 0;text-align:center;background:50% url(free_trial_background.654d422605f363dac7ea.svg);background-size:cover;color:var(--text-light-color)}.free-trial[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:0 1rem}.free-trial[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:var(--text-light-color);margin:0}.free-trial[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 1rem}.free-trial[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;margin-bottom:2rem}"]}),t})(),pb=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-footer"]],decls:41,vars:0,consts:[[1,"covers-page-width"],[1,"content"],[1,"info"],[1,"logo"],["src","../../../assets/logo.svg","alt","VirtualCEO Logo"],[1,"menu"],["routerLink","/about"],["routerLink","/plans"],["routerLink","/work"],["routerLink","/login"],[1,"questions"],[1,"copyright"]],template:function(t,e){1&t&&(Ts(0,"footer",0),Ts(1,"div",1),Ts(2,"div",2),Ts(3,"div",3),ks(4,"img",4),As(),Ts(5,"p"),Xs(6," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. "),As(),As(),Ts(7,"div",5),Ts(8,"h5"),Xs(9,"Menu"),As(),Ts(10,"p",6),Xs(11,"About"),As(),Ts(12,"p",7),Xs(13,"Pricing"),As(),Ts(14,"p",8),Xs(15,"Our Work"),As(),Ts(16,"p",9),Xs(17,"Contact"),As(),As(),Ts(18,"div",10),Ts(19,"h5"),Xs(20,"Popular Questions"),As(),Ts(21,"p"),Ts(22,"a"),Xs(23,"How does it work?"),As(),As(),Ts(24,"p"),Ts(25,"a"),Xs(26,"How much does it cost?"),As(),As(),Ts(27,"p"),Ts(28,"a"),Xs(29,"How many requests can I make for work?"),As(),As(),Ts(30,"p"),Ts(31,"a"),Xs(32,"How do I cancel my account?"),As(),As(),As(),As(),Ts(33,"div",11),Ts(34,"p"),Xs(35,"\xa9 Copyright 2020 | "),Ts(36,"a"),Xs(37,"Fossu Ltd"),As(),Xs(38," | "),Ts(39,"a"),Xs(40,"Privacy & Cookies"),As(),As(),As(),As())},directives:[av],styles:["footer[_ngcontent-%COMP%]{background-color:#080f29;color:#fff}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:2rem 0;align-items:center;justify-content:space-around}@media (min-width:786px){footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex}}@media (max-width:786px){footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;margin:0 .5rem}}footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:30rem}footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .questions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:pointer}footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover, footer[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .questions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover{text-decoration:underline}footer[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{text-align:center;background-color:#0d142d;padding:2rem 0}footer[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0 0}"]}),t})();function db(t,e){if(1&t&&(Ts(0,"div",16),Ts(1,"div",17),Ts(2,"p"),Xs(3),As(),As(),Ts(4,"p"),Xs(5),As(),As()),2&t){const t=e.$implicit,n=e.index;_i(3),ta(" ",n+1," "),_i(2),Js(t)}}function fb(t,e){if(1&t&&(Ts(0,"div",16),Ts(1,"div",8),ks(2,"img",18),As(),Ts(3,"div"),Ts(4,"h3"),Xs(5),As(),Ts(6,"p"),Xs(7),As(),As(),As()),2&t){const t=e.$implicit,n=Vs();_i(2),Ms("src",n.getIconLocation(t.iconName),ei)("alt",t.iconName),_i(3),Js(t.heading),_i(2),Js(t.subtitle)}}let gb=(()=>{class t{constructor(t,e,n){this.auth=t,this.dataService=e,this.cs=n,this.workingPoints=["Sign up for a demo of our Virtual CEO service.","Select an available demo date.","A Virtual CEO advisor will give you a walkthrough of\n our service, and onboard you as a user.","Complete a business audit where we map out your\n company goals and objectives.","Get introduced to your virtual team.","Begin life as a Virtual CEO! Unlimited work requests\n and your virtual department managed via our software."],this.subscriptionPoints=[{iconName:"revision",heading:"Unlimted Work Requests",subtitle:"Submit as many work requests as you like, via our\n platform and your team of specialists will work\n through them in priority order."}
vendor: 5,386 bytes, line 1
1,{iconName:"euro",heading:"Flat Rate Fee",subtitle:"Transparent pricing with our flat-rate subscription\n fees, giving you more flexibility to budget within\n your business."},{iconName:"mobile_tick",heading:"Easy To Manage",subtitle:"Manage your team via our software, build out your\n company dashboard, submit work requests and\n comment on tasks."},{iconName:"aim_target",heading:"Tailor-made Strategy",subtitle:"A custom strategy, tailor-made for your business\n to ensure you reach your revenue and\n business objectives."}]}ngOnInit(){}getIconLocation(t){return`../../../assets/svgs/${t}.svg`}get user(){return this.auth.user}get cardSectionContent(){return this.dataService.services}get chats(){return this.cs.chats}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(L_),Es(Dv))},t.\u0275cmp=fe({type:t,selectors:[["app-home"]],decls:37,vars:4,consts:[[1,"welcome-screen","covers-page-width"],[3,"hideBackground"],[1,"welcome-content"],[1,"welcome-text"],[1,"welcome-icon"],["src","../../../assets/svgs/home_top_icon.svg"],[3,"cardSectionContent"],[1,"working","covers-page-width"],[1,"icon-container"],["src","../../../assets/svgs/lying_surfing.svg","alt","Lying Surfing Working"],[1,"text-container"],[1,"points"],["class","point",4,"ngFor","ngForOf"],[1,"subscription","covers-page-width"],["routerLink","/signup",1,"trial-button"],["src","../../../assets/svgs/talking_icon.svg","alt","Talking"],[1,"point"],[1,"number"],[3,"src","alt"]],template:function(t,e){1&t&&(Ts(0,"div",0),ks(1,"app-menu",1),Ts(2,"div",2),Ts(3,"div",3),Ts(4,"h1"),Xs(5,"Become a Virtual CEO"),As(),Ts(6,"p"),Xs(7," Are you losing money on ads, arguing with developers, or looking for a way to increase sales? With Virtual CEO you can get your marketing, sales and tech departments on subscription for a flat monthly fee with unlimited work requests. "),As(),Ts(8,"p"),Xs(9," Register for a demo, and find out how we can help you become a Virtual CEO today. "),As(),ks(10,"app-free-trial-button"),As(),Ts(11,"div",4),ks(12,"img",5),As(),As(),As(),ks(13,"app-cards-section",6),ks(14,"app-testimonials"),Ts(15,"div",7),Ts(16,"div",8),ks(17,"img",9),As(),Ts(18,"div",10),Ts(19,"h1"),Xs(20,"How does it work?"),As(),Ts(21,"div",11),Os(22,db,6,2,"div",12),As(),As(),As(),Ts(23,"div",13),Ts(24,"div",10),Ts(25,"h1"),Xs(26,"Your entire department on subscription"),As(),Ts(27,"div",11),Os(28,fb,8,4,"div",12),As(),Ts(29,"button",14),Ts(30,"p"),Xs(31,"Start Free Trial"),As(),As(),As(),Ts(32,"div",8),ks(33,"img",15),As(),As(),ks(34,"app-pricing"),ks(35,"app-free-trial"),ks(36,"app-footer")),2&t&&(_i(1),Ms("hideBackground",!0),_i(12),Ms("cardSectionContent",e.cardSectionContent),_i(9),Ms("ngForOf",e.workingPoints),_i(6),Ms("ngForOf",e.subscriptionPoints))},directives:[W_,G_,Y_,nb,sl,av,lb,hb,pb],styles:[".welcome-screen[_ngcontent-%COMP%]{min-height:115vh;background:no-repeat -4rem -2rem url(home_top_background.5899ea516c2d6089e24d.svg);background-size:cover}@media (max-width:786px){.welcome-screen[_ngcontent-%COMP%]{background-position:-23rem -1rem;min-height:100vh}}@media (min-width:992px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem}@media (min-width:992px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%]{flex-basis:50%}}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:90%;text-align:center;margin:1rem auto;color:var(--text-light-color);letter-spacing:.25px}@media (min-width:786px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:70%;text-align:left}}@media (max-width:786px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-top:1.5rem;margin-bottom:2rem}}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{line-height:42px;font-family:Poppins-SemiBold;font-size:35px;margin-bottom:2rem}@media (min-width:992px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:5rem}}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:21px}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(3){font-family:Poppins-SemiBold}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-icon[_ngcontent-%COMP%]{flex-basis:40%;display:flex;justify-content:center;align-items:center}@media (max-width:992px){.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-icon[_ngcontent-%COMP%]{display:none}}.welcome-screen[_ngcontent-%COMP%] .welcome-content[_ngcontent-%COMP%] .welcome-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:85%}.services[_ngcontent-%COMP%]{padding-bottom:5rem;text-align:center}
1.services[_ngcontent-%COMP%] .top-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-top:0;color:var(--primary-color)}.services[_ngcontent-%COMP%] .top-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{line-height:36px;font-size:30px;color:var(--text-dark-color)}@media (min-width:786px){.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}}.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:5rem;flex-basis:33%;background-color:#fff;border-radius:1rem}@media (min-width:992px){.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-basis:25%}}@media (max-width:786px){.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}}.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .icon-holder[_ngcontent-%COMP%]{position:relative;bottom:5rem;margin:0 0 -5rem}.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:10%;margin-right:10%}.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--text-dark-color);font-size:25px}.services[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color);font-size:14px;margin-bottom:2rem;padding-bottom:2.5rem}.working[_ngcontent-%COMP%]{display:flex;background-color:var(--text-light-color)}.working[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{flex-basis:50%;display:flex;align-items:center}@media (min-width:786px){.working[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{margin:0 2rem}}@media (max-width:992px){.working[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:none}}@media (min-width:786px){.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{margin:0 2rem}}.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:5rem;margin-left:2rem}.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{margin-top:2rem}.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:-1rem}.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{padding:0 2rem;font-size:2rem;display:inline-flex;justify-content:center;align-items:center;background:50% url(number_icon.fd29f4cd5e31eb2f529a.svg);background-size:cover}.working[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:var(--subtitle-color);margin-right:1rem}.subscription[_ngcontent-%COMP%]{padding:5rem 0;background-color:var(--text-light-color)}@media (min-width:992px){.subscription[_ngcontent-%COMP%]{display:flex}}.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-basis:50%}@media (min-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 2rem}}@media (max-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}}@media (min-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{margin:0 1rem}}.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{align-items:center;margin:2rem 0 -1rem}@media (min-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:flex}}@media (max-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{text-align:center}}.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{flex-basis:25%}.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;min-width:8rem;max-width:10rem}.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color)}@media (max-width:786px){.subscription[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 1rem}}.subscription[_ngcontent-%COMP%] > .icon-container[_ngcontent-%COMP%]{flex-basis:50%;display:flex;align-items:center}@media (max-width:992px){.subscription[_ngcontent-%COMP%] > .icon-container[_ngcontent-%COMP%]{display:none}}"]}),t})();const mb=function(t){return{dark:t}};let yb=(()=>{class t{constructor(){this.value="",this.onChange=t=>{},this.onTouched=()=>{},this.visible=!1}flipVisibility(){this.visible=!this.visible}updateChanges(){this.onChange(this.value)}writeValue(t){this.value=t,this.updateChanges()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-password-input"]],features:[va([{provide:Xl,useExisting:Et(()=>t),multi:!0}])],decls:4,vars:5,consts:[[1,"field-container"],["placeholder","Enter your password...","name","password","autocomplete","current-password","required","","pattern",".{6,}",1,"form-input",3,"type","ngModel","ngModelChange"],[1,"field-icon",3,"click"],["src","../../../assets/svgs/eye_icon.svg","alt","Flip",3,"ngClass"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"input",1),Fs("ngModelChange",(function(t){return e.value=t}))("ngModelChange",(function(){return e.updateChanges()})),As(),Ts(2,"div",2),Fs("click",(function(){return e.flipVisibility()})),ks(3,"img",3),As(),As()),2&t&&(_i(1),Ms("type",e.visible?"text":"password")("ngModel",e.value),_i(2),Ms("ngClass",ou(3,mb,e.visible)))},directives:[rh,ep,op,ch,Xh,il],styles:[".field-container[_ngcontent-%COMP%]{position:relative}.field-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.field-container[_ngcontent-%COMP%] .field-icon[_ngcontent-%COMP%]{position:absolute;right:0;top:1.35rem;cursor:pointer}.field-container[_ngcontent-%COMP%] .field-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1rem}.dark[_ngcontent-%COMP%]{filter:brightness(0)}"]}),t})();function vb(t,e){if(1&t&&(Ts(0,"div",14),Ts(1,"p"),Xs(2),As(),As()),2&t){const t=Vs();_i(2),Js(t.errorMessage)}}function _b(t,e){1&t&&(Ts(0,"p"),Xs(1,"Logging In..."),As())}function bb(t,e){1&t&&(Ts(0,"p"),Xs(1,"Login"),As())}let wb=(()=>{class t{constructor(t,e){this.auth=t,this.router=e,this.logging=!1,this.loginFailed=!1}ngOnInit(){}login(){var t;return Tv(this,void 0,void 0,(function*(){this.logging=!0;try{yield this.auth.login(this.email,this.password),this.loginFailed=!1,this.email="",this.password="",this.errorMessage="",this.router.navigate(["/","questionnaire"])}catch(e){this.loginFailed=!0,this.errorMessage=null!==(t=e.message)&&void 0!==t?t:e}finally{this.logging=!1}}))}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(sv))},t.\u0275cmp=fe({type:t,selectors:[["app-login"]],decls:23,vars:7,consts:[[3,"hideBackgroun
1d"],[1,"login-page","covers-page-width"],[1,"icon-container"],["src","../../../assets/svgs/lying_surfing.svg","alt","Lying Surfing"],[1,"login-box"],[3,"submit"],["loginForm","ngForm"],["type","email","name","email","autocomplete","email","required","","email","","placeholder","Enter your email address...",1,"form-input",3,"ngModel","ngModelChange"],["required","","name","password",3,"ngModel","ngModelChange"],["class","error-message",4,"ngIf"],["type","submit",3,"disabled"],[4,"ngIf"],["src","../../../assets/svgs/right_arrow.svg","alt","Arrow"],["routerLink","/signup"],[1,"error-message"]],template:function(t,e){if(1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),Ts(2,"div",2),ks(3,"img",3),As(),Ts(4,"div",4),Ts(5,"h1"),Xs(6,"Login to your account"),As(),Ts(7,"p"),Xs(8," Enter your email address and password to access your Virtual CEO account. "),As(),Ts(9,"form",5,6),Fs("submit",(function(){return e.login()})),Ts(11,"input",7),Fs("ngModelChange",(function(t){return e.email=t})),As(),Ts(12,"app-password-input",8),Fs("ngModelChange",(function(t){return e.password=t})),As(),Os(13,vb,3,1,"div",9),Ts(14,"button",10),Os(15,_b,2,0,"p",11),Os(16,bb,2,0,"p",11),ks(17,"img",12),As(),Ts(18,"p"),Xs(19,"Don\u2019t have an account? "),Ts(20,"a",13),Xs(21,"Sign up today!"),As(),As(),As(),As(),As(),ks(22,"app-footer")),2&t){const t=xs(10);Ms("hideBackground",!1),_i(11),Ms("ngModel",e.email),_i(1),Ms("ngModel",e.password),_i(1),Ms("ngIf",e.errorMessage),_i(1),Ms("disabled",t.invalid||e.logging),_i(1),Ms("ngIf",e.logging),_i(1),Ms("ngIf",!e.logging)}},directives:[W_,Jh,lh,Kh,rh,ep,rp,ch,Xh,yb,ul,uv,pb],styles:[".login-page[_ngcontent-%COMP%]{text-align:center;padding:5rem 0;display:flex;margin:0}.login-page[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{text-align:right}@media (max-width:992px){.login-page[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:none}}.login-page[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:85%}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%]{background-color:var(--text-light-color);border-radius:1rem;display:flex;flex-direction:column;justify-content:center;margin:0 auto}@media (min-width:992px){.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%]{display:flex;flex-basis:40%}}@media (max-width:786px){.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%]{margin:0 .5rem}}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:10%;padding-right:10%;font-size:14px;color:var(--subtitle-color)}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:80%;margin:0 auto}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:calc(100% + 2rem);margin:.5rem 0;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{text-decoration:underline;color:var(--subtitle-color)}.login-page[_ngcontent-%COMP%] .login-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}"]}),t})();var Cb="https://js.stripe.com/v3",Ob=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,xb=null,Eb=function(t,e){if(null===t)return null;var n,r=t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(n=e)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}());return function(t){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.7.0"})}(r),r},Pb=Promise.resolve().then((function(){return null,null!==xb?xb:xb=new Promise((function(t,e){if("undefined"!=typeof window)if(window,window.Stripe)t(window.Stripe);else try{var n=function(){for(var t=document.querySelectorAll('script[src^="'.concat(Cb,'"]')),e=0;e<t.length;e++){var n=t[e];if(Ob.test(n.src))return n}return null}();
1n||(n=function(t){var e=document.createElement("script");e.src="".concat(Cb).concat("");var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(e),e}()),n.addEventListener("load",(function(){window.Stripe?t(window.Stripe):e(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){e(new Error("Failed to load Stripe.js"))}))}catch(r){return void e(r)}else t(null)}))})),Mb=!1;Pb.catch((function(t){Mb||console.warn(t)}));class Sb{}class Tb{}class Ab{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ab?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ab;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ab?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class kb{encodeKey(t){return Ib(t)}encodeValue(t){return Ib(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ib(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Db{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new kb,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Db({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}
vendor: 9,105 bytes, line 1
1init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Nb(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Rb(t){return"undefined"!=typeof Blob&&t instanceof Blob}function jb(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Fb{constructor(t,e,n,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ab),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Db,this.urlWithParams=e}serializeBody(){return null===this.body?null:Nb(this.body)||Rb(this.body)||jb(this.body)||"string"==typeof this.body?this.body:this.body instanceof Db?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||jb(this.body)?null:Rb(this.body)?this.body.type||null:Nb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Db?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),u)),new Fb(e,n,i,{params:u,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}var Lb=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Ub{constructor(t,e=200,n="OK"){this.headers=t.headers||new Ab,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Vb extends Ub{constructor(t={}){super(t),this.type=Lb.ResponseHeader}clone(t={}){return new Vb({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Bb extends Ub{constructor(t={}){super(t),this.type=Lb.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bb({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qb extends Ub{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function zb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Hb=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Fb)r=t;else{let i=void 0;i=n.headers instanceof Ab?n.headers:new Ab(n.headers);let o=void 0;n.params&&(o=n.params instanceof Db?n.params:new Db({fromObject:n.params})),r=new Fb(t,e,void 0!==n.body?n.body:null,{headers:i,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Dp(r).pipe(Vg(t=>this.handler.handle(t)));if(t instanceof Fb||"events"===n.observe)return i;const o=i.pipe(cd(t=>t instanceof Bb));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(V(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(V(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Db).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,zb(n,e))}post(t,e,n={}){return this.request("POST",t,zb(n,e))}put(t,e,n={}){return this.request("PUT",t,zb(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Sb))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class Wb{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Gb=new Vt("HTTP_INTERCEPTORS");let $b=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Qb=/^\)\]\}',?\n/;class Kb{}let Yb=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Zb=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new Ab(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new Vb({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),u=null;204!==i&&(u=void 0===n.response?n.responseText:n.response),0===i&&(i=u?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof u){const t=u;u=u.replace(Qb,"");try{u=""!==u?JSON.parse(u):null}catch(l){u=t,c&&(c=!1,u={error:l,text:u})}}c?(e.next(new Bb({body:u,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new qb({error:u,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new qb({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let u=!1;const c=r=>{u||(e.next(o()),u=!0);let i={type:Lb.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},l=t=>{let n={type:Lb.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",l)),n.send(r),e.next({type:Lb.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",l)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Kb))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();
1const Xb=new Vt("XSRF_COOKIE_NAME"),Jb=new Vt("XSRF_HEADER_NAME");class tw{}let ew=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=rl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc),Yt(ju),Yt(Xb))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),nw=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(tw),Yt(Jb))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),rw=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Gb,[]);this.chain=t.reduceRight((t,e)=>new Wb(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Tb),Yt(is))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),iw=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:nw,useClass:$b}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Xb,useValue:e.cookieName}:[],e.headerName?{provide:Jb,useValue:e.headerName}:[]]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[nw,{provide:Gb,useExisting:nw,multi:!0},{provide:tw,useClass:ew},{provide:Xb,useValue:"XSRF-TOKEN"},{provide:Jb,useValue:"X-XSRF-TOKEN"}]}),t})(),ow=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hb,{provide:Sb,useClass:rw},Zb,{provide:Tb,useExisting:Zb},Yb,{provide:Kb,useExisting:Yb}],imports:[[iw.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),sw=(()=>{class t{constructor(t,e){this.http=t,this.db=e}loadStripe(){return Tv(this,void 0,void 0,(function*(){this.stripe=yield function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Mb=!0,Pb.then((function(t){return Eb(t,e)}))}("pk_test_51Gs1MVIaLgEDpYYywvFKooJYIknAw0op5SXaVY1vMqnCE3nslrjtlNrXDqrdC1nqeZNEytfFDg9ZWgvtOEn2QvmK00Nr172pU2")}))}createStripeElements(t,e,n){const r=this.stripe.elements({fonts:[{cssSrc:"https://fonts.googleapis.com/css?family=Poppins"}]}),i={style:Object.assign({},Rv)},o={number:r.create("cardNumber",Object.assign(Object.assign({},i),{iconStyle:"solid"})),cvc:r.create("cardCvc",i),expiry:r.create("cardExpiry",i)};return o.number.mount(t),o.cvc.mount(e),o.expiry.mount(n),o}createCustomer(t,e,n){return Tv(this,void 0,void 0,(function*(){return yield new Promise((r,i)=>{this.http.post(Sc+"/payments/create-customer",{email:e,uid:t,serviceName:n},{headers:{"Content-Type":"application/json"}}).subscribe(r,i)})}))}createSetupIntent(t,e,n){return Tv(this,void 0,void 0,(function*(){const r=new Promise((r,i)=>{this.http.post(Sc+"/payments/create-setup-intent",{customerId:t,uid:e,existingPaymentMethodId:n},{headers:{"Content-Type":"application/json"}}).subscribe(r,i)}),{clientSecret:i}=yield r;this.clientSecret=i}))}createPaymentIntent(t,e,n,r,i){return Tv(this,void 0,void 0,(function*(){const o=new Promise((i,o)=>{this.http.post(Sc+"/payments/create-payment-intent",{uid:t,customerId:e,amount:n,previousInvoiceId:r},{headers:{"Content-Type":"application/json"}}).subscribe(i,o)}),{clientSecret:s}=yield o;this.clientSecret=s;const a=yield this.stripe.confirmCardPayment(this.clientSecret,{payment_method:i});if(a.error)throw a.error;if("succeeded"!==a.paymentIntent.status)throw new Error(`Payment Error! Expected status to be 'succeeded' but it was ${a.paymentIntent.status} instead.`)}))}confirmSetup(t,e){return Tv(this,void 0,void 0,(function*(){const n=yield this.stripe.confirmCardSetup(this.clientSecret,{payment_method:{card:t,billing_details:{name:e}}});if(n.error)throw n.error;if("succeeded"!==n.setupIntent.status)throw new Error(`Setup Error! Expected status to be 'succeeded' but it was ${n.setupIntent.status} instead.`)}))}createSubscription(t,e,n,r){return Tv(this,void 0,void 0,(function*(){yield new Promise((i,o)=>{this.http.post(Sc+"/payments/create-subscription",{uid:t,customerId:e,productId:r,priceId:n},{headers:{"Content-Type":"application/json"}}).subscribe(i,o)})}))}updateSubscription(t,e,n,r,i){return Tv(this,void 0,void 0,(function*(){yield new Promise((o,s)=>{this.http.post(Sc+"/payments/update-subscription",{uid:t,subscriptionId:e,priceId:n,productId:r,serviceName:i},{headers:{"Content-Type":"application/json"}}).subscribe(o,s)})}))}cancelSubscription(t,e){return Tv(this,void 0,void 0,(function*(){yield new Promise((n,r)=>{this.http.post(Sc+"/payments/cancel-subscription",{uid:t,subscriptionId:e},{headers:{"Content-Type":"application/json"}}).subscribe(n,r)})}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Hb),Yt(Av))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aw=(()=>{class t{constructor(){this.color="white"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-spinner"]],inputs:{color:"color"},decls:4,vars:6,consts:[[1,"spinner"],[1,"bounce1"],[1,"bounce2"],[1,"bounce3"]],template:function(t,e){1&t&&(Ts(0,"div",0),ks(1,"div",1),ks(2,"div",2),ks(3,"div",3),As()),2&t&&(_i(1),Ws("background-color",e.color),_i(1),Ws("background-color",e.color),_i(1),Ws("background-color",e.color))},styles:[".spinner[_ngcontent-%COMP%]{margin:0 auto;width:70px;text-align:center}.spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s ease-in-out infinite both;animation:sk-bouncedelay 1.4s ease-in-out infinite both}.spinner[_ngcontent-%COMP%] .bounce1[_ngcontent-%COMP%]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner[_ngcontent-%COMP%] .bounce2[_ngcontent-%COMP%]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),t})();const uw=["cardNumber"],cw=["cardExpiry"],lw=["cardCvc"];function hw(t,e){if(1&t&&(Ts(0,"div",13),Ts(1,"p"),Xs(2),As(),As()),2&t){const t=Vs();_i(2),Js(t.errorMessage)}}function pw(t,e){1&t&&(Ts(0,"div"),Ts(1,"p"),Xs(2,"Loading Billing..."),As(),ks(3,"app-spinner",14),As()),2&t&&(_i(3),Ms("color","var(--primary-color)"))}const dw=function(t){return{hide:t}};let fw=(()=>{class t{constructor(t){this.paymentService=t,this.cardConfirmed=new fu}ngOnInit(){return Tv(this,void 0,void 0,(function*(){this.loadingBilling=!0,yield this.setupStripe(),this.loadingBilling=!1}))}setupStripe(){return Tv(this,void 0,void 0,(function*(){yield this.paymentService.loadStripe();const t=this.paymentService.createStripeElements(this.cardNumber.nativeElement,this.cardCvc.nativeElement,this.cardExpiry.nativeElement);t.number.on("change",this.handleCardChange.bind(this)),t.cvc.on("change",this.handleCardChange.bind(this)),t.expiry.on("change",this.handleCardChange.bind(this)),this.cardNumberElement=t.number,this.cardCvcElement=t.cvc,this.cardExpiryElement=t.expiry,this.numberComplete=!1,this.expiryComplete=!1,this.cvcComplete=!1,yield Promise.all([new Promise(e=>{t.number.on("ready",e)}),new Promise(e=>{t.cvc.on("ready",e)}),new Promise(e=>{t.expiry.on("ready",e)})])}))}confirmSetup(){var t;return Tv(this,void 0,void 0,(function*(){try{this.creatingSubscription=!0,yield this.paymentService.confirmSetup(this.cardNumberElement,this.cardHolderName),this.cardConfirmed.emit()}catch(e){this.errorMessage=null!==(t=e.message)&&void 0!==t?t:e}finally{this.creatingSubscription=!1}}))}handleCardChange(t){this.errorMessage=t.error?t.error.message:"","cardNumber"===t.elementType?this.numberComplete=t.complete:"cardExpiry"===t.elementType?this.expiryComplete=t.complete:"cardCvc"===t.elementType&&(this.cvcComplete=t.complete)}get invalidCard(){return!this.numberComplete||!this.expiryComplete||!this.cvcComplete}}return t.\u0275fac=function(e){return new(e||t)(Es(sw))},t.\u0275cmp=fe({type:t,selectors:[["app-stripe-checkout"]],viewQuery:function(t,e){var n;1&t&&(Pu(uw,!0),Pu(cw,!0),Pu(lw,!0)),2&t&&(Eu(n=Mu())&&(e.cardNumber=n.first),Eu(n=Mu())&&(e.cardExpiry=n.first),Eu(n=Mu())&&(e.cardCvc=n.first))},outputs:{cardConfirmed:"cardConfirmed"},decls:17,vars:7,consts:[[3,"ngClass","ngSubmit"],["stripeForm","ngForm"],[1,"stripe-container"],[1,"card-number"],["cardNumber",""],["type","text","name","cardholder","placeholder","Cardholder name","required","",1,"form-input","card-name",3,"ngModel","ngModelChange"],[1,"card-extra-detail
1s"],["cardExpiry",""],["cardCvc",""],["class","error-message",4,"ngIf"],["type","submit",3,"disabled"],["src","../../../assets/svgs/right_arrow.svg","alt","Arrow"],[4,"ngIf"],[1,"error-message"],[3,"color"]],template:function(t,e){if(1&t&&(Ts(0,"form",0,1),Fs("ngSubmit",(function(){return e.confirmSetup()})),Ts(2,"div",2),ks(3,"div",3,4),Ts(5,"input",5),Fs("ngModelChange",(function(t){return e.cardHolderName=t})),As(),Ts(6,"div",6),ks(7,"div",null,7),ks(9,"div",null,8),As(),Os(11,hw,3,1,"div",9),As(),Ts(12,"button",10),Ts(13,"p"),Xs(14,"Complete Checkout"),As(),ks(15,"img",11),As(),As(),Os(16,pw,4,1,"div",12)),2&t){const t=xs(1);Ms("ngClass",ou(5,dw,e.loadingBilling)),_i(5),Ms("ngModel",e.cardHolderName),_i(6),Ms("ngIf",e.errorMessage),_i(1),Ms("disabled",t.invalid||e.invalidCard||e.creatingSubscription),_i(4),Ms("ngIf",e.loadingBilling)}},directives:[Jh,lh,Kh,il,rh,ep,ch,Xh,ul,aw],styles:["p[_ngcontent-%COMP%]{font-size:14px;color:var(--subtitle-color)}.error-message[_ngcontent-%COMP%]{margin-top:0}form[_ngcontent-%COMP%]{justify-content:center}form[_ngcontent-%COMP%], form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%]{align-items:center}@media (max-width:786px){form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:80%}}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-number[_ngcontent-%COMP%], form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%]{width:100%;justify-content:space-around}@media (min-width:786px){form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%]{display:flex}}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:40%}@media (max-width:786px){form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;width:90%;margin-left:auto;margin-right:auto}}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement[_ngcontent-%COMP%]{display:inline-block;border:1px solid var(--subtitle-color);font-family:Poppins-Regular;border-radius:2rem;padding:.75rem 1rem;margin:.5rem 0}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement--invalid[_ngcontent-%COMP%]{border-color:var(--error-color)}form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement--complete[_ngcontent-%COMP%]{border-color:var(--success-color)}form[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{align-self:center;width:80%}@media (min-width:786px){form[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{width:90%}}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:80%;margin:.5rem auto 2rem;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}@media (max-width:992px){form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{text-decoration:underline;color:var(--subtitle-color)}"]}),t})();function gw(t,e){if(1&t){const t=Ns();Is(0),Ts(1,"div",12),Ts(2,"input",13),Fs("ngModelChange",(function(e){return ln(t),Vs(2).firstName=e})),As(),Ts(3,"input",14),Fs("ngModelChange",(function(e){return ln(t),Vs(2).lastName=e})),As(),As(),Ts(4,"input",15),Fs("ngModelChange",(function(e){return ln(t),Vs(2).companyName=e})),As(),Ts(5,"div",16),Ts(6,"input",17),Fs("ngModelChange",(function(e){return ln(t),Vs(2).email=e})),As(),Ts(7,"input",18),Fs("ngModelChange",(function(e){return ln(t),Vs(2).phone=e})),As(),As(),Ts(8,"div",19),Ts(9,"p"),Xs(10," Which service would you like to trial? "),As(),Ts(11,"div",20),Ts(12,"label",21),Xs(13,"Marketing "),Ts(14,"input",22),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(15,"span",23),As(),Ts(16,"label",21),Xs(17,"Sales "),Ts(18,"input",24),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(19,"span",23),As(),Ts(20,"label",21),Xs(21,"Tech "),Ts(22,"input",25),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(23,"span",23),As(),As(),As(),Ds()}if(2&t){const t=Vs(2);_i(2),Ms("ngModel",t.firstName),_i(1),Ms("ngModel",t.lastName),_i(1),Ms("ngModel",t.companyName),_i(2),Ms("ngModel",t.email),_i(1),Ms("ngModel",t.phone),_i(7),Ms("value",t.pricingCards.marketing)("ngModel",t.selectedCard),_i(4),Ms("value",t.pricingCards.sales)("ngModel",t.selectedCard),_i(4),Ms("value",t.pricingCards.tech)("ngModel",t.selectedCard)}}function mw(t,e){if(1&t){const t=Ns();Is(0),Ts(1,"input",26),Fs("ngModelChange",(function(e){return ln(t),Vs(2).username=e})),As(),Ts(2,"app-password-input",27),Fs("ngModelChange",(function(e){return ln(t),Vs(2).password=e})),As(),Ds()}if(2&t){const t=Vs(2);_i(1),Ms("ngModel",t.username),_i(1),Ms("ngModel",t.password)}}function yw(t,e){if(1&t&&(Ts(0,"div",28),Ts(1,"p"),Xs(2),As(),As()),2&t){const t=Vs(2);_i(2),Js(t.errorMessage)}}function vw(t,e){1&t&&(Is(0),Ts(1,"p"),Xs(2,"Wait..."),As(),Ds())}function _w(t,e){1&t&&(Ts(0,"p"),Xs(1," Next Step "),As(),ks(2,"img",29))}function bw(t,e){if(1&t){const t=Ns();Is(0),Ts(1,"h1"),Xs(2,"Enter your information"),As(),Ts(3,"p"),Xs(4," Help us set up your account by entering some essential information. "),As(),Ts(5,"form",6,7),Fs("ngSubmit",(function(){ln(t);const e=xs(6);return Vs().nextStep(e)})),Os(7,gw,24,11,"ng-container",8),Os(8,mw,3,2,"ng-container",8),Os(9,yw,3,1,"div",9),Ts(10,"button",10),Os(11,vw,3,0,"ng-container",4),Os(12,_w,3,0,"ng-template",null,11,Tu),As(),As(),Ds()}if(2&t){const t=xs(6),e=xs(13),n=Vs();_i(7),Ms("ngIf","entering-primary"===n.currentState),_i(1),Ms("ngIf","entering-secondary"===n.currentState),_i(1),Ms("ngIf",n.errorMessage),_i(1),Ms("disabled",t.invalid||n.creatingAccount),_i(1),Ms("ngIf",n.creatingAccount)("ngIfElse",e)}}function ww(t,e){if(1&t){const t=Ns();Ts(0,"app-stripe-checkout",31),Fs("cardConfirmed",(function(){return ln(t),Vs(2).createSubscription()})),As()}}
1function Cw(t,e){if(1&t&&(Ts(0,"h1"),Xs(1,"Your card info is safe"),As(),Ts(2,"p"),Xs(3," You card will not be charged until after your 7-day trial. "),As(),Ts(4,"h5"),Xs(5,"Today\u2019s total: \xa30.00"),As(),Ts(6,"p"),Xs(7),lu(8,"number"),As(),Os(9,ww,1,0,"app-stripe-checkout",30)),2&t){const t=Vs();_i(7),ta("After your 7-day free trial: \xa3",function(t,e,n,r){const i=un(),o=Ze(i,8);return du(i,pu(i,8)?cu(i,yn(),2,o.transform,n,"1.2",o):o.transform(n,"1.2"))}(0,0,t.price/100),""),_i(2),Ms("ngIf","entering-tertiary"===t.currentState)}}let Ow=(()=>{class t{constructor(t,e,n,r,i,o){this.dataService=t,this.auth=e,this.us=n,this.paymentService=r,this.router=i,this.route=o}ngOnInit(){this.route.queryParams.subscribe(t=>{this.email=t.email}),this.selectedCard=this.dataService.plans.marketing,this.service=Object.assign({name:"marketing"},this.selectedCard.productDetails.monthly),this.currentState="entering-primary",this.auth.authState.subscribe(t=>Tv(this,void 0,void 0,(function*(){var e;if(t){this.email=null!==(e=this.email)&&void 0!==e?e:this.us.userData.email;const t=this.us.membershipData.serviceName;t&&(this.service=Object.assign({name:t},this.dataService.plans[t].productDetails.monthly)),yield this.paymentService.createSetupIntent(this.us.membershipData.customerId,this.auth.user.uid),this.currentState="entering-tertiary"}})))}nextStep(t){var e;return Tv(this,void 0,void 0,(function*(){try{if(this.creatingAccount=!0,"entering-primary"===this.currentState)yield this.checkFirstPage(t),this.service=Object.assign({name:"SALES"===this.selectedCard.type?"sales":"MARKETING"===this.selectedCard.type?"marketing":"tech"},this.selectedCard.productDetails.monthly),this.selectedCard=this.dataService.pros,this.currentState="entering-secondary";else if("entering-secondary"===this.currentState){yield this.checkSecondPage(t);const e=yield this.signup();yield this.paymentService.createCustomer(e,this.email,this.service.name)}this.errorMessage=""}catch(n){this.errorMessage=null!==(e=n.message)&&void 0!==e?e:n}finally{this.creatingAccount=!1}}))}checkFirstPage(t){return Tv(this,void 0,void 0,(function*(){const e=t.controls.email.value;if(yield this.auth.emailExists(e))throw t.controls.email.setValue(""),new Error("Email already exists!")}))}checkSecondPage(t){return Tv(this,void 0,void 0,(function*(){const e=t.controls.username.value;if(yield this.auth.usernameExists(e))throw t.controls.username.setValue(""),new Error("Username already is in use!")}))}signup(){return Tv(this,void 0,void 0,(function*(){const{uid:t}=yield this.auth.signup(`${this.firstName} ${this.lastName}`,this.email,this.password);return yield this.us.createUserDocument({uid:t,firstName:this.firstName,lastName:this.lastName,companyName:this.companyName,email:this.email,phone:this.phone,username:this.username}),t}))}createSubscription(){return Tv(this,void 0,void 0,(function*(){const t=this.dataService.plans[this.service.name].productDetails;yield this.paymentService.createSubscription(this.auth.user.uid,this.us.membershipData.customerId,t.monthly.priceId,t.productId),this.router.navigate(["/","questionnaire"])}))}get pricingCards(){return this.dataService.plans}get price(){return this.dataService.plans[this.service.name].productDetails.monthly.price}}return t.\u0275fac=function(e){return new(e||t)(Es(L_),Es(Nv),Es(kv),Es(sw),Es(sv),Es(Wm))},t.\u0275cmp=fe({type:t,selectors:[["app-signup"]],decls:8,vars:6,consts:[[3,"hideBackground"],[1,"signup-page"],[3,"reasonsCard","purpleColor","showTrialButton"],[1,"signup-box"],[4,"ngIf","ngIfElse"],["billingBox",""],[3,"ngSubmit"],["signupForm","ngForm"],[4,"ngIf"],["class","error-message",4,"ngIf"],["type","submit",3,"disabled"],["stepping",""],[1,"name"],["type","text","name","firstname","placeholder","First name*","required","",1,"form-input",3,"ngModel","ngModelChange"],["type","text","name","lastname","placeholder","Last name*","required","",1,"form-input",3,"ngModel","ngModelChange"],["type","text","name","company","placeholder","Company name*","required","",1,"form-input",3,"ngModel","ngModelChange"],[1,"contact"],["type","email","name","email","placeholder","Email address*","email","","required","",1,"form-input",3,"ngModel","ngModelChange"],["type","tel","pattern","[+]?[0-9-]+","name","phone","placeholder","Contact phone number*","required","",1,"form-input",3,"ngModel","ngModelChange"],[1,"service-selector"],[1,"services"],[1,"radio-label"],["type","radio","checked","checked","name","service","required","",3,"value","ngModel","ngModelChange"],[1,"checkmark"],["type","radio","name","service","value","sales","required","",3,"value","ngModel","ngModelChange"],["type","radio","name","service","value","tech","required","",3,"value","ngModel","ngModelChange"],["type","text","name","username","placeholder","Username*","autocomplete","username","required","",1,"form-input",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],[1,"error-message"],["src","../../../assets/svgs/right_arrow.svg","alt","Arrow"],[3,"cardConfirmed",4,"ngIf"],[3,"cardConfirmed"]],template:function(t,e){if(1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),ks(2,"app-reasons-card",2),Ts(3,"div",3),Os(4,bw,14,6,"ng-container",4),Os(5,Cw,10,5,"ng-template",null,5,Tu),As(),As(),ks(7,"app-footer")),2&t){const t=xs(6);
1Ms("hideBackground",!1),_i(2),Ms("reasonsCard",e.selectedCard)("purpleColor",!0)("showTrialButton",!1),_i(2),Ms("ngIf","entering-tertiary"!==e.currentState)("ngIfElse",t)}},directives:[W_,cb,ul,pb,Jh,lh,Kh,rh,ep,ch,Xh,rp,op,Ph,yb,fw],pipes:[fl],styles:[".signup-page[_ngcontent-%COMP%]{text-align:center;padding:5rem 0;justify-content:space-around;margin:0}@media (min-width:992px){.signup-page[_ngcontent-%COMP%]{display:flex}}.signup-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1.5rem}.signup-page[_ngcontent-%COMP%] app-reasons-card[_ngcontent-%COMP%]{flex-basis:35%;text-align:left}@media (max-width:992px){.signup-page[_ngcontent-%COMP%] app-reasons-card[_ngcontent-%COMP%]{display:none}}.signup-page[_ngcontent-%COMP%] app-stripe-checkout[_ngcontent-%COMP%]{flex-basis:50%}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%]{background-color:var(--text-light-color);border-radius:1rem;flex-basis:50%;display:flex;flex-direction:column;justify-content:center}@media (max-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%]{margin:0 .5rem}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:var(--subtitle-color)}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{margin-top:0}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.stripe-container){justify-content:space-around;align-items:center}@media (min-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.stripe-container){display:flex}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.stripe-container) input[_ngcontent-%COMP%]{width:40%}@media (max-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.stripe-container) input[_ngcontent-%COMP%]{width:80%}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}@media (max-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:80%}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-number[_ngcontent-%COMP%], .signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%]{width:100%;justify-content:space-around}@media (min-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%]{display:flex}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:40%}@media (max-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .card-extra-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;width:90%;margin-left:auto;margin-right:auto}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement[_ngcontent-%COMP%]{display:inline-block;border:1px solid var(--subtitle-color);font-family:Poppins-Regular;border-radius:2rem;padding:.75rem 1rem;margin:.5rem 0}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement--invalid[_ngcontent-%COMP%]{border-color:var(--error-color)}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .stripe-container[_ngcontent-%COMP%] .StripeElement--complete[_ngcontent-%COMP%]{border-color:var(--success-color)}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] app-password-input[_ngcontent-%COMP%]{align-self:center;width:80%}@media (min-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] app-password-input[_ngcontent-%COMP%]{width:90%}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > app-password-input[_ngcontent-%COMP%]{position:relative;right:1rem}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:50%;margin:.5rem auto 2rem;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}@media (max-width:992px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:80%}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{text-decoration:underline;color:var(--subtitle-color)}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .service-selector[_ngcontent-%COMP%]{margin:1.5rem 0;display:flex;flex-direction:column}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .service-selector[_ngcontent-%COMP%] .services[_ngcontent-%COMP%]{display:flex}@media (max-width:786px){.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .service-selector[_ngcontent-%COMP%] .services[_ngcontent-%COMP%]{flex-direction:column;align-self:start;margin-left:1rem}}.signup-page[_ngcontent-%COMP%] .signup-box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .service-selector[_ngcontent-%COMP%] .services[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{align-self:start;margin:1rem}"]}),t})();function xw(t,e){if(1&t){const t=Ns();Ts(0,"p",9),Fs("click",(function(){ln(t);const n=e.$implicit,r=Vs(3);return r.gotoNextQuestion(r.currentQuestion,n)})),Xs(1),As()}if(2&t){const t=e.$implicit;_i(1),ta(" ",t," ")}}function Ew(t,e){if(1&t&&(Ts(0,"form"),Ts(1,"h5"),Xs(2),As(),Ts(3,"div",7),Os(4,xw,2,1,"p",8),As(),As()),2&t){const t=Vs(2);_i(2),Js(t.currentQuestion.question),_i(2),Ms("ngForOf",t.currentQuestion.options)}}function Pw(t,e){1&t&&(Ts(0,"p"),Xs(1,"Loading questions..."),As())}function Mw(t,e){if(1&t&&(Is(0),Ts(1,"h3"),Xs(2,"Typeform questionnaire"),As(),Os(3,Ew,5,2,"form",5),Os(4,Pw,2,0,"ng-template",null,6,Tu),Ds()),2&t){const t=xs(5),e=Vs();_i(3),Ms("ngIf",!e.questionsNotLoaded)("ngIfElse",t)}}function Sw(t,e){1&t&&(Is(0),Ts(1,"h3"),Xs(2,"Thank you for your valuable input!"),As(),Ds())}let Tw=(()=>{class t{constructor(t){this.dataService=t,this.completed=!1}ngOnInit(){this.enteredAnswers=[]}gotoNextQuestion(t,e){this.enteredAnswers.push({question:t.question,selectedOption:e}),this.enteredAnswers.length===this.questions.length&&(this.completed=!0)}get questions(){return this.dataService.questions}get questionsNotLoaded(){return 0===this.questions.length}get currentQuestion(){return this.questions[this.enteredAnswers.length]}
1get questionnaireCard(){return this.dataService.questionnaire}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-questionnaire"]],decls:7,vars:7,consts:[[3,"hideBackground"],[1,"questionnaire"],[3,"reasonsCard","purpleColor","blackBackground","showTrialButton"],[1,"form-container"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingQuestions",""],[1,"options"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),ks(2,"app-reasons-card",2),Ts(3,"div",3),Os(4,Mw,6,2,"ng-container",4),Os(5,Sw,3,0,"ng-container",4),As(),As(),ks(6,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(2),Ms("reasonsCard",e.questionnaireCard)("purpleColor",!0)("blackBackground",!0)("showTrialButton",!1),_i(2),Ms("ngIf",!e.completed),_i(1),Ms("ngIf",e.completed))},directives:[W_,cb,ul,pb,Jh,lh,Kh,sl],styles:[".questionnaire[_ngcontent-%COMP%]{padding-bottom:5rem;justify-content:center}@media (min-width:992px){.questionnaire[_ngcontent-%COMP%]{display:flex;padding:5rem 0}}.questionnaire[_ngcontent-%COMP%] app-reasons-card[_ngcontent-%COMP%]{max-width:30rem}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%]{background-color:#fff;padding:2rem 0;margin:1rem;border-radius:1rem;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (min-width:920px){.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%]{padding:0 4rem}}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;text-align:center}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{border-radius:2rem;max-width:80vw;height:25rem;display:flex;flex-direction:column;justify-content:center;text-align:center}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1rem}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{flex-basis:50%;font-size:1rem;cursor:pointer;transition:.5s}.questionnaire[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover{color:#7e7e7e}"]}),t})();const Aw=t=>`url(https://${t.fields.file.url})`;function kw(t,e){if(1&t&&(Ts(0,"div",7),ks(1,"div",8),Ts(2,"div",9),Ts(3,"h5"),Xs(4),As(),Ts(5,"h1"),Xs(6),As(),ks(7,"p",10),lu(8,"mdToHtml"),Ts(9,"h5"),Xs(10,"Read More"),As(),As(),As()),2&t){const t=Vs();_i(1),Ws("background-image",t.getIconUrl(t.coverBlog.icon)),_i(1),Ms("routerLink",t.coverBlog.id),_i(2),Js(t.coverBlog.tag),_i(2),Js(t.coverBlog.title),_i(1),Ms("innerHTML",hu(8,6,t.coverBlog.content.substr(0,120).trim()+"..."),ti)}}function Iw(t,e){1&t&&(Ts(0,"span"),Xs(1,"|"),As())}const Dw=function(t){return{"selected-category":t}};function Nw(t,e){if(1&t){const t=Ns();Is(0),Os(1,Iw,2,0,"span",11),Ts(2,"span",12),Fs("click",(function(){ln(t);const n=e.$implicit;return Vs().setSelectedTag(n)})),Xs(3),As(),Ds()}if(2&t){const t=e.$implicit,n=e.index,r=Vs();_i(1),Ms("ngIf",n>0),_i(1),Ms("ngClass",ou(3,Dw,r.selectedTag===t)),_i(1),ta(" ",t," ")}}function Rw(t,e){if(1&t&&(Ts(0,"div",13),ks(1,"div",14),Ts(2,"div",15),Ts(3,"h5"),Xs(4),As(),Ts(5,"h1"),Xs(6),As(),Ts(7,"h5"),Xs(8,"Read More"),As(),As(),As()),2&t){const t=e.$implicit,n=Vs();Ms("routerLink",t.id),_i(1),Ws("background-image",n.getIconUrl(t.icon)),_i(3),Js(t.tag),_i(2),Js(t.title)}}let jw=(()=>{class t{constructor(t){this.dataService=t,this.selectedTag="All"}ngOnInit(){}setSelectedTag(t){this.selectedTag=t}getIconUrl(t){if(t)return Aw(t)}get tags(){const t=["All"];return this.dataService.blogs.forEach(e=>{t.includes(e.tag)||t.push(e.tag)}),t}get coverBlog(){return this.dataService.blogs[0]}get blogs(){return this.dataService.blogs.filter(t=>"All"===this.selectedTag||t.tag===this.selectedTag)}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-blog"]],decls:12,vars:4,consts:[[3,"hideBackgroun
1d"],[1,"blogs"],["class","cover-blog-container",4,"ngIf"],[1,"blog-meta"],[4,"ngFor","ngForOf"],[1,"blog-list"],["class","blog-container",3,"routerLink",4,"ngFor","ngForOf"],[1,"cover-blog-container"],[1,"cover-icon-container"],[1,"cover-blog",3,"routerLink"],[3,"innerHTML"],[4,"ngIf"],[3,"ngClass","click"],[1,"blog-container",3,"routerLink"],[1,"blog-image-container"],[1,"blog-details"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),Os(2,kw,11,8,"div",2),Ts(3,"div",3),Ts(4,"h5"),Xs(5,"Our Blogs"),As(),Ts(6,"h3"),Os(7,Nw,4,5,"ng-container",4),As(),As(),Ts(8,"div",5),Os(9,Rw,9,5,"div",6),As(),As(),ks(10,"app-free-trial"),ks(11,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(2),Ms("ngIf",e.coverBlog),_i(5),Ms("ngForOf",e.tags),_i(2),Ms("ngForOf",e.blogs))},directives:[W_,ul,sl,hb,pb,av,il],pipes:[Q_],styles:[".blogs[_ngcontent-%COMP%]{margin:2rem 0 5rem}.blogs[_ngcontent-%COMP%] .cover-blog-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:0 1rem}.blogs[_ngcontent-%COMP%] .cover-blog-container[_ngcontent-%COMP%] .cover-icon-container[_ngcontent-%COMP%]{justify-self:right;-webkit-mask:url(hexagon_mask.06162adc46337e96b5c3.svg);mask:url(hexagon_mask.06162adc46337e96b5c3.svg);background-color:#999;transform:translateX(30%);width:30rem;height:33rem}@media (max-width:992px){.blogs[_ngcontent-%COMP%] .cover-blog-container[_ngcontent-%COMP%] .cover-icon-container[_ngcontent-%COMP%]{display:none}}.blogs[_ngcontent-%COMP%] .cover-blog-container[_ngcontent-%COMP%] .cover-blog[_ngcontent-%COMP%]{background-color:#fff;border-radius:1rem;padding:1.5rem 3rem;width:500px;max-width:90vw}@media (min-width:992px){.blogs[_ngcontent-%COMP%] .cover-blog-container[_ngcontent-%COMP%] .cover-blog[_ngcontent-%COMP%]{justify-self:left;transform:translateX(-20%)}}.blogs[_ngcontent-%COMP%] .blog-meta[_ngcontent-%COMP%]{text-align:center}.blogs[_ngcontent-%COMP%] .blog-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:25px}.blogs[_ngcontent-%COMP%] .blog-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .selected-category[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--text-light-color)}.blogs[_ngcontent-%COMP%] .blog-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap}.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%] .blog-container[_ngcontent-%COMP%]{flex-basis:40%;height:30rem;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:2.5rem 0}@media (max-width:786px){.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%] .blog-container[_ngcontent-%COMP%]{flex-basis:95vw}}.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%] .blog-container[_ngcontent-%COMP%] .blog-image-container[_ngcontent-%COMP%]{width:100%;flex-basis:70%;background-color:#999;border-top-left-radius:1rem;border-top-right-radius:1rem;background-position:50%;background-size:cover}.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%] .blog-container[_ngcontent-%COMP%] .blog-details[_ngcontent-%COMP%]{flex-basis:30%;width:100%;background-color:#fff;border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.blogs[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%] .blog-container[_ngcontent-%COMP%] .blog-details[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:2rem}.blog-container[_ngcontent-%COMP%]:hover, .cover-blog[_ngcontent-%COMP%]:hover{cursor:pointer;filter:brightness(.95)}"]}),t})(),Fw=(()=>{class t{constructor(){this.backgroundColor="purple",this.heading="",this.paragraph="",this.subParagraph=""}ngOnInit(){}getBackgroundUrl(){return`url(../../../assets/svgs/scroll_bg_${this.backgroundColor}.svg)`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-welcome-scroll"]],inputs:{backgroundColor:"backgroundColor",heading:"heading",paragraph:"paragraph",subParagraph:"subParagraph"},decls:11,vars:5,consts:[[1,"welcome-container"],[1,"welcome-background"],[1,"text-content"],[1,"mouse-icon-container"],["src","../../../assets/svgs/scroll_mouse.svg"]],template:function(t,e){1&t&&(Ts(0,"div",0),ks(1,"div",1),Ts(2,"div",2),Ts(3,"h1"),Xs(4),As(),Ts(5,"p"),Xs(6),As(),Ts(7,"p"),Xs(8),As(),As(),Ts(9,"div",3),ks(10,"img",4),As(),As()),2&t&&(_i(1),Ws("background-image",e.getBackgroun
1dUrl()),_i(3),Js(e.heading),_i(2),Js(e.paragraph),_i(2),Js(e.subParagraph))},styles:[".welcome-container[_ngcontent-%COMP%]{height:calc(100vh - 112px);color:var(--text-light-color);display:flex;flex-direction:column;align-items:center;justify-content:center}.welcome-container[_ngcontent-%COMP%] .welcome-background[_ngcontent-%COMP%]{position:absolute;z-index:-1;top:0;left:0;right:0;bottom:-1rem;background-repeat:no-repeat;background-position:bottom}.welcome-container[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{flex-basis:70%;margin:0 1rem;max-width:780px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.welcome-container[_ngcontent-%COMP%] .mouse-icon-container[_ngcontent-%COMP%]{flex-basis:20%;display:flex;align-items:flex-end}"]}),t})();function Lw(t,e){1&t&&(Ts(0,"span"),Xs(1,"|"),As())}const Uw=function(t){return{"selected-category":t}};function Vw(t,e){if(1&t){const t=Ns();Is(0),Os(1,Lw,2,0,"span",5),Ts(2,"span",6),Fs("click",(function(){ln(t);const n=e.$implicit;return Vs().setSelectedTag(n)})),Xs(3),As(),Ds()}if(2&t){const t=e.$implicit,n=e.index,r=Vs();_i(1),Ms("ngIf",n>0),_i(1),Ms("ngClass",ou(3,Uw,r.selectedTag===t)),_i(1),ta(" ",t," ")}}function Bw(t,e){if(1&t&&(Ts(0,"div",7),ks(1,"div",8),Ts(2,"div",9),Ts(3,"h5"),Xs(4),As(),Ts(5,"h3"),Xs(6),As(),As(),As()),2&t){const t=e.$implicit,n=Vs();_i(1),Ws("background-image",n.getIconUrl(t.icon)),_i(3),Js(t.tag),_i(2),Js(t.client)}}let qw=(()=>{class t{constructor(t){this.dataService=t,this.selectedTag="All",this.tags=["All","Sales","Marketing","Tech"]}ngOnInit(){}setSelectedTag(t){this.selectedTag=t}getIconUrl(t){if(t)return Aw(t)}get projects(){return this.dataService.projects.filter(t=>"All"===this.selectedTag||t.tag===this.selectedTag)}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-work"]],decls:10,vars:2,consts:[["heading","We\u2019re so proud of our work","paragraph","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex.","subParagraph","Scroll down to see some in-depth case studies!","backgroundColor","purple"],[1,"project-meta"],[4,"ngFor","ngForOf"],[1,"project-list"],["class","project-container",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"project-container"],[1,"project-image-container"],[1,"project-details"]],template:function(t,e){1&t&&(ks(0,"app-menu"),ks(1,"app-welcome-scroll",0),Ts(2,"div",1),Ts(3,"h5"),Xs(4,"Our Projects"),As(),Ts(5,"h3"),Os(6,Vw,4,5,"ng-container",2),As(),As(),Ts(7,"div",3),Os(8,Bw,7,4,"div",4),As(),ks(9,"app-footer")),2&t&&(_i(6),Ms("ngForOf",e.tags),_i(2),Ms("ngForOf",e.projects))},directives:[W_,Fw,sl,pb,ul,il],styles:[".project-meta[_ngcontent-%COMP%]{margin:5rem 0 2rem;text-align:center}.project-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:25px}.project-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .selected-category[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--text-light-color)}.project-meta[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.project-list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap}.project-list[_ngcontent-%COMP%] .project-container[_ngcontent-%COMP%]{flex-basis:30%;height:22rem;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:2.5rem 0}@media (max-width:786px){.project-list[_ngcontent-%COMP%] .project-container[_ngcontent-%COMP%]{flex-basis:95vw}}.project-list[_ngcontent-%COMP%] .project-container[_ngcontent-%COMP%] .project-image-container[_ngcontent-%COMP%]{width:100%;flex-basis:70%;background-color:#999;border-top-left-radius:1rem;border-top-right-radius:1rem;background-position:50%;background-size:cover}.project-list[_ngcontent-%COMP%] .project-container[_ngcontent-%COMP%] .project-details[_ngcontent-%COMP%]{flex-basis:30%;width:100%;background-color:#fff;border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.project-list[_ngcontent-%COMP%] .project-container[_ngcontent-%COMP%] .project-details[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:2rem}"]}),t})(),zw=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-plans"]],decls:4,vars:0,consts:[["backgroundColor","blue","heading","Find the plan that\u2019s right for you","paragraph","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex.","subParagraph","Select your prefered plan and start your free trial today!"]],template:function(t,e){1&t&&(ks(0,"app-menu"),ks(1,"app-welcome-scroll",0),ks(2,"app-pricing"),ks(3,"app-footer"))},directives:[W_,Fw,lb,pb],styles:[""]}),t})();function Hw(t,e){if(1&t&&(Ts(0,"div",13),Ts(1,"div",14),Ts(2,"p"),Xs(3),As(),As(),Ts(4,"p"),Xs(5),As(),As()),2&t){const t=e.$implicit,n=e.index;_i(3),ta(" ",n+1," "),_i(2),Js(t)}}function Ww(t,e){if(1&t&&(Ts(0,"div",13),Ts(1,"div",14),Ts(2,"p"),Xs(3),As(),As(),Ts(4,"p"),Xs(5),As(),As()),2&t){const t=e.$implicit,n=e.index;_i(3),ta(" ",n+1," "),_i(2),Js(t)}}let Gw=(()=>{class t{constructor(t){this.dataService=t,this.corePoints=["Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut."],this.benefitPoints=["Employee benef
1it 1","Employee benefit 2","Employee benefit 3"]}ngOnInit(){}get cardSectionContent(){return this.dataService.facts}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-about"]],decls:42,vars:3,consts:[["heading","Get to know the team","paragraph","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex.","subParagraph","Scroll down to read more about Virtual CEO!"],[1,"spacing"],[3,"cardSectionContent"],[1,"philosophy","covers-page-width"],[1,"core-values","covers-page-width"],[1,"text-container"],[1,"points"],["class","point",4,"ngFor","ngForOf"],[1,"icon-container"],["src","../../../assets/svgs/stats_discussion.svg","alt","Stats Discussion"],[1,"team","covers-page-width"],["src","../../../assets/svgs/talking_icon.svg","alt","Stats Discussion"],[1,"trial-button"],[1,"point"],[1,"number"]],template:function(t,e){1&t&&(ks(0,"app-menu"),ks(1,"app-welcome-scroll",0),ks(2,"div",1),ks(3,"app-cards-section",2),Ts(4,"div",3),Ts(5,"h5"),Xs(6,"Our Philosophy"),As(),Ts(7,"h1"),Xs(8,"What we believe"),As(),Ts(9,"p"),Xs(10," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex. "),As(),Ts(11,"p"),Xs(12,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do!"),As(),As(),Ts(13,"div",4),Ts(14,"div",5),Ts(15,"h1"),Xs(16,"Our core values"),As(),Ts(17,"p"),Xs(18," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),As(),Ts(19,"div",6),Os(20,Hw,6,2,"div",7),As(),As(),Ts(21,"div",8),ks(22,"img",9),As(),As(),Ts(23,"div",10),Ts(24,"div",8),ks(25,"img",11),As(),Ts(26,"div",5),Ts(27,"h1"),Xs(28,"Join our ever expanding team"),As(),Ts(29,"p"),Xs(30," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),As(),Ts(31,"p"),Xs(32," Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "),As(),Ts(33,"div",6),Os(34,Ww,6,2,"div",7),As(),Ts(35,"p"),Xs(36," Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "),As(),Ts(37,"button",12),Ts(38,"p"),Xs(39,"Apply Now"),As(),As(),As(),As(),ks(40,"app-testimonials"),ks(41,"app-footer")),2&t&&(_i(3),Ms("cardSectionContent",e.cardSectionContent),_i(17),Ms("ngForOf",e.corePoints),_i(14),Ms("ngForOf",e.benefitPoints))},directives:[W_,Fw,Y_,sl,nb,pb],styles:[".philosophy[_ngcontent-%COMP%]{padding:3rem 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#081029}.philosophy[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;text-align:center;max-width:750px;color:var(--text-light-color)}.core-values[_ngcontent-%COMP%], .team[_ngcontent-%COMP%]{padding:5rem 0;display:flex;background-color:var(--text-light-color)}.core-values[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{flex-basis:50%;display:flex;align-items:center}@media (min-width:786px){.core-values[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{margin:0 2rem}}@media (max-width:992px){.core-values[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:none}}@media (min-width:786px){.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{margin:0 2rem}}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-left:2rem}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:var(--subtitle-color)}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{margin-top:2rem}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:-1rem}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] .number[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{padding:0 2rem;font-size:2rem;display:inline-flex;justify-content:center;align-items:center;background:50% url(number_icon.fd29f4cd5e31eb2f529a.svg);background-size:cover}.core-values[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .point[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:var(--subtitle-color);margin-right:1rem}.team[_ngcontent-%COMP%]{padding-top:0}.team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.team[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 3rem;align-self:center}"]}),t})();function $w(t,e){if(1&t&&(Ts(0,"div",2),ks(1,"div",3),Ts(2,"h1"),Xs(3),As(),ks(4,"div",4),lu(5,"mdToHtml"),As()),2&t){const t=Vs();_i(1),Ws("background-image",t.getIconUrl(t.blog.icon)),_i(2),Js(t.blog.title),_i(1),Ms("innerHTML",hu(5,4,t.blog.content),ti)}}let Qw=(()=>{class t{constructor(t,e){this.dataService=t,this.route=e}
1ngOnInit(){this.route.params.subscribe(t=>{this.id=t.id})}getIconUrl(t){if(t)return Aw(t)}get blog(){return this.dataService.blogs.find(t=>t.id===this.id)}}return t.\u0275fac=function(e){return new(e||t)(Es(L_),Es(Wm))},t.\u0275cmp=fe({type:t,selectors:[["app-view-blog"]],decls:3,vars:2,consts:[[3,"hideBackground"],["class","blog-container",4,"ngIf"],[1,"blog-container"],[1,"blog-icon"],[1,"blog",3,"innerHTML"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Os(1,$w,6,6,"div",1),ks(2,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(1),Ms("ngIf",e.blog))},directives:[W_,ul,pb],pipes:[Q_],styles:[".blog-container[_ngcontent-%COMP%]{padding:5rem 0}.blog-container[_ngcontent-%COMP%] .blog-icon[_ngcontent-%COMP%]{width:100%;height:80vh;background-color:#999;background-position:50%;background-size:cover}@media (max-width:786px){.blog-container[_ngcontent-%COMP%] .blog-icon[_ngcontent-%COMP%]{height:30vh}}@media (max-width:786px){.blog-container[_ngcontent-%COMP%] .blog[_ngcontent-%COMP%], .blog-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 1rem}.blog-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-top:2rem}}[_nghost-%COMP%] .blog-container>.blog *{max-width:100%}"]}),t})();function Kw(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}class Yw{constructor(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}call(t,e){return e.subscribe(new Zw(t,this.project,this.concurrent,this.scheduler))}}class Zw extends U{constructor(t,e,n,r){super(t),this.project=e,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:n,value:r,index:i}=t;e.subscribeToProjection(n,r,i)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,r=e(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(Zw.dispatch,0,{subscriber:this,result:r,value:t,index:n})):this.subscribeToProjection(r,t,n)}catch(r){e.error(r)}}else this.buffer.push(t)}subscribeToProjection(t,e,n){this.active++,this.destination.add(L(this,t,e,n))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,i){this._next(e)}notifyComplete(t){const e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}class Xw{constructor(t){this.total=t}call(t,e){return e.subscribe(new Jw(t,this.total))}}class Jw extends _{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class tC{}let eC=(()=>{class t extends tC{tick(t){return Dp(0).pipe(function(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,r=>r.lift(new Yw(t,e,n))}(()=>{const e=Date.now(),n=Math.round(Math.abs(e-t)/1e3),r=n<60?1e3:n<3600?6e4:n<86400?36e5:0;return r?function(t=0,e,n){let r=-1;return Sp(e)?r=Number(e)<1?1:Number(e):A(e)&&(n=e),A(n)||(n=gp),new O(e=>{const i=Sp(t)?t:+t-n.now();return n.schedule(Kw,i,{index:0,period:r,subscriber:e})})}(r):Ip()}),t=>t.lift(new Xw(1)))}}return t.\u0275fac=function(e){return nC(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const nC=dr(eC);let rC=(()=>{class t{constructor(){this.changes=new S}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class iC{}let oC=(()=>{class t extends iC{format(t){const{suffix:e,value:n,unit:r}=function(t){const e=Date.now(),n=Math.round(Math.abs(e-t)/1e3),r=t<e?"ago":"from now",[i,o]=n<60?[Math.round(n),"second"]:n<3600?[Math.round(n/60),"minute"]:n<86400?[Math.round(n/3600),"hour"]:n<604800?[Math.round(n/86400),"day"]:n<2592e3?[Math.round(n/604800),"week"]:n<31536e3?[Math.round(n/2592e3),"month"]:[Math.round(n/31536e3),"year"];return{value:i,unit:o,suffix:r}}(t);return this.parse(n,r,e)}parse(t,e,n){return 1!==t&&(e+="s"),t+" "+e+" "+n}}return t.\u0275fac=function(e){return sC(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const sC=dr(oC);let aC=(()=>{class t{constructor(t,e,n,r){this.clock=r,this.live=!0,this.stateChanges=new S,t&&(this.intlSubscription=t.changes.subscribe(()=>this.stateChanges.next())),this.stateChanges.subscribe(()=>{this.value=n.format(this.date),e.markForCheck()})}transform(t,...e){const n=function(t){const e=new Date(t);if(!Number.isNaN(e.valueOf()))return e;const n=String(t).match(/\d+/g);if(null===n||n.length<=2)return e;{const[t,e,...r]=n.map(t=>parseInt(t,10));return new Date(Date.UTC(t,e-1,...r))}}(t).valueOf();let r;if(r=null!=e[0]?null!=(i=e[0])&&""+i!="false":this.live,this.date===n&&this.live===r)return this.value;var i;if(this.date=n,this.live=r,!this.date)throw new SyntaxError("Wrong parameter in TimeagoPipe. Expected a valid date, received: "+t);return this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.clockSubscription=this.clock.tick(this.date).pipe(cd(()=>this.live,this)).subscribe(()=>this.stateChanges.next()),this.stateChanges.next(),this.value}ngOnDestroy(){this.intlSubscription&&(this.intlSubscription.unsubscribe(),this.intlSubscription=void 0),this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Es(rC,8),function(t=ct.Default){const e=Vo(!0);if(null!=e||t&ct.Optional)return e;je("ChangeDetectorRef")}(),Es(iC),Es(tC))},t.\u0275pipe=we({name:"timeago",type:t,pure:!1}),t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),uC=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.clock||{provide:tC,useClass:eC},e.intl||[],e.formatter||{provide:iC,useClass:oC}]}}static forChild(e={}){return{ngModule:t,providers:[e.clock||{provide:tC,useClass:eC},e.intl||[],e.formatter||{provide:iC,useClass:oC}]}}}return t.\u0275mod=ve({type:t}
1),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function cC(t,e){if(1&t&&(Ts(0,"div",21),ks(1,"img",22),Ts(2,"div",23),Ts(3,"div",24),Xs(4),As(),Ts(5,"div",25),Xs(6),As(),As(),Ts(7,"div",26),Ts(8,"p"),Xs(9,"Back"),As(),As(),As()),2&t){const t=Vs(2);_i(1),Bs("src","https://ui-avatars.com/api/?name=",t.otherPerson.name,"&rounded=true&background=7628ED&color=ffffff",ei),_i(3),ta("Chat with ",t.otherPerson.name,""),_i(2),Js(t.chat.name)}}function lC(t,e){1&t&&(Is(0),ks(1,"app-spinner"),Ds())}function hC(t,e){if(1&t){const t=Ns();Ts(0,"p",30),Fs("click",(function(){return ln(t),Vs(3).loadMore()})),Xs(1,"Load More Messages"),As()}}function pC(t,e){if(1&t&&(Ts(0,"div",27),Os(1,lC,2,0,"ng-container",28),Os(2,hC,2,0,"ng-template",null,29,Tu),As()),2&t){const t=xs(3),e=Vs(2);_i(1),Ms("ngIf",e.loadingMessages)("ngIfElse",t)}}function dC(t,e){if(1&t){const t=Ns();Ts(0,"img",40),Fs("click",(function(){ln(t);const e=Vs().$implicit;return Vs(2).gotoLink(e.images[0].url)})),As()}2&t&&Ms("src",Vs().$implicit.images[0].url,ei)}function fC(t,e){if(1&t&&(Ts(0,"span"),Xs(1),As()),2&t){const t=Vs().$implicit;_i(1),ta(" ",t.text," ")}}function gC(t,e){if(1&t){const t=Ns();Ts(0,"div",41),Fs("click",(function(){ln(t);const e=Vs().$implicit;return Vs(2).gotoLink(e.files[0].url)})),Xs(1),As()}if(2&t){const t=Vs().$implicit;_i(1),ta(" ",t.files[0].name," ")}}const mC=function(t){return{"align-right":t}},yC=function(t,e){return{me:t,online:e}},vC=function(t,e,n,r){return{"other-message":t,"float-right":e,"float-left":n,"my-message":r}};function _C(t,e){if(1&t&&(Ts(0,"li",31),Ts(1,"div",32),Ts(2,"span",33),Xs(3),lu(4,"timeago"),As(),Ts(5,"span",34),Xs(6),As(),ks(7,"i",35),As(),Ts(8,"div",36),Os(9,dC,1,1,"img",37),Os(10,fC,2,1,"span",38),Os(11,gC,2,1,"div",39),As(),As()),2&t){const t=e.$implicit,c=Vs(2);_i(1),Ms("ngClass",ou(10,mC,t.senderId!==c.me.uid)),_i(2),Js(hu(4,8,t.time.toDate())),_i(3),ta(" \xa0",c.getName(t.senderId),"\xa0 "),_i(1),Ms("ngClass",su(12,yC,t.senderId===c.me.uid,t.senderId!==c.me.uid)),_i(1),Ms("ngClass",(n=15,r=vC,i=t.senderId!==c.me.uid,o=t.senderId!==c.me.uid,s=t.senderId===c.me.uid,a=t.senderId===c.me.uid,function(t,e,n,r,i,o,s,a,u){const c=e+n;return function(t,e,n,r,i,o){const s=bs(t,e,n,r);return bs(t,e+2,i,o)||s}(t,c,i,o,s,a)?vs(t,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):au(t,c+4)}(un(),yn(),n,r,i,o,s,a,u))),_i(1),Ms("ngIf",null==t.images[0]?null:t.images[0].url),_i(1),Ms("ngIf",t.text),_i(1),Ms("ngIf",t.files[0])}var n,r,i,o,s,a,u}function bC(t,e){if(1&t&&(Ts(0,"div",42),ks(1,"img",43),As()),2&t){const t=Vs(2);_i(1),Ms("src",t.previewImageSrc,ei)}}function wC(t,e){if(1&t&&(Ts(0,"div",44),ks(1,"i",45),Xs(2),As()),2&t){const t=Vs(2);_i(2),ta(" ",t.chatMessageContent.files[0].name," ")}}function CC(t,e){if(1&t){const t=Ns();Ts(0,"div",3),Os(1,cC,10,3,"div",4),Ts(2,"div",5),Os(3,pC,4,2,"div",6),Ts(4,"ul"),Os(5,_C,12,20,"li",7),As(),As(),Ts(6,"div",8),Ts(7,"textarea",9),Fs("ngModelChange",(function(e){return ln(t),Vs().chatMessageContent.text=e})),As(),Ts(8,"div",10),Os(9,bC,2,1,"div",11),Os(10,wC,3,1,"div",12),As(),Ts(11,"div",13),Ts(12,"label",14),ks(13,"i",15),As(),Ts(14,"input",16),Fs("change",(function(e){return ln(t),Vs().updateFileDisplay(e)})),As(),As(),Xs(15," \xa0\xa0\xa0 "),Ts(16,"div",13),Ts(17,"label",17),ks(18,"i",18),As(),Ts(19,"input",19),Fs("change",(function(e){return ln(t),Vs().updateImageDisplay(e)})),As(),As(),Ts(20,"button",20),Fs("click",(function(){return ln(t),Vs().sendMessage()})),Xs(21),As(),As(),As()}if(2&t){const t=Vs();_i(1),Ms("ngIf",t.otherPerson),_i(2),Ms("ngIf",!t.topReached),_i(2),Ms("ngForOf",t.chatMessages)("ngForTrackBy",t.trackById),_i(2),Ms("ngModel",t.chatMessageContent.text),_i(2),Ms("ngIf",t.previewImageSrc),_i(1),Ms("ngIf",t.chatMessageContent.files[0]),_i(10),Ms("disabled",!t.validMessageContent||t.sending),_i(1),ta(" ",t.sending?"Sending...":"Send"," ")}}let OC=(()=>{class t{constructor(t,e,n,r,i){this.cs=t,this.route=e,this.auth=n,this.sanitization=r,this.fs=i,this.sending=!1,this.loadingMessages=!1,this.topReached=!1}ngOnInit(){this.chatMessageContent={files:[],images:[]},this.route.paramMap.subscribe(t=>{this.chatId=t.get("chatId")})}sendMessage(){return Tv(this,void 0,void 0,(function*(){this.sending=!0;const t=this.chatMessageContent.images[0],e=this.chatMessageContent.files[0];this.chatMessageContent.text&&(this.chatMessageContent.text=this.chatMessageContent.text.trim()),t&&(yield this.fs.uploadFile(t.path,this.image),this.previewImageSrc=null,this.image=null),e&&(yield this.fs.uploadFile(e.path,this.file),this.file=null),yield this.cs.sendMessage(this.chatId,Object.assign({senderId:this.me.uid,time:Up.firestore.Timestamp.fromDate(new Date),status:"SENT"},this.chatMessageContent)),this.chatMessageContent={files:[],images:[]},this.sending=!1}))}getName(t){var e,n,r;return null===(r=null===(n=null===(e=this.chat)||void 0===e?void 0:e.participants)||void 0===n?void 0:n.find(e=>e.uid===t))||void 0===r?void 0:r.name}gotoLink(t){window.open(t,"_blank")}updateFileDisplay(t){const e=t.target.files[0];this.chatMessageContent.files=[{name:e.name,type:e.type,size:e.size,path:`chats/${this.chatId}/files/${e.name}`}],this.file=e}updateImageDisplay(t){const e=t.target.files[0];this.chatMessageContent.images=[{name:e.name,type:e.type,size:e.size,path:`chats/${this.chatId}/images/${e.name}`}],this.previewImageSrc=this.sanitization.bypassSecurityTrustUrl(URL.createObjectURL(e)),this.image=e}loadMore(){return Tv(this,void 0,void 0,(function*(){this.loadingMessages=!0;const t=this.chatMessages[0];this.topReached=yield this.cs.loadMessages(this.chatId,t.time),this.loadingMessages=!1}))}trackById(t,e){return t.id}get otherPerson(){var t,e;return null===(e=null===(t=this.chat)||void 0===t?void 0:t.participants)||void 0===e?void 0:e.find(t=>{var e;return t.uid!==(null===(e=this.auth.user)||void 0===e?void 0:e.uid)})}get me(){var t,e;return null===(e=null===(t=this.chat)||void 0===t?void 0:t.participants)||void 0===e?void 0:e.find(t=>{var e;return t.uid===(null===(e=this.auth.user)||void 0===e?void 0:e.uid)})}get chat(){var t;return null===(t=this.cs.chats)||void 0===t?void 0:t.find(t=>
vendor: 4,214 bytes, line 1
1t.id===this.chatId)}get chatMessages(){return this.cs.inbox.get(this.chatId)}get validMessageContent(){var t,e,n;return(null===(t=this.chatMessageContent.text)||void 0===t?void 0:t.trim())||(null===(e=this.chatMessageContent.images)||void 0===e?void 0:e.length)||(null===(n=this.chatMessageContent.files)||void 0===n?void 0:n.length)}}return t.\u0275fac=function(e){return new(e||t)(Es(Dv),Es(Wm),Es(Nv),Es(Gl),Es(Iv))},t.\u0275cmp=fe({type:t,selectors:[["app-messenger"]],decls:4,vars:2,consts:[[3,"hideBackground"],[1,"messenger-container","clearfix"],["class","chat",4,"ngIf"],[1,"chat"],["class","chat-header clearfix",4,"ngIf"],[1,"chat-history"],["class","load-more",4,"ngIf"],["class","clearfix",4,"ngFor","ngForOf","ngForTrackBy"],[1,"chat-message","clearfix"],["name","message-to-send","id","message-to-send","placeholder","Type your message","rows","3",3,"ngModel","ngModelChange"],[1,"chat-message-preview"],["class","image-preview",4,"ngIf"],["class","file-preview",4,"ngIf"],[1,"upload"],["for","file-input"],[1,"fa","fa-file-o"],["id","file-input","type","file",3,"change"],["for","image-input"],[1,"fa","fa-file-image-o"],["id","image-input","type","file","accept","image/*",3,"change"],[3,"disabled","click"],[1,"chat-header","clearfix"],["alt","avatar",3,"src"],[1,"chat-about"],[1,"chat-with"],[1,"chat-num-messages"],[1,"back-button"],[1,"load-more"],[4,"ngIf","ngIfElse"],["loadMessages",""],[3,"click"],[1,"clearfix"],[1,"message-data",3,"ngClass"],[1,"message-data-time"],[1,"message-data-name"],[1,"fa","fa-circle",3,"ngClass"],[1,"message",3,"ngClass"],["class","message-image-container",3,"src","click",4,"ngIf"],[4,"ngIf"],["class","message-file-container",3,"click",4,"ngIf"],[1,"message-image-container",3,"src","click"],[1,"message-file-container",3,"click"],[1,"image-preview"],["alt","chatMessageContent.images[0].name",3,"src"],[1,"file-preview"],[1,"fa","fa-paperclip"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),Os(2,CC,22,9,"div",2),As(),ks(3,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(2),Ms("ngIf",e.chatId))},directives:[W_,ul,pb,sl,rh,ch,Xh,aw,il],pipes:[aC],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}li[_ngcontent-%COMP%]{list-style:none}.messenger-container[_ngcontent-%COMP%]{margin:1rem auto;max-width:786px;font-family:Poppins-Regular}@media (max-width:786px){.messenger-container[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem}}.chat[_ngcontent-%COMP%]{color:#434651}.chat[_ngcontent-%COMP%] .chat-header[_ngcontent-%COMP%]{background:var(--text-light-color);padding:1rem;border-bottom:.25rem solid var(--background-light-color);border-top-left-radius:1rem;border-top-right-radius:1rem;display:flex;justify-content:space-between;align-items:center;width:100%}.chat[_ngcontent-%COMP%] .chat-header[_ngcontent-%COMP%] .chat-about[_ngcontent-%COMP%]{padding-left:1rem;text-align:center}.chat[_ngcontent-%COMP%] .chat-header[_ngcontent-%COMP%] .chat-about[_ngcontent-%COMP%] .chat-with[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.chat[_ngcontent-%COMP%] .chat-header[_ngcontent-%COMP%] .chat-about[_ngcontent-%COMP%] .chat-num-messages[_ngcontent-%COMP%]{color:#92959e}.chat[_ngcontent-%COMP%] .chat-header[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{color:#434651}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%]{padding:0 1rem;border-bottom:.25rem solid var(--background-light-color);background:var(--text-light-color);overflow-y:scroll;height:70vh}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--text-light-color);text-align:center;margin:0 -1rem;padding:.5rem 0}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;cursor:pointer}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message-data[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;align-items:center}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message-data-time[_ng
1content-%COMP%]{color:#a8aab1;padding-left:.5rem}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{color:#fff;padding:18px 20px;line-height:26px;font-size:16px;border-radius:7px;margin-bottom:.5rem;max-width:90%;position:relative}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]:after{bottom:99%;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:10px solid transparent}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .message-image-container[_ngcontent-%COMP%]{width:100%;margin:0 -.5rem .5rem;background-position:50%;background-size:cover;border-radius:1rem;cursor:pointer}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .message-file-container[_ngcontent-%COMP%]{margin-top:.5rem;padding-top:.2rem;text-align:center;border-top:1px solid rgba(0,0,0,.1);cursor:pointer;overflow:hidden;text-overflow:ellipsis}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .my-message[_ngcontent-%COMP%]{background:#7628ed}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .my-message[_ngcontent-%COMP%]:after{border-bottom-color:#7628ed;left:.5rem}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .other-message[_ngcontent-%COMP%]{background:#86bb71}.chat[_ngcontent-%COMP%] .chat-history[_ngcontent-%COMP%] .other-message[_ngcontent-%COMP%]:after{border-bottom-color:#86bb71;right:.5rem}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%]{padding:30px;background-color:var(--text-light-color);border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;padding:10px 20px;font-family:Poppins-Regular,Arial,sans-serif;margin-bottom:10px;border-radius:5px;resize:none}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .image-preview[_ngcontent-%COMP%]{width:100%;max-width:500px}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .image-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%]{background-color:var(--background-light-color);padding:.5rem 0;width:100%;margin:.5rem 0}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding:0 .5rem}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%]{display:inline-block}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .fa-file-image-o[_ngcontent-%COMP%], .chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .fa-file-o[_ngcontent-%COMP%]{font-size:16px;color:grey;cursor:pointer}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right;color:#7628ed;font-size:16px;text-transform:uppercase;border:none;cursor:pointer;font-weight:700;background:var(--text-light-color)}.chat[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#6313df}.me[_ngcontent-%COMP%], .offline[_ngcontent-%COMP%], .online[_ngcontent-%COMP%]{margin-right:3px;font-size:10px}.online[_ngcontent-%COMP%]{color:#86bb71}.offline[_ngcontent-%COMP%]{color:#e38968}.me[_ngcontent-%COMP%]{color:#7628ed}.align-left[_ngcontent-%COMP%]{text-align:left}.align-right[_ngcontent-%COMP%]{justify-content:flex-end}.float-right[_ngcontent-%COMP%]{float:right}.float-left[_ngcontent-%COMP%]{float:left}.clearfix[_ngcontent-%COMP%]:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}']}),t})(),xC=(()=>{class t{constructor(){}ngOnInit(){if(!this.card||!this.cardHolderName)throw new Error("Attribute 'card' and 'cardHolderName' is required")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-card"]],inputs:{card:"card",cardHolderName:"cardHolderName"},decls:24,vars:9,consts:[[1,"card-container"],[1,"card"],[1,"bank-name",3,"title"],[3,"src","alt"],[1,"chip"],[1,"side","left"],[1,"side","right"],[1,"vertical","to
1p"],[1,"vertical","bottom"],[1,"data"],["title","Your Card Number",1,"pan"],[1,"exp-date-wrapper"],[1,"left-label"],[1,"exp-date"],[1,"upper-labels"],[1,"date",3,"title"],[1,"name-on-card",3,"title"],[1,"lines-down"],[1,"lines-up"]],template:function(t,e){1&t&&(Ts(0,"div",0),Ts(1,"div",1),Ts(2,"div",2),ks(3,"img",3),As(),Ts(4,"div",4),ks(5,"div",5),ks(6,"div",6),ks(7,"div",7),ks(8,"div",8),As(),Ts(9,"div",9),Ts(10,"div",10),Xs(11),As(),Ts(12,"div",11),Ts(13,"div",12),Xs(14,"EXPIRES END"),As(),Ts(15,"div",13),Ts(16,"div",14),Xs(17,"MONTH/YEAR"),As(),Ts(18,"div",15),Xs(19),As(),As(),As(),Ts(20,"div",16),Xs(21),As(),As(),ks(22,"div",17),ks(23,"div",18),As(),As()),2&t&&(_i(2),Ms("title",e.card.brand),_i(1),Ms("src","../../../assets/imgs/"+e.card.brand+".png",ei)("alt",e.card.brand),_i(8),ta(" \u2022 \u2022 \u2022 \u2022\xa0 \u2022 \u2022 \u2022 \u2022\xa0 \u2022 \u2022 \u2022 \u2022\xa0 ",e.card.last4," "),_i(7),Ms("title",e.card.exp_month+"/"+e.card.exp_year),_i(1),ea(" ",e.card.exp_month,"/",e.card.exp_year," "),_i(1),Ms("title",e.cardHolderName),_i(1),ta(" ",e.cardHolderName," "))},styles:['@font-face{font-family:Iceland;font-style:normal;font-weight:400;src:local("Iceland"),local("Iceland-Regular"),url(https://fonts.gstatic.com/s/iceland/v8/rax9HiuFsdMNOnWPaKtMBA.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;src:local("Open Sans Regular"),local("OpenSans-Regular"),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVZ0e.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:normal;font-weight:800;src:local("Open Sans ExtraBold"),local("OpenSans-ExtraBold"),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN8rsOUuhs.ttf) format("truetype")}.card-container[_ngcontent-%COMP%]{position:relative;width:100%;height:53.98mm}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;margin:0 auto;width:85.6mm;height:53.98mm;color:#fff;font:22px/1 Iceland,monospace;background:var(--primary-color);-webkit-border-radius:10px;-webkit-background-clip:padding-box;-moz-border-radius:10px;-moz-background-clip:padding;border-radius:10px;background-clip:padding-box;overflow:hidden}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .bank-name[_ngcontent-%COMP%]{float:right;margin-top:15px;margin-right:30px;font:800 28px Open Sans,Arial,sans-serif}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .bank-name[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:3rem}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{position:relative;z-index:1000;width:50px;height:40px;margin-top:50px;margin-bottom:10px;margin-left:30px;background:#fffcb1;background:linear-gradient(135deg,#fffcb1,#b4a365);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffcb1",endColorstr="#b4a365",GradientType=1);border:1px solid #322d28;-webkit-border-radius:10px;-webkit-background-clip:padding-box;-moz-border-radius:10px;-moz-background-clip:padding;border-radius:10px;background-clip:padding-box;box-shadow:0 1px 2px #322d28,inset 0 0 5px 0 0 5px rgba(144,133,87,.25);overflow:hidden}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side[_ngcontent-%COMP%]{position:absolute;top:8px;width:12px;height:24px;border:1px solid #322d28;box-shadow:inset 0 0 5px rgba(144,133,87,.25),0 0 5px rgba(144,133,87,.25),0 0 4px rgba(0,0,0,.1),inset 0 0 4px rgba(0,0,0,.1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side.left[_ngcontent-%COMP%]{left:0;border-left:none;-webkit-border-radius:0 2px 2px 0;-moz-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side.left[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side.right[_ngcontent-%COMP%]{-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side.right[_ngcontent-%COMP%]{right:0;border-right:none;-webkit-border-radius:2px 0 0 2px;-moz-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .side[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;display:inline-block;width:100%;height:0;margin:auto;border-top:1px solid #322d28;box-shadow:inset 0 0 5px rgba(144,133,87,.25),0 0 5px rgba(144,133,87,.25),0 0 4px rgba(0,0,0,.1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]{position:absolute;
1left:0;right:0;margin:0 auto;width:8.66666667px;height:12px;border:1px solid #322d28;box-shadow:inset 0 0 5px rgba(144,133,87,.25),0 0 5px rgba(144,133,87,.25),0 0 4px rgba(0,0,0,.1),inset 0 0 4px rgba(0,0,0,.1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical.top[_ngcontent-%COMP%]{top:0;border-top:none}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical.top[_ngcontent-%COMP%]:after{top:12px;width:17.33333333px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical.bottom[_ngcontent-%COMP%]{bottom:0;border-bottom:none}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical.bottom[_ngcontent-%COMP%]:after{bottom:12px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]:after{content:"";position:absolute;left:-8.66666667px;display:inline-block;width:26px;height:0;margin:0;border-top:1px solid #322d28;box-shadow:inset 0 0 5px rgba(144,133,87,.25),0 0 5px rgba(144,133,87,.25),0 0 4px rgba(0,0,0,.1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%]{position:relative;text-align:center;z-index:100;text-transform:uppercase}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .date[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .month[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before{position:relative;z-index:20;letter-spacing:1px;text-shadow:1px 1px 1px #000}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before:before{position:absolute;z-index:-10;content:attr(title);color:rgba(0,0,0,.2);text-shadow:none}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before:before{top:-1px;left:-1px;color:rgba(0,0,0,.1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before:after{top:1px;left:1px;z-index:10}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .pan[_ngcontent-%COMP%]{position:relative;z-index:50;margin:0;letter-spacing:1px;font-size:26px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1rem;line-height:1;*zoom:1}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%]:before{content:" ";display:table}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%]:after{clear:both}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%] .left-label[_ngcontent-%COMP%]{float:left;display:inline-block;width:40px;font:400 7px/8px Open Sans,Arial,sans-serif;letter-spacing:.5px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{display:inline-block;float:left;margin-top:-10px;margin-left:10px;text-align:center}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%] .upper-labels[_ngcontent-%COMP%]{font:400 7px/1 Open Sans,Arial,sans-serif}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .exp-date-wrapper[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before{content:"/"}
1.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .name-on-card[_ngcontent-%COMP%]{margin-top:10px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-down[_ngcontent-%COMP%]:before{top:80px;left:-200px;width:550px;-webkit-border-radius:40% 60% 0 0;-moz-border-radius:40% 60% 0 0;border-radius:40% 60% 0 0;box-shadow:1px 1px 100px #4035b2}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-down[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-down[_ngcontent-%COMP%]:before{content:"";position:absolute;z-index:10;height:400px;border-top:2px solid #392db2;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;background:#2d21a6;background:radial-gradient(ellipse at center,rgba(45,33,166,0) 44%,#2d21a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="rgba(45, 33, 166, 0)",endColorstr="#2d21a6",GradientType=1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-down[_ngcontent-%COMP%]:after{top:20px;left:-100px;width:350px;-webkit-border-radius:20% 80% 0 0;-moz-border-radius:20% 80% 0 0;border-radius:20% 80% 0 0;box-shadow:inset -1px -1px 44px #4035b2}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-up[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-110px;left:-70px;z-index:2;width:480px;height:300px;border-bottom:2px solid #392db2;-webkit-border-radius:0 0 60% 90%;-webkit-background-clip:padding-box;-moz-border-radius:0 0 60% 90%;-moz-background-clip:padding;border-radius:0 0 60% 90%;background-clip:padding-box;box-shadow:inset 1px 1px 44px #4035b2;background:#4031b2;background:radial-gradient(ellipse at center,rgba(64,49,178,0) 44%,#23189a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="rgba(64, 49, 178, 0)",endColorstr="#23189a",GradientType=1)}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .lines-up[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-180px;left:-200px;z-index:1;width:530px;height:420px;border-bottom:2px solid #4035b2;-webkit-border-radius:0 40% 50% 50%;-webkit-background-clip:padding-box;-moz-border-radius:0 40% 50% 50%;-moz-background-clip:padding;border-radius:0 40% 50% 50%;background-clip:padding-box;box-shadow:inset 1px 1px 44px #4035b2;background:#2d21a6;background:radial-gradient(ellipse at center,rgba(45,33,166,0) 44%,#2d21a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="rgba(45, 33, 166, 0)",endColorstr="#2d21a6",GradientType=1)}']}),t})();function EC(t,e){if(1&t&&(Ts(0,"div",9),Ts(1,"p"),Xs(2),As(),As()),2&t){const t=Vs(3);_i(2),Js(t.error)}}function PC(t,e){1&t&&(Ts(0,"div",9),Ts(1,"p"),Xs(2,"Your card requires confirmation for payment!"),As(),As())}function MC(t,e){1&t&&(Ts(0,"div",9),Ts(1,"p"),Xs(2,"Charging the card failed, please update your card!"),As(),As())}function SC(t,e){if(1&t){const t=Ns();Ts(0,"div",5),Ts(1,"h1"),Xs(2,"Your Current Card"),As(),ks(3,"app-card",6),Os(4,EC,3,1,"div",7),Os(5,PC,3,0,"div",7),Os(6,MC,3,0,"div",7),Ts(7,"button",8),Fs("click",(function(){return ln(t),Vs(2).updateCard()})),Ts(8,"p"),Xs(9),As(),As(),As()}if(2&t){const t=Vs(2);_i(3),Ms("card",t.membershipData.cardDetails)("cardHolderName",t.membershipData.cardHolderName),_i(1),Ms("ngIf",t.error),_i(1),Ms("ngIf",t.cardNeedsConfirmation),_i(1),Ms("ngIf",!t.cardNeedsConfirmation&&t.paymentFailed),_i(1),Ms("disabled",t.settingIntent),_i(2),Js(t.cardNeedsConfirmation?"Confirm Card":"Change Card")}}function TC(t,e){if(1&t){const t=Ns();Ts(0,"div",10),Ts(1,"h1"),Xs(2,"Update Your Card Safely"),As(),Ts(3,"app-stripe-checkout",11),Fs("cardConfirmed",(function(){return ln(t),Vs(2).updatingCard=!1})),As(),As()}}function AC(t,e){if(1&t&&(Ts(0,"div",2),Os(1,SC,10,7,"div",3),Os(2,TC,4,0,"div",4),As()),2&t){const t=Vs();_i(1),Ms("ngIf",!t.updatingCard),_i(1),Ms("ngIf",t.updatingCard)}}let kC=(()=>{class t{constructor(t,e,n){this.auth=t,this.paymentService=e,this.us=n}ngOnInit(){}updateCard(){return Tv(this,void 0,void 0,(function*(){if(this.settingIntent=!0,this.error="",this.cardNeedsConfirmation)try{yield this.paymentService.loadStripe(),yield this.paymentService.createPaymentIntent(this.auth.user.uid,this.us.membershipData.customerId,this.us.membershipData.latestInvoiceTotal,this.us.membershipData.latestInvoiceId,this.us.membershipData.paymentMethodId)}catch(t){this.error=null==t?void 0:t.message}else yield this.paymentService.createSetupIntent(this.us.membershipData.customerId,this.auth.user.uid,this.us.membershipData.paymentMethodId),this.updatingCard=!0;this.settingIntent=!1}))}get membershipData(){return this.us.membershipData}get cardNeedsConfirmation(){return"requires_action"===this.us.membershipData.latestPaymentStatus}get paymentFailed(){return"past_due"===this.us.membershipData.subscriptionStatus}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(sw),Es(kv))},t.\u0275cmp=fe({type:t,selectors:[["app-billing"]],decls:3,vars:2,consts:[[3,"hideBackgroun
1d"],["class","billing-page",4,"ngIf"],[1,"billing-page"],["class","card-details",4,"ngIf"],["class","card-editor",4,"ngIf"],[1,"card-details"],[3,"card","cardHolderName"],["class","error-message",4,"ngIf"],[3,"disabled","click"],[1,"error-message"],[1,"card-editor"],[3,"cardConfirmed"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Os(1,AC,3,2,"div",1),ks(2,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(1),Ms("ngIf",e.membershipData))},directives:[W_,ul,pb,xC,fw],styles:[".billing-page[_ngcontent-%COMP%]{text-align:center;padding:5rem 0;justify-content:space-around;margin:0}@media (min-width:992px){.billing-page[_ngcontent-%COMP%]{padding:5rem 0;display:flex}}.billing-page[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%]{background-color:var(--text-light-color);border-radius:1rem;flex-basis:50%;padding:2rem 0;display:flex;flex-direction:column;justify-content:center}@media (max-width:786px){.billing-page[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%]{margin:0 .5rem}}.billing-page[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:50%;margin:2rem auto;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}@media (max-width:992px){.billing-page[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:80%}}.billing-page[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}.billing-page[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{text-decoration:underline;color:var(--subtitle-color)}.billing-page[_ngcontent-%COMP%] .card-editor[_ngcontent-%COMP%]{background-color:var(--text-light-color);border-radius:1rem;flex-basis:50%;padding:2rem 0}@media (max-width:786px){.billing-page[_ngcontent-%COMP%] .card-editor[_ngcontent-%COMP%]{margin:0 .5rem}}.billing-page[_ngcontent-%COMP%] .card-editor[_ngcontent-%COMP%] app-stripe-checkout[_ngcontent-%COMP%]{width:100%}"]}),t})();function IC(t,e){if(1&t&&(Ts(0,"div",19),ks(1,"img",20),As()),2&t){const t=Vs();_i(1),Ms("src",t.previewImageSrc,ei)}}function DC(t,e){if(1&t&&(Ts(0,"div",21),ks(1,"i",22),Xs(2),As()),2&t){const t=Vs();_i(2),ta(" ",t.request.files[0].name," ")}}function NC(t,e){if(1&t&&(Ts(0,"div",25),ks(1,"img",26),Ts(2,"div",27),Ts(3,"h3"),Xs(4),As(),Ts(5,"p"),Xs(6),As(),As(),As()),2&t){const t=e.$implicit,n=Vs(2);Ms("routerLink","/chats/"+t.id),_i(1),Bs("src","https://ui-avatars.com/api/?name=",n.getOtherPerson(t).name,"&rounded=true&background=7628ED&color=ffffff",ei),_i(3),Js(t.name),_i(2),Js(n.getLatestChatMessageText(t))}}function RC(t,e){if(1&t&&(Ts(0,"div",23),Ts(1,"h1"),Xs(2,"Previous Requests"),As(),Os(3,NC,7,4,"div",24),As()),2&t){const t=Vs();_i(3),Ms("ngForOf",t.chats)}}let jC=(()=>{class t{constructor(t,e,n,r,i){this.auth=t,this.db=e,this.fs=n,this.cs=r,this.sanitization=i,this.creatingChat=!1}ngOnInit(){this.chatId=this.db.generateId(),this.request={files:[],images:[]}}updateFileDisplay(t){const e=t.target.files[0];this.request.files=[{name:e.name,type:e.type,size:e.size,path:`chats/${this.chatId}/files/${e.name}`}],this.file=e}updateImageDisplay(t){const e=t.target.files[0];this.request.images=[{name:e.name,type:e.type,size:e.size,path:`chats/${this.chatId}/images/${e.name}`}],this.previewImageSrc=this.sanitization.bypassSecurityTrustUrl(URL.createObjectURL(e)),this.image=e}createNewChat(){return Tv(this,void 0,void 0,(function*(){this.creatingChat=!0;const t=this.request.images[0],e=this.request.files[0];this.request.text&&(this.request.text=this.request.text.trim()),t&&(yield this.fs.uploadFile(t.path,this.image),this.previewImageSrc=null,this.image=null),e&&(yield this.fs.uploadFile(e.path,this.file),this.file=null),yield this.cs.createChat({name:this.auth.user.displayName,uid:this.auth.user.uid},this.requestName,Object.assign({senderId:this.auth.user.uid,time:Up.firestore.Timestamp.fromDate(new Date),status:"SENT",id:this.db.generateId()},this.request)),this.chatId=this.db.generateId(),this.request={files:[],images:[]},this.creatingChat=!1}))}getLatestChatMessageText(t){const e=this.cs.inbox.get(t.id);if(null==e?void 0:e.length){const n=e[e.length-1];let r=n.senderId===this.auth.user.uid?"You":this.getOtherPerson(t).name;return r+=": ",r+=n.images.length?"Image":n.files.length?"File":n.text,r}}getOtherPerson(t){return t.participants.find(t=>{var e;return t.uid!==(null===(e=this.auth.user)||void 0===e?void 0:e.uid)})}get chats(){return this.cs.chats}get validMessageContent(){var t,e,n;return(null===(t=this.request.text)||void 0===t?void 0:t.trim())||(null===(e=this.request.images)||void 0===e?void 0:e.length)||(null===(n=this.request.files)||void 0===n?void 0:n.length)}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(Av),Es(Iv),Es(Dv),Es(Gl))},t.\u0275cmp=fe({type:t,selectors:[["app-submit-request"]],decls:25,vars:8,consts:[[3,"hideBackgroun
1d"],[1,"request-page"],[1,"new-request",3,"ngSubmit"],["requestForm","ngForm"],["name","new-request","id","new-request","placeholder","Type Request Topic...","required","",3,"ngModel","ngModelChange"],["name","message-to-send","id","message-to-send","placeholder","Type your message","rows","3",3,"ngModel","ngModelChange"],[1,"chat-message-preview"],["class","image-preview",4,"ngIf"],["class","file-preview",4,"ngIf"],[1,"send-request-line"],[1,"upload"],["for","file-input"],[1,"fa","fa-file-o"],["id","file-input","type","file",3,"change"],["for","image-input"],[1,"fa","fa-file-image-o"],["id","image-input","type","file","accept","image/*",3,"change"],["type","submit",3,"disabled"],["class","previous-requests",4,"ngIf"],[1,"image-preview"],["alt","request.images[0].name",3,"src"],[1,"file-preview"],[1,"fa","fa-paperclip"],[1,"previous-requests"],["class","request",3,"routerLink",4,"ngFor","ngForOf"],[1,"request",3,"routerLink"],["alt","avatar",3,"src"],[1,"request-details"]],template:function(t,e){if(1&t){const t=Ns();ks(0,"app-menu",0),Ts(1,"div",1),Ts(2,"form",2,3),Fs("ngSubmit",(function(){ln(t);const n=xs(3);return e.createNewChat(),n.reset()})),Ts(4,"h1"),Xs(5,"New Request"),As(),Ts(6,"input",4),Fs("ngModelChange",(function(t){return e.requestName=t})),As(),Ts(7,"textarea",5),Fs("ngModelChange",(function(t){return e.request.text=t})),As(),Ts(8,"div",6),Os(9,IC,2,1,"div",7),Os(10,DC,3,1,"div",8),As(),Ts(11,"div",9),Ts(12,"div",10),Ts(13,"label",11),ks(14,"i",12),As(),Ts(15,"input",13),Fs("change",(function(t){return e.updateFileDisplay(t)})),As(),As(),Ts(16,"div",10),Ts(17,"label",14),ks(18,"i",15),As(),Ts(19,"input",16),Fs("change",(function(t){return e.updateImageDisplay(t)})),As(),As(),Ts(20,"button",17),Ts(21,"p"),Xs(22),As(),As(),As(),As(),Os(23,RC,4,1,"div",18),As(),ks(24,"app-footer")}if(2&t){const t=xs(3);Ms("hideBackground",!1),_i(6),Ms("ngModel",e.requestName),_i(1),Ms("ngModel",e.request.text),_i(2),Ms("ngIf",e.previewImageSrc),_i(1),Ms("ngIf",e.request.files[0]),_i(10),Ms("disabled",t.invalid||!e.validMessageContent||e.creatingChat),_i(2),ta(" ",e.creatingChat?"Submitting...":"Submit Request"," "),_i(1),Ms("ngIf",null==e.chats?null:e.chats.length)}},directives:[W_,Jh,lh,Kh,rh,ep,ch,Xh,ul,pb,sl,av],styles:[".request-page[_ngcontent-%COMP%]{padding:5rem 0;display:flex;flex-direction:column;justify-content:center;align-items:center}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:2rem 0;padding:0 1rem;background-color:var(--text-light-color);border-radius:1rem;text-align:center;width:80%}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-family:Poppins-Regular;color:var(--subtitle-color);width:90%;border:1px solid var(--subtitle-color);box-sizing:border-box;border-radius:5px;max-width:500px;padding:.75rem 1rem;font-size:.9rem}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:90%;max-width:500px;font-family:Poppins-Regular,Arial,sans-serif;padding:1rem;margin:1rem 0;box-sizing:border-box;border-radius:5px;resize:none}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%]{font-family:Poppins-Regular,Arial,sans-serif;max-width:500px;margin:0 auto 1rem}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .image-preview[_ngcontent-%COMP%]{width:100%;max-width:500px}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .image-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%]{background-color:var(--background-light-color);padding:.5rem 0;width:100%;margin:.5rem 0}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .chat-message-preview[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding:0 .5rem}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%]{width:100%;max-width:500px;flex-wrap:wrap;margin:0 auto;padding-bottom:2rem;display:flex;justify-content:space-between;align-items:center}@media (max-width:992px){.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%]{display:block}}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%]{display:inline-block;margin:0 .5rem 1rem}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] .fa-file-image-o[_ngcontent-%COMP%], .request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] .fa-file-o[_ngcontent-%COMP%]{font-size:16px;color:grey;
1cursor:pointer}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:80%;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}@media (max-width:992px){.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.request-page[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .send-request-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%]{margin:2rem 0;padding:0 1rem;background-color:var(--text-light-color);border-radius:1rem;width:80%}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%]{display:flex;border:1px solid #c8c8c8;border-radius:1rem;padding:1rem .5rem;margin:0 auto 1rem;max-width:800px}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%] .request-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%] .request-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%] .request-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.2rem .5rem;white-space:nowrap}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%] .request-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--subtitle-color)}.request-page[_ngcontent-%COMP%] .previous-requests[_ngcontent-%COMP%] .request[_ngcontent-%COMP%]:hover{background-color:#c8c8c8;cursor:pointer}"]}),t})();function FC(t,e){1&t&&ks(0,"app-reasons-card",7),2&t&&Ms("reasonsCard",Vs(2).selectedCard)("purpleColor",!0)("showTrialButton",!1)}function LC(t,e){if(1&t){const t=Ns();Ts(0,"div",8),Ts(1,"label",9),Xs(2,"Marketing "),Ts(3,"input",10),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(4,"span",11),As(),Ts(5,"label",9),Xs(6,"Sales "),Ts(7,"input",12),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(8,"span",11),As(),Ts(9,"label",9),Xs(10,"Tech "),Ts(11,"input",13),Fs("ngModelChange",(function(e){return ln(t),Vs(2).selectedCard=e})),As(),ks(12,"span",11),As(),As()}if(2&t){const t=Vs(2);_i(3),Ms("value",t.pricingCards.marketing)("ngModel",t.selectedCard),_i(4),Ms("value",t.pricingCards.sales)("ngModel",t.selectedCard),_i(4),Ms("value",t.pricingCards.tech)("ngModel",t.selectedCard)}}function UC(t,e){if(1&t){const t=Ns();Ts(0,"button",14),Fs("click",(function(){return ln(t),Vs(2).updateSubscription()})),Ts(1,"p"),Xs(2,"Update Subscription"),As(),As()}if(2&t){const t=Vs(2);Ms("disabled",t.updatingSubscription||!t.canUpdateService)}}function VC(t,e){if(1&t){const t=Ns();Ts(0,"button",14),Fs("click",(function(){return ln(t),Vs(2).cancelSubscription()})),Ts(1,"p"),Xs(2,"Cancel Subscription"),As(),As()}2&t&&Ms("disabled",Vs(2).updatingSubscription)}function BC(t,e){if(1&t&&(Ts(0,"div",2),Os(1,FC,1,3,"app-reasons-card",3),Ts(2,"div",4),Ts(3,"h1"),Xs(4,"Your Current Plan"),As(),Ts(5,"h3"),Xs(6),lu(7,"titlecase"),As(),Ts(8,"h3"),Xs(9),lu(10,"titlecase"),As(),Ts(11,"form"),Os(12,LC,13,6,"div",5),Os(13,UC,3,1,"button",6),Os(14,VC,3,1,"button",6),As(),As(),As()),2&t){const t=Vs();_i(1),Ms("ngIf",t.selectedCard),_i(5),ta("Plan Name: ",hu(7,6,t.currentService.type),""),_i(3),ta(" Subscription Status: ",hu(10,8,t.membershipData.subscriptionStatus)," "),_i(3),Ms("ngIf",t.activeSubscription),_i(1),Ms("ngIf",t.activeSubscription),_i(1),Ms("ngIf",t.trialingSubscription)}}let qC=(()=>{class t{constructor(t,e,n,r){this.auth=t,this.us=e,this.paymentService=n,this.dataService=r}ngOnInit(){this.us.membershipData?this.selectedCard=this.dataService.plans[this.us.membershipData.serviceName]:this.auth.authState.subscribe(t=>{t&&(this.selectedCard=this.dataService.plans[this.us.membershipData.serviceName])})}updateSubscription(){return Tv(this,void 0,void 0,(function*(){this.updatingSubscription=!0;const t=this.dataService.plans[this.service.name];yield this.paymentService.updateSubscription(this.auth.user.uid,this.membershipData.subscriptionId,t.productDetails.monthly.priceId,t.productDetails.productId,this.service.name),this.updatingSubscription=!1}))}cancelSubscription(){return Tv(this,void 0,void 0,(function*(){this.updatingSubscription=!0,yield this.paymentService.cancelSubscription(this.auth.user.uid,this.membershipData.subscriptionId),this.updatingSubscription=!1}))}get currentService(){return this.dataService.plans[this.us.membershipData.serviceName]}get membershipData(){return this.us.membershipData}get canUpdateService(){return this.service.name!==this.us.membershipData.serviceName}get pricingCards(){return this.dataService.plans}get service(){return Object.assign({name:"SALES"===this.selectedCard.type?"sales":"MARKETING"===this.selectedCard.type?"marketing":"tech"},this.selectedCard.productDetails.monthly)}get trialingSubscription(){return"trialing"===this.membershipData.subscriptionStatus}get activeSubscription(){return"active"===this.membershipData.subscriptionStatus}}return t.\u0275fac=function(e){return new(e||t)(Es(Nv),Es(kv),Es(sw),Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-my-plan"]],decls:3,vars:2,consts:[[3,"hideBackgroun
1d"],["class","my-plan-page",4,"ngIf"],[1,"my-plan-page"],["class","plan-details",3,"reasonsCard","purpleColor","showTrialButton",4,"ngIf"],[1,"plan-selection"],["class","services",4,"ngIf"],[3,"disabled","click",4,"ngIf"],[1,"plan-details",3,"reasonsCard","purpleColor","showTrialButton"],[1,"services"],[1,"radio-label"],["type","radio","checked","checked","name","service","required","",3,"value","ngModel","ngModelChange"],[1,"checkmark"],["type","radio","name","service","value","sales","required","",3,"value","ngModel","ngModelChange"],["type","radio","name","service","value","tech","required","",3,"value","ngModel","ngModelChange"],[3,"disabled","click"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Os(1,BC,15,10,"div",1),ks(2,"app-footer")),2&t&&(Ms("hideBackground",!1),_i(1),Ms("ngIf",e.membershipData))},directives:[W_,ul,pb,Jh,lh,Kh,cb,Ph,rh,ep,ch,Xh],pipes:[dl],styles:[".my-plan-page[_ngcontent-%COMP%]{text-align:center;padding:5rem 0;justify-content:space-around;margin:0}@media (min-width:992px){.my-plan-page[_ngcontent-%COMP%]{display:flex}}.my-plan-page[_ngcontent-%COMP%] app-reasons-card[_ngcontent-%COMP%]{flex-basis:35%;text-align:left}@media (max-width:992px){.my-plan-page[_ngcontent-%COMP%] app-reasons-card[_ngcontent-%COMP%]{display:none}}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%]{background-color:var(--text-light-color);border-radius:1rem;flex-basis:50%;display:flex;flex-direction:column;justify-content:center}@media (max-width:786px){.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%]{margin:0 .5rem}}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:var(--subtitle-color)}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{margin-top:0}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .services[_ngcontent-%COMP%]{margin:1.5rem;justify-content:space-around;align-items:center}@media (min-width:786px){.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .services[_ngcontent-%COMP%]{display:flex}}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:50%;margin:.8rem auto 0;cursor:pointer;background-color:var(--primary-color);border:0;border-radius:2.25rem}@media (max-width:992px){.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:80%}}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0;font-size:1rem;padding:.5rem 1.5rem;color:var(--text-light-color);transition:color 1s}.my-plan-page[_ngcontent-%COMP%] .plan-selection[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{text-decoration:underline;color:var(--subtitle-color)}"]}),t})(),zC=(()=>{class t{constructor(t,e){this.afAuth=t,this.router=e}canActivate(){return this.afAuth.authState.pipe(Dg(1),V(t=>!!t),yp(t=>{t||this.router.navigate(["/","not-authorized"])}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(id),Yt(sv))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HC=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-not-authorized"]],decls:11,vars:1,consts:[[3,"hideBackground"],[1,"not-authorized-page"],[1,"message"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"],["routerLink","/login"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),Ts(2,"div",2),Ts(3,"h1"),ks(4,"i",3),Xs(5," Unauthorized Access "),As(),Ts(6,"p"),Xs(7," You are not authorized to view this page. Try "),Ts(8,"span",4),Xs(9,"logging in."),As(),As(),As(),As(),ks(10,"app-footer")),2&t&&Ms("hideBackgroun
1d",!1)},directives:[W_,av,pb],styles:[".not-authorized-page[_ngcontent-%COMP%]{padding:5rem 0;justify-content:space-around;margin:0}@media (min-width:992px){.not-authorized-page[_ngcontent-%COMP%]{padding:5rem 0;display:flex}}.not-authorized-page[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:2rem 1rem;background-color:var(--text-light-color);border-radius:1rem;text-align:center;flex-basis:50%}.not-authorized-page[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}"]}),t})(),WC=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-not-found"]],decls:9,vars:1,consts:[[3,"hideBackground"],[1,"not-found-page"],[1,"message"],["aria-hidden","true",1,"fa","fa-exclamation-circle"]],template:function(t,e){1&t&&(ks(0,"app-menu",0),Ts(1,"div",1),Ts(2,"div",2),Ts(3,"h1"),ks(4,"i",3),Xs(5," Page Not Found "),As(),Ts(6,"p"),Xs(7," The page you are looking for does not exist. "),As(),As(),As(),ks(8,"app-footer")),2&t&&Ms("hideBackground",!1)},directives:[W_,pb],styles:[".not-found-page[_ngcontent-%COMP%]{padding:5rem 0;justify-content:space-around;margin:0}@media (min-width:992px){.not-found-page[_ngcontent-%COMP%]{padding:5rem 0;display:flex}}.not-found-page[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:2rem 1rem;background-color:var(--text-light-color);border-radius:1rem;text-align:center;flex-basis:50%}.not-found-page[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}"]}),t})();const GC=[{path:"",component:gb,pathMatch:"full"},{path:"login",component:wb,canActivate:[(()=>{class t{constructor(t,e){this.afAuth=t,this.router=e}canActivate(){return this.afAuth.authState.pipe(Dg(1),V(t=>!!t),yp(t=>{t&&this.router.navigate(["/","not-found"])}),V(t=>!t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(id),Yt(sv))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"signup",component:Ow},{path:"blog/:id",component:Qw},{path:"blog",component:jw},{path:"work",component:qw},{path:"plans",component:zw},{path:"about",component:Gw},{path:"billing",component:kC,canActivate:[zC]},{path:"my-plan",component:qC,canActivate:[zC]},{path:"questionnaire",component:Tw,canActivate:[zC]},{path:"submit-request",component:jC,canActivate:[zC]},{path:"chats/:chatId",component:OC,canActivate:[zC]},{path:"not-authorized",component:HC},{path:"**",component:WC}];let $C=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[bv.forRoot(GC,{scrollPositionRestoration:"enabled"})],bv]}),t})(),QC=(()=>{class t{constructor(t){this.dataService=t}ngOnInit(){return Tv(this,void 0,void 0,(function*(){yield this.dataService.loadContent();const t=document.getElementById("splash-screen");t&&t.remove()}))}}return t.\u0275fac=function(e){return new(e||t)(Es(L_))},t.\u0275cmp=fe({type:t,selectors:[["app-root"]],decls:2,vars:0,consts:[[1,"page-container"]],template:function(t,e){1&t&&(Ts(0,"div",0),ks(1,"router-outlet"),As())},directives:[lv],styles:[".page-container[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto}"]}),t})();const KC=new O(mp);function YC(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>V(function(t,e){return n=>{let r=n;for(let i=0;i<e;i++){const e=r[t[i]];if(void 0===e)return;r=e}return r}}(t,e))(n)}class ZC{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new XC(t,this.predicate,this.inclusive))}}class XC extends _{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}const JC={useTransferState:!0,alwaysMonitor:!1,manualIdle:!1,baseURIForScullyContent:"http://localhost:1668"},tO=new Vt("scullyLibConfig",{factory:()=>JC}),eO=t=>
1(t.includes("#")&&(t=t.split("#")[0]),t.includes("?")&&(t=t.split("?")[0]),t.endsWith("/")?t.slice(0,-1):t);function nO(t,e="json"){return new Promise((n,r)=>{const i=new XMLHttpRequest;i.responseType=e,i.addEventListener("load",t=>{if(200!==i.status)return r(i);n(i.response)}),i.addEventListener("error",(...t)=>r(t)),i.open("get",t,!0),i.send()})}const rO=()=>window&&"running"===window.ScullyIO,iO=()=>window&&"generated"===window.ScullyIO;function oO(t,e){return t.endsWith("/")&&e.startsWith("/")?`${t}${e.substr(1)}`:t.endsWith("/")||e.startsWith("/")?`${t}${e}`:`${t}/${e}`}let sO=(()=>{class t{constructor(t,e){this.document=t,this.router=e,this.inlineOnly=!1,this.currentBaseUrl="//",this.stateBS=new gg({}),this.state$=this.stateBS.pipe(cd(t=>void 0!==t)),this.nextUrl=this.router.events.pipe(cd(t=>t instanceof Wg),Xp(t=>eO(this.initialUrl)===eO(t.url)?(this.initialUrl="__done__with__Initial__navigation__",KC):Dp(t)),yp(()=>this.stateBS.next(void 0)),Xp(t=>this.router.events.pipe(cd(e=>e instanceof Gg&&e.url===t.url),Bg())),V(t=>eO(t.urlAfterRedirects||t.url)),rd(1))}startMonitoring(){window&&window["ScullyIO-injected"]&&window["ScullyIO-injected"].inlineStateOnly&&(this.inlineOnly=!0),this.setupEnvForTransferState(),this.setupStartNavMonitoring()}setupEnvForTransferState(){if(rO()){this.injectScript();const t=window["ScullyIO-exposed"]||{};t.transferState&&(this.stateBS.next(t.transferState),this.saveState(t.transferState))}else iO()&&(this.initialUrl=window.location.pathname||"__no_NO_no__",this.initialUrl="/"!==this.initialUrl&&this.initialUrl.endsWith("/")?this.initialUrl.slice(0,-1):this.initialUrl,this.stateBS.next(window&&window["ScullyIO-transfer-state"]||{}))}injectScript(){this.script=this.document.createElement("script"),this.script.setAttribute("id","ScullyIO-transfer-state");let t=document.body.lastChild;for(;"SCRIPT"===t.previousSibling.nodeName;)t=t.previousSibling;document.body.insertBefore(this.script,t)}getState(t){return this.fetchTransferState(),this.state$.pipe(YC(t))}stateHasKey(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)}stateKeyHasValue(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)&&null!=this.stateBS.value[t]}setState(t,e){const n=Object.assign(Object.assign({},this.stateBS.value),{[t]:e});this.stateBS.next(n),this.saveState(n)}saveState(t){rO()&&(this.script.textContent=`{window['ScullyIO-transfer-state']=_u(\`/** ___SCULLY_STATE_START___ */${function(t){const e={"'":"_~q~",$:"_~o~","`":"_~b~","/":"_~s~","<":"_~l~",">":"_~g~"};return t.replace(/[\$`'<>\/]/g,t=>e[t]).replace(/\\\"/g,"_~d~")}(JSON.stringify(t))}/** ___SCULLY_STATE_END___ */\`);function _u(t){t=t.split('/** ___SCULLY_STATE_START___ */')[1].split('/** ___SCULLY_STATE_END___ */')[0];const u={'_~b~': "\`",'_~q~': "'",'_~o~': '$','_~s~': '/','_~l~': '<','_~g~': '>'};return JSON.parse(t.replace(/_~d~/g,'\\\\"').replace(/_~[^]~/g, (s) =>
1 u[s]).replace(/\\n/g,'\\\\n').replace(/\\t/g,'\\\\t').replace(/\\r/g,'\\\\r'));}}`)}setupStartNavMonitoring(){iO()&&this.nextUrl.subscribe()}useScullyTransferState(t,e){return iO()?this.getState(t):e.pipe(yp(e=>this.setState(t,e)))}fetchTransferState(){return Tv(this,void 0,void 0,(function*(){const t=t=>t.split("/").filter(t=>""!==t.trim())[0];yield new Promise(t=>setTimeout(t,0));const e=yield this.nextUrl.pipe(Dg(1)).toPromise(),n=t(e);this.currentBaseUrl!==n&&(this.currentBaseUrl=n,this.nextUrl.pipe(function(t,e=!1){return n=>n.lift(new ZC(t,e))}(e=>t(e)===this.currentBaseUrl),Xp(t=>this.inlineOnly?this.readFromIndex(t):this.readFromJson(t)),Fg(t=>(console.warn("Error while loading of parsing Scully state:",t),Dp({}))),yp(t=>{this.stateBS.next(t)})).subscribe({complete:()=>{this.currentBaseUrl="//"}}))}))}readFromJson(t){return nO(aO(oO(t,"/data.json")))}readFromIndex(t){return nO(aO(oO(t,"/index.html")),"text").then(t=>{const e=t.split("/** ___SCULLY_STATE_START___ */")[1].split("/** ___SCULLY_STATE_END___ */")[0];return JSON.parse(function(t){const e={"_~q~":"'","_~b~":"`","_~o~":"$","_~s~":"/","_~l~":"<","_~g~":">"};return t.replace(/_~d~/g,'\\"').replace(/_~[^]~/g,t=>e[t]).replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(e))})}}return t.\u0275fac=function(e){return new(e||t)(Yt(kc),Yt(sv))},t.\u0275prov=pt({factory:function(){return new t(Yt(kc),Yt(sv))},token:t,providedIn:"root"}),t})();function aO(t){return t.startsWith("/")?t.slice(1):t}let uO=(()=>{class t{constructor(t,e,n,r){var i;this.zone=t,this.router=e,this.initialUrl=((i=window&&window.location&&window.location.pathname).endsWith("/")?i.slice(0,-1):i)||"",this.imState=new gg({idle:!1,timeOut:5e3}),this.idle$=this.imState.pipe(YC("idle")),this.initApp=new Event("AngularInitialized",{bubbles:!0,cancelable:!1}),this.appReady=new Event("AngularReady",{bubbles:!0,cancelable:!1}),this.appTimeout=new Event("AngularTimeout",{bubbles:!0,cancelable:!1}),this.scullyLibConfig=Object.assign({},JC,n);const o=!!(window["ScullyIO-exposed"]||{}).manualIdle;!this.scullyLibConfig.manualIdle&&window&&(this.scullyLibConfig.alwaysMonitor||rO())&&(window.dispatchEvent(this.initApp),this.router.events.pipe(cd(t=>t instanceof Gg&&void 0!==t.urlAfterRedirects),cd(t=>!o||t.urlAfterRedirects!==this.initialUrl),yp(()=>this.zoneIdleCheck())).subscribe()),this.scullyLibConfig.manualIdle&&window.dispatchEvent(this.initApp),this.scullyLibConfig.useTransferState&&r.startMonitoring()}fireManualMyAppReadyEvent(){return Tv(this,void 0,void 0,(function*(){return window.dispatchEvent(this.appReady)}))}init(){return Tv(this,void 0,void 0,(function*(){return this.idle$.pipe(Dg(1)).toPromise()}))}zoneIdleCheck(){return Tv(this,void 0,void 0,(function*(){if(void 0===Zone)return this.simpleTimeout();const t=Zone.current.get("TaskTrackingZone");if(void 0===t)return this.simpleTimeout();this.imState.value.idle&&(yield this.setState("idle",!1)),this.zone.runOutsideAngular(()=>{let e,n=0;const r=Date.now(),i=()=>{clearTimeout(e),Date.now()-r>3e4?window.dispatchEvent(this.appTimeout):t.macroTasks.length>0&&void 0!==t.macroTasks.find(t=>t.source.includes("XMLHttpRequest"))||n<1?e=setTimeout(()=>{n+=1,i()},50):this.zone.run(()=>{setTimeout(()=>{window.dispatchEvent(this.appReady),this.setState("idle",!0)},250)})};i()})}))}simpleTimeout(){return Tv(this,void 0,void 0,(function*(){console.warn("Scully is using timeouts, add the needed polyfills instead!"),yield new Promise(t=>setTimeout(t,this.imState.value.timeOut)),window.dispatchEvent(this.appReady)}))}setPupeteerTimeoutValue(t){this.imState.next(Object.assign(Object.assign({},this.imState.value),{timeOut:t}))}setState(t,e){this.imState.next(Object.assign(Object.assign({},this.imState.value),{[t]:e}))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zu),Yt(sv),Yt(tO),Yt(sO))},t.\u0275prov=pt({factory:function(){return new t(Yt(Zu),Yt(sv),Yt(tO),Yt(sO))},token:t,providedIn:"root"}),t})(),cO=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),lO=(()=>{class t{constructor(t){this.idle=t}static forRoot(e=JC){return e=Object.assign({},JC,e),{ngModule:t,providers:[{provide:tO,useValue:e}]}}}return t.\u0275mod=ve({type:t}
1),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(uO))},imports:[[cO],cO]}),t})(),hO=(()=>{class t{}return t.\u0275mod=ve({type:t,bootstrap:[QC]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[],imports:[[Yl,$C,ap,ow,Zp.initializeApp(Pc),od,Sd,fg,uC.forRoot(),tb,lO]]}),t})();(function(){if(Sr)throw new Error("Cannot enable prod mode after platform setup.");Mr=!1})(),Ql().bootstrapModule(hO).catch(t=>console.error(t))},zVF4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("os0x"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw s(e)},s=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},a=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],s=i+1<t.length,a=s?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=(15&a)<<2|c>>6,h=63&c;u||(h=64,s||(l=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],s=i<t.length?n[t.charAt(i)]:0,a=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==u)throw Error();r.push(o<<2|s>>4),64!==a&&(r.push(s<<4&240|a>>2),64!==u&&r.push(a<<6&192|u))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},c=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function l(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=l(t[n],e[n]));return t}var h=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function p(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var f=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,g.prototype.create),i}return r.__extends(e,t),e}(Error),g=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],s=o?m(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",u=new f(i,a),c=0,l=Object.keys(r);c<l.length;c++){var h=l[c];"_"!==h.slice(-1)&&(h in u&&console.warn('Overwriting FirebaseError base field "'+h+'" can cause unexpected behavior.'),u[h]=r[h])}return u},t}();function m(t,e){return t.replace(y,(function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"}))}var y=/\{\$([^}]+)}/g;function v(t){return JSON.parse(t)}var _=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=v(c(o[0])||""),n=v(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(s){}return{header:e,claims:n,data:r,signature:i}},b=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++)n[r]=4294967295&((h=n[r-3]^n[r-8]^n[r-14]^n[r-16])<<1|h>>>31);var i,o,s=this.chain_[0],a=this.chain_[1],u=this.chain_[2],c=this.chain_[3],l=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=c^a&(u^c),o=1518500249):(i=a^u^c,o=1859775393):r<60?(i=a&u|c&(a|u),o=2400959708):(i=a^u^c,o=3395469782);var h=(s<<5|s>>>27)+i+l+o+n[r]&4294967295;l=c,c=u,u=4294967295&(a<<30|a>>>2),a=s,s=h}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<e;){if(0===o)for(;r<=n;)this.compress_(t,r),r+=this.blockSize;if("string"==typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<e;)if(i[o]=t[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}(),w=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=["next","error","complete"];n<r.length;n++){var i=r[n];if(i in t&&"function"==typeof t[i])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(r.next=C),void 0===r.error&&(r.error=C),void 0===r.complete&&(r.complete=C);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}})),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function C(){}function O(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return t+" failed: "+r+" argument "}e.CONSTANTS=i,e.Deferred=h,e.ErrorFactory=g,e.FirebaseError=f,e.Sha1=b,e.assert=o,e.assertionError=s,e.async=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){t.apply(void 0,n)})).catch((function(t){e&&e(t)}))}},e.base64=u,e.base64Decode=c,e.base64Encode=function(t){var e=a(t);return u.encodeByteArray(e,!0)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new w(t,e);return n.subscribe.bind(n)},e.decode=_,e.deepCopy=function(t){return l(void 0,t)},e.deepExtend=l,e.errorPrefix=O,e.getUA=p,e.isAdmin=function(t){var e=_(t).claims;return"object"==typeof e&&!0===e.admin},e.isBrowser=function(){return"object"==typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id},e.isElectron=function(){return p().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=p();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(p())},e.isNode=d,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!d()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return p().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=_(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=_(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=_(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=v,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEac
1h((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach((function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}})),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var s=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(s<<10)+(t.charCodeAt(r)-56320)}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(O(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(O(t,e,r)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(O(t,e,r)+"must be a valid firebase namespace.")}},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zuR4:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("HSsa"),o=n("CgaS"),s=n("SntB");function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=a(n("JEQr"));u.Axios=o,u.create=function(t){return a(s(u.defaults,t))},u.Cancel=n("endd"),u.CancelToken=n("jfS+"),u.isCancel=n("Lmem"),u.all=function(t){return Promise.all(t)},u.spread=n("DfZB"),t.exports=u,t.exports.default=u}},[[0,0]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.