PageSourceSearch

https://virtualceo-io.web.app/main-es5.80d0bd96cfd1e8ced361.js

js virtualceo-io.web.app collected 2026-10-03 12:39:31 UTC 1,007,236 bytes, 1 lines download raw bytes

vendor: 4,277 bytes, line 1
1!function(){function t(t){return i(t)||a(t)||u(t)||r()}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 n(t,e){return i(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||u(t,e)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t){if(Array.isArray(t))return t}function o(t){return function(t){if(Array.isArray(t))return c(t)}(t)||a(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return c(t,e);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(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(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 l(t,e,n){return(l=y()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&p(i,n.prototype),i}).apply(null,arguments)}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=y();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(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 w(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}(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}
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,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.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 a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}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],a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],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 a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=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 a=n[o];return e[o]=r.call(e,o)?t(e[o],a,i):a,e}),a)}}},"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"),a=o&&o.isSet,s=a?i(a):r;t.exports=s},"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 a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,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"),a=n("ekgI"),s=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=a,u.prototype.set=s,t.exp
1orts=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,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("YuTi")(t))},"5oMp":function(t,e,n){"use strict";t.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,a=n("q/0M"),s=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 f={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"},p=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),d=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}(),v=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 p(f.ABORTED,"getToken aborted due to token change.");return n?(be("string"==typeof n.accessToken),new d(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 be(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}(),m=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}(),b=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new p(f.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new p(f.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new p(f.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new p(f.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}(),_=function(){function t(t){this.timestamp=t}return t.v=function(e){return new t(e)},t.min=function(){return new t(new b(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&&me(),void 0===n?n=t.length-e:n>t.length-e&&me(),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 p(f.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 k=/^[_a-zA-Z][_a-zA-Z0-9]*$/,O=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 k.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 p(f.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new p(f.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new p(f.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new p(f.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e}(w);O.G=new O([]);var x=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 E(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function P(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function M(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
1x.EMPTY=new x(new C([]));var S=function(){function t(t){this.it=t}return t.fromBase64String=function(e){return new t(fe.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 fe.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 T(t){return null==t}function A(t){return-0===t&&1/t==-1/0}function I(t){return"number"==typeof t&&Number.isInteger(t)&&!A(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 R(t){var e=q(t.mapValue.fields.__local_write_time__.timestampValue);return new b(e.seconds,e.nanos)}S.ht=new S("");var N=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:me()}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 R(t).isEqual(R(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?A(n)===A(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return ke(t.arrayValue.values||[],e.arrayValue.values||[],F);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(E(n)!==E(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 me()}}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(R(t),R(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 a=0;a<r.length&&a<o.length;++a){var s=Ce(r[a],o[a]);if(0!==s)return s;var u=U(n[r[a]],i[o[a]]);if(0!==u)return u}return Ce(r.length,o.length)}(t.mapValue,e.mapValue);default:throw me()}}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?x.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 a=o[i];r?r=!1:n+=",",n+=a+":"+t(e.fields[a])}return n+"}"}(e.mapValue):me();var n}(t)}function q(t){if(be(!!t),"string"==typeof t){var e=0,n=N.exec(t);if(be(!!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?S.fromBase64String(t):S.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 Q(t){return!!t&&"arrayValue"in t}function K(t){return!!t&&"nullValue"in t}function $(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&&ke(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&&ke(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 Q(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var nt=function(){function t(t){this.fields=t,t.sort(O.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 ke(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 mt&&t.version.isEqual(this.updateTime):void 0===this.exists||this.exists===t instanceof mt},t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}(),at=function(){function t(){}return t.prototype.wt=function(t){},t.It=function(t){return t instanceof mt?t.version:_.min()},t}(),st=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 mt(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=at.It(t);return new mt(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}(at),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 _t(this.key,e.version);var n=this.gt(t);return new mt(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=at.It(t),i=this.gt(t);return new mt(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 mt?t.data():ft.empty(),this.pt(e)},e.prototype.pt=function(t){var e=this,n=new pt(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}(at),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),be(null!=e.transformResults),!this.Rt.Et(t))return new _t(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 mt(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 mt(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 mt?t.field(i.field):void 0,a=i.transform.ut(o||null);null!=a&&(e=null==e?(new pt).set(i.field,a):e.set(i.field,a))}return e?e.yt():null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&ke(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=[];be(this.fieldTransforms.length===e.length);for(var r=0;r<e.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;t instanceof mt&&(a=t.field(i.field)),n.push(o.at(a,e[r]))}return n},e.prototype.Dt=function(t,e,n){for(var r=[],i=0,o=this.fieldTransforms;i<o.length;i++){var a=o[i],s=a.transform,u=null;e instanceof mt&&(u=e.field(a.field)),null===u&&n instanceof mt&&(u=n.field(a.field)),r.push(s.ot(u,t))}return r},e.prototype.St=function(t,e){for(var n=new pt(t),r=0;r<this.fieldTransforms.length;r++)n.set(this.fieldTransforms[r].field,e[r]);return n.yt()},e}(at),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 bt(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){return this.wt(t),this.Rt.Et(t)?new bt(this.key,_.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}(at),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){me()}
1,e.prototype.ot=function(t,e,n){me()},e.prototype.Pt=function(t){me()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(at),ft=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}(),pt=function(){function t(t){void 0===t&&(t=ft.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)},t.prototype.yt=function(){var t=this.$t(O.G,this.Ft);return null!=t?new ft(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 a=n.$t(t.child(i),e);null!=a&&(o[i]=a,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 dt(t){var e=[];return P(t.fields||{},(function(t,n){var r=new O([t]);if(Y(n)){var i=dt(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,a=i;o<a.length;o++)e.push(r.child(a[o]))}else e.push(r)})),new nt(e)}var gt,vt,yt=function(t,e){this.key=t,this.version=e},mt=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),bt=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),_t=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,a){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===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,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(","),T(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(", ")+"]"),T(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 x.et(this.path)&&null===this.collectionGroup&&0===this.filters.length},t}(),Ct=function(){function t(t,e,n,r,i,o,a,s){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===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.Ot=n,this.filters=r,this.limit=i,this.Bt=o,this.startAt=a,this.endAt=s,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 Tt(t)),this.qt.push(new Tt(O.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 a=this.Ot.length>0?this.Ot[this.Ot.length-1].dir:"asc";this.qt.push(new Tt(O.J(),a))}}}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],a=o.compare(t,e);if(0!==a)return a;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!T(this.limit)&&"F"===this.Bt},t.prototype.ae=function(){return!T(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 kt&&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 kt&&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 Tt(r.field,"desc"===r.dir?"asc":"desc"))}var i=this.endAt?new St(this.endAt.position,!this.endAt.before):null,o=this.startAt?new St(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):x.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}(),kt=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 xt(t,r):new Ot(t,n,r);if(K(r)){if("=="!==n)throw new p(f.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,r)}if($(r)){if("=="!==n)throw new p(f.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,r)}return"array-contains"===n?new Et(t,r):"in"===n?new Pt(t,r):"array-contains-any"===n?new Mt(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 me()}},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(){})),Ot=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=x.Z(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=x.N(t.key,this.key);return this.de(e)},e}(kt),xt=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 x.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}(kt),Et=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 Q(e)&&L(e.arrayValue,this.value)},e}(kt),Pt=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}(kt),Mt=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);
1return!(!Q(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return L(e.value.arrayValue,t)}))},e}(kt),St=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()?x.N(x.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}(),Tt=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?x.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):me()}(this.field,t,e);switch(this.dir){case"asc":return n;case"desc":return-1*n;default:return me()}},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}(),At=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=_.min()),void 0===o&&(o=_.min()),void 0===a&&(a=S.ht),this.target=t,this.targetId=e,this.Te=n,this.sequenceNumber=r,this.Ee=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}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 f.OK:return me();case f.CANCELLED:case f.UNKNOWN:case f.DEADLINE_EXCEEDED:case f.RESOURCE_EXHAUSTED:case f.INTERNAL:case f.UNAVAILABLE:case f.UNAUTHENTICATED:return!1;case f.INVALID_ARGUMENT:case f.NOT_FOUND:case f.ALREADY_EXISTS:case f.PERMISSION_DENIED:case f.FAILED_PRECONDITION:case f.ABORTED:case f.OUT_OF_RANGE:case f.UNIMPLEMENTED:case f.DATA_LOSS:return!0;default:return me()}}function Rt(t){if(void 0===t)return ve("GRPC error has no .code"),f.UNKNOWN;switch(t){case gt.OK:return f.OK;case gt.CANCELLED:return f.CANCELLED;case gt.UNKNOWN:return f.UNKNOWN;case gt.DEADLINE_EXCEEDED:return f.DEADLINE_EXCEEDED;case gt.RESOURCE_EXHAUSTED:return f.RESOURCE_EXHAUSTED;case gt.INTERNAL:return f.INTERNAL;case gt.UNAVAILABLE:return f.UNAVAILABLE;case gt.UNAUTHENTICATED:return f.UNAUTHENTICATED;case gt.INVALID_ARGUMENT:return f.INVALID_ARGUMENT;case gt.NOT_FOUND:return f.NOT_FOUND;case gt.ALREADY_EXISTS:return f.ALREADY_EXISTS;case gt.PERMISSION_DENIED:return f.PERMISSION_DENIED;case gt.FAILED_PRECONDITION:return f.FAILED_PRECONDITION;case gt.ABORTED:return f.ABORTED;case gt.OUT_OF_RANGE:return f.OUT_OF_RANGE;case gt.UNIMPLEMENTED:return f.UNIMPLEMENTED;case gt.DATA_LOSS:return f.DATA_LOSS;default:return me()}}(vt=gt||(gt={}))[vt.OK=0]="OK",vt[vt.CANCELLED=1]="CANCELLED",vt[vt.UNKNOWN=2]="UNKNOWN",vt[vt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",vt[vt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",vt[vt.NOT_FOUND=5]="NOT_FOUND",vt[vt.ALREADY_EXISTS=6]="ALREADY_EXISTS",vt[vt.PERMISSION_DENIED=7]="PERMISSION_DENIED",vt[vt.UNAUTHENTICATED=16]="UNAUTHENTICATED",vt[vt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",vt[vt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",vt[vt.ABORTED=10]="ABORTED",vt[vt.OUT_OF_RANGE=11]="OUT_OF_RANGE",vt[vt.UNIMPLEMENTED=12]="UNIMPLEMENTED",vt[vt.INTERNAL=13]="INTERNAL",vt[vt.UNAVAILABLE=14]="UNAVAILABLE",vt[vt.DATA_LOSS=15]="DATA_LOSS";var Nt=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 me();if(this.right.Le())throw me();var t=this.left.je();if(t!==this.right.je())throw me();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 me()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw me()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw me()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw me()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw me()},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 Nt(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 Nt(x.N);function Bt(){return Vt}function qt(){return Bt()}var zt=new Nt(x.N);function Ht(){return zt}var Wt=new Nt(x.N),Gt=new Lt(x.N);function Qt(){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 Kt=new Lt(Ce);function $t(){return Kt}var Yt=function(){function t(t){this.N=t?function(e,n){return t(e,n)||x.N(e.key,n.key)}:function(t,e){return x.N(t.key,e.key)},this.Je=Ht(),this.Xe=new Nt(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 Nt(x.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}
1):me():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,a,s){this.query=t,this.docs=e,this.ss=n,this.docChanges=r,this.ns=i,this.fromCache=o,this.rs=a,this.hs=s}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(_.min(),r,$t(),Bt(),Qt())},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}return t.ds=function(e,n){return new t(S.ht,n,Qt(),Qt(),Qt())},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=S.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=se(),this.Vs=S.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=Qt(),e=Qt(),n=Qt();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:me()}})),new te(this.Vs,this.gs,t,e,n)},t.prototype.Ds=function(){this.ps=!1,this.Ps=se()},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=ae(),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 mt?this.Us(r,t.Rs):t.Rs instanceof bt&&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:me()}}))},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 x(i.path);this.Qs(e,o,new bt(o,_.min()))}else be(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 a=new x(o.target.path);null!==e.Ls.get(a)||e.Zs(i,a)||e.Qs(i,a,new bt(a,t))}r.bs&&(n.set(i,r.Ss()),r.Ds())}}));var r=Qt();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=ae(),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 ae(){return new Nt(x.N)}function se(){return new Nt(x.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?f.UNKNOWN:Rt(t.code);return new p(e,t.message||"")},t.prototype.ri=function(t){return this.options.hi||T(t)?t:{value:t}},t.prototype.oi=function(t){var e;return T(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:A(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 b(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?(be(void 0===t||"string"==typeof t),S.fromBase64String(t||"")):(be(void 0===t||t instanceof Uint8Array),S.fromUint8Array(t||new Uint8Array))},t.prototype.toVersion=function(t){return this.C(t.C())},t.prototype.fromVersion=function(t){return be(!!t),_.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 be(he(e)),e},t.prototype.fi=function(t){return this._i(t.path)},t.prototype.Z=function(t){var e=this.di(t);return be(e.get(1)===this.ii.projectId),be(!e.get(3)&&!this.ii.database||e.get(3)===this.ii.database),new x(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 be(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 ft({mapValue:{fields:t.fields}});return new mt(n,r,i,{hasCommittedMutations:!!e})},t.prototype.Pi=function(t){be(!!t.found);var e=this.Z(t.found.name),n=this.fromVersion(t.found.updateTime),r=new ft({mapValue:{fields:t.found.fields}});return new mt(e,n,r,{})},t.prototype.Vi=function(t){be(!!t.missing),be(!!t.readTime);var e=this.Z(t.missing),n=this.fromVersion(t.readTime);return new bt(e,n)},t.prototype.gi=function(t){return"found"in t?this.Pi(t):"missing"in t?this.Vi(t):me()},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,a=o&&this.ni(o);e=new re(n,r,i,a||null)}else if("documentChange"in t){var s=t.documentChange,u=this.Z(s.document.name),c=this.fromVersion(s.document.updateTime),l=new ft({mapValue:{fields:s.document.fields}}),h=new mt(u,c,l,{});e=new ee(s.targetIds||[],s.removedTargetIds||[],h.key,h)}else if("documentDelete"in t){var f=t.documentDelete,p=this.Z(f.document),d=f.readTime?this.fromVersion(f.readTime):_.min(),g=new bt(p,d);e=new ee([],f.removedTargetIds||[],g.key,g)}else if("documentRemove"in t){var v=t.documentRemove,y=this.Z(v.document);e=new ee([],v.removedTargetIds||[],y,null)}else{if(!("filter"in t))return me();var m=t.filter,b=new It(m.count||0);e=new ne(m.targetId,b)}return e},t.prototype.yi=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:me()},t.prototype.bi=function(t){if(!("targetChange"in t))return _.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?_.min():e.readTime?this.fromVersion(e.readTime):_.min()},t.prototype.vi=function(t){var e,n=this;if(t instanceof st)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 me();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 ft({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=this.$i(t.updateMask);return new ut(r,i,o,n)}return new st(r,i,n)}if(t.delete){var a=this.Z(t.delete);return new lt(a,n)}if(t.transform){var s=this.Z(t.transform.document),u=t.transform.fieldTransforms.map((function(t){return e.ki(t)}));return be(!0===n.exists),new ct(s,u)}if(t.verify){var c=this.Z(t.verify);return new ht(c,n)}return me()},t.prototype.Ci=function(t){return void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:me()},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(_.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?(be(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 me()},t.prototype.ki=function(t){var e=null;"setToServerValue"in t?(be("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):me();var n=O.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 be(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){be(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=this.ji(n.where));var s=[];n.orderBy&&(s=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,s,a,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 me()}},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 kt?e.Yi(t):me()}));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)})):me():[]},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 St(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 me()}},t.prototype.hn=function(t){return{fieldPath:t.j()}},t.prototype.on=function(t){return O.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 Tt(this.on(t.field),this.sn(t.direction))},t.prototype.Xi=function(t){return kt.create(this.on(t.fieldFilter.field),this.rn(t.fieldFilter.op),t.fieldFilter.value)},t.prototype.Yi=function(t){if("=="===t.op){if($(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NAN"}};if(K(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 kt.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return kt.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return me()}},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 O.X(t)})))},t}();function he(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var fe=function(){function t(){}return t.an=function(e){t.platform&&me(),t.platform=e},t.nt=function(){return t.platform||me(),t.platform},t}(),pe=new a.Logger("@firebase/firestore");function de(){return pe.logLevel}function ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=a.LogLevel.DEBUG){var r=e.map(ye);pe.debug.apply(pe,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function ve(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=a.LogLevel.ERROR){var r=e.map(ye);pe.error.apply(pe,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function ye(t){if("string"==typeof t)return t;var e=fe.nt();try{return e.un(t)}catch(e){return t}}function me(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE ("+l+") INTERNAL ASSERTION FAILED: "+t;throw ve(e),new Error(e)}function be(t,e){t||me()}function _e(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=fe.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 ke(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function Oe(t){return t+"\0"}var xe=function(t,e,n,r,i){this.ii=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},Ee=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}(),Pe=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],a=o[1];if(o[0].isEqual(t))return a}},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){P(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 M(this.fn)},t}(),Me=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,a=0,s=this.mutations;a<s.length;a++){var u=s[a];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)}),Qt())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&ke(this.mutations,t.mutations,(function(t,e){return t.isEqual(e)}))&&ke(this.baseMutations,t.baseMutations,(function(t,e){return t.isEqual(e)}))},t}(),Se=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){be(e.mutations.length===r.length);for(var i=Wt,o=e.mutations,a=0;a<o.length;a++)i=i.Ae(o[a].key,r[a].version);return new t(e,n,r,i)},t}(),Te=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&&me(),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}
1(),Ae=function(){function t(){this.Dn=new Pe((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?Te.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}(),Re=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 bt(t,_.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 x(e)).next((function(t){var e=Ht();return t instanceof mt&&(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(a){return Te.forEach(a,(function(a){var s=e.Zt(a.child(i));return r.sr(t,s,n).next((function(t){t.forEach((function(t,e){o=o.Ae(t,e)}))}))})).next((function(){return o}))}))},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],a=0,s=o.mutations;a<s.length;a++){var u=s[a],c=u.key,l=r.get(c),h=u.ot(l,l,o.Tn);r=h instanceof mt?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=Qt(),i=0,o=e;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var u=s[a];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 mt&&(c=c.Ae(t,e))})),c}))},t}(),Ne=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=Qt(),i=Qt(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.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 
1jitter: "+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(be(e>=2),2===e)return be("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),C.G;for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf("\x01",o);switch((a<0||a>n)&&me(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=t.substring(o,a),i+="\0";break;case"\x11":i+=t.substring(o,a+1);break;default:me()}o=a+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),Te.resolve()},t.prototype.ir=function(t,e){return Te.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 Te.resolve()},t.prototype.ir=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Oe(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 sn.Nr(t,In.store)}var Qe=function(){function t(t,e){this.serializer=t,this.jn=e}return t.prototype.Nn=function(t,e,n){return $e(t).put(Ye(e),n)},t.prototype.kn=function(t,e){var n=$e(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 $e(t).get(Ye(e)).next((function(t){return n.kr(t)}))},t.prototype.Mr=function(t,e){var n=this;return $e(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 Nt(x.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 Te.resolve();var r=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),i=e.be(),o=i.Ne();return $e(t).Ur({range:r},(function(t,e,r){for(var a=x.st(t);o&&x.N(o,a)<0;)n(o,null),o=i.Ne();o&&o.isEqual(a)&&(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,a={};if(n.isEqual(_.min())){var s=e.path.W();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.W(),c=this.serializer.Wr(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Pn.collectionReadTimeIndex}return $e(t).Ur(a,(function(t,n,a){if(t.length===o){var s=r.serializer.jr(n);e.path.q(s.key.path)?s instanceof mt&&e.matches(s)&&(i=i.Ae(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.Kr=function(t,e){var n=this,r=Bt(),i=this.serializer.Wr(e),o=$e(t),a=IDBKeyRange.lowerBound(i,!0);return o.Ur({index:Pn.readTimeIndex,range:a},(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=$e(t),r=_.min();return n.Ur({index:Pn.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 Ke(t).get(Mn.key).next((function(t){return be(!!t),t}))},t.prototype.$r=function(t,e){return Ke(t).put(Mn.key,e)},t.prototype.kr=function(t){if(t){var e=this.serializer.jr(t);
1return e instanceof bt&&e.version.isEqual(_.min())?null:e}return null},t}();function Ke(t){return sn.Nr(t,Mn.store)}function $e(t){return sn.Nr(t,Pn.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 me();e=t.noDocument}return JSON.stringify(e).length}Qe.Jr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).th=e,r.Xr=n,r.eh=new Pe((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,a){var s=e.eh.get(o);if(a){var u=e.th.serializer.sh(a,e.readTime);i=i.add(o.path.M());var c=Ze(u);r+=c-s,n.push(e.th.Nn(t,o,u))}else if(r-=s,e.Xr){var l=e.th.serializer.sh(new bt(o,_.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)),Te.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}(Ae);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}(),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 _.v(new b(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)}
1))},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 be(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(a,s){var u=r.serializer.mh(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.Ih(t,u)))})).next((function(){return Te.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(An.key).next((function(t){return be(null!==t),t}))},t.prototype.uh=function(t,e){return en(t).put(An.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:Sn.queryTargetsIndexName},(function(t,r,i){var a=n.serializer.mh(r);e.isEqual(a.target)&&(o=a,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 a=Ue(e.path);i.push(o.put(new Tn(n,a))),i.push(r.hh.yh(t,n,e))})),Te.vn(i)},t.prototype.bh=function(t,e,n){var r=this,i=nn(t);return Te.forEach(e,(function(e){var o=Ue(e.path);return Te.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=Qt();return r.Ur({range:n,Dh:!0},(function(t,e,n){var r=qe(t[1]),o=new x(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Ch=function(t,e){var n=Ue(e.path),r=IDBKeyRange.bound([n],[Oe(n)],!1,!0),i=0;return nn(t).Ur({index:Tn.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 sn.Nr(t,Sn.store)}function en(t){return sn.Nr(t,An.store)}function nn(t){return sn.Nr(t,Tn.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=x.st(t.noDocument.path),n=this.Nh(t.noDocument.readTime);return new bt(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var r=x.st(t.unknownDocument.path),i=this.Nh(t.unknownDocument.version);return new _t(r,i)}return me()},t.prototype.sh=function(t,e){var n=this.Wr(e),r=t.key.path.M().W();if(t instanceof mt){var i=this.Fh.Ai(t);return new Pn(null,null,i,t.hasCommittedMutations,n,r)}if(t instanceof bt){var o=t.key.path.W(),a=this.$h(t.version),s=t.hasCommittedMutations;return new Pn(null,new xn(o,a),null,s,n,r)}if(t instanceof _t){var u=t.key.path.W(),c=this.$h(t.version);return new Pn(new En(u,c),null,null,!0,n,r)}return me()},t.prototype.Wr=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.zr=function(t){var e=new b(t[0],t[1]);return _.v(e)},t.prototype.$h=function(t){var e=t.C();return new _n(e.seconds,e.nanoseconds)},t.prototype.Nh=function(t){var e=new b(t.seconds,t.nanoseconds);return _.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 kn(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=b.fromMillis(t.localWriteTimeMs);return new Me(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):_.min();return e=void 0!==t.query.documents?this.Fh.Oi(t.query):this.Fh.Wi(t.query),new At(e,t.targetId,0,t.lastListenSequenceNumber,n,r,S.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 Sn(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.",an=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),sn=function(){function t(e,n,r,i,o,a,s,u,c){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Tr=a,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 p(f.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(s),this.document=i.document,this.Jh=new Je(this.hh,this.serializer),this.jn=new We,this.Qn=new Qe(this.serializer,this.jn),this.window=i.window,i.window&&i.window.localStorage?this.Xh=i.window.localStorage:(this.Xh=null,!1===c&&ve("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 an)return jn.Nr(t.xh,e);throw me()},t.prototype.start=function(){var t=this;return jn.Zh(this.Hh,mn,new bn(this.serializer)).then((function(e){return t.to=e,t.eo(t.Bh)})).then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new p(f.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 Rn(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 Te.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,Rn.store);return n.Fr().next((function(t){var e=o.Ao(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return Te.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?Te.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 p(f.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 fn.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",Nn,(function(o){return r=new an(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 ve("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.Tr.lo((function(){return i.Gh(!1)})),new p(f.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 p(f.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)):Te.resolve()}))},t.prototype.Ro=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(ve("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 ve("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){ve("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 sn.Nr(t,wn.store)}function cn(t){return sn.Nr(t,Rn.store)}sn.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 pn(t,r,e).next((function(t){return t&&(n=!0),Te.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(a,s){if(s<=e){var u=n.Qo(t,a).next((function(e){if(!e)return o++,r.Mn(t,a).next((function(){return r.kn(a),nn(t).delete([0,Ue(a.path)])}))}));i.push(u)}})).next((function(){return Te.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:Tn.documentTargetsIndex},(function(t,r){var o=r.path,a=r.sequenceNumber;0===t[0]?(i!==je.dr&&e(new x(qe(n)),i),i=a,n=o):i=je.dr})).next((function(){i!==je.dr&&e(new x(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 Tn(0,Ue(t.path),e)}(e,t.Lh))}var fn=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 be(""!==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:kn.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=vn(t),a=gn(t);return a.add({}).next((function(s){be("number"==typeof s);for(var u=new Me(s,e,n,r),c=i.serializer.kh(i.userId,u),l=[],h=new Lt((function(t,e){return Ce(t.j(),e.j())})),f=0,p=r;f<p.length;f++){var d=p[f],g=On.key(i.userId,d.key.path,s);h=h.add(d.key.path.M()),l.push(a.put(c)),l.push(o.put(g,On.PLACEHOLDER))}return h.forEach((function(e){l.push(i.jn.Dr(t,e))})),t.qn((function(){i.zo[s]=u.keys()})),Te.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?(be(t.userId===n.userId),n.serializer.Mh(t)):null}))},t.prototype.Xo=function(t,e){var n=this;return this.zo[e]?Te.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:kn.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(be(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:kn.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(kn.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=On.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return vn(t).Ur({range:i},(function(r,i,a){var s=r[0],u=r[2],c=qe(r[1]);if(s===n.userId&&e.path.isEqual(c))return gn(t).get(u).next((function(t){if(!t)throw me();be(t.userId===n.userId),o.push(n.serializer.Mh(t))}));a.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=On.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=vn(t).Ur({range:a},(function(t,i,o){var a=t[0],s=t[2],u=qe(t[1]);a===n.userId&&e.path.isEqual(u)?r=r.add(s):o.done()}));i.push(s)})),Te.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=On.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Lt(Ce);return vn(t).Ur({range:a},(function(t,e,o){var a=t[0],u=t[2],c=qe(t[1]);a===n.userId&&r.q(c)?c.length===i&&(s=s.add(u)):o.done()})).next((function(){return n.sa(t,s)}))},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 me();be(t.userId===n.userId),r.push(n.serializer.Mh(t))})))})),Te.vn(i).next((function(){return r}))},t.prototype.ia=function(t,e){var n=this;return dn(t.xh,this.userId,e).next((function(r){return t.qn((function(){n.na(e.batchId)})),Te.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 Te.resolve();
1var r=IDBKeyRange.lowerBound(On.prefixForUser(e.userId)),i=[];return vn(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(){be(0===i.length)}))}))},t.prototype.Ch=function(t,e){return pn(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 pn(t,e,n){var r=On.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return vn(t).Ur({range:o,Dh:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(a=!0),r.done()})).next((function(){return a}))}function dn(t,e,n){var r=t.store(kn.store),i=t.store(On.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.Ur({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){be(1===s)})));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var f=h[l],p=On.key(e,f.key.path,n.batchId);o.push(i.delete(p)),c.push(f.key)}return Te.vn(o).next((function(){return c}))}function gn(t){return sn.Nr(t,kn.store)}function vn(t){return sn.Nr(t,On.store)}function yn(t){return sn.Nr(t,Cn.store)}var mn=10,bn=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;be(n<r&&n>=0&&r<=mn);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(kn.store,{keyPath:kn.keyPath,autoIncrement:!0}).createIndex(kn.userMutationsIndex,kn.userMutationsKeyPath,{unique:!0}),t.createObjectStore(On.store)}(t),Dn(t),function(t){t.createObjectStore(Pn.store)}(t));var a=Te.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Tn.store),t.deleteObjectStore(Sn.store),t.deleteObjectStore(An.store)}(t),Dn(t)),a=a.next((function(){return function(t){var e=t.store(An.store),n=new An(0,0,_.min().C(),0);return e.put(An.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(kn.store).Fr().next((function(n){t.deleteObjectStore(kn.store),t.createObjectStore(kn.store,{keyPath:kn.keyPath,autoIncrement:!0}).createIndex(kn.userMutationsIndex,kn.userMutationsKeyPath,{unique:!0});var r=e.store(kn.store),i=n.map((function(t){return r.put(t)}));return Te.vn(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(Rn.store,{keyPath:Rn.keyPath})}(t)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(t){t.createObjectStore(Mn.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Pn.store);e.createIndex(Pn.readTimeIndex,Pn.readTimeIndexPath,{unique:!1}),e.createIndex(Pn.collectionReadTimeIndex,Pn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(a=a.next((function(){return i.rewriteCanonicalIds(o)}))),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Pn.store).Ur((function(t,n){e+=Ze(n)})).next((function(){var n=new Mn(e);return t.store(Mn.store).put(Mn.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Cn.store),r=t.store(kn.store);return n.Fr().next((function(n){return Te.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Fr(kn.userMutationsIndex,i).next((function(r){return Te.forEach(r,(function(r){be(r.userId===n.userId);var i=e.serializer.Mh(r);return dn(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Tn.store),n=t.store(Pn.store);return t.store(An.store).get(An.key).next((function(t){var r=[];return n.Ur((function(n,i){var o=new C(n),a=function(t){return[0,Ue(t)]}(o);r.push(e.get(a).next((function(n){return n?Te.resolve():function(n){return e.put(new Tn(0,Ue(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return Te.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(Pn.store).Ur({Dh:!0},(function(t,e){var n=new C(t);return i(n.M())})).next((function(){return e.store(On.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(Sn.store);return n.Ur((function(t,r){var i=e.serializer.mh(r),o=e.serializer.Ph(i);return n.put(o)}))},t}(),_n=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 kn=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};kn.store="mutations",kn.keyPath="batchId",kn.userMutationsIndex="userMutationsIndex",kn.userMutationsKeyPath=["userId","batchId"];var On=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}();On.store="documentMutations",On.PLACEHOLDER=new On;var xn=function(t,e){this.path=t,this.readTime=e},En=function(t,e){this.path=t,this.version=e},Pn=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};Pn.store="remoteDocuments",Pn.readTimeIndex="readTimeIndex",Pn.readTimeIndexPath="readTime",Pn.collectionReadTimeIndex="collectionReadTimeIndex",Pn.collectionReadTimeIndexPath=["parentPath","readTime"];var Mn=function(t){this.byteSize=t};Mn.store="remoteDocumentGlobal",Mn.key="remoteDocumentGlobalKey";var Sn=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};Sn.store="targets",Sn.keyPath="targetId",Sn.queryTargetsIndexName="queryTargetsIndex",Sn.queryTargetsKeyPath=["canonicalId","targetId"];var Tn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Tn.store="targetDocuments",Tn.keyPath=["targetId","path"],Tn.documentTargetsIndex="documentTargetsIndex",Tn.documentTargetsKeyPath=["path","targetId"];var An=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};An.key="targetGlobalKey",An.store="targetGlobal";var In=function(t,e){this.collectionId=t,this.parent=e};function Dn(t){t.createObjectStore(Tn.store,{keyPath:Tn.keyPath}).createIndex(Tn.documentTargetsIndex,Tn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Sn.store,{keyPath:Sn.keyPath}).createIndex(Sn.queryTargetsIndexName,Sn.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(An.store)}In.store="collectionParents",In.keyPath=["collectionId","parent"];var Rn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Rn.store="clientMetadata",Rn.keyPath="clientId";var Nn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Cn.store,kn.store,On.store,Pn.store,Sn.store,wn.store,An.store,Tn.store],[Rn.store]),[Mn.store]),[In.store]),jn=function(){function t(e){this.db=e,12.2===t.oa(s.getUA())&&ve("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 Te((function(i,o){var a=indexedDB.open(e,n);a.onsuccess=function(e){i(new t(e.target.result))},a.onblocked=function(){o(new p(f.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},a.onerror=function(t){var e=t.target.error;o("VersionError"===e.name?new p(f.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)},a.onupgradeneeded=function(t){ge("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),r.createOrUpgrade(t.target.result,a.transaction,t.oldVersion,mn).next((function(){ge("SimpleDb","Database upgrade to version "+mn+" 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=s.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,a,s,u;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===t,o=0,a=function(){var t,a,u,c,l;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=Vn.open(s.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),a=n(t).catch((function(e){return t.abort(e),Te.reject(e)})).yn(),u={},a.catch((function(){})),[4,t._a];case 2:return[2,(u.value=(i.sent(),a),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))},s=this,c.label=1;case 1:return[5,a()];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,f.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(p);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 Te((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 Te((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),a=e(i.primaryKey,i.value,o);if(a instanceof Te){var s=a.catch((function(t){return o.done(),Te.reject(t)}));n.push(s)}o.Pn?r():null===o.Ta?i.continue():i.continue(o.Ta)}else r()}})).next((function(){return Te.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 Te((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(s.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 p("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 a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},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 p(f.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=fe.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=fe.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;return e.co((function r(){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]}}))}))})),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,ve("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&&me()},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 Qn(t,e){if(ve("AsyncQueue",e+": "+t),Un(t))return new p(f.UNAVAILABLE,e+": "+t);throw t}function Kn(t,e){var n=t[1],r=e[1],i=Ce(t[0],e[0]);return 0===i?Ce(n,r):i}var $n=function(){function t(t){this.Ga=t,this.buffer=new Lt(Kn),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();Kn(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 Te.resolve(je.dr);var r=new $n(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"),Te.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,s,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,s=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(),de()<=a.LogLevel.DEBUG&&ge("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-h)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),Te.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 Nt(Ce),this.Vu=new Pe((function(t){return t.canonicalId()})),this.gu=_.min(),this.Wn=t.Do(n),this.pu=t.No(),this.Jh=t.Fo(),this.yu=new Re(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(a){return i=a,e=o.persistence.Do(t),n=new Re(o.pu,e,o.persistence.$o()),e.ea(r)})).next((function(t){for(var e=[],o=[],a=Qt(),s=0,u=i;s<u.length;s++){var c=u[s];e.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++)a=a.add(h[l].key)}for(var f=0,p=t;f<p.length;f++){var d=p[f];o.push(d.batchId);for(var g=0,v=d.mutations;g<v.length;g++)a=a.add(v[g].key)}return n.Yn(r,a).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=b.now(),i=t.reduce((function(t,e){return t.add(e.key)}),Qt());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.yu.Yn(o,i).next((function(i){e=i;for(var a=[],s=0,u=t;s<u.length;s++){var c=u[s],l=c.Pt(e.get(c.key));null!=l&&a.push(new ut(c.key,l,dt(l.proto.mapValue),ot.exists(!0)))}return n.Wn.Yo(o,r,a,t)}))}
1)).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 be(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 a=n.pu.Yr({Xr:!0});i=n.Pu;var s=[];e.as.forEach((function(e,a){var u=i.get(a);if(u){s.push(n.Jh.bh(o,e.ws,a).next((function(){return n.Jh.ph(o,e.Ts,a)})));var c=e.resumeToken;if(c.rt()>0){var l=u.Ie(c,r).we(o.Lh);i=i.Ae(a,l),t.xu(u,l,e)&&s.push(n.Jh.wh(o,l))}}}));var u=Bt(),c=Qt();if(e.cs.forEach((function(t,e){c=c.add(t)})),s.push(a.getEntries(o,c).next((function(t){e.cs.forEach((function(i,c){var l=t.get(i);c instanceof bt&&c.version.isEqual(_.min())?(a.kn(i,r),u=u.Ae(i,c)):null==l||c.version.S(l.version)>0||0===c.version.S(l.version)&&l.hasPendingWrites?(a.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)&&s.push(n.persistence.hh.Ko(o,i))}))}))),!r.isEqual(_.min())){var l=n.Jh._h(o).next((function(t){return n.Jh.dh(o,o.Lh,r)}));s.push(l)}return Te.vn(s).next((function(){return a.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 be(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,a,s,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 Te.forEach(t,(function(t){return Te.forEach(t.hr,(function(n){return c.persistence.hh.yh(e,t.targetId,n)})).next((function(){return Te.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++)a=(o=r[n]).targetId,o.fromCache||(s=this.Pu.get(a),u=s.Re(s.Ee),this.Pu=this.Pu.Ae(a,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?Te.resolve(r=i):e.Jh.oh(n).next((function(i){return r=new At(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?Te.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?Te.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=_.min(),i=Qt();
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:_.min(),e?i:Qt())})).next((function(t){return{documents:t,ju:i}}))}))},t.prototype.$u=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=Te.resolve();return o.forEach((function(r){a=a.next((function(){return n.Mn(t,r)})).next((function(t){var o=t,a=e.Rn.get(r);be(null!==a),(!o||o.version.S(a)<0)&&(o=i.at(r,o,e))&&n.Nn(o,e.In)}))})),a.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):Te.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!==f.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=x.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=x.EMPTY,n=new ir(e,t),r=new ir(e,t+1),i=Qt();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 x.N(t.key,e.key)||Ce(t.hc,e.hc)},t.Zu=function(t,e){return Ce(t.hc,e.hc)||x.N(t.key,e.key)},t}();function or(t,e){if(0!==e.length)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+kr(e.length,"argument")+".")}function ar(t,e,n){if(e.length!==n)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() requires "+kr(n,"argument")+", but was called with "+kr(e.length,"argument")+".")}function sr(t,e,n){if(e.length<n)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() requires at least "+kr(n,"argument")+", but was called with "+kr(e.length,"argument")+".")}function ur(t,e,n,r){if(e.length<n||e.length>r)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+kr(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 fr(t,e,n,r){void 0!==r&&hr(t,e,n,r)}function pr(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(yr(u))}var c=yr(r);throw new p(f.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function dr(t,e,n,r){if(!e.some((function(t){return t===r})))throw new p(f.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?vr(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=yr(r);throw new p(f.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function vr(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":me()}function mr(t,e,n){if(void 0===n)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Cr(e)+" argument, but it was undefined.")}function br(t,e,n){P(e,(function(e,r){if(n.indexOf(e)<0)throw new p(f.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function _r(t,e,n,r){var i=yr(r);return new p(f.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 p(f.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 kr(t,e){return t+" "+e+(1===t?"":"s")}function Or(){if("undefined"==typeof Uint8Array)throw new p(f.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function xr(){if(!fe.nt().oc)throw new p(f.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Er=function(){function t(t){xr(),this.ac=t}return t.fromBase64String=function(e){ar("Blob.fromBase64String",arguments,1),cr("Blob.fromBase64String","string",1,e),xr();try{return new t(S.fromBase64String(e))}catch(e){throw new p(f.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(ar("Blob.fromUint8Array",arguments,1),Or(),!(e instanceof Uint8Array))throw _r("Blob.fromUint8Array","Uint8Array",1,e);return new t(S.fromUint8Array(e))},t.prototype.toBase64=function(){return ar("Blob.toBase64",arguments,0),xr(),this.ac.toBase64()},t.prototype.toUint8Array=function(){return ar("Blob.toUint8Array",arguments,0),Or(),this.ac.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.ac.isEqual(t.ac)},t}(),Pr=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 p(f.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+kr(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 p(f.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.uc=new O(t)}return t.documentId=function(){return t.cc},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","FieldPath",1,e);return this.uc.isEqual(e.uc)},t}();Pr.cc=new Pr(O.J().j());var Mr=new RegExp("[~\\*/\\[\\]]"),Sr=function(){this._c=this},Tr=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}(Sr),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){return new rt(t.path,Z.instance)},e.prototype.isEqual=function(t){return t instanceof e},e}(Sr),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}(Sr),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}(Sr),Rr=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}(Sr),Nr=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 Tr("FieldValue.delete"))},e.serverTimestamp=function(){return or("FieldValue.serverTimestamp",arguments),new jr(new Ar("FieldValue.serverTimestamp"))},e.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sr("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 sr("FieldValue.arrayRemove",arguments,1),new jr(new Dr("FieldValue.arrayRemove",t))},e.increment=function(t){return cr("FieldValue.increment","number",1,t),ar("FieldValue.increment",arguments,1),new jr(new Rr("FieldValue.increment",t))},e}(Sr),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}(Nr),Fr=function(){function t(t,e){if(ar("GeoPoint",arguments,2),cr("GeoPoint","number",1,t),cr("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new p(f.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new p(f.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 st(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 me()}}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 p(f.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||fe.nt().Cc(t)}return t.prototype.Fc=function(t,e){var n=this.Nc(0,t);Kr("Data must be an object, but it was:",n,e);var r=Gr(e,n);return new Vr(new ft(r),null,n.fieldTransforms)},t.prototype.$c=function(t,e,n){var r=this.Nc(2,t);Kr("Data must be an object, but it was:",r,e);var i,o,a=Gr(e,r);if(n){for(var s=[],u=0,c=n;u<c.length;u++){var l=c[u],h=void 0;if(l instanceof Pr)h=l.uc;else{if("string"!=typeof l)throw me();h=Yr(t,l)}if(!r.contains(h))throw new p(f.INVALID_ARGUMENT,"Field '"+h+"' is specified in your field mask but missing from your input data.");Zr(s,h)||s.push(h)}i=new nt(s),o=r.fieldTransforms.filter((function(t){return i.dt(t.field)}))}else i=new nt(r.Vt),o=r.fieldTransforms;return new Vr(new ft(a),i,o)},t.prototype.kc=function(t,e){var n=this.Nc(1,t);Kr("Data must be an object, but it was:",n,e);var r=[],i=new pt;P(e,(function(e,o){var a=Yr(t,e),s=n.Sc(a);if(o instanceof Sr&&o._c instanceof Tr)r.push(a);else{var u=Wr(o,s);null!=u&&(r.push(a),i.set(a,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=[$r(t,e)],a=[n];if(r.length%2!=0)throw new p(f.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push($r(t,r[s])),a.push(r[s+1]);for(var u=[],c=new pt,l=o.length-1;l>=0;--l)if(!Zr(u,o[l])){var h=o[l],d=a[l],g=i.Sc(h);if(d instanceof Sr&&d._c instanceof Tr)u.push(h);else{var v=Wr(d,g);null!=v&&(u.push(h),c.set(h,v))}}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:O.G,wc:!1}
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(Qr(t))return Kr("Unsupported field value:",e,t),Gr(t,e);if(t instanceof Sr)return function(t,e){if(!qr(e.fc))throw e.Tc(t.lc+"() can only be used with update() 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 a=Wr(o[i],e.Dc(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),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=b.fromDate(t);return{timestampValue:e.serializer.C(n)}}if(t instanceof b){var r=new b(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 Er)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 M(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):P(t,(function(t,r){var i=Wr(r,e.bc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function Qr(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof b||t instanceof Fr||t instanceof Er||t instanceof Ur||t instanceof Sr)}function Kr(t,e,n){if(!Qr(n)||!vr(n)){var r=yr(n);throw e.Tc("an object"===r?t+" a custom object":t+" "+r)}}function $r(t,e){if(e instanceof Pr)return e.uc;if("string"==typeof e)return Yr(t,e);throw new p(f.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(Mr)>=0)throw new p(f.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Pr.bind.apply(Pr,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new p(f.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 p(f.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===f.RESOURCE_EXHAUSTED?(ve(e.toString()),ve("Using maximum backoff delay to prevent overloading the backend."),this.Na.Vr()):e&&e.code===f.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 p(f.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 a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}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 a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,a.a_=!1,a.lastStreamToken=S.ht,a}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=S.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(be(!!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 be(!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===f.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===f.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 p(f.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,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return n=_e(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(),a=new Map,o.forEach((function(t){var e=n.serializer.gi(t);a.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=a.get(t.toString());be(!!e),s.push(e)})),s)]}}))}))}(this.w_,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof bt||t instanceof mt?n.g_(t):me()})),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 x(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=_e(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 mt)e=t.version;else{if(!(t instanceof bt))throw me();e=_.min()}var n=this.I_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new p(f.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(_.min()))throw new p(f.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_?(ve(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 a=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(a,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=_e(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=_e(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(_.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(S.ht,n.Ee)),e.al(t);var r=new At(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=Se.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!==f.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 ai(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.t()&&(r+="_"+e.uid),r}function si(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),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new p(i.error.code,i.error.message)),o?new t(e,n,i.state,a):(ve("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 p(r.error.code,r.error.message)),i?new t(e,r.state,o):(ve("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=$t(),a=0;i&&a<r.activeTargetIds.length;++a)i=I(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new t(e,o):(ve("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):(ve("SharedClientState","Failed to parse online state: "+e),null)},t}(),fi=function(){function t(){this.activeTargetIds=$t()}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}(),pi=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 Nt(Ce),this.ho=!1,this.$l=[],!t.zh(this.platform))throw new p(f.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var a=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 fi),this.xl=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.Ll=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.Ol=new RegExp("^firestore_targets_"+a+"_(\\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,a,s,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)))&&(a=li.yl(r,o))&&(this.Nl=this.Nl.Ae(a.clientId,a));for(this.ql(),(s=this.storage.getItem(this.Bl))&&(u=this.Ul(s))&&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(si(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(si(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 ve("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,a,s;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&&(a=this.Ul(t.newValue)))return[2,this.Ql(a)]}else t.key===this.Ml&&(s=function(t){var e=je.dr;if(null!=t)try{var n=JSON.parse(t);be("number"==typeof n),e=n}catch(t){ve("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(t.newValue))!==je.dr&&this.ur(s)}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=ai(this.persistenceKey,this.currentUser,t);this.setItem(i,r.bl())},t.prototype.Yl=function(t){var e=ai(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=si(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),a=[],s=[];return o.forEach((function(t){i.has(t)||a.push(t)})),i.forEach((function(t){o.has(t)||s.push(t)})),this.ul.wd(a,s).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=$t();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),di=function(){function t(){this.Id=new fi,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 fi,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},vi=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=Qt(),this.ns=Qt(),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,a=i,s=!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 mt?e:null;h&&(h=n.query.matches(h)?h:null);var f=!!l&&n.ns.has(l.key),p=!!h&&(h.At||n.ns.has(h.key)&&h.hasCommittedMutations),d=!1;l&&h?l.data().isEqual(h.data())?f!==p&&(r.track({type:3,doc:h}),d=!0):n.bd(l,h)||(r.track({type:2,doc:h}),d=!0,(u&&n.query.se(h,u)>0||c&&n.query.se(h,c)<0)&&(s=!0)):!l&&h?(r.track({type:0,doc:h}),d=!0):l&&!h&&(r.track({type:1,doc:l}),d=!0,(u||c)&&(s=!0)),d&&(h?(a=a.add(h),o=p?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.oe()||this.query.ae())for(;a.size>this.query.limit;){var l=this.query.oe()?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{Vd:a,yd:r,vd:s,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 me()}};return n(t)-n(e)}(t.type,e.type)||r.query.se(t.doc,e.doc)})),this.Sd(n);var a=e?this.Dd():[],s=0===this.Pd.size&&this.fs?1:0,u=s!==this.md;return this.md=s,0!==o.length||u?{snapshot:new Xt(this.query,t.Vd,i,o,t.ns,0===s,u,!1),Cd:a}:{Cd:a}},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=Qt(),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 vi(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=Qt();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}(),mi=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!T(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}(),bi=function(t,e,n){this.query=t,this.targetId=e,this.view=n},_i=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 Pe((function(t){return t.canonicalId()})),this.zd=new Map,this.Hd=[],this.Yd=new Nt(x.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,a,s,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),a=o.pd(r.documents),s=te.ds(e,n&&"Offline"!==this.onlineState),u=o.On(a,this.sf,s),this.rf(e,u.Cd),c=new bi(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=Qn(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new mi(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&&(be(t.Ts.size+t.Es.size+t.ws.size<=1),t.Ts.size>0?r.Ud=!0:t.Es.size>0?be(r.Ud):t.ws.size>0&&(be(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,a,s,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 Nt(x.N)).Ae(r,new bt(r,_.min())),a=Qt().add(r),s=new Jt(_.min(),new Map,new Lt(Ce),o,a),[4,this.Mu(s)]):[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=Qn(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 p(f.CANCELLED,t))}))})),this.tf.clear()},t.prototype.af=function(t,e){var n=this.Zd[this.currentUser.s()];n||(n=new Nt(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 vi?(ge("SyncEngine","Document no longer in limbo: "+i.key),this.Xd.vh(i.key,t),this.Xd.Ch(i.key)||this.wf(i.key)):me()}},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 _i(t)),this.Yd=this.Yd.Ae(t,e),this.Qd.listen(new At(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,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],o=[],this.Gd.forEach((function(i,s){o.push(Promise.resolve().then((function(){var e=s.view.pd(t);return e.vd?a.M_.Wu(s.query,!1).then((function(t){return s.view.pd(t.documents,e)})):e})).then((function(t){var i=e&&e.as.get(s.targetId),o=s.view.On(t,a.sf,i);if(a.rf(s.targetId,o.Cd),o.snapshot){a.sf&&a.Wd.sd(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Ne.ar(s.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 Qt().add(e.key);var n=Qt(),r=this.zd.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var a=this.Gd.get(o[i]);n=n.He(a.view.gd)}return n},t}(),Ci=function(t){function e(e,n,r,i,o,a){var s=this;return(s=t.call(this,e,n,r,i,o,a)||this).M_=e,s.mf=void 0,s}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)):me(),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,a,s,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]:(a=[],s=Promise.resolve(),this.zd.forEach((function(t,e){u.Wd.td(e)?a.push(e):s=s.then((function(){return u.hf(e),u.M_.Qu(e,!0)})),u.Qd.ol(e)})),[4,s]);case 4:return i.sent(),[4,this.Vf(a,!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 Nt(x.N)},e.prototype.Vf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c,l,h,f,p;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?(s=void 0,(u=this.zd.get(a=o[r]))&&0!==u.length?[4,this.M_.Uu(u[0].ee())]:[3,7]):[3,13];case 2:s=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:(f=i.sent()).snapshot&&n.push(f.snapshot),i.label=5;case 5:return c++,[3,3];case 6:return[3,11];case 7:return[4,this.M_.Hu(a)];case 8:return p=i.sent(),[4,this.M_.Uu(p)];case 9:return s=i.sent(),[4,this.nf(this.pf(p),a,!1)];case 10:i.sent(),i.label=11;case 11:e.push(s),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:me(),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,a,s,u,c,l,h,f=this;return i.__generator(this,(function(p){switch(p.label){case 0:if(!this.mf)return[3,10];n=0,r=t,p.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 a=p.sent(),[4,this.M_.Uu(a)];case 3:return s=p.sent(),[4,this.nf(this.pf(a),s.targetId,!1)];case 4:p.sent(),this.Qd.listen(s),p.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(){f.Qd.ol(t),f.hf(t)})).catch(nr)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},c=this,l=0,h=e,p.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:p.sent(),p.label=9;case 9:return l++,[3,7];case 10:return[2]}}))}))},e}(wi),ki=function(){this.yf=void 0,this.bf=[]},Oi=function(){function t(t){this.ul=t,this.vf=new Pe((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,a,s;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 ki),!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 a=i.sent(),s=Qn(a,"Initialization of query '"+t.query+"' failed"),[2,void t.onError(s)];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 a=0,s=o.bf;a<s.length;a++)s[a].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}(),xi=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}(),Ei=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(_.min())?this.Uf(t,e):this.qf.Yn(t,r).next((function(o){var s=i.Qf(e,o);return(e.oe()||e.ae())&&i.vd(e.Bt,s,r,n)?i.Uf(t,e):(de()<=a.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 s.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 mt&&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 de()<=a.LogLevel.DEBUG&&ge("IndexFreeQueryEngine","Using full collection scan to execute query:",e.toString()),this.qf.Zn(t,e,_.min())},t}(),Pi=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 Te.resolve(0===this.Wn.length)},t.prototype.Yo=function(t,e,n,r){var i=this.Wf;this.Wf++;var o=new Me(i,e,n,r);this.Wn.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.jf=this.jf.add(new ir(u.key,i)),this.jn.Dr(t,u.key.path.M())}return Te.resolve(o)},t.prototype.Jo=function(t,e){return Te.resolve(this.Kf(e))},t.prototype.Zo=function(t,e){var n=this.Gf(e+1),r=n<0?0:n;return Te.resolve(this.Wn.length>r?this.Wn[r]:null)},t.prototype.ta=function(){return Te.resolve(0===this.Wn.length?-1:this.Wf-1)},t.prototype.ea=function(t){return Te.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)})),Te.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)}))})),Te.resolve(this.zf(r))},t.prototype.nr=function(t,e){var n=e.path,r=n.length+1,i=n;x.et(i)||(i=i.child(""));var o=new ir(new x(i),0),a=new Lt(Ce);return this.jf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===r&&(a=a.add(t.hc)),!0)}),o),Te.resolve(this.zf(a))},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;be(0===this.Hf(e.batchId,"removed")),this.Wn.shift();var r=this.jf;return Te.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 Te.resolve(e.isEqual(r&&r.key))},t.prototype.ra=function(t){return Te.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}(),Mi=function(){function t(t,e){this.jn=t,this.Yf=e,this.docs=new Nt(x.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,a=this.Yf(e);return this.docs=this.docs.Ae(r,{xr:e,size:a,readTime:n}),this.size+=a-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 Te.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)})),Te.resolve(r)},t.prototype.Zn=function(t,e,n){for(var r=Ht(),i=new x(e.path.child("")),o=this.docs.ve(i);o.$e();){var a=o.Ne(),s=a.value,u=s.xr,c=s.readTime;if(!e.path.q(a.key.path))break;c.S(n)<=0||u instanceof mt&&e.matches(u)&&(r=r.Ae(u.key,u))}return Te.resolve(r)},t.prototype.Jf=function(t,e){return Te.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Yr=function(e){return new t.Jr(this)},t.prototype.Zr=function(t){return Te.resolve(this.size)},t}();Mi.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)})),Te.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}(Ae);var Si=function(){function t(t){this.persistence=t,this.Xf=new Pe((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=_.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)})),Te.resolve()},t.prototype._h=function(t){return Te.resolve(this.lastRemoteSnapshotVersion)},t.prototype.lh=function(t){return Te.resolve(this.Zf)},t.prototype.oh=function(t){return this.highestTargetId=this.eT.next(),Te.resolve(this.highestTargetId)},t.prototype.dh=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Zf&&(this.Zf=e),Te.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,Te.resolve()},t.prototype.wh=function(t,e){return this.Th(e),Te.resolve()},t.prototype.Ih=function(t,e){return this.Xf.delete(e.target),this.tT.ic(e.targetId),this.targetCount-=1,Te.resolve()},t.prototype.Ah=function(t,e,n){var r=this,i=0,o=[];return this.Xf.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.Xf.delete(a),o.push(r.Rh(t,s.targetId)),i++)})),Te.vn(o).next((function(){return i}))},t.prototype.Vh=function(t){return Te.resolve(this.targetCount)},t.prototype.gh=function(t,e){var n=this.Xf.get(e)||null;return Te.resolve(n)},t.prototype.ph=function(t,e,n){return this.tT.tc(e,n),Te.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))})),Te.vn(i)},t.prototype.Rh=function(t,e){return this.tT.ic(e),Te.resolve()},t.prototype.Sh=function(t,e){var n=this.tT.rc(e);return Te.resolve(n)},t.prototype.Ch=function(t,e){return Te.resolve(this.tT.Ch(e))},t}(),Ti=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 Si(this),this.jn=new ze,this.Qn=new Mi(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 Pi(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 Ai(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 Te.Sn(Object.values(this.sT).map((function(n){return function(){return n.Ch(t,e)}})))},t}(),Ai=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 me()},enumerable:!0,configurable:!0}),t.prototype.yh=function(t,e,n){return this.oT.yh(n,e),this.cT.delete(n),Te.resolve()},t.prototype.vh=function(t,e,n){return this.oT.vh(n,e),this.cT.add(n),Te.resolve()},t.prototype.Uo=function(t,e){return this.cT.add(e),Te.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 Te.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 Te.Sn([function(){return Te.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.",Ri=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 Oi(this.ul)},t.prototype.TT=function(t){return null},t.prototype.ET=function(t){return new tr(this.persistence,new Ei,t.mT)},t.prototype.dT=function(t){if(t.VT.PT)throw new p(f.FAILED_PRECONDITION,Di);return new Ti(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 di},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 p(f.FAILED_PRECONDITION,Di)},t}(),Ni=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 Ei,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 pi&&(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=sn.Mo(t.pT),n=t.platform.Cc(t.pT.ii);return new sn(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(!pi.zh(t.platform))throw new p(f.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=sn.Mo(t.pT);return new pi(t.Ra,t.platform,e,t.clientId,t.mT)}return new di},e.prototype.clearPersistence=function(t){var e=sn.Mo(t);return sn.clearPersistence(e)},e}(Ri),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(a){if(!o)return o=!0,ge("FirestoreClient","Initializing. user=",a.uid),n.bT(t,e,a,i).then(r.resolve,r.reject);n.Ra.lo((function(){return n.gl(a)}))})),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,a,s,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(),a=this.platform.Cc(this.pT.ii),s=function(t,e,n){return new ei(t,e,n)}(o,this.credentials,a),[4,t.initialize({Ra:this.Ra,pT:this.pT,platform:this.platform,w_:s,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 Ri,{PT:!1},n,r))];case 4:return[2]}}
1))}))},t.prototype.DT=function(t){return"FirebaseError"===t.name?t.code===f.FAILED_PRECONDITION||t.code===f.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 p(f.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 xi(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 mt?e.resolve(n):n instanceof bt?e.resolve(null):e.reject(new p(f.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=Qn(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,a,s,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),a=r.On(o,!1),e.resolve(a.snapshot),[3,3];case 2:return s=i.sent(),u=Qn(s,"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 Er(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 me()}},t.prototype.WT=function(t){var e=this,n={};return P(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(R(t));default:return null}},t.prototype.OT=function(t){var e=q(t),n=new b(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.qT=function(t){var e=C.K(t);be(he(e));var n=new Ee(e.get(1),e.get(3)),r=new x(e.k(5));return n.isEqual(this.ii)||ve("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 p(f.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,fr("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(br("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","ignoreUndefinedProperties"]),fr("settings","object","credentials",t.credentials),this.credentials=t.credentials,fr("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),fr("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?ve("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&ve("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,fr("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Zn.uu;else{if(t.cacheSizeBytes!==Vi&&t.cacheSizeBytes<Zn.au)throw new p(f.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Zn.au);this.cacheSizeBytes=t.cacheSizeBytes}fr("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 Ri),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 a=e;this.jT=a,this.mc=t.HT(a),this.YT=a.name,this.JT=new v(n)}else{var s=e;if(!s.projectId)throw new p(f.INVALID_ARGUMENT,"Must provide projectId");this.mc=new Ee(s.projectId,s.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){ar("Firestore.settings",arguments,1),cr("Firestore.settings","object",1,t);var e=new Bi(t);if(this.zT&&!this.ZT.isEqual(e))throw new p(f.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 be(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new m(e,t.V||"0");case"provider":return t.sE;default:throw new p(f.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 p(f.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&&ve("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 p(f.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 p(f.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 me()}});return this.zT.Ff(n),function(){n.kT(),e.zT.Nf(n)}},t.prototype.GT=function(){return this.zT||this.iE(new Ri,{PT:!1}),this.zT},t.prototype.nE=function(){return new xe(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(fe.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 p(f.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e=t.options.projectId;if(!e||"string"!=typeof e)throw new p(f.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Ee(e)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.jT)throw new p(f.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 ar("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 ar("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(ar("Firestore.collectionGroup",arguments,1),cr("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new p(f.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.GT(),new $i(new Ct(C.G,t),this)},t.prototype.runTransaction=function(t){var e=this;return ar("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(de()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.ERROR:return"error";case a.LogLevel.SILENT:return"silent";case a.LogLevel.WARN:return"warn";case a.LogLevel.INFO:return"info";case a.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){ar("Firestore.setLogLevel",arguments,1),dr("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),pe.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;ar("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 me();var r=t[0];if(r instanceof bt)return new Qi(e.uE,n.Pc,null,!1,!1,n.Vc);if(r instanceof mt)return new Qi(e.uE,n.Pc,r,!1,!1,n.Vc);throw me()}))},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],a=i[1],s=n.merge||n.mergeFields?this.uE.tE.$c(a,o,n.mergeFields):this.uE.tE.Fc(a,o);return this.cE.set(r.Pc,s),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof e||e instanceof Pr?(sr("Transaction.update",arguments,3),r=eo("Transaction.update",t,this.uE),i=this.uE.tE.Mc("Transaction.update",e,n,o)):(ar("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){ar("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],a=i[1],s=n.merge||n.mergeFields?this.uE.tE.$c(a,o,n.mergeFields):this.uE.tE.Fc(a,o);return this._E=this._E.concat(s.gc(r.Pc,ot.ft())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.dE(),"string"==typeof e||e instanceof Pr?(sr("WriteBatch.update",arguments,3),r=eo("WriteBatch.update",t,this.uE),i=this.uE.tE.Mc("WriteBatch.update",e,n,o)):(ar("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){ar("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 p(f.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 p(f.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.j()+" has "+t.length);return new e(new x(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(ar("DocumentReference.collection",arguments,1),cr("DocumentReference.collection","non-empty string",1,t),!t)throw new p(f.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 _r("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 Pr?(sr("DocumentReference.update",arguments,2),n=this.firestore.tE.Mc("DocumentReference.update",t,e,r)):(ar("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 ar("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])||(br("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),fr("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 Qi(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 Qi(e.firestore,e.Pc,t,!0,t instanceof mt&&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 p(f.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?e(new p(f.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}(),Qi=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 Ki(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($r("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 _r("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}(),Ki=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}(Qi),$i=function(){function t(t,e,n){this.RE=t,this.firestore=e,this.Vc=n}return t.prototype.where=function(e,n,r){ar("Query.where",arguments,3),mr("Query.where",3,r);var i,o=dr("Query.where",["<","<=","==",">=",">","array-contains","in","array-contains-any"],2,n),a=$r("Query.where",e);if(a.Y()){if("array-contains"===o||"array-contains-any"===o)throw new p(f.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o){this.AE(r,o);for(var s=[],u=0,c=r;u<c.length;u++){var l=c[u];s.push(this.mE(l))}i={arrayValue:{values:s}}}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=kt.create(a,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 p(f.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}if(null!==this.RE.startAt)throw new p(f.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.RE.endAt)throw new p(f.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=$r("Query.orderBy",e),o=new Tt(i,r);return this.VE(o),new t(this.RE.zt(o),this.firestore,this.Vc)},t.prototype.limit=function(e){return ar("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 ar("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];sr("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];sr("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];sr("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];sr("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 _r("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(mr(t,1,e),e instanceof Qi){if(n.length>0)throw new p(f.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var i=e;if(!i.exists)throw new p(f.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 a=t.field(o.field);if(D(a))throw new p(f.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===a){var s=o.field.j();throw new p(f.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+s+"' (used as the orderBy) does not exist.")}n.push(a)}}return new St(n,e)},t.prototype.yE=function(t,e,n){var r=this.RE.Ot;if(e.length>r.length)throw new p(f.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 a=e[o];if(r[o].field.Y()){if("string"!=typeof a)throw new p(f.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof a);if(!this.RE._e()&&-1!==a.indexOf("/"))throw new p(f.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 '"+a+"' contains a slash.");var s=this.RE.path.child(C.K(a));if(!x.et(s))throw new p(f.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 '"+s+"' is not because it contains an odd number of segments.");var u=new x(s);i.push(W(this.firestore.mc,u))}else{var c=this.firestore.tE.xc(t,a);i.push(c)}}return new St(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])||(br("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),fr("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(),a=o.listen(this.RE,i,t);return function(){i.kT(),o.ol(a)}},t.prototype.bE=function(t){if(t.ae()&&0===t.Ot.length)throw new p(f.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 p(f.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 p(f.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 p(f.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(!x.et(e))throw new p(f.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 x(e))}if(t instanceof Wi)return W(this.firestore.mc,t.Pc);throw new p(f.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 p(f.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new p(f.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new p(f.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 p(f.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.PE=function(t){if(t instanceof kt){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 p(f.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 a=this.RE.Kt();null!==a&&this.vE(t.field,a)}else if(i||r){var s=null;if(i&&(s=this.RE.ce(n)),null===s&&r&&(s=this.RE.ce(e)),null!=s)throw new p(f.INVALID_ARGUMENT,s===t.op?"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter.":"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+s.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 p(f.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 $i(this.SE,this.uE,this.Vc)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(br("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),fr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.DE.hs)throw new p(f.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 Ki(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 Ki(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),a=-1,s=-1;return 0!==e.type&&(a=o.indexOf(e.doc.key),o=o.delete(e.doc.key)),1!==e.type&&(s=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:no(e.type),doc:i,oldIndex:a,newIndex:s}}))}(this.uE,e,this.DE,this.Vc),this.FE=e),this.CE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("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 Ki(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 p(f.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 x(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){ar("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}($i);function Xi(t,e){if(void 0===e)return{merge:!1};if(br(t,e,["merge","mergeFields"]),fr(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 p(f.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 p(f.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 Pr}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new p(f.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?{}:(br(t,e,["serverTimestamps"]),pr(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function to(t,e){lr(t,"object",1,e),e&&(br(t,e,["source"]),pr(t,0,"source",e.source,["default","server","cache"]))}function eo(t,e,n){if(e instanceof Ur){if(e.firestore!==n)throw new p(f.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw _r(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 me()}}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 p(f.INVALID_ARGUMENT,t)}return n.prototype=t.prototype,Object.assign(n,t),n}var oo=io(qi,"Use firebase.firestore() instead."),ao=io(zi,"Use firebase.firestore().runTransaction() instead."),so=io(Hi,"Use firebase.firestore().batch() instead."),uo=io(Wi,"Use firebase.firestore().doc() instead."),co=io(Qi),lo=io(Ki),ho=io($i),fo=io(Yi),po=io(Zi,"Use firebase.firestore().collection() instead."),go=io(Nr,"Use FieldValue.<field>() instead."),vo=io(Er,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),yo={Firestore:oo,GeoPoint:Fr,Timestamp:b,Blob:vo,Transaction:ao,WriteBatch:so,DocumentReference:uo,DocumentSnapshot:co,Query:ho,QueryDocumentSnapshot:lo,QuerySnapsh
1ot:fo,CollectionReference:po,FieldPath:Pr,FieldValue:go,setLogLevel:qi.setLogLevel,CACHE_SIZE_UNLIMITED:Vi},mo=function(){function t(){}return t.prototype.U_=function(t){},t.prototype.Vo=function(){},t}(),bo=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}(),_o=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,ko=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,a){var s=new c.XhrIo;s.listenOnce(c.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var e=s.getResponseJson();ge("Connection","XHR received:",JSON.stringify(e)),o(e);break;case c.ErrorCode.TIMEOUT:ge("Connection",'RPC "'+t+'" timed out'),a(new p(f.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(ge("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(f).indexOf(e)>=0?e:f.UNKNOWN}(r.status);a(new p(i,r.message))}else a(new p(f.UNKNOWN,"Server responded with status "+s.getStatus()))}else ge("Connection",'RPC "'+t+'" failed'),a(new p(f.UNAVAILABLE,"Connection failed."));break;default:me()}}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),s.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),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(o.httpHeadersOverwriteParam="$httpHeaders");var u=n.join("");ge("Connection","Creating WebChannel: "+u+" "+o);var h=r.createWebChannel(u,o),d=!1,g=!1,v=new _o({qE:function(t){g?ge("Connection","Not sending because WebChannel is closed:",t):(d||(ge("Connection","Opening WebChannel transport."),h.open(),d=!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"),v.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(pe.logLevel<=a.LogLevel.WARN){var r=e.map(ye);pe.warn.apply(pe,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}("Connection","WebChannel transport errored:",t),v.GE(new p(f.UNAVAILABLE,"The operation could not be completed")))})),y(c.WebChannel.EventType.MESSAGE,(function(t){var e;if(!g){var n=t.data[0];be(!!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 Rt(e)}(i),a=r.message;void 0===o&&(o=f.INTERNAL,a="Unknown error status: "+i+" with message "+r.message),g=!0,v.GE(new p(o,a)),h.close()}else ge("Connection","WebChannel received:",n),v.zE(n)}})),setTimeout((function(){v.KE()}),0),v},t.prototype.JE=function(t){return this.HE+"/v1/projects/"+this.ii.projectId+"/databases/"+this.ii.database+"/documents:"+wo[t]},t}();function Oo(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){return new qi(t,e,new Ni)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},yo)))}(t),t.registerVersion("@firebase/firestore","1.15.0")}fe.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 ko(t))},t.prototype.gT=function(){return bo.zh()?new bo:new mo},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}())),Oo(o),e.__PRIVATE_registerFirestore=Oo},"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,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),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"),a=n("UnBK"),s=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=s(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=[a,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=s(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,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0;t.exports=(s?s.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,void 0);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,void 0):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){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:function(){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}},changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,o=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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 f=/(^|[^\[])\^/g,p=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},v=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(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 _=function(t,e){if(e){if(i.test(t))return t.replace(o,c)}else if(a.test(t))return t.replace(s,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},k=r.defaults,O=b,x=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},E=_;function P(t,e,n){var r=e.href,i=e.title?E(e.title):null;return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:t[1]}:{type:"image",raw:n,text:E(t[1]),href:r,title:i}}var M=function(){function t(t){this.options=t||k}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:O(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:x(e[1].replace(/^ *| *\| *$/g,"")),al
vendor: 27,303 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]=x(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,a,s,u,c=e[0],l=e[2],h=l.length>1,f={type:"list",raw:c,ordered:h,start:h?+l:"",loose:!1,items:[]},p=e[0].match(this.rules.block.item),d=!1,g=p.length,v=0;v<g;v++)c=n=p[v],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"),"")),v!==g-1&&(i=this.rules.block.bullet.exec(p[v+1])[0],(l.length>1?1===i.length:i.length>1||this.options.smartLists&&i!==l)&&(o=p.slice(v+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-o.length),v=g-1)),a=d||/\n\n(?!\s*$)/.test(n),v!==g-1&&(d="\n"===n.charAt(n.length-1),a||(a=d)),a&&(f.loose=!0),u=void 0,(s=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:c,task:s,checked:u,loose:a,text:n});return f}},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]):E(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:x(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]=x(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:E(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]):E(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 a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a?(i=a[1],o=a[3]):o=""}else o=e[3]?e[3].slice(1,-1):"";return P(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 P(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=E(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=E(this.options.mangle?e(i[1]):i[1])):n=E(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=E(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=E(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]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),S={exec:function(){}},T=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(f,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},A=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:S,table:S,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=T(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=T(I.item,"gm").replace(/bull/g,I.bullet).getRegex(),I.list=T(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=T(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=T(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=T(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=A({},I),I.gfm=A({},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=T(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=T(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=A({},I.normal,{html:T("^ *(?: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:S,paragraph:T(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:S,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:S,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~"};D.em=T(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=T(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=T(D.tag).replace("comment",I._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=T(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=T(D.reflink).replace("label",D._label).getRegex(),D.normal=A({},D),D.pedantic=A({},D.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=A({},D.normal,{escape:T(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=T(D.gfm.url,"i").replace("email",D.gfm._extended_email).getRegex(),D.breaks=A({},D.gfm,{br:T(D.br).replace("{2,}","*").getRegex(),text:T(D.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var R={block:I,inline:D},N=r.defaults,j=R.block,F=R.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||N,this.options.tokenizer=this.options.tokenizer||new M,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,a;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):((a=e[e.length-1]).raw+="\n"+r.raw,a.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):((a=e[e.length-1]).raw+="\n"+r.raw,a.text+="\n"+r.text);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return e},i.inline=function(t){var e,n,r,i,o,a,s=t.length;for(e=0;e<s;e++)switch((a=t[e]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,n=0;n<i;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(i=a.cells.length,n=0;n<i;n++)for(o=a.cells[n],a.tokens.cells[n]=[],r=0;r<o.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(o[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,n=0;n<i;n++)this.inline(a.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}}}])&&t(n,r),e}(),B=r.defaults,q=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!d.test(n)&&(n=function(t,e){g[" "+t]||(g[" "+t]=v.test(t)?t+"/":b(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(m,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},z=_,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}(),Q=r.defaults,K=w,$=function(){function t(t){this.options=t||Q,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,a,s,u,c,l,h,f,p,d,g,v,y,m,b,_="",w=t.length;for(n=0;n<w;n++)switch((h=t[n]).type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(h.tokens),h.depth,K(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=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="",a=(s=h.tokens.cells[r]).length,i=0;i<a;i++)u+=this.renderer.tablecell(this.parseInline(s[i]),{header:!1,align:h.align[i]});l+=this.renderer.tablerow(u)}_+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(h.tokens),_+=this.renderer.blockquote(l);continue;case"list":for(f=h.ordered,p=h.start,d=h.loose,o=h.items.length,l="",r=0;r<o;r++)y=(v=h.items[r]).checked,m=v.task,g="",v.task&&(b=this.renderer.checkbox(y),d?v.tokens.length>0&&"text"===v.tokens[0].type?(v.tokens[0].text=b+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=b+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(v.tokens,d),l+=this.renderer.listitem(g,m,y);_+=this.renderer.list(l,f,p);continue;case"html":_+=this.renderer.html(h.text);continue;case"paragraph":_+=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);_+=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 _},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 a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return i},t}(),Y=C,Z=_,X=r.getDefaults,J=r.changeDefaults,tt=r.defaults;function et(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),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")}(e=Y({},et.defaults,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=$.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 a=0;return et.walkTokens(r,(function(t){"code"===t.type&&(a++,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==--a&&o()})))})),void(0===a&&o())}try{var s=V.lex(t,e);return e.walkTokens&&et.walkTokens(s,e.walkTokens),$.parse(s,e)}catch(u){if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+Z(u.message+"",!0)+"</pre>";throw u}}return et.options=et.setOptions=function(t){return Y(et.defaults,t),J(et.defaults),et},et.getDefaults=X,et.defaults=tt,et.use=function(t){var e=Y({},t);if(t.renderer&&function(){var n=et.defaults.renderer||new H,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=t.renderer[e].apply(n,o);return!1===s&&(s=r.apply(n,o)),s}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=et.defaults.tokenizer||new M,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=t.tokenizer[e].apply(n,o);return!1===s&&(s=r.apply(n,o)),s}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=et.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}et.setOptions(e)},et.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 a,s=n(o.tokens.header);!(a=s()).done;)et.walkTokens(a.value,e);for(var u,c=n(o.tokens.cells);!(u=c()).done;)for(var l,h=n(u.value);!(l=h()).done;)et.walkTokens(l.value,e);break;case"list":et.walkTokens(o.items,e);break;default:o.tokens&&et.walkTokens(o.tokens,e)}}},et.Parser=$,et.parser=$.parse,et.Renderer=H,et.TextRenderer=W,et.Lexer=V,et.lexer=V.lex,et.Tokenizer=M,et.Slugger=G,et.parse=et,et}()},"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(sr
1c)_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 a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n("tQ2B")),s),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)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(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){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u},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 a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},LYNF:function(t,e,n){"use strict";var r=n("OH9c");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,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";t.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 a=[];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)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");
1-1!==s&&(t=t.slice(0,s)),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 a=t[e];o.call(t,e)&&i(a,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,a=Object.getOwnPropertySymbols;t.exports=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i},NKxu:function(t,e,n){var r=n("lSCD"),i=n("E2jh"),o=n("GoyQ"),a=n("3Fdi"),s=/^\[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:s).test(a(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"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a 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"),a=n("WwFo"),s=n("Dw+G"),u=n("5Tg0"),c=n("Q1l4"),l=n("VOtZ"),h=n("EEGq"),f=n("qZTm"),p=n("G6z8"),d=n("QqLw"),g=n("yHx3"),v=n("wrZu"),y=n("+iFO"),m=n("Z0cm"),b=n("DSRE"),_=n("zEVN"),w=n("GoyQ"),C=n("1+5i"),k=n("7GkX"),O=n("mTTR"),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,t.exports=function t(e,n,E,P,M,S){var T,A=1&n,I=2&n,D=4&n;if(E&&(T=M?E(e,P,M,S):E(e)),void 0!==T)return T;if(!w(e))return e;var R=m(e);if(R){if(T=g(e),!A)return c(e,T)}else{var N=d(e),j="[object Function]"==N||"[object GeneratorFunction]"==N;if(b(e))return u(e,A);
1if("[object Object]"==N||"[object Arguments]"==N||j&&!M){if(T=I||j?{}:y(e),!A)return I?h(e,s(T,e)):l(e,a(T,e))}else{if(!x[N])return M?e:{};T=v(e,N,A)}}S||(S=new r);var F=S.get(e);if(F)return F;S.set(e,T),C(e)?e.forEach((function(r){T.add(t(r,n,E,r,e,S))})):_(e)&&e.forEach((function(r,i){T.set(i,t(r,n,E,i,e,S))}));var L=R?void 0:(D?I?p:f:I?O:k)(e);return i(L||e,(function(r,i){L&&(r=e[i=r]),o(T,i,t(r,n,E,i,e,S))})),T}},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}},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}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,n,i,o,a,u,c,l,h,f,p,d){var g=e;if("function"==typeof c)g=c(n,g);else if(g instanceof Date)g=f(g);else if(null===g){if(o)return u&&!d?u(n,s.encoder):n;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||r.isBuffer(g))return u?[p(d?n:u(n,s.encoder))+"="+p(u(g,s.encoder))]:[p(n)+"="+p(String(g))];var v,y=[];if(void 0===g)return y;if(Array.isArray(c))v=c;else{var m=Object.keys(g);v=l?m.sort(l):m}for(var b=0;b<v.length;++b){var _=v[b];a&&null===g[_]||(y=Array.isArray(g)?y.concat(t(g[_],i(n,_),i,o,a,u,c,l,h,f,p,d)):y.concat(t(g[_],n+(h?"."+_:"["+_+"]"),i,o,a,u,c,l,h,f,p,d)))}return y};t.exports=function(t,e){var n=t,a=e?r.assign({},e):{};if(null!=a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?s.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,h="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,f="boolean"==typeof a.encode?a.encode:s.encode,p="function"==typeof a.encoder?a.encoder:s.encoder,d="function"==typeof a.sort?a.sort:null,g=void 0!==a.allowDots&&a.allowDots,v="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,y="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var m,b,_=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(m=b=a.filter);var w=[];if("object"!=typeof n||null===n)return"";var C=o[a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices"];m||(m=Object.keys(n)),d&&m.sort(d);for(var k=0;k<m.length;++k){var O=m[k];h&&null===n[O]||(w=w.concat(u(n[O],O,C,l,h,f?p:null,b,d,g,v,_,y)))}var x=w.join(c);return x.length>0?(!0===a.addQueryPrefix?"?":"")+x:""}},QcOe:function(t,e,n){var r=n("GoyQ"),i=n("6sVZ"),o=n("7Ix3"),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);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"),a=n("yGk4"),s=n("Of+w"),u=n("NykK"),c=n("3Fdi"),l=c(r),h=c(i),f=c(o),p=c(a),d=c(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&
1(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 f:return"[object Promise]";case p:return"[object Set]";case d: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";Object.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}(),a=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(a){if(n)return null;throw a}},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 a=r.__read(o.value,2),s=a[1],u=this.normalizeInstanceIdentifier(a[0]);try{var c=this.getOrInitializeService(u);s.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}(),s=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 a(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=s,e.Provider=a},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"],a=["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(a,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var s=i.concat(o).concat(a),u=Object.keys(e).filter((function(t){return-1===s.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"),a=n("JEQr");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(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||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(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"),a=n("+6XX"),s=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=a,u.prototype.set=s,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"),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.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=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.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"),a=n("DSRE"),s=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&&a(t),f=!n&&!l&&!h&&u(t),p=n||l||h||f,d=p?r(t.length,String):[],g=d.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||d.push(v);return d}},c6wG:function(t,e,n){var r=n("dD9F"),i=n("sEf8"),o=n("mdPL"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},dD9F:function(t,e,n){var r=n("NykK"),i=n("shjB"),o=n("ExA7"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[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"),a=n("pSRY"),s=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=a,u.prototype.set=s,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,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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"),a=n("gCq4"),s=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=a,c.prototype.has=s,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 a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?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,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").t
1ypes||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).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},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,u=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;null!==(a=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[s]=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 s="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),a=0;a<r.length;++a){var s,u,c=r[a],l=c.indexOf("]="),h=-1===l?c.indexOf("="):l+1;-1===h?(s=e.decoder(c,o.decoder),u=e.strictNullHandling?null:""):(s=e.decoder(c.slice(0,h),o.decoder),u=e.decoder(c.slice(h+1),o.decoder)),n[s]=i.call(n,s)?[].concat(n[s]).concat(u):u}return n}(t,n):t,u=n.plainObjects?Object.create(null):{},c=Object.keys(s),l=0;l<c.length;++l){var h=c[l],f=a(h,s[h],n);u=r.merge(u,f,n)}return r.compact(u)}},"oCl/":function(t,e,n){var r=n("CH3K"),i=n("LcsW"),o=n("MvSz"),a=n("0ycA");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a},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 a})),n.d(e,"__decorate",(function(){return s})),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 f})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return d})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return _}
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 k})),n.d(e,"__classPrivateFieldGet",(function(){return O})),n.d(e,"__classPrivateFieldSet",(function(){return x}));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 a(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 s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}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 a(t){try{u(r.next(t))}catch(e){o(e)}}function s(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(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function f(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function p(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 d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function v(){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],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(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){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(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 _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(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 k(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(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],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var i;n.r(e),n.d(e,"LogLevel",(function(){return a})),n.d(e,"Logger",(function(){return h})),n.d(e,"setLogLevel",(function(){return f})),n.d(e,"setUserLogHandler",(function(){return p}));var o=[],a=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}({}),s={debug:a.DEBUG,verbose:a.VERBOSE,info:a.INFO,warn:a.WARN,error:a.ERROR,silent:a.SILENT},u=a.INFO,c=((i={})[a.DEBUG]="log",i[a.VERBOSE]="log",i[a.INFO]="info",i[a.WARN]="warn",i[a.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(),a=c[e];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[a].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 a))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?s[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,a.DEBUG],t)),this._logHandler.apply(this,r([this,a.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,a.VERBOSE],t)),this._logHandler.apply(this,r([this,a.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,a.INFO],t)),this._logHandler.apply(this,r([this,a.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,a.WARN],t)),this._logHandler.apply(this,r([this,a.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,a.ERROR],t)),this._logHandler.apply(this,r([this,a.ERROR],t))},t}();function f(t){o.forEach((function(e){e.setLogLevel(t)}))}function p(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=s[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 s=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:a[n].toLowerCase(),message:s,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"),a=n("g7np"),s=n("w0Vi"),u=n("OTTw"),c=n("LYNF");t.exports=function(t){return new Promise((function(e,l){var h=t.data,f=t.headers;r.isFormData(h)&&delete f["Content-Type"];var p=new XMLHttpRequest;t.auth&&(f.Authorization="Basic "+btoa((t.auth.username||"")+":"+(t.auth.password||"")));var d=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),o(d,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null;i(e,l,{data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:t,request:p}),p=null}},p.onabort=function(){p&&(l(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){l(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(c(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=n("eqyj"),v=(t.withCredentials||u(d))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;v&&(f[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}
1)),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),l(t),p=null)})),void 0===h&&(h=null),p.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,a={};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(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},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"),a=n("zVF4"),s=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 a.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),f=new u.Logger("@firebase/app"),p=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_=a.deepCopy(t),this.container=new s.ComponentContainer(e.name),this._addComponent(new s.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){f.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}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var d=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 s=o.name;if("string"!=typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw l.create("duplicate-app",{appName:s});var u=new t(n,o,r);return e[s]=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|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(u.join(" "))}c(new s.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(!a.contains(e,t=t||"[DEFAULT]"))throw l.create("no-app",{appName:t});return e[t]}function c(s){var u,c,h=s.name;if(n.has(h))return f.debug("There were multiple attempts to register component "+h+"."),"PUBLIC"===s.type?r[h]:null;if(n.set(h,s),"PUBLIC"===s.type){var p=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!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[h]=p,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,s.multipleInstances?t:[])}}try{for(var d=o.__values(Object.keys(e)),g=d.next();!g.done;g=d.next())e[g.value]._addComponent(s)}catch(v){u={error:v}}finally{try{g&&!g.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}return"PUBLIC"===s.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}(p);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){a.deepExtend(e,t)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.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(a.isBrowser()&&void 0!==self.firebase){f.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&f.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=d.initializeApp;d.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a.isNode()&&f.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 m=d;!function(t,e){t.INTERNAL.registerComponent(new s.Component("platform-logger",(function(t){return new g(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.5",void 0),t.registerVersion("fire-js","")}(m),e.default=m,e.firebase=m},wrZu:function(t,e,n){var r=n("+K+b"),i=n("XYm9"),o=n("b2z7"),a=n("otv/"),s=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 s(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 a(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 Kn})),n.d(e,"EventType",(function(){return $n})),n.d(e,"WebChannel",(function(){return Yn})),n.d(e,"XhrIo",(function(){return Zn})),n.d(e,"createWebChannelTransport",(function(){return Qn}));var i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=a||{},s=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 f="closure_uid_"+(1e9*Math.random()>>>0),p=0;function d(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 v(t,e,n){return(v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?d: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 m=Date.now||function(){return+new Date};function b(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t}function _(){this.j=this.j,this.i=this.i}_.prototype.j=!1,_.prototype.da=function(){!this.j&&(this.j=!0,this.C(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,f)&&t[f]||(t[f]=++p)}(this)},_.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 k(t){return Array.prototype.concat.apply([],arguments)}function O(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 x(t){return/^[\s\xa0]*$/.test(t)}var E,P=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function M(t,e){return-1!=t.indexOf(e)}function S(t,e){return t<e?-1:t>e?1:0}t:{var T=s.navigator;if(T){var A=T.userAgent;if(A){E=A;break t}}E=""}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 R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function N(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<R.length;o++)n=R[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function j(t){return j[" "](t),t}j[" "]=u;var F,L,U=M(E,"Opera"),V=M(E,"Trident")||M(E,"MSIE"),B=M(E,"Edge"),q=B||V,z=M(E,"Gecko")&&!(M(E.toLowerCase(),"webkit")&&!M(E,"Edge"))&&!(M(E,"Trident")||M(E,"MSIE"))&&!M(E,"Edge"),H=M(E.toLowerCase(),"webkit")&&!M(E,"Edge");function W(){var t=s.document;return t?t.documentMode:void 0}t:{var G="",Q=(L=E,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(Q&&(G=Q?Q[1]:""),V){var K=W();if(null!=K&&K>parseFloat(G)){F=String(K);break t}}F=G}var $={};function Y(t){return function(t,e){var n=$;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=P(String(F)).split("."),r=P(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=S(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||S(0==a[2].length,0==s[2].length)||S(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}var Z=s.document&&V&&(W()||parseInt(F,10))||void 0,X=!V||9<=Number(Z),J=V&&!Y("9"),tt=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",u,e),s.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},b(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 at(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 st(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&&(st(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 a=lt(t,e,r,i);return-1<a?(e=t[a],n||(e.X=!1)):((e=new at(e,this.src,o,!!r,i)).X=n,t.pu
1sh(e)),e};var ht="closure_lm_"+(1e6*Math.random()|0),ft={};function pt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(Array.isArray(n)){for(var a=0;a<n.length;a++)t(e,n[a],r,i,o);return null}return r=wt(r),e&&e[it]?e.sa(n,r,h(i)?!!i.capture:!!i,o):dt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)pt(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):dt(t,e,n,!1,r,i)}function dt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=h(i)?!!i.capture:!!i;if(a&&!X)return null;var s=bt(t);if(s||(t[ht]=s=new ut(t)),(n=s.add(e,n,r,a,o)).proxy)return n;if(r=function(){var t=mt,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=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(vt(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(vt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=bt(e))?(ct(n,t),0==n.b&&(n.src=null,e[ht]=null)):st(t)}}}function vt(t){return t in ft?ft[t]:ft[t]="on"+t}function yt(t,e){var n=t.listener,r=t.aa||t.src;return t.X&&gt(t),n.call(r,e)}function mt(t,e){if(t.V)return!0;if(!X){if(!e)t:{e=["window","event"];for(var n=s,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 bt(t){return(t=t[ht])instanceof ut?t:null}var _t="__closure_events_fn_"+(1e9*Math.random()>>>0);function wt(t){return"function"==c(t)?t:(t[_t]||(t[_t]=function(e){return t.handleEvent(e)}),t[_t])}function Ct(){_.call(this),this.c=new ut(this),this.J=this,this.A=null}function kt(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 a=e[o];if(a&&!a.V&&a.capture==n){var s=a.listener,u=a.aa||a.src;a.X&&ct(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}b(Ct,_),Ct.prototype[it]=!0,(i=Ct.prototype).addEventListener=function(t,e,n,r){pt(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 a=0;a<n.length;a++)t(e,n[a],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(a=e.a[n],r,i,o))&&(st(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete e.a[n],e.b--))):e&&(e=bt(e))&&(n=e.a[n.toString()],e=-1,n&&(e=lt(n,r,i,o)),(r=-1<e?n[e]:null)&&gt(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;N(t=new et(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];i=kt(a,r,!0,t)&&i}if(i=kt(a=t.a=n,r,!0,t)&&i,i=kt(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=kt(a=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++)st(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 Ot=s.JSON.stringify;function xt(){this.b=this.a=null}var Et,Pt=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 St}),(function(t){t.reset()}),100);function Mt(){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 St(){this.next=this.b=this.a=null}function Tt(t){s.setTimeout((function(){throw t}),0)}function At(t,e){Et||function(){var t=s.Promise.resolve(void 0);Et=function(){t.then(Rt)}}(),It||(Et(),It=!0),Dt.add(t,e)}xt.prototype.add=function(t,e){var n=Pt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},St.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},St.prototype.reset=function(){this.next=this.b=this.a=null};var It=!1,Dt=new xt;function Rt(){for(var t;t=Mt();
1){try{t.a.call(t.b)}catch(n){Tt(n)}var e=Pt;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}It=!1}function Nt(t,e){Ct.call(this),this.b=t||1,this.a=e||s,this.f=v(this.Ua,this),this.g=m()}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=v(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=v(t.handleEvent,t)}return 2147483647<Number(e)?-1:s.setTimeout(t,e||0)}function Lt(t,e,n){_.call(this),this.f=null!=n?v(t,n):t,this.c=e,this.b=v(this.Pa,this),this.a=[]}function Ut(t){t.T=Ft(t.b,t.c),t.f.apply(null,t.a)}function Vt(t){_.call(this),this.b=t,this.a={}}b(Nt,Ct),(i=Nt.prototype).Z=!1,i.L=null,i.Ua=function(){if(this.Z){var t=m()-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=m())},i.C=function(){Nt.M.C.call(this),jt(this),delete this.a},b(Lt,_),(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&&(s.clearTimeout(this.T),this.T=null,this.ba=!1,this.a=[])},i.Pa=function(){this.T=null,this.ba&&(this.ba=!1,Ut(this))},b(Vt,_);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=pt(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)&&gt(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 Qt(t){et.call(this,"serverreachability",t)}function Kt(t){var e=Gt();e.dispatchEvent(new Qt(e,t))}function $t(t){et.call(this,"statevent",t)}function Yt(t){var e=Gt();e.dispatchEvent(new $t(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 s.setTimeout((function(){t()}),e)}b(Qt,et),b($t,et),b(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 ae(){et.call(this,"c")}function se(){}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 Nt(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}b(oe,et),b(ae,et),b(se,ee),re=new se;var ce=45e3,le={},he={};function fe(t,e,n){t.B=1,t.f=Re(Me(e)),t.j=n,t.F=!0,pe(t,null)}function pe(t,e){t.s=m(),ve(t),t.A=Me(t.f);var n=t.A,r=t.U;Array.isArray(r)||(r=[String(r)]),Qe(n.b,"t",r),t.w=0,t.a=Un(t.g,t.g.w?e:null),0<t.J&&(t.D=new Lt(v(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)),Kt(1)}function de(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||(_e(t),be(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 ve(t){t.P=m()+t.N,ye(t,t.N)}function ye(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Xt(v(t.Qa,t),e)}function me(t){t.h&&(s.clearTimeout(t.h),t.h=null)}function be(t){0==t.g.u||t.l||Rn(t.g,t)}function _e(t){me(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(v(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),!x(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 a=i[5];null!=a&&"number"==typeof a&&0<a&&(n.D=1.5*a);var s=n,u=t.a;if(u){var c=u.a?u.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var l=s.b;!l.a&&(M(c,"spdy")||M(c,"quic")||M(c,"h2"))&&(l.f=l.g,l.a=new Set,l.b&&(en(l,l.b),l.b=null))}if(s.s){var h=u.a?u.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(s.ha=h,De(s.v,s.s,h))}}n.u=3,n.c&&n.c.na();var f=t;if((s=n).ea=Ln(s,s.w?s.R:null,s.P),f.o){nn(s.b,f);var p=f,d=s.D;d&&p.setTimeout(d),p.h&&(me(p),ve(p)),s.a=f}else An(s);0<n.f.length&&Pn(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):On(n):"noop"!=i[0]&&n.c&&n.c.ma(i),n.m=0);Kt(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 ke(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 ke)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 Oe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];xe(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;)xe(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function xe(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==_n(t)?e.Ia():this.ya(t)},i.ya=function(t){try{if(t==this.a)t:{var e=_n(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||Kt(8==n||0>=r?3:2),me(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 a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!x(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.c=3,Yt(12),_e(this),be(this);break t}this.o=!0,we(this,u)}this.F?(de(this,e,o),q&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):we(this,o),4==e&&_e(this),this.b&&!this.l&&(4==e?Rn(this.g,this):(this.b=!1,ve(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Yt(12)):(this.c=0,Yt(13)),_e(this),be(this)}}}catch(c){}},i.Ra=function(){if(this.a){var t=_n(this.a),e=this.a.Y();this.w<e.length&&(me(this),de(this,t,e),this.b&&4!=t&&ve(this))}},i.cancel=function(){this.l=!0,_e(this)},i.Qa=function(){this.h=null;var t=m();0<=t-this.P?(2!=this.B&&(Kt(3),Yt(17)),_e(this),this.c=2,be(this)):ye(this,this.P-t)},(i=ke.prototype).I=function(){Oe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},i.K=function(){return Oe(this),this.a.concat()},i.get=function(t,e){return xe(this.b,t)?this.b[t]:e},i.set=function(t,e){xe(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 Ee=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Pe(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Pe){this.a=void 0!==e?e:t.a,Se(this,t.f),this.j=t.j,Te(this,t.c),Ae(this,t.h),this.g=t.g,e=t.b;var n=new ze;n.c=e.c,e.a&&(n.a=new ke(e.a),n.b=e.b),Ie(this,n),this.i=t.i}else t&&(n=String(t).match(Ee))?(this.a=!!e,Se(this,n[1]||"",!0),this.j=Ne(n[2]||""),Te(this,n[3]||"",!0),Ae(this,n[4]),this.g=Ne(n[5]||"",!0),Ie(this,n[6]||"",!0),this.i=Ne(n[7]||"")):(this.a=!!e,this.b=new ze(null,this.a))}function Me(t){return new Pe(t)}
vendor: 2,026 bytes, line 1
1function Se(t,e,n){t.f=n?Ne(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Te(t,e,n){t.c=n?Ne(e,!0):e}function Ae(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),Qe(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 Re(t){return De(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^m()).toString(36)),t}function Ne(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)}Pe.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 ke,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=Ke(t,e),xe(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,xe((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Oe(t)))}function Ge(t,e){return He(t),e=Ke(t,e),xe(t.a.b,e)}
1function Qe(t,e,n){We(t,e),0<n.length&&(t.c=null,t.a.set(Ke(t,e),O(n)),t.b+=n.length)}function Ke(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function $e(t,e){this.b=t,this.a=e}function Ye(t){this.g=t||Ze,t=s.PerformanceNavigationTiming?0<(t=s.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(s.ca&&s.ca.ua&&s.ca.ua()&&s.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=Ke(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},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=k(e,this.a.get(Ke(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=k(e,t[n])}return e},i.set=function(t,e){return He(this),this.c=null,Ge(this,t=Ke(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 a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}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()),a=o.next();!a.done;a=o.next())i=i.concat(a.value.i)}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return O(t.c)}function on(){}function an(){this.a=new on}function sn(t,e,n){var r=n||"";try{Ce(t,(function(t,n){var i=t;h(t)&&(i=Ot(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 s.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return s.JSON.parse(t,void 0)};var cn=s.JSON.parse;function ln(t){Ct.call(this),this.headers=new ke,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}b(ln,Ct);var hn="",fn=/^https?$/i,pn=["POST","PUT"];function dn(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,vn(t),mn(t)}function vn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function yn(t){if(t.b&&void 0!==a&&(!t.s[1]||4!=_n(t)||2!=t.S()))if(t.l&&4==_n(t))Ft(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==_n(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(Ee)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}i=!fn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<_n(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.S()+"]",vn(t)}}finally{mn(t)}}}function mn(t,e){if(t.a){bn(t);var n=t.a,r=t.s[0]?u:null;
1t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function bn(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(s.clearTimeout(t.m),t.m=null)}function _n(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 kn(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 an,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function On(t){if(xn(t),3==t.u){var e=t.H++,n=Me(t.v);De(n,"SID",t.B),De(n,"RID",e),De(n,"TYPE","terminate"),Sn(t,n),(e=new ue(t,e,void 0)).B=2,e.f=Re(Me(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(e.f.toString(),"")),!n&&s.Image&&((new Image).src=e.f,n=!0),n||(e.a=Un(e.g,null),e.a.$(e.f)),e.s=m(),ve(e)}Fn(t)}function xn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Dn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&s.clearTimeout(t.g),t.g=null)}function En(t,e){t.f.push(new $e(t.Fa++,e)),3==t.u&&Pn(t)}function Pn(t){Xe(t.b)||t.g||(t.g=!0,At(t.xa,t),t.o=0)}function Mn(t,e){var n;n=e?e.W:t.H++;var r=Me(t.v);De(r,"SID",t.B),De(r,"RID",n),De(r,"AID",t.G),Sn(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=Tn(t,n,1e3),n.setTimeout(Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),en(t.b,n
1),fe(n,r,e)}function Sn(t,e){t.c&&Ce({},(function(t,n){De(e,n,t)}))}function Tn(t,e,n){n=Math.min(t.f.length,n);var r=t.c?v(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var a=["count="+n];-1==o?0<n?a.push("ofs="+(o=i[0].b)):o=0:a.push("ofs="+o);for(var s=!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),s=!1;else try{sn(l,a,"req"+c+"_")}catch(h){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function An(t){t.a||t.i||(t.J=1,At(t.wa,t),t.m=0)}function In(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Xt(v(t.wa,t),Nn(t,t.m)),t.m++,0))}function Dn(t){null!=t.l&&(s.clearTimeout(t.l),t.l=null)}function Rn(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=m()-e.s;var i=t.o;(r=Gt()).dispatchEvent(new Zt(r,n,e,i)),Pn(t)}else An(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(v(t.xa,t,e),Nn(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 Nn(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=v(t.Ta,t);n||(n=new Pe("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||Se(n,"https"),Re(n)),function(t,e){var n=new Ht;if(s.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),s.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),xn(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,O(t.f),t.f.length=0),t.c.ka())}function Ln(t,e,n){var r=function(t){return t instanceof Pe?Me(t):new Pe(t,void 0)}(n);if(""!=r.c)e&&Te(r,e+"."+r.c),Ae(r,r.h);else{var i=s.location;r=function(t,e,n,r){var i=new Pe(null,void 0);return t&&Se(i,t),e&&Te(i,e),n&&Ae(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),Sn(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 kn(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)&&!x(t)&&(this.a.h=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!x(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(){ae.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=v(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 ke(this.headers);r&&Ce(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=dn,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=s.FormData&&t instanceof s.FormData,!(0<=w(pn,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{bn(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=v(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!==a&&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"),mn(this))},i.C=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),mn(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<_n(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=kn.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?N(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=Tn(this,n,e),De(i=Me(this.v),"RID",t),De(i,"CVER",22),this.s&&De(i,"X-HTTP-Session-Id",this.s),Sn(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,fe(n,i,null)):fe(n,i,e),this.u=2}}else 3==this.u&&(t?Mn(this,t):0==this.f.length||Xe(this.b)||Mn(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=Me(this.ea);De(t,"RID","rpc"),De(t,"SID",this.B),De(t,"CI",this.U?"0":"1"),De(t,"AID",this.G),Sn(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=Re(Me(t)),e.j=null,e.F=!0,pe(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)},b(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),Pn(t)},i.close=function(){On(this.a)},i.La=function(t){if("string"==typeof t){var e={};e.__data__=t,En(this.a,e)}else this.g?((e={}).__data__=Ot(t),En(this.a,e)):En(this.a,t)},i.C=function(){this.a.c=null,delete this.f,On(this.a),delete this.a,qn.M.C.call(this)},b(zn,oe),b(Hn,ae),b(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},Qn=Gn.createWebChannelTransport,Kn=Gn.ErrorCode,$n=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 a(t){return void 0===t}function s(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&&!a(t)&&null!==t.constructor&&!
1a(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:s,isUndefined:a,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 s(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=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"),a=o&&o.isMap,s=a?i(a):r;t.exports=s},zUnb:function(r,i,a){"use strict";a.r(i);var u={};a.r(u),a.d(u,"wrapSpace",(function(){return M_}));var c={};a.r(c),a.d(c,"wrapEntry",(function(){return F_})),a.d(c,"wrapEntryCollection",(function(){return L_}));var p={};a.r(p),a.d(p,"wrapAsset",(function(){return U_})),a.d(p,"wrapAssetCollection",(function(){return V_}));var y={};a.r(y),a.d(y,"wrapContentType",(function(){return B_})),a.d(y,"wrapContentTypeCollection",(function(){return q_}));var _={};function C(t){return"function"==typeof t}a.r(_),a.d(_,"wrapLocale",(function(){return z_})),a.d(_,"wrapLocaleCollection",(function(){return H_}));var k=!1,O={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else k&&console.log("RxJS: Back to a better error behavior. Thank you. <3");k=t},get useDeprecatedSynchronousErrorHandling(){return k}};function x(t){setTimeout((function(){throw t}),0)}var E={closed:!0,next:function(t){},error:function(t){if(O.useDeprecatedSynchronousErrorHandling)throw t;x(t)},complete:function(){}},P=Array.isArray||function(t){return t&&"number"==typeof t.length};function M(t){return null!==t&&"object"==typeof t}var S,T=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map((function(t,e){return"".concat(e+1,") ").concat(t.toString())})).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),A=((S=function(){function t(e){b(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return w(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(C(r))try{r.call(this)}catch(c){e=c instanceof T?I(c.errors):[c]}if(P(i))for(var a=-1,s=i.length;++a<s;){var u=i[a];if(M(u))try{u.unsubscribe()}catch(c){e=e||[],c instanceof T?e=e.concat(I(c.errors)):e.push(c)}}if(e)throw new T(e)}}},{key:"add",value:function(e){var 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)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}]),t}()).EMPTY=function(t){return t.closed=!0,t}(new S),S);function I(t){return t.reduce((function(t,e){return t.concat(e instanceof T?e.errors:e)}),[])}var D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),R=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;switch(b(this,n),(o=e.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=E;break;case 1:if(!t){o.destination=E;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(v(o))):(o.syncErrorThrowable=!0,o.destination=new N(v(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new N(v(o),t,r,i)}return o}return w(n,[{key:D,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,h(m(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,r){var i=new n(t,e,r);return i.syncErrorThrowable=!1,i}}]),n}(A),N=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a,s;b(this,n),(a=e.call(this))._parentSubscriber=t;var u=v(a);return C(r)?s=r:r&&(s=r.next,i=r.error,o=r.complete,r!==E&&(C((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(v(a)))),a._context=u,a._next=s,a._error=i,a._complete=o,a}return w(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;O.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=O.useDeprecatedSynchronousErrorHandling;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):x(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;x(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};O.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),O.useDeprecatedSynchronousErrorHandling)throw n;x(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!O.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return O.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(x(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(R),j="function"==typeof Symbol&&Symbol.observable||"@@observable";function F(t){return t}var L,U=((L=function(){function t(e){b(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return w(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof R)return t;if(t[D])return t[D]()}return t||e||n?new R(t,e,n):new R(E)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||O.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),O.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){O.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;
1if(n||i)return!1;t=r&&r instanceof R?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var n=this;return new(e=V(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:j,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?this:(0===(r=e).length?F:1===r.length?r[0]:function(t){return r.reduce((function(t,e){return e(t)}),t)})(this);var r}},{key:"toPromise",value:function(t){var e=this;return new(t=V(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))}}]),t}()).create=function(t){return new L(t)},L);function V(t){if(t||(t=O.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var B,q=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),z=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this)).subject=t,i.subscriber=r,i.closed=!1,i}return w(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}}}]),n}(A),H=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this,t)).destination=t,r}return n}(R),W=((B=function(t){f(n,t);var e=d(n);function n(){var t;return b(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return w(n,[{key:D,value:function(){return new H(this)}},{key:"lift",value:function(t){var e=new G(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new q;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)}},{key:"error",value:function(t){if(this.closed)throw new q;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new q;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new q;return h(m(n.prototype),"_trySubscribe",this).call(this,t)}},{key:"_subscribe",value:function(t){if(this.closed)throw new q;return this.hasError?(t.error(this.thrownError),A.EMPTY):this.isStopped?(t.complete(),A.EMPTY):(this.observers.push(t),new z(this,t))}},{key:"asObservable",value:function(){var t=new U;return t.source=this,t}}]),n}(U)).create=function(t,e){return new G(t,e)},B),G=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this)).destination=t,i.source=r,i}return w(n,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):A.EMPTY}}]),n}(W);function Q(t){return t&&"function"==typeof t.schedule}var K=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return w(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(R),$=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};var Y="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Z=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function X(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var J=function(t){if(t&&"function"==typeof t[j])return r=t,function(t){var e=r[j]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Z(t))return $(t);if(X(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,x),t};if(t&&"function"==typeof t[Y])return e=t,function(t){for(var n=e[Y]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};
1var e,n,r,i=M(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(i," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function tt(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new K(t,n,r);if(!i.closed)return e instanceof U?e.subscribe(i):J(e)(i)}var et=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(R);function nt(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 rt(t,e))}}var rt=function(){function t(e,n){b(this,t),this.project=e,this.thisArg=n}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new it(t,this.project,this.thisArg))}}]),t}(),it=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t)).project=r,o.count=0,o.thisArg=i||v(o),o}return w(n,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(R);function ot(t,e){return new U((function(n){var r=new A,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 at(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[j]}(t))return function(t,e){return new U((function(n){var r=new A;return r.add(e.schedule((function(){var i=t[j]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(X(t))return function(t,e){return new U((function(n){var r=new A;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Z(t))return ot(t,e);if(function(t){return t&&"function"==typeof t[Y]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new U((function(n){var r,i=new A;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[Y](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof U?t:new U(J(t))}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(st((function(n,r){return at(t(n,r)).pipe(nt((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new ut(t,n))})}var ut=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;b(this,t),this.project=e,this.concurrent=n}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new ct(t,this.project,this.concurrent))}}]),t}(),ct=function(t){f(n,t);var e=d(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return b(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return w(n,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var r=new K(this,e,n),i=this.destination;i.add(r);var o=tt(this,t,void 0,void 0,r);o!==r&&i.add(o)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyComplete",value:function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(et);function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(F,t)}function ht(t,e){return e?ot(t,e):new U($(t))}function ft(){return function(t){return t.lift(new dt(t))}}var pt,dt=function(){function t(e){b(this,t),this.connectable=e}return w(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new gt(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}
1(),gt=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).connectable=r,i}return w(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(R),vt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(pt=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return w(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(U).prototype)._subscribe},_isComplete:{value:pt._isComplete,writable:!0},getSubject:{value:pt.getSubject},connect:{value:pt.connect},refCount:{value:pt.refCount}},yt=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).connectable=r,i}return w(n,[{key:"_error",value:function(t){this._unsubscribe(),h(m(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(m(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(H);function mt(){return new W}function bt(t){return{toString:t}.toString()}function _t(t,e,n){return bt((function(){var r=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=l(i,e);return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}))}var wt=_t("Inject",(function(t){return{token:t}})),Ct=_t("Optional"),kt=_t("Self"),Ot=_t("SkipSelf"),xt=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 Et(t){for(var e in t)if(t[e]===Et)return e;throw Error("Could not find renamed property on target object.")}function Pt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Mt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function St(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function Tt(t){return At(t,t[Dt])||At(t,t[jt])}function At(t,e){return e&&e.token===t?e:null}function It(t){return t&&(t.hasOwnProperty(Rt)||t.hasOwnProperty(Ft))?t[Rt]:null}var Dt=Et({"\u0275prov":Et}),Rt=Et({"\u0275inj":Et}),Nt=Et({"\u0275provFallback":Et}),jt=Et({ngInjectableDef:Et}),Ft=Et({ngInjectorDef:Et});function Lt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Lt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ut(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Vt=Et({__forward_ref__:Et});function Bt(t){return t.__forward_ref__=Bt,t.toString=function(){return Lt(this())},t}function qt(t){return zt(t)?t():t}function zt(t){return"function"==typeof t&&t.hasOwnProperty(Vt)&&t.__forward_ref__===Bt}var Ht,Wt="undefined"!=typeof globalThis&&globalThis,Gt="undefined"!=typeof window&&window,Qt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt="undefined"!=typeof global&&global,$t=Wt||Kt||Gt||Qt,Yt=Et({"\u0275cmp":Et}),Zt=Et({"\u0275dir":Et}),Xt=Et({"\u0275pipe":Et}),Jt=Et({"\u0275mod":Et}),te=Et({"\u0275loc":Et}),ee=Et({"\u0275fac":Et}),ne=Et({__NG_ELEMENT_ID__:Et}),re=function(){function t(e,n){b(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Mt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return w(t,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),t}(),ie=new re("INJECTOR",-1),oe={},ae=/\n/gm,se=Et({provide:String,useValue:Et}),ue=void 0;function ce(t){var e=ue;return ue=t,e}function le(t){var e=Ht;return Ht=t,e}function he(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt.Default;if(void 0===ue)throw new Error("inject() must be called from an injection context");return null===ue?pe(t,void 0,e):ue.get(t,e&xt.Optional?null:void 0,e)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt.Default;return(Ht||he)(qt(t),e)}function pe(t,e,n){var r=Tt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&xt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Lt(t),"]"))}function de(t){for(var e=[],n=0;n<t.length;n++){var r=qt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=xt.Default,a=0;a<r.length;a++){var s=r[a];s instanceof Ct||"Optional"===s.ngMetadataName||s===Ct?o|=xt.Optional:s instanceof Ot||"SkipSelf"===s.ngMetadataName||s===Ot?o|=xt.SkipSelf:s instanceof kt||"Self"===s.ngMetadataName||s===kt?o|=xt.Self:i=s instanceof wt||s===wt?s.token:s}e.push(fe(i,o))}else e.push(fe(r))}return e}var ge=function(){function t(){b(this,t)}return w(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;if(e===oe){var n=new Error("NullInjectorError: No provider for ".concat(Lt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),ve=function t(){b(this,t)},ye=function t(){b(this,t)};function me(t,e){t.forEach((function(t){return Array.isArray(t)?me(t,e):e(t)}))}function be(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function _e(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function we(t,e){for(var n=[],r=0;r<t;r++)n.push(e);return n}function Ce(t,e){var n=ke(t,e);if(n>=0)return t[1|n]}function ke(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var Oe,xe=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ee=((Oe={})[Oe.Emulated=0]="Emulated",Oe[Oe.Native=1]="Native",Oe[Oe.None=2]="None",Oe[Oe.ShadowDom=3]="ShadowDom",Oe),Pe={},Me=[],Se=0;function Te(t){return bt((function(){var 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,input
vendor: 4,257 bytes, line 1
1s:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Me,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ee.Emulated,id:"c",styles:t.styles||Me,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=Se++,n.inputs=Ne(t.inputs,e),n.outputs=Ne(t.outputs),i&&i.forEach((function(t){return t(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(Ae)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Ie)}:null,n}))}function Ae(t){return Le(t)||function(t){return t[Zt]||null}(t)}function Ie(t){return function(t){return t[Xt]||null}(t)}var De={};function Re(t){var e={type:t.type,bootstrap:t.bootstrap||Me,declarations:t.declarations||Me,imports:t.imports||Me,exports:t.exports||Me,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&bt((function(){De[t.id]=t.type})),e}function Ne(t,e){if(null==t)return Pe;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var je=Te;function Fe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Le(t){return t[Yt]||null}function Ue(t,e){return t.hasOwnProperty(ee)?t[ee]:null}function Ve(t,e){var n=t[Jt]||null;if(!n&&!0===e)throw new Error("Type ".concat(Lt(t)," does not have '\u0275mod' property."));return n}function Be(t){return Array.isArray(t)&&"object"==typeof t[1]}function qe(t){return Array.isArray(t)&&!0===t[1]}function ze(t){return 0!=(8&t.flags)}function He(t){return 2==(2&t.flags)}function We(t){return 1==(1&t.flags)}function Ge(t){return null!==t.template}function Qe(t){return 0!=(512&t[2])}function Ke(t){return"string"==typeof t?t:null==t?"":""+t}function $e(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ke(t)}var Ye=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($t);function Ze(t){return t instanceof Function?t():t}function Xe(t,e){var n=e?" in "+e:"";throw new Error("No provider for ".concat($e(t)," found").concat(n))}var Je=function(){function t(e,n,r){b(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return w(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function tn(){return en}function en(t){return t.type.prototype.ngOnChanges&&(t.setInput=rn),nn}function nn(){var t=on(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Pe)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function rn(t,e,n,r){var i=on(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Pe,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Je(u&&u.currentValue,e,a===Pe),t[r]=e}function on(t){return t.__ngSimpleChanges__||null}tn.ngInherit=!0;var an=void 0;function sn(){return void 0!==an?an:"undefined"!=typeof document?document:void 0}function un(t){return!!t.listen}var cn={createRenderer:function(t,e){return sn()}};function ln(t){for(;Array.isArray(t);)t=t[0];return t}function hn(t,e){return ln(e[t+20])}function fn(t,e){return ln(e[t.index])}function pn(t,e){return t.data[e+20]}function dn(t,e){return t[e+20]}function gn(t,e){var n=e[t];return Be(n)?n:n[0]}function vn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function yn(t){return 4==(4&t[2])}function mn(t){return 128==(128&t[2])}function bn(t,e){return null===t||null==e?null:t[e]}function _n(t){t[18]=0}function wn(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var Cn={lFrame:Hn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function kn(){return Cn.bindingsEnabled}function On(){return Cn.lFrame.lView}function xn(){return Cn.lFrame.tView}function En(t){Cn.lFrame.contextLView=t}function Pn(){return Cn.lFrame.currentTNode}function Mn(t,e){Cn.lFrame.currentTNode=t,Cn.lFrame.isParent=e}function Sn(){return Cn.lFrame.isParent}function Tn(){Cn.lFrame.isParent=!1}
1function An(){return Cn.isInCheckNoChangesMode}function In(t){Cn.isInCheckNoChangesMode=t}function Dn(){var t=Cn.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Rn(){return Cn.lFrame.bindingIndex}function Nn(){return Cn.lFrame.bindingIndex++}function jn(t){var e=Cn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Fn(t,e){var n=Cn.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ln(e)}function Ln(t){Cn.lFrame.currentDirectiveIndex=t}function Un(){return Cn.lFrame.currentQueryIndex}function Vn(t){Cn.lFrame.currentQueryIndex=t}function Bn(t,e){var n=zn();Cn.lFrame=n,n.currentTNode=e,n.lView=t}function qn(t){var e=zn(),n=t[1];Cn.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function zn(){var t=Cn.lFrame,e=null===t?null:t.child;return null===e?Hn(t):e}function Hn(t){var 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 Wn(){var t=Cn.lFrame;return Cn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Gn=Wn;function Qn(){var t=Wn();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 Kn(){return Cn.lFrame.selectedIndex}function $n(t){Cn.lFrame.selectedIndex=t}function Yn(){var t=Cn.lFrame;return pn(t.tView,t.selectedIndex)}function Zn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n<r;n++){var i=t.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,s=i.ngAfterViewInit,u=i.ngAfterViewChecked,c=i.ngOnDestroy;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),u&&((t.viewHooks||(t.viewHooks=[])).push(n,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function Xn(t,e,n){er(t,e,3,n)}function Jn(t,e,n,r){(3&t[2])===n&&er(t,e,n,r)}function tr(t,e){var n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function er(t,e,n,r){for(var i=null!=r?r:-1,o=0,a=void 0!==r?65535&t[18]:0;a<e.length;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=r&&o>=r)break}else e[a]<0&&(t[18]+=65536),(o<i||-1==i)&&(nr(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function nr(t,e,n,r){var i=n[r]<0,o=n[r+1],a=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var rr=function t(e,n,r){b(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function ir(t,e,n){for(var r=un(t),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],s=n[i++],u=n[i++];r?t.setAttribute(e,s,u,a):e.setAttributeNS(a,s,u)}else{var c=o,l=n[++i];ar(c)?r&&t.setProperty(e,c,l):r?t.setAttribute(e,c,l):e.setAttribute(c,l),i++}}return i}function or(t){return 3===t||4===t||6===t}function ar(t){return 64===t.charCodeAt(0)}function sr(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var n=-1,r=0;r<e.length;r++){var i=e[r];"number"==typeof i?n=i:0===n||ur(t,n,i,null,-1===n||2===n?e[++r]:null)}return t}function ur(t,e,n,r,i){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var s=t[o++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=o-1;break}}}for(;o<t.length;){var u=t[o];if("number"==typeof u)break;if(u===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!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function cr(t){return-1!==t}function lr(t){return 32767&t}function hr(t,e){for(var n=t>>16,r=e;n>0;)r=r[15],n--;return r}var fr=!0;function pr(t){var e=fr;return fr=t,e}var dr=0;function gr(t,e){var n=yr(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,vr(r.data,t),vr(e,null),vr(r.blueprint,null));var i=mr(t,e),o=t.injectorIndex;if(cr(i))for(var a=lr(i),s=hr(i,e),u=s[1].data,c=0;c<8;c++)e[o+c]=s[a+c]|u[a+c];return e[o+8]=i,o}function vr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function yr(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function mr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function br(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ne)&&(r=n[ne]),null==r&&(r=n[ne]=dr++);var i=255&r,o=1<<i,a=64&i,s=32&i,u=e.data;128&i?a?s?u[t+7]|=o:u[t+6]|=o:s?u[t+5]|=o:u[t+4]|=o:a?s?u[t+3]|=o:u[t+2]|=o:s?u[t+1]|=o:u[t]|=o}(t,e,n)}function _r(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:xt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(ne)?t[ne]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){Bn(e,t);try{var a=o();if(null!=a||r&xt.Optional)return a;Xe(n)}finally{Gn()}}else if("number"==typeof o){if(-1===o)return new Pr(t,e);var s=null,u=yr(t,e),c=-1,l=r&xt.Host?e[16][6]:null;for((-1===u||r&xt.SkipSelf)&&(-1!==(c=-1===u?mr(t,e):e[u+8])&&Er(r,!1)?(s=e[1],u=lr(c),e=hr(c,e)):u=-1);-1!==u;){var h=e[1];if(xr(o,u,h.data)){var f=Cr(u,e,n,s,r,l);if(f!==wr)return f}-1!==(c=e[u+8])&&Er(r,e[1].data[u+8]===l)&&xr(o,u,e)?(s=h,u=lr(c),e=hr(c,e)):u=-1}
1}}if(r&xt.Optional&&void 0===i&&(i=null),0==(r&(xt.Self|xt.Host))){var p=e[9],d=le(void 0);try{return p?p.get(n,i,r&xt.Optional):pe(n,i,r&xt.Optional)}finally{le(d)}}if(r&xt.Optional)return i;Xe(n,"NodeInjector")}var wr={};function Cr(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],u=kr(s,a,n,null==r?He(s)&&fr:r!=a&&2===s.type,i&xt.Host&&o===s);return null!==u?Or(e,a,u,s):wr}function kr(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=1048575&o,u=t.directiveStart,c=o>>20,l=i?s+c:t.directiveEnd,h=r?s:s+c;h<l;h++){var f=a[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var p=a[u];if(p&&Ge(p)&&p.type===n)return u}return null}function Or(t,e,n,r){var i=t[n],o=e.data;if(i instanceof rr){var a=i;a.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}($e(o[n]));var s=pr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?le(a.injectImpl):null;Bn(t,r);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=en(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==u&&le(u),pr(s),a.resolving=!1,Gn()}}return i}function xr(t,e,n){var r=64&t,i=32&t;return!!((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])&1<<t)}function Er(t,e){return!(t&xt.Self||t&xt.Host&&e)}var Pr=function(){function t(e,n){b(this,t),this._tNode=e,this._lView=n}return w(t,[{key:"get",value:function(t,e){return _r(this._tNode,this._lView,t,void 0,e)}}]),t}();function Mr(t){var e=t;if(zt(t))return function(){var t=Mr(qt(e));return t?t():null};var n=Ue(e);if(null===n){var r=It(e);n=r&&r.factory}return n||null}function Sr(t){return bt((function(){for(var e=t.prototype.constructor,n=e[ee]||Mr(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;i&&i!==r;){var o=i[ee]||Mr(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(t){return new t}}))}function Tr(t){return t.ngDebugContext}function Ar(t){return t.ngOriginalError}function Ir(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.error.apply(t,n)}var Dr=function(){function t(){b(this,t),this._console=console}return w(t,[{key:"handleError",value:function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Ir}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(t){return t?Tr(t)?Tr(t):this._findContext(Ar(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=Ar(t);e&&Ar(e);)e=Ar(e);return e}}]),t}(),Rr=function(){function t(e){b(this,t),this.changingThisBreaksApplicationSecurity=e}return w(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),t}(),Nr=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Rr),jr=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Rr),Fr=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Rr),Lr=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Rr),Ur=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Rr);function Vr(t){return t instanceof Rr?t.changingThisBreaksApplicationSecurity:t}function Br(t,e){var n=qr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===e}function qr(t){return t instanceof Rr&&t.getTypeName()||null}var zr=!0,Hr=!1;function Wr(){return Hr=!0,zr}var Gr=function(){function t(){b(this,t)}return w(t,[{key:"getInertBodyElement",value:function(t){t="<body><remove></remove>"+t;try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}}}]),t}(),Qr=function(){function t(e){if(b(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return w(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),t}(),Kr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,$r=/^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 Yr(t){return(t=String(t)).match(Kr)||t.match($r)?t:(Wr()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(t," (see http://g.co/ng/security#xss)")),"unsafe:"+t)}function Zr(t){var e,n={},r=s(t.split(","));try{for(r.s();!(e=r.n()).done;){n[e.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n}function Xr(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)a.hasOwnProperty(s)&&(t[s]=!0)}return t}var Jr,ti=Zr("area,br,col,hr,img,wbr"),ei=Zr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ni=Zr("rp,rt"),ri=Xr(ni,ei),ii=Xr(ti,Xr(ei,Zr("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")),Xr(ni,Zr("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")),ri),oi=Zr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ai=Zr("srcset"),si=Xr(oi,ai,Zr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),Zr("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")),ui=Zr("script,style,template"),ci=function(){function t(){b(this,t),this.sanitizedSomething=!1,this.buf=[]}return w(t,[{key:"sanitizeChildren",value:function(t){for(var e=t.firstChild,n=!0;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);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var e=t.nodeName.toLowerCase();if(!ii.hasOwnProperty(e))return this.sanitizedSomething=!0,!ui.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);for(var n,r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(si.hasOwnProperty(s)){var u=o.value;oi[s]&&(u=Yr(u)),ai[s]&&(n=u,u=(n=String(n)).split(",").map((function(t){return Yr(t.trim())})).join(", ")),this.buf.push(" ",a,'="',fi(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();ii.hasOwnProperty(e)&&!ti.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(fi(t))}},{key:"checkClobberedElement",value:function(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}}]),t}(),li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hi=/([^\#-~ |!])/g;function fi(t){return t.replace(/&/g,"&amp;").replace(li,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(hi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function pi(t,e){var n=null;try{Jr=Jr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Gr:new Qr(t)}(t);var r=e?String(e):"";n=Jr.getInertBodyElement(r);var 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=Jr.getInertBodyElement(r)}while(r!==o);var a=new ci,s=a.sanitizeChildren(di(n)||n);return Wr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=di(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function di(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gi=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 vi(t){var e=mi();return e?e.sanitize(gi.HTML,t)||"":Br(t,"HTML")?Vr(t):pi(sn(),Ke(t))}function yi(t){var e=mi();return e?e.sanitize(gi.URL,t)||"":Br(t,"URL")?Vr(t):Yr(Ke(t))}function mi(){var t=On();return t&&t[12]}function bi(t,e){t.__ngContext__=e}function _i(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function wi(t,e,n){for(var r=0;r<t.length;){var i=t[r++];
vendor: 7,499 bytes, line 1
1if(n&&"class"===i){if(-1!==_i((i=t[r]).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 Ci(t){return 0===t.type&&"ng-template"!==t.tagName}function ki(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Oi(t,e,n){for(var r=4,i=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(or(t[e]))return e;return t.length}(i),a=!1,s=0;s<e.length;s++){var u=e[s];if("number"!=typeof u){if(!a)if(4&r){if(r=2|1&r,""!==u&&!ki(t,u,n)||""===u&&1===e.length){if(xi(r))return!1;a=!0}}else{var c=8&r?u:e[++s];if(8&r&&null!==t.attrs){if(!wi(t.attrs,c,n)){if(xi(r))return!1;a=!0}continue}var l=Ei(8&r?"class":u,i,Ci(t),n);if(-1===l){if(xi(r))return!1;a=!0;continue}if(""!==c){var h;h=l>o?"":i[l+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==_i(f,c,0)||2&r&&c!==h){if(xi(r))return!1;a=!0}}}}else{if(!a&&!xi(r)&&!xi(u))return!1;if(a&&xi(u))continue;a=!1,r=u|1&r}}return xi(r)||a}function xi(t){return 0==(1&t)}function Ei(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i<e.length;){var a=e[i];if(a===t)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=e[++i];"string"==typeof s;)s=e[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function Pi(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<e.length;r++)if(Oi(t,e[r],n))return!0;return!1}function Mi(t,e){return t?":not("+e.trim()+")":e}function Si(t){for(var e=t[0],n=1,r=2,i="",o=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&r){var s=t[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||xi(a)||(e+=Mi(o,i),i=""),r=a,o=o||!xi(r);n++}return""!==i&&(e+=Mi(o,i)),e}var Ti={};function Ai(t){var e=t[3];return qe(e)?e[3]:e}function Ii(t){return Ri(t[13])}function Di(t){return Ri(t[4])}function Ri(t){for(;null!==t&&!qe(t);)t=t[4];return t}function Ni(t){ji(xn(),On(),Kn()+t,An())}function ji(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Xn(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Jn(e,o,0,n)}$n(n)}function Fi(t,e){return t<<17|e<<2}function Li(t){return t>>17&32767}function Ui(t){return 2|t}function Vi(t){return(131068&t)>>2}function Bi(t,e){return-131069&t|e<<2}function qi(t){return 1|t}function zi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var a=t.data[o];Vn(i),a.contentQueries(2,e[o],o)}}}function Hi(t,e,n){return un(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Wi(t,e,n,r,i,o,a,s,u,c){var l=e.blueprint.slice();return l[0]=i,l[2]=140|r,_n(l),l[3]=l[15]=t,l[8]=n,l[10]=a||t&&t[10],l[11]=s||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 Gi(t,e,n,r,i){var o=e+20,a=t.data[o]||function(t,e,n,r,i){var o=Pn(),a=Sn(),s=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,a?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=s),null!==o&&(a&&null==o.child&&null!==s.parent?o.child=s:a||(o.next=s)),s}(t,o,n,r,i);return Mn(a,!0),a}function Qi(t,e,n){qn(e);try{var r=t.viewQuery;null!==r&&xo(1,r,n);var i=t.template;null!==i&&Yi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&zi(t,e),t.staticViewQueries&&xo(2,t.viewQuery,n);var o=t.components;null!==o&&function(t,e){for(var n=0;n<e.length;n++)_o(t,e[n])}(e,o)}catch(a){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),a}finally{e[2]&=-5,Qn()}}function Ki(t,e,n,r){var i=e[2];if(256!=(256&i)){qn(e);var o=An();try{_n(e),Cn.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Yi(t,e,n,2,r);var a=3==(3&i);if(!o)if(a){var s=t.preOrderCheckHooks;null!==s&&Xn(e,s,null)}else{var u=t.preOrderHooks;null!==u&&Jn(e,u,0,null),tr(e,0)}if(function(t){for(var e=Ii(t);null!==e;e=Di(e))if(e[2])for(var n=e[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&wn(o,1),i[2]|=1024}}(e),function(t){for(var e=Ii(t);null!==e;e=Di(e))for(var n=10;n<e.length;n++){var r=e[n],i=r[1];mn(r)&&Ki(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&zi(t,e),!o)if(a){var c=t.contentCheckHooks;null!==c&&Xn(e,c)}else{var l=t.contentHooks;null!==l&&Jn(e,l,1),tr(e,1)}!function(t,e){try{var n=t.expandoInstructions;if(null!==n)for(var r=t.expandoStartIndex,i=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?($n(0-a),i=r+=9+n[++o]):r+=a:(null!==a&&(Fn(r,i),a(2,e[i])),i++)}}finally{$n(-1)}}(t,e);var h=t.components;null!==h&&function(t,e){for(var n=0;n<e.length;n++)bo(t,e[n])}(e,h);var f=t.viewQuery;if(null!==f&&xo(2,f,r),!o)if(a){var p=t.viewCheckHooks;null!==p&&Xn(e,p)}else{var d=t.viewHooks;null!==d&&Jn(e,d,2),tr(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,wn(e[3],-1))}finally{Qn()}}}function $i(t,e,n,r){var i=e[10],o=!An(),a=yn(e);try{o&&!a&&i.begin&&i.begin(),a&&Qi(t,e,r),Ki(t,e,n,r)}finally{o&&!a&&i.end&&i.end()}}function Yi(t,e,n,r,i){var o=Kn();try{$n(-1),2&r&&e.length>20&&ji(t,e,0,An()),n(r,i)}finally{$n(o)}}function Zi(t,e,n){if(ze(e))for(var r=e.directiveEnd,i=e.directiveStart;i<r;i++){var o=t.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function Xi(t,e,n){kn()&&(function(t,e,n,r){var i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||gr(n,e),bi(r,e);for(var a=n.initialInputs,s=i;s<o;s++){var u=t.data[s],c=Ge(u);c&&go(e,n,u);var l=Or(e,t,s,n);bi(l,e),null!==a&&vo(0,s-i,l,u,0,a),c&&(gn(n.index,e)[8]=l)}}(t,e,n,fn(n,e)),128==(128&n.flags)&&function(t,e,n){var r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,a=t.firstCreatePass,s=n.index-20,u=Cn.lFrame.currentDirectiveIndex;try{$n(s);for(var c=r;c<i;c++){var l=t.data[c],h=e[c];Ln(c),null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs?uo(l,h):a&&o.push(null)}}finally{$n(-1),Ln(u)}}(t,e,n))}function Ji(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o<r.length;o+=2){var a=r[o+1],s=-1===a?n(e,t):t[a];t[i++]=s}}function to(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=eo(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function eo(t,e,n,r,i,o,a,s,u,c){var l=20+r,h=l+i,f=function(t,e){for(var n=[],r=0;r<e;r++)n.push(r<t?null:Ti);return n}(l,h),p="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:s,declTNode:e,data:f.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 a?a():a,firstChild:null,schemas:u,consts:p,incompleteFirstPass:!1}
1}function no(t,e,n,r){var i=Po(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1)}function ro(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function io(t,e,n,r,i,o,a,s){var u,c=fn(e,n),l=e.inputs;!s&&null!=l&&(u=l[r])?(So(t,n,u,r,i),He(e)&&function(t,e){var n=gn(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!=a?a(i,e.tagName||"",r):i,un(o)?o.setProperty(c,r,i):ar(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function oo(t,e,n,r){var i=!1;if(kn()){var o=function(t,e,n){var r=t.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];Pi(n,a.selectors,!1)&&(i||(i=[]),br(gr(n,e),t,a.type),Ge(a)?(lo(t,n),i.unshift(a)):i.push(a))}return i}(t,e,n),a=null===r?null:{"":-1};if(null!==o){var s=0;i=!0,fo(n,t.data.length,o.length);for(var u=0;u<o.length;u++){var c=o[u];c.providersResolver&&c.providersResolver(c)}co(t,n,o.length);for(var l=!1,h=!1,f=0;f<o.length;f++){var p=o[f];n.mergedAttrs=sr(n.mergedAttrs,p.hostAttrs),po(t,e,p),ho(t.data.length-1,p,a),null!==p.contentQueries&&(n.flags|=8),null===p.hostBindings&&null===p.hostAttrs&&0===p.hostVars||(n.flags|=128);var d=p.type.prototype;!l&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),l=!0),h||!d.ngOnChanges&&!d.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),h=!0),ao(t,p),s+=p.hostVars}!function(t,e){for(var n=e.directiveEnd,r=t.data,i=e.attrs,o=[],a=null,s=null,u=e.directiveStart;u<n;u++){var c=r[u],l=c.inputs,h=null===i||Ci(e)?null:yo(l,i);o.push(h),a=ro(l,u,a),s=ro(c.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=s}(t,n),so(t,e,s)}a&&function(t,e,n){if(e)for(var r=t.localNames=[],i=0;i<e.length;i+=2){var o=n[e[i+1]];if(null==o)throw new Error("Export of name '".concat(e[i+1],"' not found!"));r.push(e[i],o)}}(n,r,a)}return n.mergedAttrs=sr(n.mergedAttrs,n.attrs),i}function ao(t,e){var n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function so(t,e,n){for(var r=0;r<n;r++)e.push(Ti),t.blueprint.push(Ti),t.data.push(null)}function uo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function co(t,e,n){var r=20-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function lo(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ho(t,e,n){if(n){if(e.exportAs)for(var r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ge(e)&&(n[""]=t)}}function fo(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function po(t,e,n){t.data.push(n);var r=n.factory||(n.factory=Ue(n.type)),i=new rr(r,Ge(n),null);t.blueprint.push(i),e.push(i)}function go(t,e,n){var r=fn(e,t),i=to(n),o=t[10],a=wo(t,Wi(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=a}function vo(t,e,n,r,i,o){var a=o[e];if(null!==a)for(var s=r.setInput,u=0;u<a.length;){var c=a[u++],l=a[u++],h=a[u++];null!==s?r.setInput(n,h,c,l):n[l]=h}}function yo(t,e){for(var n=null,r=0;r<e.length;){var 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 mo(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function bo(t,e){var n=gn(e,t);if(mn(n)){var r=n[1];80&n[2]?Ki(r,n,r.template,n[8]):n[5]>0&&function t(e){for(var n=Ii(e);null!==n;n=Di(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var o=i[1];Ki(o,i,o.template,i[8])}else i[5]>0&&t(i)}var a=e[1].components;if(null!==a)for(var s=0;s<a.length;s++){var u=gn(a[s],e);mn(u)&&u[5]>0&&t(u)}}(n)}}function _o(t,e){var n=gn(e,t),r=n[1];!function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Qi(r,n,n[8])}function wo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Co(t){for(;t;){t[2]|=64;var e=Ai(t);if(Qe(t)&&!e)return t;t=e}return null}function ko(t,e,n){var r=e[10];r.begin&&r.begin();try{Ki(t,e,t.template,n)}catch(i){throw Mo(e,i),i}finally{r.end&&r.end()}}function Oo(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],r=vn(n),i=r[1];$i(i,r,i.template,n)}}(t[8])}function xo(t,e,n){Vn(0),e(t,n)}var Eo=Promise.resolve(null);function Po(t){return t[7]||(t[7]=[])}function Mo(t,e){var n=t[9],r=n?n.get(Dr,null):null;r&&r.handleError(e)}function So(t,e,n,r,i){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],u=e[a],c=t.data[a];
1null!==c.setInput?c.setInput(u,i,r,s):u[s]=i}}function To(t,e,n){var r=hn(e,t),i=t[11];un(i)?i.setValue(r,n):r.textContent=n}function Ao(t,e,n,r,i){if(null!=r){var o,a=!1;qe(r)?o=r:Be(r)&&(a=!0,r=r[0]);var s=ln(r);0===t&&null!==n?null==i?Lo(e,n,s):Fo(e,n,s,i||null):1===t&&null!==n?Fo(e,n,s,i||null):2===t?function(t,e,n){var r=Vo(t,e);r&&function(t,e,n,r){un(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,s,a):3===t&&e.destroyNode(s),null!=o&&function(t,e,n,r,i){var o=n[7];o!==ln(n)&&Ao(e,t,r,o,i);for(var a=10;a<n.length;a++){var s=n[a];Ho(s[1],s,t,e,r,o)}}(e,t,o,n,i)}}function Io(t,e){var n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,wn(i,-1)),n.splice(r,1)}function Do(t,e){if(!(t.length<=10)){var n,r=10+e,i=t[r];if(i){var o=i[17];null!==o&&o!==t&&Io(o,i),e>0&&(t[r-1][4]=i[4]);var a=_e(t,10+e);Ho(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Ro(t,e){if(!(256&e[2])){var n=e[11];un(n)&&n.destroyNode&&Ho(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return No(t[1],t);for(;e;){var n=null;if(Be(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Be(e)&&No(e[1],e),e=e[3];null===e&&(e=t),Be(e)&&No(e[1],e),n=e&&e[4]}e=n}}(e)}}function No(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r<n.length;r+=2){var i=e[n[r]];if(!(i instanceof rr)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(i[o[a]]);else o.call(i)}}}(t,e),function(t,e){var n=t.cleanup;if(null!==n){for(var r=e[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var o=n[i+1],a="function"==typeof o?o(e):ln(e[o]),s=r[n[i+2]],u=n[i+3];"boolean"==typeof u?a.removeEventListener(n[i],s,u):u>=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&un(e[11])&&e[11].destroy();var n=e[17];if(null!==n&&qe(e[3])){n!==e[3]&&Io(n,e);var r=e[19];null!==r&&r.detachView(t)}}}function jo(t,e,n){for(var r=e.parent;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 fn(e,n).parentNode;if(2&r.flags){var i=t.data,o=i[i[r.index].directiveStart].encapsulation;if(o!==Ee.ShadowDom&&o!==Ee.Native)return null}return fn(r,n)}function Fo(t,e,n,r){un(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Lo(t,e,n){un(t)?t.appendChild(e,n):e.appendChild(n)}function Uo(t,e,n,r){null!==r?Fo(t,e,n,r):Lo(t,e,n)}function Vo(t,e){return un(t)?t.parentNode(e):e.parentNode}function Bo(t,e){return 3===t.type||4===t.type?fn(t,e):null}function qo(t,e,n,r){var i=jo(t,r,e);if(null!=i){var o=e[11],a=Bo(r.parent||e[6],e);if(Array.isArray(n))for(var s=0;s<n.length;s++)Uo(o,i,n[s],a);else Uo(o,i,n,a)}}function zo(t,e,n,r,i,o,a){for(;null!=n;){var s=r[n.index],u=n.type;a&&0===e&&(s&&bi(ln(s),r),n.flags|=4),64!=(64&n.flags)&&(3===u||4===u?(zo(t,e,n.child,r,i,o,!1),Ao(e,t,i,s,o)):1===u?Wo(t,e,r,n,i,o):Ao(e,t,i,s,o)),n=a?n.projectionNext:n.next}}function Ho(t,e,n,r,i,o){zo(n,r,t.firstChild,e,i,o,!1)}function Wo(t,e,n,r,i,o){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Ao(e,t,i,s[u],o);else zo(t,e,s,a[3],i,o,!0)}function Go(t,e,n){un(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Qo(t,e,n){un(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}var Ko,$o,Yo,Zo=function(){function t(e,n){b(this,t),this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return w(t,[{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return function t(e,n,r,i){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(ln(s)),qe(s))for(var u=10;u<s.length;u++){var c=s[u],l=c[1].firstChild;null!==l&&t(c[1],c,l,i)}var h=r.type;if(3===h||4===h)t(e,n,r.child,i);else if(1===h){var f=n[16],p=f[6].projection[r.projection];if(Array.isArray(p))i.push.apply(i,o(p));else{var d=Ai(f);t(d[1],d,p,i,!0)}}r=a?r.projectionNext:r.next}return i}(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>
1-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ro(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){no(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Co(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ko(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){In(!0);try{ko(t,e,n)}finally{In(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Ho(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),Xo=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this,t))._view=t,r}return w(n,[{key:"detectChanges",value:function(){Oo(this._view)}},{key:"checkNoChanges",value:function(){!function(t){In(!0);try{Oo(t)}finally{In(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Zo);function Jo(t,e,n){return Ko||(Ko=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return n}(t)),new Ko(fn(e,n))}function ta(t,e,n,r){return $o||($o=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this))._declarationView=t,o._declarationTContainer=r,o.elementRef=i,o}return w(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Wi(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Qi(e,n,t),new Zo(n)}}]),n}(t)),0===n.type?new $o(r,n,Jo(e,n,r)):null}function ea(t,e,n,r){var i;Yo||(Yo=function(t){f(r,t);var n=d(r);function r(t,e,i){var o;return b(this,r),(o=n.call(this))._lContainer=t,o._hostTNode=e,o._hostView=i,o}return w(r,[{key:"element",get:function(){return Jo(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Pr(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=mr(this._hostTNode,this._hostView);if(cr(t)){var e=hr(t,this._hostView),n=lr(t);return new Pr(e[1].data[n+8],e)}return new Pr(null,this._hostView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(ve,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),qe(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],a=new Yo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),u=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],be(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(a,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(r,n,u,s);var c=function t(e,n){var r=10+e+1;if(r<n.length){var i=n[r],o=i[1].firstChild;if(null!==o)return function e(n,r){if(null!==r){var i=r.type;if(2===i)return fn(r,n);if(0===i)return t(-1,n[r.index]);if(3===i||4===i){var o=r.child;if(null!==o)return e(n,o);var a=n[r.index];return qe(a)?t(-1,a):ln(a)}var s=n[16],u=s[6],c=Ai(s),l=u.projection[r.projection];return null!=l?e(c,l):e(n,r.next)}return null}(i,o)}return n[7]}(s,u),l=n[11],h=Vo(l,u[7]);return null!==h&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,Ho(t,r,n,1,i,o)}(r,u[6],l,n,h,c),t.attachToViewContainerRef(this),be(u[8],s,t),t}},{key:"move",value:function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=Do(this._lContainer,e);n&&(_e(this._lContainer[8],e),Ro(n[1],n))}},{key:"detach",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=Do(this._lContainer,e);return n&&null!=_e(this._lContainer[8],e)?new Zo(n):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}}]),r}(t));var o=r[n.index];if(qe(o))i=o;else{var a;if(3===n.type)a=ln(o);else if(a=r[11].createComment(""),Qe(r)){var s=r[11],u=fn(n,r);Fo(s,Vo(s,u),a,function(t,e){return un(t)?t.nextSibling(e):e.nextSibling}(s,u))}else qo(r[1],r,a,n);r[n.index]=i=mo(o,r,a,n),wo(r,i)}return new Yo(i,n,r)}function na(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&He(t)){var r=gn(t.index,e);return new Zo(r,r)}return 2===t.type||0===t.type||3===t.type||4===t.type?new Zo(e[16],e):null}(Pn(),On(),t)}var ra=function(){var t=function t(){b(this,t)};return t.__NG_ELEMENT_ID__=function(){return ia()},t}(),ia=na,oa=Function,aa=new re("Set Injector scope."),sa={},ua={},ca=[],la=void 0;function ha(){return void 0===la&&(la=new ge),la}function fa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new pa(t,n,e||ha(),r)}var pa=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;b(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&me(n,(function(t){return i.processProvider(t,e,n)}
vendor: 19,877 bytes, line 1
1)),me([e],(function(t){return i.processInjectorType(t,[],a)})),this.records.set(ie,va(void 0,this));var s=this.records.get(aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Lt(e))}return w(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xt.Default;this.assertNotDestroyed();var r,i=ce(this);try{if(!(n&xt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof re)&&Tt(t);o=a&&this.injectableDefInScope(a)?va(da(t),sa):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&xt.Self?ha():this.parent).get(t,e=n&xt.Optional&&e===oe?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Lt(t)),i)throw s;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=Lt(e);if(Array.isArray(e))i=e.map(Lt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Lt(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(ae,"\n  "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{ce(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Lt(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=qt(t)))return!1;var i=It(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=It(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{me(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var c=function(t){var e=u[t],n=e.ngModule,i=e.providers;me(i,(function(t){return r.processProvider(t,n,i||ca)}))},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(a),this.records.set(a,va(i.factory,sa));var h=i.providers;if(null!=h&&!s){var f=t;me(h,(function(t){return r.processProvider(t,f,h)}))}return void 0!==o&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,n){var r=ma(t=qt(t))?t:qt(t&&t.provide),i=function(t,e,n){return ya(t)?va(void 0,t.useValue):va(ga(t),sa)}(t);if(ma(t)||!0!==t.multi)this.records.get(r);else{var o=this.records.get(r);o||((o=va(void 0,sa,!0)).factory=function(){return de(o.multi)},this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,i)}},{key:"hydrate",value:function(t,e){var n;return e.value===sa&&(e.value=ua,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}},{key:"injectableDefInScope",value:function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}]),t}();function da(t){var e=Tt(t),n=null!==e?e.factory:Ue(t);if(null!==n)return n;var r=It(t);if(null!==r)return r.factory;if(t instanceof re)throw new Error("Token ".concat(Lt(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=we(e,"?");throw new Error("Can't resolve all parameters for ".concat(Lt(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[Dt]||t[jt]||t[Nt]&&t[Nt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ga(t,e,n){var r,i=void 0;if(ma(t)){var a=qt(t);return Ue(a)||da(a)}if(ya(t))i=function(){return qt(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,o(de(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return fe(qt(t.useExisting))};else{var s=qt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ue(s)||da(s);i=function(){return l(s,o(de(t.deps)))}}return i}function va(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ya(t){return null!==t&&"object"==typeof t&&se in t}function ma(t){return"function"==typeof t}var ba=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=fa(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},_a=function(){var t=function(){function t(){b(this,t)}return w(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?ba(t,e,""):ba(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=oe,t.NULL=new ge,t.\u0275prov=Mt({token:t,providedIn:"any",factory:function(){return fe(ie)}}),t.__NG_ELEMENT_ID__=-1,t}(),wa=new re("AnalyzeForEntryComponents");function Ca(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var a=0;a<e.length;a++){var s=e[a];"number"==typeof s?o=s:1==o?i=Ut(i,s):2==o&&(r=Ut(r,s+": "+e[++a]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function ka(t,e){var n=vn(t)[1],r=n.data.length-1;Zn(n,{directiveStart:r,directiveEnd:r+1})}function Oa(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(Ge(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);var o=t;o.inputs=xa(t.inputs),o.declaredInputs=xa(t.declaredInputs),o.outputs=xa(t.outputs);var a=i.hostBindings;a&&Ma(t,a);var s=i.viewQuery,u=i.contentQueries;if(s&&Ea(t,s),u&&Pa(t,u),Pt(t.inputs,i.inputs),Pt(t.declaredInputs,i.declaredInputs),Pt(t.outputs,i.outputs),Ge(i)&&i.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var h=0;h<l.length;h++){var f=l[h];f&&f.ngInherit&&f(t),f===Oa&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,r=t.length-1;r>=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=sr(i.hostAttrs,n=sr(n,i.hostAttrs))}}(r)}function xa(t){return t===Pe?{}:t===Me?[]:t}function Ea(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Pa(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function Ma(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Sa=null;function Ta(){if(!Sa){var t=$t.Symbol;if(t&&t.iterator)Sa=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Sa=r)}}return Sa}var Aa=function(){function t(e){b(this,t),this.wrapped=e}return w(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}]),t}();function Ia(t){return!!Da(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ta()in t)}function Da(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ra(t,e,n){return t[e]=n}function Na(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ja(t,e,n,r){var i=Na(t,e,n);return Na(t,e+1,r)||i}function Fa(t,e,n,r){var i=On();return Na(i,Nn(),e)&&(xn(),function(t,e,n,r,i,o){var a=fn(t,e),s=e[11];if(null==r)un(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var u=null==i?Ke(r):i(r,t.tagName||"",n);un(s)?s.setAttribute(a,n,u,o):o?a.setAttributeNS(o,n,u):a.setAttribute(n,u)}}(Yn(),i,t,e,n,r)),Fa}function La(t,e,n,r){return Na(t,Nn(),n)?e+Ke(n)+r:Ti}function Ua(t,e,n,r,i,o,a,s){var u=On(),c=xn(),l=t+20,h=c.firstCreatePass?function(t,e,n,r,i,o,a,s,u){var c=e.consts,l=Gi(e,t,0,a||null,bn(c,s));oo(e,n,l,bn(c,u)),Zn(e,l);var h=l.tViews=eo(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,a):c.data[l];Mn(h,!1);var f=u[11].createComment("");qo(c,u,f,h),bi(f,u),wo(u,u[l]=mo(f,u,f,h)),We(h)&&Xi(c,u,h),null!=a&&Ji(u,h,s)}function Va(t){return dn(Cn.lFrame.contextLView,t)}function Ba(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt.Default,n=On();return null===n?fe(t,e):_r(Pn(),n,qt(t),e)}function qa(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(or(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===e)return n[i+1];i+=2}}return null}(Pn(),t)}function za(t,e,n){var r=On();return Na(r,Nn(),e)&&io(xn(),Yn(),r,t,e,r[11],n,!1),za}function Ha(t,e,n,r,i){var o=i?"class":"style";So(t,n,e.inputs[o],o,r)}function Wa(t,e,n,r){var i=On(),o=xn(),a=20+t,s=i[11],u=i[a]=Hi(e,s,Cn.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,u=Gi(e,t,2,i,bn(s,o));return oo(e,n,u,bn(s,a)),null!==u.attrs&&Ca(u,u.attrs,!1),null!==u.mergedAttrs&&Ca(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,i,0,e,n,r):o.data[a];Mn(c,!0);var l=c.mergedAttrs;null!==l&&ir(s,u,l);var h=c.classes;null!==h&&Qo(s,u,h);var f=c.styles;null!==f&&Go(s,u,f),qo(o,i,u,c),0===Cn.lFrame.elementDepthCount&&bi(u,i),Cn.lFrame.elementDepthCount++,We(c)&&(Xi(o,i,c),Zi(o,c,i)),null!==r&&Ji(i,c)}function Ga(){var t=Pn();Sn()?Tn():Mn(t=t.parent,!1);var e=t;Cn.lFrame.elementDepthCount--;var n=xn();n.firstCreatePass&&(Zn(n,t),ze(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ha(n,e,On(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ha(n,e,On(),e.stylesWithoutHost,!1)}function Qa(t,e,n,r){Wa(t,e,n,r),Ga()}function Ka(t,e,n){var r=On(),i=xn(),o=t+20,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=bn(o,r),s=Gi(e,t,3,"ng-container",a);return null!==a&&Ca(s,a,!0),oo(e,n,s,bn(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,i,r,e,n):i.data[o];Mn(a,!0);var s=r[o]=r[11].createComment("");qo(i,r,s,a),bi(s,r),We(a)&&(Xi(i,r,a),Zi(i,a,r)),null!=n&&Ji(r,a)}function $a(){var t=Pn(),e=xn();Sn()?Tn():Mn(t=t.parent,!1),e.firstCreatePass&&(Zn(e,t),ze(t)&&e.queries.elementEnd(t))}function Ya(){return On()}function Za(t){return!!t&&"function"==typeof t.then}function Xa(t){return!!t&&"function"==typeof t.subscribe}function Ja(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=On(),o=xn(),a=Pn();return function(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=We(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=Po(e),h=!0;if(2===r.type){var f=fn(r,e),p=s?s(f):Pe,d=p.target||f,g=l.length,v=s?function(t){return s(ln(t[r.index])).target}:r.index;if(un(n)){var y=null;if(!s&&u&&(y=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var s=e[7],u=i[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=es(r,e,o,!1);var m=n.listen(p.name||d,i,o);l.push(o,m),c&&c.push(i,v,g,g+1)}}else o=es(r,e,o,!0),d.addEventListener(i,o,a),l.push(o),c&&c.push(i,v,g,a)}var b,_=r.outputs;if(h&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var C=0;C<w;C+=2){var k=e[b[C]][b[C+1]].subscribe(o),O=l.length;l.push(o,k),c&&c.push(i,r.index,O,-(O+1))}}}(o,i,i[11],a,t,e,n,r),Ja}function ts(t,e,n){try{return!1!==e(n)}catch(r){return Mo(t,r),!1}}function es(t,e,n,r){return function i(o){if(o===Function)return n;var a=2&t.flags?gn(t.index,e):e;0==(32&e[2])&&Co(a);for(var s=ts(e,n,o),u=i.__ngNextListenerFn__;u;)s=ts(e,u,o)&&s,u=u.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function ns(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Cn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Cn.lFrame.contextLView))[8]}(t)}function rs(t,e,n,r,i){var o=On(),a=La(o,e,n,r);return a!==Ti&&io(xn(),Yn(),o,t,a,o[11],i,!1),rs}var is=[];function os(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?Li(o):Vi(o),u=!1;0!==s&&(!1===u||a);){var c=t[s+1];as(t[s],e)&&(u=!0,t[s+1]=r?qi(c):Ui(c)),s=r?Li(c):Vi(c)}u&&(t[n+1]=r?Ui(o):qi(o))}function as(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ke(t,e)>=0}function ss(t,e,n){return cs(t,e,n,!1),ss}function us(t,e){return cs(t,e,null,!0),us}function cs(t,e,n,r){var i=On(),o=xn(),a=jn(2);o.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[Kn()+20],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=function(t){var e=Cn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=hs(n=ls(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ls(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Vi(r))return t[Li(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[Li(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=hs(s=ls(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o<i;o++)r=hs(r,t[o].hostAttrs,n);return hs(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){var a=o?e.classBindings:e.styleBindings,s=Li(a),u=Vi(a);t[r]=n;var c,l=!1;if(Array.isArray(n)){var h=n;(null===(c=h[1])||ke(h,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){var f=Li(t[s+1]);t[r+1]=Fi(f,s),0!==f&&(t[f+1]=Bi(t[f+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=Fi(s,0),0!==s&&(t[s+1]=Bi(t[s+1],r)),s=r;else t[r+1]=Fi(u,0),0===s?s=r:t[u+1]=Bi(t[u+1],r),u=r;l&&(t[r+1]=Ui(t[r+1])),os(t,c,r,!0),os(t,c,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ke(o,e)>=0&&(n[r+1]=qi(n[r+1]))}(e,c,t,r,o),a=Fi(s,u),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}(o,t,a,r),e!==Ti&&Na(i,a,e)&&function(t,e,n,r,i,o,a,s){if(2===e.type){var u=t.data,c=u[s+1];ps(1==(1&c)?fs(u,e,n,i,Vi(c),a):void 0)||(ps(o)||2==(2&c)&&(o=fs(u,null,n,i,s,a)),function(t,e,n,r,i){var o=un(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var a=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,a):n.style.removeProperty(r):o?t.setStyle(n,r,i,a):n.style.setProperty(r,i)}}(r,a,hn(Kn(),n),i,o))}}(o,o.data[Kn()+20],i,i[11],t,i[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Lt(Vr(t)))),t}(e,n),r,a)}function ls(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(r=hs(r,(o=e[s]).hostAttrs,i),o!==t);)s++;return null!==t&&(n.directiveStylingLast=s),r}function hs(t,e,n){var r,i,o,a,s=n?1:2,u=-1;if(null!==e)for(var c=0;c<e.length;c++){var l=e[c];"number"==typeof l?u=l:u===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),r=t,i=l,o=!!n||e[++c],a=void 0,(a=ke(r,i))>=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function fs(t,e,n,r,i,o){for(var a=null===e,s=void 0;i>0;){var u=t[i],c=Array.isArray(u),l=c?u[1]:u,h=null===l,f=n[i+1];f===Ti&&(f=h?is:void 0);var p=h?Ce(f,r):l===r?f:void 0;if(c&&!ps(p)&&(p=Ce(u,r)),ps(p)&&(s=p,a))return s;var d=t[i+1];i=a?Li(d):Vi(d)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(s=Ce(g,r))}return s}function ps(t){return void 0!==t}function ds(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=On(),r=xn(),i=t+20,o=r.firstCreatePass?Gi(r,t,2,null,null):r.data[i],a=n[i]=function(t,e){return un(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);qo(r,n,a,o),Mn(o,!1)}function gs(t){return vs("",t,""),gs}function vs(t,e,n){var r=On(),i=La(r,t,e,n);return i!==Ti&&To(r,Kn(),i),vs}function ys(t,e,n,r,i){var o=On(),a=function(t,e,n,r,i,o){var a=ja(t,Rn(),n,i);return jn(2),a?e+Ke(n)+r+Ke(i)+o:Ti}(o,t,e,n,r,i);return a!==Ti&&To(o,Kn(),a),ys}function ms(t,e,n){var r=On();return Na(r,Nn(),e)&&io(xn(),Yn(),r,t,e,r[11],n,!0),ms}var bs=void 0,_s=["en",[["a","p"],["AM","PM"],bs],[["AM","PM"],bs,bs],[["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"]],bs,[["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"]],bs,[["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}",bs,"{1} 'at' {0}",bs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ws={};function Cs(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=ks(e);if(n)return n;var r=e.split("-")[0];if(n=ks(r))return n;if("en"===r)return _s;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function ks(t){return t in ws||(ws[t]=$t.ng&&$t.ng.common&&$t.ng.common.locales&&$t.ng.common.locales[t]),ws[t]}var Os=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}({});function xs(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"
1+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function Es(t,e,n,r,i){if(t=qt(t),Array.isArray(t))for(var o=0;o<t.length;o++)Es(t[o],e,n,r,i);else{var a=xn(),s=On(),u=ma(t)?t:qt(t.provide),c=ga(t),l=Pn(),h=1048575&l.providerIndexes,f=l.directiveStart,p=l.providerIndexes>>20;if(ma(t)||!t.multi){var d=new rr(c,i,Ba),g=Ss(u,e,i?h:h+p,f);-1===g?(br(gr(l,s),a,u),Ps(a,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(d),s.push(d)):(n[g]=d,s[g]=d)}else{var v=Ss(u,e,h+p,f),y=Ss(u,e,h,h+p),m=v>=0&&n[v],b=y>=0&&n[y];if(i&&!b||!i&&!m){br(gr(l,s),a,u);var _=function(t,e,n,r,i){var o=new rr(t,n,Ba);return o.multi=[],o.index=e,o.componentProviders=0,Ms(o,i,r&&!n),o}(i?As:Ts,n.length,i,r,c);!i&&b&&(n[y].providerFactory=_),Ps(a,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Ps(a,t,v>-1?v:y,Ms(n[i?y:v],c,!i&&r));!i&&r&&b&&n[y].componentProviders++}}}function Ps(t,e,n,r){var i=ma(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Ms(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ss(t,e,n,r){for(var i=n;i<r;i++)if(e[i]===t)return i;return-1}function Ts(t,e,n,r){return Is(this.multi,[])}function As(t,e,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Or(n,n[1],this.providerFactory.index,r);Is(o,i=s.slice(0,a));for(var u=a;u<s.length;u++)i.push(s[u])}else Is(o,i=[]);return i}function Is(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ds(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=xn();if(r.firstCreatePass){var i=Ge(t);Es(n,r.data,r.blueprint,i,!0),Es(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var Rs=function t(){b(this,t)},Ns=function(){function t(){b(this,t)}return w(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Lt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),js=function(){var t=function t(){b(this,t)};return t.NULL=new Ns,t}(),Fs=function(){var t=function t(e){b(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return Ls(t)},t}(),Ls=function(t){return Jo(t,Pn(),On())},Us=function t(){b(this,t)},Vs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Bs=function(){var t=function t(){b(this,t)};return t.__NG_ELEMENT_ID__=function(){return qs()},t}(),qs=function(){var t=On(),e=gn(Pn().index,t);return function(t){var e=t[11];if(un(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Be(e)?e:t)},zs=function(){var t=function t(){b(this,t)};return t.\u0275prov=Mt({token:t,providedIn:"root",factory:function(){return null}}),t}(),Hs=function t(e){b(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Ws=new Hs("10.2.5"),Gs=function(){function t(){b(this,t)}return w(t,[{key:"supports",value:function(t){return Ia(t)}},{key:"create",value:function(t){return new Ks(t)}}]),t}(),Qs=function(t,e){return e},Ks=function(){function t(e){b(this,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=e||Qs}return w(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Xs(n,r,i)?e:n,a=Xs(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var h=l<i.length?i[l]:i[l]=0,f=h+l;c<=f&&f<u&&(i[l]=h+1)}i[o.previousIndex]=c-u}}a!==s&&t(o,a,s)}}}
vendor: 11,497 bytes, line 1
1,{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Ia(t))throw new Error("Error trying to diff '".concat(Lt(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=t[s],i=this._trackByFn(s,r),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r,i=t[Ta()]();!(r=i.next()).done;)e(r.value)}(t,(function(t){i=e._trackByFn(n,t),null!==o&&Object.is(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),Object.is(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=t,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var 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}}},{key:"_mismatch",value:function(t,e,n,r){var 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 $s(e,n),i,r),t}},{key:"_verifyReinsertion",value:function(t,e,n,r){var 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}},{key:"_truncate",value:function(t){for(;null!==t;){var 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)}},{key:"_reinsertAfter",value:function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var 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}},{key:"_moveAfter",value:function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_addAfter",value:function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,n){var 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 Zs),this._linkedRecords.put(t),t.currentIndex=n,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zs),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}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}]),t}(),$s=function t(e,n){b(this,t),this.item=e,this.trackById=n,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},Ys=function(){function t(){b(this,t),this._head=null,this._tail=null}return w(t,[{key:"add",value:function(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)}},{key:"get",value:function(t,e){var 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}},{key:"remove",value:function(t){var 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}}]),t}(),Zs=function(){function t(){b(this,t),this.map=new Map}return w(t,[{key:"put",value:function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Ys,this.map.set(e,n)),n.add(t)}},{key:"get",value:function(t,e){var n=this.map.get(t);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),t}();function Xs(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var Js=function(){function t(){b(this,t)}return w(t,[{key:"supports",value:function(t){return t instanceof Map||Da(t)}},{key:"create",value:function(){return new tu}}]),t}(),tu=function(){function t(){b(this,t),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}return w(t,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||Da(t)))throw new Error("Error trying to diff '".concat(Lt(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,e){if(t){var 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}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new eu(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var 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}}},{key:"_maybeAddToChanges",value:function(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(n){return e(t[n],n)}))}}]),t}(),eu=function t(e){b(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},nu=function(){var t=function(){function t(e){b(this,t),this.factories=e}return w(t,[{key:"find",value:function(t){var e,n=this.factories.find((function(e){return e.supports(t)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'"))}}],[{key:"create",value:function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ot,new Ct]]}}}]),t}();return t.\u0275prov=Mt({token:t,providedIn:"root",factory:function(){return new t([new Gs])}}),t}(),ru=function(){var t=function(){function t(e){b(this,t),this.factories=e}return w(t,[{key:"find",value:function(t){var e=this.factories.find((function(e){return e.supp
1orts(t)}));if(e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"'"))}}],[{key:"create",value:function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ot,new Ct]]}}}]),t}();return t.\u0275prov=Mt({token:t,providedIn:"root",factory:function(){return new t([new Js])}}),t}(),iu=[new Js],ou=new nu([new Gs]),au=new ru(iu),su=function(){var t=function t(){b(this,t)};return t.__NG_ELEMENT_ID__=function(){return uu(t,Fs)},t}(),uu=function(t,e){return ta(t,e,Pn(),On())},cu=function(){var t=function t(){b(this,t)};return t.__NG_ELEMENT_ID__=function(){return lu(t,Fs)},t}(),lu=function(t,e){return ea(t,e,Pn(),On())},hu={},fu=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this)).ngModule=t,r}return w(n,[{key:"resolveComponentFactory",value:function(t){var e=Le(t);return new gu(e,this.ngModule)}}]),n}(js);function pu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var du=new re("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ye}}),gu=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(Si).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return w(n,[{key:"inputs",get:function(){return pu(this.componentDef.inputs)}},{key:"outputs",get:function(){return pu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,hu,i);return o!==hu||r===hu?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(Us,cn),u=a.get(zs,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(un(t))return t.selectRootElement(e,n===Ee.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(c,n,this.componentDef.encapsulation):Hi(l,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,p={components:[],scheduler:Ye,clean:Eo,playerHandler:null,flags:0},d=eo(0,null,null,1,0,null,null,null,null,null),g=Wi(null,d,p,f,null,null,s,c,u,a);qn(g);try{var v=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=Gi(a,0,2,null,null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(Ca(s,u,!0),null!==t&&(ir(i,t,u),null!==s.classes&&Qo(i,t,s.classes),null!==s.styles&&Go(i,t,s.styles)));var c=r.createRenderer(t,e),l=Wi(n,to(e),null,e.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&(br(gr(s,n),a,e.type),lo(a,s),fo(s,n.length,1)),wo(n,l),n[20]=l}(h,this.componentDef,g,s,c);if(h)if(n)ir(c,h,["ng-version",Ws.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r<t.length;){var o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!xi(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),m=y.attrs,b=y.classes;m&&ir(c,h,m),b&&b.length>0&&Qo(c,h,b.join(" "))}if(o=pn(d,0),void 0!==e)for(var _=o.projection=[],w=0;w<this.ngContentSelectors.length;w++){var C=e[w];_.push(null!=C?Array.from(C):null)}i=function(t,e,n,r,i){var o=n[1],a=function(t,e,n){var r=Pn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),co(t,r,1),po(t,e,n));var i=Or(e,t,e.length-1,r);bi(i,e);var o=fn(r,e);return o&&bi(o,e),i}(o,n,e);r.components.push(a),t[8]=a,i&&i.forEach((function(t){return t(a,e)})),e.contentQueries&&e.contentQueries(1,a,n.length-1);var s=Pn();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){$n(s.index-20);var u=n[1];ao(u,e),so(u,n,e.hostVars),uo(e,a)}return a}(v,this.componentDef,g,p,[ka]),Qi(d,g,null)}finally{Qn()}return new vu(this.componentType,i,Jo(Fs,o,g),g,o)}}]),n}(Rs),vu=function(t){f(n,t);var e=d(n);function n(t,r,i,o,a){var s;return b(this,n),(s=e.call(this)).location=i,s._rootLView=o,s._tNo
1de=a,s.destroyCbs=[],s.instance=r,s.hostView=s.changeDetectorRef=new Xo(o),s.componentType=t,s}return w(n,[{key:"injector",get:function(){return new Pr(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(t){this.destroyCbs&&this.destroyCbs.push(t)}}]),n}(function(){return function t(){b(this,t)}}()),yu=new Map,mu=function(t){f(n,t);var e=d(n);function n(t,r){var i;b(this,n),(i=e.call(this))._parent=r,i._bootstrapComponents=[],i.injector=v(i),i.destroyCbs=[],i.componentFactoryResolver=new fu(v(i));var o=Ve(t),a=t[te]||null;return a&&xs(a),i._bootstrapComponents=Ze(o.bootstrap),i._r3Injector=fa(t,r,[{provide:ve,useValue:v(i)},{provide:js,useValue:i.componentFactoryResolver}],Lt(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return w(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_a.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xt.Default;return t===_a||t===ve||t===ie?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ve),bu=function(t){f(n,t);var e=d(n);function n(t){var r,i,o;return b(this,n),(r=e.call(this)).moduleType=t,null!==Ve(t)&&(i=t,o=new Set,function t(e){var n=Ve(e,!0),r=n.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Lt(e)," vs ").concat(Lt(e.name)))}(r,yu.get(r),e),yu.set(r,e));var i,a=s(Ze(n.imports));try{for(a.s();!(i=a.n()).done;){var u=i.value;o.has(u)||(o.add(u),t(u))}}catch(c){a.e(c)}finally{a.f()}}(i)),r}return w(n,[{key:"create",value:function(t){return new mu(this.moduleType,t)}}]),n}(ye);function _u(t,e,n,r){return ku(On(),Dn(),t,e,n,r)}function wu(t,e,n,r,i){return Ou(On(),Dn(),t,e,n,r,i)}function Cu(t,e){var n=t[e];return n===Ti?void 0:n}function ku(t,e,n,r,i,o){var a=e+n;return Na(t,a,i)?Ra(t,a+1,o?r.call(o,i):r(i)):Cu(t,a+1)}function Ou(t,e,n,r,i,o,a){var s=e+n;return ja(t,s,i,o)?Ra(t,s+2,a?r.call(a,i,o):r(i,o)):Cu(t,s+2)}function xu(t,e){var n,r=xn(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Ue(n.type)),a=le(Ba);try{var s=pr(!1),u=o();return pr(s),function(t,e,n,r){var i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(r,On(),t,u),u}finally{le(a)}}function Eu(t,e,n){var r=On(),i=dn(r,t);return Mu(r,Pu(r,t)?ku(r,Dn(),e,i.transform,n,i):i.transform(n))}function Pu(t,e){return t[1].data[e+20].pure}function Mu(t,e){return Aa.isWrapped(e)&&(e=Aa.unwrap(e),t[Rn()]=Ti),e}var Su=function(t){f(n,t);var e=d(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return b(this,n),(t=e.call(this)).__isAsync=r,t}return w(n,[{key:"emit",value:function(t){h(m(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var i,o=function(t){return null},a=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=h(m(n.prototype),"subscribe",this).call(this,i,o,a);return t instanceof A&&t.add(s),s}}]),n}(W);function Tu(){return this._results[Ta()]()}var Au=function(){function t(){b(this,t),this.dirty=!0,this._results=[],this.changes=new Su,this.length=0;var e=Ta(),n=t.prototype;n[e]||(n[e]=Tu)}return w(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}}
1,{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var r=0;r<e.length;r++){var 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]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),Iu=function(){function t(e){b(this,t),this.queryList=e,this.matches=null}return w(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),Du=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];b(this,t),this.queries=e}return w(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new t(i)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var e=0;e<this.queries.length;e++)null!==zu(t,e).matches&&this.queries[e].setDirty()}}]),t}(),Ru=function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;b(this,t),this.predicate=e,this.descendants=n,this.isStatic=r,this.read=i},Nu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];b(this,t),this.queries=e}return w(t,[{key:"elementStart",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}},{key:"elementEnd",value:function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}},{key:"embeddedTView",value:function(e){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new t(n):null}},{key:"template",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(t){this.queries.push(t)}}]),t}(),ju=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;b(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return w(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&3===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r<n.length;r++){var i=n[r];this.matchTNodeWithReadOption(t,e,Fu(e,i)),this.matchTNodeWithReadOption(t,e,kr(e,t,i,!1,!1))}else n===su?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,kr(e,t,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(t,e,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===Fs||r===cu||r===su&&0===e.type)this.addMatch(e.index,-2);else{var i=kr(e,t,r,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,n)}}},{key:"addMatch",value:function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}]),t}();function Fu(t,e){var n=t.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Lu(t,e,n,r){return-1===n?function(t,e){return 2===t.type||3===t.type?Jo(Fs,t,e):0===t.type?ta(su,Fs,t,e):null}(e,t):-2===n?function(t,e,n){return n===Fs?Jo(Fs,e,t):n===su?ta(su,Fs,e,t):n===cu?ea(cu,Fs,e,t):void 0}(t,e,r):Or(t,t[1],n,e)}function Uu(t,e,n,r){var i=e[19].queries[r];if(null===i.matches){for(var o=t.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var c=a[u];s.push(c<0?null:Lu(e,o[c],a[u+1],n.metadata.read))}i.matches=s}return i.matches}function Vu(t){var e=On(),n=xn(),r=Un();Vn(r+1);var i=zu(n,r);if(t.dirty&&yn(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{var o=i.crossesNgTemplate?function t(e,n,r,i){var o=e.queries.getByIndex(r),a=o.matches;if(null!==a)for(var s=Uu(e,n,o,r),u=0;u<a.length;u+=2){var c=a[u];if(c>0)i.push(s[u/2]);else{for(var l=a[u+1],h=n[-c],f=10;f<h.length;f++){var p=h[f];p[17]===p[3]&&t(p[1],p,l,i)}if(null!==h[9])for(var d=h[9],g=0;g<d.length;g++){var v=d[g];t(v[1],v,l,i)}}}return i}(n,e,r,[]):Uu(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Bu(t,e,n){!function(t,e,n,r,i,o){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new Nu),t.queries.track(new ju(e,-1))}(t,new Ru(n,r,!0,i)),t.staticViewQueries=!0),function(t,e){var n=new Au;no(t,e,n,n.destroy),null===e[19]&&(e[19]=new Du),e[19].queries.push(new Iu(n))}(t,e)}(xn(),On(),t,e,n)}function qu(){return t=On(),e=Un(),t[19].queries[e].queryList;var t,e}function zu(t,e){return t.queries.getByIndex(e)}function Hu(t,e){return ta(su,Fs,t,e)}var Wu=new re("Application Initializer"),Gu=function(){var t=function(){function t(e){var n=this;b(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){n.resolve=t,n.reject=e}))}
1return w(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Za(i)&&e.push(i)}Promise.all(e).then((function(){n()})).catch((function(e){t.reject(e)})),0===e.length&&n(),this.initialized=!0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Wu,8))},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}(),Qu=new re("AppId"),Ku={provide:Qu,useFactory:function(){return"".concat($u()).concat($u()).concat($u())},deps:[]};function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Yu=new re("Platform Initializer"),Zu=new re("Platform ID"),Xu=new re("appBootstrapListener"),Ju=function(){var t=function(){function t(){b(this,t)}return w(t,[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}(),tc=new re("LocaleId"),ec=new re("DefaultCurrencyCode"),nc=function t(e,n){b(this,t),this.ngModuleFactory=e,this.componentFactories=n},rc=function(t){return new bu(t)},ic=rc,oc=function(t){return Promise.resolve(rc(t))},ac=function(t){var e=rc(t),n=Ze(Ve(t).declarations).reduce((function(t,e){var n=Le(e);return n&&t.push(new gu(n)),t}),[]);return new nc(e,n)},sc=ac,uc=function(t){return Promise.resolve(ac(t))},cc=function(){var t=function(){function t(){b(this,t),this.compileModuleSync=ic,this.compileModuleAsync=oc,this.compileModuleAndAllComponentsSync=sc,this.compileModuleAndAllComponentsAsync=uc}return w(t,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}(),lc=Promise.resolve(0);function hc(t){"undefined"==typeof Zone?lc.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var fc=function(){function t(e){var n,r,i=e.enableLongStackTrace,o=void 0!==i&&i,a=e.shouldCoalesceEventChangeDetection,s=void 0!==a&&a;if(b(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Su(!1),this.onMicrotaskEmpty=new Su(!1),this.onStable=new Su(!1),this.onError=new Su(!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)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=$t.requestAnimationFrame,e=$t.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($t,(function(){t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){t.lastRequestAnimationFrameId=-1,vc(t),gc(t)}),void 0,(function(){}),(function(){}))),t.fakeTopEventTask.invoke()})),vc(t))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(t,e,i,o,a,s){try{return yc(n),t.invokeTask(i,o,a,s)}finally{r&&"eventTask"===o.type&&r(),mc(n)}},onInvoke:function(t,e,r,i,o,a,s){try{return yc(n),t.invoke(r,i,o,a,s)}finally{mc(n)}},onHasTask:function(t,e,r,i){t.hasTask(r,i),e===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,vc(n),gc(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,e,r,i){return t.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return w(t,[{key:"run",value:function(t,e,n){return this._inner.run(t,e,n)}},{key:"runTask",value:function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,dc,pc,pc);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(t,e,n){return this._inner.runGuarded(t,e,n)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}
vendor: 4,804 bytes, line 1
1],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),t}();function pc(){}var dc={};function gc(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((function(){return t.onStable.emit(null)}))}finally{t.isStable=!0}}}function vc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function mc(t){t._nesting--,gc(t)}var bc,_c=function(){function t(){b(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Su,this.onMicrotaskEmpty=new Su,this.onStable=new Su,this.onError=new Su}return w(t,[{key:"run",value:function(t,e,n){return t.apply(e,n)}},{key:"runGuarded",value:function(t,e,n){return t.apply(e,n)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,n,r){return t.apply(e,n)}}]),t}(),wc=function(){var t=function(){function t(e){var n=this;b(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return w(t,[{key:"_watchAngularEvents",value:function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.subscribe({next:function(){fc.assertNotInAngularZone(),hc((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var t=this;if(this.isStable())hc((function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1}));else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]}},{key:"addCallback",value:function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(fc))},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}(),Cc=function(){var t=function(){function t(){b(this,t),this._applications=new Map,kc.addToWindow(this)}return w(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}(),kc=new(function(){function t(){b(this,t)}return w(t,[{key:"addToWindow",value:function(t){}}
1,{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Oc=new re("AllowMultipleToken"),xc=function t(e,n){b(this,t),this.name=e,this.token=n};function Ec(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+e,i=new re(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Pc();if(!o||o.injector.get(Oc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:aa,useValue:"platform"});!function(t){if(bc&&!bc.destroyed&&!bc.injector.get(Oc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bc=t.get(Mc);var e=t.get(Yu,null);e&&e.forEach((function(t){return t()}))}(_a.create({providers:a,name:r}))}return function(t){var e=Pc();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 Pc(){return bc&&!bc.destroyed?bc:null}var Mc=function(){var t=function(){function t(e){b(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new _c:("zone.js"===n?void 0:n)||new fc({enableLongStackTrace:Wr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:fc,useValue:o}];return o.run((function(){var e=_a.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(Dr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Ic(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var o=((a=n.injector.get(Gu)).runInitializers(),a.donePromise.then((function(){return xs(n.injector.get(tc,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Za(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Sc({},n);return function(t,e,n){var r=new bu(n);return Promise.resolve(r)}(0,0,t).then((function(t){return e.bootstrapModuleFactory(t,r)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Ac);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Lt(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(_a))},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}();function Sc(t,e){return Array.isArray(e)?e.reduce(Sc,t):Object.assign(Object.assign({},t),e)}var Tc,Ac=((Tc=function(){function t(e,n,r,i,o,a){var s=this;b(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Wr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new U((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}
1))})),c=new U((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){fc.assertNotInAngularZone(),hc((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){fc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Number.POSITIVE_INFINITY,i=null,o=e[e.length-1];return Q(o)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof U?e[0]:lt(r)(ht(e,i))}(u,c.pipe((function(t){return ft()((e=mt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,vt);return r.source=t,r.subjectFactory=n,r})(t));var e})))}return w(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof Rs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ve),o=n.create(_a.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(wc,null);return a&&o.injector.get(Cc).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Wr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=s(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=s(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Ic(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Xu,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Ic(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}()).\u0275fac=function(t){return new(t||Tc)(fe(fc),fe(Ju),fe(_a),fe(Dr),fe(js),fe(Gu))},Tc.\u0275prov=Mt({token:Tc,factory:Tc.\u0275fac}),Tc);function Ic(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Dc=function t(){b(this,t)},Rc=function t(){b(this,t)},Nc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},jc=function(){var t=function(){function t(e,n){b(this,t),this._compiler=e,this._config=n||Nc}return w(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=n(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),a("zn8P")(i).then((function(t){return t[o]})).then((function(t){return Fc(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=n(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),a("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return Fc(t,r,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Rc,8))},t.\u0275prov=Mt({token:t,factory:t.\u0275fac}),t}();function Fc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Lc=Ec(null,"core",[{provide:Zu,useValue:"unknown"},{provide:Mc,deps:[_a]},{provide:Cc,deps:[]},{provide:Ju,deps:[]}]),Uc=[{provide:Ac,useClass:Ac,deps:[fc,Ju,_a,Dr,js,Gu]},{provide:du,deps:[fc],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Gu,useClass:Gu,deps:[[new Ct,Wu]]},{provide:cc,useClass:cc,deps:[]},Ku,{provide:nu,useFactory:function(){return ou},deps:[]},{provide:ru,useFactory:function(){return au},deps:[]},{provide:tc,useFactory:function(t){return xs(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new wt(tc),new Ct,new Ot]]},{provide:ec,useValue:"USD"}],Vc=function(){var t=function t(e){b(this,t)};return t.\u0275mod=Re({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(fe(Ac))},providers:Uc}),t}(),Bc={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"},qc={accessToken:"czhf5j-7OchXCHdT0qI1DgiyVjcJso98GsE4hkqa4bo",host:"cdn.contentful.com",space:"tl66n0f8xpst"},zc="https://us-central1-virtualceo-io.cloudfunctions.net",Hc=null;function Wc(){return Hc}var Gc,Qc=new re("DocumentToken"),Kc=((Gc=function t(){b(this,t)}).\u0275fac=function(t){return new(t||Gc)},Gc.\u0275prov=Mt({factory:$c,token:Gc,providedIn:"platform"}),Gc);function $c(){return fe(Xc)}var Yc,Zc=new re("Location Initialized"),Xc=((Yc=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this))._doc=t,r._init(),r}return w(n,[{key:"_init",value:function(){this.location=Wc().getLocation(),this._history=Wc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Wc().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){Wc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){Wc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){Jc()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Jc()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(Kc)).\u0275fac=function(t){return new(t||Yc)(fe(Qc))},Yc.\u0275prov=Mt({factory:tl,token:Yc,providedIn:"platform"}),Yc);
1function Jc(){return!!window.history.pushState}function tl(){return new Xc(fe(Qc))}function el(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function nl(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function rl(t){return t&&"?"!==t[0]?"?"+t:t}var il,ol=((il=function t(){b(this,t)}).\u0275fac=function(t){return new(t||il)},il.\u0275prov=Mt({factory:al,token:il,providedIn:"root"}),il);function al(t){var e=fe(Qc).location;return new hl(fe(Kc),e&&e.origin||"")}var sl,ul,cl,ll=new re("appBaseHref"),hl=((cl=function(t){f(n,t);var e=d(n);function n(t,r){var i;if(b(this,n),(i=e.call(this))._platformLocation=t,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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.");return i._baseHref=r,g(i)}return w(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return el(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+rl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+rl(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+rl(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(ol)).\u0275fac=function(t){return new(t||cl)(fe(Kc),fe(ll,8))},cl.\u0275prov=Mt({token:cl,factory:cl.\u0275fac}),cl),fl=((ul=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return w(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=el(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+rl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+rl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(ol)).\u0275fac=function(t){return new(t||ul)(fe(Kc),fe(ll,8))},ul.\u0275prov=Mt({token:ul,factory:ul.\u0275fac}),ul),pl=((sl=function(){function t(e,n){var r=this;b(this,t),this._subject=new Su,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=nl(gl(i)),this._platformStrategy.onPopState((function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})}))}return w(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+rl(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,gl(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+rl(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+rl(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}()).\u0275fac=function(t){return new(t||sl)(fe(ol),fe(Kc))},sl.normalizeQueryParams=rl,sl.joinWithSlash=el,sl.stripTrailingSlash=nl,sl.\u0275prov=Mt({factory:dl,token:sl,providedIn:"root"}),sl);function dl(){return new pl(fe(ol),fe(Kc))}function gl(t){return t.replace(/\/index.html$/,"")}var vl=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),yl=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}({}),ml=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 bl(t,e){var n=Cs(t),r=n[Os.NumberSymbols][e];if(void 0===r){if(e===ml.CurrencyDecimal)return n[Os.NumberSymbols][ml.Decimal];if(e===ml.CurrencyGroup)return n[Os.NumberSymbols][ml.Group]}return r}var _l=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function wl(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Cl,kl=function t(){b(this,t)},Ol=((Cl=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this)).locale=t,r}return w(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return Cs(t)[Os.PluralCase]}(e||this.locale)(t)){case yl.Zero:return"zero";case yl.One:return"one";case yl.Two:return"two";case yl.Few:return"few";case yl.Many:return"many";default:return"other"}}}]),n}(kl)).\u0275fac=function(t){return new(t||Cl)(fe(tc))},Cl.\u0275prov=Mt({token:Cl,factory:Cl.\u0275fac}),Cl);function xl(t,e){e=encodeURIComponent(e);var r,i=s(t.split(";"));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.indexOf("="),u=n(-1==a?[o,""]:[o.slice(0,a),o.slice(a+1)],2),c=u[0],l=u[1];if(c.trim()===e)return decodeURIComponent(l)}}catch(h){i.e(h)}finally{i.f()}return null}var El,Pl,Ml,Sl=((El=function(){function t(e,n,r,i){b(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&(Ia(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Lt(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}}]),t}()).\u0275fac=function(t){return new(t||El)(Ba(nu),Ba(ru),Ba(Fs),Ba(Bs))},El.\u0275dir=je({type:El,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),El),Tl=function(){function t(e,n,r,i){b(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return w(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Al=((Pl=function(){function t(e,n,r){b(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){Wr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),". See https://angular.io/api/common/NgForOf#change-propagation for more information.")),this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Tl(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Il(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var u=new Il(t,s);n.push(u)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);
1a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}()).\u0275fac=function(t){return new(t||Pl)(Ba(cu),Ba(su),Ba(nu))},Pl.\u0275dir=je({type:Pl,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Pl),Il=function t(e,n){b(this,t),this.record=e,this.view=n},Dl=((Ml=function(){function t(e,n){b(this,t),this._viewContainer=e,this._context=new Rl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return w(t,[{key:"ngIf",set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}},{key:"ngIfThen",set:function(t){Nl("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(t){Nl("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){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)))}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}()).\u0275fac=function(t){return new(t||Ml)(Ba(cu),Ba(su))},Ml.\u0275dir=je({type:Ml,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Ml),Rl=function t(){b(this,t),this.$implicit=null,this.ngIf=null};function Nl(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat(Lt(e),"'."))}function jl(t,e){return Error("InvalidPipeArgument: '".concat(e,"' for pipe '").concat(Lt(t),"'"))}var Fl,Ll,Ul,Vl
vendor: 7,066 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
1,Bl=((Ul=function(){function t(){b(this,t)}return w(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw jl(t,e);return e.replace(Vl,(function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}))}}]),t}()).\u0275fac=function(t){return new(t||Ul)},Ul.\u0275pipe=Fe({name:"titlecase",type:Ul,pure:!0}),Ul),ql=((Ll=function(){function t(e){b(this,t),this._locale=e}return w(t,[{key:"transform",value:function(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){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var c=function(t){var e,n,r,i,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(a.charAt(r))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(c=function(t){if(0===t.digits[0])return t;var 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));var l=e.minInt,h=e.minFrac,f=e.maxFrac;if(o){var p=o.match(_l);if(null===p)throw new Error(o+" is not a valid digit info");var d=p[1],g=p[3],v=p[5];null!=d&&(l=wl(d)),null!=g&&(h=wl(g)),null!=v?f=wl(v):null!=g&&h>f&&(f=h)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var u=a;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,a=o+1),r[0]=0;for(var c=1;c<a;c++)r[c]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i<Math.max(0,o);i++)r.push(0);var h=0!==o,f=e+t.integerLen,p=r.reduceRight((function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,h&&(0===r[n]&&n>=f?r.pop():h=!1),e>=10?1:0}),0);p&&(r.unshift(p),t.integerLen++)}(c,h,f);var y=c.digits,m=c.integerLen,b=c.exponent,_=[];for(u=y.every((function(t){return!t}));m<l;m++)y.unshift(0);for(;m<0;m++)y.unshift(0);m>0?_=y.splice(m,y.length):(_=y,y=[0]);var w=[];for(y.length>=e.lgSize&&w.unshift(y.splice(-e.lgSize,y.length).join(""));y.length>e.gSize;)w.unshift(y.splice(-e.gSize,y.length).join(""));y.length&&w.unshift(y.join("")),s=w.join(bl(n,r)),_.length&&(s+=bl(n,i)+_.join("")),b&&(s+=bl(n,ml.Exponential)+"+"+b)}else s=bl(n,ml.Infinity);return s=t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}(t,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c<u.length;c++){var l=u.charAt(c);"0"===l?n.minFrac=n.maxFrac=c+1:"#"===l?n.maxFrac=c+1:n.posSuf+=l}var h=s.split(",");if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,o){var f=i.length-n.posPre.length-n.posSuf.length,p=o.indexOf("#");n.negPre=o.substr(0,p).replace(/'/g,""),n.negSuf=o.substr(p+f).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Cs(t)[Os.NumberFormats][e]}(e,vl.Decimal),bl(e,ml.MinusSign)),e,ml.Group,ml.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 jl(t,i.message)}}}]),t}()).\u0275fac=function(t){return new(t||Ll)(Ba(tc))},Ll.\u0275pipe=Fe({name:"number",type:Ll,pure:!0}),Ll),zl=((Fl=function t(){b(this,t)}).\u0275mod=Re({type:Fl}),Fl.\u0275inj=St({factory:function(t){return new(t||Fl)},providers:[{provide:kl,useClass:Ol}]}),Fl);function Hl(t){return"browser"===t}function Wl(t){return"server"===t}var Gl,Ql=((Gl=function t(){b(this,t)}).\u0275prov=Mt({token:Gl,providedIn:"root",factory:function(){return new Kl(fe(Qc),window,fe(Dr))}}),Gl),Kl=function(){function t(e,n,r){b(this,t),this.document=e,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return w(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var 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])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var t=$l(this.window.history)||$l(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(t){return!1}}}]),t}();function $l(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var Yl,Zl,Xl,Jl,th=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=eh||(eh=document.querySelector("base"))?eh.getAttribute("href"):null;return null==n?null:(e=n,Yl||(Yl=document.createElement("a")),Yl.setAttribute("href",e),"/"===Yl.pathname.charAt(0)?Yl.pathname:"/"+Yl.pathname)}},{key:"resetBaseElement",value:function(){eh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return xl(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,Hc||(Hc=t)}}]),n}(function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.call(this)}return w(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function t(){b(this,t)}}())),eh=null,nh=new re("TRANSITION_ID"),rh=[{provide:Wu,useFactory:function(t,e,n){return function(){n.get(Gu).donePromise.then((function(){var n=Wc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t}
1)).forEach((function(t){return n.remove(t)}))}))}},deps:[nh,Qc,_a],multi:!0}],ih=function(){function t(){b(this,t)}return w(t,[{key:"addToWindow",value:function(t){$t.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},$t.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$t.getAllAngularRootElements=function(){return t.getAllRootElements()},$t.frameworkStabilizers||($t.frameworkStabilizers=[]),$t.frameworkStabilizers.push((function(t){var e=$t.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Wc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,kc=e}}]),t}(),oh=new re("EventManagerPlugins"),ah=((Zl=function(){function t(e,n){var r=this;b(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=r})),this._plugins=e.slice().reverse()}return w(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)}}]),t}()).\u0275fac=function(t){return new(t||Zl)(fe(oh),fe(fc))},Zl.\u0275prov=Mt({token:Zl,factory:Zl.\u0275fac}),Zl),sh=function(){function t(e){b(this,t),this._doc=e}return w(t,[{key:"addGlobalEventListener",value:function(t,e,n){var r=Wc().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(e));return this.addEventListener(r,e,n)}}]),t}(),uh=((Jl=function(){function t(){b(this,t),this._stylesSet=new Set}return w(t,[{key:"addStyles",value:function(t){var e=this,n=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(t){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),t}()).\u0275fac=function(t){return new(t||Jl)},Jl.\u0275prov=Mt({token:Jl,factory:Jl.\u0275fac}),Jl),ch=((Xl=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this))._doc=t,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(t.head),r}return w(n,[{key:"_addStylesToHost",value:function(t,e){var n=this;t.forEach((function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))}))}},{key:"addHost",value:function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}},{key:"removeHost",value:function(t){this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(t){return Wc().remove(t)}))}}]),n}(uh)).\u0275fac=function(t){return new(t||Xl)(fe(Qc))},Xl.\u0275prov=Mt({token:Xl,factory:Xl.\u0275fac}),Xl),lh={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/"},hh=/%COMP%/g;function fh(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?fh(t,i,n):(i=i.replace(hh,t),n.push(i))}return n}function ph(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var dh,gh,vh,yh,mh,bh,_h=((dh=function(){function t(e,n,r){b(this,t),this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new wh(e)}return w(t,[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ee.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new Ch(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyTo
1Host(t),n;case Ee.Native:case Ee.ShadowDom:return new kh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=fh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||dh)(fe(ah),fe(ch),fe(Qu))},dh.\u0275prov=Mt({token:dh,factory:dh.\u0275fac}),dh),wh=function(){function t(e){b(this,t),this.eventManager=e,this.data=Object.create(null)}return w(t,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(lh[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,n){t&&t.insertBefore(e,n)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(n.textContent=""),n}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,n,r){if(r){e=r+":"+e;var i=lh[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}},{key:"removeAttribute",value:function(t,e,n){if(n){var r=lh[n];r?t.removeAttributeNS(r,e):t.removeAttribute("".concat(n,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,n,r){r&Vs.DashCase?t.style.setProperty(e,n,r&Vs.Important?"important":""):t.style[e]=n}},{key:"removeStyle",value:function(t,e,n){n&Vs.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,n){t[e]=n}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ph(n)):this.eventManager.addEventListener(t,e,ph(n))}}]),t}(),Ch=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;b(this,n),(a=e.call(this,t)).component=i;var s=fh(o+"-"+i.id,i.styles,[]);return r.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(hh,o+"-"+i.id),a.hostAttr="_nghost-%COMP%".replace(hh,o+"-"+i.id),a}return w(n,[{key:"applyToHost",value:function(t){h(m(n.prototype),"setAttribute",this).call(this,t,this.hostAttr,"")}},{key:"createElement",value:function(t,e){var r=h(m(n.prototype),"createElement",this).call(this,t,e);return h(m(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(wh),kh=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;b(this,n),(a=e.call(this,t)).sharedStylesHost=r,a.hostEl=i,a.component=o,a.shadowRoot=o.encapsulation===Ee.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=fh(o.id,o.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return w(n,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,e){return h(m(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"insertBefore",value:function(t,e,r){return h(m(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(t),e,r)}},{key:"removeChild",value:function(t,e){return h(m(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(h(m(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(t)))}}]),n}(wh),Oh=((gh=function(t){f(n,t);var e=d(n);function n(t){return b(this,n),e.call(this,t)}return w(n,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,n){var r=this;return t.addEventListener(e,n,!1),function(){return r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){return t.removeEventListener(e,n)}}]),n}(sh)).\u0275fac=function(t){return new(t||gh)(fe(Qc))},gh.\u0275prov=Mt({token:gh,factory:gh.\u0275fac}),gh),xh=["alt","control","meta","shift"],Eh={"\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"},Ph={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"},Mh={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Sh=((mh=function(t){f(n,t);var e=d(n);function n(t){return b(this,n),e.call(this,t)}return w(n,[{key:"supports",value:function(t){return null!=n.parseEventName(t)}},{key:"addEventListener",value:function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Wc().onAndCancel(t,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";
1if(xh.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Ph.hasOwnProperty(e)&&(e=Ph[e]))}return Eh[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),xh.forEach((function(r){r!=n&&(0,Mh[r])(t)&&(e+=r+".")})),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(sh)).\u0275fac=function(t){return new(t||mh)(fe(Qc))},mh.\u0275prov=Mt({token:mh,factory:mh.\u0275fac}),mh),Th=((yh=function t(){b(this,t)}).\u0275fac=function(t){return new(t||yh)},yh.\u0275prov=Mt({factory:function(){return fe(Ah)},token:yh,providedIn:"root"}),yh),Ah=((vh=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this))._doc=t,r}return w(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case gi.NONE:return e;case gi.HTML:return Br(e,"HTML")?Vr(e):pi(this._doc,String(e));case gi.STYLE:return Br(e,"Style")?Vr(e):e;case gi.SCRIPT:if(Br(e,"Script"))return Vr(e);throw new Error("unsafe value used in a script context");case gi.URL:return qr(e),Br(e,"URL")?Vr(e):Yr(String(e));case gi.RESOURCE_URL:if(Br(e,"ResourceURL"))return Vr(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 ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Nr(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new jr(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Fr(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Lr(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new Ur(t)}}]),n}(Th)).\u0275fac=function(t){return new(t||vh)(fe(Qc))},vh.\u0275prov=Mt({factory:function(){return t=fe(ie),new Ah(t.get(Qc));var t},token:vh,providedIn:"root"}),vh),Ih=Ec(Lc,"browser",[{provide:Zu,useValue:"browser"},{provide:Yu,useValue:function(){th.makeCurrent(),ih.init()},multi:!0},{provide:Qc,useFactory:function(){return function(t){an=t}(document),document},deps:[]}]),Dh=[[],{provide:aa,useValue:"root"},{provide:Dr,useFactory:function(){return new Dr},deps:[]},{provide:oh,useClass:Oh,multi:!0,deps:[Qc,fc,Zu]},{provide:oh,useClass:Sh,multi:!0,deps:[Qc]},[],{provide:_h,useClass:_h,deps:[ah,ch,Qu]},{provide:Us,useExisting:_h},{provide:uh,useExisting:ch},{provide:ch,useClass:ch,deps:[Qc]},{provide:wc,useClass:wc,deps:[fc]},{provide:ah,useClass:ah,deps:[oh,fc]},[]],Rh=((bh=function(){function t(e){if(b(this,t),e)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.")}return w(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:Qu,useValue:e.appId},{provide:nh,useExisting:Qu},rh]}}}]),t}()).\u0275mod=Re({type:bh}),bh.\u0275inj=St({factory:function(t){return new(t||bh)(fe(bh,12))},providers:Dh,imports:[zl,Vc]}),bh);function Nh(t,e){return new U((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var u=at(t[s]),c=!1;n.add(u.subscribe({next:function(t){c||(c=!0,a++),i[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&c||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},u=0;u<r;u++)s(u);else n.complete()}))}"undefined"!=typeof window&&window;var jh,Fh,Lh,Uh,Vh,Bh,qh=new re("NgValueAccessor"),zh={provide:qh,useExisting:Bt((function(){return Hh})),multi:!0},Hh=((jh=function(){function t(e,n){b(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return w(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||jh)(Ba(Bs),Ba(Fs))},jh.\u0275dir=je({type:jh,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Ja("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ds([zh])]}),jh),Wh={provide:qh,useExisting:Bt((function(){return Qh})),multi:!0},Gh=new re("CompositionEventMode"),Qh=((Uh=function(){function t(e,n,r){var i;b(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Wc()?Wc().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return w(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
1},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}()).\u0275fac=function(t){return new(t||Uh)(Ba(Bs),Ba(Fs),Ba(Gh,8))},Uh.\u0275dir=je({type:Uh,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&&Ja("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:[Ds([Wh])]}),Uh),Kh=((Lh=function(){function t(){b(this,t)}return w(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}()).\u0275fac=function(t){return new(t||Lh)},Lh.\u0275dir=je({type:Lh}),Lh),$h=((Fh=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Kh)).\u0275fac=function(t){return Yh(t||Fh)},Fh.\u0275dir=je({type:Fh,features:[Oa]}),Fh),Yh=Sr($h),Zh=function(t){f(n,t);var e=d(n);function n(){var t;return b(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return w(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(Kh),Xh=function(){function t(e){b(this,t),this._cd=e}return w(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),Jh=((Bh=function(t){f(n,t);var e=d(n);function n(t){return b(this,n),e.call(this,t)}return n}(Xh)).\u0275fac=function(t){return new(t||Bh)(Ba(Zh,2))},Bh.\u0275dir=je({type:Bh,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&us("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:[Oa]}),Bh),tf=((Vh=function(t){f(n,t);var e=d(n);function n(t){return b(this,n),e.call(this,t)}return n}(Xh)).\u0275fac=function(t){return new(t||Vh)(Ba($h,2))},Vh.\u0275dir=je({type:Vh,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&us("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:[Oa]}),Vh);function ef(t){return null==t||0===t.length}function nf(t){return null!=t&&"number"==typeof t.length}var rf=new re("NgValidators"),of=new re("NgAsyncValidators"),af=/^(?=.{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])?)*$/,sf=function(){function t(){b(this,t)}return w(t,null,[{key:"min",value:function(t){return function(e){if(ef(e.value)||ef(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}},{key:"max",value:function(t){return function(e){if(ef(e.value)||ef(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return ef(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return ef(t.value)||af.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return ef(e.value)||!nf(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"maxLength",value:function(t){return function(e){return nf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(ef(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(uf);return 0==e.length?null:function(t){return lf(hf(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(uf);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){var r=e[0];if(P(r))return Nh(r,null);if(M(r)&&Object.getPrototypeOf(r)===Object.prototype){var i=Object.keys(r);return Nh(i.map((function(t){return r[t]})),i)}}if("function"==typeof e[e.length-1]){var a=e.pop();return Nh(e=1===e.length&&P(e[0])?e[0]:e,null).pipe(nt((function(t){return a.apply(void 0,o(t))})))}return Nh(e,null)}(hf(t,e).map(cf)).pipe(nt(lf))}}}]),t}();function uf(t){return null!=t}function cf(t){var e=Za(t)?at(t):t;return Xa(e),e}function lf(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function hf(t,e){return e.map((function(e){return e(t)}))}function ff(t){return t.map((function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}}))}var pf,df,gf,vf,yf,mf,bf={provide:qh,useExisting:Bt((function(){return _f})),multi:!0},_f=((pf=function(){function t(e,n){b(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return w(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||pf)(Ba(Bs),Ba(Fs))},pf.\u0275dir=je({type:pf,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Ja("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ds([bf])]}),pf),wf={provide:qh,useExisting:Bt((function(){return kf})),multi:!0},Cf=((gf=function(){function t(){b(this,t),this._accessors=[]}return w(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;
1this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}()).\u0275fac=function(t){return new(t||gf)},gf.\u0275prov=Mt({token:gf,factory:gf.\u0275fac}),gf),kf=((df=function(){function t(e,n,r,i){b(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return w(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Zh),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}()).\u0275fac=function(t){return new(t||df)(Ba(Bs),Ba(Fs),Ba(Cf),Ba(_a))},df.\u0275dir=je({type:df,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Ja("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ds([wf])]}),df),Of={provide:qh,useExisting:Bt((function(){return xf})),multi:!0},xf=((vf=function(){function t(e,n){b(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return w(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||vf)(Ba(Bs),Ba(Fs))},vf.\u0275dir=je({type:vf,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Ja("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ds([Of])]}),vf),Ef={provide:qh,useExisting:Bt((function(){return Pf})),multi:!0},Pf=((yf=function(){function t(e,n){b(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return w(t,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}]),t}()).\u0275fac=function(t){return new(t||yf)(Ba(Bs),Ba(Fs))},yf.\u0275dir=je({type:yf,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Ja("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ds([Ef])]}),yf),Mf={provide:qh,useExisting:Bt((function(){return Sf})),multi:!0},Sf=((mf=function(){function t(e,n){b(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}
1return w(t,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(var u=n.options,c=0;c<u.length;c++){var l=u.item(c);if(l.selected){var h=e._getOptionValue(l.value);r.push(h)}}e.value=r,t(r)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}]),t}()).\u0275fac=function(t){return new(t||mf)(Ba(Bs),Ba(Fs))},mf.\u0275dir=je({type:mf,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Ja("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ds([Mf])]}),mf);function Tf(t,e){t.validator=sf.compose([t.validator,e.validator]),t.asyncValidator=sf.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Af(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Af(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function Af(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function If(t){return null!=t?sf.compose(ff(t)):null}function Df(t){return null!=t?sf.composeAsync(ff(t)):null}var Rf=[Hh,xf,_f,Pf,Sf,kf];function Nf(t){return(Uf(t)?t.validators:t)||null}function jf(t){return Array.isArray(t)?If(t):t||null}function Ff(t,e){return(Uf(e)?e.asyncValidators:t)||null}function Lf(t){return Array.isArray(t)?Df(t):t||null}function Uf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Vf,Bf,qf,zf,Hf,Wf,Gf,Qf,Kf=function(){function t(e,n){b(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=jf(this._rawValidators),this._composedAsyncValidatorFn=Lf(this._rawAsyncValidators)}return w(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=jf(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Lf(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}
vendor: 4,571 bytes, line 1
1),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(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((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(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((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=cf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(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;var r=t;return e.forEach((function(t){r=r instanceof Yf?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Zf&&r.at(t)||null})),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}}
1,{key:"_initObservables",value:function(){this.valueChanges=new Su,this.statusChanges=new Su}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Uf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}]),t}(),$f=function(t){f(n,t);var e=d(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return b(this,n),(t=e.call(this,Nf(i),Ff(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return w(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(Kf),Yf=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,Nf(r),Ff(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return w(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateV
vendor: 3,266 bytes, line 1
1alueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof $f?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e<n.length;e++){var r=n[e],i=this.controls[r];if(this.contains(r)&&t(i))return!0}return!1}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,r){n=e(n,t,r)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(Kf),Zf=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,Nf(r),Ff(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return w(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof $f?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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)}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=s(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Kf),Xf={provide:$h,useExisting:Bt((function(){return tp}))},Jf=Promise.resolve(null),tp=((Vf=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Su,i.form=new Yf({},If(t),Df(r)),i}return w(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;Jf.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Tf(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;Jf.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Jf.then((function(){var n=e._findContainer(t.path),r=new Yf({});(function(t,e){t.validator=sf.compose([t.validator,e.validator]),t.asyncValidator=sf.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Jf.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;Jf.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})),this.ngSubmit.emit(t),!1;var e}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}($h)).\u0275fac=function(t){return new(t||Vf)(Ba(rf,10),Ba(of,10))},Vf.\u0275dir=je({type:Vf,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Ja("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ds([Xf]),Oa]}),Vf),ep={provide:Zh,useExisting:Bt((function(){return rp}))},np=Promise.resolve(null),rp=((qf=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this)).control=new $f,a._registered=!1,a.update=new Su,a._parent=t,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,r=void 0,i=void 0;return e.forEach((function(t){var e;t.constructor===Qh?n=t:(e=t,Rf.some((function(t){return e.constructor===t}))?r=t:i=t)})),i||r||n||null}(0,o),a}return w(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(t,e){return[].concat(o(e.path),[t])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return If(this._rawValidators)}},{key:"asyncValidator",get:function(){return Df(this._rawAsyncValidators)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Tf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}}
1,{key:"_updateValue",value:function(t){var e=this;np.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;np.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))}}]),n}(Zh)).\u0275fac=function(t){return new(t||qf)(Ba($h,9),Ba(rf,10),Ba(of,10),Ba(qh,10))},qf.\u0275dir=je({type:qf,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ds([ep]),Oa,tn]}),qf),ip=((Bf=function t(){b(this,t)}).\u0275fac=function(t){return new(t||Bf)},Bf.\u0275dir=je({type:Bf,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Bf),op={provide:rf,useExisting:Bt((function(){return ap})),multi:!0},ap=((zf=function(){function t(){b(this,t),this._required=!1}return w(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?sf.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}()).\u0275fac=function(t){return new(t||zf)},zf.\u0275dir=je({type:zf,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Fa("required",e.required?"":null)},inputs:{required:"required"},features:[Ds([op])]}),zf),sp={provide:rf,useExisting:Bt((function(){return up})),multi:!0},up=((Hf=function(){function t(){b(this,t),this._enabled=!1}return w(t,[{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this._enabled?sf.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}()).\u0275fac=function(t){return new(t||Hf)},Hf.\u0275dir=je({type:Hf,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ds([sp])]}),Hf),cp={provide:rf,useExisting:Bt((function(){return lp})),multi:!0},lp=((Qf=function(){function t(){b(this,t),this._validator=sf.nullValidator}return w(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=sf.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||Qf)},Qf.\u0275dir=je({type:Qf,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Fa("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[Ds([cp]),tn]}),Qf),hp=((Gf=function t(){b(this,t)}).\u0275mod=Re({type:Gf}),Gf.\u0275inj=St({factory:function(t){return new(t||Gf)}}),Gf),fp=((Wf=function t(){b(this,t)}).\u0275mod=Re({type:Wf}),Wf.\u0275inj=St({factory:function(t){return new(t||Wf)},providers:[Cf],imports:[hp]}),Wf),pp=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i.pending=!1,i}return w(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var 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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var 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}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);
1this.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}}]),n}(function(t){f(n,t);var e=d(n);function n(t,r){return b(this,n),e.call(this)}return w(n,[{key:"schedule",value:function(t){return this}}]),n}(A)),dp=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i}return w(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?h(m(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?h(m(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?h(m(n.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),n}(pp),gp=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;b(this,t),this.SchedulerAction=e,this.now=n}return w(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),vp=function(t){f(n,t);var e=d(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gp.now;return b(this,n),(r=e.call(this,t,(function(){return n.delegate&&n.delegate!==v(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return w(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,r):h(m(n.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}]),n}(gp),yp=new(function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return n}(vp))(dp),mp=new vp(pp);function bp(){}function _p(t,e,n){return function(r){return r.lift(new wp(t,e,n))}}var wp=function(){function t(e,n,r){b(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Cp(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),Cp=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t))._tapNext=bp,a._tapError=bp,a._tapComplete=bp,a._tapError=i||bp,a._tapComplete=o||bp,C(r)?(a._context=v(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||bp,a._tapError=r.error||bp,a._tapComplete=r.complete||bp),a}return w(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(R),kp=1,Op=Promise.resolve(),xp={};function Ep(t){return t in xp&&(delete xp[t],!0)}var Pp=function(t){var e=kp++;return xp[e]=!0,Op.then((function(){return Ep(e)&&t()})),e},Mp=function(t){Ep(t)},Sp=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i}return w(n,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?h(m(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=Pp(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return h(m(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(Mp(e),t.scheduled=void 0)}}]),n}(pp),Tp=new(function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}}}]),n}(vp))(Sp);function Ap(t){return!P(t)&&t-parseFloat(t)+1>=0}var Ip=function(t){f(n,t);var e=d(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tp;return b(this,n),(r=e.call(this)).source=t,r.delayTime=i,r.scheduler
1=o,(!Ap(i)||i<0)&&(r.delayTime=0),o&&"function"==typeof o.schedule||(r.scheduler=Tp),r}return w(n,[{key:"_subscribe",value:function(t){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:t})}}],[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tp;return new n(t,e,r)}},{key:"dispatch",value:function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))}}]),n}(U),Dp=function(){function t(e,n){b(this,t),this.scheduler=e,this.delay=n}return w(t,[{key:"call",value:function(t,e){return new Ip(e,this.delay,this.scheduler).subscribe(t)}}]),t}(),Rp=new U((function(t){return t.complete()}));function Np(t){return t?function(t){return new U((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Rp}function jp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[e.length-1];return Q(r)?(e.pop(),ot(e,r)):ht(e)}var Fp,Lp=((Fp=function(){function t(e,n,r){b(this,t),this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}return w(t,[{key:"observe",value:function(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()}}},{key:"do",value:function(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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return jp(this.value);case"E":return t=this.error,new U((function(e){return e.error(t)}));case"C":return Np()}var t;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}()).completeNotification=new Fp("C"),Fp.undefinedValueNotification=new Fp("N",void 0),Fp);function Up(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Vp(t,e))}}var Vp=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(this,t),this.scheduler=e,this.delay=n}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Bp(t,this.scheduler,this.delay))}}]),t}(),Bp=function(t){f(n,t);var e=d(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(this,n),(i=e.call(this,t)).scheduler=r,i.delay=o,i}return w(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new qp(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Lp.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Lp.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Lp.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(R),qp=function t(e,n){b(this,t),this.notification=e,this.destination=n},zp=a("Wcq6");function Hp(){}var Wp=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yp;b(this,t),this.zone=e,this.delegate=n}return w(t,[{key:"now",value:function(){return this.delegate.now()}},{key:"schedule",value:function(t,e,n){var r=this.zone;return this.delegate.schedule((function(e){var n=this;r.runGuarded((function(){t.apply(n,[e])}))}),e,n)}}]),t}(),Gp=function(){function t(e){b(this,t),this.zone=e,this.task=null}return w(t,[{key:"call",value:function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run((function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",Hp,{},Hp,Hp)})),e.pipe(_p(n,n,n)).subscribe(t).add(n)}},{key:"unscheduleTask",value:function(){var t=this;setTimeout((function(){null!=t.task&&"scheduled"===t.task.state&&(t.task.invoke(),t.task=null)}),10)}}]),t}(),Qp=function t(e){b(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular((function(){return new Wp(Zone.current)})),this.insideAngular=e.run((function(){return new Wp(Zone.current,mp)}))};function Kp(t,e){return function(e){return(e=e.lift(new Gp(t.ngZone))).pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Dp(t,e))}}(t.outsideAngular),Up(t.insideAngular))}}var $p=["ngOnDestroy"],Yp=new re("angularfire2.app.options"),Zp=new re("angularfire2.app.nameOrConfig"),Xp=new Hs("6.0.0");function Jp(t,e,n){var r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",zp.apps.filter((function(t){return t&&t.name===r.name}))[0]||e.runOutsideAngular((function(){return Object(zp.initializeApp)(t,r)}
1))}var td,ed={provide:function t(){b(this,t)},useFactory:Jp,deps:[Yp,fc,[new Ct,Zp]]},nd=((td=function(){function t(e){b(this,t),Object(zp.registerVersion)("angularfire",Xp.full,e.toString()),Object(zp.registerVersion)("angular",Ws.full)}return w(t,null,[{key:"initializeApp",value:function(e,n){return{ngModule:t,providers:[{provide:Yp,useValue:e},{provide:Zp,useValue:n}]}}}]),t}()).\u0275mod=Re({type:td}),td.\u0275inj=St({factory:function(t){return new(t||td)(fe(Zu))},providers:[ed]}),td);function rd(t,e){return"function"==typeof e?function(n){return n.pipe(rd((function(n,r){return at(t(n,r)).pipe(nt((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new id(t))}}var id=function(){function t(e){b(this,t),this.project=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new od(t,this.project))}}]),t}(),od=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).project=r,i.index=0,i}return w(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new K(this,e,n),o=this.destination;o.add(i),this.innerSubscription=tt(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||h(m(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&h(m(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}}]),n}(et),ad=function(t){f(n,t);var e=d(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;
1return b(this,n),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=r<1?1:r,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return w(n,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),h(m(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new sd(this._getNow(),t)),this._trimBufferThenGetEvents(),h(m(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new q;if(this.isStopped||this.hasError?e=A.EMPTY:(this.observers.push(t),e=new z(this,t)),i&&t.add(t=new Bp(t,i)),n)for(var a=0;a<o&&!t.closed;a++)t.next(r[a]);else for(var s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e}},{key:"_getNow",value:function(){return(this.scheduler||yp).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}]),n}(W),sd=function t(e,n){b(this,t),this.time=e,this.value=n};function ud(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,u=t.scheduler,c=0,l=!1,h=!1;return function(t){c++,e&&!l||(l=!1,e=new ad(i,a,u),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}));var r=e.subscribe(this);this.add((function(){c--,r.unsubscribe(),n&&!h&&s&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}var cd,ld,hd=((ld=function t(e,n,r,i){b(this,t);var s=new Qp(i),u=Kp(s),c=jp(void 0).pipe(Up(s.outsideAngular),rd((function(){return i.runOutsideAngular((function(){return a.e(5).then(a.bind(null,"6nsN"))}))})),nt((function(){return Jp(e,i,n)})),nt((function(t){return t.auth()})),ud({bufferSize:1,refCount:!1}));return this.authState=c.pipe(Up(s.outsideAngular),rd((function(t){return new U(t.onAuthStateChanged.bind(t))})),u),this.user=c.pipe(Up(s.outsideAngular),rd((function(t){return new U(t.onIdTokenChanged.bind(t))})),u),this.idToken=this.user.pipe(rd((function(t){return t?at(t.getIdToken()):jp(null)}))),this.idTokenResult=this.user.pipe(rd((function(t){return t?at(t.getIdTokenResult()):jp(null)}))),function(t,e,n){return new Proxy(t,{get:function(r,i){return n.runOutsideAngular((function(){if(t[i])return t[i];if($p.includes(i))return function(){};var r=e.toPromise().then((function(t){var e=t&&t[i];return"function"==typeof e?e.bind(t):e&&e.then?e.then((function(t){return n.run((function(){return t}))})):n.run((function(){return e}))}));return new Proxy((function(){}),{get:function(t,e){return r[e]},apply:function(t,e,n){return r.then((function(t){return t&&t.apply(void 0,o(n))}))}})}))}})}(this,c,i)}).\u0275fac=function(t){return new(t||ld)(fe(Yp),fe(Zp,8),fe(Zu),fe(fc))},ld.\u0275prov=Mt({factory:function(){return new ld(fe(Yp),fe(Zp,8),fe(Zu),fe(fc))},token:ld,providedIn:"any"}),ld),fd=((cd=function t(){b(this,t)}).\u0275mod=Re({type:cd}),cd.\u0275inj=St({factory:function(t){return new(t||cd)},providers:[hd]}),cd);function pd(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new dd(t,e,n))}}var dd=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new gd(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),gd=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return w(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}}]),n}(R);
1function vd(t,e){return function(n){return n.lift(new yd(t,e))}}var yd=function(){function t(e,n){b(this,t),this.predicate=e,this.thisArg=n}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new md(t,this.predicate,this.thisArg))}}]),t}(),md=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t)).predicate=r,o.thisArg=i,o.count=0,o}return w(n,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),n}(R),bd=a("wj3C"),_d=a.n(bd),wd=a("6Joi");function Cd(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mp;return new U((function(n){var r;return null!=e?e.schedule((function(){r=t.onSnapshot(n)})):r=t.onSnapshot(n),function(){null!=r&&r()}}))}(t,e)}function kd(t,e){return Cd(t,e).pipe(nt((function(t){return{payload:t,type:"query"}})))}function Od(t,e){return kd(t,e).pipe(nt((function(t){return t.payload.docChanges().map((function(t){return{type:t.type,payload:t}}))})))}function xd(t,e,n){return kd(t,n).pipe(nt((function(t){return t.payload.docChanges()})),pd((function(t,n){return function(t,e,n){return e.forEach((function(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)}),[]),nt((function(t){return t.map((function(t){return{type:t.type,payload:t}}))})))}function Ed(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}var Pd=function(){function t(e,n,r){b(this,t),this.ref=e,this.query=n,this.afs=r}return w(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?Od(this.query,this.afs.schedulers.outsideAngular).pipe(nt((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})),vd((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):Od(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(pd((function(t,e){return[].concat(o(t),o(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Ed(t);return xd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return kd(this.query,this.afs.schedulers.outsideAngular).pipe(nt((function(n){return n.payload.docs.map((function(n){return t.idField?Object.assign(Object.assign({},n.data()),e({},t.idField,n.id)):n.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return at(this.query.get(t)).pipe(Up(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new Md(this.ref.doc(t),this.afs)}}]),t}(),Md=function(){function t(e,n){b(this,t),this.ref=e,this.afs=n}return w(t,[{key:"set",value:function(t,e){return this.ref.set(t,e)}},{key:"update",value:function(t){return this.ref.update(t)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(t,e){var n=Dd(this.ref.collection(t),e),r=n.ref,i=n.query;return new Pd(r,i,this.afs)}},{key:"snapshotChanges",value:function(){return Cd(this.ref,this.afs.schedulers.outsideAngular).pipe(nt((function(t){return{payload:t,type:"value"}}))).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return this.snapshotChanges().pipe(nt((function(t){return t.payload.data()})))}},{key:"get",value:function(t){return at(this.ref.get(t)).pipe(Up(this.afs.schedulers.insideAngular))}}]),t}(),Sd=function(){function t(e,n){b(this,t),this.query=e,this.afs=n}return w(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?Od(this.query,this.afs.schedulers.outsideAngular).pipe(nt((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))}
1)),vd((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):Od(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(pd((function(t,e){return[].concat(o(t),o(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Ed(t);return xd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return kd(this.query,this.afs.schedulers.outsideAngular).pipe(nt((function(t){return t.payload.docs.map((function(t){return t.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return at(this.query.get(t)).pipe(Up(this.afs.schedulers.insideAngular))}}]),t}(),Td=new re("angularfire2.enableFirestorePersistence"),Ad=new re("angularfire2.firestore.persistenceSettings"),Id=new re("angularfire2.firestore.settings");function Dd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return{query:e(t),ref:t}}var Rd,Nd,jd=((Nd=function(){function t(e,n,r,i,o,a,s){var u=this;b(this,t),this.schedulers=new Qp(a),this.keepUnstableUntilFirst=Kp(this.schedulers),this.firestore=a.runOutsideAngular((function(){var t=Jp(e,a,n);wd.registerFirestore&&Object(wd.registerFirestore)(_d.a);var r=t.firestore();return i&&r.settings(i),r})),this.persistenceEnabled$=r&&!Wl(o)?a.runOutsideAngular((function(){try{return at(u.firestore.enablePersistence(s||void 0).then((function(){return!0}),(function(){return!1})))}catch(t){return jp(!1)}})):jp(!1)}return w(t,[{key:"collection",value:function(t,e){var n=Dd("string"==typeof t?this.firestore.collection(t):t,e),r=n.ref,i=n.query;return new Pd(r,i,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},r=this.firestore.collectionGroup(t);return new Sd(n(r),this)}},{key:"doc",value:function(t){var e;return e="string"==typeof t?this.firestore.doc(t):t,new Md(e,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),t}()).\u0275fac=function(t){return new(t||Nd)(fe(Yp),fe(Zp,8),fe(Td,8),fe(Id,8),fe(Zu),fe(fc),fe(Ad,8))},Nd.\u0275prov=Mt({factory:function(){return new Nd(fe(Yp),fe(Zp,8),fe(Td,8),fe(Id,8),fe(Zu),fe(fc),fe(Ad,8))},token:Nd,providedIn:"any"}),Nd),Fd=((Rd=function(){function t(){b(this,t)}return w(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:Td,useValue:!0},{provide:Ad,useValue:e}]}}}]),t}()).\u0275mod=Re({type:Rd}),Rd.\u0275inj=St({factory:function(t){return new(t||Rd)},providers:[jd]}),Rd),Ld=a("os0x"),Ud=a("S+S0"),Vd=function(){function t(t,e){this.code_=Bd(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 Bd(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 Bd(t){return"storage/"+t}function qd(){return new Vd("unknown","An unknown error occurred, please check the error payload for server response.")}function zd(){return new Vd("canceled","User canceled the upload/download.")}function Hd(){return new Vd("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function Wd(){return new Vd("no-download-url","The given file does not have any download URLs.")}function Gd(t,e,n){return new Vd("invalid-argument","Invalid argument in `"+e+"` at index "+t+": "+n)}function Qd(){return new Vd("app-deleted","The Firebase app was deleted.")}function Kd(t,e){return new Vd("invalid-format","String does not match format '"+t+"': "+e)}function $d(t){throw new Vd("internal-error","Internal error: "+t)}var Yd={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function Zd(t){switch(t){case Yd.RAW:case Yd.BASE64:case Yd.BASE64URL:case Yd.DATA_URL:return;default:throw"Expected one of the event types: ["+Yd.RAW+", "+Yd.BASE64+", "+Yd.BASE64URL+", "+Yd.DATA_URL+"]."}}var Xd=function(t,e){this.data=t,this.contentType=e||null};function Jd(t,e){switch(t){case Yd.RAW:return new Xd(tg(e));case Yd.BASE64:case Yd.BASE64URL:return new Xd(eg(t,e));case Yd.DATA_URL:return new Xd((n=new ng(e)).base64?eg(Yd.BASE64,n.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw Kd(Yd.DATA_URL,"Malformed data URL.")}return tg(e)}(n.rest),new ng(e).contentType)}var n;throw qd()}function tg(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 eg(t,e){switch(t){case Yd.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw Kd(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case Yd.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw Kd(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(c){throw Kd(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;
1u++)s[u]=a.charCodeAt(u);return s}var ng=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw Kd(Yd.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)},rg={STATE_CHANGED:"state_changed"},ig={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function og(t){switch(t){case"running":case"pausing":case"canceling":return ig.RUNNING;case"paused":return ig.PAUSED;case"success":return ig.SUCCESS;case"canceled":return ig.CANCELED;case"error":default:return ig.ERROR}}function ag(t){return null!=t}function sg(t){return void 0!==t}function ug(t){return"function"==typeof t}function cg(t){return"object"==typeof t}function lg(t){return cg(t)&&null!==t}function hg(t){return"string"==typeof t||t instanceof String}function fg(t){return pg(t)&&Number.isInteger(t)}function pg(t){return"number"==typeof t||t instanceof Number}function dg(t){return gg()&&t instanceof Blob}function gg(){return"undefined"!=typeof Blob}var vg=function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t}({}),yg=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=vg.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=vg.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=vg.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw $d("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),ag(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return ag(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw $d("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw $d("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw $d("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){ag(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){ag(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),mg=function(){function t(){}return t.prototype.createXhrIo=function(){return new yg},t}();function bg(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function _g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=bg();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(gg())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}var wg=function(){function t(t,e){var n=0,r="";dg(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(dg(this.data_)){var r=(o=e,a=n,(i=this.data_).webkitSlice?i.webkitSlice(o,a):i.mozSlice?i.mozSlice(o,a):i.slice?i.slice(o,a):null);return null===r?null:new t(r)}var i,o,a;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(gg()){var r=e.map((function(e){return e instanceof t?e.data_:e}));return new t(_g.apply(null,r))}var i=e.map((function(t){return hg(t)?Jd(Yd.RAW,t).data:t.data_})),o=0;
1i.forEach((function(t){o+=t.byteLength}));var a=new Uint8Array(o),s=0;return i.forEach((function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]})),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}(),Cg=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 Vd("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,"\\."),a=[{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}],s=0;s<a.length;s++){var u=a[s],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 Vd("invalid-url","Invalid URL '"+t+"'.")}(e);return n},t}();function kg(t){var e,n;try{e=JSON.parse(t)}catch(r){return null}return cg(n=e)&&!Array.isArray(n)?e:null}function Og(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function xg(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function Eg(t){return"https://firebasestorage.googleapis.com/v0"+t}function Pg(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 Mg(t,e){return e}var Sg=function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||Mg},Tg=null;function Ag(t,e,n){var r=kg(e);return null===r?null:function(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,e[a.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new Cg(t.bucket,t.fullPath);return e.makeStorageReference(n)}})}(r,t),r}(t,r,n)}function Ig(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 Dg(t){if(!cg(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!cg(n))throw"Expected object for 'customMetadata' mapping."}else if(lg(n))throw"Mapping for '"+e+"' cannot be an object."}}function Rg(t){if(!cg(t)||!t)throw"Expected ListOptions object.";for(var e in t)if("maxResults"===e){if(!fg(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&&!hg(t.pageToken))throw"Expected pageToken to be string."}}var Ng=function(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function jg(t){if(!t)throw qd()}function Fg(t,e){return function(n,r){var i=Ag(t,r,e);return jg(null!==i),i}}function Lg(t){return function(e,n){var r;return(r=401===e.getStatus()?new Vd("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new Vd("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new Vd("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),r}}function Ug(t){var e=Lg(t);return function(n,r){var i=e(n,r);
1return 404===n.getStatus()&&(i=new Vd("object-not-found","Object '"+t.path+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function Vg(t,e,n){var r=Eg(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Ng(r,"GET",Fg(t,n),i);return o.errorHandler=Ug(e),o}function Bg(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 a=Eg(e.bucketOnlyServerUrl()),s=t.maxOperationRetryTime(),u=new Ng(a,"GET",function(t,e){return function(n,r){var i=function(t,e,n){var r=kg(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 a=o[i].replace(/\/$/,""),s=t.makeStorageReference(new Cg(e,a));r.prefixes.push(s)}if(n.items)for(var u=0,c=n.items;u<c.length;u++)s=t.makeStorageReference(new Cg(e,c[u].name)),r.items.push(s);return r}(t,e,r)}(t,e,r);return jg(null!==i),i}}(t,e.bucket),s);return u.urlParams=o,u.errorHandler=Lg(e),u}function qg(t,e,n){var r=Eg(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Ng(r,"GET",function(t,e){return function(n,r){var i=Ag(t,r,e);return jg(null!==i),function(t,e){var n=kg(e);if(null===n)return null;if(!hg(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 Eg("/b/"+i(t.bucket)+"/o/"+i(n))+Pg({alt:"media",token:e})}))[0]}(i,r)}}(t,n),i);return o.errorHandler=Ug(e),o}function zg(t,e,n,r){var i=Eg(e.fullServerUrl()),o=Ig(n,r),a=t.maxOperationRetryTime(),s=new Ng(i,"PATCH",Fg(t,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=Ug(e),s}function Hg(t,e){var n=Eg(e.fullServerUrl()),r=t.maxOperationRetryTime(),i=new Ng(n,"DELETE",(function(t,e){}),r);return i.successCodes=[200,204],i.errorHandler=Ug(e),i}function Wg(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 Gg=function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null};function Qg(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){jg(!1)}return jg(!!n&&-1!==(e||["active"]).indexOf(n)),n}var Kg=function(t,e,n){if(ug(t)||ag(e)||ag(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}},$g=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 Yg(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(a=r)===(s=i)?(u=a,c=1===a?"argument":"arguments"):(u="between "+a+" and "+s,c="arguments"),new Vd("invalid-argument-count","Invalid argument count in `"+t+"`: Expected "+u+" "+c+", received "+n.length+".");var a,s,u,c;for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(l){throw l instanceof Error?Gd(o,t,l.message):Gd(o,t,l)}}var Zg=function(t,e){var n=this;this.validator=function(e){n.optional&&!sg(e)||t(e)},this.optional=!!e};function Xg(t,e){function n(t){if(!hg(t))throw"Expected string."}var r,i,o;return t?(i=n,o=t,r=function(t){i(t),o(t)}):r=n,new Zg(r,e)}function Jg(){return new Zg((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||gg()&&t instanceof Blob))throw"Expected Blob or File."}))}function tv(t){return new Zg(Dg,t)}function ev(t){return new Zg(Rg,t)}function nv(){return new Zg((function(t){if(!(pg(t)&&t>=0))throw"Expected a number 0 or greater."}))}function rv(t,e){return new Zg((function(e){if(!(null===e||ag(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function iv(t){return new Zg((function(t){if(null!==t&&!ug(t))throw"Expected a Function."}),t)}function ov(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 av=function(){function t(t,e,n,r,i,o){var a=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){a.request_=null,a.chunkMultiplier_=1,t.codeEquals("canceled")?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=t,a.transition_("error"))},this.metadataErrorHandler_=function(t){a.request_=null,t.codeEquals("canceled")?a.completeTransitions_():(a.error_=t,a.transition_("error"))},this.promise_=new Promise((function(t,e){a.resolve_=t,a.reject_=e,a.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(),a=Wg(e,r,i),s={name:a.fullPath},u=Eg(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":a.contentType,"Content-Type":"application/json; charset=utf-8"},l=Ig(a,n),h=t.maxUploadRetryTime(),f=new Ng(u,"POST",(function(t){var e;Qg(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){jg(!1)}return jg(hg(e)),e}),h);return f.urlParams=s,f.headers=c,f.body=l,f.errorHandler=Lg(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.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 Ng(n,"POST",(function(t){var e=Qg(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){jg(!1)}n||jg(!1);var i=Number(n);return jg(!isNaN(i)),new Gg(i,r.size(),"final"===e)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Lg(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 Gg(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=function(t,e,n,r,i,o,a,s){var u=new Gg(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new Vd("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,f={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},p=r.slice(h,h+l);if(null===p)throw Hd();var d=e.maxUploadRetryTime(),g=new Ng(n,"POST",(function(t,n){var i,a=Qg(t,["active","final"]),s=u.current+l,c=r.size();return i="final"===a?Fg(e,o)(t,n):null,new Gg(s,c,"final"===a,i)}),d);return g.headers=f,g.body=p.uploadData(),g.progressCallback=s||null,g.errorHandler=Lg(t),g}(t.location_,t.authWrapper_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(s){return t.error_=s,void t.transition_("error")}var a=t.authWrapper_.makeRequest(o,i);t.request_=a,a.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=Vg(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(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();a["Content-Type"]="multipart/related; boundary="+s;var u=Wg(e,r,i),c=Ig(u,n),l=wg.getBlob("--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+c+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",r,"\r\n--"
1+s+"--");if(null===l)throw Hd();var h={name:u.fullPath},f=Eg(o),p=t.maxUploadRetryTime(),d=new Ng(f,"POST",Fg(t,n),p);return d.urlParams=h,d.headers=a,d.body=l.uploadData(),d.errorHandler=Lg(e),d}(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_=zd(),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=og(this.state_);return new $g(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!==rg.STATE_CHANGED)throw"Expected one of the event types: ["+rg.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=iv(!0).validator,s=rv(null,!0).validator;function u(t){try{return void a(t)}catch(e){}try{if(s(t),!(sg(t.next)||sg(t.error)||sg(t.complete)))throw"";return}catch(e){throw o}}var c=[Xg(i),rv(u,!0),iv(!0),iv(!0)];Yg("on",c,arguments);var l=this;function h(t){return function(e,n,i){null!==t&&Yg("on",t,arguments);var o=new Kg(e,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function f(t){if(null===t)throw o;u(t)}var p=[rv(f),iv(!0),iv(!0)],d=!(sg(e)||sg(n)||sg(r));return d?h(p):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(og(this.state_)){case ig.SUCCESS:ov(this.resolve_.bind(null,this.snapshot))();break;case ig.CANCELED:case ig.ERROR:ov(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(og(this.state_)){case ig.RUNNING:case ig.PAUSED:t.next&&ov(t.next.bind(t,this.snapshot))();break;case ig.SUCCESS:t.complete&&ov(t.complete.bind(t))();break;case ig.CANCELED:case ig.ERROR:t.error&&ov(t.error.bind(t,this.error_))();break;default:t.error&&ov(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){Yg("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){Yg("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){Yg("cancel",[],arguments);var t="running"===this.state_||"pausing"===this.state_;return t&&this.transition_("canceling"),t},t}(),sv=function(){function t(t,e){this.authWrapper=t,this.location=e instanceof Cg?e:Cg.makeFromUrl(e)}return t.prototype.toString=function(){return Yg("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(Tg)return Tg;var t=[];t.push(new Sg("bucket")),t.push(new Sg("generation")),t.push(new Sg("metageneration")),t.push(new Sg("name","fullPath",!0));var e=new Sg("name");e.xform=function(t,e){return function(t){return!hg(t)||t.length<2?t:xg(t)}(e)},t.push(e);var n=new Sg("size");return n.xform=function(t,e){return ag(e)?Number(e):e},t.push(n),t.push(new Sg("timeCreated")),t.push(new Sg("updated")),t.push(new Sg("md5Hash",null,!0)),t.push(new Sg("cacheControl",null,!0)),t.push(new Sg("contentDisposition",null,!0)),t.push(new Sg("contentEncoding",null,!0)),t.push(new Sg("contentLanguage",null,!0)),t.push(new Sg("contentType",null,!0)),t.push(new Sg("metadata","customMetadata",!0)),Tg=t}()},t.prototype.child=function(t){Yg("child",[Xg()],arguments);var e=Og(this.location.path,t),n=new Cg(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 Cg(this.location.bucket,t);return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new Cg(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 xg(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),Yg("put",[Jg(),tv(!0)],arguments),this.throwIfRoot_("put"),new av(this,this.authWrapper,this.location,this.mappings(),new wg(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=Yd.RAW),Yg("putString",[Xg(),Xg(Zd,!0),tv(!0)],arguments),this.throwIfRoot_("putString");var r=Jd(e,t),i=Object.assign({},n);return!ag(i.contentType)&&ag(r.contentType)&&(i.contentType=r.contentType),new av(this,this.authWrapper,this.location,this.mappings(),new wg(r.data,!0),i)},t.prototype.delete=function(){var t=this;return Yg("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(e){var n=Hg(t.authWrapper,t.location);
1return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){Yg("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return Object(Ld.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(Ld.__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){Yg("list",[ev(!0)],arguments);var e=this;return this.authWrapper.getAuthToken().then((function(n){var r=t||{},i=Bg(e.authWrapper,e.location,"/",r.pageToken,r.maxResults);return e.authWrapper.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return Yg("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(e){var n=Vg(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return Yg("updateMetadata",[tv()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=zg(e.authWrapper,e.location,t,e.mappings());return e.authWrapper.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return Yg("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(e){var n=qg(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw Wd();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new Vd("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}(),uv=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}(),cv=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}(),lv=function(){function t(e,n,r,i,o,a){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var u=this.app_.options;ag(u)&&(this.bucket_=t.extractBucket_(u),this.appId_=null!==(s=u.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=a,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new cv}return t.extractBucket_=function(t){var e=t.storageBucket||null;return null==e?null:Cg.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 Qd();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 uv(Qd());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}(),hv=function(){function t(t,e,n,r,i,o,a,s,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_=a,this.errorCallback_=s,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_,a=n.xhr;if(n.wasSuccessCode)try{var s=t.callback_(a,a.getResponseText());sg(s)?i(s):i()}catch(u){o(u)}else null!==a?((r=qd()).setServerResponseProp(a.getResponseText()),o(t.errorCallback_?t.errorCallback_(a,r):r)):o(r=n.canceled?t.appDelete_?Qd():zd():new Vd("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new fv(!1,null,!0)):this.backoffId_=function(e,n,r){var i=1,o=null,a=!1,s=0;function u(){return 2===s}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 fv(!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()===vg.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new fv(a,n))}else{var s=n.getErrorCode()===vg.ABORT;e(!1,new fv(!1,null,s))}}))}function i(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}}(f,u())}),e)}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c)if(t)l.call.apply(l,Object(Ld.__spreadArrays)([null,t],e));else{var r;u()||a?l.call.apply(l,Object(Ld.__spreadArrays)([null,t],e)):(i<64&&(i*=2),1===s?(s=2,r=0):r=1e3*(i+Math.random()),h(r))}}var p=!1;function d(t){p||(p=!0,c||(null!==o?(t||(s=2),clearTimeout(o),h(0)):t||(s=1)))}return h(0),setTimeout((function(){a=!0,d(!0)}),r),d}(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}(),fv=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n};function pv(t,e,n,r){var i=Pg(t.urlParams),o=t.url+i,a=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(a,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(a,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==_d.a?_d.a.SDK_VERSION:"AppManager")}(a),new hv(o,t.method,a,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}var dv,gv,vv=function(){function t(t,e,n,r){if(this.bucket_=null,this.authWrapper_=new lv(t,e,(function(t,e){return new sv(t,e)}),pv,this,n),this.app_=t,null!=r)this.bucket_=Cg.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new Cg(i,""))}this.internals_=new yv(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(Yg("ref",[Xg(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new sv(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{Cg.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return Yg("refFromURL",[Xg(e,!1)],arguments),new sv(this.authWrapper_,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){Yg("setMaxUploadRetryTime",[nv()],arguments),this.authWrapper_.setMaxUploadRetryTime(t)},t.prototype.setMaxOperationRetryTime=function(t){Yg("setMaxOperationRetryTime",[nv()],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}(),yv=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},t}();function mv(t){var e=function(t){return new U((function(e){return t.on("state_changed",(function(t){return e.next(t)}),(function(t){return e.error(t)}),(function(){return e.complete()}
1)),function(){return 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:function(){return e},percentageChanges:function(){return e.pipe(nt((function(t){return t.bytesTransferred/t.totalBytes*100})))}}}function bv(t,e,n){return{getDownloadURL:function(){return jp(void 0).pipe(Up(e.outsideAngular),rd((function(){return t.getDownloadURL()})),n)},getMetadata:function(){return jp().pipe(Up(e.outsideAngular),rd((function(){return t.getMetadata()})),n)},delete:function(){return at(t.delete())},child:function(r){return bv(t.child(r),e,n)},updateMetadata:function(e){return at(t.updateMetadata(e))},put:function(e,n){return mv(t.put(e,n))},putString:function(e,n,r){return mv(t.putString(e,n,r))},listAll:function(){return at(t.listAll())}}}gv={TaskState:ig,TaskEvent:rg,StringFormat:Yd,Storage:vv,Reference:sv},(dv=_d.a).INTERNAL.registerComponent(new Ud.Component("storage",(function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new vv(n,r,new mg,e)}),"PUBLIC").setServiceProps(gv).setMultipleInstances(!0)),dv.registerVersion("@firebase/storage","0.3.35");var _v,wv,Cv=new re("angularfire2.storageBucket"),kv=((wv=function(){function t(e,n,r,i,o){b(this,t),this.schedulers=new Qp(o),this.keepUnstableUntilFirst=Kp(this.schedulers),this.storage=o.runOutsideAngular((function(){return Jp(e,o,n).storage(r||void 0)}))}return w(t,[{key:"ref",value:function(t){return bv(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}},{key:"upload",value:function(t,e,n){return bv(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}]),t}()).\u0275fac=function(t){return new(t||wv)(fe(Yp),fe(Zp,8),fe(Cv,8),fe(Zu),fe(fc))},wv.\u0275prov=Mt({factory:function(){return new wv(fe(Yp),fe(Zp,8),fe(Cv,8),fe(Zu),fe(fc))},token:wv,providedIn:"any"}),wv),Ov=((_v=function t(){b(this,t)}).\u0275mod=Re({type:_v}),_v.\u0275inj=St({factory:function(t){return new(t||_v)},providers:[kv]}),_v),xv=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this))._value=t,r}return w(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=h(m(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new q;return this._value}},{key:"next",value:function(t){h(m(n.prototype),"next",this).call(this,this._value=t)}}]),n}(W),Ev={},Pv=function(){function t(e){b(this,t),this.resultSelector=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Mv(t,this.resultSelector))}}]),t}(),Mv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return w(n,[{key:"_next",value:function(t){this.values.push(Ev),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(tt(this,r,r,n))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,n,r,i){var o=this.values,a=this.toRespond?o[n]===Ev?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(et),Sv=function(){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 Tv(t){return new U((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?at(n):Np()).subscribe(e)}))}function Av(){return lt(1)}var Iv=function(){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 Dv(t){return function(e){return 0===t?Np():e.lift(new Rv(t))}}var Rv=function(){function t(e){if(b(this,t),this.total=e,this.total<0)throw new Iv}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Nv(t,this.total))}}]),t}(),Nv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.c
1ount=0,i}return w(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}]),n}(R);function jv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uv;return function(e){return e.lift(new Fv(t))}}var Fv=function(){function t(e){b(this,t),this.errorFactory=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Lv(t,this.errorFactory))}}]),t}(),Lv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return w(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(R);function Uv(){return new Sv}function Vv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Bv(t))}}var Bv=function(){function t(e){b(this,t),this.defaultValue=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new qv(t,this.defaultValue))}}]),t}(),qv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return w(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(R);function zv(t){return function(e){return 0===t?Np():e.lift(new Hv(t))}}var Hv=function(){function t(e){if(b(this,t),this.total=e,this.total<0)throw new Iv}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Wv(t,this.total))}}]),t}(),Wv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return w(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(R);function Gv(){return Av()(jp.apply(void 0,arguments))}function Qv(t){return function(e){var n=new Kv(t),r=e.lift(n);return n.caught=r}}var Kv=function(){function t(e){b(this,t),this.selector=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new $v(t,this.selector,this.caught))}}]),t}(),$v=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return w(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void h(m(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new K(this,void 0,void 0);this.add(r);var i=tt(this,e,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(et);function Yv(t,e){return st(t,e,1)}function Zv(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?vd((function(e,n){return t(e,n,r)})):F,zv(1),n?Vv(e):jv((function(){return new Sv})))}}var Xv=function(){function t(e){b(this,t),this.callback=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new Jv(t,this.callback))}}]),t}(),Jv=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).add(new A(r)),i}return n}(R),ty=function t(e,n){b(this,t),this.id=e,this.url=n},ey=function(t){f(n,t);var e=d(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return w(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ty),ny=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return w(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(ty),ry=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t,r)).reason=i,o}return w(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ty),iy=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t,r)).error=i,o}return w(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(ty),oy=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return w(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ty),ay=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return w(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ty),sy=function(t){f(n,t);var e=d(n);function n(t,r,i,o,a){var s;return b(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return w(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(ty),uy=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ty),cy=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ty),ly=function(){function t(e){b(this,t),this.route=e}return w(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),hy=function(){function t(e){b(this,t),this.route=e}return w(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),fy=function(){function t(e){b(this,t),this.snapshot=e}return w(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),py=function(){function t(e){b(this,t),this.snapshot=e}return w(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),dy=function(){function t(e){b(this,t),this.snapshot=e}return w(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),gy=function(){function t(e){b(this,t),this.snapshot=e}return w(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),vy=function(){function t(e,n,r){b(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return w(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),yy=function(){function t(e){b(this,t),this.params=e||{}}return w(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function my(t){return new yy(t)}function by(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function _y(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function wy(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!Cy(t[n=r[o]],e[n]))return!1;return!0}function Cy(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;var n=o(t).sort(),r=o(e).sort();return n.every((function(t,e){return r[e]===t}))}return t===e}function ky(t){return Array.prototype.concat.apply([],t)}function Oy(t){return t.length>0?t[t.length-1]:null}function xy(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ey(t){return Xa(t)?t:Za(t)?at(Promise.resolve(t)):jp(t)}function Py(t,e,n){return n?function(t,e){return wy(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ay(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var 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((function(n){return Cy(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!!Ay(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ay(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Ay(n.segments,a)&&!!n.children.primary&&e(n.children.primary,r,s)}(e,n,n.segments)}(t.root,e.root)}var My=function(){function t(e,n,r){b(this,t),this.root=e,this.queryParams=n,this.fragment=r}return w(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=my(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ny.serialize(this)}}]),t}(),Sy=function(){function t(e,n){var r=this;b(this,t),this.segments=e,this.children=n,this.parent=null,xy(n,(function(t,e){return t.parent=r}))}return w(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return jy(this)}}]),t}(),Ty=function(){function t(e,n){b(this,t),this.path=e,this.parameters=n}return w(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=my(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return qy(this)}}]),t}();function Ay(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Iy(t,e){var n=[];return xy(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),xy(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var Dy=function t(){b(this,t)},Ry=function(){function t(){b(this,t)}return w(t,[{key:"parse",value:function(t){var e=new Qy(t);return new My(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/"+function t(e,n){if(!e.hasChildren())return jy(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return xy(e.children,(function(e,n){"primary"!==n&&i.push("".concat(n,":").concat(t(e,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=Iy(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:["".concat(r,":").concat(t(n,!1))]}));return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(jy(e),"/").concat(o[0]):"".concat(jy(e),"/(").concat(o.join("//"),")")}(t.root,!0)).concat((e=t.queryParams,n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return"".concat(Ly(t),"=").concat(Ly(e))})).join("&"):"".concat(Ly(t),"=").concat(Ly(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"");var e,n}}]),t}(),Ny=new Ry;function jy(t){return t.segments.map((function(t){return qy(t)})).join("/")}function Fy(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ly(t){return Fy(t).replace(/%3B/gi,";")}function Uy(t){return Fy(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vy(t){return decodeURIComponent(t)}function By(t){return Vy(t.replace(/\+/g,"%20"))}function qy(t){return"".concat(Uy(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Uy(t),"=").concat(Uy(e[t]))})).join("")));var e}var zy=/^[^\/()?;=#]+/;function Hy(t){var e=t.match(zy);return e?e[0]:""}var Wy=/^[^=?&#]+/,Gy=/^[^?&#]+/,Qy=function(){function t(e){b(this,t),this.url=e,this.remaining=e}return w(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Sy([],{}):new Sy([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decode
1URIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Sy(t,e)),n}},{key:"parseSegment",value:function(){var t=Hy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ty(Vy(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Hy(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Hy(this.remaining);r&&(n=r,this.capture(n))}t[Vy(e)]=Vy(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Wy);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Gy);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=By(e),o=By(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Hy(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Sy([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Ky=function(){function t(e){b(this,t),this._root=e}return w(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=$y(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=$y(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Yy(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Yy(t,this._root).map((function(t){return t.value}))}}]),t}();function $y(t,e){if(t===e.value)return e;var n,r=s(e.children);try{for(r.s();!(n=r.n()).done;){var i=$y(t,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function Yy(t,e){if(t===e.value)return[e];var n,r=s(e.children);try{for(r.s();!(n=r.n()).done;){var i=Yy(t,n.value);if(i.length)return i.unshift(e),i}}catch(o){r.e(o)}finally{r.f()}return[]}var Zy=function(){function t(e,n){b(this,t),this.value=e,this.children=n}return w(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Xy(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Jy=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).snapshot=r,om(v(i),t),i}return w(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ky);function tm(t,e){var n=function(t,e){var n=new rm([],{},{},"",{},"primary",e,null,t.root,-1,{});return new im("",new Zy(n,[]))}(t,e),r=new xv([new Ty("",{})]),i=new xv({}),o=new xv({}),a=new xv({}),s=new xv(""),u=new em(r,i,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new Jy(new Zy(u,[]),n)}var em=function(){function t(e,n,r,i,o,a,s,u){b(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}
1return w(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(nt((function(t){return my(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(nt((function(t){return my(t)})))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function nm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce((function(t,e){return{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))}var rm=function(){function t(e,n,r,i,o,a,s,u,c,l,h){b(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return w(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=my(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=my(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),im=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,r)).url=t,om(v(i),r),i}return w(n,[{key:"toString",value:function(){return am(this._root)}}]),n}(Ky);function om(t,e){e.value._routerState=t,e.children.forEach((function(e){return om(t,e)}))}function am(t){var e=t.children.length>0?" { ".concat(t.children.map(am).join(", ")," } "):"";return"".concat(t.value).concat(e)}function sm(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wy(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wy(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!wy(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),wy(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function um(t,e){var n,r;return wy(t.params,e.params)&&Ay(n=t.url,r=e.url)&&n.every((function(t,e){return wy(t.parameters,r[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||um(t.parent,e.parent))}function cm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function lm(t){return"object"==typeof t&&null!=t&&t.outlets}function hm(t,e,n,r,i){var o={};return r&&xy(r,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),new My(n.root===t?e:function t(e,n,r){var i={};return xy(e.children,(function(e,o){i[o]=e===n?r:t(e,n,r)})),new Sy(e.segments,i)}(n.root,t,e),o,i)}var fm=function(){function t(e,n,r){if(b(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&cm(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(lm);if(i&&i!==Oy(r))throw new Error("{outlets:{}} has to be the last command")}return w(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),pm=function t(e,n,r){b(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function dm(t,e,n){if(t||(t=new Sy([],{})),0===t.segments.length&&t.hasChildren())return gm(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=n[r];if(lm(s))break;var u=""+s,c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!bm(u,c,a))return o;r+=2}else{if(!bm(u,{},a))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){var o=new Sy(t.segments.slice(0,r.pathIndex),{});return o.children.primary=new Sy(t.segments.slice(r.pathIndex),t.children),gm(o,0,i)}return r.match&&0===i.length?new Sy(t.segments,{}):r.match&&!t.hasChildren()?vm(t,e,n):r.match?gm(t,0,i):vm(t,e,n)}function gm(t,e,n){if(0===n.length)return new Sy(t.segments,{});var r=function(t){return lm(t[0])?t[0].outlets:{primary:t}}(n),i={};return xy(r,(function(n,r){null!==n&&(i[r]=dm(t.children[r],e,n))}
1)),xy(t.children,(function(t,e){void 0===r[e]&&(i[e]=t)})),new Sy(t.segments,i)}function vm(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){var o=n[i];if(lm(o)){var a=ym(o.outlets);return new Sy(r,a)}if(0===i&&cm(n[0]))r.push(new Ty(t.segments[e].path,n[0])),i++;else{var s=lm(o)?o.outlets.primary:""+o,u=i<n.length-1?n[i+1]:null;s&&u&&cm(u)?(r.push(new Ty(s,mm(u))),i+=2):(r.push(new Ty(s,{})),i++)}}return new Sy(r,{})}function ym(t){var e={};return xy(t,(function(t,n){null!==t&&(e[n]=vm(new Sy([],{}),0,t))})),e}function mm(t){var e={};return xy(t,(function(t,n){return e[n]=""+t})),e}function bm(t,e,n){return t==n.path&&wy(e,n.parameters)}var _m=function(){function t(e,n,r,i){b(this,t),this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}return w(t,[{key:"activate",value:function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),sm(this.futureState.root),this.activateChildRoutes(e,n,t)}},{key:"deactivateChildRoutes",value:function(t,e,n){var r=this,i=Xy(e);t.children.forEach((function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]})),xy(i,(function(t,e){r.deactivateRouteAndItsChildren(t,n)}))}},{key:"deactivateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=Xy(t),o=t.value.component?r.children:e;xy(i,(function(t,e){return n.deactivateRouteAndItsChildren(t,o)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(t,e,n){var r=this,i=Xy(e);t.children.forEach((function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new gy(t.value.snapshot))})),t.children.length&&this.forwardEvent(new py(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(sm(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),wm(s.route)}else{var u=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=c,a.outlet&&a.outlet.activateWith(r,c),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,n)}}]),t}();function wm(t){sm(t.value),t.children.forEach(wm)}var Cm=function t(e,n){b(this,t),this.routes=e,this.module=n};function km(t){return"function"==typeof t}function Om(t){return t instanceof My}var xm=Symbol("INITIAL_VALUE");function Em(){return rd((function(t){return(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=null,i=null;return Q(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&P(e[0])&&(e=e[0]),ht(e,i).lift(new Pv(r))}).apply(void 0,o(t.map((function(t){return t.pipe(zv(1),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[e.length-1];return Q(r)?(e.pop(),function(t){return Gv(e,t,r)}):function(t){return Gv(e,t)}}(xm))})))).pipe(pd((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==xm)return t;if(r===xm&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Om(r))return r}return t}),t)}),xm),vd((function(t){return t!==xm})),nt((function(t){return Om(t)?t:!0===t})),zv(1))}))}var Pm=function t(e){b(this,t),this.segmentGroup=e||null},Mm=function t(e){b(this,t),this.urlTree=e};function Sm(t){return new U((function(e){return e.error(new Pm(t))}))}function Tm(t){return new U((function(e){return e.error(new Mm(t))}))}function Am(t){return new U((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}))}var Im=function(){function t(e,n,r,i,o){b(this,t),this.configLoader=n,this.urlSerializer
1=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(ve)}return w(t,[{key:"apply",value:function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(nt((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(Qv((function(e){if(e instanceof Mm)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Pm)throw t.noMatchError(e);throw e})))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(nt((function(n){return e.createUrlTree(n,t.queryParams,t.fragment)}))).pipe(Qv((function(t){if(t instanceof Pm)throw e.noMatchError(t);throw t})))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var r=t.segments.length>0?new Sy([],{primary:t}):t;return new My(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(nt((function(t){return new Sy([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return jp({});var o=[],a=[],s={};return xy(n,(function(n,i){var u=function(n,i){return r.expandSegmentGroup(t,e,i,n)}(i,n).pipe(nt((function(t){return s[i]=t})));"primary"===i?o.push(u):a.push(u)})),jp.apply(null,o.concat(a)).pipe(Av(),function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?vd((function(e,n){return t(e,n,r)})):F,Dv(1),n?Vv(e):jv((function(){return new Sv})))}}(),nt((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,r,i,a){var s=this;return jp.apply(void 0,o(n)).pipe(Yv((function(o){return s.expandSegmentAgainstRoute(t,e,n,o,r,i,a).pipe(Qv((function(t){if(t instanceof Pm)return jp(null);throw t})))})),Zv((function(t){return!!t})),Qv((function(t,n){if(t instanceof Sv||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return jp(new Sy([],{}));throw new Pm(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return jm(r)!==o?Sm(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Sm(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tm(o):this.lineralizeSegments(n,o).pipe(st((function(n){var o=new Sy(n,{});return i.expandSegment(t,o,e,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Dm(e,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Sm(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?Tm(f):this.lineralizeSegments(r,f).pipe(st((function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(nt((function(t){return n._loadedConfig=t,new Sy(r,{})}))):jp(new Sy(r,{}));var o=Dm(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return Sm(e);var l=r.slice(c);return this.getChildConfig(t,n,r).pipe(st((function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return Nm(t,e,n)&&"primary"!==jm(n)}))}(t,n,r)?{segmentGroup:Rm(new Sy(e,function(t,e){var n={};n.primary=e;var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&"primary"!==jm(o)&&(n[jm(o)]=new Sy([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new Sy(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Nm(t,e,n)}
1))}(t,n,r)?{segmentGroup:Rm(new Sy(t.segments,function(t,e,n,r){var i,o={},a=s(n);try{for(a.s();!(i=a.n()).done;){var u=i.value;Nm(t,e,u)&&!r[jm(u)]&&(o[jm(u)]=new Sy([],{}))}}catch(c){a.e(c)}finally{a.f()}return Object.assign(Object.assign({},r),o)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,l,r),a=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(nt((function(t){return new Sy(u,t)}))):0===r.length&&0===c.length?jp(new Sy(u,{})):i.expandSegment(n,a,r,c,"primary",!0).pipe(nt((function(t){return new Sy(u.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?jp(new Cm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?jp(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st((function(n){return n?r.configLoader.load(t.injector,e).pipe(nt((function(t){return e._loadedConfig=t,t}))):function(t){return new U((function(e){return e.error(by("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):jp(new Cm([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;return i&&0!==i.length?jp(i.map((function(r){var i,o=t.get(r);if(function(t){return t&&km(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!km(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Ey(i)}))).pipe(Em(),_p((function(t){if(Om(t)){var e=by('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}})),nt((function(t){return!0===t}))):jp(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return jp(n);if(r.numberOfChildren>1||!r.children.primary)return Am(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new My(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return xy(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return xy(e.children,(function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)})),new Sy(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n,r=0,i=s(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return t}}]),t}();function Dm(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:{}};var r=(e.matcher||_y)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Rm(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Sy(t.segments.concat(e.segments),e.children)}return t}function Nm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function jm(t){return t.outlet||"primary"}var Fm=function t(e){b(this,t),this.path=e,this.route=this.path[this.path.length-1]},Lm=function t(e,n){b(this,t),this.component=e,this.route=n};function Um(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Vm(t,e,n){var r=Xy(t),i=t.value;xy(r,(function(t,r){Vm(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new Lm(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function Bm(t,e){return null!==t&&e&&e(new dy(t)),jp(!0)}function qm(t,e){return null!==t&&e&&e(new fy(t)),jp(!0)}function zm(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?jp(r.map((function(r){return Tv((function(){var i,o=Um(r,e,n);if(function(t){return t&&km(t.canActivate)}(o))i=Ey(o.canActivate(e,t));else{if(!km(o))throw new Error("Invalid CanActivate guard");i=Ey(o(e,t))}return i.pipe(Zv())}))}))).pipe(Em()):jp(!0)}function Hm(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Tv((function(){return jp(e.guards.map((function(i){var o,a=Um(i,e.node,n);if(function(t){return t&&km(t.canActivateChild)}(a))o=Ey(a.canActivateChild(r,t));else{if(!km(a))throw new Error("Invalid CanActivateChild guard");o=Ey(a(r,t))}
1return o.pipe(Zv())}))).pipe(Em())}))}));return jp(i).pipe(Em())}var Wm=function t(){b(this,t)},Gm=function(){function t(e,n,r,i,o,a){b(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return w(t,[{key:"recognize",value:function(){try{var t=$m(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new rm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zy(n,e),i=new im(this.url,r);return this.inheritParamsAndData(i._root),jp(i)}catch(o){return new U((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=nm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,r=this,i=Iy(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[t.value.outlet]=t.value})),i.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),i}},{key:"processSegment",value:function(t,e,n,r){var i,o=s(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(u){if(!(u instanceof Wm))throw u}}}catch(c){o.e(c)}finally{o.f()}if(this.noLeftoversInUrl(e,n,r))return[];throw new Wm}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo)throw new Wm;if((t.outlet||"primary")!==r)throw new Wm;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?Oy(n).parameters:{};i=new rm(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xm(t),r,t.component,t,Qm(e),Km(e)+n.length,Jm(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Wm;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||_y)(n,t,e);if(!r)throw new Wm;var i={};xy(r.posParams,(function(t,e){i[e]=t.path}));var 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=u.consumedSegments,a=n.slice(u.lastChild),i=new rm(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xm(t),r,t.component,t,Qm(e),Km(e)+o.length,Jm(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=$m(e,o,a,c,this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var p=this.processChildren(c,h);return[new Zy(i,p)]}if(0===c.length&&0===f.length)return[new Zy(i,[])];var d=this.processSegment(c,h,f,"primary");return[new Zy(i,d)]}}]),t}();function Qm(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Km(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function $m(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return Ym(t,e,n)&&"primary"!==Zm(n)}))}(t,n,r)){var o=new Sy(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var o,a=s(n);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(""===u.path&&"primary"!==Zm(u)){var c=new Sy([],{});
1c._sourceSegment=t,c._segmentIndexShift=e.length,i[Zm(u)]=c}}}catch(l){a.e(l)}finally{a.f()}return i}(t,e,r,new Sy(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return Ym(t,e,n)}))}(t,n,r)){var a=new Sy(t.segments,function(t,e,n,r,i,o){var a,u={},c=s(r);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(Ym(t,n,l)&&!i[Zm(l)]){var h=new Sy([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===o?t.segments.length:e.length,u[Zm(l)]=h}}}catch(f){c.e(f)}finally{c.f()}return Object.assign(Object.assign({},i),u)}(t,e,n,r,t.children,i));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var u=new Sy(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Ym(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zm(t){return t.outlet||"primary"}function Xm(t){return t.data||{}}function Jm(t){return t.resolve||{}}function tb(t){return function(e){return e.pipe(rd((function(e){var n=t(e);return n?at(n).pipe(nt((function(){return e}))):at([e])})))}}var eb,nb=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return n}(function(){function t(){b(this,t)}return w(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),rb=((eb=function t(){b(this,t)}).\u0275fac=function(t){return new(t||eb)},eb.\u0275cmp=Te({type:eb,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Qa(0,"router-outlet")},directives:function(){return[Eb]},encapsulation:2}),eb);function ib(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<t.length;n++){var r=t[n];ob(r,ab(e,r))}}function ob(t,e){if(!t)throw new Error("\n      Invalid configuration of route '".concat(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 '".concat(e,"': Array cannot be specified"));if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '".concat(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 '".concat(e,"': redirectTo and children cannot be used together"));if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and loadChildren cannot be used together"));if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': children and loadChildren cannot be used together"));if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and component cannot be used together"));if(t.path&&t.matcher)throw new Error("Invalid configuration of route '".concat(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 '".concat(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 '".concat(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 '".concat(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: \"".concat(e,'", redirectTo: "').concat(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 '".concat(e,"': pathMatch can only be set to 'prefix' or 'full'"));t.children&&ib(t.children,e)}function ab(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}
1function sb(t){var e=t.children&&t.children.map(sb),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=rb),n}var ub=new re("ROUTES"),cb=function(){function t(e,n,r,i){b(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return w(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(nt((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Cm(ky(i.injector.get(ub)).map(sb),i)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?at(this.loader.load(t)):Ey(t()).pipe(st((function(t){return t instanceof ye?jp(t):at(e.compiler.compileModuleAsync(t))})))}}]),t}(),lb=function t(){b(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new hb,this.attachRef=null},hb=function(){function t(){b(this,t),this.contexts=new Map}return w(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new lb,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),fb=function(){function t(){b(this,t)}return w(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function pb(t){throw t}function db(t,e,n){return e.parse("/")}function gb(t,e){return jp(null)}var vb,yb,mb,bb=((mb=function(){function t(e,n,r,i,o,a,s,u){var c=this;b(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new W,this.errorHandler=pb,this.malformedUriErrorHandler=db,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:gb,afterPreactivation:gb},this.urlHandlingStrategy=new fb,this.routeReuseStrategy=new nb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(ve),this.console=o.get(Ju);var l=o.get(fc);this.isNgZoneEnabled=l instanceof fc,this.resetConfig(u),this.currentUrlTree=new My(new Sy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cb(a,s,(function(t){return c.triggerEvent(new ly(t))}),(function(t){return c.triggerEvent(new hy(t))})),this.routerState=tm(this.currentUrlTree,this.rootComponentType),this.transitions=new xv({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()}return w(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(vd((function(t){return 0!==t.id})),nt((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),rd((function(t){var r,i,o,a,u=!1,c=!1;return jp(t).pipe(_p((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),rd((function(t){var r,i,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return jp(t).pipe(rd((function(t){var r=e.transitions.getValue();return n.next(new ey(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Rp:[t]})),rd((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(rd((function(t){return function(t,e,n,r,i){return new Im(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,a).pipe(nt((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),_p((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,o){return function(r){return r.pipe(st((function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Gm(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(nt((function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})})));var a})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),_p((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),_p((function(t){var r=new oy(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,c=t.extractedUrl,l=t.source,h=t.restoredState,f=t.extras,p=new ey(u,e.serializeUrl(c),l,h);n.next(p);var d=tm(c,e.rootComponentType).snapshot;return jp(Object.assign(Object.assign({},t),{targetSnapshot:d,urlAfterRedirects:c,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}
1))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Rp})),tb((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),_p((function(t){var n=new ay(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),nt((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Xy(n);return e.children.forEach((function(e){!function(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,s=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ay(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ay(t.url,e.url)||!wy(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!um(t,e)||!wy(t.queryParams,e.queryParams);case"paramsChange":default:return!um(t,e)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Fm(i)):(a.data=s.data,a._resolvedData=s._resolvedData),t(e,n,a.component?u?u.children:null:r,i,o),c&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new Lm(u.outlet.component,s))}else s&&Vm(n,u,o),o.canActivateChecks.push(new Fm(i)),t(e,null,a.component?u?u.children:null:r,i,o)}(e,a[e.value.outlet],r,i.concat([e.value]),o),delete a[e.value.outlet]})),xy(a,(function(t,e){return Vm(t,r.getContext(e),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(t,e){return function(n){return n.pipe(st((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?jp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return at(t).pipe(st((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?jp(o.map((function(o){var a,s=Um(o,e,i);if(function(t){return t&&km(t.canDeactivate)}(s))a=Ey(s.canDeactivate(t,e,n,r));else{if(!km(s))throw new Error("Invalid CanDeactivate guard");a=Ey(s(t,e,n,r))}return a.pipe(Zv())}))).pipe(Em()):jp(!0)}(t.component,t.route,n,e,r)})),Zv((function(t){return!0!==t}),!0))}(s,r,i,t).pipe(st((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return at(e).pi
1pe(Yv((function(e){return at([qm(e.route.parent,r),Bm(e.route,r),Hm(t,e.path,n),zm(t,e.route,n)]).pipe(Av(),Zv((function(t){return!0!==t}),!0))})),Zv((function(t){return!0!==t}),!0))}(r,a,t,e):jp(n)})),nt((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),_p((function(t){if(Om(t.guardsResult)){var n=by('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),_p((function(t){var n=new sy(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),vd((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new ry(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),tb((function(t){if(t.guards.canActivateChecks.length)return jp(t).pipe(_p((function(t){var n=new uy(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),rd((function(t){var r,i,o=!1;return jp(t).pipe((r=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(st((function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return jp(t);var o=0;return at(n).pipe(Yv((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return jp({});var o={};return at(i).pipe(st((function(i){return function(t,e,n,r){var i=Um(t,e,r);return Ey(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(_p((function(t){o[i]=t})))})),Dv(1),st((function(){return Object.keys(o).length===i.length?jp(o):Rp})))}(t._resolve,t,e,r).pipe(nt((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),nm(t,n).resolve),null})))}(t.route,e,r,i)})),_p((function(){return o++})),Dv(1),st((function(e){return o===n.length?jp(t):Rp})))})))}),_p({next:function(){return o=!0},complete:function(){if(!o){var r=new ry(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),t.resolve(!1)}}}))})),_p((function(t){var n=new cy(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})))})),tb((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),nt((function(t){var n=function(t,e,n){var r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map((function(n){var i,o=s(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(u){o.e(u)}finally{o.f()}return t(e,n)}))}(e,n,r);return new Zy(i,o)}var a=e.retrieve(n.value);if(a){var u=a.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(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,u),u}var c,l=new em(new xv((c=n.value).url),new xv(c.params),new xv(c.queryParams),new xv(c.fragment),new xv(c.data),c.outlet,c.component,c),h=n.children.map((function(n){return t(e,n)}));return new Zy(l,h)}(t,e._root,n?n._root:void 0);return new Jy(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})})),_p((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(i=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},nt((function(t){return new _m(o,t.targetRouterState,t.currentRouterState,a).activate(i),t}))),_p({next:function(){u=!0},complete:function(){u=!0}}),(r=function(){if(!u&&!c){e.resetUrlToCurrentUrlTree();var r=new ry(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(r),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new Xv(r))}),Qv((function(r){if(c=!0,(s=r)&&s.ngNavigationCancelingError){var i=Om(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new ry(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout((function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new iy(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var s;return Rp})))})))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout((function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)}),0),t.lastLocationChangeInfo=n})))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var 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))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){ib(t),this.config=t.map(sb),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,i=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;Wr()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:i,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=a?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return hm(e.root,e.root,e,r,i);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new fm(!0,0,t);var e=0,n=!1,r=t.reduce((function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return xy(r.outlets,(function(t,e){a[e]="string"==typeof t?t.split("/"):t})),[].concat(o(t),[{outlets:a}])}if(r.segmentPath)return[].concat(o(t),[r.segmentPath])}return"string"!=typeof r?[].concat(o(t),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))})),t):[].concat(o(t),[r])}),[]);return new fm(n,e,r)}(n);if(a.toRoot())return hm(e.root,new Sy([],{}),e,r,i);var s=function(t,e,n){if(t.isAbsolute)return new pm(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new pm(r,r===e.root,0)}var i=cm(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new pm(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),u=s.processChildren?gm(s.segmentGroup,s.index,a.commands):dm(s.segmentGroup,s.index,a.commands);return hm(s.segmentGroup,u,e,r,i)}(c,this.currentUrlTree,t,h,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Wr()&&this.isNgZoneEnabled&&!fc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did 
1you forget to call 'ngZone.run()'?");var n=Om(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Om(t))return Py(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Py(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e[n]=r),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new ny(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,r,i){var o,a,s,u=this.getTransition(),c="imperative"!==e&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===t.toString();if(c&&l)return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise((function(t,e){o=t,a=e}));var h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,r){var 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}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),t}()).\u0275fac=function(t){return new(t||mb)(fe(oa),fe(Dy),fe(hb),fe(pl),fe(_a),fe(Dc),fe(cc),fe(void 0))},mb.\u0275prov=Mt({token:mb,factory:mb.\u0275fac}),mb),_b=((yb=function(){function t(e,n,r,i,o){b(this,t),this.router=e,this.route=n,this.commands=[],this.onChanges=new W,null==r&&i.setAttribute(o.nativeElement,"tabindex","0")}return w(t,[{key:"ngOnChanges",value:function(t){this.onChanges.next(this)}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Wr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}},{key:"onClick",value:function(){var t={skipLocationChange:Cb(this.skipLocationChange),replaceUrl:Cb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cb(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||yb)(Ba(bb),Ba(em),qa("tabindex"),Ba(Bs),Ba(Fs))},yb.\u0275dir=je({type:yb,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Ja("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:[tn]}),yb),wb=((vb=function(){function t(e,n,r){var i=this;b(this,t),this.router=e,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new W,this.subscription=e.events.subscribe((function(t){t instanceof ny&&i.updateTargetUrlAndHref()}))}return w(t,[{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Wr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}},{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,n,r,i){if(0!==t||e||n||r||i)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Cb(this.skipLocationChange),replaceUrl:Cb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cb(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||vb)(Ba(bb),Ba(em),Ba(ol))},vb.\u0275dir=je({type:vb,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Ja("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(ms("href",e.href,yi),Fa("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:[tn]}),vb);function Cb(t){return""===t||!!t}var kb,Ob,xb,Eb=((kb=function(){function t(e,n,r,i,o){b(this,t),this.parentContexts=e,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Su,this.deactivateEvents=new Su,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}return w(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Pb(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),t}()).\u0275fac=function(t){return new(t||kb)(Ba(hb),Ba(cu),Ba(js),qa("name"),Ba(ra))},kb.\u0275dir=je({type:kb,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),kb),Pb=function(){function t(e,n,r){b(this,t),this.route=e,this.childContexts=n,this.parent=r}return w(t,[{key:"get",value:function(t,e){return t===em?this.route:t===hb?this.childContexts:this.parent.get(t,e)}}]),t}(),Mb=function t(){b(this,t)},Sb=function(){function t(){b(this,t)}return w(t,[{key:"preload",value:function(t,e){return jp(null)}}]),t}(),Tb=((xb=function(){function t(e,n,r,i,o){b(this,t),this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=new cb(n,r,(function(t){return e.triggerEvent(new ly(t))}),(function(t){return e.triggerEvent(new hy(t))}))}return w(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(vd((function(t){return t instanceof ny})),Yv((function(){return t.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var t=this.injector.get(ve);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var n,r=[],i=s(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;
1if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(t,o)):o.children&&r.push(this.processRoutes(t,o.children))}}catch(u){i.e(u)}finally{i.f()}return at(r).pipe(lt(),nt((function(t){})))}},{key:"preloadConfig",value:function(t,e){var n=this;return this.preloadingStrategy.preload(e,(function(){return n.loader.load(t.injector,e).pipe(st((function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})))}))}}]),t}()).\u0275fac=function(t){return new(t||xb)(fe(bb),fe(Dc),fe(cc),fe(_a),fe(Mb))},xb.\u0275prov=Mt({token:xb,factory:xb.\u0275fac}),xb),Ab=((Ob=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return w(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof ey?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ny&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof vy&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new vy(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||Ob)(fe(bb),fe(Ql),fe(void 0))},Ob.\u0275prov=Mt({token:Ob,factory:Ob.\u0275fac}),Ob),Ib=new re("ROUTER_CONFIGURATION"),Db=new re("ROUTER_FORROOT_GUARD"),Rb=[pl,{provide:Dy,useClass:Ry},{provide:bb,useFactory:function(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new bb(null,t,e,n,r,i,o,ky(a));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Wc();l.events.subscribe((function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[Dy,hb,pl,_a,Dc,cc,ub,Ib,[function(){return function t(){b(this,t)}}(),new Ct],[function(){return function t(){b(this,t)}}(),new Ct]]},hb,{provide:em,useFactory:function(t){return t.routerState.root},deps:[bb]},{provide:Dc,useClass:jc},Tb,Sb,function(){function t(){b(this,t)}return w(t,[{key:"preload",value:function(t,e){return e().pipe(Qv((function(){return jp(null)})))}}]),t}(),{provide:Ib,useValue:{enableTracing:!1}}];function Nb(){return new xc("Router",bb)}var jb,Fb=((jb=function(){function t(e,n){b(this,t)}return w(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Rb,Bb(e),{provide:Db,useFactory:Vb,deps:[[bb,new Ct,new Ot]]},{provide:Ib,useValue:n||{}},{provide:ol,useFactory:Ub,deps:[Kc,[new wt(ll),new Ct],Ib]},{provide:Ab,useFactory:Lb,deps:[bb,Ql,Ib]},{provide:Mb,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Sb},{provide:xc,multi:!0,useFactory:Nb},[zb,{provide:Wu,multi:!0,useFactory:Hb,deps:[zb]},{provide:Gb,useFactory:Wb,deps:[zb]},{provide:Xu,multi:!0,useExisting:Gb}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Bb(e)]}}}]),t}()).\u0275mod=Re({type:jb}),jb.\u0275inj=St({factory:function(t){return new(t||jb)(fe(Db,8),fe(bb,8))}}),jb);
1function Lb(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ab(t,e,n)}function Ub(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new fl(t,e):new hl(t,e)}function Vb(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Bb(t){return[{provide:wa,multi:!0,useValue:t},{provide:ub,multi:!0,useValue:t}]}var qb,zb=((qb=function(){function t(e){b(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new W}return w(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Zc,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),r=t.injector.get(bb),i=t.injector.get(Ib);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return t.initNavigation?jp(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Ib),n=this.injector.get(Tb),r=this.injector.get(Ab),i=this.injector.get(bb),o=this.injector.get(Ac);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())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||qb)(fe(_a))},qb.\u0275prov=Mt({token:qb,factory:qb.\u0275fac}),qb);function Hb(t){return t.appInitializer.bind(t)}function Wb(t){return t.bootstrapListener.bind(t)}var Gb=new re("Router Initializer");function Qb(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(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(a,s)}u((r=r.apply(t,e||[])).next())}))}var Kb,$b,Yb,Zb,Xb,Jb=((Xb=function(){function t(e){b(this,t),this.afs=e}return w(t,[{key:"getCollection",value:function(t,e){var n=this;return new Promise((function(r,i){var o=n.afs.collection(t).get(e).subscribe((function(t){r(t),o.unsubscribe()}),i)}))}},{key:"getLiveCollection",value:function(t){return this.afs.collection(t).valueChanges()}},{key:"createDocument",value:function(t,e){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.afs.collection(t).add(e);case 2:return r=n.sent,i=r.id,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"createDocumentWithId",value:function(t,e,n){return this.afs.doc("".concat(t,"/").concat(e)).set(n)}},{key:"getDocuments",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0;return new Promise((function(l,h){var f=e.afs.collection(t,(function(t){var e,c=t,l=s(n);try{for(l.s();!(e=l.n()).done;){var h,f=e.value;c=(h=c).where.apply(h,o(f))}}catch(p){l.e(p)}finally{l.f()}return r&&(c=c.limit(r)),a&&(c=c.orderBy(a,null!=i?i:"asc")),u&&(c=c.startAfter(u)),c})).get(c).subscribe((function(t){l(t.docs.map((function(t){return t.data()}))),f.unsubscribe()}),h)}))}},{key:"getLiveDocument",value:function(t){return this.afs.doc(t).valueChanges()}},{key:"getLiveDocuments",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return this.afs.collection(t,(function(t){var u,c=t,l=s(e);try{for(l.s();!(u=l.n()).done;){var h,f=u.value;c=(h=c).where.apply(h,o(f))}}catch(p){l.e(p)}finally{l.f()}return n&&(c=c.limit(n)),i&&(c=c.orderBy(i,null!=r?r:"asc")),a&&(c=c.startAfter(a)),c})).snapshotChanges()}},{key:"setDocument",value:function(t,e,n){return this.afs.doc(t).set(e,n)}},{key:"updateDocument",value:function(t,e){return this.afs.doc(t).update(e)}},{key:"deleteDocument",value:function(t){return this.afs.doc(t).delete()}},{key:"arrayUnion",value:function(t,e,n){var r={};return r[e]=zp.firestore.FieldValue.arrayUnion(n),this.afs.doc(t).update(r)}},{key:"arrayRemove",value:function(t,e,n){var r={};return r[e]=zp.firestore.FieldValue.arrayRemove(n),this.afs.doc(t).update(r)}},{key:"generateId",value:function(){return this.afs.createId()}}]),t}()).\u0275fac=function(t){return new(t||Xb)(fe(jd))},Xb.\u0275prov=Mt({token:Xb,factory:Xb.\u0275fac,providedIn:"root"}),Xb),t_=((Zb=function(){function t(e){b(this,t),this.db=e}return w(t,[{key:"loadUserData",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([new Promise((function(e,r){return n.db.getLiveDocument("users/"+t).subscribe((function(t){n.userData=t,t&&e(t)}),r)})),new Promise((function(e,r){return n.db.getLiveDocument("users/".concat(t,"/private/membership")).subscribe((function(t){n.membershipData=t,t&&e(t)}),r)}))]));case 1:case"end":return e.stop()}}),e)})))}},{key:"createUserDocument",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.db.createDocumentWithId("users",t.uid,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"logout",value:function(){this.userData=null,this.membershipData=null}}]),t}()).\u0275fac=function(t){return new(t||Zb)(fe(Jb))},Zb.\u0275prov=Mt({token:Zb,factory:Zb.\u0275fac,providedIn:"root"}),Zb),e_=((Yb=function(){function t(e){b(this,t),this.afs=e,this.storageRef=this.afs.storage.ref()}return w(t,[{key:"uploadFile",value:function(t,e){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.storageRef.child(t).put(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getUrl",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageRef.child(t).getDownloadURL();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||Yb)(fe(kv))},Yb.\u0275prov=Mt({token:Yb,factory:Yb.\u0275fac,providedIn:"root"}),Yb),n_=(($b=function(){function t(e,n){b(this,t),this.db=e,this.fs=n,this.inbox=new Map,this.streamSubscriptions=[]}return w(t,[{key:"loadUrls",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,i,o,a,u,c,l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=43;break}i=r.value,o=s(i.files),e.prev=6,o.s();case 8:if((a=o.n()).done){e.next=15;break}return u=a.value,e.next=12,this.fs.getUrl(u.path);case 12:u.url=e.sent;case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(6),o.e(e.t0);case 20:return e.prev=20,o.f(),e.finish(20);case 23:c=s(i.images),e.prev=24,c.s();case 26:if((l=c.n()).done){e.next=33;break}return h=l.value,e.next=30,this.fs.getUrl(h.path);case 30:h.url=e.sent;case 31:e.next=26;break;case 33:e.next=38;break;case 35:e.prev=35,e.t1=e.catch(24),c.e(e.t1);case 38:return e.prev=38,c.f(),e.finish(38);case 41:e.next=3;break;case 43:e.next=48;break;case 45:e.prev=45,e.t2=e.catch(1),n.e(e.t2);case 48:return e.prev=48,n.f(),e.finish(48);case 51:case"end":return e.stop()}}),e,this,[[1,45,48,51],[6,17,20,23],[24,35,38,41]])})))}},{key:"loadLiveChats",value:function(t){var e=this;this.chatsSubscription=this.db.getLiveDocuments("chats",[["participantIds","array-contains",t]]).pipe(nt((function(t){return Object.keys(t).map((function(e){return t[e]}))})),nt((function(t){return t.map((function(t){return t.payload.doc.data()}))}))).subscribe((function(t){e.chats=t,t.forEach((function(t){var n=e.inbox.get(t.id);if(!n){var r=e.db.getLiveDocuments("chats/".concat(t.id,"/messages"),[],1,"desc","time").pi
1pe(nt((function(t){return Object.keys(t).map((function(e){return t[e]}))})),nt((function(t){return t.map((function(t){return t.payload.doc.data()}))}))).subscribe((function(r){return Qb(e,void 0,void 0,regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadUrls(r);case 2:(n=this.inbox.get(t.id))?(i=n).push.apply(i,o(r)):this.inbox.set(t.id,o(r));case 4:case"end":return e.stop()}}),e,this)})))}));e.streamSubscriptions.push(r)}}))}))}},{key:"loadMessages",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return Qb(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.db.getDocuments("chats/".concat(t,"/messages"),[],n,"desc","time",e);case 2:return a=r.sent,r.next=5,this.loadUrls(a);case 5:return a.reverse(),(i=this.inbox.get(t)).unshift.apply(i,o(a)),r.abrupt("return",a.length<10);case 8:case"end":return r.stop()}}),r,this)})))}},{key:"createChat",value:function(t,e,n){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={name:e,createdAt:zp.firestore.Timestamp.fromDate(new Date),participantIds:[t.uid,"GPoeZD0Jdvaklh6M0ZqUev1CVrm1"],participants:[t,{name:"Imelda Fossu",uid:"GPoeZD0Jdvaklh6M0ZqUev1CVrm1"}],id:this.db.generateId()},r.next=3,this.db.createDocumentWithId("chats",i.id,i);case 3:return r.next=5,this.db.createDocument("chats/".concat(i.id,"/messages"),n);case 5:case"end":return r.stop()}}),r,this)})))}},{key:"sendMessage",value:function(t,e){return e.id=this.db.generateId(),this.db.createDocumentWithId("chats/".concat(t,"/messages"),e.id,e)}},{key:"logout",value:function(){this.chats=null,this.inbox=new Map,this.chatsSubscription.unsubscribe(),this.streamSubscriptions.forEach((function(t){return t.unsubscribe()}))}},{key:"generateDummyMessages",value:function(t){var e=zp.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:zp.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:zp.firestore.Timestamp.fromMillis(e.toMillis()+300),status:"SEEN",files:[],images:[],id:this.db.generateId()}]}}]),t}()).\u0275fac=function(t){return new(t||$b)(fe(Jb),fe(e_))},$b.\u0275prov=Mt({token:$b,factory:$b.\u0275fac,providedIn:"root"}),$b),r_=((Kb=function(){function t(e,n,r,i){var o=this;b(this,t),this.afAuth=e,this.us=n,this.cs=r,this.db=i,this.user=null,this.authState=new xv(!1),this.afAuth.authState.subscribe((function(t){return Qb(o,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.user=t,!t){e.next=8;break}return e.next=4,this.us.loadUserData(t.uid);case 4:this.authState.next(!0),this.cs.loadLiveChats(t.uid),e.next=9;break;case 8:this.authState.next(!1);case 9:case"end":return e.stop()}}),e,this)})))}))}return w(t,[{key:"isAuthenticated",value:function(){return this.authState.value}},{key:"resetPassword",value:function(t){return this.afAuth.sendPasswordResetEmail(t)}},{key:"login",value:function(t,e){var n=this;return new Promise((function(r,i){return Qb(n,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.length<6)){n.next=2;break}return n.abrupt("return",i({code:"auth/wrong-password",message:"Invalid password."}));case 2:return n.prev=2,n.next=5,this.afAuth.signInWithEmailAndPassword(t,e);case 5:if(!(o=n.sent).user){n.next=8;break}return n.abrupt("return",(this.user=o.user,r()));case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),i(n.t0);case 13:case"end":return n.stop()}}
1),n,this,[[2,10]])})))}))}},{key:"emailExists",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.afAuth.fetchSignInMethodsForEmail(t);case 2:return e.t0=e.sent.length,e.abrupt("return",0!==e.t0);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"signup",value:function(t,e,n){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.afAuth.createUserWithEmailAndPassword(e,n);case 2:return i=r.sent,r.next=5,i.user.updateProfile({displayName:t});case 5:return r.abrupt("return",i.user);case 6:case"end":return r.stop()}}),r,this)})))}},{key:"usernameExists",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.db.getDocuments("users",[["username","==",t]]);case 2:return e.t0=e.sent.length,e.abrupt("return",e.t0>0);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"logout",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.cs.logout(),this.us.logout(),t.next=4,this.afAuth.signOut();case 4:this.authState.next(!1),this.user=null;case 6:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||Kb)(fe(hd),fe(t_),fe(n_),fe(Jb))},Kb.\u0275prov=Mt({token:Kb,factory:Kb.\u0275fac,providedIn:"root"}),Kb),i_={base:{iconColor:"#9aa6b3",color:"#999999",fontSize:"14px",fontFamily:"Poppins"},invalid:{iconColor:"#ff3860",color:"#ff3860"}},o_={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}}},a_=a("vDqi"),s_=a.n(a_),u_=a("BkRI"),c_=a.n(u_),l_=a("Qyje"),h_=a.n(l_),f_=a("YO3V"),p_=a.n(f_),d_=a(1);function g_(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 y_(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){g_(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 m_(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 b_={},__=0;function w_(){return"undefined"!=typeof process&&!process.browser}function C_(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}var k_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function O_(t){var e=t.query,n={};return delete e.resolveLinks,n.params=c_()(e),n}function x_(t){return function t(e){return Object.keys(e).forEach((function(n){var r=e[n];p_()(r)&&t(r)})),Object.freeze(e)}(t.sys||{}),t}function E_(){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 P_(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,
1configurable:!1,writable:!1,value:function(){return c_()(this)}})}function M_(t){return x_(P_(t))}var S_=a("3/DG"),T_=a.n(S_);function A_(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 T_()(this,t,e,(function(t,e){return{sys:{type:"Link",linkType:"Entry",id:e.sys.id,circular:!0}}}))}})}var I_="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 D_(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 R_={},N_=function(t){return t&&t.sys&&"Link"===t.sys.type},j_=function(t,e){if(e=e||{},!t.items)return[];var n=c_()(t),r=Object.keys(n.includes||{}).reduce((function(e,n){return[].concat(D_(e),D_(t.includes[n]))}),[]),i=[].concat(D_(n.items),D_(r));return 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":I_(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!==R_}));for(var e in t)t[e]===R_&&delete t[e];return t}(e))}return e}(n,N_,(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((a=t[n].sys).type===r&&a.id===i)return t[n];var a;return R_}(t)}(t,e);return r===R_?n?r:e:r}(i,t,e.removeUnresolved)}),e.removeUnresolved))})),n.items};function F_(t){return x_(P_(c_()(t)))}function L_(t,e){var n=e.resolveLinks,r=e.removeUnresolved,i=A_(P_(c_()(t)));return n&&(i.items=j_(i,{removeUnresolved:r,itemEntryPoints:["fields"]})),x_(i)}function U_(t){return x_(P_(c_()(t)))}function V_(t){return x_(P_(c_()(t)))}function B_(t){return x_(P_(c_()(t)))}function q_(t){return x_(P_(c_()(t)))}function z_(t){return x_(P_(c_()(t)))}function H_(t){return x_(P_(c_()(t)))}var W_={space:u,entry:c,asset:p,contentType:y,locale:_};function G_(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 Q_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G_(Object(n),!0).forEach((function(e){K_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $_(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=Q_({},r,{},n),o=i.resolveLinks,a=i.removeUnresolved,s=i.paginate,u={paginate:s};return Z_(t,[],e,u).then((function(t){o&&(t.items=j_(t,{removeUnresolved:a,itemEntryPoints:["fields"]}));var e=Y_(t.items);return t.nextSyncToken&&(e.nextSyncToken=t.nextSyncToken),t.nextPageToken&&(e.nextPageToken=t.nextPageToken),x_(A_(P_(e)))}),(function(t){throw t}))}function Y_(t){var e=function(t){return function(e,n){return n.sys.type===t&&e.push(P_(n)),e}};return{entries:t.reduce(e("Entry"),[]),assets:t.reduce(e("Asset"),[]),deletedEntries:t.reduce(e("DeletedEntry"),[]),deletedAssets:t.reduce(e("DeletedAsset"),[])}}function Z_(t,e,n,r){var i=r.paginate;return n.nextSyncToken&&(n.sync_token=n.nextSyncToken,delete n.nextSyncToken),n.nextPageToken&&
1(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",O_({query:n})).then((function(r){var o=r.data;return e=e.concat(o.items),o.nextPageUrl?i?(delete n.initial,n.sync_token=X_(o.nextPageUrl),Z_(t,e,n,{paginate:i})):{items:e,nextPageToken:X_(o.nextPageUrl)}:o.nextSyncUrl?{items:e,nextSyncToken:X_(o.nextSyncUrl)}:void 0}))}function X_(t){var e=t.split("?");return e.length>0?e[1].replace("sync_token=",""):""}function J_(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 tw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J_(Object(n),!0).forEach((function(e){ew(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ew(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nw(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 rw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nw(Object(n),!0).forEach((function(e){iw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ow,aw,sw=((aw=function(){function t(){b(this,t),this.client=function(t){if(!t.accessToken)throw new TypeError("Expected parameter accessToken");if(!t.space)throw new TypeError("Expected parameter space");var e=rw({},{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=E_(),i.push("platform ReactNative")):w_()?(o=function(){var t=Object(d_.platform)()||"linux",e=Object(d_.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(C_()))):(o=E_(),i.push("platform browser"))}catch(a){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=rw({},e.headers,{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":n});var r,i=function t(e,n){var r=y_({},{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,a=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",u=r.defaultHostname,c=r.insecure?80:443;if(r.host&&k_.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 a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(o)||function(t,e){if(t){if("string"==typeof t)return m_(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)?m_(t,2):void 0}}
1(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 f=n.baseURL||"".concat(a,"://").concat(u,":").concat(c).concat(r.basePath,"/spaces/").concat(s);r.headers.Authorization||(r.headers.Authorization="Bearer "+r.accessToken),w_()&&(r.headers["user-agent"]="node.js/"+C_(),r.headers["Accept-Encoding"]="gzip");var p=e.create({baseURL:f,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:h_.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 p.httpClientParams=n,p.cloneWithNewParams=function(r){return t(e,y_({},c_()(n),{},r))},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,i=void 0===r?function(){}:r,o=n.requestLogger,a=void 0===o?function(){}:o;t.interceptors.request.use((function(t){return a(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,a=null,s=0;if(r)__=0;else{if(a="Connection",++__>e)return n.attempts=__,Promise.reject(n);s=Math.pow(Math.SQRT2,__),r={}}if(r.status>=500&&r.status<600){a="Server ".concat(r.status);var u=(r.headers||{})["x-contentful-request-id"]||null;if(b_[u]=b_[u]||0,b_[u]++,b_[u]>e||!u)return n.attempts=b_[u],Promise.reject(n);s=Math.pow(Math.SQRT2,b_[u])}else 429===r.status&&(a="Rate limit",r.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(s=r.headers["x-contentful-ratelimit-reset"]));return a?(s=Math.floor(1e3*s+200*Math.random()+500),t.defaults.logHandler("warning","".concat(a," error occurred. Waiting for ").concat(s," ms before retrying...")),delete i.httpAgent,delete i.httpsAgent,(o=s,new Promise((function(t){setTimeout(t,o)}))).then((function(){return t(i)}))):Promise.reject(n)}))}(p,r.retryLimit),p}(s_.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=W_.space.wrapSpace,i=W_.contentType,o=i.wrapContentType,a=i.wrapContentTypeCollection,s=W_.entry,u=s.wrapEntry,c=s.wrapEntryCollection,l=W_.asset,h=l.wrapAsset,f=l.wrapAssetCollection,p=W_.locale.wrapLocaleCollection,d=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 v(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",O_({query:t})).then((function(t){return a(t.data)}),g)},getEntry:function(t){return t?this.getEntries(tw({"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 d(t)}),g):Promise.reject(d(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 v(t),e.get("entries",O_({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),v(n),e.get("assets/"+t,O_({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),v(t),e.get("assets",O_({query:t})).then((function(t){return f(t.data)}),g)},getLocales:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(e),e.get("locales",O_({query:t})).then((function(t){return p(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,a=i.removeUnresolved;return y(e),$_(e,t,tw({resolveLinks:o,removeUnresolved:a},r))}}}({http:i,getGlobalOptions:o})}(Object.assign({},qc))}return w(t,[{key:"getContent",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.getEntries();case 2:return t.abrupt("return",t.sent.items.map((function(t){return{type:t.sys.contentType.sys.id,fields:Object.assign({id:t.sys.id},t.fields)}})));case 3:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||aw)},aw.\u0275prov=Mt({token:aw,factory:aw.\u0275fac,providedIn:"root"}),aw),uw=((ow=function(){function t(e){b(this,t),this.contentful=e,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:o_.sales,details:"Get your sales department on subscription, with daily management and reporting as well as unlimited work requests.",advantages:["\xa3".concat(o_.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:o_.marketing,details:"Get your marketing department on subscription with unlimited work requests managed via our digital platform.",advantages:["\xa3".concat(o_.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:o_.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".concat(o_.tech.monthly.price/100," per month"),"Web Development","S
1oftware 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=[]}return w(t,[{key:"loadContent",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.contentful.getContent();case 2:t.sent.forEach((function(t){"fact"===t.type?e.facts.cards.push(t.fields):"testimonial"===t.type?e.testimonials.push(t.fields):"blog"===t.type?e.blogs.push(t.fields):"project"===t.type?e.projects.push(t.fields):"question"===t.type&&e.questions.push(t.fields)}));case 3:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||ow)(fe(sw))},ow.\u0275prov=Mt({token:ow,factory:ow.\u0275fac,providedIn:"root"}),ow);function cw(t,e){1&t&&(Ka(0),Wa(1,"div",14),Wa(2,"p"),ds(3,"Login"),Ga(),Ga(),Wa(4,"button",15),Wa(5,"p"),ds(6,"Start Free Trial"),Ga(),Ga(),$a())}var lw=function(t){return{hide:t}};function hw(t,e){if(1&t){var n=Ya();Ka(0),Wa(1,"div",20),Ja("click",(function(){return En(n),ns(2).outerMenuOpen=!0}))("mouseover",(function(){return En(n),ns(2).outerMenuOpen=!0}))("mouseleave",(function(){return En(n),ns(2).outerMenuOpen=!1})),Wa(2,"p"),ds(3,"My Account"),Ga(),Wa(4,"div",21),Ja("click",(function(){return En(n),ns(2).outerMenuOpen=!0}))("mouseover",(function(){return En(n),ns(2).outerMenuOpen=!0}))("mouseleave",(function(){return En(n),ns(2).outerMenuOpen=!1})),Wa(5,"div",22),Wa(6,"p"),ds(7,"Change Billing"),Ga(),Ga(),Wa(8,"div",23),Wa(9,"p"),ds(10,"My Plan"),Ga(),Ga(),Wa(11,"div",24),Wa(12,"p"),ds(13,"Questionnaire"),Ga(),Ga(),Wa(14,"div",25),Wa(15,"p"),ds(16,"Submit Request"),Ga(),Ga(),Ga(),Ga(),$a()}if(2&t){var r=ns(2);Ni(4),za("ngClass",_u(1,lw,!r.outerMenuOpen))}}function fw(t,e){1&t&&(Wa(0,"div",26),Wa(1,"p"),ds(2,"Setup Billing"),Ga(),Ga())}function pw(t,e){1&t&&(Wa(0,"div",22),Wa(1,"p"),ds(2,"Update Card"),Ga(),Ga())}function dw(t,e){if(1&t){var n=Ya();Ua(0,hw,17,3,"ng-container",16),Ua(1,fw,3,0,"div",17),Ua(2,pw,3,0,"div",18),Wa(3,"button",19),Ja("click",(function(){return En(n),ns().logout()})),Wa(4,"p"),ds(5,"Logout"),Ga(),Ga()}if(2&t){var r=ns();za("ngIf",r.validSubscription),Ni(1),za("ngIf",!r.billingSetup),Ni(1),za("ngIf",r.billingSetup&&!r.validSubscription),Ni(1),za("disabled",r.logging)}}var gw,vw,yw,mw=((vw=function(){function t(e,n,r){b(this,t),this.auth=e,this.user=n,this.router=r,this.hideBackground=!0}return w(t,[{key:"ngOnInit",value:function(){}},{key:"logout",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logging=!0,t.next=3,this.auth.logout();case 3:this.logging=!1,this.router.navigate(["/"]);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"loggedIn",get:function(){return this.auth.authState.value}},{key:"billingSetup",get:function(){var t;return null===(t=this.user.membershipData)||void 0===t?void 0:t.cardDetails}},{key:"validSubscription",get:function(){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)}}]),t}()).\u0275fac=function(t){return new(t||vw)(Ba(r_),Ba(t_),Ba(bb))},vw.\u0275cmp=Te({type:vw,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&&(Wa(0,"div",0),Wa(1,"div",1),Qa(2,"img",2),Ga(),Wa(3,"div",3),Wa(4,"div",4),Wa(5,"div",5),Qa(6,"img",6),Ga(),Wa(7,"div",7),Wa(8,"p"),ds(9,"Our Work"),Ga(),Ga(),Wa(10,"div",8),Wa(11,"p"),ds(12,"Pricing"),Ga(),Ga(),Wa(13,"div",9),Wa(14,"p"),ds(15,"Blog"),Ga(),Ga(),Wa(16,"div",10),Wa(17,"p"),ds(18,"About"),Ga(),Ga(),Ga(),Wa(19,"div",11),Ua(20,cw,7,0,"ng-container",12),Ua(21,dw,6,4,"ng-template",null,13,Hu),Ga(),Ga(),Ga()),2&t){var n=Va(22);
1Ni(2),za("ngClass",_u(3,lw,e.hideBackground)),Ni(18),za("ngIf",!e.loggedIn)("ngIfElse",n)}},directives:[Sl,_b,Dl],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}}"]}),vw),bw=((gw=function(){function t(e){b(this,t),this.router=e}return w(t,[{key:"ngOnInit",value:function(){}},{key:"sendToSignup",value:function(){this.router.navigate(["/","signup"],{queryParams:{email:this.email}})}}]),t}()).\u0275fac=function(t){return new(t||gw)(Ba(bb))},gw.\u0275cmp=Te({type:gw,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&&(Wa(0,"form",0,1),Ja("submit",(function(){return e.sendToSignup()})),Wa(2,"input",2),Ja("ngModelChange",(function(t){return e.email=t})),Ga(),Wa(3,"button",3),ds(4," Start Free Trial "),Ga(),Ga()),2&t){var n=Va(1);Ni(2),za("ngModel",e.email),Ni(1),za("disabled",n.invalid)}},directives:[ip,tf,tp,Qh,up,ap,Jh,rp],styles:[".trial-email[_ngcontent-%COMP%]{margin:0 auto;max-width:28rem}"]}),gw),_w=a("DlQD"),ww=((yw=function(){function t(){b(this,t)}return w(t,[{key:"transform",value:function(t){return _w(t)}}]),t}()).\u0275fac=function(t){return new(t||yw)},yw.\u0275pipe=Fe({name:"mdToHtml",type:yw,pure:!0}),yw);function Cw(t,e){if(1&t&&(Wa(0,"div",4),Wa(1,"div",5),Qa(2,"img",6),Ga(),Wa(3,"h1"),ds(4),Ga(),Qa(5,"p",7),xu(6,"mdToHtml"),Ga()),2&t){var n=e.$implicit,r=ns();Ni(2),za("src",r.getCardIconUrl(n.icon),yi)("alt",n.icon),Ni(2),gs(n.title),Ni(1),za("innerHTML",Eu(6,4,n.details),vi)}}var kw,Ow,xw,Ew,Pw=((kw=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}},{key:"getCardIconUrl",value:function(t){return"../../../assets/svgs/".concat(t,"_icon.svg")}}]),t}()).\u0275fac=function(t){return new(t||kw)},kw.\u0275cmp=Te({type:kw,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&&(Wa(0,"div",0),Wa(1,"div",1),Wa(2,"h5"),ds(3),Ga(),Wa(4,"h1"),ds(5),Ga(),Ga(),Wa(6,"div",2),Ua(7,Cw,7,6,"div",3),Ga(),Ga()),2&t&&(Ni(3),gs(e.cardSectionContent.title),Ni(2),gs(e.cardSectionContent.subtitle),Ni(2),za("ngForOf",e.cardSectionContent.cards))},directives:[Al],pipes:[ww],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}"]}),kw),Mw=["*"],Sw=((Ew=function(){function t(e,n,r){b(this,t),this.el=e,this.zone=n,this.platformId=r,this.afterChange=new Su,this.beforeChange=new Su,this.breakpoint=new Su,this.destroy=new Su,this.init=new Su,this.currentIndex=0,this.slides=[],this.initialized=!1,this._removedSlides=[],this._addedSlides=[]}return w(t,[{key:"ngOnDestroy",value:function(){this.unslick()}},{key:"ngAfterViewInit",value:function(){this.ngAfterViewChecked()}},{key:"ngAfterViewChecked",value:function(){var t=this;if(!Wl(this.platformId)&&(this._addedSlides.length>0||this._removedSlides.length>0)){var e=this.slides.length-this._removedSlides.length+this._addedSlides.length;this.initialized?0===e?this.unslick():(this._addedSlides.forEach((function(e){t.slides.push(e),t.zone.runOutsideAngular((function(){t.$instance.slick("slickAdd",e.el.nativeElement)}))})),this._addedSlides=[],this._removedSlides.forEach((function(e){var n=t.slides.indexOf(e);t.slides=t.slides.filter((function(t){return t!==e})),t.zone.runOutsideAngular((function(){t.$instance.slick("slickRemove",n)}))})),this._removedSlides=[]):e>0&&this.initSlick()}}},{key:"initSlick",value:function(){var t=this;this.slides=this._addedSlides,this._addedSlides=[],this._removedSlides=[],this.zone.runOutsideAngular((function(){t.$instance=jQuery(t.el.nativeElement),t.$instance.on("init",(function(e,n){t.zone.run((function(){t.init.emit({event:e,slick:n})}))})),t.$instance.slick(t.config),t.zone.run((function(){var e;t.initialized=!0,t.currentIndex=(null===(e=t.config)||void 0===e?void 0:e.initialSlide)||0})),t.$instance.on("afterChange",(function(e,n,r){t.zone.run((function(){t.afterChange.emit({event:e,slick:n,currentSlide:r,first:0===r,last:n.$slides.length===r+n.options.slidesToScroll}),t.currentIndex=r}))})),t.$instance.on("beforeChange",(function(e,n,r,i){t.zone.run((function(){t.beforeChange.emit({event:e,slick:n,currentSlide:r,nextSlide:i}),t.currentIndex=i}))})),t.$instance.on("breakpoint",(function(e,n,r){t.zone.run((function(){t.breakpoint.emit({event:e,slick:n,breakpoint:r})}))})),t.$instance.on("destroy",(function(e,n){t.zone.run((function(){t.destroy.emit({event:e,slick:n}),t.initialized=!1}))}))}))}},{key:"addSlide",value:function(t){this._addedSlides.push(t)}},{key:"removeSlide",value:function(t){this._removedSlides.push(t)}},{key:"slickGoTo",value:function(t){var e=this;this.zone.runOutsideAngular((function(){e.$instance.slick("slickGoTo",t)}))}},{key:"slickNext",value:function(){var t=this;this.zone.runOutsideAngular((function(){t.$instance.slick("slickNext")}))}},{key:"slickPrev",value:function(){var t=this;this.zone.runOutsideAngular((function(){t.$instance.slick("slickPrev")}))}},{key:"slickPause",value:function(){var t=this;this.zone.runOutsideAngular((function(){t.$instance.slick("slickPause")}))}},{key:"slickPlay",value:function(){var t=this;this.zone.runOutsideAngular((function(){t.$instance.slick("slickPlay")}))}},{key:"unslick",value:function(){var t=this;this.$instance&&(this.zone.runOutsideAngular((function(){t.$instance.slick("unslick")})),this.$instance=void 0),this.initialized=!1}},{key:"ngOnChanges",value:function(t){var e=this;if(this.initialized){var n=t.config;if(n.previousValue!==n.currentValue&&void 0!==n.currentValue){var r=n.currentValue.refresh,i=Object.assign({},n.currentValue);delete i.refresh,this.zone.runOutsideAngular((function(){e.$instance.slick("slickSetOption",i,r)}))}}}}]),t}()).\u0275fac=function(t){return new(t||Ew)(Ba(Fs),Ba(fc),Ba(Zu))},Ew.\u0275cmp=Te({type:Ew,selectors:[["ngx-slick-carousel"]],inputs:{config:"config"},outputs:{afterChange:"afterChange",beforeChange:"beforeChange",breakpoint:"breakpoint",destroy:"destroy",init:"init"},exportAs:["slick-carousel"],features:[Ds([{provide:qh,useExisting:Bt((function(){return Ew})),multi:!0}]),tn],ngContentSelectors:Mw,decls:1,vars:0,template:function(t,e){1&t&&(function(t){var e=On()[16][6];if(!e.projection)for(var n=e.projection=we(1,null),r=n.slice(),i=e.child;null!==i;)r[0]?r[0].projectionNext=i:n[0]=i,r[0]=i,i=i.next}(),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=On(),i=xn(),o=Gi(i,t,1,null,n||null);null===o.projection&&(o.projection=e),Tn(),function(t,e,n){Wo(e[11],0,e,n,jo(t,n,e),Bo(n.parent||e[6],e))}(i,r,o)}(0))},encapsulation:2}),Ew),Tw=((xw=function(){function t(e,n,r){b(this,t),this.el=e,this.platformId=n,this.carousel=r}return w(t,[{key:"ngOnInit",value:function(){Hl(this.platformId)&&this.carousel.addSlide(this)}},{key:"ngOnDestroy",value:function(){Hl(this.platformId)&&this.carousel.removeSlide(this)}}]),t}()).\u0275fac=function(t){return new(t||xw)(Ba(Fs),Ba(Zu),Ba(Sw,1))},xw.\u0275dir=je({type:xw,selectors:[["","ngxSlickItem",""]]}),xw),Aw=((Ow=function t(){b(this,t)}).\u0275mod=Re({type:Ow}),Ow.\u0275inj=St({factory:function(t){return new(t||Ow)},imports:[[zl]]}),Ow);function Iw(t,e){if(1&t&&(Wa(0,"div",6),Qa(1,"p",7),xu(2,"mdToHtml"),Wa(3,"div",8),Wa(4,"p"),ds(5),Ga(),Wa(6,"p"),ds(7),Ga(),Ga(),Ga()),2&t){var n=e.$implicit;Ni(1),za("innerHTML",Eu(2,3,n.quote),vi),Ni(4),gs(n.quotee),Ni(2),gs(n.quoteeTitle)}}var Dw,Rw=((Dw=function(){function t(e){b(this,t),this.dataService=e}return w(t,[{key:"ngOnInit",value:function(){this.slideConfig={dots:!0,autoplay:!0,adaptiveHeight:!0,arrows:!1}
1}},{key:"trackByIndex",value:function(t,e){return e}},{key:"testimonials",get:function(){return this.dataService.testimonials}}]),t}()).\u0275fac=function(t){return new(t||Dw)(Ba(uw))},Dw.\u0275cmp=Te({type:Dw,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&&(Wa(0,"div",0),Wa(1,"div",1),Qa(2,"img",2),Ga(),Wa(3,"div",3),Wa(4,"h5"),ds(5,"Testimonials"),Ga(),Wa(6,"h1"),ds(7,"What they think about us"),Ga(),Wa(8,"ngx-slick-carousel",4),Ua(9,Iw,8,5,"div",5),Ga(),Ga(),Ga()),2&t&&(Ni(8),za("config",e.slideConfig),Ni(1),za("ngForOf",e.testimonials)("ngForTrackBy",e.trackByIndex))},directives:[Sw,Al,Tw],pipes:[ww],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}"]}),Dw);function Nw(t,e){if(1&t&&(Wa(0,"div",7),Qa(1,"img",8),Ga()),2&t){var n=ns();Ni(1),za("src",n.getIconLocation(n.reasonsCard.icon),yi)("alt",n.reasonsCard.type)}}function jw(t,e){if(1&t&&(Wa(0,"h1"),ds(1),xu(2,"number"),Wa(3,"span"),ds(4,"/year"),Ga(),Ga()),2&t){var n=ns();Ni(1),vs(" \xa3",Eu(2,1,n.reasonsCard.productDetails.yearly.price/100),"")}}function Fw(t,e){if(1&t&&(Wa(0,"h1"),ds(1),Ga()),2&t){var n=ns();Ni(1),gs(n.reasonsCard.title)}}function Lw(t,e){if(1&t&&(Wa(0,"div",9),Wa(1,"div",7),Qa(2,"img",10),Ga(),Wa(3,"p",2),ds(4),Ga(),Ga()),2&t){var n=e.$implicit;Ni(4),vs(" ",n," ")}}function Uw(t,e){1&t&&(Wa(0,"button",11),Wa(1,"p"),ds(2,"Start Free Trial"),Ga(),Ga())}var Vw,Bw,qw,zw,Hw=function(t,e){return{"last-card":t,"black-card":e}},Ww=((zw=function(){function t(){b(this,t),this.purpleColor=!1,this.blackBackground=!1,this.showTrialButton=!0}return w(t,[{key:"ngOnInit",value:function(){}},{key:"getIconLocation",value:function(t){return"../../../assets/svgs/".concat(t,".svg")}}]),t}()).\u0275fac=function(t){return new(t||zw)},zw.\u0275cmp=Te({type:zw,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&&(Wa(0,"div",0),Ua(1,Nw,2,2,"div",1),Wa(2,"div",2),Wa(3,"h5"),ds(4),Ga(),Ua(5,jw,5,3,"h1",3),Ua(6,Fw,2,1,"h1",3),Wa(7,"p"),ds(8),Ga(),Ga(),Qa(9,"hr"),Wa(10,"div",4),Ua(11,Lw,5,1,"div",5),Ga(),Ua(12,Uw,3,0,"button",6),Ga()),2&t&&(za("ngClass",wu(8,Hw,e.purpleColor||e.blackBackgroun
vendor: 8,590 bytes, line 1
1d,e.blackBackground)),Ni(1),za("ngIf",e.reasonsCard.icon),Ni(3),gs(e.reasonsCard.type),Ni(1),za("ngIf",e.reasonsCard.productDetails),Ni(1),za("ngIf",e.reasonsCard.title),Ni(2),gs(e.reasonsCard.details),Ni(3),za("ngForOf",e.reasonsCard.advantages),Ni(1),za("ngIf",e.showTrialButton))},directives:[Sl,Dl,Al,_b],pipes:[ql],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}"]}),zw),Gw=((qw=function(){function t(e){b(this,t),this.dataService=e}return w(t,[{key:"ngOnInit",value:function(){}},{key:"plans",get:function(){return this.dataService.plans}}]),t}()).\u0275fac=function(t){return new(t||qw)(Ba(uw))},qw.\u0275cmp=Te({type:qw,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&&(Wa(0,"div",0),Wa(1,"div",1),Wa(2,"h5"),ds(3,"Our Pricing"),Ga(),Wa(4,"h1"),ds(5,"Choose a plan"),Ga(),Wa(6,"p"),ds(7," We offer different packages that suit businesses of all sizes and types. "),Qa(8,"br"),ds(9,"Compare and find the best plan for you. "),Ga(),Ga(),Wa(10,"div",2),Qa(11,"app-reasons-card",3),Qa(12,"app-reasons-card",3),Qa(13,"app-reasons-card",4),Ga(),Ga()),2&t&&(Ni(11),za("reasonsCard",e.plans.sales),Ni(1),za("reasonsCard",e.plans.marketing),Ni(1),za("reasonsCard",e.plans.tech)("purpleColor",!0))},directives:[Ww],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}}"]}),qw),Qw=((Bw=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||Bw)},Bw.\u0275cmp=Te({type:Bw,selectors:[["app-free-trial"]],decls:8,vars:0,consts:[[1,"free-trial","covers-page-width"]],template:function(t,e){1&t&&(Wa(0,"div",0),Wa(1,"h5"),ds(2,"Free Trial"),Ga(),Wa(3,"h1"),ds(4,"Still not sure?"),Ga(),Wa(5,"p"),ds(6," Our free trial has no obligations, feel free to cancel at any time before the trial expires. "),Ga(),Qa(7,"app-free-trial-button"),Ga())},directives:[bw],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}"]}),Bw),Kw=((Vw=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||Vw)},Vw.\u0275cmp=Te({type:Vw,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&&(Wa(0,"footer",0),Wa(1,"div",1),Wa(2,"div",2),Wa(3,"div",3),Qa(4,"img",4),Ga(),Wa(5,"p"),ds(6," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. "),Ga(),Ga(),Wa(7,"div",5),Wa(8,"h5"),ds(9,"Menu"),Ga(),Wa(10,"p",6),ds(11,"About"),Ga(),Wa(12,"p",7),ds(13,"Pricing"),Ga(),Wa(14,"p",8),ds(15,"Our Work"),Ga(),Wa(16,"p",9),ds(17,"Contact"),Ga(),Ga(),Wa(18,"div",10),Wa(19,"h5"),ds(20,"Popular Questions"),Ga(),Wa(21,"p"),Wa(22,"a"),ds(23,"How does it work?"),Ga(),Ga(),Wa(24,"p"),Wa(25,"a"),ds(26,"How much does it cost?"),Ga(),Ga(),Wa(27,"p"),Wa(28,"a"),ds(29,"How many requests can I make for work?"),Ga(),Ga(),Wa(30,"p"),Wa(31,"a"),ds(32,"How do I cancel my account?"),Ga(),Ga(),Ga(),Ga(),Wa(33,"div",11),Wa(34,"p"),ds(35,"\xa9 Copyright 2020 | "),Wa(36,"a"),ds(37,"Fossu Ltd"),Ga(),ds(38," | "),Wa(39,"a"),ds(40,"Privacy & Cookies"),Ga(),Ga(),Ga(),Ga())},directives:[_b],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}"]}),Vw);function $w(t,e){if(1&t&&(Wa(0,"div",16),Wa(1,"div",17),Wa(2,"p"),ds(3),Ga(),Ga(),Wa(4,"p"),ds(5),Ga(),Ga()),2&t){var n=e.$implicit,r=e.index;Ni(3),vs(" ",r+1," "),Ni(2),gs(n)}}function Yw(t,e){if(1&t&&(Wa(0,"div",16),Wa(1,"div",8),Qa(2,"img",18),Ga(),Wa(3,"div"),Wa(4,"h3"),ds(5),Ga(),Wa(6,"p"),ds(7),Ga(),Ga(),Ga()),2&t){var n=e.$implicit,r=ns();Ni(2),za("src",r.getIconLocation(n.iconName),yi)("alt",n.iconName),Ni(3),gs(n.heading),Ni(2),gs(n.subtitle)}}var Zw,Xw,Jw=((Zw=function(){function t(e,n,r){b(this,t),this.auth=e,this.dataService=n,this.cs=r,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."}
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."}]}return w(t,[{key:"ngOnInit",value:function(){}},{key:"getIconLocation",value:function(t){return"../../../assets/svgs/".concat(t,".svg")}},{key:"user",get:function(){return this.auth.user}},{key:"cardSectionContent",get:function(){return this.dataService.services}},{key:"chats",get:function(){return this.cs.chats}}]),t}()).\u0275fac=function(t){return new(t||Zw)(Ba(r_),Ba(uw),Ba(n_))},Zw.\u0275cmp=Te({type:Zw,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&&(Wa(0,"div",0),Qa(1,"app-menu",1),Wa(2,"div",2),Wa(3,"div",3),Wa(4,"h1"),ds(5,"Become a Virtual CEO"),Ga(),Wa(6,"p"),ds(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. "),Ga(),Wa(8,"p"),ds(9," Register for a demo, and find out how we can help you become a Virtual CEO today. "),Ga(),Qa(10,"app-free-trial-button"),Ga(),Wa(11,"div",4),Qa(12,"img",5),Ga(),Ga(),Ga(),Qa(13,"app-cards-section",6),Qa(14,"app-testimonials"),Wa(15,"div",7),Wa(16,"div",8),Qa(17,"img",9),Ga(),Wa(18,"div",10),Wa(19,"h1"),ds(20,"How does it work?"),Ga(),Wa(21,"div",11),Ua(22,$w,6,2,"div",12),Ga(),Ga(),Ga(),Wa(23,"div",13),Wa(24,"div",10),Wa(25,"h1"),ds(26,"Your entire department on subscription"),Ga(),Wa(27,"div",11),Ua(28,Yw,8,4,"div",12),Ga(),Wa(29,"button",14),Wa(30,"p"),ds(31,"Start Free Trial"),Ga(),Ga(),Ga(),Wa(32,"div",8),Qa(33,"img",15),Ga(),Ga(),Qa(34,"app-pricing"),Qa(35,"app-free-trial"),Qa(36,"app-footer")),2&t&&(Ni(1),za("hideBackground",!0),Ni(12),za("cardSectionContent",e.cardSectionContent),Ni(9),za("ngForOf",e.workingPoints),Ni(6),za("ngForOf",e.subscriptionPoints))},directives:[mw,bw,Pw,Rw,Al,_b,Gw,Qw,Kw],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}}"]}),Zw),tC=function(t){return{dark:t}},eC=((Xw=function(){function t(){b(this,t),this.value="",this.onChange=function(t){},this.onTouched=function(){},this.visible=!1}return w(t,[{key:"flipVisibility",value:function(){this.visible=!this.visible}},{key:"updateChanges",value:function(){this.onChange(this.value)}},{key:"writeValue",value:function(t){this.value=t,this.updateChanges()}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}}]),t}()).\u0275fac=function(t){return new(t||Xw)},Xw.\u0275cmp=Te({type:Xw,selectors:[["app-password-input"]],features:[Ds([{provide:qh,useExisting:Bt((function(){return Xw})),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&&(Wa(0,"div",0),Wa(1,"input",1),Ja("ngModelChange",(function(t){return e.value=t}))("ngModelChange",(function(){return e.updateChanges()})),Ga(),Wa(2,"div",2),Ja("click",(function(){return e.flipVisibility()})),Qa(3,"img",3),Ga(),Ga()),2&t&&(Ni(1),za("type",e.visible?"text":"password")("ngModel",e.value),Ni(2),za("ngClass",_u(3,tC,e.visible)))},directives:[Qh,ap,lp,Jh,rp,Sl],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)}"]}),Xw);function nC(t,e){if(1&t&&(Wa(0,"div",14),Wa(1,"p"),ds(2),Ga(),Ga()),2&t){var n=ns();Ni(2),gs(n.errorMessage)}}function rC(t,e){1&t&&(Wa(0,"p"),ds(1,"Logging In..."),Ga())}function iC(t,e){1&t&&(Wa(0,"p"),ds(1,"Login"),Ga())}var oC,aC=((oC=function(){function t(e,n){b(this,t),this.auth=e,this.router=n,this.logging=!1,this.loginFailed=!1}return w(t,[{key:"ngOnInit",value:function(){}},{key:"login",value:function(){var t;return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logging=!0,e.prev=1,e.next=4,this.auth.login(this.email,this.password);case 4:this.loginFailed=!1,this.email="",this.password="",this.errorMessage="",this.router.navigate(["/","questionnaire"]),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),this.loginFailed=!0,this.errorMessage=null!==(t=e.t0.message)&&void 0!==t?t:e.t0;case 14:return e.prev=14,this.logging=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})))}}]),t}()).\u0275fac=function(t){return new(t||oC)(Ba(r_),Ba(bb))},oC.\u0275cmp=Te({type:oC,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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Wa(2,"div",2),Qa(3,"img",3),Ga(),Wa(4,"div",4),Wa(5,"h1"),ds(6,"Login to your account"),Ga(),Wa(7,"p"),ds(8," Enter your email address and password to access your Virtual CEO account. "),Ga(),Wa(9,"form",5,6),Ja("submit",(function(){return e.login()})),Wa(11,"input",7),Ja("ngModelChange",(function(t){return e.email=t})),Ga(),Wa(12,"app-password-input",8),Ja("ngModelChange",(function(t){return e.password=t})),Ga(),Ua(13,nC,3,1,"div",9),Wa(14,"button",10),Ua(15,rC,2,0,"p",11),Ua(16,iC,2,0,"p",11),Qa(17,"img",12),Ga(),Wa(18,"p"),ds(19,"Don\u2019t have an account? "),Wa(20,"a",13),ds(21,"Sign up today!"),Ga(),Ga(),Ga(),Ga(),Ga(),Qa(22,"app-footer")),2&t){var n=Va(10);za("hideBackground",!1),Ni(11),za("ngModel",e.email),Ni(1),za("ngModel",e.password),Ni(1),za("ngIf",e.errorMessage),Ni(1),za("disabled",n.invalid||e.logging),Ni(1),za("ngIf",e.logging),Ni(1),za("ngIf",!e.logging)}},directives:[mw,ip,tf,tp,Qh,ap,up,Jh,rp,eC,Dl,wb,Kw],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%}"]}),oC),sC="https://js.stripe.com/v3",uC=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,cC=null,lC=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}
1,hC=Promise.resolve().then((function(){return null!==cC?cC:cC=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(sC,'"]')),e=0;e<t.length;e++){var n=t[e];if(uC.test(n.src))return n}return null}();n||(n=function(t){var e=document.createElement("script");e.src="".concat(sC).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)}))})),fC=!1;hC.catch((function(t){fC||console.warn(t)}));var pC=function t(){b(this,t)},dC=function t(){b(this,t)},gC=function(){function t(e){var n=this;b(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))}))}:this.headers=new Map}return w(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,o(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),vC=function(){function t(){b(this,t)}return w(t,[{key:"encodeKey",value:function(t){return yC(t)}},{key:"encodeValue",value:function(t){return yC(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function yC(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,"/")}var mC=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(b(this,t),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new vC,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var r=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),o=n(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),a=o[0],s=o[1],u=r.get(a)||[];u.push(s),r.set(a,u)})),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach((function(t){var n=r.fromObject[t];e.map.set(t,Array.isArray(n)?n:[n])}))):this.map=null}return w(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.
vendor: 13,839 bytes, line 1
1keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function bC(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function wC(t){return"undefined"!=typeof FormData&&t instanceof FormData}var CC=function(){function t(e,n,r,i){var o;if(b(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new gC),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new mC,this.urlWithParams=n}return w(t,[{key:"serializeBody",value:function(){return null===this.body?null:bC(this.body)||_C(this.body)||wC(this.body)||"string"==typeof this.body?this.body:this.body instanceof mC?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||wC(this.body)?null:_C(this.body)?this.body.type||null:bC(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof mC?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),c)),new t(n,r,o,{params:c,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),kC=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}({}),OC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";b(this,t),this.headers=e.headers||new gC,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},xC=function(t){f(n,t);var e=d(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(t=e.call(this,r)).type=kC.ResponseHeader,t}return w(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(OC),EC=function(t){f(n,t);var e=d(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(t=e.call(this,r)).type=kC.Response,t.body=void 0!==r.body?r.body:null,t}return w(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(OC),PC=function(t){f(n,t);var e=d(n);function n(t){var r;return b(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(OC);function MC(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var SC,TC,AC,IC,DC,RC,NC,jC,FC,LC,UC,VC=((SC=function(){function t(e){b(this,t),this.handler=e}return w(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof CC)n=t;else{var o=void 0;o=i.headers instanceof gC?i.headers:new gC(i.headers);var a=void 0;i.params&&(a=i.params instanceof mC?i.params:new mC({fromObject:i.params})),n=new CC(t,e,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=jp(n).pipe(Yv((function(t){return r.handler.handle(t)})));if(t instanceof CC||"events"===i.observe)return s;var u=s.pipe(vd((function(t){return t instanceof EC})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(nt((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(nt((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(nt((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(nt((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new mC).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,MC(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,MC(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,MC(n,e))}}]),t}()).\u0275fac=function(t){return new(t||SC)(fe(pC))},SC.\u0275prov=Mt({token:SC,factory:SC.\u0275fac}),SC),BC=function(){function t(e,n){b(this,t),this.next=e,this.interceptor=n}return w(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),qC=new re("HTTP_INTERCEPTORS"),zC=((TC=function(){function t(){b(this,t)}return w(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||TC)},TC.\u0275prov=Mt({token:TC,factory:TC.\u0275fac}),TC),HC=/^\)\]\}',?\n/,WC=function t(){b(this,t)},GC=((IC=function(){function t(){b(this,t)}return w(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||IC)},IC.\u0275prov=Mt({token:IC,factory:IC.\u0275fac}),IC),QC=((AC=function(){function t(e){b(this,t),this.xhrFactory=e}return w(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new U((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new gC(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new xC({headers:i,status:e,statusText:n,url:o})},c=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(HC,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,l&&(l=!1,c={error:f,text:c})}}l?(n.next(new EC({body:c,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new PC({error:c,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,i=new PC({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(u()),h=!0);var i={type:kC.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(t){var e={type:kC.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:kC.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.readyState!==r.DONE&&r.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||AC)(fe(WC))},AC.\u0275prov=Mt({token:AC,factory:AC.\u0275fac}),AC),KC=new re("XSRF_COOKIE_NAME"),$C=new re("XSRF_HEADER_NAME"),YC=function t(){b(this,t)},ZC=((UC=function(){function t(e,n,r){b(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=xl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||UC)(fe(Qc),fe(Zu),fe(KC))},UC.\u0275prov=Mt({token:UC,factory:UC.\u0275fac}),UC),XC=((LC=function(){function t(e,n){b(this,t),this.tokenService=e,this.headerName=n}return w(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var 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)}}]),t}()).\u0275fac=function(t){return new(t||LC)(fe(YC),fe($C))},LC.\u0275prov=Mt({token:LC,factory:LC.\u0275fac}),LC),JC=((FC=function(){function t(e,n){b(this,t),this.backend=e,this.injector=n,this.chain=null}return w(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(qC,[]);this.chain=e.reduceRight((function(t,e){return new BC(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||FC)(fe(dC),fe(_a))},FC.\u0275prov=Mt({token:FC,factory:FC.\u0275fac}),FC),tk=((jC=function(){function t(){b(this,t)}return w(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:XC,useClass:zC}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:KC,useValue:e.cookieName}:[],e.headerName?{provide:$C,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=Re({type:jC}),jC.\u0275inj=St({factory:function(t){return new(t||jC)},providers:[XC,{provide:qC,useExisting:XC,multi:!0},{provide:YC,useClass:ZC},{provide:KC,useValue:"XSRF-TOKEN"},{provide:$C,useValue:"X-XSRF-TOKEN"}
1]}),jC),ek=((NC=function t(){b(this,t)}).\u0275mod=Re({type:NC}),NC.\u0275inj=St({factory:function(t){return new(t||NC)},providers:[VC,{provide:pC,useClass:JC},QC,{provide:dC,useExisting:QC},GC,{provide:WC,useExisting:GC}],imports:[[tk.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),NC),nk=((RC=function(){function t(e,n){b(this,t),this.http=e,this.db=n}return w(t,[{key:"loadStripe",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return fC=!0,hC.then((function(t){return lC(t,e)}))}("pk_test_51Gs1MVIaLgEDpYYywvFKooJYIknAw0op5SXaVY1vMqnCE3nslrjtlNrXDqrdC1nqeZNEytfFDg9ZWgvtOEn2QvmK00Nr172pU2");case 2:this.stripe=t.sent;case 3:case"end":return t.stop()}}),t,this)})))}},{key:"createStripeElements",value:function(t,e,n){var r=this.stripe.elements({fonts:[{cssSrc:"https://fonts.googleapis.com/css?family=Poppins"}]}),i={style:Object.assign({},i_)},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}},{key:"createCustomer",value:function(t,e,n){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,new Promise((function(r,o){i.http.post(zc+"/payments/create-customer",{email:e,uid:t,serviceName:n},{headers:{"Content-Type":"application/json"}}).subscribe(r,o)}));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))}},{key:"createSetupIntent",value:function(t,e,n){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a,s=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=new Promise((function(r,i){s.http.post(zc+"/payments/create-setup-intent",{customerId:t,uid:e,existingPaymentMethodId:n},{headers:{"Content-Type":"application/json"}}).subscribe(r,i)})),r.next=3,i;case 3:o=r.sent,a=o.clientSecret,this.clientSecret=a;case 6:case"end":return r.stop()}}),r,this)})))}},{key:"createPaymentIntent",value:function(t,e,n,r,i){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function o(){var a,s,u,c,l=this;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=new Promise((function(i,o){l.http.post(zc+"/payments/create-payment-intent",{uid:t,customerId:e,amount:n,previousInvoiceId:r},{headers:{"Content-Type":"application/json"}}).subscribe(i,o)})),o.next=3,a;case 3:return s=o.sent,u=s.clientSecret,this.clientSecret=u,o.next=8,this.stripe.confirmCardPayment(this.clientSecret,{payment_method:i});case 8:if(!(c=o.sent).error){o.next=11;break}throw c.error;case 11:if("succeeded"===c.paymentIntent.status){o.next=13;break}throw new Error("Payment Error! Expected status to be 'succeeded' but it was ".concat(c.paymentIntent.status," instead."));case 13:case"end":return o.stop()}}),o,this)})))}},{key:"confirmSetup",value:function(t,e){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.stripe.confirmCardSetup(this.clientSecret,{payment_method:{card:t,billing_details:{name:e}}});case 2:if(!(r=n.sent).error){n.next=5;break}throw r.error;case 5:if("succeeded"===r.setupIntent.status){n.next=7;break}throw new Error("Setup Error! Expected status to be 'succeeded' but it was ".concat(r.setupIntent.status," instead."));case 7:case"end":return n.stop()}}),n,this)})))}},{key:"createSubscription",value:function(t,e,n,r){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o=this;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,new Promise((function(i,a){o.http.post(zc+"/payments/create-subscription",{uid:t,customerId:e,productId:r,priceId:n},{headers:{"Content-Type":"application/json"}}).subscribe(i,a)}));case 2:case"end":return i.stop()}}),i)})))}},{key:"updateSubscription",value:function(t,e,n,r,i){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function o(){var a=this;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,new Promise((function(o,s){a.http.post(zc+"/payments/update-subscription",{uid:t,subscriptionId:e,priceId:n,productId:r,serviceName:i},{headers:{"Content-Type":"application/json"}}).subscribe(o,s)}));case 2:case"end":return o.stop()}}),o)})))}},{key:"cancelSubscription",value:function(t,e){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,new Promise((function(n,i){r.http.post(zc+"/payments/cancel-subscription",{uid:t,subscriptionId:e},{headers:{"Content-Type":"application/json"}}).subscribe(n,i)}));case 2:case"end":return n.stop()}}),n)})))}}]),t}()).\u0275fac=function(t){return new(t||RC)(fe(VC),fe(Jb))}
1,RC.\u0275prov=Mt({token:RC,factory:RC.\u0275fac,providedIn:"root"}),RC),rk=((DC=function(){function t(){b(this,t),this.color="white"}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||DC)},DC.\u0275cmp=Te({type:DC,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&&(Wa(0,"div",0),Qa(1,"div",1),Qa(2,"div",2),Qa(3,"div",3),Ga()),2&t&&(Ni(1),ss("background-color",e.color),Ni(1),ss("background-color",e.color),Ni(1),ss("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)}}"]}),DC),ik=["cardNumber"],ok=["cardExpiry"],ak=["cardCvc"];function sk(t,e){if(1&t&&(Wa(0,"div",13),Wa(1,"p"),ds(2),Ga(),Ga()),2&t){var n=ns();Ni(2),gs(n.errorMessage)}}function uk(t,e){1&t&&(Wa(0,"div"),Wa(1,"p"),ds(2,"Loading Billing..."),Ga(),Qa(3,"app-spinner",14),Ga()),2&t&&(Ni(3),za("color","var(--primary-color)"))}var ck,lk=function(t){return{hide:t}},hk=((ck=function(){function t(e){b(this,t),this.paymentService=e,this.cardConfirmed=new Su}return w(t,[{key:"ngOnInit",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.loadingBilling=!0,t.next=3,this.setupStripe();case 3:this.loadingBilling=!1;case 4:case"end":return t.stop()}}),t,this)})))}},{key:"setupStripe",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.paymentService.loadStripe();case 2:return(e=this.paymentService.createStripeElements(this.cardNumber.nativeElement,this.cardCvc.nativeElement,this.cardExpiry.nativeElement)).number.on("change",this.handleCardChange.bind(this)),e.cvc.on("change",this.handleCardChange.bind(this)),e.expiry.on("change",this.handleCardChange.bind(this)),this.cardNumberElement=e.number,this.cardCvcElement=e.cvc,this.cardExpiryElement=e.expiry,this.numberComplete=!1,this.expiryComplete=!1,this.cvcComplete=!1,t.next=14,Promise.all([new Promise((function(t){e.number.on("ready",t)})),new Promise((function(t){e.cvc.on("ready",t)})),new Promise((function(t){e.expiry.on("ready",t)}))]);case 14:case"end":return t.stop()}}),t,this)})))}},{key:"confirmSetup",value:function(){var t;return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.creatingSubscription=!0,e.next=4,this.paymentService.confirmSetup(this.cardNumberElement,this.cardHolderName);case 4:this.cardConfirmed.emit(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this.errorMessage=null!==(t=e.t0.message)&&void 0!==t?t:e.t0;case 10:return e.prev=10,this.creatingSubscription=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,this,[[0,7,10,13]])})))}},{key:"handleCardChange",value:function(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)}},{key:"invalidCard",get:function(){return!this.numberComplete||!this.expiryComplete||!this.cvcComplete}}]),t}()).\u0275fac=function(t){return new(t||ck)(Ba(nk))},ck.\u0275cmp=Te({type:ck,selectors:[["app-stripe-checkout"]],viewQuery:function(t,e){var n;1&t&&(Bu(ik,!0),Bu(ok,!0),Bu(ak,!0)),2&t&&(Vu(n=qu())&&(e.cardNumber=n.first),Vu(n=qu())&&(e.cardExpiry=n.first),Vu(n=qu())&&(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&&(Wa(0,"form",0,1),Ja("ngSubmit",(function(){return e.confirmSetup()})),Wa(2,"div",2),Qa(3,"div",3,4),Wa(5,"input",5),Ja("ngModelChange",(function(t){return e.cardHolderName=t})),Ga(),Wa(6,"div",6),Qa(7,"div",null,7),Qa(9,"div",null,8),Ga(),Ua(11,sk,3,1,"div",9),Ga(),Wa(12,"button",10),Wa(13,"p"),ds(14,"Complete Checkout"),Ga(),Qa(15,"img",11),Ga(),Ga(),Ua(16,uk,4,1,"div",12)),2&t){var n=Va(1);za("ngClass",_u(5,lk,e.loadingBilling)),Ni(5),za("ngModel",e.cardHolderName),Ni(6),za("ngIf",e.errorMessage),Ni(1),za("disabled",n.invalid||e.invalidCard||e.creatingSubscription),Ni(4),za("ngIf",e.loadingBilling)}},directives:[ip,tf,tp,Sl,Qh,ap,Jh,rp,Dl,rk],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)}"]}),ck);function fk(t,e){if(1&t){var n=Ya();Ka(0),Wa(1,"div",12),Wa(2,"input",13),Ja("ngModelChange",(function(t){return En(n),ns(2).firstName=t})),Ga(),Wa(3,"input",14),Ja("ngModelChange",(function(t){return En(n),ns(2).lastName=t})),Ga(),Ga(),Wa(4,"input",15),Ja("ngModelChange",(function(t){return En(n),ns(2).companyName=t})),Ga(),Wa(5,"div",16),Wa(6,"input",17),Ja("ngModelChange",(function(t){return En(n),ns(2).email=t})),Ga(),Wa(7,"input",18),Ja("ngModelChange",(function(t){return En(n),ns(2).phone=t})),Ga(),Ga(),Wa(8,"div",19),Wa(9,"p"),ds(10," Which service would you like to trial? "),Ga(),Wa(11,"div",20),Wa(12,"label",21),ds(13,"Marketing "),Wa(14,"input",22),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(15,"span",23),Ga(),Wa(16,"label",21),ds(17,"Sales "),Wa(18,"input",24),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(19,"span",23),Ga(),Wa(20,"label",21),ds(21,"Tech "),Wa(22,"
1input",25),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(23,"span",23),Ga(),Ga(),Ga(),$a()}if(2&t){var r=ns(2);Ni(2),za("ngModel",r.firstName),Ni(1),za("ngModel",r.lastName),Ni(1),za("ngModel",r.companyName),Ni(2),za("ngModel",r.email),Ni(1),za("ngModel",r.phone),Ni(7),za("value",r.pricingCards.marketing)("ngModel",r.selectedCard),Ni(4),za("value",r.pricingCards.sales)("ngModel",r.selectedCard),Ni(4),za("value",r.pricingCards.tech)("ngModel",r.selectedCard)}}function pk(t,e){if(1&t){var n=Ya();Ka(0),Wa(1,"input",26),Ja("ngModelChange",(function(t){return En(n),ns(2).username=t})),Ga(),Wa(2,"app-password-input",27),Ja("ngModelChange",(function(t){return En(n),ns(2).password=t})),Ga(),$a()}if(2&t){var r=ns(2);Ni(1),za("ngModel",r.username),Ni(1),za("ngModel",r.password)}}function dk(t,e){if(1&t&&(Wa(0,"div",28),Wa(1,"p"),ds(2),Ga(),Ga()),2&t){var n=ns(2);Ni(2),gs(n.errorMessage)}}function gk(t,e){1&t&&(Ka(0),Wa(1,"p"),ds(2,"Wait..."),Ga(),$a())}function vk(t,e){1&t&&(Wa(0,"p"),ds(1," Next Step "),Ga(),Qa(2,"img",29))}function yk(t,e){if(1&t){var n=Ya();Ka(0),Wa(1,"h1"),ds(2,"Enter your information"),Ga(),Wa(3,"p"),ds(4," Help us set up your account by entering some essential information. "),Ga(),Wa(5,"form",6,7),Ja("ngSubmit",(function(){En(n);var t=Va(6);return ns().nextStep(t)})),Ua(7,fk,24,11,"ng-container",8),Ua(8,pk,3,2,"ng-container",8),Ua(9,dk,3,1,"div",9),Wa(10,"button",10),Ua(11,gk,3,0,"ng-container",4),Ua(12,vk,3,0,"ng-template",null,11,Hu),Ga(),Ga(),$a()}if(2&t){var r=Va(6),i=Va(13),o=ns();Ni(7),za("ngIf","entering-primary"===o.currentState),Ni(1),za("ngIf","entering-secondary"===o.currentState),Ni(1),za("ngIf",o.errorMessage),Ni(1),za("disabled",r.invalid||o.creatingAccount),Ni(1),za("ngIf",o.creatingAccount)("ngIfElse",i)}}function mk(t,e){if(1&t){var n=Ya();Wa(0,"app-stripe-checkout",31),Ja("cardConfirmed",(function(){return En(n),ns(2).createSubscription()})),Ga()}}function bk(t,e){if(1&t&&(Wa(0,"h1"),ds(1,"Your card info is safe"),Ga(),Wa(2,"p"),ds(3," You card will not be charged until after your 7-day trial. "),Ga(),Wa(4,"h5"),ds(5,"Today\u2019s total: \xa30.00"),Ga(),Wa(6,"p"),ds(7),xu(8,"number"),Ga(),Ua(9,mk,1,0,"app-stripe-checkout",30)),2&t){var n=ns();Ni(7),vs("After your 7-day free trial: \xa3",(r=n.price/100,i=On(),o=dn(i,8),Mu(i,Pu(i,8)?Ou(i,Dn(),2,o.transform,r,"1.2",o):o.transform(r,"1.2"))),""),Ni(2),za("ngIf","entering-tertiary"===n.currentState)}var r,i,o}var _k,wk=((_k=function(){function t(e,n,r,i,o,a){b(this,t),this.dataService=e,this.auth=n,this.us=r,this.paymentService=i,this.router=o,this.route=a}return w(t,[{key:"ngOnInit",value:function(){var t=this;this.route.queryParams.subscribe((function(e){t.email=e.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((function(e){return Qb(t,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=7;break}return this.email=null!==(n=this.email)&&void 0!==n?n:this.us.userData.email,(r=this.us.membershipData.serviceName)&&(this.service=Object.assign({name:r},this.dataService.plans[r].productDetails.monthly)),t.next=6,this.paymentService.createSetupIntent(this.us.membershipData.customerId,this.auth.user.uid);case 6:this.currentState="entering-tertiary";case 7:case"end":return t.stop()}}),t,this)})))}))}},{key:"nextStep",value:function(t){var e;return Qb(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,this.creatingAccount=!0,"entering-primary"!==this.currentState){n.next=9;break}return n.next=4,this.checkFirstPage(t);case 4: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",n.next=17;break;case 9:if("entering-secondary"!==this.currentState){n.next=17;break}return n.next=12,this.checkSecondPage(t);case 12:return n.next=14,this.signup();case 14:return r=n.sent,n.next=17,this.paymentService.createCustomer(r,this.email,this.service.name);case 17:this.errorMessage="",n.next=23;break;case 20:n.prev=20,n.t0=n.catch(0),this.errorMessage=null!==(e=n.t0.message)&&void 0!==e?e:n.t0;case 23:return n.prev=23,this.creatingAccount=!1,n.finish(23);case 26:case"end":return n.stop()}}),n,this,[[0,20,23,26]])})))}},{key:"checkFirstPage",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.controls.email.value,e.next=3,this.auth.emailExists(n);case 3:if(!e.sent){e.next=5;break}throw t.controls.email.setValue(""),new Error("Email already exists!");case 5:case"end":return e.stop()}}),e,this)})))}},{key:"checkSecondPage",value:function(t){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.controls.username.value,e.next=3,this.auth.usernameExists(n);case 3:if(!e.sent){e.next=5;break}throw t.controls.username.setValue(""),new Error("Username already is in use!");case 5:case"end":return e.stop()}}),e,this)})))}},{key:"signup",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.auth.signup("".concat(this.firstName," ").concat(this.lastName),this.email,this.password);case 2:return e=t.sent,n=e.uid,t.next=6,this.us.createUserDocument({uid:n,firstName:this.firstName,lastName:this.lastName,companyName:this.companyName,email:this.email,phone:this.phone,username:this.username});case 6:return t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"createSubscription",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.dataService.plans[this.service.name].productDetails,t.next=3,this.paymentService.createSubscription(this.auth.user.uid,this.us.membershipData.customerId,e.monthly.priceId,e.productId);case 3:this.router.navigate(["/","questionnaire"]);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"pricingCards",get:function(){return this.dataService.plans}},{key:"price",get:function(){return this.dataService.plans[this.service.name].productDetails.monthly.price}}]),t}()).\u0275fac=function(t){return new(t||_k)(Ba(uw),Ba(r_),Ba(t_),Ba(nk),Ba(bb),Ba(em))},_k.\u0275cmp=Te({type:_k,selectors:[["app-signup"]],decls:8,vars:6,consts:[[3,"hideBackgroun
1d"],[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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Qa(2,"app-reasons-card",2),Wa(3,"div",3),Ua(4,yk,14,6,"ng-container",4),Ua(5,bk,10,5,"ng-template",null,5,Hu),Ga(),Ga(),Qa(7,"app-footer")),2&t){var n=Va(6);za("hideBackground",!1),Ni(2),za("reasonsCard",e.selectedCard)("purpleColor",!0)("showTrialButton",!1),Ni(2),za("ngIf","entering-tertiary"!==e.currentState)("ngIfElse",n)}},directives:[mw,Ww,Dl,Kw,ip,tf,tp,Qh,ap,Jh,rp,up,lp,kf,eC,hk],pipes:[ql],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-detail
1s[_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}"]}),_k);function Ck(t,e){if(1&t){var n=Ya();Wa(0,"p",9),Ja("click",(function(){En(n);var t=e.$implicit,r=ns(3);return r.gotoNextQuestion(r.currentQuestion,t)})),ds(1),Ga()}if(2&t){var r=e.$implicit;Ni(1),vs(" ",r," ")}}function kk(t,e){if(1&t&&(Wa(0,"form"),Wa(1,"h5"),ds(2),Ga(),Wa(3,"div",7),Ua(4,Ck,2,1,"p",8),Ga(),Ga()),2&t){var n=ns(2);Ni(2),gs(n.currentQuestion.question),Ni(2),za("ngForOf",n.currentQuestion.options)}}function Ok(t,e){1&t&&(Wa(0,"p"),ds(1,"Loading questions..."),Ga())}function xk(t,e){if(1&t&&(Ka(0),Wa(1,"h3"),ds(2,"Typeform questionnaire"),Ga(),Ua(3,kk,5,2,"form",5),Ua(4,Ok,2,0,"ng-template",null,6,Hu),$a()),2&t){var n=Va(5),r=ns();Ni(3),za("ngIf",!r.questionsNotLoaded)("ngIfElse",n)}}function Ek(t,e){1&t&&(Ka(0),Wa(1,"h3"),ds(2,"Thank you for your valuable input!"),Ga(),$a())}var Pk,Mk=((Pk=function(){function t(e){b(this,t),this.dataService=e,this.completed=!1}return w(t,[{key:"ngOnInit",value:function(){this.enteredAnswers=[]}},{key:"gotoNextQuestion",value:function(t,e){this.enteredAnswers.push({question:t.question,selectedOption:e}),this.enteredAnswers.length===this.questions.length&&(this.completed=!0)}},{key:"questions",get:function(){return this.dataService.questions}},{key:"questionsNotLoaded",get:function(){return 0===this.questions.length}},{key:"currentQuestion",get:function(){return this.questions[this.enteredAnswers.length]}}
1,{key:"questionnaireCard",get:function(){return this.dataService.questionnaire}}]),t}()).\u0275fac=function(t){return new(t||Pk)(Ba(uw))},Pk.\u0275cmp=Te({type:Pk,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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Qa(2,"app-reasons-card",2),Wa(3,"div",3),Ua(4,xk,6,2,"ng-container",4),Ua(5,Ek,3,0,"ng-container",4),Ga(),Ga(),Qa(6,"app-footer")),2&t&&(za("hideBackground",!1),Ni(2),za("reasonsCard",e.questionnaireCard)("purpleColor",!0)("blackBackground",!0)("showTrialButton",!1),Ni(2),za("ngIf",!e.completed),Ni(1),za("ngIf",e.completed))},directives:[mw,Ww,Dl,Kw,ip,tf,tp,Al],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}"]}),Pk),Sk=function(t){return"url(https://".concat(t.fields.file.url,")")};function Tk(t,e){if(1&t&&(Wa(0,"div",7),Qa(1,"div",8),Wa(2,"div",9),Wa(3,"h5"),ds(4),Ga(),Wa(5,"h1"),ds(6),Ga(),Qa(7,"p",10),xu(8,"mdToHtml"),Wa(9,"h5"),ds(10,"Read More"),Ga(),Ga(),Ga()),2&t){var n=ns();Ni(1),ss("background-image",n.getIconUrl(n.coverBlog.icon)),Ni(1),za("routerLink",n.coverBlog.id),Ni(2),gs(n.coverBlog.tag),Ni(2),gs(n.coverBlog.t
1itle),Ni(1),za("innerHTML",Eu(8,6,n.coverBlog.content.substr(0,120).trim()+"..."),vi)}}function Ak(t,e){1&t&&(Wa(0,"span"),ds(1,"|"),Ga())}var Ik=function(t){return{"selected-category":t}};function Dk(t,e){if(1&t){var n=Ya();Ka(0),Ua(1,Ak,2,0,"span",11),Wa(2,"span",12),Ja("click",(function(){En(n);var t=e.$implicit;return ns().setSelectedTag(t)})),ds(3),Ga(),$a()}if(2&t){var r=e.$implicit,i=e.index,o=ns();Ni(1),za("ngIf",i>0),Ni(1),za("ngClass",_u(3,Ik,o.selectedTag===r)),Ni(1),vs(" ",r," ")}}function Rk(t,e){if(1&t&&(Wa(0,"div",13),Qa(1,"div",14),Wa(2,"div",15),Wa(3,"h5"),ds(4),Ga(),Wa(5,"h1"),ds(6),Ga(),Wa(7,"h5"),ds(8,"Read More"),Ga(),Ga(),Ga()),2&t){var n=e.$implicit,r=ns();za("routerLink",n.id),Ni(1),ss("background-image",r.getIconUrl(n.icon)),Ni(3),gs(n.tag),Ni(2),gs(n.title)}}var Nk,jk,Fk=((jk=function(){function t(e){b(this,t),this.dataService=e,this.selectedTag="All"}return w(t,[{key:"ngOnInit",value:function(){}},{key:"setSelectedTag",value:function(t){this.selectedTag=t}},{key:"getIconUrl",value:function(t){if(t)return Sk(t)}},{key:"tags",get:function(){var t=["All"];return this.dataService.blogs.forEach((function(e){t.includes(e.tag)||t.push(e.tag)})),t}},{key:"coverBlog",get:function(){return this.dataService.blogs[0]}},{key:"blogs",get:function(){var t=this;return this.dataService.blogs.filter((function(e){return"All"===t.selectedTag||e.tag===t.selectedTag}))}}]),t}()).\u0275fac=function(t){return new(t||jk)(Ba(uw))},jk.\u0275cmp=Te({type:jk,selectors:[["app-blog"]],decls:12,vars:4,consts:[[3,"hideBackground"],[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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Ua(2,Tk,11,8,"div",2),Wa(3,"div",3),Wa(4,"h5"),ds(5,"Our Blogs"),Ga(),Wa(6,"h3"),Ua(7,Dk,4,5,"ng-container",4),Ga(),Ga(),Wa(8,"div",5),Ua(9,Rk,9,5,"div",6),Ga(),Ga(),Qa(10,"app-free-trial"),Qa(11,"app-footer")),2&t&&(za("hideBackground",!1),Ni(2),za("ngIf",e.coverBlog),Ni(5),za("ngForOf",e.tags),Ni(2),za("ngForOf",e.blogs))},directives:[mw,Dl,Al,Qw,Kw,_b,Sl],pipes:[ww],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)}"]}),jk),Lk=((Nk=function(){function t(){b(this,t),this.backgroundColor="purple",this.heading="",this.paragraph="",this.subParagraph=""}return w(t,[{key:"ngOnInit",value:function(){}}
1,{key:"getBackgroundUrl",value:function(){return"url(../../../assets/svgs/scroll_bg_".concat(this.backgroundColor,".svg)")}}]),t}()).\u0275fac=function(t){return new(t||Nk)},Nk.\u0275cmp=Te({type:Nk,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&&(Wa(0,"div",0),Qa(1,"div",1),Wa(2,"div",2),Wa(3,"h1"),ds(4),Ga(),Wa(5,"p"),ds(6),Ga(),Wa(7,"p"),ds(8),Ga(),Ga(),Wa(9,"div",3),Qa(10,"img",4),Ga(),Ga()),2&t&&(Ni(1),ss("background-image",e.getBackgroundUrl()),Ni(3),gs(e.heading),Ni(2),gs(e.paragraph),Ni(2),gs(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}"]}),Nk);function Uk(t,e){1&t&&(Wa(0,"span"),ds(1,"|"),Ga())}var Vk=function(t){return{"selected-category":t}};function Bk(t,e){if(1&t){var n=Ya();Ka(0),Ua(1,Uk,2,0,"span",5),Wa(2,"span",6),Ja("click",(function(){En(n);var t=e.$implicit;return ns().setSelectedTag(t)})),ds(3),Ga(),$a()}if(2&t){var r=e.$implicit,i=e.index,o=ns();Ni(1),za("ngIf",i>0),Ni(1),za("ngClass",_u(3,Vk,o.selectedTag===r)),Ni(1),vs(" ",r," ")}}function qk(t,e){if(1&t&&(Wa(0,"div",7),Qa(1,"div",8),Wa(2,"div",9),Wa(3,"h5"),ds(4),Ga(),Wa(5,"h3"),ds(6),Ga(),Ga(),Ga()),2&t){var n=e.$implicit,r=ns();Ni(1),ss("background-image",r.getIconUrl(n.icon)),Ni(3),gs(n.tag),Ni(2),gs(n.client)}}var zk,Hk,Wk=((Hk=function(){function t(e){b(this,t),this.dataService=e,this.selectedTag="All",this.tags=["All","Sales","Marketing","Tech"]}return w(t,[{key:"ngOnInit",value:function(){}},{key:"setSelectedTag",value:function(t){this.selectedTag=t}},{key:"getIconUrl",value:function(t){if(t)return Sk(t)}},{key:"projects",get:function(){var t=this;return this.dataService.projects.filter((function(e){return"All"===t.selectedTag||e.tag===t.selectedTag}))}}]),t}()).\u0275fac=function(t){return new(t||Hk)(Ba(uw))},Hk.\u0275cmp=Te({type:Hk,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&&(Qa(0,"app-menu"),Qa(1,"app-welcome-scroll",0),Wa(2,"div",1),Wa(3,"h5"),ds(4,"Our Projects"),Ga(),Wa(5,"h3"),Ua(6,Bk,4,5,"ng-container",2),Ga(),Ga(),Wa(7,"div",3),Ua(8,qk,7,4,"div",4),Ga(),Qa(9,"app-footer")),2&t&&(Ni(6),za("ngForOf",e.tags),Ni(2),za("ngForOf",e.projects))},directives:[mw,Lk,Al,Kw,Dl,Sl],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}"]}),Hk),Gk=((zk=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||zk)},zk.\u0275cmp=Te({type:zk,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&&(Qa(0,"app-menu"),Qa(1,"app-welcome-scroll",0),Qa(2,"app-pricing"),Qa(3,"app-footer"))},directives:[mw,Lk,Gw,Kw],styles:[""]}),zk);function Qk(t,e){if(1&t&&(Wa(0,"div",13),Wa(1,"div",14),Wa(2,"p"),ds(3),Ga(),Ga(),Wa(4,"p"),ds(5),Ga(),Ga()),2&t){var n=e.$implicit,r=e.index;Ni(3),vs(" ",r+1," "),Ni(2),gs(n)}}function Kk(t,e){if(1&t&&(Wa(0,"div",13),Wa(1,"div",14),Wa(2,"p"),ds(3),Ga(),Ga(),Wa(4,"p"),ds(5),Ga(),Ga()),2&t){var n=e.$implicit,r=e.index;Ni(3),vs(" ",r+1," "),Ni(2),gs(n)}}var $k,Yk=(($k=function(){function t(e){b(this,t),this.dataService=e,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"]}return w(t,[{key:"ngOnInit",value:function(){}},{key:"cardSectionContent",get:function(){return this.dataService.facts}}]),t}()).\u0275fac=function(t){return new(t||$k)(Ba(uw))},$k.\u0275cmp=Te({type:$k,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&&(Qa(0,"app-menu"),Qa(1,"app-welcome-scroll",0),Qa(2,"div",1),Qa(3,"app-cards-section",2),Wa(4,"div",3),Wa(5,"h5"),ds(6,"Our Philosophy"),Ga(),Wa(7,"h1"),ds(8,"What we believe"),Ga(),Wa(9,"p"),ds(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. "),Ga(),Wa(11,"p"),ds(12,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do!"),Ga(),Ga(),Wa(13,"div",4),Wa(14,"div",5),Wa(15,"h1"),ds(16,"Our core values"),Ga(),Wa(17,"p"),ds(18," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),Ga(),Wa(19,"div",6),Ua(20,Qk,6,2,"div",7),Ga(),Ga(),Wa(21,"div",8),Qa(22,"img",9),Ga(),Ga(),Wa(23,"div",10),Wa(24,"div",8),Qa(25,"img",11),Ga(),Wa(26,"div",5),Wa(27,"h1"),ds(28,"Join our ever expanding team"),Ga(),Wa(29,"p"),ds(30," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),Ga(),Wa(31,"p"),ds(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. "),Ga(),Wa(33,"div",6),Ua(34,Kk,6,2,"div",7),Ga(),Wa(35,"p"),ds(36," Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "),Ga(),Wa(37,"button",12),Wa(38,"p"),ds(39,"Apply Now"),Ga(),Ga(),Ga(),Ga(),Qa(40,"app-testimonials"),Qa(41,"app-footer")),2&t&&(Ni(3),za("cardSectionContent",e.cardSectionContent),Ni(17),za("ngForOf",e.corePoints),Ni(14),za("ngForOf",e.benefitPoints))},directives:[mw,Lk,Pw,Al,Rw,Kw],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}"]}),$k);function Zk(t,e){if(1&t&&(Wa(0,"div",2),Qa(1,"div",3),Wa(2,"h1"),ds(3),Ga(),Qa(4,"div",4),xu(5,"mdToHtml"),Ga()),2&t){var n=ns();Ni(1),ss("background-image",n.getIconUrl(n.blog.icon)),Ni(2),gs(n.blog.title),Ni(1),za("innerHTML",Eu(5,4,n.blog.content),vi)}}var Xk,Jk=((Xk=function(){function t(e,n){b(this,t),this.dataService=e,this.route=n}return w(t,[{key:"ngOnInit",value:function(){var t=this;this.route.params.subscribe((function(e){t.id=e.id}))}},{key:"getIconUrl",value:function(t){if(t)return Sk(t)}},{key:"blog",get:function(){var t=this;return this.dataService.blogs.find((function(e){return e.id===t.id}))}}]),t}()).\u0275fac=function(t){return new(t||Xk)(Ba(uw),Ba(em))},Xk.\u0275cmp=Te({type:Xk,selectors:[["app-view-blog"]],decls:3,vars:2,consts:[[3,"hideBackgroun
1d"],["class","blog-container",4,"ngIf"],[1,"blog-container"],[1,"blog-icon"],[1,"blog",3,"innerHTML"]],template:function(t,e){1&t&&(Qa(0,"app-menu",0),Ua(1,Zk,6,6,"div",1),Qa(2,"app-footer")),2&t&&(za("hideBackground",!1),Ni(1),za("ngIf",e.blog))},directives:[mw,Dl,Kw],pipes:[ww],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%}"]}),Xk);function tO(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var eO,nO,rO,iO,oO,aO=function(){function t(e,n,r){b(this,t),this.project=e,this.concurrent=n,this.scheduler=r}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new sO(t,this.project,this.concurrent,this.scheduler))}}]),t}(),sO=function(t){f(n,t);var e=d(n);function n(t,r,i,o){var a;return b(this,n),(a=e.call(this,t)).project=r,a.concurrent=i,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return w(n,[{key:"_next",value:function(t){var e=this.destination;if(e.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){e.next(t);try{var i=(0,this.project)(t,r);this.scheduler?this.destination.add(this.scheduler.schedule(n.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}catch(o){e.error(o)}}else this.buffer.push(t)}}},{key:"subscribeToProjection",value:function(t,e,n){this.active++,this.destination.add(tt(this,t,e,n))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,r,i){this._next(e)}},{key:"notifyComplete",value:function(t){var 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()}}],[{key:"dispatch",value:function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)}}]),n}(et),uO=function(){function t(e){b(this,t),this.total=e}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new cO(t,this.total))}}]),t}(),cO=function(t){f(n,t);var e=d(n);function n(t,r){var i;return b(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return w(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(R),lO=function t(){b(this,t)},hO=((eO=function(t){f(n,t);var e=d(n);function n(){return b(this,n),e.apply(this,arguments)}return w(n,[{key:"tick",value:function(t){return jp(0).pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new aO(t,e,n))}}((function(){var 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(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return Ap(e)?r=Number(e)<1?1:Number(e):Q(e)&&(n=e),Q(n)||(n=mp),new U((function(e){var i=Ap(t)?t:+t-n.now();return n.schedule(tO,i,{index:0,period:r,subscriber:e})}))}(r):Np()})),(function(t){return t.lift(new uO(1))}))}}]),n}(lO)).\u0275fac=function(t){return fO(t||eO)},eO.\u0275prov=Mt({token:eO,factory:eO.\u0275fac}),eO),fO=Sr(hO),pO=((nO=function t(){b(this,t),this.changes=new W}).\u0275prov=Mt({token:nO,factory:nO.\u0275fac=function(t){return new(t||nO)}}),nO),dO=function t(){b(this,t)},gO=((rO=function(t){f(r,t);var e=d(r);function r(){return b(this,r),e.apply(this,arguments)}return w(r,[{key:"format",value:function(t){var e=function(t){var e=Date.now(),r=Math.round(Math.abs(e-t)/1e3),i=t<e?"ago":"from now",o=n(r<60?[Math.round(r),"second"]:r<3600?[Math.round(r/60),"minute"]:r<86400?[Math.round(r/3600),"hour"]:r<604800?[Math.round(r/86400),"day"]:r<2592e3?[Math.round(r/604800),"week"]:r<31536e3?[Math.round(r/2592e3),"month"]:[Math.round(r/31536e3),"year"],2);return{value:o[0],unit:o[1],suffix:i}}(t),r=e.suffix,i=e.value,o=e.unit;return this.parse(i,o,r)}},{key:"parse",value:function(t,e,n){return 1!==t&&(e+="s"),t+" "+e+" "+n}}]),r}(dO)).\u0275fac=function(t){return vO(t||rO)},rO.\u0275prov=Mt({token:rO,factory:rO.\u0275fac}),rO),vO=Sr(gO),yO=((oO=function(){function e(t,n,r,i){var o=this;b(this,e),this.clock=i,this.live=!0,this.stateChanges=new W,t&&(this.intlSubscription=t.changes.subscribe((function(){return o.stateChanges.next()}))),this.stateChanges.subscribe((function(){o.value=r.format(o.date),n.markForCheck()}))}return w(e,[{key:"transform",value:function(e){var n,r,i=this,a=function(e){var n=new Date(e);if(!Number.isNaN(n.valueOf()))return n;var r=String(e).match(/\d+/g);if(null===r||r.length<=2)return n;var i=t(r.map((function(t){return parseInt(t,10)}))),a=i[0],s=i[1],u=i.slice(2);return new Date(Date.UTC.apply(Date,[a,s-1].concat(o(u))))}(e).valueOf();if(n=null!=(arguments.length<=1?void 0:arguments[1])?null!=(r=arguments.length<=1?void 0:arguments[1])&&""+r!="false":this.live,this.date===a&&this.live===n)return this.value;if(this.date=a,this.live=n,!this.date)throw new SyntaxError("Wrong parameter in TimeagoPipe. Expected a valid date, received: "+e);return this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.clockSubscription=this.clock.tick(this.date).pipe(vd((function(){return i.live}),this)).subscribe((function(){return i.stateChanges.next()})),this.stateChanges.next(),this.value}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&(this.intlSubscription.unsubscribe(),this.intlSubscription=void 0),this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.stateChanges.complete()}}]),e}()).\u0275fac=function(t){return new(t||oO)(Ba(pO,8),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt.Default,e=na(!0);if(null!=e||t&xt.Optional)return e;Xe("ChangeDetectorRef")}(),Ba(dO),Ba(lO))},oO.\u0275pipe=Fe({name:"timeago",type:oO,pure:!1}),oO.\u0275prov=Mt({token:oO,factory:oO.\u0275fac}),oO),mO=((iO=function(){function t(){b(this,t)}return w(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.clock||{provide:lO,useClass:hO},e.intl||[],e.formatter||{provide:dO,useClass:gO}]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.clock||{provide:lO,useClass:hO},e.intl||[],e.formatter||{provide:dO,useClass:gO}]}}}]),t}()).\u0275mod=Re({type:iO}),iO.\u0275inj=St({factory:function(t){return new(t||iO)}}),iO);function bO(t,e){if(1&t&&(Wa(0,"div",21),Qa(1,"img",22),Wa(2,"div",23),Wa(3,"div",24),ds(4),Ga(),Wa(5,"div",25),ds(6),Ga(),Ga(),Wa(7,"div",26),Wa(8,"p"),ds(9,"Back"),Ga(),Ga(),Ga()),2&t){var n=ns(2);
1Ni(1),rs("src","https://ui-avatars.com/api/?name=",n.otherPerson.name,"&rounded=true&background=7628ED&color=ffffff",yi),Ni(3),vs("Chat with ",n.otherPerson.name,""),Ni(2),gs(n.chat.name)}}function _O(t,e){1&t&&(Ka(0),Qa(1,"app-spinner"),$a())}function wO(t,e){if(1&t){var n=Ya();Wa(0,"p",30),Ja("click",(function(){return En(n),ns(3).loadMore()})),ds(1,"Load More Messages"),Ga()}}function CO(t,e){if(1&t&&(Wa(0,"div",27),Ua(1,_O,2,0,"ng-container",28),Ua(2,wO,2,0,"ng-template",null,29,Hu),Ga()),2&t){var n=Va(3),r=ns(2);Ni(1),za("ngIf",r.loadingMessages)("ngIfElse",n)}}function kO(t,e){if(1&t){var n=Ya();Wa(0,"img",40),Ja("click",(function(){En(n);var t=ns().$implicit;return ns(2).gotoLink(t.images[0].url)})),Ga()}2&t&&za("src",ns().$implicit.images[0].url,yi)}function OO(t,e){if(1&t&&(Wa(0,"span"),ds(1),Ga()),2&t){var n=ns().$implicit;Ni(1),vs(" ",n.text," ")}}function xO(t,e){if(1&t){var n=Ya();Wa(0,"div",41),Ja("click",(function(){En(n);var t=ns().$implicit;return ns(2).gotoLink(t.files[0].url)})),ds(1),Ga()}if(2&t){var r=ns().$implicit;Ni(1),vs(" ",r.files[0].name," ")}}var EO=function(t){return{"align-right":t}},PO=function(t,e){return{me:t,online:e}},MO=function(t,e,n,r){return{"other-message":t,"float-right":e,"float-left":n,"my-message":r}};function SO(t,e){if(1&t&&(Wa(0,"li",31),Wa(1,"div",32),Wa(2,"span",33),ds(3),xu(4,"timeago"),Ga(),Wa(5,"span",34),ds(6),Ga(),Qa(7,"i",35),Ga(),Wa(8,"div",36),Ua(9,kO,1,1,"img",37),Ua(10,OO,2,1,"span",38),Ua(11,xO,2,1,"div",39),Ga(),Ga()),2&t){var n=e.$implicit,r=ns(2);Ni(1),za("ngClass",_u(10,EO,n.senderId!==r.me.uid)),Ni(2),gs(Eu(4,8,n.time.toDate())),Ni(3),vs(" \xa0",r.getName(n.senderId),"\xa0 "),Ni(1),za("ngClass",wu(12,PO,n.senderId===r.me.uid,n.senderId!==r.me.uid)),Ni(1),za("ngClass",(15,i=MO,o=n.senderId!==r.me.uid,a=n.senderId!==r.me.uid,s=n.senderId===r.me.uid,u=n.senderId===r.me.uid,function(t,e,n,r,i,o,a,s,u){var c=e+15;return function(t,e,n,r,i,o){var a=ja(t,e,n,r);return ja(t,e+2,i,o)||a}(t,c,i,o,a,s)?Ra(t,c+4,r(i,o,a,s)):Cu(t,c+4)}(On(),Dn(),0,i,o,a,s,u))),Ni(1),za("ngIf",null==n.images[0]?null:n.images[0].url),Ni(1),za("ngIf",n.text),Ni(1),za("ngIf",n.files[0])}var i,o,a,s,u}function TO(t,e){if(1&t&&(Wa(0,"div",42),Qa(1,"img",43),Ga()),2&t){var n=ns(2);Ni(1),za("src",n.previewImageSrc,yi)}}function AO(t,e){if(1&t&&(Wa(0,"div",44),Qa(1,"i",45),ds(2),Ga()),2&t){var n=ns(2);Ni(2),vs(" ",n.chatMessageContent.files[0].name," ")}}function IO(t,e){if(1&t){var n=Ya();Wa(0,"div",3),Ua(1,bO,10,3,"div",4),Wa(2,"div",5),Ua(3,CO,4,2,"div",6),Wa(4,"ul"),Ua(5,SO,12,20,"li",7),Ga(),Ga(),Wa(6,"div",8),Wa(7,"textarea",9),Ja("ngModelChange",(function(t){return En(n),ns().chatMessageContent.text=t})),Ga(),Wa(8,"div",10),Ua(9,TO,2,1,"div",11),Ua(10,AO,3,1,"div",12),Ga(),Wa(11,"div",13),Wa(12,"label",14),Qa(13,"i",15),Ga(),Wa(14,"input",16),Ja("change",(function(t){return En(n),ns().updateFileDisplay(t)})),Ga(),Ga(),ds(15," \xa0\xa0\xa0 "),Wa(16,"div",13),Wa(17,"label",17),Qa(18,"i",18),Ga(),Wa(19,"input",19),Ja("change",(function(t){return En(n),ns().updateImageDisplay(t)})),Ga(),Ga(),Wa(20,"button",20),Ja("click",(function(){return En(n),ns().sendMessage()})),ds(21),Ga(),Ga(),Ga()}if(2&t){var r=ns();Ni(1),za("ngIf",r.otherPerson),Ni(2),za("ngIf",!r.topReached),Ni(2),za("ngForOf",r.chatMessages)("ngForTrackBy",r.trackById),Ni(2),za("ngModel",r.chatMessageContent.text),Ni(2),za("ngIf",r.previewImageSrc),Ni(1),za("ngIf",r.chatMessageContent.files[0]),Ni(10),za("disabled",!r.validMessageContent||r.sending),Ni(1),vs(" ",r.sending?"Sending...":"Send"," ")}}var DO,RO,NO=((RO=function(){function t(e,n,r,i,o){b(this,t),this.cs=e,this.route=n,this.auth=r,this.sanitization=i,this.fs=o,this.sending=!1,this.loadingMessages=!1,this.topReached=!1}return w(t,[{key:"ngOnInit",value:function(){var t=this;this.chatMessageContent={files:[],images:[]},this.route.paramMap.subscribe((function(e){t.chatId=e.get("chatId")}))}},{key:"sendMessage",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.sending=!0,e=this.chatMessageContent.images[0],n=this.chatMessageContent.files[0],this.chatMessageContent.text&&(this.chatMessageContent.text=this.chatMessageContent.text.trim()),t.t0=e,!t.t0){t.next=9;break}return t.next=7,this.fs.uploadFile(e.path,this.image);case 7:this.previewImageSrc=null,this.image=null;case 9:if(t.t1=n,!t.t1){t.next=14;break}return t.next=13,this.fs.uploadFile(n.path,this.file);case 13:this.file=null;case 14:return t.next=16,this.cs.sendMessage(this.chatId,Object.assign({senderId:this.me.uid,time:zp.firestore.Timestamp.fromDate(new Date),status:"SENT"},this.chatMessageContent));case 16:this.chatMessageContent={files:[],images:[]},this.sending=!1;case 18:case"end":return t.stop()}}),t,this)})))}},{key:"getName",value:function(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((function(e){return e.uid===t})))||void 0===r?void 0:r.name}},{key:"gotoLink",value:function(t){window.open(t,"_blank")}},{key:"updateFileDisplay",value:function(t){var e=t.target.files[0];this.chatMessageContent.files=[{name:e.name,type:e.type,size:e.size,path:"chats/".concat(this.chatId,"/files/").concat(e.name)}
1],this.file=e}},{key:"updateImageDisplay",value:function(t){var e=t.target.files[0];this.chatMessageContent.images=[{name:e.name,type:e.type,size:e.size,path:"chats/".concat(this.chatId,"/images/").concat(e.name)}],this.previewImageSrc=this.sanitization.bypassSecurityTrustUrl(URL.createObjectURL(e)),this.image=e}},{key:"loadMore",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.loadingMessages=!0,e=this.chatMessages[0],t.next=4,this.cs.loadMessages(this.chatId,e.time);case 4:this.topReached=t.sent,this.loadingMessages=!1;case 6:case"end":return t.stop()}}),t,this)})))}},{key:"trackById",value:function(t,e){return t.id}},{key:"otherPerson",get:function(){var t,e,n=this;return null===(e=null===(t=this.chat)||void 0===t?void 0:t.participants)||void 0===e?void 0:e.find((function(t){var e;return t.uid!==(null===(e=n.auth.user)||void 0===e?void 0:e.uid)}))}},{key:"me",get:function(){var t,e,n=this;return null===(e=null===(t=this.chat)||void 0===t?void 0:t.participants)||void 0===e?void 0:e.find((function(t){var e;return t.uid===(null===(e=n.auth.user)||void 0===e?void 0:e.uid)}))}},{key:"chat",get:function(){var t,e=this;return null===(t=this.cs.chats)||void 0===t?void 0:t.find((function(t){return t.id===e.chatId}))}},{key:"chatMessages",get:function(){return this.cs.inbox.get(this.chatId)}},{key:"validMessageContent",get:function(){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)}}]),t}()).\u0275fac=function(t){return new(t||RO)(Ba(n_),Ba(em),Ba(r_),Ba(Th),Ba(e_))},RO.\u0275cmp=Te({type:RO,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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Ua(2,IO,22,9,"div",2),Ga(),Qa(3,"app-footer")),2&t&&(za("hideBackground",!1),Ni(2),za("ngIf",e.chatId))},directives:[mw,Dl,Kw,Al,Qh,Jh,rp,rk,Sl],pipes:[yO],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}']}),RO),jO=((DO=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){if(!this.card||!this.cardHolderName)throw new Error("Attribute 'card' and 'cardHolderName' is required")}}]),t}()).\u0275fac=function(t){return new(t||DO)},DO.\u0275cmp=Te({type:DO,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&&(Wa(0,"div",0),Wa(1,"div",1),Wa(2,"div",2),Qa(3,"img",3),Ga(),Wa(4,"div",4),Qa(5,"div",5),Qa(6,"div",6),Qa(7,"div",7),Qa(8,"div",8),Ga(),Wa(9,"div",9),Wa(10,"div",10),ds(11),Ga(),Wa(12,"div",11),Wa(13,"div",12),ds(14,"EXPIRES END"),Ga(),Wa(15,"div",13),Wa(16,"div",14),ds(17,"MONTH/YEAR"),Ga(),Wa(18,"div",15),ds(19),Ga(),Ga(),Ga(),Wa(20,"div",16),ds(21),Ga(),Ga(),Qa(22,"div",17),Qa(23,"div",18),Ga(),Ga()),2&t&&(Ni(2),za("title",e.card.brand),Ni(1),za("src","../../../assets/imgs/"+e.card.brand+".png",yi)("alt",e.card.brand),Ni(8),vs(" \u2022 \u2022 \u2022 \u2022\xa0 \u2022 \u2022 \u2022 \u2022\xa0 \u2022 \u2022 \u2022 \u2022\xa0 ",e.card.last4," "),Ni(7),za("title",e.card.exp_month+"/"+e.card.exp_year),Ni(1),ys(" ",e.card.exp_month,"/",e.card.exp_year," "),Ni(1),za("title",e.cardHolderName),Ni(1),vs(" ",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)}']}),DO);function FO(t,e){if(1&t&&(Wa(0,"div",9),Wa(1,"p"),ds(2),Ga(),Ga()),2&t){var n=ns(3);Ni(2),gs(n.error)}}function LO(t,e){1&t&&(Wa(0,"div",9),Wa(1,"p"),ds(2,"Your card requires confirmation for payment!"),Ga(),Ga())}function UO(t,e){1&t&&(Wa(0,"div",9),Wa(1,"p"),ds(2,"Charging the card failed, please update your card!"),Ga(),Ga())}function VO(t,e){if(1&t){var n=Ya();Wa(0,"div",5),Wa(1,"h1"),ds(2,"Your Current Card"),Ga(),Qa(3,"app-card",6),Ua(4,FO,3,1,"div",7),Ua(5,LO,3,0,"div",7),Ua(6,UO,3,0,"div",7),Wa(7,"button",8),Ja("click",(function(){return En(n),ns(2).updateCard()})),Wa(8,"p"),ds(9),Ga(),Ga(),Ga()}if(2&t){var r=ns(2);Ni(3),za("card",r.membershipData.cardDetails)("cardHolderName",r.membershipData.cardHolderName),Ni(1),za("ngIf",r.error),Ni(1),za("ngIf",r.cardNeedsConfirmation),Ni(1),za("ngIf",!r.cardNeedsConfirmation&&r.paymentFailed),Ni(1),za("disabled",r.settingIntent),Ni(2),gs(r.cardNeedsConfirmation?"Confirm Card":"Change Card")}}function BO(t,e){if(1&t){var n=Ya();Wa(0,"div",10),Wa(1,"h1"),ds(2,"Update Your Card Safely"),Ga(),Wa(3,"app-stripe-checkout",11),Ja("cardConfirmed",(function(){return En(n),ns(2).updatingCard=!1})),Ga(),Ga()}}function qO(t,e){if(1&t&&(Wa(0,"div",2),Ua(1,VO,10,7,"div",3),Ua(2,BO,4,0,"div",4),Ga()),2&t){var n=ns();Ni(1),za("ngIf",!n.updatingCard),Ni(1),za("ngIf",n.updatingCard)}}var zO,HO=((zO=function(){function t(e,n,r){b(this,t),this.auth=e,this.paymentService=n,this.us=r}return w(t,[{key:"ngOnInit",value:function(){}},{key:"updateCard",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.settingIntent=!0,this.error="",!this.cardNeedsConfirmation){t.next=13;break}return t.prev=1,t.next=4,this.paymentService.loadStripe();case 4:return t.next=6,this.paymentService.createPaymentIntent(this.auth.user.uid,this.us.membershipData.customerId,this.us.membershipData.latestInvoiceTotal,this.us.membershipData.latestInvoiceId,this.us.membershipData.paymentMethodId);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),this.error=null==t.t0?void 0:t.t0.message;case 11:t.next=16;break;case 13:return t.next=15,this.paymentService.createSetupIntent(this.us.membershipData.customerId,this.auth.user.uid,this.us.membershipData.paymentMethodId);case 15:this.updatingCard=!0;case 16:this.settingIntent=!1;case 17:case"end":return t.stop()}}),t,this,[[1,8]])})))}},{key:"membershipData",get:function(){return this.us.membershipData}},{key:"cardNeedsConfirmation",get:function(){return"requires_action"===this.us.membershipData.latestPaymentStatus}},{key:"paymentFailed",get:function(){return"past_due"===this.us.membershipData.subscriptionStatus}}]),t}()).\u0275fac=function(t){return new(t||zO)(Ba(r_),Ba(nk),Ba(t_))},zO.\u0275cmp=Te({type:zO,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&&(Qa(0,"app-menu",0),Ua(1,qO,3,2,"div",1),Qa(2,"app-footer")),2&t&&(za("hideBackground",!1),Ni(1),za("ngIf",e.membershipData))},directives:[mw,Dl,Kw,jO,hk],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%}"]}),zO);function WO(t,e){if(1&t&&(Wa(0,"div",19),Qa(1,"img",20),Ga()),2&t){var n=ns();Ni(1),za("src",n.previewImageSrc,yi)}}function GO(t,e){if(1&t&&(Wa(0,"div",21),Qa(1,"i",22),ds(2),Ga()),2&t){var n=ns();Ni(2),vs(" ",n.request.files[0].name," ")}}function QO(t,e){if(1&t&&(Wa(0,"div",25),Qa(1,"img",26),Wa(2,"div",27),Wa(3,"h3"),ds(4),Ga(),Wa(5,"p"),ds(6),Ga(),Ga(),Ga()),2&t){var n=e.$implicit,r=ns(2);za("routerLink","/chats/"+n.id),Ni(1),rs("src","https://ui-avatars.com/api/?name=",r.getOtherPerson(n).name,"&rounded=true&background=7628ED&color=ffffff",yi),Ni(3),gs(n.name),Ni(2),gs(r.getLatestChatMessageText(n))}}function KO(t,e){if(1&t&&(Wa(0,"div",23),Wa(1,"h1"),ds(2,"Previous Requests"),Ga(),Ua(3,QO,7,4,"div",24),Ga()),2&t){var n=ns();Ni(3),za("ngForOf",n.chats)}}var $O,YO=(($O=function(){function t(e,n,r,i,o){b(this,t),this.auth=e,this.db=n,this.fs=r,this.cs=i,this.sanitization=o,this.creatingChat=!1}return w(t,[{key:"ngOnInit",value:function(){this.chatId=this.db.generateId(),this.request={files:[],images:[]}}},{key:"updateFileDisplay",value:function(t){var e=t.target.files[0];this.request.files=[{name:e.name,type:e.type,size:e.size,path:"chats/".concat(this.chatId,"/files/").concat(e.name)}],this.file=e}},{key:"updateImageDisplay",value:function(t){var e=t.target.files[0];this.request.images=[{name:e.name,type:e.type,size:e.size,path:"chats/".concat(this.chatId,"/images/").concat(e.name)}],this.previewImageSrc=this.sanitization.bypassSecurityTrustUrl(URL.createObjectURL(e)),this.image=e}},{key:"createNewChat",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.creatingChat=!0,e=this.request.images[0],n=this.request.files[0],this.request.text&&(this.request.text=this.request.text.trim()),t.t0=e,!t.t0){t.next=9;break}return t.next=7,this.fs.uploadFile(e.path,this.image);case 7:this.previewImageSrc=null,this.image=null;case 9:if(t.t1=n,!t.t1){t.next=14;break}return t.next=13,this.fs.uploadFile(n.path,this.file);case 13:this.file=null;case 14:return t.next=16,this.cs.createChat({name:this.auth.user.displayName,uid:this.auth.user.uid},this.requestName,Object.assign({senderId:this.auth.user.uid,time:zp.firestore.Timestamp.fromDate(new Date),status:"SENT",id:this.db.generateId()},this.request));case 16:this.chatId=this.db.generateId(),this.request={files:[],images:[]},this.creatingChat=!1;case 19:case"end":return t.stop()}}),t,this)})))}},{key:"getLatestChatMessageText",value:function(t){var e=this.cs.inbox.get(t.id);if(null==e?void 0:e.length){var n=e[e.length-1],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}}},{key:"getOtherPerson",value:function(t){var e=this;return t.participants.find((function(t){var n;return t.uid!==(null===(n=e.auth.user)||void 0===n?void 0:n.uid)}))}},{key:"chats",get:function(){return this.cs.chats}},{key:"validMessageContent",get:function(){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)}}]),t}()).\u0275fac=function(t){return new(t||$O)(Ba(r_),Ba(Jb),Ba(e_),Ba(n_),Ba(Th))},$O.\u0275cmp=Te({type:$O,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){var n=Ya();Qa(0,"app-menu",0),Wa(1,"div",1),Wa(2,"form",2,3),Ja("ngSubmit",(function(){En(n);var t=Va(3);return e.createNewChat(),t.reset()})),Wa(4,"h1"),ds(5,"New Request"),Ga(),Wa(6,"input",4),Ja("ngModelChange",(function(t){return e.requestName=t})),Ga(),Wa(7,"textarea",5),Ja("ngModelChange",(function(t){return e.request.text=t})),Ga(),Wa(8,"div",6),Ua(9,WO,2,1,"div",7),Ua(10,GO,3,1,"div",8),Ga(),Wa(11,"div",9),Wa(12,"div",10),Wa(13,"label",11),Qa(14,"i",12),Ga(),Wa(15,"input",13),Ja("change",(function(t){return e.updateFileDisplay(t)})),Ga(),Ga(),Wa(16,"div",10),Wa(17,"label",14),Qa(18,"i",15),Ga(),Wa(19,"input",16),Ja("change",(function(t){return e.updateImageDisplay(t)})),Ga(),Ga(),Wa(20,"button",17),Wa(21,"p"),ds(22),Ga(),Ga(),Ga(),Ga(),Ua(23,KO,4,1,"div",18),Ga(),Qa(24,"app-footer")}if(2&t){var r=Va(3);za("hideBackground",!1),Ni(6),za("ngModel",e.requestName),Ni(1),za("ngModel",e.request.text),Ni(2),za("ngIf",e.previewImageSrc),Ni(1),za("ngIf",e.request.files[0]),Ni(10),za("disabled",r.invalid||!e.validMessageContent||e.creatingChat),Ni(2),vs(" ",e.creatingChat?"Submitting...":"Submit Request"," "),Ni(1),za("ngIf",null==e.chats?null:e.chats.length)}},directives:[mw,ip,tf,tp,Qh,ap,Jh,rp,Dl,Kw,Al,_b],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}"]}),$O);function ZO(t,e){1&t&&Qa(0,"app-reasons-card",7),2&t&&za("reasonsCard",ns(2).selectedCard)("purpleColor",!0)("showTrialButton",!1)}function XO(t,e){if(1&t){var n=Ya();Wa(0,"div",8),Wa(1,"label",9),ds(2,"Marketing "),Wa(3,"input",10),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(4,"span",11),Ga(),Wa(5,"label",9),ds(6,"Sales "),Wa(7,"input",12),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(8,"span",11),Ga(),Wa(9,"label",9),ds(10,"Tech "),Wa(11,"input",13),Ja("ngModelChange",(function(t){return En(n),ns(2).selectedCard=t})),Ga(),Qa(12,"span",11),Ga(),Ga()}if(2&t){var r=ns(2);Ni(3),za("value",r.pricingCards.marketing)("ngModel",r.selectedCard),Ni(4),za("value",r.pricingCards.sales)("ngModel",r.selectedCard),Ni(4),za("value",r.pricingCards.tech)("ngModel",r.selectedCard)}}function JO(t,e){if(1&t){var n=Ya();Wa(0,"button",14),Ja("click",(function(){return En(n),ns(2).updateSubscription()})),Wa(1,"p"),ds(2,"Update Subscription"),Ga(),Ga()}if(2&t){var r=ns(2);za("disabled",r.updatingSubscription||!r.canUpdateService)}}function tx(t,e){if(1&t){var n=Ya();Wa(0,"button",14),Ja("click",(function(){return En(n),ns(2).cancelSubscription()})),Wa(1,"p"),ds(2,"Cancel Subscription"),Ga(),Ga()}2&t&&za("disabled",ns(2).updatingSubscription)}function ex(t,e){if(1&t&&(Wa(0,"div",2),Ua(1,ZO,1,3,"app-reasons-card",3),Wa(2,"div",4),Wa(3,"h1"),ds(4,"Your Current Plan"),Ga(),Wa(5,"h3"),ds(6),xu(7,"titlecase"),Ga(),Wa(8,"h3"),ds(9),xu(10,"titlecase"),Ga(),Wa(11,"form"),Ua(12,XO,13,6,"div",5),Ua(13,JO,3,1,"button",6),Ua(14,tx,3,1,"button",6),Ga(),Ga(),Ga()),2&t){var n=ns();Ni(1),za("ngIf",n.selectedCard),Ni(5),vs("Plan Name: ",Eu(7,6,n.currentService.type),""),Ni(3),vs(" Subscription Status: ",Eu(10,8,n.membershipData.subscriptionStatus)," "),Ni(3),za("ngIf",n.activeSubscription),Ni(1),za("ngIf",n.activeSubscription),Ni(1),za("ngIf",n.trialingSubscription)}}var nx,rx,ix,ox,ax,sx,ux,cx=((ox=function(){function t(e,n,r,i){b(this,t),this.auth=e,this.us=n,this.paymentService=r,this.dataService=i}return w(t,[{key:"ngOnInit",value:function(){var t=this;this.us.membershipData?this.selectedCard=this.dataService.plans[this.us.membershipData.serviceName]:this.auth.authState.subscribe((function(e){e&&(t.selectedCard=t.dataService.plans[t.us.membershipData.serviceName])}))}},{key:"updateSubscription",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.updatingSubscription=!0,e=this.dataService.plans[this.service.name],t.next=4,this.paymentService.updateSubscription(this.auth.user.uid,this.membershipData.subscriptionId,e.productDetails.monthly.priceId,e.productDetails.productId,this.service.name);case 4:this.updatingSubscription=!1;case 5:case"end":return t.stop()}}),t,this)})))}},{key:"cancelSubscription",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.updatingSubscription=!0,t.next=3,this.paymentService.cancelSubscription(this.auth.user.uid,this.membershipData.subscriptionId);case 3:this.updatingSubscription=!1;case 4:case"end":return t.stop()}}),t,this)})))}},{key:"currentService",get:function(){return this.dataService.plans[this.us.membershipData.serviceName]}},{key:"membershipData",get:function(){return this.us.membershipData}},{key:"canUpdateService",get:function(){return this.service.name!==this.us.membershipData.serviceName}},{key:"pricingCards",get:function(){return this.dataService.plans}},{key:"service",get:function(){return Object.assign({name:"SALES"===this.selectedCard.type?"sales":"MARKETING"===this.selectedCard.type?"marketing":"tech"},this.selectedCard.productDetails.monthly)}},{key:"trialingSubscription",get:function(){return"trialing"===this.membershipData.subscriptionStatus}},{key:"activeSubscription",get:function(){return"active"===this.membershipData.subscriptionStatus}}]),t}()).\u0275fac=function(t){return new(t||ox)(Ba(r_),Ba(t_),Ba(nk),Ba(uw))},ox.\u0275cmp=Te({type:ox,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&&(Qa(0,"app-menu",0),Ua(1,ex,15,10,"div",1),Qa(2,"app-footer")),2&t&&(za("hideBackground",!1),Ni(1),za("ngIf",e.membershipData))},directives:[mw,Dl,Kw,ip,tf,tp,Ww,kf,Qh,ap,Jh,rp],pipes:[Bl],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)}"]}),ox),lx=((ix=function(){function t(e,n){b(this,t),this.afAuth=e,this.router=n}return w(t,[{key:"canActivate",value:function(){var t=this;return this.afAuth.authState.pipe(zv(1),nt((function(t){return!!t})),_p((function(e){e||t.router.navigate(["/","not-authorized"])})))}}]),t}()).\u0275fac=function(t){return new(t||ix)(fe(hd),fe(bb))},ix.\u0275prov=Mt({token:ix,factory:ix.\u0275fac,providedIn:"root"}),ix),hx=((rx=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||rx)},rx.\u0275cmp=Te({type:rx,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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Wa(2,"div",2),Wa(3,"h1"),Qa(4,"i",3),ds(5," Unauthorized Access "),Ga(),Wa(6,"p"),ds(7," You are not authorized to view this page. Try "),Wa(8,"span",4),ds(9,"logging in."),Ga(),Ga(),Ga(),Ga(),Qa(10,"app-footer")),2&t&&za("hideBackgroun
1d",!1)},directives:[mw,_b,Kw],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}"]}),rx),fx=((nx=function(){function t(){b(this,t)}return w(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||nx)},nx.\u0275cmp=Te({type:nx,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&&(Qa(0,"app-menu",0),Wa(1,"div",1),Wa(2,"div",2),Wa(3,"h1"),Qa(4,"i",3),ds(5," Page Not Found "),Ga(),Wa(6,"p"),ds(7," The page you are looking for does not exist. "),Ga(),Ga(),Ga(),Qa(8,"app-footer")),2&t&&za("hideBackground",!1)},directives:[mw,Kw],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}"]}),nx),px=[{path:"",component:Jw,pathMatch:"full"},{path:"login",component:aC,canActivate:[(ax=function(){function t(e,n){b(this,t),this.afAuth=e,this.router=n}return w(t,[{key:"canActivate",value:function(){var t=this;return this.afAuth.authState.pipe(zv(1),nt((function(t){return!!t})),_p((function(e){e&&t.router.navigate(["/","not-found"])})),nt((function(t){return!t})))}}]),t}(),ax.\u0275fac=function(t){return new(t||ax)(fe(hd),fe(bb))},ax.\u0275prov=Mt({token:ax,factory:ax.\u0275fac,providedIn:"root"}),ax)]},{path:"signup",component:wk},{path:"blog/:id",component:Jk},{path:"blog",component:Fk},{path:"work",component:Wk},{path:"plans",component:Gk},{path:"about",component:Yk},{path:"billing",component:HO,canActivate:[lx]},{path:"my-plan",component:cx,canActivate:[lx]},{path:"questionnaire",component:Mk,canActivate:[lx]},{path:"submit-request",component:YO,canActivate:[lx]},{path:"chats/:chatId",component:NO,canActivate:[lx]},{path:"not-authorized",component:hx},{path:"**",component:fx}],dx=((ux=function t(){b(this,t)}).\u0275mod=Re({type:ux}),ux.\u0275inj=St({factory:function(t){return new(t||ux)},imports:[[Fb.forRoot(px,{scrollPositionRestoration:"enabled"})],Fb]}),ux),gx=((sx=function(){function t(e){b(this,t),this.dataService=e}return w(t,[{key:"ngOnInit",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dataService.loadContent();case 2:(e=document.getElementById("splash-screen"))&&e.remove();case 4:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||sx)(Ba(uw))},sx.\u0275cmp=Te({type:sx,selectors:[["app-root"]],decls:2,vars:0,consts:[[1,"page-container"]],template:function(t,e){1&t&&(Wa(0,"div",0),Qa(1,"router-outlet"),Ga())},directives:[Eb],styles:[".page-container[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto}"]}),sx),vx=new U(bp);function yx(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(t){return nt(function(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=r[t[i]];if(void 0===o)return;r=o}return r}}(e,r))(t)}}var mx=function(){function t(e,n){b(this,t),this.predicate=e,this.inclusive=n}return w(t,[{key:"call",value:function(t,e){return e.subscribe(new bx(t,this.predicate,this.inclusive))}}]),t}(),bx=function(t){f(n,t);var e=d(n);function n(t,r,i){var o;return b(this,n),(o=e.call(this,t)).predicate=r,o.inclusive=i,o.index=0,o}return w(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(R),_x={useTransferState:!0,alwaysMonitor:!1,manualIdle:!1,baseURIForScullyContent:"http://localhost:1668"},wx=new re("scullyLibConfig",{factory:function(){return _x}}
1),Cx=function(t){return t.includes("#")&&(t=t.split("#")[0]),t.includes("?")&&(t=t.split("?")[0]),t.endsWith("/")?t.slice(0,-1):t};function kx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json";return new Promise((function(n,r){var i=new XMLHttpRequest;i.responseType=e,i.addEventListener("load",(function(t){if(200!==i.status)return r(i);n(i.response)})),i.addEventListener("error",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r(e)})),i.open("get",t,!0),i.send()}))}var Ox=function(){return window&&"running"===window.ScullyIO},xx=function(){return window&&"generated"===window.ScullyIO};function Ex(t,e){return t.endsWith("/")&&e.startsWith("/")?"".concat(t).concat(e.substr(1)):t.endsWith("/")||e.startsWith("/")?"".concat(t).concat(e):"".concat(t,"/").concat(e)}var Px,Mx=((Px=function(){function t(e,n){var r=this;b(this,t),this.document=e,this.router=n,this.inlineOnly=!1,this.currentBaseUrl="//",this.stateBS=new xv({}),this.state$=this.stateBS.pipe(vd((function(t){return void 0!==t}))),this.nextUrl=this.router.events.pipe(vd((function(t){return t instanceof ey})),rd((function(t){return Cx(r.initialUrl)===Cx(t.url)?(r.initialUrl="__done__with__Initial__navigation__",vx):jp(t)})),_p((function(){return r.stateBS.next(void 0)})),rd((function(t){return r.router.events.pipe(vd((function(e){return e instanceof ny&&e.url===t.url})),Zv())})),nt((function(t){return Cx(t.urlAfterRedirects||t.url)})),ud(1))}return w(t,[{key:"startMonitoring",value:function(){window&&window["ScullyIO-injected"]&&window["ScullyIO-injected"].inlineStateOnly&&(this.inlineOnly=!0),this.setupEnvForTransferState(),this.setupStartNavMonitoring()}},{key:"setupEnvForTransferState",value:function(){if(Ox()){this.injectScript();var t=window["ScullyIO-exposed"]||{};t.transferState&&(this.stateBS.next(t.transferState),this.saveState(t.transferState))}else xx()&&(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"]||{}))}},{key:"injectScript",value:function(){this.script=this.document.createElement("script"),this.script.setAttribute("id","ScullyIO-transfer-state");for(var t=document.body.lastChild;"SCRIPT"===t.previousSibling.nodeName;)t=t.previousSibling;document.body.insertBefore(this.script,t)}},{key:"getState",value:function(t){return this.fetchTransferState(),this.state$.pipe(yx(t))}},{key:"stateHasKey",value:function(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)}},{key:"stateKeyHasValue",value:function(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)&&null!=this.stateBS.value[t]}},{key:"setState",value:function(t,n){var r=Object.assign(Object.assign({},this.stateBS.value),e({},t,n));this.stateBS.next(r),this.saveState(r)}},{key:"saveState",value:function(t){var e,n;Ox()&&(this.script.textContent="{window['ScullyIO-transfer-state']=_u(`/** ___SCULLY_STATE_START___ */".concat((e=JSON.stringify(t),n={"'":"_~q~",$:"_~o~","`":"_~b~","/":"_~s~","<":"_~l~",">":"_~g~"},e.replace(/[\$`'<>\/]/g,(function(t){return n[t]})).replace(/\\\"/g,"_~d~")),"/** ___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'));}}"))}},{key:"setupStartNavMonitoring",value:function(){xx()&&this.nextUrl.subscribe()}},{key:"useScullyTransferState",value:function(t,e){var n=this;return xx()?this.getState(t):e.pipe(_p((function(e){return n.setState(t,e)})))}},{key:"fetchTransferState",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=function(t){return t.split("/").filter((function(t){return""!==t.trim()}))[0]},t.next=3,new Promise((function(t){return setTimeout(t,0)}));case 3:return t.next=5,this.nextUrl.pipe(zv(1)).toPromise();case 5:n=t.sent,r=e(n),this.currentBaseUrl!==r&&(this.currentBaseUrl=r,this.nextUrl.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new mx(t,e))}}((function(t){return e(t)===i.currentBaseUrl})),rd((function(t){return i.inlineOnly?i.readFromIndex(t):i.readFromJson(t)})),Qv((function(t){return console.warn("Error while loading of parsing Scully state:",t),jp({})})),_p((function(t){i.stateBS.next(t)}))).subscribe({complete:function(){i.currentBaseUrl="//"}}));case 8:case"end":return t.stop()}}),t,this)})))}},{key:"readFromJson",value:function(t){return kx(Sx(Ex(t,"/data.json")))}},{key:"readFromIndex",value:function(t){return kx(Sx(Ex(t,"/index.html")),"text").then((function(t){var e,n=t.split("/** ___SCULLY_STATE_START___ */")[1].split("/** ___SCULLY_STATE_END___ */")[0];return JSON.parse((e={"_~q~":"'","_~b~":"`","_~o~":"$","_~s~":"/","_~l~":"<","_~g~":">"},n.replace(/_~d~/g,'\\"').replace(/_~[^]~/g,(function(t){return e[t]})).replace(/\n/g,"\\n").replace(/\r/g,"\\r")))}))}}]),t}()).\u0275fac=function(t){return new(t||Px)(fe(Qc),fe(bb))},Px.\u0275prov=Mt({factory:function(){return new Px(fe(Qc),fe(bb))},token:Px,providedIn:"root"}),Px);function Sx(t){return t.startsWith("/")?t.slice(1):t}var Tx,Ax,Ix,Dx,Rx=((Dx=function(){function t(e,n,r,i){var o,a=this;b(this,t),this.zone=e,this.router=n,this.initialUrl=((o=window&&window.location&&window.location.pathname).endsWith("/")?o.slice(0,-1):o)||"",this.imState=new xv({idle:!1,timeOut:5e3}),this.idle$=this.imState.pipe(yx("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({},_x,r);var s=!!(window["ScullyIO-exposed"]||{}).manualIdle;!this.scullyLibConfig.manualIdle&&window&&(this.scullyLibConfig.alwaysMonitor||Ox())&&(window.dispatchEvent(this.initApp),this.router.events.pipe(vd((function(t){return t instanceof ny&&void 0!==t.urlAfterRedirects})),vd((function(t){return!s||t.urlAfterRedirects!==a.initialUrl})),_p((function(){return a.zoneIdleCheck()}))).subscribe()),this.scullyLibConfig.manualIdle&&window.dispatchEvent(this.initApp),this.scullyLibConfig.useTransferState&&i.startMonitoring()}return w(t,[{key:"fireManualMyAppReadyEvent",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",window.dispatchEvent(this.appReady));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"init",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.idle$.pipe(zv(1)).toPromise());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"zoneIdleCheck",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==Zone){t.next=2;break}return t.abrupt("return",this.simpleTimeout());case 2:if(void 0!==(e=Zone.current.get("TaskTrackingZone"))){t.next=5;break}return t.abrupt("return",this.simpleTimeout());case 5:if(t.t0=this.imState.value.idle,!t.t0){t.next=9;break}return t.next=9,this.setState("idle",!1);case 9:this.zone.runOutsideAngular((function(){var t,r=0,i=Date.now();!function o(){clearTimeout(t),Date.now()-i>3e4?window.dispatchEvent(n.appTimeout):e.macroTasks.length>0&&void 0!==e.macroTasks.find((function(t){return t.source.includes("XMLHttpRequest")}))||r<1?t=setTimeout((function(){r+=1,o()}),50):n.zone.run((function(){setTimeout((function(){window.dispatchEvent(n.appReady),n.setState("idle",!0)}),250)}))}()}));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"simpleTimeout",value:function(){return Qb(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("Scully is using timeouts, add the needed polyfills instead!"),t.next=3,new Promise((function(t){return setTimeout(t,e.imState.value.timeOut)}));case 3:window.dispatchEvent(this.appReady);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"setPupeteerTimeoutValue",value:function(t){this.imState.next(Object.assign(Object.assign({},this.imState.value),{timeOut:t}))}},{key:"setState",value:function(t,n){this.imState.next(Object.assign(Object.assign({},this.imState.value),e({},t,n)))}}]),t}()).\u0275fac=function(t){return new(t||Dx)(fe(fc),fe(bb),fe(wx),fe(Mx))},Dx.\u0275prov=Mt({factory:function(){return new Dx(fe(fc),fe(bb),fe(wx),fe(Mx))},token:Dx,providedIn:"root"}),Dx),Nx=((Ix=function t(){b(this,t)}).\u0275mod=Re({type:Ix}),Ix.\u0275inj=St({factory:function(t){return new(t||Ix)}}),Ix),jx=((Ax=function(){function t(e){b(this,t),this.idle=e}return w(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_x;return e=Object.assign({},_x,e),{ngModule:t,providers:[{provide:wx,useValue:e}]}}}]),t}()).\u0275mod=Re({type:Ax}),Ax.\u0275inj=St({factory:function(t){return new(t||Ax)(fe(Rx))},imports:[[Nx],Nx]}),Ax),Fx=((Tx=function t(){b(this,t)}).\u0275mod=Re({type:Tx,bootstrap:[gx]}),Tx.\u0275inj=St({factory:function(t){return new(t||Tx)},providers:[],imports:[[Rh,dx,fp,ek,nd.initializeApp(Bc),fd,Fd,Ov,mO.forRoot(),Aw,jx]]}),Tx);(function(){if(Hr)throw new Error("Cannot enable prod mode after platform setup.");zr=!1})(),Ih().bootstrapModule(Fx).catch((function(t){return console.error(t)}))},zVF4:function(t,e,n){"use strict";
1Object.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 a(e)},a=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=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],a=i+1<t.length,s=a?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=(15&s)<<2|c>>6,h=63&c;u||(h=64,a||(l=64)),r.push(n[o>>2],n[(3&o)<<4|s>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(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 a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}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++)],a=i<t.length?n[t.charAt(i)]:0,s=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw Error();r.push(o<<2|a>>4),64!==s&&(r.push(a<<4&240|s>>2),64!==u&&r.push(s<<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 f(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function p(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var d=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],a=o?v(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new d(i,s),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 v(t,e){return t.replace(y,(function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"}))}var y=/\{\$([^}]+)}/g;function m(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=m(c(o[0])||""),n=m(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:r,signature:i}},_=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,a=this.chain_[0],s=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^s&(u^c),o=1518500249):(i=s^u^c,o=1859775393):r<60?(i=s&u|c&(s|u),o=2400959708):(i=s^u^c,o=3395469782);var h=(a<<5|a>>>27)+i+l+o+n[r]&4294967295;l=c,c=u,u=4294967295&(s<<30|s>>>2),s=a,a=h}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+s&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 k(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=d,e.Sha1=_,e.assert=o,e.assertionError=a,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=s(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=b,e.deepCopy=function(t){return l(void 0,t)},e.deepExtend=l,e.errorPrefix=k,e.getUA=f,e.isAdmin=function(t){var e=b(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 f().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=f();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(f())},e.isNode=p,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!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return f().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(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=b(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=m,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 a=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<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(k(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(k(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(k(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"),a=n("SntB");function s(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=s(n("JEQr"));u.Axios=o,u.create=function(t){return s(a(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.